# Week 6, lesson 4 - controlling Tidal with MIDI

**URL:** <https://uzu.lurk.org/t/week-6-lesson-4-controlling-tidal-with-midi/1260>\
**Category:** Week 6 - canons, scales, controlling MIDI etc\
**Created:** [29 May 2020 08:22 UTC](https://uzu.lurk.org/t/week-6-lesson-4-controlling-tidal-with-midi/1260 "2020-05-29T08:22:21Z")\
**Posts on this page:** 4\
**Page:** 3

<div class="post-metadata">

**Author:** ![ben](https://uzu.lurk.org/user_avatar/uzu.lurk.org/ben/32/362_2.png) [@ben](https://uzu.lurk.org/u/ben)\
**Post date:** [7 August 2021 20:11 UTC](https://uzu.lurk.org/t/week-6-lesson-4-controlling-tidal-with-midi/1260/42 "2021-08-07T20:11:33Z")

</div>

Ahhhhh, thank you!

I think I only just now realized that we need to assign those based on where they're GOING not where they come FROM. Of course! lol

---

<div class="post-metadata">

**Author:** ![ben](https://uzu.lurk.org/user_avatar/uzu.lurk.org/ben/32/362_2.png) [@ben](https://uzu.lurk.org/u/ben)\
**Post date:** [10 August 2021 19:07 UTC](https://uzu.lurk.org/t/week-6-lesson-4-controlling-tidal-with-midi/1260/43 "2021-08-10T19:07:00Z")

</div>

This does work thanks:

```haskell
fast (range 1 2 $ cT 1 "20")

```

But what if I do want the results to be an integer (ie either 1 or 2). I would think that I'd want to use `floor` or `round` but I'm getting errors from:

```haskell
fast (round <$> range 1 2 $ cT 1 "20")

```

Any ideas?

---

<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:** [10 August 2021 20:26 UTC](https://uzu.lurk.org/t/week-6-lesson-4-controlling-tidal-with-midi/1260/44 "2021-08-10T20:26:15Z")

</div>

'quantise 1' is the easiest way I'd say [Alteration | Tidal Cycles](https://tidalcycles.org/docs/patternlib/tour/alteration/#quantise)

---

<div class="post-metadata">

**Author:** ![ben](https://uzu.lurk.org/user_avatar/uzu.lurk.org/ben/32/362_2.png) [@ben](https://uzu.lurk.org/u/ben)\
**Post date:** [10 August 2021 20:54 UTC](https://uzu.lurk.org/t/week-6-lesson-4-controlling-tidal-with-midi/1260/45 "2021-08-10T20:54:37Z")

</div>

Ahhhhhhhhhh. THANK YOU.

[Previous page](https://uzu.lurk.org/t/week-6-lesson-4-controlling-tidal-with-midi/1260.md?page=2)
