import processing.sound.*; SoundFile[] file; // Initialize data int numSounds = 0; int numTracks = 0; int bpm = 0; int divider = 0; int duration = 0; int beat = 0; boolean[][] samples; void setup() { size(640, 460); background(255); loadData(); } void draw() { background(50); stroke(255); fill(200); printControllerStatus(); if(controller[0] == "PLAY") { for(int i=0; i=divider){beat=0;} if(ereaseRow>0 && doErease && beat==0) { for(int x=0; x