Tone.Equal
↳ EXTENDS Tone.SignalBaseOutput 1 if the signal is equal to the value, otherwise outputs 0. Can accept two signals if connected to inputs 0 and 1.
CONSTRUCTOR
new Tone.Equal ( [value
]
)
value
The number to compare the incoming signal to
type:
number
optional
EXAMPLE
var eq = new Tone.Equal(3);
var sig = new Tone.Signal(3).connect(eq);
//the output of eq is 1.