# (Hopefully) Interesting snippet for making melodies

**URL:** <https://uzu.lurk.org/t/hopefully-interesting-snippet-for-making-melodies/2012>\
**Category:** TidalCycles\
**Tags:** resources\
**Created:** [24 August 2020 13:37 UTC](https://uzu.lurk.org/t/hopefully-interesting-snippet-for-making-melodies/2012 "2020-08-24T13:37:13Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![ghales](https://uzu.lurk.org/user_avatar/uzu.lurk.org/ghales/32/2171_2.png) [@ghales](https://uzu.lurk.org/u/ghales)\
**Post date:** [24 August 2020 21:43 UTC](https://uzu.lurk.org/t/hopefully-interesting-snippet-for-making-melodies/2012/6 "2020-08-24T21:43:10Z")

</div>

Hi all! I really like this topic, this is my favorite one-liner:

```haskell
let tonal root mode = note . (|+ root) . scale mode

d1 $ tonal "<0 3>" "major" $ "0 2 4 7"

```

I'm currently researching ways to use `ControlMaps` for this. This is what I'm aiming for:

```haskell
d1 $ "0 2 4 6" # key "0:major"

```

---

_[View the full topic](https://uzu.lurk.org/t/hopefully-interesting-snippet-for-making-melodies/2012)._
