Skip to content

Pattern: PSaw

Generates a sawtooth waveform.

Example output

>>> p = PTri(10)
>>> p.nextn(10)
[0.0, 0.2, 0.4, 0.6, 0.8, 1.0, 0.8, 0.6, 0.4, 0.2]