Skip to content

Instantly share code, notes, and snippets.

@bennigraf
Forked from anonymous/Super Collider - Task
Created October 17, 2010 11:17
Show Gist options
  • Save bennigraf/630759 to your computer and use it in GitHub Desktop.
Save bennigraf/630759 to your computer and use it in GitHub Desktop.
a = SynthDef(\pling, {|out, amp, freq=1500|
var snd, env;
snd = FreeVerb.ar(SinOsc.ar(freq),0.3,1,0);
env = EnvGen.kr(Env.perc(0.09, 6), doneAction:2);
OffsetOut.ar(out, Pan2.ar(env*snd, SinOsc.kr(1+SinOsc.kr(1,0,4))))
}).play;
t = Task({
1.do{
5.do{a.play; 20.wait; a.set(\freq, [900,1050, 2000, 2500].choose) };
}
});
t.play
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment