midi: pass only 2 arguments to noteOff generator (issue #85)
This commit is contained in:
parent
5aef31b9ea
commit
9ebaac199d
1 changed files with 1 additions and 1 deletions
|
|
@ -153,7 +153,7 @@ def sendMidi(name, event, *args):
|
|||
if args[2] > 0:
|
||||
m = rtmidi.MidiMessage.noteOn(*args)
|
||||
else:
|
||||
m = rtmidi.MidiMessage.noteOff(*args)
|
||||
m = rtmidi.MidiMessage.noteOff(args[0], args[1])
|
||||
|
||||
elif 'control' in event and len(args) == 3:
|
||||
m = rtmidi.MidiMessage.controllerEvent(*args)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue