Browse Source

MidiDevice.py : get_input() now loops until all available messages are received.

master
kevin 3 years ago
parent
commit
6b845bd1b3
1 changed files with 5 additions and 3 deletions
  1. 5
    3
      MidiDevice.py

+ 5
- 3
MidiDevice.py View File

@@ -136,10 +136,12 @@ class MidiDevice(object):
136 136
         o_msgL = []
137 137
         
138 138
         if self.mip is not None:
139
-            midi_msg = self.mip.get_message()
140
-            if midi_msg and midi_msg[0]:
139
+            while True:
140
+                midi_msg = self.mip.get_message()
141
+                if not midi_msg or not midi_msg[0]:
142
+                    break;
141 143
                 
142
-                if self.monitorInFl:
144
+                if self.inMonitorFl:
143 145
                     o_msgL.append( self._midi_data_to_text_msg(True,midi_msg[0]) )
144 146
                     
145 147
                 if self.throughFl and self.mop is not None:

Loading…
Cancel
Save