API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classWorkletEffect
Base class for filters implemented as AudioWorkletProcessors. Subclasses declare the worklet's name, source code, and node options; this class owns the async lifecycle AND the dry/wet gain staging. Stable input/output nodes are created immediately. The worklet emits a pure wet signal; the base mixes it against the dry signal via `_dryGain`/`_wetGain` (`dryGain = 1 - wet`, `wetGain = wet * _wetMakeupGain`). An optional `_dryDelay` time-aligns the dry path with the worklet's algorithmic latency. While the worklet loads, the wet path is silent and dry passes at unity, so the effect is a clean passthrough (no volume dip) until it is ready.
import { WorkletEffect } from '@codexo/exojs' Base class for filters implemented as AudioWorkletProcessors. Subclasses declare the worklet's name, source code, and node options; this class owns the async lifecycle AND the dry/wet gain staging.
Stable input/output nodes are created immediately. The worklet emits a pure wet signal; the base mixes it against the dry signal via `_dryGain`/`_wetGain` (`dryGain = 1 - wet`, `wetGain = wet * _wetMakeupGain`). An optional `_dryDelay` time-aligns the dry path with the worklet's algorithmic latency. While the worklet loads, the wet path is silent and dry passes at unity, so the effect is a clean passthrough (no volume dip) until it is ready.
new(): WorkletEffect _onWorkletReady(audioContext: AudioContext): void destroy(): void inputNode: AudioNode outputNode: AudioNode ready: Promise<void> wet: number