Skip to content

Instantly share code, notes, and snippets.

@adubspea
Created August 28, 2015 15:30
Show Gist options
  • Save adubspea/71f0487d40d0d466265c to your computer and use it in GitHub Desktop.
Save adubspea/71f0487d40d0d466265c to your computer and use it in GitHub Desktop.
Wind Scale
import arb.soundcipher.*;
SoundCipher sc = new SoundCipher(this);
SCScore score = new SCScore();
int n = 2;
int nne = 1;
int ene = 2;
int e = 3;
int ese = 3;
int se = 3;
int sse = 4;
int s = 10;
int ssw = 14;
int sw = 6;
int wsw = 10;
int w = 15;
int wnw = 12;
int nw = 10;
int nnw = 6;
if (n > 1)
score.addNote(1, 11, 11, 26, 100, 1, 2, 64); //vibraphone
if (nne > 0);
score.addNote(2, 11, 11, 36, 100, 1, 2, 64);
if (ene > 1);
score.addNote(3, 11, 11, 46, 100, 1, 2, 64);
if (e > 2);
score.addNote(4, 11, 11, 56, 100, 1, 2, 64);
if (ese > 2);
score.addNote(5, 11, 11, 66, 100, 1, 2, 64);
if (se > 2);
score.addNote(6, 11, 11, 76, 100, 1, 2, 64);
if (sse > 4);
score.addNote(7, 11, 11, 86, 100, 1, 2, 64);
if (s > 9);
score.addNote(8, 11, 11, 96, 100, 1, 2, 64);
if (ssw > 10);
score.addNote(9, 11, 11, 106, 100, 1, 2, 64);
if (sw > 5);
score.addNote(10, 11, 11, 116, 100, 1, 2, 64);
if (wsw > 9);
score.addNote(11, 11, 11, 126, 100, 1, 2, 64);
if (w > 10);
score.addNote(11, 11, 11, 136, 100, 1, 2, 64);
if (wnw > 10);
score.addNote(12, 11, 11, 146, 100, 1, 2, 64);
if (nw > 9);
score.addNote(13, 11, 11, 156, 100, 1, 2, 64);
if (nnw > 5);
score.addNote(14, 11, 11, 166, 100, 1, 2, 64);
score.play(1);
//How do I make the > into =? Rather than having it say, if n > 2, play this, I would like it to be if n = 2 play this.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment