Skip to content

Function trianglenorm

function trianglenorm(const T1 &) dsp

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

Triangle wave of a phase ramp in [0, 1) cycles (alias of rawtriangle ).

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

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

Function trianglenorm

function trianglenorm(E1 &&) dsp

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

Expression overload of trianglenorm ; 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 triangle values in [-1, 1].

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

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