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

vel1 = input[0] - input[1]

vel2 = input[1] - input[2]

acceleration1 = vel1-vel2

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.

thanks!

b