[PD] tanh~ (core dumped)

Claude Heiland-Allen claude at mathr.co.uk
Fri Sep 1 08:09:47 CEST 2017


On 01/09/17 06:42, Claude Heiland-Allen wrote:
> On 15/08/17 23:46, Matt Davey wrote to <pd-list at 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


Claude
-- 
https://mathr.co.uk



More information about the Pd-list mailing list