Skip to content

Pattern: PReset

Resets pattern whenever trigger is true

Example output

>>> p = PReset(PSeries(0, 1), PImpulse(4))
>>> p.nextn(16)
[0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3]