Zero
class Signal ↳ extends SignalOperator<ToneAudioNodeOptions>
Tone.Zero outputs 0’s at audio-rate. The reason this has to be its own class is that many browsers optimize out Tone.Signal with a value of 0 and will not process nodes further down the graph.
Constructor
Section titled “Constructor”new Zero(options?: Partial<ToneWithContextOptions>)Parameters
- options
Partial<ToneWithContextOptions>optional
Properties
Section titled “Properties”Methods
Section titled “Methods”connect()
Section titled “connect()”↳ inherited from SignalOperator
connect(destination: InputNode, outputNum?: number, inputNum?: number): thisconnect the output of a ToneAudioNode to an AudioParam, AudioNode, or ToneAudioNode
Parameters
-
destination
InputNodeThe output to connect to
-
outputNum
numberoptional default0The output to connect from
-
inputNum
numberoptional default0The input to connect to
Returns this
disconnect()
Section titled “disconnect()”↳ inherited from SignalOperator
disconnect(destination: InputNode, outputNum?: number, inputNum?: number): thisdisconnect the output
Parameters
- destination
InputNode - outputNum
numberoptional default0 - inputNum
numberoptional default0
Returns this
Inherited members
Section titled “Inherited members”- From
ToneWithContext: context, blockTime, sampleTime, get(), immediate(), now(), set(), toFrequency(), toSeconds(), toTicks(), getDefaults() - From
Tone: debug, version, disposed, toString() - From
ToneAudioNode: channelCount, channelCountMode, channelInterpretation, numberOfInputs, numberOfOutputs, chain(), fan(), toDestination(), toMaster()