Reading MIDI File, and parsing

The attached file includes many display statements, which can be deleted,
Also note that I turn on and off audio output controls and amplifiers. These can be used or not used as required.
IT only works with type 0 midi files, there is a nice converter available called sweet midi converter (roni music) available that does an excellent job of converting to type 0.
In addition, I felt it was necessary to use a Due to get the speed needed to process fast notes,
This program sends the midi commands, voices etc.. via simple serial port (at Midi serial speed) to a Modern devices Fluxamasynth board. it does a nice job. It includes many programmatically accessible features.
If you have any questions, please send them on.
Sorry for the delay, I have been busy finalizing the entire code set for my carillon machine, which is what I am creating.

midiparser.txt (20.2 KB)