Examples / Techniques / Motion

every-reverse-hats

Self-varying rhythm: every 4th cycle the hats reverse, so the groove reorganises itself without changing a single note. `every(n, fn)` motion.

Demos/Techniques/Motion/every-reverse-hats.strudel · 128 BPM

Play in Cycletron Opens it in the app in your browser, with the visualizers. Desktop browsers only.

// Self-varying rhythm: every 4th cycle the hats reverse, so the groove
// reorganises itself without changing a single note. `every(n, fn)` motion.
setbpm(128);

stack(
  s("bd*4"),
  s("~ cp ~ cp").gain(0.6),
  s("hh*8").every(4, x => x.rev).gain(0.4)
)