Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • AudioGraph

Index

Constructors

constructor

  • Parameters

    • ctx: AudioContext

    Returns AudioGraph

Properties

ctx

ctx: AudioContext

nodes

nodes: Map<GraphAudioNode, Array<GraphAudioNode>>

Methods

addNode

  • Adds a node to the graph

    Parameters

    Returns void

bfs

  • Breadth-First Search implementation

    Parameters

    Returns void

connect

createAnalyserNode

  • Create an AnalyserNode and add it to the graph

    Parameters

    • Default value position: Vector2 = { x: 0, y: 0 }

      Position is an optional Vector2 that stores a possible x,y coordinate for use in GUI's etc

    Returns GraphAnalyserNode

createBiquadFilterNode

  • Create a BiquadFilterNode and add it to the graph

    Parameters

    • Default value position: Vector2 = { x: 0, y: 0 }

      Position is an optional Vector2 that stores a possible x,y coordinate for use in GUI's etc

    Returns GraphBiquadFilterNode

createGainNode

  • Create a GainNode and add it to the graph

    Parameters

    • Default value position: Vector2 = { x: 0, y: 0 }

      Position is an optional Vector2 that stores a possible x,y coordinate for use in GUI's etc

    Returns GraphGainNode

createOscillatorNode

  • Create OscillatorNode and add it to the graph

    Parameters

    • Default value position: Vector2 = { x: 0, y: 0 }

      Position is an optional Vector2 that stores a possible x,y coordinate for use in GUI's etc

    Returns GraphOscillatorNode

disconnect

getGain

  • Get GainNodeby index

    Parameters

    • index: number

    Returns GraphGainNode

getNode

  • Get node by index

    Parameters

    • index: number

    Returns GraphAudioNode

getOscillator

  • Get OscillatorNode by index

    Parameters

    • index: number

    Returns GraphOscillatorNode

parseJSON

reconnect

  • Mostly used internally, this reconnects the nodes, after something has changed

    Parameters

    Returns void

removeNode

  • Remove node to the graph

    Parameters

    Returns void

Legend

  • Class
  • Constructor
  • Property
  • Method
  • Type alias
  • Interface

Generated using TypeDoc