Difference between revisions of "anticipate"

From TidalCycles userbase
Jump to: navigation, search
 
Line 10: Line 10:
  
 
<syntaxhighlight lang="haskell" inline>
 
<syntaxhighlight lang="haskell" inline>
anticipate 4 $ sound "bd sn" # delay "0.5" # room "0.3"
+
anticipate 1 $ sound "bd sn" # delay "0.5" # room "0.3"
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
+
Stop the newly created pattern using its id:
Stop the newly create pattern using its ID:
 
  
 
<syntaxhighlight lang="haskell" inline>
 
<syntaxhighlight lang="haskell" inline>
d4 silence
+
d1 silence
 
</syntaxhighlight>
 
</syntaxhighlight>

Latest revision as of 14:48, 28 May 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 1 $ sound "bd sn" # delay "0.5" # room "0.3"

Stop the newly created pattern using its id:

d1 silence