Using kslider to activate gate objects

LordBlythe's icon

Hi,

I am trying to activate and deactivate a gate object using K slider. I currently have the kslider routed into two sel objects, the idea being one activates and the other deactives the toggle for the gate object. However, as it is currently patched, both midi notes can either activate or deactivate the gate. How can I make it so that one sel can only activate, and the other can only deactivate my gate object?

Thank youuu :)

gatesandstuff.maxpat
Max Patch

Sébastien Gay's icon