detection of clockwise or counterclockwise direction. RESOLVED

benjamin vyger's icon

Hello.

I'm having trouble triggering a CW or CCW button depending on the direction of a 32 steps dial

Specifically when dial goes from 31 to 0 or 0 to 31, I would like no changes in the direction

In the patch below, CW or CWW is triggered but there is a a normal problem when I go from 31 to 0 or from 0 to 31.

trig cw or cww dependably of a dial
Max Patch
Copy patch and select New From Clipboard in Max.

Thanks in advance !

double_UG's icon

something like this

Max Patch
Copy patch and select New From Clipboard in Max.

benjamin vyger's icon

Oh thanks a lot!

I couldn't imagine the solution by myself!

I am very grateful to you!

benjamin vyger's icon

Thanks again! I have to test your system in my real use.