degrade
degrade(
@ratio 0.5
@bits 4
) -> llll
Generates an audio process operation for reducing sampling rate and bit-depth of a buffer.
Arguments
@ratio
[int/float/llll]: Sampling rate ratio, either as a single number, envelope, or buffer. (default:0.5
).@bits
[int/float/llll]: Bit depth, either as a single number, envelope, or buffer. (default:4
).
Output
Degrade operation [llll]
Usage
degrade
is meant to be used with the process
function:
$buffer = importaudio('singing.wav'); ## input buffer
$op = degrade(); ## processing operation
$buffer = $buffer.process($op); ## apply processing
$buffer.view('after degrade process')