Godtone
Joined 17 December 2020
→Novation Launchpad Pro MK3 isomorphic keyboard code: clarification about wear |
|||
| Line 1,291: | Line 1,291: | ||
print(to_send) | print(to_send) | ||
mo.send(to_send) # turn on equivalent midi note | mo.send(to_send) # turn on equivalent midi note | ||
note_state[midi_note] += 1 | |||
elif note_state[midi_note]: # if we're releasing a key and there are equivalent keys held | elif note_state[midi_note]: # if we're releasing a key and there are equivalent keys held | ||
note_state[midi_note] -= 1 | note_state[midi_note] -= 1 | ||