[PD] tanh~ (core dumped)

Alexandre Torres Porres porres at gmail.com
Tue Aug 15 22:50:47 CEST 2017


hi, epxr~ (which is vanilla) has a tanh function. I updated the expr help
file to include all its functions for the 0.48-0 release, in case people
missed it.

so an easy vanilla tanh~ implementation can just be: [expr~ tanh($v1)]

cheers


2017-08-15 17:41 GMT-03:00 Kosmas Giannoutakis <
giannoutakiskosmas at hotmail.com>:

> Hi, i want to implement the tanh function in PD Vanilla. I use the formula
> y(x) = (1 - b*e^-(a*x + lnb))/(1/b + e^-(a*x + lnb)) where (a) is a
> steepness parameter and b controls the amplitude range. You can see my
> implementation which seems to work,  but when I incorporate it to larger
> patches, I get a core dumped...
>
> Any clue why is this happening or any suggestions for a better
> implementation?
>
> Thanks,
> Kosmas
>
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> https://lists.puredata.info/
> listinfo/pd-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20170815/b3f2492f/attachment.html>


More information about the Pd-list mailing list