Hi
i have a simple (i hope) question. How can i read a midi file stored in my hard disk. What i want to do is to read data from a .mid file and write them in a table.
Thanks
How to read a midi file.
Hi
i have a simple (i hope) question. How can i read a midi file stored in my hard disk. What i want to do is to read data from a .mid file and write them in a table.
Thanks
question is a bit vague
do you want to play the midi file in Pd? in which case mrpeach has some objects for that, they work well (at least i could record a midi file from my patch and load it into something else, haven't tried playback but that almost certainly works too).
if you just want to load raw data and then parse it yourself, then you might need an external for loading raw byte-data into pd float tables - should be rather simple to write, the tricky part would be resizing the table. I might attempt it sometime, something like [rawfiler] or [bytefiler] to match [soundfiler] or whatever (soundfiler supports raw data, but not 8bit data...).
if you want to load midi files as audio into tables for playback, you need something like timidity to convert .mid into .wav or so.
Thank you claudius for the reply. What i wanted to do was simple finally. I post it here just in case someone is looking for the same thing. So [midifile] and [seq] objects can read a .mid file stored in the hd. They work good both. With [tabwrite] can write the numbers in a table. [midiparse] may be useful as well for someone who needs only some of the midi data.
>>(at least i could record a midi file from my patch and load it into something else, >>haven't tried playback but that almost certainly works too).
I'm quite interested in this. Into which program did you load midi files written with pd?
I wonder how to open midi files made by pd with some sheet music editing program.
Oops! Looks like something went wrong!