Yes. Exactly. Thank youAh so you basically want "no matter how much I rotate the encoder knob, stop at the end positions".
1 > 2 > 3 > 4 > 4 > 4 ...
4 > 3 > 2 > 1 > 1 > 1 ...
If I'm understanding correctly? If so you're describing a logic clamp, which, good news, can be implemented in firmware. Probably just take me a couple nights to implement and test out...