Skip to content
Tone.js

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 soloB
new Solo(solo?: boolean)

Parameters

  • solo boolean optional

    If the connection should be initially solo’ed.

new Solo(options?: Partial<SoloOptions>)

Parameters

read-only

input: Gain

The input node or nodes. If the object is a source, it does not have any input and this.input is undefined.

read-only

name: string

The name of the class

Default: "Solo"

read-only

output: Gain

The output nodes. If the object is a sink, it does not have any output and this.output is undefined.

read-only

muted: boolean

If the current instance is muted, i.e. another instance is soloed

solo: boolean

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

dispose(): this

Dispose and disconnect

Returns this

static

getDefaults(): SoloOptions

Returns all of the default options belonging to the class.

Returns SoloOptions