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

Language Guide / Functions ยท Generated namespace reference

max

klang::max

Returns the larger operand.

Returns the greater of two values. A lower bound of zero can half-wave rectify a sample.

-10-0.50.2500.50.50.7511ResultInput x
max(x, 0)

Based on std::max.

Direct call

const signal rectified = max(sample, 0);

Signal flow

const signal rectified = sample >> max(0);