Options
All
  • Public
  • Public/Protected
  • All
Menu

Create a AudioAnalyser object, which uses an AnalyserNode to analyse audio data. This uses the Web Audio API.

Hierarchy

  • AudioAnalyser

Index

Constructors

constructor

  • An AnalyserNode used to analyze audio.

    Parameters

    • audio: Audio
    • fftSize: number = 2048

      A non-zero power of two up to 2048, representing the size of the FFT (Fast Fourier Transform) to be used to determine the frequency domain. See this page for details.

    Returns AudioAnalyser

Properties

analyser

analyser: AnalyserNode

An AnalyserNode used to analyze audio.

data

data: Uint8Array

A Uint8Array with size determined by analyser.frequencyBinCount used to hold analysis data.

Methods

getAverageFrequency

  • getAverageFrequency(): number

getFrequencyData

  • getFrequencyData(): Uint8Array

Generated using TypeDoc