Skip to content

Pattern: PTri

Generates a triangle waveform of period length.

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]