Klang C++ 0.7.15
Language Reference (draft)
Loading...
Searching...
No Matches
min

Language Guide / Functions ยท Generated namespace reference

min

klang::min

Returns the smaller operand.

Returns the smaller of two values. With a fixed second argument, it can limit a signal at an upper bound.

-1-1-0.5-0.550-0.10.50.3510.8ResultInput x
min(x, 0.8)

Based on std::min.

Direct call

const signal limited = min(sample, 0.8);

Signal flow

const signal limited = sample >> min(0.8);