Difference between revisions of "append"
From TidalCycles userbase
Line 2: | Line 2: | ||
[[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 | + | '''append''' combines two patterns into a new pattern, where cycles alternate between the first and second pattern. |
<source> | <source> | ||
Line 8: | Line 8: | ||
</source> | </source> | ||
+ | It has the alias <source inline>slowAppend</source>, in sympathy with [[append#fastAppend|fastAppend]], described below. | ||
+ | = fastAppend = | ||
+ | [[Type signature|Type]]: <source inline>fastAppend :: Pattern a -> Pattern a -> Pattern a</source> | ||
− | + | '''fastAppend''' works like [[append]] described above, but each pair of cycles from the two patterns are squashed to fit a single cycle. | |
− | d1 $ | + | <source> |
+ | d1 $ fastAppend (sound "bd*2 sn") (sound "arpy jvbass*2") | ||
+ | </source> | ||
− | '''See also: [[cat]]''' | + | '''See also: [[cat]], [[cat#fastcat|fastcat]]''' |
[[Category:Functions]] | [[Category:Functions]] |
Revision as of 13:36, 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.
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")