API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classAudioAnalyser
Lightweight visualisation analyser backed by a Web Audio AnalyserNode. Accepts any of: AudioBus, Voice, MediaStream, AudioNode, or null. The tap is a parallel branch — it does not affect the source's main routing. Tap a bus for a whole submix, or an individual Voice (its `output` node) for a single playing instance.
import { AudioAnalyser } from '@codexo/exojs-audio-fx' Lightweight visualisation analyser backed by a Web Audio AnalyserNode.
Accepts any of: AudioBus, Voice, MediaStream, AudioNode, or null. The tap is a parallel branch — it does not affect the source's main routing. Tap a bus for a whole submix, or an individual Voice (its `output` node) for a single playing instance.
new(options?: AudioAnalyserOptions): AudioAnalyser destroy(): void getBandEnergy(fromHz: number, toHz: number): number getLowMidHigh(): object getRms(): number getSpectrum(into?: Uint8Array<ArrayBuffer>): Uint8Array<ArrayBuffer> getSpectrumFloat(into?: Float32Array<ArrayBuffer>): Float32Array<ArrayBuffer> getSpectrumLog(into?: Uint8Array<ArrayBuffer>, options?: SpectrumMappingOptions): Uint8Array<ArrayBuffer> getSpectrumLogFloat(into?: Float32Array<ArrayBuffer>, options?: SpectrumMappingOptions): Float32Array<ArrayBuffer> getSpectrumMel(into?: Uint8Array<ArrayBuffer>, options?: SpectrumMappingOptions): Uint8Array<ArrayBuffer> getSpectrumMelFloat(into?: Float32Array<ArrayBuffer>, options?: SpectrumMappingOptions): Float32Array<ArrayBuffer> getWaveform(into?: Uint8Array<ArrayBuffer>): Uint8Array<ArrayBuffer> getWaveformFloat(into?: Float32Array<ArrayBuffer>): Float32Array<ArrayBuffer> fftSize: number frequencyBinCount: number maxDecibels: number minDecibels: number smoothingTimeConstant: number source: AudioAnalyserSource