Reduces dynamic range by applying threshold-based compression with attack/release shaping.
| Direction | Handle |
|---|
| Input | audio-in |
| Output | audio-out |
| Parameter | Label | Type | Default | Range |
|---|
| attack | Attack | slider (automatable) | 0.003 | 0 - 1 |
| knee | Knee | slider (automatable) | 30 | 0 - 40 |
| ratio | Ratio | slider (automatable) | 12 | 1 - 20 |
| release | Release | slider (automatable) | 0.25 | 0 - 1 |
| threshold | Thresh | slider (automatable) | -24 | -100 - 0 |
| Field | Value |
|---|
| Native type | DynamicsCompressor |
| Create args | none |
| Implementation status | implemented |
- Add visible gain-reduction metering in the compressor panel.
Based on DynamicsCompressorNode (MDN)
| Field | Value |
|---|
| API node | DynamicsCompressorNode |
| Factory | createDynamicsCompressor |
| Factory args | none |
| Web Audio params | threshold, knee, ratio, attack, release |
| Name | Type |
|---|
| threshold | AudioParam |
| knee | AudioParam |
| ratio | AudioParam |
| attack | AudioParam |
| release | AudioParam |
| Source | Identifier | Section |
|---|
| Primary | w3c-webaudio-1-1 | DynamicsCompressorNode |
| Secondary | mdn-webaudio | Web Audio API |