I would second Christof's thought, fyi ruby has a pretty good MIDI library (eg midilib).
2016-09-09 10:54 GMT+02:00 Christof Ressi christof.ressi@gmx.at:
personally, I'd first process the MIDI file with a scripting language and create a simple text file, containing only data which is meaningful to you and formatted in a way that is easily understood by Pd (e.g. lines of text separated by semicolons).
Gesendet: Freitag, 09. September 2016 um 10:36 Uhr Von: "João Pais" jmmmpais@gmail.com An: pd-list@lists.iem.at, "patrice colet" colet.patrice@free.fr Betreff: Re: [PD] Read midi file into Pd
Another way would be about using [mrpeach/binfile] and parse the file with internals following MIDI reference we can find in following link for example:
http://www.ccarh.org/courses/253/assignment/midifile/
The first meta message should be obtained with [list split 23] where second byte gives the meta message number, the third byte gives message lenght and so on
that could be an interesting way, but I get the output not as lists, but as individual bins. Which means that somehow the bytes would have to be wrapped to make those lists?
Best,
Joao
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/
listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/ listinfo/pd-list