Tone.AND
↳ EXTENDS Tone.SignalBaseAND returns 1 when all the inputs are equal to 1 and returns 0 otherwise.
CONSTRUCTOR
new Tone.AND ( [inputCount
= 2 ]
)
inputCount
the number of inputs. NOTE: all inputs are connected to the single AND input node
type:
number
default:
2
EXAMPLE
var and = new Tone.AND(2);
var sigA = new Tone.Signal(0).connect(and, 0, 0);
var sigB = new Tone.Signal(1).connect(and, 0, 1);
//the output of and is 0. - dispose
METHODS