30 lines · 480 B · Text
RawDownload
// another candidate for least exciting demo // patchSinOsc s => JCRev r => dac;.5 => r.gain;.075 => r.mix; // note number20 => float note; // go up to 127while( note < 128 ){    // convert MIDI note to hz    Std.mtof( note ) => s.freq;    // turn down the volume gradually    .5 - (note/256.0) => s.gain;     // move up by whole step    note + 2 => note;     // advance time    .125::second => now;} // turn off s0 => s.gain;// wait a bit2::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