API

Interface AudioVisualizerOptions

Options for createAudioVisualizer.

interface AudioVisualizerOptions {
    backgroundColor?: string;
    barColor?: string;
    fftSize?: number;
    mode?: AudioVisualizerMode;
    smoothing?: number;
    waveformColor?: string;
}
Index
backgroundColor?: string

Canvas background fill. Defaults to "#101014".

barColor?: string

Frequency-bar color. Defaults to "#4fc3f7".

fftSize?: number

FFT window size (a power of two). Defaults to 2048.

What to draw. Defaults to "both".

smoothing?: number

Analyzer time-averaging constant in [0, 1]. Defaults to 0.8.

waveformColor?: string

Waveform line color. Defaults to "#ffffff".