# Week 2 lesson 2 - manipulating time with setcps, cps patterns and fast/slow functions

**URL:** <https://uzu.lurk.org/t/week-2-lesson-2-manipulating-time-with-setcps-cps-patterns-and-fast-slow-functions/466>\
**Category:** Week 2 - effects, time, arithmetic\
**Created:** [20 April 2020 14:05 UTC](https://uzu.lurk.org/t/week-2-lesson-2-manipulating-time-with-setcps-cps-patterns-and-fast-slow-functions/466 "2020-04-20T14:05:48Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![mbutz](https://uzu.lurk.org/user_avatar/uzu.lurk.org/mbutz/32/1085_2.png) [@mbutz](https://uzu.lurk.org/u/mbutz)\
**Post date:** [22 October 2020 18:11 UTC](https://uzu.lurk.org/t/week-2-lesson-2-manipulating-time-with-setcps-cps-patterns-and-fast-slow-functions/466/21 "2020-10-22T18:11:19Z")

</div>

Hi @yaxu, hi @heavy.lifting,

thanks for the hint and the explanation. To close this, here is my analysis of the two examples that weren't but are now clear to me:

```haskell
-- example 2 -----------------------

d1 $ slow "2 1" $ n "0 2" # s "cpu"

-- combination/layering of:

d1 $ slow "2" $ n "0 2" # s "cpu"
-- | bd | sn | bd | sn | <-- provides the first halves

-- and:

d1 $ slow "1" $ n "0 2" # s "cpu"
-- | bd sn | bd sn | bd sn | bd sn | <-- provides the second halves

-- results in:

-- | bd sn | sn sn | bd sn | sn sn |

-- example 4 -----------------------

d1 $ slow "4 1" $ n "0 2" # s "cpu"

-- combination/layering of:

d1 $ slow "4" $ n "0 2" # s "cpu"
-- | bd | | sn | | <-- provides the first halves

-- and:

d1 $ slow "1" $ n "0 2" # s "cpu"
-- | bd sn | bd sn | bd sn | bd sn | <-- provides the second halves

-- results in

-- | bd sn | sn | sn sn | sn |

```

---

<div class="post-metadata">

**Author:** ![xmacex](https://uzu.lurk.org/user_avatar/uzu.lurk.org/xmacex/32/1897_2.png) [@xmacex](https://uzu.lurk.org/u/xmacex)\
**Post date:** [7 August 2021 17:22 UTC](https://uzu.lurk.org/t/week-2-lesson-2-manipulating-time-with-setcps-cps-patterns-and-fast-slow-functions/466/22 "2021-08-07T17:22:13Z")

</div>

Super interesting that the default value of _cps_ has been changed sometime(s) in the history of Tidal! I presume many people don't change the _cps_, so change of a default value basically has a huge effect on everyone's music. A superpower!

Also I need to try negative cps... 😉

---

<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:** [7 August 2021 18:58 UTC](https://uzu.lurk.org/t/week-2-lesson-2-manipulating-time-with-setcps-cps-patterns-and-fast-slow-functions/466/23 "2021-08-07T18:58:33Z")

</div>

Heh, any nominations for the cps in tidal version 2.0?

---

<div class="post-metadata">

**Author:** ![xmacex](https://uzu.lurk.org/user_avatar/uzu.lurk.org/xmacex/32/1897_2.png) [@xmacex](https://uzu.lurk.org/u/xmacex)\
**Post date:** [7 August 2021 19:29 UTC](https://uzu.lurk.org/t/week-2-lesson-2-manipulating-time-with-setcps-cps-patterns-and-fast-slow-functions/466/24 "2021-08-07T19:29:38Z")

</div>

Well you said it, why not `setcps tidal_version`? ⏩

---

<div class="post-metadata">

**Author:** ![sebastiano](https://uzu.lurk.org/letter_avatar_proxy/v4/letter/s/f4b2a3/32.png) [@sebastiano](https://uzu.lurk.org/u/sebastiano)\
**Post date:** [7 October 2024 17:03 UTC](https://uzu.lurk.org/t/week-2-lesson-2-manipulating-time-with-setcps-cps-patterns-and-fast-slow-functions/466/25 "2024-10-07T17:03:41Z")

</div>

> [@yaxu](#):
>
> reset = setcps 0.5625

I tried to add `reset = setcps 0.5625` but this is the output:

```haskell
• No instance for (Show (Pattern Bool -> Pattern a0 -> Pattern a0))
        arising from a use of ‘print’
        (maybe you haven't applied a function to enough arguments?)
    • In a stmt of an interactive GHCi command: print it

```

---

<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:** [7 October 2024 21:15 UTC](https://uzu.lurk.org/t/week-2-lesson-2-manipulating-time-with-setcps-cps-patterns-and-fast-slow-functions/466/26 "2024-10-07T21:15:22Z")

</div>

> [@yaxu](#):
>
> `reset = setcps 0.5625`

Hmm, try `let reset = setcps 0.5625`

---

<div class="post-metadata">

**Author:** ![sebastiano](https://uzu.lurk.org/letter_avatar_proxy/v4/letter/s/f4b2a3/32.png) [@sebastiano](https://uzu.lurk.org/u/sebastiano)\
**Post date:** [8 October 2024 07:23 UTC](https://uzu.lurk.org/t/week-2-lesson-2-manipulating-time-with-setcps-cps-patterns-and-fast-slow-functions/466/27 "2024-10-08T07:23:20Z")

</div>

Solved! Maybe there was another istance of Tidal open. I closed and reopened everything and it works with `reset = setcps 0.5625`.  
Thank you

[Previous page](https://uzu.lurk.org/t/week-2-lesson-2-manipulating-time-with-setcps-cps-patterns-and-fast-slow-functions/466.md?page=1)
