Skip to content

Instantly share code, notes, and snippets.

@hanslovsky
Created May 24, 2020 19:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hanslovsky/c49f5641805e4cadd403dc00b3362775 to your computer and use it in GitHub Desktop.
Save hanslovsky/c49f5641805e4cadd403dc00b3362775 to your computer and use it in GitHub Desktop.
midi dump with python
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