Forums > MaxMSP

delta or diff object?

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


January 13, 2012 | 12:25 am

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…


January 13, 2012 | 12:46 am

thanks


January 13, 2012 | 1:36 am

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

– Pasted Max Patch, click to expand. –

January 13, 2012 | 2:08 am

Very cool.
What does # indicate?


January 13, 2012 | 8:57 am

[t f f]
[!- 0.]

something like that should also "delta"


January 13, 2012 | 3:13 pm

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


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