normalize
normalize(
@level -6
@mix 1
@rms 0
@ampunit 1
) -> llll
Generates an audio process operation for normalizing the amplitude of a buffer.
Arguments
@level
[int/float]: reference level. (default:-6
).@mix
[int]: dry/wet mix, between 0 and 1. (default:1
).@rms
[int]: use root mean square. (default:0
).0
: off1
: on
@ampunit
[int]: amplitude unit for@level
. (default:1
).0
: linear1
: decibels
Output
normalize operation [llll]
Usage
normalize
is meant to be used with the process
function:
$buffer = importaudio('singing.wav'); ## input buffer
$op = normalize(); ## processing operation
$buffer = $buffer.process($op); ## apply processing
$buffer.inspect('after normalize process')