From bf10d1b14e2c9dc91faab65c8edce22a2a3974b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Le=20Bihan?= Date: Tue, 14 Dec 2021 14:46:46 +0100 Subject: [PATCH] hope --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index f139468..f0ea06b 100644 --- a/main.py +++ b/main.py @@ -86,7 +86,7 @@ async def main(): d = msg.dict() print(msg, d) if "note" in d: - notes.append(int(d.time * 1000), {"duration": 200, "color": default_color, "key": midi_key_my_key(d.note)}) + notes.append(int(d['time'] * 1000), {"duration": 200, "color": default_color, "key": midi_key_my_key(d["note"])}) p = Partition("test", notes