difference between previous value and current value?

pfke's icon

Hello, fellow forumers,

I need guidance in the following scenario: Let's say a random object outputs 5, the next number it outputs is 7, the difference between those numbers is 2, but how can I implement that in the patch? I've been looking at different objects, such as through, minimum, maximum, change... but I just can't figure out how to implement a way too see the difference as a number from previous value to the next incoming value :(

I need a way to monitor the distance/difference between the incoming number values,

Cheers,

Pfke

mzed's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Use this as an abstraction:

pfke's icon

You're a LEGEND, sir.

Thank you!!