TidalCycles chunk divides a pattern into n sections and applies a transform to each in turn, one per cycle
chunk n f p divides pattern p into n equal parts. Each cycle, it applies function f to exactly one part (cycling through all parts in order), leaving the others unchanged. chunk 4 (# speed 2) $ sound "bd hh sn cp" applies double speed to: BD in cycle 1, HH in cycle 2, SN in cycle 3, CP in cycle 4, then repeats. The effect is a systematic spotlight that highlights one section per cycle — a natural way to build variation and evolution into a loop without writing new patterns. chunk' cycles through sections in reverse order. Used with hurry 2 or filter transforms, chunk creates a sense of periodic morphing.
Examples
d1 $ chunk 4 (# speed 2) $ sound "bd hh sn cp"
-- cycle 1: BD hh sn cp
-- cycle 2: bd HH sn cp
-- cycle 3: bd hh SN cp
-- cycle 4: bd hh sn CP
d1 $ chunk 4 (hurry 2) $ sound "bd sn:2 [~ bd] sn:2"
Assessment
Describe what you hear over 8 cycles with chunk 4 (fast 2) $ s "bd hh sn oh". Write a chunk expression that applies reverb to one quarter of a pattern at a time.