From TidalCycles userbase
Revision as of 22:39, 25 November 2018 by Echophon (talk | contribs)
Jump to: navigation, search

Type: stripe :: Pattern Int -> Pattern a -> Pattern a

The stripe function repeats a pattern at random speeds. The first parameter gives the number of cycles to operate over, for example stripe 2 will repeat a pattern twice, over two cycles. Each cycle will be played at a random speed, but in such a way that the total duration will be the same.

For example in the following example, the start of every third repetition of the d1 pattern will match with the clap on the d2 pattern.

d1 $ stripe 3 $ sound "bd sd ~ [mt ht]"

d2 $ sound "cp"