CC control of looper plug in

I have a Cybery loop select/midi controller (if you ever see one buy it, or better yet two - one for the floor, one for the amp FX loop!).
Anyways, I have been trying to get it to control the record/play functions of the super looper plugin. I don’t have a good way to convert the single midi patch # or cc foot button press ( cybery supports either with up to 3 separate messages) to a binary on/off command for the record or play/pause functions. Can anyone point me to a good model example for making one foot button be say 16,1,127 on the first press and 16,1,0 on the second press, please?
Thx
m

The only solution that comes to my mind is to use CV logic operators and implement a flip-flop… good luck :smiley: