Skip to content

Pattern: PEuclidean

Generate Euclidean rhythms.

Effectively tries to space events out evenly over length beats. Events returned are either 1 or None (rest)

Example output

>>> p = PEuclidean(5, 8)
>>> p.nextn(8)
[1, None, 1, 1, None, 1, 1, None]