API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

C

classDuckingFilter

@codexo/exojs / audio / stable

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.

7
props
2
methods
0
events
Import
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.

Constructors 1
new(options: DuckingFilterOptions): DuckingFilter
Methods 2
_onWorkletReady(audioContext: AudioContext): void
destroy(): void
Properties 7
attackMs: number
inputNode: AudioNode
outputNode: AudioNode
ratio: number
ready: Promise<void>
releaseMs: number
threshold: number
Source