midi-bridge: normalize all MIDI channels to channel 1

This commit is contained in:
2026-06-24 00:50:39 -07:00
parent ed8cb7ca5a
commit f919af3d8b
+1
View File
@@ -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)