Difference between revisions of "stitch"

From TidalCycles userbase
Jump to: navigation, search
 
Line 3: Line 3:
 
'''stitch''' uses the first (binary) pattern to switch between the following two patterns. The resulting structure comes from the binary pattern, not the source patterns. This differs from '''sew''' where the resulting structure comes from the source patterns.
 
'''stitch''' uses the first (binary) pattern to switch between the following two patterns. The resulting structure comes from the binary pattern, not the source patterns. This differs from '''sew''' where the resulting structure comes from the source patterns.
  
For example, the follow uses a euclidean pattern to control CC0:
+
For example, the following uses a euclidean pattern to control CC0:
 
<source>d1 $ ccv (stitch "t(7,16)" 127 0) # ccn 0  # "midi"</source>
 
<source>d1 $ ccv (stitch "t(7,16)" 127 0) # ccn 0  # "midi"</source>
  

Latest revision as of 04:56, 10 May 2020

Type: Pattern Bool -> Pattern a -> Pattern a -> Pattern a

stitch uses the first (binary) pattern to switch between the following two patterns. The resulting structure comes from the binary pattern, not the source patterns. This differs from sew where the resulting structure comes from the source patterns.

For example, the following uses a euclidean pattern to control CC0:

d1 $ ccv (stitch "t(7,16)" 127 0) # ccn 0  # "midi"

See also sew