MidiDevice.py : get_input() now loops until all available messages are received.
This commit is contained in:
parent
55695164b5
commit
6b845bd1b3
@ -136,10 +136,12 @@ class MidiDevice(object):
|
|||||||
o_msgL = []
|
o_msgL = []
|
||||||
|
|
||||||
if self.mip is not None:
|
if self.mip is not None:
|
||||||
|
while True:
|
||||||
midi_msg = self.mip.get_message()
|
midi_msg = self.mip.get_message()
|
||||||
if midi_msg and midi_msg[0]:
|
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]) )
|
o_msgL.append( self._midi_data_to_text_msg(True,midi_msg[0]) )
|
||||||
|
|
||||||
if self.throughFl and self.mop is not None:
|
if self.throughFl and self.mop is not None:
|
||||||
|
Loading…
Reference in New Issue
Block a user