diff --git a/MidiDevice.py b/MidiDevice.py index f9dce70..0eed869 100644 --- a/MidiDevice.py +++ b/MidiDevice.py @@ -136,10 +136,12 @@ class MidiDevice(object): o_msgL = [] if self.mip is not None: - midi_msg = self.mip.get_message() - if midi_msg and midi_msg[0]: + while True: + midi_msg = self.mip.get_message() + if not midi_msg or not midi_msg[0]: + break; - if self.monitorInFl: + if self.inMonitorFl: o_msgL.append( self._midi_data_to_text_msg(True,midi_msg[0]) ) if self.throughFl and self.mop is not None: