Easing and tweening: how to make a tulip?

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

Hi
I'm having fun messing with (and breaking) some equations that relate to tweening and interpolation on linear input. What I would like is a simpler mathematical function to get a "tulip" shaped output. That is to say, given linear input, the output ramps logarithmically over the 1st quarter, then stabilises before ramping exponentially over the last quarter. This is vague, I know. I guess I'm looking for a reversed extreme cosine output; the following simple patch probably describes it better:

Forgive please, I am not math speaker good.

Brendan

Gregory Taylor's icon

Man, I've been intending to put this up as a Toolbox entry for a while, and things got in the way.

Here's a zip file containing gen~-based examples of all the standard easing functions. I hope they're of some help, Brendan.

StandardEasingFunctions.zip
zip
brendan mccloskey's icon

Pretty damn comprehensive Gregory, many thanks (wasn't there a similar thread request recently??)*.
I look forward to playing with these.

Brendan

why aren't search results chronological?

Gregory Taylor's icon

By the way - those tweening and easing functions are now a part of the Easing package you can download from the Package Manager - you get the gen~ stuff *and* Max externals as well.

Win-Win

brendan mccloskey's icon

Win Win indeed!