1 // run each stooge, or run three stooges concurrently
2 // %> chuck moe++ larry++ curly++
4 // impulse to filter to dac
5 sndbuf i => biquad f => gain g => JCRev r => dac;
11 // set the filter's pole radius
12 0.800 => f.prad; .995 => f2.prad; .995 => f3.prad;
13 // set equal gain zeros
14 1 => f.eqzs; 1 => f2.eqzs; 1 => f3.eqzs;
15 // initialize float variable
16 0.0 => float v => float v2;
18 .1 => f.gain; .1 => f2.gain; .01 => f3.gain;
21 "special:glot_pop" => i.read;
28 // set the current sample/impulse
30 // sweep the filter resonant frequency
31 250.0 + math.sin(v*100.0)*20.0 => v2 => f.pfreq;
32 2290.0 + math.sin(v*200.0)*50.0 => f2.pfreq;
33 3010.0 + math.sin(v*300.0)*80.0 => f3.pfreq;
37 0.2 + math.sin(v)*.1 => g.gain;
39 (1000.0 + std.rand2f(-100.0, 100.0))::ms => now;