Skip to content
Tone.js

Tremolo

class Effect ↳ extends StereoEffect<TremoloOptions>

Tremolo modulates the amplitude of an incoming signal using an LFO. The effect is a stereo effect where the modulation phase is inverted in each channel.

// create a tremolo and start it's LFO
const tremolo = new Tone.Tremolo(9, 0.75).toDestination().start();
// route an oscillator through the tremolo and start it
const oscillator = new Tone.Oscillator().connect(tremolo).start();
new Tremolo(frequency?: Frequency, depth?: number)

Parameters

  • frequency Frequency optional

    The rate of the effect.

  • depth number optional

    The depth of the effect.

new Tremolo(options?: Partial<TremoloOptions>)

Parameters

read-only

depth: Signal<"normalRange">

The depth of the effect. A depth of 0, has no effect on the amplitude, and a depth of 1 makes the amplitude modulate fully between 0 and 1.

read-only

frequency: Signal<"frequency">

The frequency of the tremolo.

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

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.

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.

dispose(): this

Dispose and disconnect

Returns this

start(time?: Time): this

Start the tremolo.

Parameters

  • time Time optional

Returns this

stop(time?: Time): this

Stop the tremolo.

Parameters

  • time Time optional

Returns this

sync(): this

Sync the effect to the transport.

Returns this

unsync(): this

Unsync the filter from the transport

Returns this

static

getDefaults(): TremoloOptions

Returns all of the default options belonging to the class.

Returns TremoloOptions