swingBy
  1. subdivision
  2. offset

The function swingBy x n breaks each cycle into n slices, and then delays events in the second half of each slice by the amount x, which is relative to the size of the (half) slice. So if x is 0 it does nothing, 0.5 delays for half the note duration, and 1 will wrap around to doing nothing again. The end result is a shuffle or swing-like rhythm

s("hh*8").swingBy(1/3, 4)
parametertype
subdivision
  • number
offset
  • number
mentioned in (1)