Forums > MaxMSP

delta or diff object?

Jan 12 2012 | 10:05 pm

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.

Jan 13 2012 | 12:25 am

there should be, but I don’t think there is. if you go to and search for ‘delta’ there’s plenty to choose from…

Jan 13 2012 | 12:46 am


Jan 13 2012 | 1:36 am

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

-- Pasted Max Patch, click to expand. --

Jan 13 2012 | 2:08 am

Very cool.
What does # indicate?

Jan 13 2012 | 8:57 am

[t f f]
[!- 0.]

something like that should also "delta"

Jan 13 2012 | 3:13 pm


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".

Viewing 7 posts - 1 through 7 (of 7 total)

Forums > MaxMSP