import ddf.minim.*; AudioPlayer [] players = new AudioPlayer[3]; Minim minim; int currfile=0; void setup() { size(512, 200, P2D); minim = new Minim(this); // load a file, give the AudioPlayer buffers that are 1024 samples long // player = minim.loadFile("groove.mp3"); // load a file, give the AudioPlayer buffers that are 2048 samples long for(int i=0; i=players.length)currfile=0; // open next file players[currfile].play(); } void stop() { // always close Minim audio classes when you are done with them for(int i=0; i