Midi reader

Previous topic - Next topic

matchy

Moru's midi creator lib is great for writing midi files and I see the the read midi functions are left empty. I've tried to write these but I can't get it working.
Any chance of anyone able to update this lib?  O_O

ketil

Is it the readtrack and readnote functions you are referring to ?
Other io functions in this code might also fail on some systems since it's not handeling endianess (checking big-/little- endian).
"Sugar makes the world go 'round. Caffeine makes it spin faster."

Moru

I was under the impression MIDI was just bytes or MIDI variable-length integer notation? Only other reference I can find is some values in the fileformat that is big endian order. But I'm no expert, just read up on the format a bit and had a go at it and it worked :-)

matchy

Yes, I tried to update the readtrack and readnotes but I think I wasn't prepared for the format. My aim is just to retrieve the note frequency and duration and I temporarily do this my exporting from another application.