delta or diff object?

strangevector's icon

Sort of new to the world of max.

Is there an object that will output the difference between the incoming value on this bang and the last bang?

ie: value@lastbang - value@thisbang

I know I can make it with a couple of objects, just wondering if there is a single object that does it?

Other objects related to derivatives as such?

velocity, acceleration, etc.

Floating Point's icon

there should be, but I don't think there is. if you go to maxobjects.com and search for 'delta' there's plenty to choose from...

strangevector's icon
Christopher Dobrian's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Here's a super-simple (but totally usable) one for ints.

strangevector's icon

Very cool.
What does # indicate?

Roman Thilenius's icon

[t f f]
[!- 0.]

something like that should also "delta"

Christopher Dobrian's icon

@strangevector

See Arguments and Special Characters in Max, the section on "Using the pound sign (#) in objects and message box objects".

See also, Max Basic Tutorial 15: Abstractions, the section titled "Using an abstraction with replaceable arguments".