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");Constructor
Section titled “Constructor”new AutoWah(baseFrequency?: Frequency, octaves?: number, sensitivity?: number)Parameters
-
baseFrequency
FrequencyoptionalThe frequency the filter is set to at the low point of the wah
-
octaves
numberoptionalThe number of octaves above the baseFrequency the filter will sweep to when fully open.
-
sensitivity
numberoptionalThe decibel threshold sensitivity for the incoming signal. Normal range of -40 to 0.
new AutoWah(options?: Partial<AutoWahOptions>)Parameters
- options
Partial<AutoWahOptions>optional
Properties
Section titled “Properties”↳ 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
Section titled “baseFrequency”baseFrequency: FrequencyThe base frequency from which the sweep will start from.
octaves
Section titled “octaves”octaves: numberThe number of octaves that the filter will sweep above the baseFrequency.
sensitivity
Section titled “sensitivity”sensitivity: numberThe sensitivity to control how responsive to the input signal the filter is.
Methods
Section titled “Methods”getDefaults()
Section titled “getDefaults()”static
getDefaults(): AutoWahOptionsReturns all of the default options belonging to the class.
Returns AutoWahOptions
Inherited members
Section titled “Inherited members”- From
ToneWithContext: context, blockTime, sampleTime, get(), immediate(), now(), set(), toFrequency(), toSeconds(), toTicks() - From
Tone: debug, version, disposed, toString() - From
ToneAudioNode: channelCount, channelCountMode, channelInterpretation, numberOfInputs, numberOfOutputs, chain(), connect(), disconnect(), fan(), toDestination(), toMaster()