Interpolation methods / Re-mapping with various curves (exponential / logarithmic, sinusoidal, etc) - add your tricks here...

Tarik's icon

This is a continuation of Mark Durham's thread "Re-mapping a range of numbers - add your tricks here...."

I'm continuing it here with more associated terms in the title, so that hopefully this super useful info will be easier to find.

Also - I added a really cool adjustable curve to the heap...!

Max Patch
Copy patch and select New From Clipboard in Max.

👽'tW∆s ∆lienz👽's icon

hey, great idea! 🙌
here's another kind of circular for comparison, and then i had a weird obsession with sigmoid after taking a short course on neural networks so they're there as well(even though one doesn't map to the same normalized values it can be useful for infinitely large ranges like tanh), plus a bunch from here:
http://www.flong.com/texts/code/shapers_exp/
http://www.flong.com/texts/code/shapers_circ/

Max Patch
Copy patch and select New From Clipboard in Max.

i'll probably finish up some more of the circ ones later along with these as well:
http://www.flong.com/texts/code/shapers_poly/
http://www.flong.com/texts/code/shapers_bez/
(unless someone else wants to have a go)

For everything here, they might need correct parameters entered before working correctly(just in case it needs mentioning).

_________________________________________________________________________________________
and then from here:
https://www.iquilezles.org/www/articles/functions/functions.htm
i've created them in audio versions because they're very interesting as envelopes:

Max Patch
Copy patch and select New From Clipboard in Max.

but you can easily return them to event-mapping status by removing the tilde(~) from "gen~" and then cutting out the "+=" op along with everything above it(connecting "in 1" straight through to whatever the output of "+=" is connected to)...
(on the other hand, if you like the audio versions, i also recommend creating an inlet substituted for the 1 going into the input of "+=" as that can be thought of as a speed/length multiplier for the envelopes).

cheers🍻

Rob Ramirez's icon