API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classDuckingFilter
Sidechain compressor (ducker) implemented as an WorkletFilter. Attenuates the main audio signal whenever the `sidechain` AudioBus exceeds the threshold, then releases when it drops back down. Commonly used to duck background music under dialogue or sound effects. Attack and release times are expressed in milliseconds and converted internally to one-pole filter coefficients.
import { DuckingFilter } from '@codexo/exojs' Sidechain compressor (ducker) implemented as an WorkletFilter. Attenuates the main audio signal whenever the `sidechain` AudioBus exceeds the threshold, then releases when it drops back down. Commonly used to duck background music under dialogue or sound effects. Attack and release times are expressed in milliseconds and converted internally to one-pole filter coefficients.
new(options: DuckingFilterOptions): DuckingFilter _onWorkletReady(audioContext: AudioContext): void destroy(): void attackMs: number inputNode: AudioNode outputNode: AudioNode ratio: number ready: Promise<void> releaseMs: number threshold: number