Skip to content

Function waveshaper_tanh

function waveshaper_tanh(E1 &&, double) dsp

template <typename E1>
inline auto waveshaper_tanh(E1&& input, double saturation) { … }

Hyperbolic-tangent waveshaper.

Note

For demonstration only; musically pleasing saturation requires careful modelling.

Parameters
input Input signal expression.
saturation Drive amount; higher values increase the non-linearity.
Returns
Shaped signal expression.

Fully qualified name: kfr::waveshaper_tanh(E1 &&, double)

Declared at dsp/waveshaper.hpp:62

This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.