Made some fixes to the MIDI processing sketch and MIDI example