import processing.sound.*; SoundFile clickNoise, backMusic; //Declares the sound variables void setup(){ clickNoise = new SoundFile (this, "clicky.mp3"); //Loads all the sound data from the mp3 files backMusic = new SoundFile(this, "coolBeatZ.mp3"); clickNoise.play(); //Starts the sound, you can use this code whenever you want, draw, mousePressed etc backMusic.play(); } void draw(){ }