files/en-us/web/api/dynamicscompressornode/index.md
{{ APIRef("Web Audio API") }}
The DynamicsCompressorNode interface provides a compression effect, which lowers the volume of the loudest parts of the signal in order to help prevent clipping and distortion that can occur when multiple sounds are played and multiplexed together at once. This is often used in musical production and game audio. DynamicsCompressorNode is an {{domxref("AudioNode")}} that has exactly one input and one output.
{{InheritanceDiagram}}
<table class="properties"> <tbody> <tr> <th scope="row">Number of inputs</th> <td><code>1</code></td> </tr> <tr> <th scope="row">Number of outputs</th> <td><code>1</code></td> </tr> <tr> <th scope="row">Channel count mode</th> <td><code>"clamped-max"</code></td> </tr> <tr> <th scope="row">Channel count</th> <td><code>2</code></td> </tr> <tr> <th scope="row">Channel interpretation</th> <td><code>"speakers"</code></td> </tr> </tbody> </table>DynamicsCompressorNode object.Inherits properties from its parent, {{domxref("AudioNode")}}.
float representing the amount of gain reduction currently applied by the compressor to the signal.No specific methods; inherits methods from its parent, {{domxref("AudioNode")}}.
See BaseAudioContext.createDynamicsCompressor() example code.
{{Specifications}}
{{Compat}}