Tone.AudioNode
↳ EXTENDS ToneTone.AudioNode is the base class for classes which process audio. AudioNodes have inputs and outputs.
CONSTRUCTOR
new Tone.AudioNode ( [context
]
)
context
The audio context to use with the class
type:
AudioContext
optional
Members
Methods
.connect ( )
#
unit
type:
Tone
or
AudioParam
or
AudioNode
outputNum
optionally which output to connect from
type:
number
default:
0
inputNum
optionally which input to connect to
type:
number
default:
0
↪ returns
Tone.AudioNode
this
connect the output of a ToneNode to an AudioParam, AudioNode, or ToneNode
.disconnect ( )
#
output
Either the output index to disconnect if the output is an array, or the node to disconnect from.
type:
Number
or
AudioNode
↪ returns
Tone.AudioNode
this
disconnect the output
.toMaster ( )
#
↪ returns
Tone.AudioNode
this
Connect ‘this’ to the master output. Shorthand for this.connect(Tone.Master)