Skip to content

Instantly share code, notes, and snippets.

@roshanvid
Created December 26, 2012 19:25
Show Gist options
  • Save roshanvid/4382412 to your computer and use it in GitHub Desktop.
Save roshanvid/4382412 to your computer and use it in GitHub Desktop.
Moog count => dac;
std.mtof( 120 ) => count.freq;
StifKarp three => dac;
std.mtof( 100 ) => three.freq;
Mandolin five => dac;
std.mtof( 80 ) => five.freq;
0.2 => float ttime;
for(1 => int i; i; i++){
<<<i>>>;
if( i%15 == 0){
three.noteOn(0.5);
five.noteOn(0.5);
ttime::second => now;
continue;
}
if( i%3 == 0){
three.noteOn(0.5);
ttime::second => now;
continue;
}
if(i%5 == 0){
five.noteOn(0.5);
ttime::second => now;
continue;
}
count.noteOn(0.5);
ttime::second => now;
three.noteOff(1);
five.noteOff(1);
count.noteOff(1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment