I am not familiar with these libraries. Can you detect when a song has finished playing ?
If so then how about this for a plan ?
Say song 004 is playing and you want it to repeat
Read the repeat button, remember that it has been pressed then when the song ends issue the repeat command