// Pan 1: Demonstrating panning in ChucK TriOsc tLeft => dac.chan(0); TriOsc tRight => dac.chan(1); // short for p.left => dac.chan(0); p.right => dac.chan(1); TriOsc tPan => Pan2 p => dac; // left = low, right = mid, panning = high tLeft.freq() * 1.5 => tRight.freq; tLeft.freq() * 2 => tPan.freq; // make left / right quieter 0.4 => tLeft.gain => tRight.gain; // pan at 0.3 cycles per second SinOsc lfo => blackhole; 0.3 => lfo.freq; while( true ) { lfo.last() => p.pan; 10::ms => now; }

File name to use in ChucK:

Local file to upload:

shred | code | time | remove
--- | --- | --- | ---