delta or diff object?

Jan 12, 2012 at 10:05pm

delta or diff object?

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.

#61211
Jan 13, 2012 at 12:25am

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…

#220621
Jan 13, 2012 at 12:46am

thanks

#220622
Jan 13, 2012 at 1:36am

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

– Pasted Max Patch, click to expand. –
#220623
Jan 13, 2012 at 2:08am

Very cool.
What does # indicate?

#220624
Jan 13, 2012 at 8:57am

[t f f]
[!- 0.]

something like that should also “delta”

#220625
Jan 13, 2012 at 3:13pm

@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”.

#220626

You must be logged in to reply to this topic.