# A new way to create music in Makecode

**URL:** https://forum.makecode.com/t/a-new-way-to-create-music-in-makecode/17563
**Category:** Show & Tell
**Created:** [January 23, 2023, 6:07pm UTC](https://forum.makecode.com/t/a-new-way-to-create-music-in-makecode/17563 "2023-01-23T18:07:16Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![Spaghetti\_Coder](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/spaghetti_coder/32/6890_2.png) [@Spaghetti\_Coder](https://forum.makecode.com/u/Spaghetti_Coder)
#### Post date: [January 23, 2023, 6:07pm UTC](https://forum.makecode.com/t/a-new-way-to-create-music-in-makecode/17563/1 "2023-01-23T18:07:16Z")

</div>

It seems that recently there was an update to Makecode Arcade, allowing for sounds to be made using different waveforms. I’m certain this will be excellent for creating custom sound effects, but I wanted to see how far I could push this. And so I decided to use the new blocks to create an entire song! I did have a little trouble trying to figure out how to get more than one “channel” of notes playing, but by using Makecode’s timer extension and the “separately do” block, I was able to get it working. This was by no means an easy feat, as the song itself consists of 207 lines of code! And there was a lot of math involved trying to figure out the correct note lengths.

And while UnsignedArduino has made a MIDI extension for a, much easier way of implementing music, I still wanted to see if it was possible to create songs this way. Plus, because of the different waveforms, you can technically have different instruments for your music. I’m sure this is just the surface of what you can do with the new blocks, but I’m proud of what I’ve got done, so please, take a listen!

> **[Kremlantis Music Test](https://arcade.makecode.com/18319-23176-14118-44104)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

The music used is the Kremlantis theme from Donkey Kong Land, composed by the excellent David Wise.

---

<div class="post-metadata">

### Author: ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/32505_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)
#### Post date: [January 23, 2023, 6:55pm UTC](https://forum.makecode.com/t/a-new-way-to-create-music-in-makecode/17563/2 "2023-01-23T18:55:35Z")

</div>

With the sinewaves and PRAAT audio software, i’ve been able to make (low quality) human speech- I might be working on a text to speech game 🤫

---

<div class="post-metadata">

### Author: ![Vegz78](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/vegz78/32/1201_2.png) [@Vegz78](https://forum.makecode.com/u/Vegz78)
#### Post date: [January 23, 2023, 10:18pm UTC](https://forum.makecode.com/t/a-new-way-to-create-music-in-makecode/17563/3 "2023-01-23T22:18:39Z")

</div>

Nice work, @Spaghetti_Coder! Have you checked out @kwx “Simple loops” method?  
[https://forum.makecode.com/t/song-gallery/5471/30](https://forum.makecode.com/t/song-gallery/5471/30)

Really cool, @randomuser!!! Do you have a small demo for us?

I’ve been looking some time now for a way to bring back to life something like the old SAM speak synthesizer from the C64 in MCA!!!  
[https://forum.makecode.com/t/arcademidi-extension/15079/34](https://forum.makecode.com/t/arcademidi-extension/15079/34)

---

<div class="post-metadata">

### Author: ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/32505_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)
#### Post date: [January 24, 2023, 12:35am UTC](https://forum.makecode.com/t/a-new-way-to-create-music-in-makecode/17563/4 "2023-01-24T00:35:48Z")

</div>

> **[Failed 'Hello'](https://arcade.makecode.com/S60024-90197-52070-13821)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Here, a test i did a few months back. It was supposed to be the roblox ‘Hello!’ but as it was my first time in the program, it turned into this monster! In my current demo I’m making the phonemes of english so you could build words, with 3 sine wave tracks instead of the just 1 you hear in this clip. There will also be volume variation- this is important because as you hear in the demo the hello has an odd high note at the end that is actually supposed to be quieter than the rest. **Once I’m done with Unique-A-Thon, this will be my top priority again!**

---

<div class="post-metadata">

### Author: ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/32505_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)
#### Post date: [January 24, 2023, 12:35am UTC](https://forum.makecode.com/t/a-new-way-to-create-music-in-makecode/17563/5 "2023-01-24T00:35:54Z")

</div>

(Thats a great idea, using the timer extension. In my usage of sinewaves they always end with an odd few-milisecond beep, so the timers should eliminate that!)

---

<div class="post-metadata">

### Author: ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/32505_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)
#### Post date: [February 17, 2023, 6:01pm UTC](https://forum.makecode.com/t/a-new-way-to-create-music-in-makecode/17563/6 "2023-02-17T18:01:37Z")

</div>

Just sending an update if anyone’s curious. I’ve progressed a bit on this game between unique-a-thon rounds, and its looking great! The PRAAT software is a bit complex for me but now I can understand it. So far I’ve gotten the text to speech to create the english phonemes /b/, /ē/ (long ee sound), and /t/. (What a feat of engineering… i got a computer to say beet) I started with /b/ and /t/ to make sure the bot could handle the full vocal stops, and it looks like it mostly can, although my you need to have great audio quality for it to register correctly on the spectrogram in PRAAT. I’ll send more updates after unique-a-thon ends!

---

<div class="post-metadata">

### Author: ![labfox29](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/labfox29/32/9252_2.png) [@labfox29](https://forum.makecode.com/u/labfox29)
#### Post date: [March 22, 2023, 3:00pm UTC](https://forum.makecode.com/t/a-new-way-to-create-music-in-makecode/17563/7 "2023-03-22T15:00:27Z")

</div>

Where can I find it? Because I want to hear how it sounds or even if there are more advancements.

---

<div class="post-metadata">

### Author: ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/32505_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)
#### Post date: [March 22, 2023, 3:18pm UTC](https://forum.makecode.com/t/a-new-way-to-create-music-in-makecode/17563/8 "2023-03-22T15:18:14Z")

</div>

I haven’t done any more work on it since- second semester has been tough! I’m hoping to get back into programming it during the next week-long break, so probably april

---

<div class="post-metadata">

### Author: ![labfox29](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/labfox29/32/9252_2.png) [@labfox29](https://forum.makecode.com/u/labfox29)
#### Post date: [March 24, 2023, 4:47pm UTC](https://forum.makecode.com/t/a-new-way-to-create-music-in-makecode/17563/9 "2023-03-24T16:47:30Z")

</div>

Can you send what you have right now?

---

<div class="post-metadata">

### Author: ![Sadie](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sadie/32/8164_2.png) [@Sadie](https://forum.makecode.com/u/Sadie)
#### Post date: [March 24, 2023, 4:48pm UTC](https://forum.makecode.com/t/a-new-way-to-create-music-in-makecode/17563/10 "2023-03-24T16:48:17Z")

</div>

I love it! iI’s amazing that you can use simple blocks to make such beautiful music!

---

<div class="post-metadata">

### Author: ![Ultimategreg123](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ultimategreg123/32/9940_2.png) [@Ultimategreg123](https://forum.makecode.com/u/Ultimategreg123)
#### Post date: [August 8, 2023, 4:49pm UTC](https://forum.makecode.com/t/a-new-way-to-create-music-in-makecode/17563/11 "2023-08-08T16:49:51Z")

</div>

are you planning on making an extension on this? I love the idea

I know its prob been 10000 years since this reply 😅

---

<div class="post-metadata">

### Author: ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/32505_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)
#### Post date: [August 8, 2023, 8:53pm UTC](https://forum.makecode.com/t/a-new-way-to-create-music-in-makecode/17563/12 "2023-08-08T20:53:30Z")

</div>

Actually, @Sarge Is making a way better version with his javascript expertise! Plus, I found out the hard way that makecode has its limits on playing sine waves- too many in one project and they start somehow making beeping and static noises. XD

---

<div class="post-metadata">

### Author: ![Ultimategreg123](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ultimategreg123/32/9940_2.png) [@Ultimategreg123](https://forum.makecode.com/u/Ultimategreg123)
#### Post date: [August 9, 2023, 4:46pm UTC](https://forum.makecode.com/t/a-new-way-to-create-music-in-makecode/17563/13 "2023-08-09T16:46:03Z")

</div>

do you have a link?

---

<div class="post-metadata">

### Author: ![\_jupiter](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/_jupiter/32/28012_2.png) [@\_jupiter](https://forum.makecode.com/u/_jupiter)
#### Post date: [March 29, 2024, 5:55pm UTC](https://forum.makecode.com/t/a-new-way-to-create-music-in-makecode/17563/14 "2024-03-29T17:55:03Z")

</div>

Not before me chucklenuts

LETS DO THIS

---

<div class="post-metadata">

### Author: ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/32505_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)
#### Post date: [April 1, 2024, 1:51am UTC](https://forum.makecode.com/t/a-new-way-to-create-music-in-makecode/17563/15 "2024-04-01T01:51:15Z")

</div>

GASP you have text-to-speech!?
