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",