Skip to content
jshanley edited this page Oct 30, 2014 · 2 revisions

One of the most difficult parts of the Web Audio API is keeping track of the current audio graph. Blip allows you to create and store groups of chained nodes easily, and allows you to inspect individual nodes as well as whole chains to determine what connections exist in the current graph.

# blip.chain([nodes])

Creates and returns a new chain.

If an array of nodes is specified, these nodes are initialized at the start of the chain, in the order in which they are given.

# chain.node(node)

Adds the specified node to the end of the chain. The node must be an instance of blip.node.

# chain.start()

Returns the node at the start of the chain. This will be the first node that was added to the chain.

# chain.end()

Returns the node at the end of the chain. This will be the last node that was added to the chain.

# chain.from(node)

Connects the specified node to the start of the chain. This does not add the node to the chain, it simply connects the output of the node to the input of the first node in the chain.

# chain.to(node)

Connects the end of the chain to the specified node. This does not add the node to the chain, it simply connects the output of the last node in the chain to the input of the node.

Clone this wiki locally