Skip to content

Reference library > Oscillators > SineLFO

SineLFO

SineLFO(frequency=1.0, min=0.0, max=1.0, phase=0.0)

Produces a sinusoidal LFO at the given frequency and phase offset, with output ranging from min to max.

Examples

#-------------------------------------------------------------------------------
# Siren effect, using a sinewave LFO to modulate a sawtooth's frequency
#-------------------------------------------------------------------------------
lfo = SineLFO(1, 200, 1000)
saw = SawOscillator(lfo)
output = StereoPanner(saw) * 0.3
output.play()

Last update: 2024-02-15
Created: 2023-12-03