Detect cycles of an infinity rotary potentiometer

Hi vvvvorum,
I need to detect cycles of an infinity rotary potentiometer. I can simulate the behavior with the LFO (Animation) because it has Cycles output pin. I recieve data from Phidget stuff.

Please look at the attached patch.

Thanks…

PotentiometerCycles.v4p (11.9 kB)

Check the node FrameDifference (Animation) to figure this out.

Like I d did in attached patch.

Endlelss Potti.v4p (11.5 kB)

Yep! Perfect, thanks! ;)

There’s also the SumUp module, pretty handy along with framedifference.

Another question: I want to limit my endless potti value e.g. from 0 to 5. When I’m rotating clockwise the value increases from 0 to 5 and then it locks at 5 also if I continue to rotate. If I change the direction of the rotation the value soon decrease. The same thing should happen at 0.

Any help?

have you tried SumUp (Value)? doesn’t have a helppatch but does exactly that.

like this?

increase min max and add a frac node to the output to get the cycles…

Endlelss Potti.v4p (8.5 kB)

Usefull trick

I used SumUp in a wrong way. Westbam patch + FrameDifference (Animation) + SumUp (Value) work for me.

Thanks guys!