☰
Debian Codegraph
@
1.5.5.8-1
/
/
examples
/
effects
/
FoldbackSaturator-threshold.ck
☽
☼
examples/effects/FoldbackSaturator-threshold.ck
code
plain
raw
GPL-2.0+
2004 Ge Wang and Perry R. Cook. All rights reserved.
debian/copyright
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
}