midi: clean
This commit is contained in:
parent
ae0994e57e
commit
de3440d715
2 changed files with 4 additions and 7 deletions
|
|
@ -11,9 +11,6 @@ MIDI_TO_OSC = {
|
|||
POLY_PRESSURE: '/key_pressure'
|
||||
}
|
||||
|
||||
for i in range(SYSTEM_EXCLUSIVE + 1, 256):
|
||||
MIDI_TO_OSC[i] = '/sysex'
|
||||
|
||||
OSC_TO_MIDI = {
|
||||
'/note': NOTE_ON,
|
||||
'/control': CONTROL_CHANGE,
|
||||
|
|
@ -36,7 +33,7 @@ def midi_str(message):
|
|||
else:
|
||||
|
||||
status = message[0]
|
||||
channel = (status & 0xF) + 1
|
||||
channel = (status & 0x0F) + 1
|
||||
|
||||
try:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue