# Difference between revisions of "repeatCycles"

From TidalCycles userbase

m (Yaxu moved page RepeatCycles to repeatCycles) |
|||

Line 2: | Line 2: | ||

[[Type signature|Type]]: <syntaxhighlight lang="haskell" inline>repeatCycles :: Int -> Pattern a -> Pattern</syntaxhighlight> | [[Type signature|Type]]: <syntaxhighlight lang="haskell" inline>repeatCycles :: Int -> Pattern a -> Pattern</syntaxhighlight> | ||

− | '''repeatCycles''' is function that repeats each cycle of a given pattern a given number of times.. It takes two inputs, the number of repeats, and the pattern you are transforming. | + | '''repeatCycles''' is a function that repeats each cycle of a given pattern a given number of times.. It takes two inputs, the number of repeats, and the pattern you are transforming. |

For example, to repeat each random cycle of notes three times: | For example, to repeat each random cycle of notes three times: |

## Latest revision as of 17:26, 16 April 2020

Type: `repeatCycles :: Int -> Pattern a -> Pattern`

**repeatCycles** is a function that repeats each cycle of a given pattern a given number of times.. It takes two inputs, the number of repeats, and the pattern you are transforming.

For example, to repeat each random cycle of notes three times:

```
d1 $ repeatCycles 3 $ sound "arpy(5,8)" # n (irand 8)
```