Re: tanh~ distortion without expr~?

Simon Iten <[email protected]>
Newsgroups gmane.comp.multimedia.puredata.general
Message-ID <[email protected]>
Yep, this works great!! Here is the implementation and another one, that is also quite nice…

(It is a patch to be compiled with heavy, but you get the idea)




> Am 11.12.2025 um 12:35 schrieb Peter P. <[email protected]>:
> 
> Wow, quick and neat -merci bien Cyrille!
> P
> 
> * cyrille henry <[email protected]> [2025-12-11 12:11]:
>> hello,
>> 
>> For a distortion, you can use f(x) = x*(27 + x²) / (27 + 9*x²) as a good enough tanh approximation. (x need to be clipped between -3 and 3)
>> https://www.desmos.com/calculator/dxg70xbtne?lang=fr
>> 
>> Cheers
>> C
>> 
>> 
>> 
>> Le 11/12/2025 à 12:01, Peter P. a écrit :
>>> Hi,
>>> 
>>> is there a vanilla way to implement tanh~ distortion without using expr~?
>>> 
>>> Thanks!
>>> P
>>> 
>>> ---
>>> [email protected] - the Pure Data mailinglist
>>> https://lists.iem.at/hyperkitty/list/[email protected]/message/WDXKOYLK6LF5XN2UFMODWREXAV2MIQR3/
>>> 
>>> To unsubscribe send an email to [email protected] mailing list
>>> UNSUBSCRIBE and account-management -> https://lists.iem.at/
>>> 
>> 
>> 
>> ---
>> [email protected] - the Pure Data mailinglist
>> https://lists.iem.at/hyperkitty/list/[email protected]/message/X3SMOHZDQUF73N3ZHQIUQ45NQWOR45ZR/
>> 
>> To unsubscribe send an email to [email protected] mailing list
>> UNSUBSCRIBE and account-management -> https://lists.iem.at/
> 
> ---
> [email protected] - the Pure Data mailinglist
> https://lists.iem.at/hyperkitty/list/[email protected]/message/QWFI7EJH5BRAA7HGHPZKWITDBWIIDPXW/
> 
> To unsubscribe send an email to [email protected] mailing list
> UNSUBSCRIBE and account-management -> https://lists.iem.at/
>

---
[email protected] - the Pure Data mailinglist
https://lists.iem.at/hyperkitty/list/[email protected]/message/NRJRL7CP3FUDOVKU76FZATZCRWE7BNRD/

To unsubscribe send an email to [email protected] mailing list
UNSUBSCRIBE and account-management -> https://lists.iem.at/
fx_slot1.pd (application/octet-stream, 21.4 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.