Debian Codegraph @

examples/book/digital-artists/chapter1/WowExample.ck

raw
1 // WowExample.ck
2 // (ChucK is a real programming language)
3 // Type this in for instant gratification
4 // Hit "Clear VM" to stop it
5
6 Impulse imp => ResonZ filt => NRev rev => dac;
7 0.04 => rev.mix;
8 100.0 => filt.Q => filt.gain;
9
10 while (1) {
11 Std.mtof(Math.random2(60,84)) => filt.freq;
12 1.0 => imp.next;
13 100::ms => now;
14 }
15