Reduced CPU usage in MidiInputDevice.