The AnalyserNode interface represents a node able to provide
frequency and time-domain analysis information. It is an audio.AudioNode
passes the audio stream unchanged from the input to the output,
allows you to take the generated data, process it, and create
visualizations.
The AnalyserNode interface represents a node able to provide frequency and time-domain analysis information. It is an `audio.AudioNode` passes the audio stream unchanged from the input to the output, allows you to take the generated data, process it, and create visualizations.
Constructor.
The AnalyserNode constructor of the Web Audio API creates a new web.AnalyserNode
object instance.
Inherits parameters from the audio.AudioNodeOptions
dictionary.
\tcontext
\tA reference to an audio.AudioContext
or web.OfflineAudioContext
.
\toptions Optional
\t\tfftSize: The desired initial size of the FFT for frequency-domain analysis. \t\tThe default is 2048. \t\tmaxDecibels: The desired initial maximum power in dB for FFT analysis. \t\tThe default is -30. \t\tminDecibels: The desired initial minimum power in dB for FFT analysis. \t\tThe default is -100. \t\tsmoothingTimeConstant: The desired initial smoothing constant for the FFT analysis. The default is 0.8.
See also: https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/AnalyserNode
Constructor. The AnalyserNode constructor of the Web Audio API creates a new `web.AnalyserNode` object instance. Inherits parameters from the `audio.AudioNodeOptions` dictionary. \tcontext \tA reference to an `audio.AudioContext` or `web.OfflineAudioContext`. \toptions Optional \t\tfftSize: The desired initial size of the FFT for frequency-domain analysis. \t\tThe default is 2048. \t\tmaxDecibels: The desired initial maximum power in dB for FFT analysis. \t\tThe default is -30. \t\tminDecibels: The desired initial minimum power in dB for FFT analysis. \t\tThe default is -100. \t\tsmoothingTimeConstant: The desired initial smoothing constant for the FFT analysis. The default is 0.8. See also: `https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/AnalyserNode`
(fft-size this)
Property.
The fftSize property of the web.AnalyserNode
interface is an
long value and represents the window size in samples that is
when performing a Fast Fourier Transform (FFT) to get frequency
data.
var curValue = analyserNode.fftSize; analyserNode.fftSize = newValue;
See also: https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/fftSize
Property. The fftSize property of the `web.AnalyserNode` interface is an long value and represents the window size in samples that is when performing a Fast Fourier Transform (FFT) to get frequency data. `var curValue = analyserNode.fftSize; analyserNode.fftSize = newValue;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/fftSize`
(frequency-bin-count this)
Property.
The frequencyBinCount read-only property of the web.AnalyserNode
is an unsigned integer half that of the web.AnalyserNode.fftSize
.
generally equates to the number of data values you will have
play with for the visualization.
var arrayLength = analyserNode.frequencyBinCount;
See also: https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/frequencyBinCount
Property. The frequencyBinCount read-only property of the `web.AnalyserNode` is an unsigned integer half that of the `web.AnalyserNode.fftSize`. generally equates to the number of data values you will have play with for the visualization. `var arrayLength = analyserNode.frequencyBinCount;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/frequencyBinCount`
(get-byte-frequency-data this & args)
Method.
The getByteFrequencyData() method of the web.AnalyserNode
interface
the current frequency data into a web.Uint8Array
(unsigned
array) passed into it.
`var audioCtx = new AudioContext(); var analyser = audioCtx.createAnalyser(); var dataArray = new Uint8Array(analyser.frequencyBinCount); // Uint8Array should be the same length as the frequencyBinCount
void analyser.getByteFrequencyData(dataArray); // fill the Uint8Array with data returned from getByteFrequencyData()`
See also: https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/getByteFrequencyData
Method. The getByteFrequencyData() method of the `web.AnalyserNode` interface the current frequency data into a `web.Uint8Array` (unsigned array) passed into it. `var audioCtx = new AudioContext(); var analyser = audioCtx.createAnalyser(); var dataArray = new Uint8Array(analyser.frequencyBinCount); // Uint8Array should be the same length as the frequencyBinCount void analyser.getByteFrequencyData(dataArray); // fill the Uint8Array with data returned from getByteFrequencyData()` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/getByteFrequencyData`
(get-byte-time-domain-data this & args)
Method.
The getByteTimeDomainData() method of the web.AnalyserNode
copies the current waveform, or time-domain, data into a web.Uint8Array
byte array) passed into it.
const audioCtx = new AudioContext(); const analyser = audioCtx.createAnalyser(); const dataArray = new Uint8Array(analyser.fftSize); // Uint8Array should be the same length as the fftSize analyser.getByteTimeDomainData(dataArray); // fill the Uint8Array with data returned from getByteTimeDomainData()
See also: https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/getByteTimeDomainData
Method. The getByteTimeDomainData() method of the `web.AnalyserNode` copies the current waveform, or time-domain, data into a `web.Uint8Array` byte array) passed into it. `const audioCtx = new AudioContext(); const analyser = audioCtx.createAnalyser(); const dataArray = new Uint8Array(analyser.fftSize); // Uint8Array should be the same length as the fftSize analyser.getByteTimeDomainData(dataArray); // fill the Uint8Array with data returned from getByteTimeDomainData()` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/getByteTimeDomainData`
(get-float-frequency-data this & args)
Method.
The getFloatFrequencyData() method of the web.AnalyserNode
copies the current frequency data into a web.Float32Array
array
into it.
`var audioCtx = new AudioContext(); var analyser = audioCtx.createAnalyser(); var dataArray = new Float32Array(analyser.frequencyBinCount); // Float32Array should be the same length as the frequencyBinCount
void analyser.getFloatFrequencyData(dataArray); // fill the Float32Array with data returned from getFloatFrequencyData()`
See also: https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/getFloatFrequencyData
Method. The getFloatFrequencyData() method of the `web.AnalyserNode` copies the current frequency data into a `web.Float32Array` array into it. `var audioCtx = new AudioContext(); var analyser = audioCtx.createAnalyser(); var dataArray = new Float32Array(analyser.frequencyBinCount); // Float32Array should be the same length as the frequencyBinCount void analyser.getFloatFrequencyData(dataArray); // fill the Float32Array with data returned from getFloatFrequencyData()` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/getFloatFrequencyData`
(get-float-time-domain-data this & args)
Method.
The getFloatTimeDomainData() method of the web.AnalyserNode
copies the current waveform, or time-domain, data into a web.Float32Array
passed into it.
var audioCtx = new AudioContext(); var analyser = audioCtx.createAnalyser(); var dataArray = new Float32Array(analyser.fftSize); // Float32Array needs to be the same length as the fftSize analyser.getFloatTimeDomainData(dataArray); // fill the Float32Array with data returned from getFloatTimeDomainData()
See also: https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/getFloatTimeDomainData
Method. The getFloatTimeDomainData() method of the `web.AnalyserNode` copies the current waveform, or time-domain, data into a `web.Float32Array` passed into it. `var audioCtx = new AudioContext(); var analyser = audioCtx.createAnalyser(); var dataArray = new Float32Array(analyser.fftSize); // Float32Array needs to be the same length as the fftSize analyser.getFloatTimeDomainData(dataArray); // fill the Float32Array with data returned from getFloatTimeDomainData()` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/getFloatTimeDomainData`
(max-decibels this)
Property.
The maxDecibels property of the web.AnalyserNode
interface
a double value representing the maximum power value in the scaling
for the FFT analysis data, for conversion to unsigned byte/float
— basically, this specifies the maximum value for the range of
when using getFloatFrequencyData() or getByteFrequencyData().
var curValue = analyserNode.maxDecibels; analyserNode.maxDecibels = newValue;
See also: https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/maxDecibels
Property. The maxDecibels property of the `web.AnalyserNode` interface a double value representing the maximum power value in the scaling for the FFT analysis data, for conversion to unsigned byte/float — basically, this specifies the maximum value for the range of when using getFloatFrequencyData() or getByteFrequencyData(). `var curValue = analyserNode.maxDecibels; analyserNode.maxDecibels = newValue;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/maxDecibels`
(min-decibels this)
Property.
The minDecibels property of the web.AnalyserNode
interface
a double value representing the minimum power value in the scaling
for the FFT analysis data, for conversion to unsigned byte/float
— basically, this specifies the minimum value for the range of
when using getFloatFrequencyData() or getByteFrequencyData().
var curValue = analyserNode.minDecibels; analyserNode.minDecibels = newValue;
See also: https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/minDecibels
Property. The minDecibels property of the `web.AnalyserNode` interface a double value representing the minimum power value in the scaling for the FFT analysis data, for conversion to unsigned byte/float — basically, this specifies the minimum value for the range of when using getFloatFrequencyData() or getByteFrequencyData(). `var curValue = analyserNode.minDecibels; analyserNode.minDecibels = newValue;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/minDecibels`
(set-fft-size! this val)
Property.
The fftSize property of the web.AnalyserNode
interface is an
long value and represents the window size in samples that is
when performing a Fast Fourier Transform (FFT) to get frequency
data.
var curValue = analyserNode.fftSize; analyserNode.fftSize = newValue;
See also: https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/fftSize
Property. The fftSize property of the `web.AnalyserNode` interface is an long value and represents the window size in samples that is when performing a Fast Fourier Transform (FFT) to get frequency data. `var curValue = analyserNode.fftSize; analyserNode.fftSize = newValue;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/fftSize`
(set-frequency-bin-count! this val)
Property.
The frequencyBinCount read-only property of the web.AnalyserNode
is an unsigned integer half that of the web.AnalyserNode.fftSize
.
generally equates to the number of data values you will have
play with for the visualization.
var arrayLength = analyserNode.frequencyBinCount;
See also: https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/frequencyBinCount
Property. The frequencyBinCount read-only property of the `web.AnalyserNode` is an unsigned integer half that of the `web.AnalyserNode.fftSize`. generally equates to the number of data values you will have play with for the visualization. `var arrayLength = analyserNode.frequencyBinCount;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/frequencyBinCount`
(set-max-decibels! this val)
Property.
The maxDecibels property of the web.AnalyserNode
interface
a double value representing the maximum power value in the scaling
for the FFT analysis data, for conversion to unsigned byte/float
— basically, this specifies the maximum value for the range of
when using getFloatFrequencyData() or getByteFrequencyData().
var curValue = analyserNode.maxDecibels; analyserNode.maxDecibels = newValue;
See also: https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/maxDecibels
Property. The maxDecibels property of the `web.AnalyserNode` interface a double value representing the maximum power value in the scaling for the FFT analysis data, for conversion to unsigned byte/float — basically, this specifies the maximum value for the range of when using getFloatFrequencyData() or getByteFrequencyData(). `var curValue = analyserNode.maxDecibels; analyserNode.maxDecibels = newValue;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/maxDecibels`
(set-min-decibels! this val)
Property.
The minDecibels property of the web.AnalyserNode
interface
a double value representing the minimum power value in the scaling
for the FFT analysis data, for conversion to unsigned byte/float
— basically, this specifies the minimum value for the range of
when using getFloatFrequencyData() or getByteFrequencyData().
var curValue = analyserNode.minDecibels; analyserNode.minDecibels = newValue;
See also: https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/minDecibels
Property. The minDecibels property of the `web.AnalyserNode` interface a double value representing the minimum power value in the scaling for the FFT analysis data, for conversion to unsigned byte/float — basically, this specifies the minimum value for the range of when using getFloatFrequencyData() or getByteFrequencyData(). `var curValue = analyserNode.minDecibels; analyserNode.minDecibels = newValue;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/minDecibels`
(set-smoothing-time-constant! this val)
Property.
The smoothingTimeConstant property of the web.AnalyserNode
is a double value representing the averaging constant with the
analysis frame. It's basically an average between the current
and the last buffer the AnalyserNode processed, and results in
much smoother set of value changes over time.
var smoothValue = analyserNode.smoothingTimeConstant; analyserNode.smoothingTimeConstant = newValue;
See also: https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/smoothingTimeConstant
Property. The smoothingTimeConstant property of the `web.AnalyserNode` is a double value representing the averaging constant with the analysis frame. It's basically an average between the current and the last buffer the AnalyserNode processed, and results in much smoother set of value changes over time. `var smoothValue = analyserNode.smoothingTimeConstant; analyserNode.smoothingTimeConstant = newValue;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/smoothingTimeConstant`
(smoothing-time-constant this)
Property.
The smoothingTimeConstant property of the web.AnalyserNode
is a double value representing the averaging constant with the
analysis frame. It's basically an average between the current
and the last buffer the AnalyserNode processed, and results in
much smoother set of value changes over time.
var smoothValue = analyserNode.smoothingTimeConstant; analyserNode.smoothingTimeConstant = newValue;
See also: https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/smoothingTimeConstant
Property. The smoothingTimeConstant property of the `web.AnalyserNode` is a double value representing the averaging constant with the analysis frame. It's basically an average between the current and the last buffer the AnalyserNode processed, and results in much smoother set of value changes over time. `var smoothValue = analyserNode.smoothingTimeConstant; analyserNode.smoothingTimeConstant = newValue;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/smoothingTimeConstant`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close