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]
Generates a triangle waveform of period length
.
>>> 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]