«Play soundfiles» by Bjørn Houdorf
on 26 Mar'13 18:37 inPlay your (short) soundfiles with some delay. Your soundfiles should be in the folder "yourSoundFileFolder"
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
// By Bjørn Houdorf March 2013, Play your (short) soundfiles with some delay. b = SoundFile.collectIntoBuffers("yourSoundFileFolder/*"); // 1. rund this ( // 2. and then run this t = Task({ ({ var num= b.size.rand; var buf= b[num]; 0.1*Splay.ar(PlayBuf.ar(buf.numChannels, buf, 1, 1, 0, 0)); }.play; ) }); ) ( // 3. Then run this z = Task({ loop({ t.start; 0.1.wait; }); }); ) z.start; // 4. and run this z.stop; // 5. and finally run this
reception
comments