API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classFlangerEffect
Flanger effect using native WebAudio nodes (no worklet required). A flanger is a very short LFO-modulated delay (1–10 ms) with a feedback loop. Unlike a chorus — which uses longer delays without feedback to produce thickening — the flanger's feedback reinforces phase cancellation, creating the characteristic sweeping comb-filter "jet-plane" sound as notches and peaks slide up and down the spectrum. Node graph: ``` inputGain ┬── dryGain ─────────────────────────┐ │ ├── outputGain └──▶ delayNode ──▶ wetGain ───────────┘ ↑ │ feedbackGain ◀─┘ lfoOscillator ── lfoGain (depth in seconds) ──▶ delayNode.delayTime ``` Gains: `dryGain.gain = 1 - wet`; `wetGain.gain = wet`; `feedbackGain.gain = feedback`; `lfoGain.gain = depthMs / 1000`.
import { FlangerEffect } from '@codexo/exojs-audio-fx' Flanger effect using native WebAudio nodes (no worklet required).
A flanger is a very short LFO-modulated delay (1–10 ms) with a feedback loop. Unlike a chorus — which uses longer delays without feedback to produce thickening — the flanger's feedback reinforces phase cancellation, creating the characteristic sweeping comb-filter "jet-plane" sound as notches and peaks slide up and down the spectrum.
Node graph: ``` inputGain ┬── dryGain ─────────────────────────┐ │ ├── outputGain └──▶ delayNode ──▶ wetGain ───────────┘ ↑ │ feedbackGain ◀─┘
lfoOscillator ── lfoGain (depth in seconds) ──▶ delayNode.delayTime ```
Gains: `dryGain.gain = 1 - wet`; `wetGain.gain = wet`; `feedbackGain.gain = feedback`; `lfoGain.gain = depthMs / 1000`.
new(options: FlangerEffectOptions): FlangerEffect destroy(): void delayMs: number depthMs: number feedback: number inputNode: AudioNode outputNode: AudioNode rateHz: number ready: Promise<void> wet: number