25 lines · 658 B · Text
RawDownload
// name: n.ck// desc: n-channel demo// note: ChucK can be started with as much channels as is//       supported on the underlyding audio device; this can be//       done on command line (see chuck --help for more info)//       or in the miniAudicle Preferences (note changes will//       not take effect until the ChucK VM is (re)started // number of channelsdac.channels() => int N;// print<<< "dac has", N, "channels" >>>; // make osc bankSinOsc s[N];// connect to individual channelsfor( int i; i < N; i++ ){    s[i] => dac.chan(i);    Math.random2f( 400, 440 ) => s[i].freq;    .2 => s[i].gain;} // gowhile( true ) 1::second => now;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t