Skip to content

Instantly share code, notes, and snippets.

@abramhindle
Created February 15, 2015 18:09
Show Gist options
  • Save abramhindle/22e85dee365271671a21 to your computer and use it in GitHub Desktop.
Save abramhindle/22e85dee365271671a21 to your computer and use it in GitHub Desktop.
Very loud but pretty dramatic naive flat wave generator
Step s => dac;
100 => int maxsamps;
1000 => int reps;
while(true) {
for( 0 => int samps; samps < maxsamps; samps++ ) {
Std.rand2(-16,16) * 1000.0 => s.next;
samps::samp => now;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment