Tone.LFO
↳ EXTENDS Tone.AudioNodeLFO stands for low frequency oscillator. Tone.LFO produces an output signal which can be attached to an AudioParam or Tone.Signal in order to modulate that parameter with an oscillator. The LFO can also be synced to the transport to start/stop and change when the tempo changes.
CONSTRUCTOR
new Tone.LFO ( [DEFAULTS
EXAMPLE
Members
.amplitude
↝ Number #The amplitude of the LFO, which controls the output range between the min and max output. For example if the min is -10 and the max is 10, setting the amplitude to 0.5 would make the LFO modulate between -5 and 5.
.state
↝ Tone.State READONLY #Returns the playback state of the source, either “started” or “stopped”.
.context
↝ Tone.Context READONLY #Get the audio context belonging to this instance.
Methods
.start ( )
#Start the LFO.
.stop ( )
#Stop the LFO.
.sync ( )
#this
Sync the start/stop/pause to the transport and the frequency to the bpm of the transport
EXAMPLE
.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)