Sustain pedal to MIDI converter