package js.html.audio
extends AudioNode › EventTarget
Available on jsThe
AnalyserNode
interface represents a node able to provide real-time frequency and time-domain analysis information. It is anAudioNode
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:
fftSize:Int
Is an unsigned long value representing the size of the FFT (Fast Fourier Transform) to be used to determine the frequency domain.
read only frequencyBinCount: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.
maxDecibels:Float
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()
.
minDecibels:Float
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()
.
smoothingTimeConstant:Float
Is a double value representing the averaging constant with the last analysis frame — basically, it makes the transition between values over time smoother.
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.
© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/audio/AnalyserNode.html