Skip to content
Tone.js

LFOEffect

internal class ↳ extends Effect<Options>

Base class for LFO-based effects.

new LFOEffect(options: LFOEffectOptions)

Parameters

read-only

depth: Param<"normalRange">

The range of the filter modulating between the min and max frequency. 0 = no modulation. 1 = full modulation.

read-only

frequency: Signal<"frequency">

How fast the filter modulates between min and max.

↳ inherited from Effect

input: Gain

The effect input node

read-only

name: string

The name of the class

Default: "LFOEffect"

↳ inherited from Effect

output: CrossFade

The effect output

↳ inherited from Effect

wet: Signal<"normalRange">

The wet control is how much of the effected will pass through to the output. 1 = 100% effected signal, 0 = 100% dry signal.

The type of the LFO’s oscillator.

const autoFilter = new Tone.AutoFilter().start().toDestination();
const noise = new Tone.Noise().start().connect(autoFilter);
autoFilter.type = "square";

See also: Oscillator.type

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(): LFOEffectOptions

Returns all of the default options belonging to the class.

Returns LFOEffectOptions