AudioExpanderFilter
Electron APIs / recorder / AudioExpanderFilter
A specialized filter for dynamic range expansion or noise gating.
Example
const noiseGate: AudioExpanderFilter = {
id: "expander_filter",
parameters: {
presets: "gate",
threshold: -40,
detector: "peak",
},
};
Extends
Properties
| Property | Type | Description | Overrides |
|---|---|---|---|
id | "expander_filter" | A unique identifier for the filter instance. | AudioFilterBase.id |
parameters? | object | Configuration settings specific to the expander/gate. | AudioFilterBase.parameters |
parameters.attack_time? | number | How quickly (in ms) the expander reduces the volume once the signal drops below threshold. Valid range: [1, 100] | - |
parameters.detector? | "RMS" | "peak" | The method used to calculate the signal level. - RMS: Root Mean Square (average power). - peak: Highest instantaneous signal level. | - |
parameters.output_gain? | number | The gain (in dB) applied to the signal after processing. Valid range: [-32.00, 32.00] | - |
parameters.presets? | "expander" | "gate" | Pre-defined configuration modes for common expansion tasks. | - |
parameters.ratio? | number | The ratio of expansion. Higher values result in more aggressive reduction of signals below the threshold. Valid range: [1.00, 20.00] | - |
parameters.release_time? | number | How quickly (in ms) the expander returns to unity gain once the signal rises above threshold. Valid range: [1, 1000] | - |
parameters.threshold? | number | The level (in dB) below which expansion or gating begins. Valid range: [-60.00, 0.00] | - |