Hello,
Simple question, I have a folder with 36 .wav files in wavetable format, I just want to be able to choose wich one I want to play with PlayBuf. ( note: i am using an already made piece of code of pulsar synthesis that use PlayBuf, I don’t want to use VOsc ). So far I get
~myPath = PathName.new("mywavetablefolder");
~myPath.entries[0].fileName.postln;
(
b= Buffer.allocConsecutive(36,s,2048,1,{
|buf,idx|
var i;
i = idx;
("mywavetablefolder" ++ ~myPath.entries[idx].fileName).postln;
buf.readMsg("mywavetablefolder" ++ ~myPath.entries[idx].fileName);
});
)
Everything seems to be loaded properly in the post window.
And then, I just would like to know the syntax for let’s say, call the 7th wave of the folder
(
a = { PlayBuf.ar(1,...?)}.play;
)
I know it should be simple, sorry
Thanks!