Skip to content

Reference library > Oscillators > TriangleLFO

TriangleLFO

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

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

Examples

#-----------------------------------------------------------------------------------
# Pacman ghost sound, using a triangle wave LFO to modulate a sine wave's frequency
#-----------------------------------------------------------------------------------
lfo = TriangleLFO(3, 200, 900)
sine = SineOscillator(lfo)
output = StereoPanner(sine) * 0.5
output.play()

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