Something like this: Remap MIDI messages without using the MIDI Filter plugin
Or this: Note on off to midi cc's sugestions - #7 by David-san