midi: cast arg to number to avoid formatting errors
This commit is contained in:
parent
0193234175
commit
44ad29d359
1 changed files with 1 additions and 1 deletions
|
|
@ -235,7 +235,7 @@ def send_midi(name, event, *args):
|
|||
|
||||
else:
|
||||
|
||||
args = [int(round(x)) for x in args]
|
||||
args = [int(round(float(x))) for x in args]
|
||||
m = [mtype, args[0]]
|
||||
|
||||
if mtype == NOTE_ON:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue