Improved MIDIPlayer implementation.