Skip to content
Tone.js

AutoPanner

class Effect ↳ extends LFOEffect<AutoPannerOptions>

AutoPanner is a Panner with an LFO connected to the pan amount. Related Reading.

// create an autopanner and start it
const autoPanner = new Tone.AutoPanner("4n").toDestination().start();
// route an oscillator through the panner and start it
const oscillator = new Tone.Oscillator().connect(autoPanner).start();
new AutoPanner(frequency?: Frequency)

Parameters

  • frequency Frequency optional

    Rate of left-right oscillation.

new AutoPanner(options?: Partial<AutoPannerOptions>)

Parameters

read-only

_panner: Panner

The filter node

read-only ↳ inherited from LFOEffect

depth: Param<"normalRange">

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

read-only ↳ inherited from LFOEffect

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

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

↳ inherited from LFOEffect

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

↳ inherited from LFOEffect

start(time?: Time): this

Start the effect.

Parameters

  • time Time optional

Returns this

↳ inherited from LFOEffect

stop(time?: Time): this

Stop the lfo

Parameters

  • time Time optional

Returns this

↳ inherited from LFOEffect

sync(): this

Sync the filter to the transport.

See also: LFO.sync

Returns this

↳ inherited from LFOEffect

unsync(): this

Unsync the filter from the transport.

Returns this

static

getDefaults(): AutoPannerOptions

Returns all of the default options belonging to the class.

Returns AutoPannerOptions