You're obviously well ahead enough that you can read Note On/ Note Off/ Program Controls information.
Really, if you must do this, then the .MID reader _must_ be your own - the techniques are very much up to you.
I do remember that my .MID read-in function was an absolute pain - I hated the format - I remember that at one point in the code I had to (file) SEEK backwards, to reread the data, then forwards again. Urgh.
It's a crap format, which is why all sequencer writers create their own load/save format.
Also my program (called 'Midistudio') was written for the Atari and was written in GFA Basic, which like Blitz was a piece of genius that gave assembler-like speed; so it would be a little hard to give you the code.
Good luck.
Email me directly if you want to bounce any more ideas off me.
Really, if you must do this, then the .MID reader _must_ be your own - the techniques are very much up to you.
I do remember that my .MID read-in function was an absolute pain - I hated the format - I remember that at one point in the code I had to (file) SEEK backwards, to reread the data, then forwards again. Urgh.
It's a crap format, which is why all sequencer writers create their own load/save format.
Also my program (called 'Midistudio') was written for the Atari and was written in GFA Basic, which like Blitz was a piece of genius that gave assembler-like speed; so it would be a little hard to give you the code.
Good luck.
Email me directly if you want to bounce any more ideas off me.