@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="AnalyserNode")
public class AnalyserNode
extends AudioNode
| Modifier and Type | Field and Description |
|---|---|
int |
fftSize
The fftSize property of the AnalyserNode interface is an unsigned long value and represents the window size in samples that is used when performing a Fast Fourier Transform (FFT) to get frequency domain data.
|
double |
maxDecibels
The maxDecibels property of the AnalyserNode interface is a double value representing the maximum power value in the scaling range for the FFT analysis data, for conversion to unsigned byte/float values — basically, this specifies the maximum value for the range of results when using getFloatFrequencyData() or getByteFrequencyData().
|
double |
minDecibels
The minDecibels property of the AnalyserNode interface is a double value representing the minimum power value in the scaling range for the FFT analysis data, for conversion to unsigned byte/float values — basically, this specifies the minimum value for the range of results when using getFloatFrequencyData() or getByteFrequencyData().
|
double |
smoothingTimeConstant
The smoothingTimeConstant property of the AnalyserNode interface is a double value representing the averaging constant with the last analysis frame.
|
channelCount, channelCountMode, channelInterpretation| Constructor and Description |
|---|
AnalyserNode(BaseAudioContext context)
The AnalyserNode constructor of the Web Audio API creates a new AnalyserNode object instance.
|
AnalyserNode(BaseAudioContext context,
AnalyserOptions options)
The AnalyserNode constructor of the Web Audio API creates a new AnalyserNode object instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
frequencyBinCount()
The frequencyBinCount read-only property of the AnalyserNode interface is an unsigned integer half that of the AnalyserNode.fftSize.
|
void |
getByteFrequencyData(Uint8Array array)
The getByteFrequencyData() method of the AnalyserNode interface copies the current frequency data into a Uint8Array (unsigned byte array) passed into it.
|
void |
getByteTimeDomainData(Uint8Array array)
The getByteTimeDomainData() method of the AnalyserNode Interface copies the current waveform, or time-domain, data into a Uint8Array (unsigned byte array) passed into it.
|
void |
getFloatFrequencyData(Float32Array array)
The getFloatFrequencyData() method of the AnalyserNode Interface copies the current frequency data into a Float32Array array passed into it.
|
void |
getFloatTimeDomainData(Float32Array array)
The getFloatTimeDomainData() method of the AnalyserNode Interface copies the current waveform, or time-domain, data into a Float32Array array passed into it.
|
connect, connect, connect, connect, connect, context, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, numberOfInputs, numberOfOutputsaddEventListener, addEventListener, addEventListener, dispatchEvent, removeEventListener, removeEventListener, removeEventListenerpublic int fftSize
public double maxDecibels
public double minDecibels
public double smoothingTimeConstant
public AnalyserNode(@Nonnull
BaseAudioContext context,
@Nonnull
AnalyserOptions options)
public AnalyserNode(@Nonnull
BaseAudioContext context)
@JsProperty(name="frequencyBinCount") public int frequencyBinCount()
public void getByteFrequencyData(@Nonnull
Uint8Array array)
public void getByteTimeDomainData(@Nonnull
Uint8Array array)
public void getFloatFrequencyData(@Nonnull
Float32Array array)
public void getFloatTimeDomainData(@Nonnull
Float32Array array)