LFOEffect
internal class ↳ extends Effect<Options>
Base class for LFO-based effects.
Constructor
Section titled “Constructor”new LFOEffect(options: LFOEffectOptions)Parameters
- options
LFOEffectOptions
Properties
Section titled “Properties”read-only
depth: Param<"normalRange">The range of the filter modulating between the min and max frequency. 0 = no modulation. 1 = full modulation.
frequency
Section titled “frequency”read-only
frequency: Signal<"frequency">How fast the filter modulates between min and max.
↳ 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.
type: ToneOscillatorTypeThe type of the LFO’s oscillator.
const autoFilter = new Tone.AutoFilter().start().toDestination(); const noise = new Tone.Noise().start().connect(autoFilter); autoFilter.type = "square";
See also: Oscillator.type
Methods
Section titled “Methods”start()
Section titled “start()”start(time?: Time): thisStart the effect.
Parameters
- time
Timeoptional
Returns this
stop()
Section titled “stop()”stop(time?: Time): thisStop the lfo
Parameters
- time
Timeoptional
Returns this
sync()
Section titled “sync()”sync(): thisSync the filter to the transport.
See also: LFO.sync
Returns this
getDefaults()
Section titled “getDefaults()”static
getDefaults(): LFOEffectOptionsReturns all of the default options belonging to the class.
Returns LFOEffectOptions
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()