midi: cast arg to number to avoid formatting errors

This commit is contained in:
bordun 2021-02-07 14:35:57 +01:00
parent 0193234175
commit 44ad29d359

View file

@ -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: