Tone.AutoWah
↳ EXTENDS Tone.EffectTone.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
type:
Positive
optional
sensitivity
The decibel threshold sensitivity for the incoming signal. Normal range of -40 to 0.
type:
Decibels
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")- dispose
METHODS
Members
.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.