Skip to content

Reference library > Oscillators > SawLFO

SawLFO

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

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

Examples

#-------------------------------------------------------------------------------
# Siren effect, using a sawtooth LFO to modulate a sinewave's frequency
#-------------------------------------------------------------------------------
lfo = SawLFO(1, 200, 1000)
sine = SineOscillator(lfo)
output = StereoPanner(sine) * 0.5
output.play()

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