On 01/09/17 06:42, Claude Heiland-Allen wrote:
On 15/08/17 23:46, Matt Davey wrote to pd-list@lists.iem.at:
I've always used:
tanh(x) ~= x*(27+x*x) / (27+9*x*x)
works well and is pretty CPU cheap
Nice.
I also see it's smooth if you clip the input to -3..3: http://www.musicdsp.org/showone.php?id=238 found via a comment in https://github.com/enzienaudio/heavylib/blob/master/hv.tanh.pd