From 44ad29d359646e355d2b95fd257326513c603a80 Mon Sep 17 00:00:00 2001 From: bordun <> Date: Sun, 7 Feb 2021 14:35:57 +0100 Subject: [PATCH] midi: cast arg to number to avoid formatting errors --- src/python/midi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/midi.py b/src/python/midi.py index 51939b56..1e876686 100644 --- a/src/python/midi.py +++ b/src/python/midi.py @@ -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: