Here is the midi parsing code i dug up. Sorry the demo patch is such
The code is pretty well documented and straightforward.
Basically it parses a midi file and spews out the data either
textually or in raw form appropriate
for sending directly to a midi device.
The midi file can be specified as either an absolute path.If it is
not found the max search path is