Skip to content

Instantly share code, notes, and snippets.

@ohmygodwin
Created April 28, 2014 04:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ohmygodwin/11361471 to your computer and use it in GitHub Desktop.
Save ohmygodwin/11361471 to your computer and use it in GitHub Desktop.
import arb.soundcipher.*;
SoundCipher midi = new SoundCipher(this);
float[] pitches = {60, 64, 66, 67, 62, 71, 69, 61, 65, 63, 68, 70};
void setup() {
}
void draw() {
for (int i = 0; i < 12; i++) {
midi.playNote(pitches[i], random(50, 100), random(.25, 1));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment