Skip to content
Tone.js

Zero

class Signal ↳ extends SignalOperator<ToneAudioNodeOptions>

Tone.Zero outputs 0’s at audio-rate. The reason this has to be it’s own class is that many browsers optimize out Tone.Signal with a value of 0 and will not process nodes further down the graph.

new Zero(options?: Partial<ToneWithContextOptions>)

Parameters

input: undefined

no input node

Default: undefined

read-only

name: string

The name of the class

Default: "Zero"

output: Gain<"gain">

Only outputs 0

↳ inherited from SignalOperator

connect(destination: InputNode, outputNum?: number, inputNum?: number): this

connect the output of a ToneAudioNode to an AudioParam, AudioNode, or ToneAudioNode

Parameters

  • destination InputNode

    The output to connect to

  • outputNum number optional default 0

    The output to connect from

  • inputNum number optional default 0

    The input to connect to

Returns this

dispose(): this

clean up

Returns this