Hello all, I’m trying to use the SFEMP3 shield Library to play 1 of up to 48 mp3’s depending on which of 48 sensors are active. I was able to test the example sketch file successfully, but don’t know how to call up the desired file by number.
According to the examples in SFEMP3 player library you can play a file using numbers 0-9 but can play up to 255 files.
/**
\brief Index of the current track playing.
Value indicates current playing track, used to populate “x” for playing the
filename of “track00x.mp3” for track000.mp3 through track254.mp3
*/
int8_t current_track = 0;
My question is how do I call up a specific track by number, for not just 0 thru 9 but lets say #25 of 36 or 41 0f 48?
From reading the example and library files it seems that by number would be easier than by filename.
I’ve tried a few things, like:
for (int i=0; 1<16; 1++)
if (analogPin==0) {
if(activePad[pad]
MP3player.playTrack(current_track[i]);
eles
MP3player.stopTrack();
Any thoughts?
Thanks much, in advance.