@pianopaul is right GP script is you friend, and what a friend
-
Create a MIDI in block in the back view
-
right mouse click on it => Osc/GPscript Handle => Set handle, then give MIDIin as a handle name
-
go to Window (in menu bar) => Show script editor
-
copy and paste the following script in the editor and compile:
Var MIDIin : MidiInBlock On NoteEvent(msg : NoteMessage) Matching G9 from MIDIin If msg.IsNoteOn() Then MIDIin.SendNow(MakeControlChangeMessage(21,127)); Else MIDIin.SendNow(MakeControlChangeMessage(21,0)); End End
That’s it, be happy