API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classDuckingEffect
Sidechain compressor (ducker) implemented as an WorkletEffect. 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 { DuckingEffect } from '@codexo/exojs-audio-fx' Sidechain compressor (ducker) implemented as an WorkletEffect. 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: DuckingEffectOptions): DuckingEffect _onWorkletReady(audioContext: AudioContext): void destroy(): void attackMs: number inputNode: AudioNode outputNode: AudioNode ratio: number ready: Promise<void> releaseMs: number threshold: number wet: number