Difference between revisions of "Sequence parser syntax"

From TidalCycles userbase
Jump to: navigation, search
m
 
(One intermediate revision by one other user not shown)
Line 13: Line 13:
 
|-
 
|-
 
| <source inline>*</source> || Repeat a pattern || <source inline>d1 $ s "bd*2 sd"</source> || <source inline>d1 $ s "[bd bd] sd"</source>
 
| <source inline>*</source> || Repeat a pattern || <source inline>d1 $ s "bd*2 sd"</source> || <source inline>d1 $ s "[bd bd] sd"</source>
 +
|-
 +
| <source inline>/</source> || Slow down a pattern || <source inline>d1 $ s "bd/2"</source> || <source inline>d1 $ s (slow 2 $ "bd")</source>
 
|-
 
|-
 
| <source inline>< ></source> || Alternate between patterns || <source inline>d1 $ s "bd <sd hh cp>"</source> || <source inline>d1 $ slow 3 $ s "bd sd bd hh bd cp"</source>
 
| <source inline>< ></source> || Alternate between patterns || <source inline>d1 $ s "bd <sd hh cp>"</source> || <source inline>d1 $ slow 3 $ s "bd sd bd hh bd cp"</source>
Line 20: Line 22:
 
| <source inline>_</source> || Elongate a pattern || <source inline>d1 $ s "bd _ _ ~ sd _"</source> || Results in pattern <source inline>(0>1/2)|s: "bd" (4/6>1)|s: "sd"</source>
 
| <source inline>_</source> || Elongate a pattern || <source inline>d1 $ s "bd _ _ ~ sd _"</source> || Results in pattern <source inline>(0>1/2)|s: "bd" (4/6>1)|s: "sd"</source>
 
|-
 
|-
| <source inline>@</source> || Elongate a pattern || <source inline>d1 $ s "bd@3 sd"</source> || <source inline>d1 $ s "bd _ _ sd"</source>
+
| <source inline>@</source> || Elongate a pattern || <source inline>d1 $ s "superpiano@3 superpiano"</source> || <source inline>d1 $ s "superpiano _ _ superpiano"</source>
 
|-
 
|-
 
| <source inline>?</source> || Randomly remove events from pattern || <source inline>d1 $ s "bd? sd"</source> || <source inline>d1 $ fastcat [degradeBy 0.5 $ s "bd", s "sd"]</source>
 
| <source inline>?</source> || Randomly remove events from pattern || <source inline>d1 $ s "bd? sd"</source> || <source inline>d1 $ fastcat [degradeBy 0.5 $ s "bd", s "sd"]</source>
 
|-
 
|-
 
| <source inline>:</source> || Selecting samples || <source inline>d1 $ s "bd:3"</source> || <source inline>d1 $ s "bd" # n 3</source>
 
| <source inline>:</source> || Selecting samples || <source inline>d1 $ s "bd:3"</source> || <source inline>d1 $ s "bd" # n 3</source>
 +
|-
 +
| <source inline>( )</source> || Euclidean sequences || <source inline>d1 $ s "bd(3,8)"</source> || <source inline>d1 $ euclid 3 8 $ s "bd"</source>
 
|}
 
|}

Latest revision as of 11:17, 18 August 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"
/ Slow down a pattern d1 $ s "bd/2" d1 $ s (slow 2 $ "bd")
< > 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 "superpiano@3 superpiano" d1 $ s "superpiano _ _ superpiano"
? 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
( ) Euclidean sequences d1 $ s "bd(3,8)" d1 $ euclid 3 8 $ s "bd"