I want to get the difference between the value of the previous frame and the value of the current frame. Specifically, I want to identify the frame when the sawwave is about to drop sharply from its maximum value.
If you know some techniques, please let me know.