hope
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user