rotL

From TidalCycles userbase
Revision as of 18:59, 28 May 2019 by Ovitus (talk | contribs) (Created page with "{{DISPLAYTITLE:seqP}} Type: <syntaxhighlight lang="haskell" inline>rotL :: Time -> Pattern a -> Pattern a -> Pattern a</syntaxhighlight> '''rotL''' shifts...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Type: rotL :: Time -> Pattern a -> Pattern a -> Pattern a

rotL shifts a pattern forward in time by the given amount, expressed in cycles.

This will skip to the fourth cycle when evaluated:

do
{
  resetCycles;
  d1 $ rotL 4 $ seqP [ 
    (0, 12, sound "bd bd*2"), 
    (4, 12, sound "hh*2 [sn cp] cp future*4"), 
    (8, 12, sound (samples "arpy*8" (run 16)))
  ]
}

Useful when building and testing out longer sequences.