parse a midi file

binaryjesus coolman.guron at
Tue Sep 16 19:03:08 CEST 2008

On Sep 16, 9:48 pm, Mr.SpOOn <mr.spoo... at> wrote:
> Hi,
> I need to parse a midi file with Python. What I exactly need is the
> possibility to distinguish all notes in all channels in a midi file
> and put them in a list or something.
> I've found this:
> I'm not sure how it does work, but looking at the code I saw it can
> get input from the terminal, so I tried:
> python < mymidi.mid
> All it does is printing a lot of strange symbols.
> Do you know other easy way to parse a midi file in Python? Or how
> actually does this module work?
> Thanks,
> Carlo

hi, just looked at the code. try this

python -i mymidi.mid

to see all the debug information do
python -p -d -i mymidi.mid

More information about the Python-list mailing list