void fly_reset(Firefly* fly){ if(fly == 0) return; if(fly->pin == 0) return; fly->songIndex = randomSong(); //Serial.println(fly->songIndex+'a', BYTE); fly->currentNote = 0; fly->delay = randomDelay(); }
void testApp::playSong(string song) { if (fadeOutVid.getIsMovieDone()) { if (firstTimeFaded == true) { activeSong.unloadSound(); chosenSong = "sound/" + song + "0" + randomSong() + ".mp3"; activeSong.loadSound(chosenSong); activeSong.play(); firstTimeFaded = false; } } }