Sensing when a dial has stopped moving
Hey Guys,
I'm trying to figure out a good way to sense when a knob/dial has stopped moving. If I am twisting a knob (I can read in the midi from 1 - 127, channel, and control number) I want to know when the knob stops moving. Is there a better way than setting a timer when the knob is moved and reseting it after every movement of the dial and then wait so many milliseconds to determine (guess) that it's stopped moving?
Any thoughts?
Dave
Hi
you might get success with a rate of change or acceleration formula: split the output of the dial into two, via [trigger i i], and send the R/L out to R/L in of [-]. The resultant output is your rate of change. Use [pipe X] before the left inlet, where X is a variable millisecond value, until you get the result you need (sorry, not at Max at the moment). If the dial values are a little erratic, throw a [line] in there too. When the dial stops, you should get "0" out of [-]. In the past, the best examples/solutions I've seen scale everything down to 0. to 1.
Brendan
While more or less the same idea, delay is your friend here:
Thanks guys! This worked well for me!
Dave