From 807e9274adef781cf97757a6b2634f7e742bdf80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Le=20Bihan?= Date: Tue, 14 Dec 2021 14:46:08 +0100 Subject: [PATCH] hope --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index eede2a3..f139468 100644 --- a/main.py +++ b/main.py @@ -83,9 +83,9 @@ async def main(): for msg in MidiFile('new_song_1.mid'): - if not msg.is_meta: - d = msg.dict() - print(msg, d) + 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)}) p = Partition("test",