Variable tanh() for saturation

DSP, Plugin and Host development discussion.
RELATED
PRODUCTS

Post

Removed
Last edited by MrBeagleton on Mon May 29, 2017 7:45 pm, edited 1 time in total.

Post

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.
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.

Post Reply

Return to “DSP and Plugin Development”