Debian Codegraph @

examples/effects/FoldbackSaturator-threshold.ck

raw
1 SinOsc s => FoldbackSaturator foldy => dac;
2
3 0.001 => float delta;
4
5 while(10::ms => now)
6 {
7 if((foldy.threshold() < 0.03) || (foldy.threshold() > 0.8))
8 {
9 -1.0 *=> delta;
10 }
11 foldy.threshold(foldy.threshold() - delta);
12 }