A simplistic MIDI parser for Arduino
amidino parses a stream of bytes and calls back registered handlers for specific MIDI commands. Its primary goal is to be simple and reliable.
There is also a polyphonic to monophonic "the still-held last-pressed note plays now" algorithm included.
- supports parsing of voice and system realtime messages
- system common and system exclusive messages are not supported and are correctly ignored
- running status support
- decoupled from the actual MIDI input - it is your task to provide the MIDI byte stream
- callback based
- small memory footprint
Put the files into libraries/amidino
subdirecory of your Arduino sketches directory and restart Arduino IDE.
An example sketch should be accessible from the File/Examples/amidino
menu.
You can also generate the documentation using the doxygen tool in the amidino/doc
directory.
See the included example sketch for basic usage. The doxygen docs should be extensive enough to guide you through the rest.
Developed using Arduino 1.0.5.
Implemented while looking at http://home.roadrunner.com/~jgglatt/tech/midispec.htm