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.view('after normalize process')