Difference between revisions of "append"

From TidalCycles userbase
Jump to: navigation, search
(Marked this version for translation)
Line 1: Line 1:
 
  <translate>
 
  <translate>
 +
<!--T: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>
  
 +
<!--T:2-->
 
'''append''' combines two patterns into a new pattern, where cycles alternate between the first and second pattern.
 
'''append''' combines two patterns into a new pattern, where cycles alternate between the first and second pattern.
  
 +
<!--T:3-->
 
<source>
 
<source>
 
d1 $ append (sound "bd*2 sn") (sound "arpy jvbass*2")
 
d1 $ append (sound "bd*2 sn") (sound "arpy jvbass*2")
 
</source>
 
</source>
  
 +
<!--T:4-->
 
It has the alias <source inline>slowAppend</source>, in sympathy with [[append#fastAppend|fastAppend]], described below.
 
It has the alias <source inline>slowAppend</source>, in sympathy with [[append#fastAppend|fastAppend]], described below.
  
= fastAppend =
+
= fastAppend = <!--T:5-->
 
[[Type signature|Type]]: <source inline>fastAppend :: Pattern a -> Pattern a -> Pattern a</source>
 
[[Type signature|Type]]: <source inline>fastAppend :: Pattern a -> Pattern a -> Pattern a</source>
  
 +
<!--T:6-->
 
'''fastAppend''' works like [[append]] described above, but each pair of cycles from the two patterns are squashed to fit a single cycle.
 
'''fastAppend''' works like [[append]] described above, but each pair of cycles from the two patterns are squashed to fit a single cycle.
  
 +
<!--T:7-->
 
<source>
 
<source>
 
d1 $ fastAppend (sound "bd*2 sn") (sound "arpy jvbass*2")
 
d1 $ fastAppend (sound "bd*2 sn") (sound "arpy jvbass*2")
 
</source>
 
</source>
  
 +
<!--T:8-->
 
'''See also: [[cat]], [[cat#fastcat|fastcat]]'''
 
'''See also: [[cat]], [[cat#fastcat|fastcat]]'''
  
 +
<!--T:9-->
 
[[Category:Functions]]
 
[[Category:Functions]]
 
</translate>
 
</translate>

Revision as of 01:07, 5 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.

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

It has the alias slowAppend, in sympathy with fastAppend, described below.

fastAppend

Type: fastAppend :: Pattern a -> Pattern a -> Pattern a

fastAppend works like append described above, but each pair of cycles from the two patterns are squashed to fit a single cycle.

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

See also: cat, fastcat