Skip to content
Tone.js

AutoWah

class Effect ↳ extends Effect<AutoWahOptions>

AutoWah connects a Follower to a Filter. The frequency of the filter, follows the input amplitude curve. Inspiration from Tuna.js.

const autoWah = new Tone.AutoWah(50, 6, -30).toDestination();
// initialize the synth and connect to autowah
const synth = new Tone.Synth().connect(autoWah);
// Q value influences the effect of the wah - default is 2
autoWah.Q.value = 6;
// more audible on higher notes
synth.triggerAttackRelease("C4", "8n");
new AutoWah(baseFrequency?: Frequency, octaves?: number, sensitivity?: number)

Parameters

  • baseFrequency Frequency optional

    The frequency the filter is set to at the low point of the wah

  • octaves number optional

    The number of octaves above the baseFrequency the filter will sweep to when fully open.

  • sensitivity number optional

    The decibel threshold sensitivity for the incoming signal. Normal range of -40 to 0.

new AutoWah(options?: Partial<AutoWahOptions>)

Parameters

read-only

gain: Signal<"decibels">

The gain of the filter.

↳ inherited from Effect

input: Gain

The effect input node

read-only

name: string

The name of the class

Default: "AutoWah"

↳ inherited from Effect

output: CrossFade

The effect output

read-only

Q: Signal<"positive">

The quality of the filter.

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

baseFrequency: Frequency

The base frequency from which the sweep will start from.

follower: Time

The follower’s smoothing time

octaves: number

The number of octaves that the filter will sweep above the baseFrequency.

sensitivity: number

The sensitivity to control how responsive to the input signal the filter is.

dispose(): this

Dispose and disconnect

Returns this

static

getDefaults(): AutoWahOptions

Returns all of the default options belonging to the class.

Returns AutoWahOptions