Tone.Route
↳ EXTENDS Tone.SignalBaseRoute a single input to the specified output.
CONSTRUCTOR
new Tone.Route ( [outputCount
= 2 ]
)
outputCount
the number of inputs the switch accepts
type:
number
default:
2
EXAMPLE
var route = new Tone.Route(4);
var signal = new Tone.Signal(3).connect(route);
route.select(0);
//signal is routed through output 0
route.select(3);
//signal is now routed through output 3Members
Methods
.select ( )
#
which
Open one of the gates (closes the other).
type:
number
default:
0
time
The time when the switch will open.
type:
Time
default:
now
↪ returns
Tone.Route
this
Routes the signal to one of the outputs and close the others.