midi-player
midi-player copied to clipboard
Load another song without re-triggering onStop
Pause operates asynchronously, so if you call pause();$('#player').midiPlayer.play(song2data); It might pause at the beginning of song2 instead of during song1.
I might be wrong about this...
My problem is I want to load a second song as soon as the first song is over.
my onStop hook does
songNumber++;
jQuery('#player').midiPlayer.play(song[songNumber]);
But for some reason, it's always getting called twice (so I don't hear the odd numbered songs).