![]() |
Klang C++ 0.7.15
Language Reference (draft)
|
Language Guide / Functions ยท Generated namespace reference Rounds up to an integer value. Returns the smallest integer value greater than or equal to the input. For example, it can find the upper sample index for a fractional position. Scaling the input before rounding and scaling it back afterwards can quantise audio for a bitcrushing effect. Based on ceil
klang::ceilstd::ceil.Direct call
const signal index = ceil(position);Signal flow
const signal index = position >> ceil;