{
   "description" : "Play your (short) soundfiles with some delay. Your soundfiles should be in the folder \"yourSoundFileFolder\"",
   "ancestor_list" : [],
   "name" : "Play soundfiles",
   "author" : "Bjørn Houdorf",
   "code" : "// By Bjørn Houdorf March 2013, Play your (short) soundfiles with some delay.\r\n\r\nb = SoundFile.collectIntoBuffers(\"yourSoundFileFolder/*\"); // 1. rund this\r\n\r\n( // 2. and then run this\r\nt = Task({\r\n({\r\n        var num= b.size.rand;\r\n        var buf= b[num];\r\n        0.1*Splay.ar(PlayBuf.ar(buf.numChannels, buf, 1, 1, 0, 0));\r\n}.play;\r\n) \r\n});\r\n)\r\n\r\n\r\n( // 3. Then run this\r\nz = Task({\r\nloop({\r\n\t\tt.start;\r\n\t\t0.1.wait;\r\n});\r\n});\r\n)\r\n\r\n\r\nz.start; // 4. and run this\r\nz.stop;  // 5. and finally run this",
   "id" : "1-4T9",
   "is_private" : null,
   "labels" : [
      "sound file",
      "task"
   ]
}
