Debian Codegraph @

examples/book/digital-artists/chapter1/Listing1.1.ck

raw
1 // Listing 1.1 Hello Sine!
2
3 SinOsc s => dac; // (1) Connects (ChucKs) a sine wav oscillator to the dac (sound out)
4 0.6 => s.gain; // (2) Sets oscillator gain to 0.6
5 220 => s.freq; // (3) Sets oscillator frequency to 220
6 second => now; // (4) Lets it play for one second