Debian Codegraph @

examples/filter/lpf.ck

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