You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
556 B
35 lines
556 B
|
|
import arb.soundcipher.*;
|
|
import oscP5.*;
|
|
import netP5.*;
|
|
|
|
OscP5 oscP5;
|
|
SoundCipher sc = new SoundCipher(this);
|
|
|
|
int tempo = 10000;
|
|
int inst[] = {0,4,32,98,113,116,126};
|
|
int selInst = 0;
|
|
int selTempo = 0;
|
|
|
|
int tempos[] = {2,4,8,16};
|
|
int beatsCount[] = {1,1,1,1};
|
|
float freqs[] = {0,0,0,0};
|
|
int instruments[] = {0,0,0,0};
|
|
|
|
void setup() {
|
|
size(900, 300);
|
|
|
|
oscP5 = new OscP5(this,7000);
|
|
|
|
}
|
|
|
|
void draw() {
|
|
|
|
background(125);
|
|
//sc.instrument(selInst);
|
|
//sc.pan(mouseX);
|
|
//sc.playNote( mouseY, 50,1);
|
|
|
|
displayTempo();
|
|
delay(tempo/16);
|
|
}
|