Solo
class Component ↳ extends ToneAudioNode<SoloOptions>
Solo lets you isolate a specific audio stream. When an instance is set to solo=true,
it will mute all other instances of Solo.
const soloA = new Tone.Solo().toDestination();
const oscA = new Tone.Oscillator("C4", "sawtooth").connect(soloA);
const soloB = new Tone.Solo().toDestination();
const oscB = new Tone.Oscillator("E4", "square").connect(soloB);
soloA.solo = true;
// no audio will pass through soloBConstructor
Section titled “Constructor”new Solo(solo?: boolean)Parameters
-
solo
booleanoptionalIf the connection should be initially solo’ed.
new Solo(options?: Partial<SoloOptions>)Parameters
- options
Partial<SoloOptions>optional
Properties
Section titled “Properties”read-only
input: GainThe input node or nodes. If the object is a source, it does not have any input and this.input is undefined.
output
Section titled “output”read-only
output: GainThe output nodes. If the object is a sink, it does not have any output and this.output is undefined.
read-only
muted: booleanIf the current instance is muted, i.e. another instance is soloed
solo: booleanIsolates this instance and mutes all other instances of Solo.
Only one instance can be soloed at a time. A soloed
instance will report solo=false when another instance is soloed.
Methods
Section titled “Methods”getDefaults()
Section titled “getDefaults()”static
getDefaults(): SoloOptionsReturns all of the default options belonging to the class.
Returns SoloOptions
Inherited members
Section titled “Inherited members”- From
ToneWithContext: context, blockTime, sampleTime, get(), immediate(), now(), set(), toFrequency(), toSeconds(), toTicks() - From
Tone: debug, version, disposed, toString() - From
ToneAudioNode: channelCount, channelCountMode, channelInterpretation, numberOfInputs, numberOfOutputs, chain(), connect(), disconnect(), fan(), toDestination(), toMaster()