rounding
rounding(
@value 1
@nearest 1
) -> llll
Generates an audio process operation for applying signal rounding to a buffer.
Arguments
@value
[int/float/list/llll]: Rounding value, as either a single number, envelope, or buffer. (default:1
).@nearest
[int]: Rounding behavior (default:1
).0
: Floor1
: Nearest
Output
Rounding operation [llll]
Usage
rounding
is meant to be used with the process
function:
$buffer = importaudio('singing.wav'); ## input buffer
$op = rounding(0.2); ## processing operation
$buffer = $buffer.process($op); ## apply processing
$buffer.view('after rounding process')