Hi - I’m trying to calculate the velocity and acceleration of a generic chop input. I’m shaky with the math, but since my intention to look at this frame by frame (making time=1), I’m doing:
where input[0] is the latest sample in the channel
I’ve made a simple tox to do these calculations but I’m seeing some weird results. When I feed it a ramp pattern, velocity and acceleration values vary just ever so slightly. I’ve attached the tox and would appreciate a look to see if this is the proper way to do these calculations. I’m using delay chops, specifying delays in frames, and maths rather than python to do the calculations.
Thank you! Did not know the ‘slope’ chop existed… I am seeing some of the same artifacts but far less. Anyone have any ideas of why it would be doing this?
Here’s how the data looks. First column is speed, second acceleration. Sometimes I get weird little blips in acceleration and/or velocity. Maybe its just because im feeding this with a pattern.