How do you hold a value to compare old to new?
in
Programming Questions
•
2 years ago
Hello,
I have been trying to figure this out with different methods (array, easing, etc) but have not been able to get it to work.
Basically what I need to do is something very similar to the pmouse function.
From an osc message, I need the current value to be stored, then a second later compare the old value to the brand new one to calculate the distance between. Then the old value is replaced and the cycle begins.
Basically, I am just looking to compare the value from a second ago to the new value.
Anyone got any ideas?
Thanks
1