Debian Codegraph @

examples/filter/hpf.ck

raw
1 // HPF is a high-pass filter
2 Noise n => HPF f => dac;
3
4 // set gain
5 .5 => f.gain;
6
7 // infinite time-loop
8 while( true )
9 {
10 // sweep the cutoff
11 Math.sin(now/second) * 110 => Math.fabs => Std.mtof => f.freq;
12 // advance time
13 5::ms => now;
14 }