home/ atoms/ sc-pseq-repeats-default

Pseq without an explicit repeats argument plays the list once then stops, silencing the voice

In SuperCollider, Pseq(list) has a default repeats of 1, meaning the pattern plays through the list exactly once and the player frees itself, producing silence. This catches livecoding users who expect a loop. The fix is Pseq(list, inf) for indefinite looping.

Examples

Pbind(\degree, Pseq([0,2,4,2])).play; // plays once, then voice goes silent Pbind(\degree, Pseq([0,2,4,2], inf)).play; // loops forever

Assessment

You write Pbind with Pseq over four degrees. After four notes the voice goes silent. What is the cause and the fix?

“`Pseq(list)` (repeats defaults to 1) plays once and **stops** — the player frees itself and the voice goes silent. Use `Pseq(list, inf)` for a loop.”
context/ · L1-instruments/supercollider/gotchas.md · chunk 1