Difference between revisions of "anticipate"

From TidalCycles userbase
Jump to: navigation, search
m
Line 3: Line 3:
 
[[Type signature|Type]]: <syntaxhighlight lang="haskell" inline>anticipate :: Time -> [ControlPattern] -> ControlPattern</syntaxhighlight>
 
[[Type signature|Type]]: <syntaxhighlight lang="haskell" inline>anticipate :: Time -> [ControlPattern] -> ControlPattern</syntaxhighlight>
  
Queue up a pattern to be triggered (or dropped) in at the specified number of cycles
+
Queue up a pattern to be triggered (or dropped) in after 8 cycles.  The argument supplied to `anticipate` is the ID of the new pattern that is created.
  
 
<syntaxhighlight lang="haskell" inline>
 
<syntaxhighlight lang="haskell" inline>
Line 11: Line 11:
 
<syntaxhighlight lang="haskell" inline>
 
<syntaxhighlight lang="haskell" inline>
 
anticipate 4 $ sound "bd sn" # delay "0.5" # room "0.3"
 
anticipate 4 $ sound "bd sn" # delay "0.5" # room "0.3"
 +
</syntaxhighlight>
 +
 +
Stop the newly create pattern using its ID:
 +
<syntaxhighlight lang="haskell" inline>
 +
d4 silence
 
</syntaxhighlight>
 
</syntaxhighlight>

Revision as of 17:54, 19 April 2020


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

Queue up a pattern to be triggered (or dropped) in after 8 cycles. The argument supplied to `anticipate` is the ID of the new pattern that is created.

d1 $ sound "jvbass(3,8)"

anticipate 4 $ sound "bd sn" # delay "0.5" # room "0.3"

Stop the newly create pattern using its ID: d4 silence