midi-bridge: normalize all MIDI channels to channel 1
This commit is contained in:
@@ -94,6 +94,7 @@ def _flush(sock, buf):
|
||||
status = buf[0]
|
||||
if (buf[0] & 0xF0) == 0xF0:
|
||||
return
|
||||
status = (status & 0xF0) | 0 # normalize to channel 1
|
||||
data1 = buf[1]
|
||||
data2 = buf[2] if len(buf) >= 3 else None
|
||||
msg = midi_msg(status, data1, data2)
|
||||
|
||||
Reference in New Issue
Block a user