# Setting ResetCycles to start at a specific time during a cycle ... workaround?

**URL:** <https://uzu.lurk.org/t/setting-resetcycles-to-start-at-a-specific-time-during-a-cycle-workaround/5205>\
**Category:** TidalCycles\
**Tags:** questions\
**Created:** [24 May 2024 10:33 UTC](https://uzu.lurk.org/t/setting-resetcycles-to-start-at-a-specific-time-during-a-cycle-workaround/5205 "2024-05-24T10:33:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ouyuegu](https://uzu.lurk.org/user_avatar/uzu.lurk.org/ouyuegu/32/1719_2.png) [@Ouyuegu](https://uzu.lurk.org/u/Ouyuegu)\
**Post date:** [24 May 2024 10:33 UTC](https://uzu.lurk.org/t/setting-resetcycles-to-start-at-a-specific-time-during-a-cycle-workaround/5205/1 "2024-05-24T10:33:55Z")

</div>

Hi there.

Before some of the more recent updates, I used to use resetCyclesTo to begin a cycle at a specific time, as I wanted to play a sample that had been nudged backwards, as follows:

resetCyclesTo (-0.3)  
d1 $ (0.15 \<~) $ s "ghost/2"

Before it would work, I used to have to run the following:

import qualified Sound.Tidal.Tempo as T  
resetCyclesTo n = T.changeTempo (sTempoMV tidal) (\t tempo -\> tempo {T.atTime = t, T.atCycle = n})

It seems that this cannot work now, though ... is there an obvious way to do this that I am missing?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![geikha](https://uzu.lurk.org/user_avatar/uzu.lurk.org/geikha/32/2701_2.png) [@geikha](https://uzu.lurk.org/u/geikha)\
**Post date:** [26 May 2024 04:33 UTC](https://uzu.lurk.org/t/setting-resetcycles-to-start-at-a-specific-time-during-a-cycle-workaround/5205/2 "2024-05-26T04:33:54Z")

</div>

There's currently a built-in function for that called setCycle

`setCycle (-0.3)`

---

<div class="post-metadata">

**Author:** ![Ouyuegu](https://uzu.lurk.org/user_avatar/uzu.lurk.org/ouyuegu/32/1719_2.png) [@Ouyuegu](https://uzu.lurk.org/u/Ouyuegu)\
**Post date:** [27 May 2024 08:11 UTC](https://uzu.lurk.org/t/setting-resetcycles-to-start-at-a-specific-time-during-a-cycle-workaround/5205/3 "2024-05-27T08:11:27Z")

</div>

Hi !

Thanks for alerting me to this ... unfortunately, I am getting this reading:

> t\>  
> • Variable not in scope: setCycles :: t0 -\> IO a0  
> • Perhaps you meant ‘resetCycles’ (line 24)

This was after updating to Tidal 1.9.5 and updating all my quarks in Supercollider...

AND also trying both "setCycle" and "setCycle **s**" ...

Am I doing anything wrong here?

---

<div class="post-metadata">

**Author:** ![geikha](https://uzu.lurk.org/user_avatar/uzu.lurk.org/geikha/32/2701_2.png) [@geikha](https://uzu.lurk.org/u/geikha)\
**Post date:** [27 May 2024 17:42 UTC](https://uzu.lurk.org/t/setting-resetcycles-to-start-at-a-specific-time-during-a-cycle-workaround/5205/4 "2024-05-27T17:42:20Z")

</div>

yeah I actually meant setCycle...

weird that it doesn't work... are you positive that Tidal is running the newest version? check what it says when you boot it

---

<div class="post-metadata">

**Author:** ![Ouyuegu](https://uzu.lurk.org/user_avatar/uzu.lurk.org/ouyuegu/32/1719_2.png) [@Ouyuegu](https://uzu.lurk.org/u/Ouyuegu)\
**Post date:** [4 June 2024 17:28 UTC](https://uzu.lurk.org/t/setting-resetcycles-to-start-at-a-specific-time-during-a-cycle-workaround/5205/5 "2024-06-04T17:28:41Z")

</div>

Hey, thanks for your response- I got sidetracked for 8 days.

It boots up saying Tidalcycles v. 1.9.5. ... and still, "setCycle (-0.3)" returns the following:

```
• Variable not in scope: setCycle :: t0 -> t
• Perhaps you meant ‘peCycle’ (imported from Sound.Tidal.Context)

```

Any other troubleshooting steps you can recommend?

Thanks in advance!
