Skip to content

Function sawtoothnorm

function sawtoothnorm(const T1 &) dsp

template <numeric T1>
KFR_FUNCTION T1 sawtoothnorm(const T1& x)

Sawtooth wave of a phase ramp in [0, 1) cycles (alias of rawsawtooth ).

Parameters
x Phase in normalized cycles ([0, 1) corresponds to one full cycle).
Returns
Sawtooth value in [-1, 1].

Fully qualified name: kfr::sawtoothnorm(const T1 &)

Function sawtoothnorm

function sawtoothnorm(E1 &&) dsp

template <expression_argument E1>
KFR_FUNCTION expression_function<fn::sawtoothnorm, E1> sawtoothnorm(E1&& x)

Expression overload of sawtoothnorm ; applies element-wise to an expression.

Parameters
x Phase expression in normalized cycles ([0, 1) corresponds to one full cycle).
Returns
Lazily-evaluated expression producing sawtooth values in [-1, 1].

Fully qualified name: kfr::sawtoothnorm(E1 &&)

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