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. |
| MakeupGain | Gets the makeup gain in dB applied to the signal. When the makeup gain is automatic (the default), its value is computed from the threshold, the knee and the ratio, and it cannot be modified: setting its value, scheduling or canceling automation events, and connecting a node to it throw an InvalidStateError. |
| 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
MakeupGain
DynamicsCompressorNode.csGets the makeup gain in dB applied to the signal. When the makeup gain is automatic (the default), its value is computed from the threshold, the knee and the ratio, and it cannot be modified: setting its value, scheduling or canceling automation events, and connecting a node to it throw an InvalidStateError.
public AudioParam MakeupGain { get; }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; }