This commit is contained in:
Clément Le Bihan
2021-12-14 14:44:07 +01:00
parent d341ca8d40
commit 2dfcb15624
+4 -3
View File
@@ -83,9 +83,10 @@ async def main():
for msg in MidiFile('new_song_1.mid'):
d = msg.dict()
print(msg, d)
notes.append(int(d.time * 1000), {"duration": 200, "color": default_color, "key": midi_key_my_key(d.note)})
if msg.is_meta:
d = msg.dict()
print(msg, d)
notes.append(int(d.time * 1000), {"duration": 200, "color": default_color, "key": midi_key_my_key(d.note)})
p = Partition("test",
notes