Constructor.
OptionalaudioSource: HTMLMediaElement | MediaElementAudioSourceNodeInput HTML element with source audio (HTML audio tag) or the instance of MediaElementAudioSourceNode.
OptionalviewElement: HTMLElementThe HTML element to render the widget. Will be auto created if it is undefined or null.
Optionaloptions: IAbstractAnalyzerOptionsAnalyzer options.
Changes the current media source.
OptionalaudioSource: HTMLMediaElement | MediaElementAudioSourceNodeInput HTML element with source audio (HTML audio tag) or the instance of MediaElementAudioSourceNode.
Clears the canvas.
Returns the audio source structure for this instance.
The audio source structure.
Returns a frequency for the given bin index.
Bin index.
Returns the frequency resolution of the audio (frequency step of one bin).
frequencyResolution = fullFrequencyRange / frequencyBinCount; For example one bin can be: 24000 / 128 = 187.5 Гц
Returns the full frequency range of the audio.
For example it can be: 24000 Гц for sample rate 48000 Hz.
Returns the sample rate of the audio (sampling frequency).
For example it can be: 48000 Hz.
Returns the ViewElement for this instance.
Pauses rendering.
Updates the canvas size depended on the [[constructor|viewElement]] size.
Starts rendering.
Stops rendering.
Waveform analyzer widget.
Example
Example:
See
See more options at interface definition: common.IAbstractAnalyzerOptions