home/ atoms/ sc-pattern-vocabulary

The SC Pattern library includes Pser, Pxrand, Pshuf, Pslide, Pseries, Pgeom, and Pn for diverse sequence generation

Beyond Pseq/Prand/Pwhite, SC’s Pattern family offers: Pser (like Pseq but repeats can cut the list short), Pxrand (random, never repeating same item twice in a row), Pshuf (shuffle list once per cycle), Pslide (sliding window over list — takes list, repeats, window-length, step), Pseries (arithmetic series: start, step, length), Pgeom (geometric series: start, grow, length), Pn (repeat a sub-pattern N times). Pbind stops when the shortest sub-pattern exhausts its repeats. A fuller reference is James Harkins’ ‘A Practical Guide to Patterns’ in the SC Help files.

Examples

Pbind(\note, Pslide([0,2,3,5,7,8,11,12],7,3,1), \dur,0.15).play Pbind(\note, Pseries(0,2,15), \dur, 0.15).play Pbind(\dur, Pgeom(0.1,1.1,25)).play

Assessment

Write a Pbind using Pslide to play overlapping 3-note windows of a pentatonic scale.

“This section will expand your Pattern vocabulary a bit. The examples below introduce six more members of the Pattern family.”
corpus · a-gentle-introduction-to-supercollider-ruviaro-archive-org-c · chunk 5