Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Controller

Controller used by source and logical nodes, which includes volume control and an Analyser for visualization

Hierarchy

Index

Constructors

Other Properties

Utility Properties

Accessors

Other Methods

Utility Methods

Constructors

constructor

Other Properties

analyser

analyser: Analyser

Euphony analyser for visualization

Utility Properties

Readonly Abstract input

input: null | AudioNode

Underlying WebAudio node used for input to the Euphony node

readonly

Readonly Abstract output

output: AudioNode

Underlying WebAudio node used for output from the Euphony node

readonly

Accessors

volume

  • get volume(): number
  • set volume(volume: number): void
  • Volume of the controller, scale 0.0 to 1.0

    Returns number

  • Volume of the controller, scale 0.0 to 1.0

    Parameters

    • volume: number

    Returns void

Other Methods

Abstract pause

  • pause(delay: number): void
  • Shcedules the audio to be paused, playback can then be resumed by calling Controller.play

    Note: It is recommended to allow some amount of scheduling time to prevent audio glitches

    Parameters

    • delay: number

      Amount of time in seconds before the audio is paused

    Returns void

Abstract play

  • play(delay: number): void
  • Shcedules the audio to be played

    Note: It is recommended to allow some amount of scheduling time to prevent audio glitches

    Parameters

    • delay: number

      Amount of time in seconds before the audio begins playback

    Returns void

Abstract stop

  • stop(delay: number): void
  • Shcedules the audio to be paused, playback can then be resumed by calling Playback.play

    Note: It is recommended to allow some amount of scheduling time to prevent audio glitches

    Parameters

    • delay: number

      Amount of time in seconds before the audio is paused

    Returns void

Utility Methods

connect

  • Function for connecting a Euphony node to another Euphony node or a WebAudio node

    Parameters

    • destination: EuphonyNode | AudioNode

      The destionation to connect to, either a Euphony node or base WebAudio node

    Returns void

Generated using TypeDoc