home/ atoms/ strudel-cut-function

cut stops the current sample as soon as the next event in its group is triggered

cut(n) groups samples into a numbered cut group. When a new sample in the same cut group triggers, any currently playing sample in that group is immediately stopped. This is essential for working with longer samples: without cut, overlapping sample playback creates muddy builds. With cut, each new trigger creates a clean replacement, analogous to pressing a pad on a drum machine where pressing the same pad stops the previous hit. cut is the standard way to prevent overlapping playback when chaining loop segments with loopAt or iter.

Examples

sound(“rhodes*4”).loopAt(“<4 <1 2>>“).cut(1).iter(4) — each new rhodes trigger immediately stops the previous one, preventing overlapping loops.

Assessment

Compare a looped sample pattern with and without .cut(1). Describe the sonic difference. When would you deliberately NOT use cut?

“`cut` is used to stop playing the sample as soon as the next sample is triggered”
corpus · music-code-strudel-worksheet-lucy-cheesman-peckham-digital · chunk 3