yes!
I got it!
-add this code at the end of the k-rate code:
outlet_playing=g_MidiMessage && g_Msec < g_MidiMessage->time;
-and add a boolean output called "playing"
this will go high as long as the song plays and off when the song has ended.
Then use a logic inverter and a timed pulse (timers) to trigger the next load.