Skip to content

Function waveshaper_poly

function waveshaper_poly(E1 &&, fbase, fbase, Cs...) dsp

template <typename E1, typename... Cs>
inline auto waveshaper_poly(E1&& input, fbase c1, fbase c3, Cs... cs) { … }

Polynomial (odd-only) waveshaper using Horner evaluation.

Note

For demonstration only; musically pleasing saturation requires careful modelling.

Parameters
input Input signal expression.
c1 Coefficient of the linear term.
c3 Coefficient of the cubic term.
cs Coefficients of the higher odd-order terms (x^5, x^7, ...).
Returns
Shaped signal expression.

Fully qualified name: kfr::waveshaper_poly(E1 &&, fbase, fbase, Cs...)

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