Difference between revisions of "rotL"

From TidalCycles userbase
Jump to: navigation, search
(Created page with "{{DISPLAYTITLE:seqP}} Type: <syntaxhighlight lang="haskell" inline>rotL :: Time -> Pattern a -> Pattern a -> Pattern a</syntaxhighlight> '''rotL''' shifts...")
 
Line 2: Line 2:
 
[[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>
  
'''rotL''' shifts a pattern forward in time by the given amount, expressed in cycles.
+
'''rotL''' Shifts a pattern back in time by the given amount, expressed in cycles.
  
 
This will skip to the fourth cycle when evaluated:
 
This will skip to the fourth cycle when evaluated:

Revision as of 18:04, 28 May 2019

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.