home/ atoms/ sc-pattern-finite-loop-inf

SuperCollider Pseq without 'inf' repeats plays once then stops silently

Pseq(list) defaults to 1 repeat and plays through the list once, then the EventStreamPlayer frees itself — resulting in silence with no error. For a looping pattern, Pseq(list, inf) is required. The returned EventStreamPlayer must be stored to stop the pattern deliberately via .stop.

Examples

Pbind(\degree, Pseq([0,2,4])).play — plays three notes, then silence. Fix: Pseq([0,2,4], inf).

Assessment

Explain the default repeat behavior of Pseq and write the correction needed for a Pbind that should loop indefinitely.

“Plays once then silence; player frees itself | Add `inf` for loops. To stop deliberately, keep the returned `EventStreamPlayer` and `.stop` it.”
context/ · L5-debug/supercollider.md · chunk 1