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, Sound, Music, MediaStream, AudioNode, or null. The tap is a parallel branch — it does not affect the source's main routing. Migration from 0.7.1: the old constructor was `new AudioAnalyser(media, options)`. The new API is `new AudioAnalyser(options?); analyser.source = media`.
import { AudioAnalyser } from '@codexo/exojs' Lightweight visualisation analyser backed by a Web Audio AnalyserNode.
Accepts any of: AudioBus, Sound, Music, MediaStream, AudioNode, or null. The tap is a parallel branch — it does not affect the source's main routing.
Migration from 0.7.1: the old constructor was `new AudioAnalyser(media, options)`. The new API is `new AudioAnalyser(options?); analyser.source = media`.
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