Hi,
I hope I'm putting this question into the right section.
I'm attempting to compare a number over time. (The number is coming from a rotary encoder on an Arduino, which is being sent to pd through oscP5 Processing library.)
Basically, I want to use the rotary encoder to control the speed of an audio track. However, the rotary encoder sends values between 0-15.
I want to check the speed of the rotary encoder by seeing how much the numbers change in any direction.
So my thinking is that if I take the number of the rotary encoder (say its 4) and store it, and then a second later check the current number of the encoder it (say its moved to I will then know that its turning at a rate of 4. I can then get the track to play at a rate of 1 (normal speed). If its only turning at a rate of 2, I can play the track at 0.5.
I've attached a patch where I'm trying to compare a number over time, but I don't know if it will be any use.