![]() |
Klang C++ 0.7.15
Language Reference (draft)
|
Language Guide / Functions · Generated API signature Alias for clamp in signal-flow expressions. Limits a value to the supplied bounds. Bounds on either side of zero can produce hard clipping distortion when the input exceeds them. Based on clip
klang::clipstd::clamp through Klang’s clamp.Direct call
const signal limited = clip(sample, -0.5, 0.5);Signal flow
const signal limited = sample >> clip(-0.5, 0.5);