Lesson 28 +10 XP

Ply & Off

ply repeats each step several times; off plays a second, shifted version of the pattern.

Ply - repeat each step

ply(2) plays every element twice:


strudel
sound("bd hh sd hh").ply(2)

ply(4) plays each element four times:


strudel
sound("bd hh sd hh").ply(4)

Ply with a pattern

The ply amount can be a pattern too:


strudel
sound("bd hh sd hh").ply("<1 2 3 4>")

Off - add a shifted copy

off(1, fn) plays the pattern, plus a copy shifted by 1 unit with fn applied:


strudel
sound("bd bd, <hh hh hh>*4").off(1, fast(2)).room(0.6)

The copy is shifted in time and played twice as fast.

Off to create fills

off is great for creating variations that answer the main pattern.


strudel
note("c e g b").off(1, slow(2)).sound("gm_xylophone")

TL;DR

  • ply(n) repeats each step n times.
  • off(1, fn) plays a shifted copy with fn applied.
  • Both accept patterns for dynamic results.