A-Tractor - v2.5.6
    Preparing search index...

    Class AbstractAnalyzerAbstract

    Abstract analyzer widget.

    This class is the basic class to inherit and implement other widgets.

    Hierarchy (View Summary)

    Index

    Constructors

    • Constructor.

      Parameters

      • OptionalaudioSource: HTMLMediaElement | MediaElementAudioSourceNode

        Input HTML element with source audio (HTML audio tag) or the instance of MediaElementAudioSourceNode.

      • OptionalviewElement: HTMLElement

        The HTML element to render the widget. Will be auto created if it is undefined or null.

      • Optionaloptions: IAbstractAnalyzerOptions

        Analyzer options.

      Returns AbstractAnalyzer

    Methods

    • Changes the current media source.

      Parameters

      • OptionalaudioSource: HTMLMediaElement | MediaElementAudioSourceNode

        Input HTML element with source audio (HTML audio tag) or the instance of MediaElementAudioSourceNode.

      Returns void

    • Clears the canvas.

      Returns void

    • Returns the audio source structure for this instance.

      Returns IAudioSource

      The audio source structure.

    • Returns a frequency for the given bin index.

      Parameters

      • index: number

        Bin index.

      Returns number

    • 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 number

    • Returns the full frequency range of the audio.

      For example it can be: 24000 Гц for sample rate 48000 Hz.

      Returns number

    • Returns the sample rate of the audio (sampling frequency).

      For example it can be: 48000 Hz.

      Returns number

    • Returns the ViewElement for this instance.

      Returns HTMLElement

    • Pauses rendering.

      Returns void

    • Updates the canvas size depended on the [[constructor|viewElement]] size.

      Returns void

    • Starts rendering.

      Returns void

    • Stops rendering.

      Returns void