SCI: Move MIDI event processing out of parseNextEvent