![]() |
Klang C++ 0.7.15
Language Reference (draft)
|
Language Guide / Functions ยท Generated namespace reference Rounds down to an integer value. Returns the largest integer value less than or equal to the input. For example, it can find the lower 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 floor
klang::floorstd::floor.Direct call
const signal index = floor(position);Signal flow
const signal index = position >> floor;