A simple MIDI File Parser which is based on the Midi Parser from Alexandre Bique.
The original library has been converted to a Header Only C++ Library. Unlike the original implementation, we can feed the parser incrementally with data. This is important if you want to use it on a microcontroller that has only a limited amount of RAM.
It can be used as Arduino library or as regular cmake library, so you can also compile, run and debug it on a desktop computer.
For Arduino you can download the library as zip and call include Library -> zip library. Or you can git clone this project into the Arduino libraries folder e.g. with
cd ~/Documents/Arduino/libraries
git clone https://github.com/pschatzmann/arduino-midi-fileparser
You can build the example sketch on the desktop
cd ~/Documents/Arduino/libraries/arduino-midi-fileparser/examples/midi-parser
mkdir build
cd build
cmake ..
make