Debian Codegraph @

examples/import/import-test-2.ck

raw
1 // import public class from another directory relative to this one
2 @import "../deep/ks-chord.ck"
3
4 // sound to chord to dac
5 SndBuf buffy => KSChord object => dac;
6 // load a sound
7 "special:dope" => buffy.read;
8 // set feedback
9 object.feedback( .96 );
10
11 // offset
12 -12 => int x;
13 // tune
14 object.tune( 60+x, 64+x, 72+x, 79+x );
15 // loop
16 while( true )
17 {
18 // set playhead to beginning
19 0 => buffy.pos;
20 // set rate
21 1 => buffy.rate;
22 // advance time
23 550::ms / buffy.rate() => now;
24 }