Debian Codegraph @

examples/filter/WPDiodeLadder.ck

raw
1 Noise nse => WPDiodeLadder fltr => dac;
2
3 SinOsc sin => blackhole;
4 SinOsc sinb => blackhole;
5 0.01 => nse.gain;
6 40 => sin.freq;
7 0.0125 => sinb.freq;
8 17 => fltr.resonance;
9 true => fltr.nonlinear;
10 false => fltr.nlp_type;
11
12 while(true){
13 40 * sinb.last() => sin.freq;
14 40 + (Math.pow((sin.last() + 1)/2.0,2) * 17000) => fltr.cutoff;
15 1::samp => now;
16 }