19 changed files with 203 additions and 77 deletions
@ -0,0 +1,28 @@ |
|||||
|
String[] controller = {"STOP", "UNSET", "BANK1", "PATTERN"}; |
||||
|
|
||||
|
void printControllerStatus() { |
||||
|
fill(200); |
||||
|
text("PLAY/STOP:", 10, height-75); |
||||
|
text("REC/OVERDUB/ERASE:", 10, height-55); |
||||
|
text("BANK:", 10, height-35); |
||||
|
text("PATTERN/BPM/SWING:", 10, height-15); |
||||
|
|
||||
|
fill(240); |
||||
|
text(controller[0], 180, height-75); |
||||
|
text(controller[1], 180, height-55); |
||||
|
text(controller[2], 180, height-35); |
||||
|
text(controller[3], 180, height-15); |
||||
|
|
||||
|
fill(200); |
||||
|
text("PATTERN:", (width/2)+20, height-75); |
||||
|
text("BPM:", (width/2)+20, height-55); |
||||
|
text("SWING:",(width/2)+20, height-35); |
||||
|
|
||||
|
fill(240); |
||||
|
text(patternLabel, (width/2)+100, height-75); |
||||
|
text(bpm, (width/2)+100, height-55); |
||||
|
text(swing, (width/2)+100, height-35); |
||||
|
|
||||
|
stroke(200); |
||||
|
line(width/2, height-85, width/2, height-15); |
||||
|
} |
Binary file not shown.
@ -1,13 +1,18 @@ |
|||||
void loadData() { |
|
||||
|
void setData() { |
||||
|
|
||||
numSounds = 10; |
|
||||
numTracks = numSounds;//4; |
|
||||
|
numSounds = 5; |
||||
|
numTracks = numSounds; |
||||
bpm = 280; |
bpm = 280; |
||||
|
pattern = 1; |
||||
|
swing = 50; |
||||
divider = 16; |
divider = 16; |
||||
duration = int((60/float(bpm))*1000); |
duration = int((60/float(bpm))*1000); |
||||
beat = 0; |
beat = 0; |
||||
|
|
||||
String bank = "bank1"; |
|
||||
|
String bank = controller[2]; |
||||
|
|
||||
|
println(bank); |
||||
|
println(patternLabel); |
||||
|
|
||||
samples = new boolean[numTracks][divider]; |
samples = new boolean[numTracks][divider]; |
||||
for(int i=0; i<numTracks; i++) { |
for(int i=0; i<numTracks; i++) { |
@ -0,0 +1,16 @@ |
|||||
|
String[] controller = {"STOP", "UNSET", "BANK", "PATTERN"}; |
||||
|
|
||||
|
|
||||
|
void printControllerStatus() { |
||||
|
fill(200); |
||||
|
text("PLAY/STOP:", 10, height-75); |
||||
|
text("REC/OVERDUB/ERASE:", 10, height-55); |
||||
|
text("BANK:", 10, height-35); |
||||
|
text("PATTERN/BPM/SWING:", 10, height-15); |
||||
|
|
||||
|
fill(240); |
||||
|
text(controller[0], 180, height-75); |
||||
|
text(controller[1], 180, height-55); |
||||
|
text(controller[2], 180, height-35); |
||||
|
text(controller[3], 180, height-15); |
||||
|
} |
Loading…
Reference in new issue