summaryrefslogtreecommitdiff
path: root/scripts/build/catmidi.py
blob: c90d6026272ca425c5debb410dcf9d4c62485d0d (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!@PYTHON@

import sys
import midi

(h,tracks) = midi.parse (open (sys.argv[1]).read ())

tracks = tracks[1:]

for t in tracks:
    for e in t:
        print e