Tone.Equal

↳ EXTENDS Tone.SignalBase

Output 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. 

Members

.value

↝ number #

The value to compare to the incoming signal.

</>

Methods

.dispose ( )

#
↪ returns Tone.Equal

this

Clean up.

</>
docs generated Sep 15 2019