Hello all,
I have a number of files to sync. But I would like to keep it so as I can manipulate the parameters of each file, for spatial sound purpose. So, my approach was to create an array with the buffers of the files:
~myfiles = [Buffer.read(...1...), Buffer.read(...2...), Buffer.read(...3...)];
Then I loaded each buffer to a different PlayBuf, so that:
PlayBuf.ar(2, buffer1, \trig1, \startPos1, ...);
PlayBuf.ar(2, buffer2, \trig2, \startPos2, ...);
PlayBuf.ar(2, buffer3, \trig3, \startPos3, ...);
Is there any way to improve this code by placing all files into a unique PlayBuf? I initially thought that array expansion would work in this case:
PlayBuf.ar(2, [buffer1, buffer2, buffer3], [\trig1, \trig2, \trig3], [\startPos1, \startPos2, \startPos3], ...);
But I was not able to make the code work.