38 lines · 643 B · Text
RawDownload
// bandlimited ugens (Blit, BlitSaw, BlitSquare)Blit s => Pan2 p;p.left => JCRev r1 => dac.left;p.right => JCRev r2 => dac.right; // initial settings.5 => s.gain;.1 => r1.mix;.1 => r2.mix; // an array[ 0, 2, 4, 7, 9, 11 ] @=> int hi[]; // set the harmonic4 => s.harmonics; // spork the pan controlspork ~ dopan(); // infinite time loopwhile( true ){    Std.mtof( 33 + Math.random2(0,3) * 12 +        hi[Math.random2(0,hi.size()-1)] ) => s.freq;    120::ms => now;} // pan controlfun void dopan(){    float t;    while( true )    {        .7 * Math.sin(t) => p.pan;        .005 +=> t;        10::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