Difference between revisions of "Sequence parser syntax"

From TidalCycles userbase
Jump to: navigation, search
(Created page with "{| class="wikitable" |- ! scope="col" width="50" | Symbol ! scope="col" width="200" | Description ! scope="col" | Example ! scope="col" | Equivalent |- | <source inline>[ ]</s...")
 
m
Line 1: Line 1:
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
! scope="col" width="50" | Symbol
+
! scope="col" width="5%" | Symbol
! scope="col" width="200" | Description
+
! scope="col" width="25%" | Description
! scope="col" | Example
+
! scope="col" width="35%" | Example
! scope="col" | Equivalent
+
! scope="col" width="35%" | Equivalent
 
|-
 
|-
 
| <source inline>[ ]</source> || Create a pattern grouping || <source inline>d1 $ s "[bd sd] hh"</source> || <source inline>d1 $ fastcat [s "bd sd", s "hh"]</source>
 
| <source inline>[ ]</source> || Create a pattern grouping || <source inline>d1 $ s "[bd sd] hh"</source> || <source inline>d1 $ fastcat [s "bd sd", s "hh"]</source>

Revision as of 13:10, 18 June 2019

Symbol Description Example Equivalent
[ ] Create a pattern grouping d1 $ s "[bd sd] hh" d1 $ fastcat [s "bd sd", s "hh"]
. Shorthand for pattern grouping d1 $ s "bd sd . hh hh hh" d1 $ s "[bd sd] [hh hh hh]
, Play multiple patterns at the same time d1 $ s "[bd sd, hh hh hh]" d1 $ stack [s "bd sd", s "hh hh hh"]
* Repeat a pattern d1 $ s "bd*2 sd" d1 $ s "[bd bd] sd"
< > Alternate between patterns d1 $ s "bd <sd hh cp>" d1 $ slow 3 $ s "bd sd bd hh bd cp"
! Replicate a pattern d1 $ s "bd!3 sd" d1 $ s "bd bd bd sd"
_ Elongate a pattern d1 $ s "bd _ _ ~ sd _" Results in pattern (0>1/2)|s: "bd" (4/6>1)|s: "sd"
@ Elongate a pattern d1 $ s "bd@3 sd" d1 $ s "bd _ _ sd"
? Randomly remove events from pattern d1 $ s "bd? sd" d1 $ fastcat [degradeBy 0.5 $ s "bd", s "sd"]
: Selecting samples d1 $ s "bd:3" d1 $ s "bd" # n 3