Safe MIDI Value Strategy?

I do the same as @Florian, all my midi input is “washed” in my global rackspace to provide clean and consistent streams of MIDI data containing Note ON/OFF, Channel aftertouch, Pitch and a very limited set of CC values for modulation wheel, sustain. These steams are channelised one per keybed or control surface.

Any further required control, comes in via Rig manager and control aliases.

No scripting is required for this, the filters are applied in the MIDI In block. For additional fine gain filtering you can imply add a MIDI filter block in the flow. Channelisation is done as the last operation before the feedback output.

To simplify the workflow I have MIDI in block favorites saved with predefined names and channel filters.

More details here