Pattern: PLoop
Repeats a finite pattern
for n
repeats.
Useful for pattern generators which don't natively loop. Input must be finite or results may vary.
Example output
>>> p = PLoop(PSeq([ 1, 4, 9 ], 1))
>>> p.nextn(16)
[1, 4, 9, 1, 4, 9, 1, 4, 9, 1, 4, 9, 1, 4, 9, 1]