LFO

Outputs a repeating sine, triangle, square or sawtooth wave.

Parameters

NameTypeDescription
ValueoutputFloatThe current point on the wave, within the range.
PhaseoutputFloatWhere in the cycle the wave is, from 0 at the start to 1 at the end, with the phase offset included.
WaveformEnumThe shape of the wave. A cycle starts halfway and rising for Sine, at the minimum for Triangle and Sawtooth, and at the maximum for Square.Choices: Sine, Triangle, Square, Sawtooth
FrequencyFloatHow many cycles the wave completes per second. A negative frequency runs the cycle backwards.
RangeVector 2The lowest and the highest value of the wave. Giving the highest first turns the wave upside down.
Phase OffsetFloatHow far the wave is shifted along its cycle, in cycles, so 0.25 is a quarter cycle.
Pulse WidthFloatThe part of each cycle a square wave spends at the maximum, between 0 and 1.
RunningBoolWhether the wave moves on. While off, it holds still.
ResetTriggerPuts the wave back at the start of its cycle.

The LFO operator, short for low frequency oscillator, outputs a wave that repeats forever between the two values of the range. Use it to make something pulse, sway or blink at a steady pace.

Two LFOs with the same frequency and different phase offsets run out of step, which lets several things move in the same rhythm one after the other.

See also Wave.

Keywords: oscillator, wave, sine, triangle, square, sawtooth, cycle, modulate, pulse