API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

C

classAudioAnalyser

@codexo/exojs / audio / stable

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`.

6
props
12
methods
0
events
Import
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`.

Constructors 1
new(options?: AudioAnalyserOptions): AudioAnalyser
Methods 12
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>
Properties 6
fftSize: number
frequencyBinCount: number
maxDecibels: number
minDecibels: number
smoothingTimeConstant: number
source: AudioAnalyserSource
Source