[sdiy] tanh() and approximations and warping, why is my maths wrong?

Matthias Puech matthias.puech at gmail.com
Thu May 23 00:23:49 CEST 2019

Here is a more reasonable approximation between -1 and 1, based on
continued fraction expansion of tanh:
3x / (3 + x^2)
More terms will give you less error over a larger interval. Is this what
you are looking for?

On Wed, May 22, 2019 at 11:52 PM Gordonjcp <gordonjcp at gjcp.net> wrote:

> Hi folks,
> I was giving a bit of thought to how ladder filters tune and of course
> you need to warp Fc a bit for the frequency response to "track" properly
> at higher cutoff settings.
> Looking at various bits and pieces it looks like the trick is to use
> some function of tan() to calculate how much the filter cutoff needs
> "bent down" by.  I can't figure this out, because I suck at maths.
> However if I use the "quick tanh approximation" x/(1+x) to warp my
> normalised cutoff (ie. 6.28 * Fc / Fs) - which is at best a very very
> roughly tanh() shaped function and a very loose approximation - my
> actual filter resonant frequency comes out absolutely bob on.
> Can anyone explain the maths to me?
> --
> Gordonjcp
> _______________________________________________
> Synth-diy mailing list
> Synth-diy at synth-diy.org
> http://synth-diy.org/mailman/listinfo/synth-diy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://synth-diy.org/pipermail/synth-diy/attachments/20190523/ad3109f6/attachment.htm>

More information about the Synth-diy mailing list