Skip to content

Pattern: PImpulse

Outputs a 1 every events, otherwise 0.

Example output

>>> p = PImpulse(4)
>>> p.nextn(16)
[1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0]