Analyser

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

see

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

Hierarchy

  • Analyser

Index

Constructors

constructor

  • Creates a new analyser

    Parameters

    • scene: Scene

      defines hosting scene

    Returns Analyser

Properties

BARGRAPHAMPLITUDE

BARGRAPHAMPLITUDE: number

Gets or sets the bar graph amplitude

ignorenaming

DEBUGCANVASPOS

DEBUGCANVASPOS: object

Gets or sets the position of the debug canvas

ignorenaming

Type declaration

  • x: number
  • y: number

DEBUGCANVASSIZE

DEBUGCANVASSIZE: object

Gets or sets the debug canvas size

ignorenaming

Type declaration

  • height: number
  • width: number

FFT_SIZE

FFT_SIZE: number

Gets or sets the FFT table size

ignorenaming

SMOOTHING

SMOOTHING: number

Gets or sets the smoothing

ignorenaming

Methods

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

dispose

  • dispose(): void
  • Releases all associated resources

    Returns void

drawDebugCanvas

  • drawDebugCanvas(): void
  • Renders the debug canvas

    Returns void

getByteFrequencyData

  • getByteFrequencyData(): Uint8Array

getByteTimeDomainData

  • getByteTimeDomainData(): Uint8Array

getFloatFrequencyData

  • getFloatFrequencyData(): Float32Array

getFrequencyBinCount

  • getFrequencyBinCount(): number

stopDebugCanvas

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

    Returns void

Generated using TypeDoc