mmmt-tools / Learn & Train / pattern playground
on-device · nothing leaves this page

Pattern Playground

A taste of live-coding pattern languages (TidalCycles, and its browser port Strudel): type a pattern, hit Evaluate (or Ctrl/Cmd+Enter), and it plays — edit it again while it's running and the next cycle picks up the change. Both lanes share one cycle clock. This is a small, from-scratch subset of the real mini-notation, built on this site's own audio code rather than embedding Strudel itself.

Drums

Notes

120 bpm

Mini-notation cheatsheet

~
a rest — silence for one slot
bd sn hh
steps in a row divide the cycle evenly
bd*3
repeat a step 3 times within its own slot
[bd sn]
a group occupies one slot, subdivided among its contents — nest freely
[bd sn]*2
repeat a whole group
bd?
a 50% chance of being dropped that cycle (Tidal's degrade)
bd?0.3
set the drop probability explicitly — 30% here
bd*4?0.3
combine with a repeat — each of the 4 rolls its own independent chance

Drum tokens: bd sn hh oh cp rim. Note tokens: a letter A–G, optional #/b, and an octave digit — c4, f#3, bb2. The diagram below each lane is a single snapshot — a ? step re-rolls every cycle while playing, so what actually sounds will vary from what's drawn.

Algorithmic music & live coding · more generative tools in Generate

Learn & Train