Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Analyser

Class used to work with sound analyzer using fast fourier transform (FFT)

see

https://doc.babylonjs.com/how_to/playing_sounds_and_music

Hierarchy

  • Analyser

Index

Constructors

constructor

  • Creates a new analyser

    Parameters

    Returns Analyser

Properties

BARGRAPHAMPLITUDESearch playground for BARGRAPHAMPLITUDE

BARGRAPHAMPLITUDE: number

Gets or sets the bar graph amplitude

ignorenaming

DEBUGCANVASPOSSearch playground for DEBUGCANVASPOS

DEBUGCANVASPOS: { x: number; y: number }

Gets or sets the position of the debug canvas

ignorenaming

Type declaration

  • x: number
  • y: number

DEBUGCANVASSIZESearch playground for DEBUGCANVASSIZE

DEBUGCANVASSIZE: { height: number; width: number }

Gets or sets the debug canvas size

ignorenaming

Type declaration

  • height: number
  • width: number

FFT_SIZESearch playground for FFT_SIZE

FFT_SIZE: number

Gets or sets the FFT table size

ignorenaming

SMOOTHINGSearch playground for SMOOTHING

SMOOTHING: number

Gets or sets the smoothing

ignorenaming

Methods

connectAudioNodesSearch playground for connectAudioNodes

  • connectAudioNodes(inputAudioNode: AudioNode, outputAudioNode: AudioNode): void
  • Connects two audio nodes

    Parameters

    • inputAudioNode: AudioNode

      defines first node to connect

    • outputAudioNode: AudioNode

      defines second node to connect

    Returns void

disposeSearch playground for dispose

  • dispose(): void
  • Releases all associated resources

    Returns void

drawDebugCanvasSearch playground for drawDebugCanvas

  • drawDebugCanvas(): void
  • Renders the debug canvas

    Returns void

getByteFrequencyDataSearch playground for getByteFrequencyData

  • getByteFrequencyData(): Uint8Array

getByteTimeDomainDataSearch playground for getByteTimeDomainData

  • getByteTimeDomainData(): Uint8Array

getFloatFrequencyDataSearch playground for getFloatFrequencyData

  • getFloatFrequencyData(): Float32Array

getFrequencyBinCountSearch playground for getFrequencyBinCount

  • getFrequencyBinCount(): number

stopDebugCanvasSearch playground for stopDebugCanvas

  • stopDebugCanvas(): void
  • Stops rendering the debug canvas and removes it

    Returns void

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property
  • Static method