Waveshaper

References : Posted by Partice Tarrabia and Bram de Jong
Notes :
amount should be in [-1..1[ Plot it and stand back in astonishment! ;)
Code :
x = input in [-1..1]
y = output
k = 2*amount/(1-amount);

f(x) = (1+k)*x/(1+k*abs(x))

Comments
from : kaleja[AT]estarcion[DOT]com
comment : I haven't compared this to the other waveshapers, but its behavior with input outside the [-1..1] range is interesting. With a relatively moderate shaping amounts which don't distort in-range signals severely, it damps extremely out-of-range signals fairly hard, e.g. x = 100, k = 0.1 yields y = 5.26; as x goes to infinity, y approaches 5.5. This might come in handy to control nonlinear processes which would otherwise be prone to computational blowup.

from : a[AT]b[DOT]com
comment : This is one of my faves...

from : dpsciarrino[AT]yahoo[DOT]com
comment : How did you come up with the equation?