Tone.AutoWah

↳ EXTENDS Tone.Effect

Tone.AutoWah connects a Tone.Follower to a bandpass filter (Tone.Filter). The frequency of the filter is adjusted proportionally to the incoming signal’s amplitude. Inspiration from Tuna.js.

CONSTRUCTOR

new Tone.AutoWah ( [
baseFrequency
] , [
octaves
] , [
sensitivity
] )
baseFrequency

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

optional
octaves

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

optional
sensitivity

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

optional

DEFAULTS

{
baseFrequency : 100 ,
octaves : 6 ,
sensitivity : 0 ,
Q : 2 ,
gain : 2 ,
follower :
{
attack : 0.3 ,
release : 0.5
}
}

EXAMPLE

var autoWah = new Tone.AutoWah(50, 6, -30).toMaster();
//initialize the synth and connect to autowah
var synth = new SimpleSynth.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")

Members

∿

.Q

↝ Positive #

The quality of the filter.

</>

.baseFrequency

↝ Frequency #

The base frequency from which the sweep will start from.

</>
∿

.gain

↝ Number #

The gain of the filter.

</>

.octaves

↝ Number #

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

</>

.sensitivity

↝ Decibels #

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

</>
↳ inherited from Tone.Effect
∿

.wet

↝ NormalRange #

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

</>

Methods

.dispose ( )

#
↪ returns Tone.AutoWah

this

Clean up.

</>
docs generated Sep 15 2019