Tone.OR

↳ EXTENDS Tone.SignalBase

OR the inputs together. True if at least one of the inputs is true.

CONSTRUCTOR

new Tone.OR ( [
inputCount
= 2 ] )
inputCount

the input count

type: number
default: 2

EXAMPLE

var or = new Tone.OR(2);
var sigA = new Tone.Signal(0)connect(or, 0, 0);
var sigB = new Tone.Signal(1)connect(or, 0, 1);
//output of or is 1 because at least
//one of the inputs is equal to 1. 

Methods

.dispose ( )

#
↪ returns Tone.OR

this

clean up

</>
docs generated Sep 15 2019