Debian Codegraph @

examples/book/digital-artists/chapter2/Listing2.5.ck

raw
1 // Listing 2.5 Using dac.chan() to connect to multiple speakers
2 // NOTE: This will cause an error if you don't have a
3 // multi-channel sound card, and have it selected
4 // as your audio output device in miniAudicle>Preferences
5
6 SinOsc s0 => dac.chan(0);
7 SinOsc s1 => dac.chan(1);
8 SinOsc s2 => dac.chan(2);
9 SinOsc s3 => dac.chan(3);
10