Skip to content
Tone.js

Chorus

class Effect ↳ extends StereoFeedbackEffect<ChorusOptions>

Chorus is a stereo chorus effect composed of a left and right delay with an LFO applied to the delayTime of each channel. When feedback is set to a value larger than 0, you also get Flanger-type effects. Inspiration from Tuna.js. Read more on the chorus effect on Sound On Sound.

const chorus = new Tone.Chorus(4, 2.5, 0.5).toDestination().start();
const synth = new Tone.PolySynth().connect(chorus);
synth.triggerAttackRelease(["C3", "E3", "G3"], "8n");
new Chorus(frequency?: Frequency, delayTime?: number, depth?: number)

Parameters

  • frequency Frequency optional

    The frequency of the LFO.

  • delayTime number optional

    The delay of the chorus effect in ms.

  • depth number optional

    The depth of the chorus.

new Chorus(options?: Partial<ChorusOptions>)

Parameters

read-only ↳ inherited from StereoFeedbackEffect

feedback: Signal<"normalRange">

The amount of feedback from the output back into the input of the effect (routed across left and right channels).

read-only

frequency: Signal<"frequency">

The frequency of the LFO which modulates the delayTime.

read-only ↳ inherited from StereoEffect

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: "Chorus"

read-only ↳ inherited from StereoEffect

output: CrossFade

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

read-only ↳ inherited from StereoEffect

wet: Signal<"normalRange">

The wet control, i.e. how much of the effected will pass through to the output.

delayTime: number

The delayTime in milliseconds of the chorus. A larger delayTime will give a more pronounced effect. Nominal range a delayTime is between 2 and 20ms.

depth: number

The depth of the effect. A depth of 1 makes the delayTime modulate between 0 and 2*delayTime (centered around the delayTime).

spread: number

Amount of stereo spread. When set to 0, both LFO’s will be panned centrally. When set to 180, LFO’s will be panned hard left and right respectively.

The oscillator type of the LFO.

dispose(): this

Dispose and disconnect

Returns this

start(time?: Time): this

Start the effect.

Parameters

  • time Time optional

Returns this

stop(time?: Time): this

Stop the lfo

Parameters

  • time Time optional

Returns this

sync(): this

Sync the filter to the transport.

See also: LFO.sync

Returns this

unsync(): this

Unsync the filter from the transport.

Returns this

static

getDefaults(): ChorusOptions

Returns all of the default options belonging to the class.

Returns ChorusOptions