The `AnalyserNode`

interface represents a node able to provide real-time frequency and time-domain analysis information. It is an `AudioNode`

that passes the audio stream unchanged from the input to the output, but allows you to take the generated data, process it, and create audio visualizations.

Documentation AnalyserNode by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See:

### Variables

Is an unsigned long value representing the size of the FFT (Fast Fourier Transform) to be used to determine the frequency domain.

`read onlyfrequencyBinCount:Int`

Is an unsigned long value half that of the FFT size. This generally equates to the number of data values you will have to play with for the visualization.

Is a double value representing the maximum power value in the scaling range for the FFT analysis data, for conversion to unsigned byte values — basically, this specifies the maximum value for the range of results when using `getByteFrequencyData()`

.

Is a double value representing the minimum power value in the scaling range for the FFT analysis data, for conversion to unsigned byte values — basically, this specifies the minimum value for the range of results when using `getByteFrequencyData()`

.

### Methods

`getByteFrequencyData (array:Uint8Array):Void`

Copies the current frequency data into a `Uint8Array`

(unsigned byte array) passed into it.

`getByteTimeDomainData (array:Uint8Array):Void`

Copies the current waveform, or time-domain, data into a `Uint8Array`

(unsigned byte array) passed into it.

`getFloatFrequencyData (array:Float32Array):Void`

Copies the current frequency data into a `Float32Array`

array passed into it.

`getFloatTimeDomainData (array:Float32Array):Void`

Copies the current waveform, or time-domain, data into a `Float32Array`

array passed into it.