Difference between revisions of "anticipateIn"

From TidalCycles userbase
Jump to: navigation, search
 
Line 1: Line 1:
 
[[Category:Transitions]]
 
[[Category:Transitions]]
  
anticipateIn Time -> Time -> [ControlPattern] -> ControlPattern
+
[[Type signature|Type]]: <syntaxhighlight lang="haskell" inline>anticipateIn Time -> Time -> [ControlPattern] -> ControlPattern</syntaxhighlight>
 +
 
 +
 
 +
Start playing a pattern after a specified number of cycles and assign it an ID.
 +
 
 +
The first argument is the number of cycles after which the pattern will begin playing, and the second argument is the ID of the newly created patttern.
 +
 
 +
 
 +
<syntaxhighlight lang="haskell">
 +
d1 $ fast 2 $ sound "bd sd"
 +
anticipateIn 2 2 $ fast 4 $ sound "hh*2" *| gain "0.9 0.6"
 +
d2 silence
 +
</syntaxhighlight>

Latest revision as of 18:23, 19 April 2020


Type: anticipateIn Time -> Time -> [ControlPattern] -> ControlPattern


Start playing a pattern after a specified number of cycles and assign it an ID.

The first argument is the number of cycles after which the pattern will begin playing, and the second argument is the ID of the newly created patttern.


d1 $ fast 2 $ sound "bd sd"
anticipateIn 2 2 $ fast 4 $ sound "hh*2" *| gain "0.9 0.6"
d2 silence