MIDI data to text file conversion?

Alex Keegan's icon

Hi,

I'm currently running a psychology experiment and have a load of MIDI files of different performances. I was hoping to get the MIDI data into text format so I can process it in SPSS but am currently struggling to find a way to do so. I imagine this is possible in MAX, could anyone give me a hand and suggest how to do so?

Thanks,

Alex

Zachary Daulton's icon

Currently I believe seq can only read type 0 midi files. Or the other way around... I can't remember. Anyways here is basically what I would do. Parsing all the raw midi data as it flows in and then storing it in a coll. You can format it however you like - this is just an example of putting data into text form.

In this patch though I hooked up the bang wrong where it only bangs every 3 times since it is getting list data elements too. Just an example patch.

miditext.maxpat
Max Patch