Tone.Analyser
↳ EXTENDS ToneWrapper around the native Web Audio’s AnalyserNode. Extracts FFT or Waveform data from the incoming signal.
CONSTRUCTOR
new Tone.Analyser ( [size
] , [ type
]
)
size
The size of the FFT. Value must be a power of two in the range 32 to 32768.
type:
Number
optional
type
The return type of the analysis, either “fft”, or “waveform”.
type:
String
optional
DEFAULTS
{
size
:
2048
,
returnType
:
byte
,
type
:
fft
,
smoothing
:
0.8
,
maxDecibels
:
-30
,
minDecibels
:
-100
}
Members
.type
↝ String #The return type of Tone.Analyser.value, either “byte” or “float”. When the type is set to “byte” the range of values returned in the array are between 0-255, when set to “float” the values are between 0-1.
Methods
.analyse ( )
#
↪ returns
TypedArray
Run the analysis given the current settings and return the result as a TypedArray.