reduction
Summary
A read-only decibel value for metering purposes, representing the current amount of gain reduction that the compressor is applying to the signal. If fed no signal the value will be 0 (no gain reduction). The nominal range is -20 to 0. This parameter is k-rate.
Property of apis/webaudio/DynamicsCompressorNodeapis/webaudio/DynamicsCompressorNode
Syntax
Note: This property is read-only.
var result = DynamicsCompressorNode.reduction;
Return Value
Returns an object of type NumberNumber
Examples
var audioCtx = new AudioContext();
var compressor = audioCtx.createDynamicsCompressor();
compressor.reduction.value = -20;
Related specifications
- W3C Web Audio API
- W3C Editor’s Draft