API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classWorkletFilter
Base class for filters implemented as AudioWorkletProcessors. Subclasses declare the worklet's name, source code, and node options; this class handles the async lifecycle. Stable input/output nodes (GainNodes) are created immediately on setup. While the worklet loads asynchronously, audio passes through directly (effectively bypassing the filter for ~10-50ms during initial load). Once the worklet loads, it's inserted into the chain and audio routes through it. Subclasses can override `_onWorkletReady` to perform additional wiring (e.g., sidechain inputs).
import { WorkletFilter } from '@codexo/exojs' Base class for filters implemented as AudioWorkletProcessors. Subclasses declare the worklet's name, source code, and node options; this class handles the async lifecycle.
Stable input/output nodes (GainNodes) are created immediately on setup. While the worklet loads asynchronously, audio passes through directly (effectively bypassing the filter for ~10-50ms during initial load). Once the worklet loads, it's inserted into the chain and audio routes through it.
Subclasses can override `_onWorkletReady` to perform additional wiring (e.g., sidechain inputs).
new(): WorkletFilter _onWorkletReady(audioContext: AudioContext): void destroy(): void inputNode: AudioNode outputNode: AudioNode ready: Promise<void>