# How to transpose within a scale?

**URL:** <https://uzu.lurk.org/t/how-to-transpose-within-a-scale/3921>\
**Category:** TidalCycles\
**Tags:** questions\
**Created:** [6 March 2022 17:18 UTC](https://uzu.lurk.org/t/how-to-transpose-within-a-scale/3921 "2022-03-06T17:18:16Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![johanw](https://uzu.lurk.org/letter_avatar_proxy/v4/letter/j/278dde/32.png) [@johanw](https://uzu.lurk.org/u/johanw)\
**Post date:** [6 March 2022 18:37 UTC](https://uzu.lurk.org/t/how-to-transpose-within-a-scale/3921/3 "2022-03-06T18:37:21Z")

</div>

Thanks a million, this was the help I needed! It's satisfying to see that this goes up the C major scale:

```haskell
d4 $ fast 2 $ n (scale "major" $ "0 1 [2 3]" + "<0 4>") # sound "midi"

```

(And I could mention that the meaning of numbers and letters had me confused -- for example, that `4` here means the fifth note in the scale.)

I should add that I have also been scratching my head over how to select the key, and proudly display the following (using [this post](https://club.tidalcycles.org/t/week-6-lesson-2-musical-scales-including-navigating-them-with-waveforms/1256/8)), going to D3:

```haskell
d4 $ fast 2 $ n (scale "major" $ "0 1 [2 3]" + "<0 4>") |+ n "d3" # sound "midi"

```

Looking at this, wouldn't it would be more convenient to have a variant of `scale` that accepted the key as an argument?

---

_[View the full topic](https://uzu.lurk.org/t/how-to-transpose-within-a-scale/3921)._
