Pitches: MIDI input with toggle mode + clear button. + refactor.