This module provides two ways to route nodes:
- In series: A -> B -> C -> D, using the
connect
function - In parallel: in -> [A, B, C] -> out, using the
add
function
- Source:
Methods
(static) add(…nodes) → {AudioNode}
Connect nodes in parallel in order to add signals. This is one of the
routing functions (the other is connect
).
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
nodes |
AudioNode |
<repeatable> |
the nodes to be connected |
- Source:
Returns:
the resulting audio node
- Type
- AudioNode
Example
add(sine(400), sine(401)).start()
(static) conn(nodes) → {AudioNode}
Connect nodes in series: A -> B -> C -> D.
Parameters:
Name | Type | Description |
---|---|---|
nodes |
Array.<AudioNode> | the list of nodes to be connected |
- Source:
Returns:
the resulting audio node
- Type
- AudioNode