Arduino Sketch for convert analog input into MIDI messages