Closed jamen closed 8 years ago
Notes to self:
Buffer#write
is asynchronous so the Audio#write
should have a callback somewhere for handling success/error.Could you expand multiple integers for more than two channels in your last example?
Yeah, it doesn't literally "expand" I guess. It would use some system behind the scenes with audio.channels
, and write the number howmany ever times over based on that.
I'm going to close this until I have a better idea of how I want to structure data things.
Iteration will be VERY helpful for writing multi-channel data.
For example, the use of generators would make it easy to write two dynamic channels at once:
With this, you could also use arrays to write static multi-channel data:
Then you could have single integers like
3
expand to[3, 3]