Variable tanh() for saturation
-
- KVRist
- 76 posts since 5 Nov, 2015
-
Christian Schüler Christian Schüler https://www.kvraudio.com/forum/memberlist.php?mode=viewprofile&u=48996
- KVRist
- 266 posts since 23 Nov, 2004 from Hamburg, Germany
Yeah, that is exactly what I use in AriesVerb to implement variable strength saturation. To be precise, its b/a*tanh(ax), where b is the 'overunity' parameter. However I don't use tanh directly but a rational approximation of tanh, see http://www.musicdsp.org/archive.php?classid=5#238. Can also be done branchless with min/max instructions.MrBeagleton wrote:Here's another one I find even more useful. This may be everyday knowledge: (1/a)*tanh(ax) with a>0 produces a variable-ceiling tanh curve.