Pure Data: How can I get the difference between two subsequent numbers

501 views Asked by At

Beginner Pd user here. I have a number message, and I am trying to get the numerical difference between the current number and the previous number - does anyone know of a simple way to do this?

1

There are 1 answers

0
gilbertohasnofb On BEST ANSWER

This is probably the simplest way to do it:

enter image description here

If you need the absolute difference, use the object abs before the final result (to ignore the negative sign).