Submit
Browse
Anonymous
Login
RSS
SuperCollider Code
Fork Code: Swarm of sound files
name
code content
b = SoundFile.collectIntoBuffers("yourSoundFileFolder/*"); // By Bjørn Houdorf, December 21, 2012 ( { var number = b.numChannels, randomNumber, trigger, delayed, panned, sound, mixedSound, rotatedSound; trigger = Dust.kr(Array.fill(number,1), 1, -0.5); // Generates random impulses from -0.5 to 0.5. as a excitation function randomNumber = TRand.kr(1, number, trigger); sound = PlayBuf.ar(Array.fill(number,1) ,randomNumber,1,trigger,0,0); // play sound files delayed = DelayL.ar(sound, trigger, trigger); // delaying the sound files panned = Pan2.ar(delayed, Array.fill(number,{1.0.rand2})); // pan them out in the stereo field mixedSound = 0.05*Mix.new(panned);// and mix them to one stereo signal rotatedSound = Rotate2.ar(mixedSound[0], mixedSound[1], LFSaw.kr(0.05)); // rotate stereo signal }.play; // play it all )
code description
Put your sound files in the sound file folder. The code plays random sound files panned out in the stereo field. A swarm of sound files.
use markdown for formating
category tags
comma separated, i.g. "wild, siren" (do not enter default SC class names, please)
ancestor(s)
comma separated identificators, i.g. "1-C,1-1,1-4M,1-x"
Private?
the code will be accessible by direct url and not visible in public activity
signup to submit public code without captcha
comment of change