Difference between revisions of "rotL"
From TidalCycles userbase
Left adjoint (talk | contribs) |
|||
Line 1: | Line 1: | ||
− | {{DISPLAYTITLE: | + | {{DISPLAYTITLE:rotL}} |
[[Type signature|Type]]: <syntaxhighlight lang="haskell" inline>rotL :: Time -> Pattern a -> Pattern a -> Pattern a</syntaxhighlight> | [[Type signature|Type]]: <syntaxhighlight lang="haskell" inline>rotL :: Time -> Pattern a -> Pattern a -> Pattern a</syntaxhighlight> | ||
Line 18: | Line 18: | ||
Useful when building and testing out longer sequences. | Useful when building and testing out longer sequences. | ||
+ | |||
+ | = rotR = | ||
+ | '''rotR''' is the opposite of <source inline>rotL</source> as it shifts the pattern ''forwards'' in time. |
Latest revision as of 01:18, 29 December 2020
Type: rotL :: Time -> Pattern a -> Pattern a -> Pattern a
rotL Shifts a pattern back 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.
rotR
rotR is the opposite of rotL
as it shifts the pattern forwards in time.