Tone.AutoFilter
↳ EXTENDS Tone.EffectTone.AutoFilter is a Tone.Filter with a Tone.LFO connected to the filter cutoff frequency. Setting the LFO rate and depth allows for control over the filter modulation rate and depth.
CONSTRUCTOR
new Tone.AutoFilter ( [DEFAULTS
EXAMPLE
Members
.type
↝ string #Type of oscillator attached to the AutoFilter. Possible values: “sine”, “square”, “triangle”, “sawtooth”.
.depth
↝ NormalRange #The range of the filter modulating between the min and max frequency. 0 = no modulation. 1 = full modulation.
.type
↝ string #Type of oscillator attached to the AutoFilter. Possible values: “sine”, “square”, “triangle”, “sawtooth”.
.context
↝ Tone.Context READONLY #Get the audio context belonging to this instance.
.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
.start ( )
#When the LFO will start.
this
Start the effect.
.stop ( )
#When the LFO will stop.
this
Stop the effect.
.sync ( )
#Delay time before starting the effect after the Transport has started.
this
Sync the filter to the transport.
.disconnect ( )
#Either the output index to disconnect if the output is an array, or the node to disconnect from.
this
disconnect the output
.toMaster ( )
#this
Connect ‘this’ to the master output. Shorthand for this.connect(Tone.Master)
EXAMPLE
.connect ( )
#optionally which output to connect from
optionally which input to connect to
this
connect the output of a ToneNode to an AudioParam, AudioNode, or ToneNode