import processing.sound.*; SoundFile[] file; // Initialize data int numSounds = 0; int numTracks = 0; int bpm = 0; int pattern = 0; int swing = 0; int divider = 0; int duration = 0; int beat = 0; String patternLabel = "NO PATTERN"; String swingLabel = "100%"; boolean[][] samples; void setup() { size(640, 460); background(255); loadData(); setData(); } void draw() { background(50); stroke(255); fill(200); printControllerStatus(); if(controller[0] == "PLAY") { for(int i=0; i=divider){beat=0;} // ################################## End of beat if(beat==0) { if(doRec == false) { controller[1] = "UNSET"; } doRec = false; } if(ereaseRow>0 && doErease && beat==0) { for(int x=0; x