# Melody Editor in Beta!

**URL:** https://forum.makecode.com/t/melody-editor-in-beta/393
**Category:** Arcade
**Created:** [July 31, 2019, 8:41pm UTC](https://forum.makecode.com/t/melody-editor-in-beta/393 "2019-07-31T20:41:37Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![AlexK](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/alexk/32/33339_2.png) [@AlexK](https://forum.makecode.com/u/AlexK)
#### Post date: [July 31, 2019, 8:41pm UTC](https://forum.makecode.com/t/melody-editor-in-beta/393/1 "2019-07-31T20:41:37Z")

</div>

I saw that the team just dropped this in beta a few hours ago: The melody editor has arrived!

> **[Microsoft MakeCode Arcade](https://arcade.makecode.com/beta)**
>
> Develop your programming skills by quickly creating and modding retro arcade games with Blocks and JavaScript in the MakeCode editor

You can find the new melody editor in the Music drawer of the toolbox. I love how brilliantly simple the block is. The melody player blocks until the melody has finished playing, so you can string multiple melody blocks together to create longer songs.

To add background music to a game, add melody blocks to a `forever` block.

Kudos to the team for a great addition!

_Note_: The comments above on how the block works are not my own. I totally stole them from Kim’s comments in GitHub. 🙂 Kim is the primary author of the melody block. See the full set of comments here, complete with screenshots:

> <https://github.com/microsoft/pxt-common-packages/pull/901>

---

<div class="post-metadata">

### Author: ![shaqattack8](https://avatars.discourse-cdn.com/v4/letter/s/3da27b/32.png) [@shaqattack8](https://forum.makecode.com/u/shaqattack8)
#### Post date: [August 2, 2019, 12:02am UTC](https://forum.makecode.com/t/melody-editor-in-beta/393/2 "2019-08-02T00:02:01Z")

</div>

i made a demo for all of the gallery melodies, with colored squares lighting up to signify the notes after the melody plays

---

<div class="post-metadata">

### Author: ![henrym](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/henrym/32/16963_2.png) [@henrym](https://forum.makecode.com/u/henrym)
#### Post date: [August 9, 2019, 2:49am UTC](https://forum.makecode.com/t/melody-editor-in-beta/393/3 "2019-08-09T02:49:28Z")

</div>

This is really exciting!! I don’t think previously there were any method to make the background music stop once the game is over.

One feature I’d like to be added would be the ability to change key and whether the scale is major or minor in the blocky interface, though I see that the notes can be customized in JavaScript like this:

```
game.onUpdate(function () {
    music.playMelody("E2 G2 A2 G2 D3 C3 D3 E3 ", 640)
})
```

---

<div class="post-metadata">

### Author: ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)
#### Post date: [August 9, 2019, 10:55pm UTC](https://forum.makecode.com/t/melody-editor-in-beta/393/4 "2019-08-09T22:55:10Z")

</div>

Yep! We are definitely not done with the melody editor. If you have any suggestions or features, please file them over at [https://github.com/microsoft/pxt-arcade/issues](https://github.com/microsoft/pxt-arcade/issues)

---

<div class="post-metadata">

### Author: ![kjw](https://avatars.discourse-cdn.com/v4/letter/k/e79b87/32.png) [@kjw](https://forum.makecode.com/u/kjw)
#### Post date: [August 14, 2019, 4:15pm UTC](https://forum.makecode.com/t/melody-editor-in-beta/393/5 "2019-08-14T16:15:16Z")

</div>

There are some existing tickets in this space, worth looking at these too to add support for things mentioned already:

- [Function/Block for stopping the melody from playing #1197](https://github.com/microsoft/pxt-arcade/issues/1197)
- [Melody Editor User Feedback Requests #1198](https://github.com/microsoft/pxt-arcade/issues/1198)
