fixed bug. midiReadGetNextMessage() seems to be done.