![]() |
Klang C++ 0.7.15
Language Reference (draft)
|
Language Guide / Functions ยท Generated API signature Remainder for integer and floating-point values. Integer operands use the C++ remainder operator. Floating-point operands use the same remainder convention as Floating-point inputs use mod
klang::modfmod, so a negative input can give a negative result. This example uses a non-negative phase and a period of one.std::fmod. Integer inputs use the C++ remainder operator.Direct call
const signal wrapped = mod(phase, 1);Signal flow
const signal wrapped = phase >> mod(1);