Difference between revisions of "append"

From TidalCycles userbase
Jump to: navigation, search
(Created page with "{{DISPLAYTITLE:append}} Type: <source inline>append :: Pattern a -> Pattern a -> Pattern a</source> '''See also: cat''' Category:Functions")
 
Line 1: Line 1:
 
{{DISPLAYTITLE:append}}  
 
{{DISPLAYTITLE:append}}  
 
[[Type signature|Type]]: <source inline>append :: Pattern a -> Pattern a -> Pattern a</source>
 
[[Type signature|Type]]: <source inline>append :: Pattern a -> Pattern a -> Pattern a</source>
 +
 +
'''append''' combines two patterns into a new pattern, where cycles alternate between the first and second pattern. It has the alias <source inline>slowAppend</source>, in sympathy with [[append#fastAppend|fastAppend]], described below.
 +
 +
<source>
 +
d1 $ append (sound "bd*2 sn") (sound "arpy jvbass*2")
 +
</source>
 +
 +
 +
 +
append' does the same as append, but over two cycles, so that the cycles alternate between the two patterns.
 +
 +
d1 $ append' (sound "bd*2 sn") (sound "arpy jvbass*2")
  
 
'''See also: [[cat]]'''
 
'''See also: [[cat]]'''
  
 
[[Category:Functions]]
 
[[Category:Functions]]

Revision as of 13:32, 3 December 2018

Type: append :: Pattern a -> Pattern a -> Pattern a

append combines two patterns into a new pattern, where cycles alternate between the first and second pattern. It has the alias slowAppend, in sympathy with fastAppend, described below.

d1 $ append (sound "bd*2 sn") (sound "arpy jvbass*2")


append' does the same as append, but over two cycles, so that the cycles alternate between the two patterns.

d1 $ append' (sound "bd*2 sn") (sound "arpy jvbass*2")

See also: cat