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. (default:0.5
).@bits
[int/float/llll]: bit depth. (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.inspect('after degrade process')