//Number 5 //Chuck a day 2009 //by Scott Hewitt //www.ablelemon.co.uk/chuckaday //dsp chain SinOsc n => HPF biq => dac; //randoms and then sweeps freq value function void freqsweep () { while (true){ 0 => int dd; Std.rand2f(0, 1) => biq.freq; while (dd < 10 ) { 1000::ms => now; biq.freq() - 0.1 => biq.freq; dd++; } Std.rand2f(10, 100) * 1::ms => now; } } //randoms and then sweeps q value function void qsweep () { while (true){ 0 => int cc; Std.rand2f(0, 1) + 0.1 => biq.Q; while (cc < 10 ) { 1000::ms => now; biq.Q() - 0.01 => biq.Q; cc++; } Std.rand2f(10, 100) * 1::ms => now; } } //changes frequency and sweeps spork ~ freqsweep(); //changes q and sweeps spork ~ qsweep(); //run for 60 seconds 60::second => now;