Debian Codegraph @

examples/basic/foo.ck

raw
1 // hello everyone.
2 // a chuck is born...
3 // its first words:
4
5 SinOsc s => JCRev r => dac;
6 .2 => s.gain;
7 .1 => r.mix;
8
9 // an array
10 [ 0, 2, 4, 7, 9, 11 ] @=> int hi[];
11
12 while( true )
13 {
14 Std.mtof( 45 + Math.random2(0,3) * 12 +
15 hi[Math.random2(0,hi.size()-1)] ) => s.freq;
16 100::ms => now;
17 }