Options
All
  • Public
  • Public/Protected
  • All
Menu

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

see

https://doc.babylonjs.com/features/featuresDeepDive/audio/playingSoundsMusic

Hierarchy

  • Analyser

Index

Constructors

  • Creates a new analyser

    Parameters

    Returns Analyser

Properties

BARGRAPHAMPLITUDE: number

Gets or sets the bar graph amplitude

ignorenaming
DEBUGCANVASPOS: { x: number; y: number }

Gets or sets the position of the debug canvas

ignorenaming

Type declaration

  • x: number
  • y: number
DEBUGCANVASSIZE: { height: number; width: number }

Gets or sets the debug canvas size

ignorenaming

Type declaration

  • height: number
  • width: number
FFT_SIZE: number

Gets or sets the FFT table size

ignorenaming
SMOOTHING: number

Gets or sets the smoothing

ignorenaming

Methods

  • 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

  • dispose(): void
  • Releases all associated resources

    Returns void

  • drawDebugCanvas(): void
  • Renders the debug canvas

    Returns void

  • getByteFrequencyData(): Uint8Array
  • getByteTimeDomainData(): Uint8Array
  • getFloatFrequencyData(): Float32Array
  • getFrequencyBinCount(): number
  • stopDebugCanvas(): void
  • Stops rendering the debug canvas and removes it

    Returns void

Legend

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

Settings

Theme