This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import arb.soundcipher.*; | |
SoundCipher sc = new SoundCipher(this); | |
SCScore score = new SCScore(); | |
score.VIBRAPHONE; | |
//The constants are implemented by both the SoundCipher and SCScore classes so they can be accessed using 'dot' notation from instances of any of these classes, for example; | |
//after: SoundCipher sc = new SoundCipher(this); | |
//access contants using: sc.FLUTE | |
//after: SCSCore score = new SCScore(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import arb.soundcipher.*; | |
SoundCipher sc = new SoundCipher(this); | |
for (int n = 7 ; n < 50; n += 7) { // N = average North wind direction | |
if (n < 5) { | |
sc.playNote(80, 60, 50); | |
} else if (n < 2) { | |
float[] pitches = {100, 64, 67, 71}; | |
sc.playChord(pitches, 80, 4); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import arb.soundcipher.*; | |
int N = 2; | |
if (N < 3){; // N = average North wind direction | |
line ( 0, 0, 0, 0); | |
SoundCipher sc = new SoundCipher (this); | |
sc.repeat(3); | |
sc.playNote(40, 75, 2); | |
} |