41 lines · 953 B · Text
RawDownload
// name: we-robot.ck// desc: take us to your leader (talk into the mic), multi-channel// author: gewang, prc// 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 // n channelsdac.channels() => int N;// print<<< "dac has", N, "channels..." >>>; // delaysDelayL d[N];// gainsGain g3[N]; // our patch - feedforward partadc => Gain g;adc => Gain g2 => dac; // set delaysfor( int i; i < N; i++ ){    // feedfoward    g => d[i] => dac.chan(i);    // feedback    d[i] => g3[i] => d[i];    // detune    30::ms + Math.random2f(-15,15)::ms => d[i].max => d[i].delay;    .95 => g3[i].gain;} // set parameters0.25 => g.gain;0.05 => g2.gain; // time loopwhile( true ) 100::ms => 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