Created
May 24, 2020 19:25
-
-
Save hanslovsky/c49f5641805e4cadd403dc00b3362775 to your computer and use it in GitHub Desktop.
midi dump with python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import mido | |
import sys | |
for idx, track in enumerate(mido.MidiFile(sys.argv[1]).tracks): | |
print(f'Track {idx}: {track.name}') | |
for msg in track: | |
print(f' {msg}') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment