home/ atoms/ strudel-sound-function

The sound() function plays a named sample and accepts colon notation to select sample variants

In Strudel, sound("name") (or its alias s("name")) triggers the named audio sample on every cycle step. When a sample bank contains multiple variants, a colon followed by an integer selects among them: sound("casio:1") plays the second variant (zero-indexed). The pattern string inside the quotes follows mini-notation rules, so sound("bd sd hh") sequences three samples across one cycle. Knowing sound() is the first production step: it is the entry point before notes, effects, or pattern transformations are added.

Examples

sound(“casio”) // default variant sound(“casio:1”) // second variant sound(“bd sd hh cp”) // four-step sequence

Assessment

Write a one-line Strudel pattern that plays three different casio variants in sequence. Explain what changing the number after the colon does.

“You can select the sample by appending `:` followed by a number to the name”