DynamicsCompressorNode Class
A dynamics compressor (https://webaudio.github.io/web-audio-api/#DynamicsCompressorNode): it lowers the level of the loud parts of its input, with a fixed look-ahead delay, a soft knee, and a makeup gain.
public sealed class DynamicsCompressorNode : AudioNode- Inheritance
AudioNodeDynamicsCompressorNode
Constructors
| Name | Description |
|---|---|
| DynamicsCompressorNode(BaseAudioContext, DynamicsCompressorOptions?) | Creates a compressor. |
DynamicsCompressorNode(BaseAudioContext, DynamicsCompressorOptions?)
DynamicsCompressorNode.csCreates a compressor.
public DynamicsCompressorNode(BaseAudioContext context, DynamicsCompressorOptions? options = null)Properties
| Name | Description |
|---|---|
| Attack | Gets the time in seconds to reduce the gain by 10 dB. |
| Knee | Gets the range in dB above the threshold where the curve transitions to the ratio. |
| Ratio | Gets the dB change of the input for a 1 dB change of the output. |
| Reduction | Gets the current gain reduction in dB. |
| Release | Gets the time in seconds to increase the gain by 10 dB. |
| Threshold | Gets the threshold in dB above which the compression starts. |
Gets the time in seconds to reduce the gain by 10 dB.
public AudioParam Attack { get; }Property value
See also
Gets the range in dB above the threshold where the curve transitions to the ratio.
public AudioParam Knee { get; }Property value
See also
Gets the dB change of the input for a 1 dB change of the output.
public AudioParam Ratio { get; }Property value
See also
Reduction
DynamicsCompressorNode.csRelease
DynamicsCompressorNode.csGets the time in seconds to increase the gain by 10 dB.
public AudioParam Release { get; }Property value
See also
Threshold
DynamicsCompressorNode.csGets the threshold in dB above which the compression starts.
public AudioParam Threshold { get; }