home/ atoms/ tidal-mini-notation-random-choice

Tidal mini-notation uses | to randomly pick between subsequences, and ? to randomly drop events

Two random operators in Tidal mini-notation: [a|b|c] randomly picks one of the alternatives each time the step is evaluated; a? gives each event a 50% chance of playing (equivalent to degradeBy 0.5), and a?0.8 gives an 80% chance of being dropped. The | syntax picks uniformly from the alternatives on each cycle. This allows compact inline randomness without calling choose or rand explicitly. Applying ? to a subsequence drops the entire subsequence as a unit, not individual elements.

Examples

d1 $ n "0 [0|1*3|2*8|3 4 5] 2 3" # sound "cpu" — step 2 is one of four alternatives. d1 $ sound "kick clap? kick snare" — clap drops 50% per cycle.

Assessment

Write a Tidal pattern where the snare randomly plays one of three different samples, and the hi-hat has a 30% chance of being silent. Use only mini-notation syntax.

“To randomly choose between subsequences,”
corpus · tidalcycles-course-1-structured-4-week-course · chunk 12