If you want to trigger specific midi events from incoming hardware , be it switches or varying intensity signals, then you really ought to look at a small bespoke Arduino or axoloti project perhaps as an alternative (although basing your project around an existing piece of gear may make more sense, the axoloti or arduino can be a MIDI interpreter too [much cheaper solution if you’re prepared to dabbed a bit in code-land] )