GLBasic forum

Main forum => GLBasic - en => Topic started by: matchy on 2010-Sep-24

Title: Midi reader
Post by: matchy on 2010-Sep-24
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
Title: Re: Midi reader
Post by: ketil on 2010-Sep-25
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).
Title: Re: Midi reader
Post by: Moru on 2010-Sep-25
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 :-)
Title: Re: Midi reader
Post by: matchy on 2010-Sep-25
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.