fun void panning( int hz, float offset ) { SinOsc foo => Pan2 p => dac; .2 => foo.gain; hz => foo.freq; offset => float t; 10::ms => dur T; while( true ) { 0.4 * Math.sin(0.5 * t) => foo.gain; Math.sin(t) => p.pan; T / second * 2.5 +=> t; T => now; } } // Pretty chord I found online // E3 C4 D4 G4 B4 [162, 257, 288, 385, 485] @=> int notes[]; for ( 0 => int i; i < 5 ; i++) { spork ~ panning(notes[i], i * pi / 2); 1::second => now; } // Continue forever mwahaha eon => now;