Function rawsquare¶
function rawsquare(const T1 &) dsp¶
template <numeric T1>
KFR_FUNCTION T1 rawsquare(const T1& x) Square wave of a phase ramp in [0, 1) cycles.
Returns +1 for the first half of the cycle and -1 for the second half.
| x | Phase in normalized cycles ([0, 1) corresponds to one full cycle). |
| +1 or -1. |
Fully qualified name: kfr::rawsquare(const T1 &)
Declared at dsp/oscillators.hpp:244
Function rawsquare¶
function rawsquare(E1 &&) dsp¶
template <expression_argument E1>
KFR_FUNCTION expression_function<fn::rawsquare, E1> rawsquare(E1&& x) Expression overload of rawsquare ; applies element-wise to an expression.
| x | Phase expression in normalized cycles ([0, 1) corresponds to one full cycle). |
| Lazily-evaluated expression producing +1 or -1. |
Fully qualified name: kfr::rawsquare(E1 &&)
Declared at dsp/oscillators.hpp:254
This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.