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
.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”.
.type
↝ string #Type of oscillator attached to the AutoFilter. Possible values: “sine”, “square”, “triangle”, “sawtooth”.
.channelCount
↝ Number READONLY #channelCount is the number of channels used when up-mixing and down-mixing connections to any inputs to the node. The default value is 2 except for specific nodes where its value is specially determined.
.channelCountMode
↝ String READONLY #channelCountMode determines how channels will be counted when up-mixing and down-mixing connections to any inputs to the node. The default value is “max”. This attribute has no effect for nodes with no inputs.
.channelInterpretation
↝ String READONLY #channelInterpretation determines how individual channels will be treated when up-mixing and down-mixing connections to any inputs to the node. The default value is “speakers”.
.context
↝ Tone.Context READONLY #Get the audio context belonging to this instance.
.numberOfInputs
↝ Number READONLY #The number of inputs feeding into the AudioNode. For source nodes, this will be 0.
.numberOfOutputs
↝ Number READONLY #The number of outputs coming out of the AudioNode.
.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.
.chain ( )
#this
Connect the output of this node to the rest of the nodes in series.
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
.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
.fan ( )
#this
connect the output of this node to the rest of the nodes in parallel.