[Sharing is so easy] Easing functions

Guillaume Bertrand's icon

Hi all,

I ported the easing function made by Gregory Taylor from Gen to js, to be able to use them outside the audio world.
Quite useful to augment the line capabilies and/or map parameters usin sin, logarithmic, exponential, and many other.
Input and output are between 0. and 1. to make it easier to use. (Help file is provided).
Guillaume

PS : (Audio versions made by Gregory Taylor are available here : https://cycling74.com/forums/easing-and-tweening-how-to-make-a-tulip/)

EDIT : Download the js + expr version. The other one contain two bugs : "BackEaseOut" and "BackEaseInOut".

g_easing.zip
zip
g_easingjs-and-expr.zip
zip
matmat's icon

Hi Guillaume,
Thanks again !
It's really useful

mathieu

Wil's icon

these are calm and relaxing..

life should be easing...

davidestevens's icon

Fab! Thanks for this Guillaume - it's going to save me some processor cycles!

Roman Thilenius's icon

javascript will save yau tons of cycles compared to plain max ... not.

davidestevens's icon

More than the audio versions? I started using those, but found they tipped my patch over the edge AFA processor load goes.

Roman Thilenius's icon

probably not more than audio, no. but still some 20 times more than [expr].

Guillaume Bertrand's icon

The first post of this thread now has a new zip file, containing expr versions of every easing.
And I corrected two bugs in "BackEaseOut" and "BackEaseInOut".

NOW it can save you tons of processor cycles ! ;-)

davidestevens's icon

Fantastic. Thanks very much Guillaume!

Roman Thilenius's icon