# Play a pattern every X cycles

**URL:** <https://uzu.lurk.org/t/play-a-pattern-every-x-cycles/4428>\
**Category:** TidalCycles\
**Tags:** questions\
**Created:** [3 December 2022 12:34 UTC](https://uzu.lurk.org/t/play-a-pattern-every-x-cycles/4428 "2022-12-03T12:34:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guido\_De\_Grefte](https://uzu.lurk.org/user_avatar/uzu.lurk.org/guido_de_grefte/32/2373_2.png) [@Guido\_De\_Grefte](https://uzu.lurk.org/u/Guido_De_Grefte)\
**Post date:** [3 December 2022 12:34 UTC](https://uzu.lurk.org/t/play-a-pattern-every-x-cycles/4428/1 "2022-12-03T12:34:42Z")

</div>

I have this very simple question but can't find an answer: how do you get tidal to pla a pattern once every X cycles?

---

<div class="post-metadata">

**Author:** ![xinniw](https://uzu.lurk.org/user_avatar/uzu.lurk.org/xinniw/32/1668_2.png) [@xinniw](https://uzu.lurk.org/u/xinniw)\
**Post date:** [3 December 2022 22:17 UTC](https://uzu.lurk.org/t/play-a-pattern-every-x-cycles/4428/2 "2022-12-03T22:17:25Z")

</div>

Does this do what your looking for?

```haskell
d1 $ every 4 (const $ s "be ho") $ silence

```

I'm on my phone so I might have messed something up. It should play drums every 4 cycles

---

<div class="post-metadata">

**Author:** ![yaxu](https://uzu.lurk.org/user_avatar/uzu.lurk.org/yaxu/32/2_2.png) [@yaxu](https://uzu.lurk.org/u/yaxu)\
**Post date:** [3 December 2022 22:25 UTC](https://uzu.lurk.org/t/play-a-pattern-every-x-cycles/4428/3 "2022-12-03T22:25:13Z")

</div>

Or there's this approach:

```haskell
d1 $ mask "<0 1 1 1>" $ s "bd sd"

```

---

<div class="post-metadata">

**Author:** ![Guido\_De\_Grefte](https://uzu.lurk.org/user_avatar/uzu.lurk.org/guido_de_grefte/32/2373_2.png) [@Guido\_De\_Grefte](https://uzu.lurk.org/u/Guido_De_Grefte)\
**Post date:** [4 December 2022 08:58 UTC](https://uzu.lurk.org/t/play-a-pattern-every-x-cycles/4428/4 "2022-12-04T08:58:51Z")

</div>

Thank you very much! This does indeed do the job. Happy also to learn about the use of 'const'!
