Debian Codegraph @

examples/stk/modulate.ck

raw
1 // patch into gain
2 SinOsc s => Gain g => dac;
3 Modulate mod => g;
4
5 // multiply
6 3 => g.op;
7
8 // set freq
9 220 => s.freq;
10
11 // set rate in hz
12 mod.vibratoRate( 6.0 );
13 // set gain
14 mod.vibratoGain( .2 );
15 // set random gain
16 mod.randomGain( .1 );
17
18 // infinite time loop
19 while( true )
20 {
21 10::second => now;
22 }