Skip to content

Instantly share code, notes, and snippets.

@lfzawacki
Created January 3, 2012 05:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lfzawacki/1553625 to your computer and use it in GitHub Desktop.
Save lfzawacki/1553625 to your computer and use it in GitHub Desktop.
Algorithmic Symphonies
class Symph
{
Step s;
fun void connect(UGen u) { s => u; }
fun void next(int sa) { (sa & 0xff) / 128. - 1. => s.next; }
}
Symph s;
s.connect(dac);
0 => int t;
while (true) {
t++;
t*(t>>12&t>>12) => int sa;
sa => s.next;
6::samp => now;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment