AudioGraphBuilder.spectral() method

A windowed FFT tap: per window emits spectral_flatness / peak_ratio / peak_freq / hum_energy (the tone / static-noise / mains-hum substrate). windowMs is converted to the FFT size in frames.

Signature:

spectral(input: AudioNode, opts: {
        name: string;
        windowMs: number;
    }): AudioNode;

Parameters

Parameter Type Description

input

AudioNode

opts

{ name: string; windowMs: number; }

Returns: