From TidalCycles userbase
Revision as of 21:30, 25 November 2018 by Echophon (talk | contribs)
Jump to: navigation, search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Type: ply :: Pattern Int -> Pattern a -> Pattern a

The ply function repeats each event the given number of times. For example

ply 3 $ s "bd ~ sn cp"

... is equivalent to ...

s "[bd bd bd] ~ [sn sn sn] [cp cp cp]"

The first parameter may be given as a pattern, so that:

ply "2 3" $ s "bd ~ sn cp"

... is equivalent to ...

s "[bd bd bd] ~ [sn sn] [cp cp]"

Here is an example of it being used conditionally:

d1 $ every 3 (ply 4) $ s "bd ~ sn cp"