# Music requests

**URL:** https://forum.makecode.com/t/music-requests/6454
**Category:** Help
**Created:** [March 1, 2021, 10:23pm UTC](https://forum.makecode.com/t/music-requests/6454 "2021-03-01T22:23:55Z")
**Posts on this page:** 1
**Showing post:** 22

<div class="post-metadata">

### Author: ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)
#### Post date: [January 4, 2022, 12:11am UTC](https://forum.makecode.com/t/music-requests/6454/22 "2022-01-04T00:11:31Z")

</div>

I’ve been using a new extension that doesn’t generate JavaScript - it generates MakeCode Arcade images that it will parse using an easy-for-a-robot-to-generate-but-not-easy-for-humans-to-make format. So it’s easier to copy and paste a bunch of images into an image editor than to switch to JavaScript, create a new `.ts` file, paste in JavaScript, pray to the gods of MakeCode Arcade and switch back to blocks hoping nothing has been screwed up.

The extension is here:

> **[GitHub - UnsignedArduino/Musical-Images: An extension to write and play music...](https://github.com/UnsignedArduino/Musical-Images)**
>
> An extension to write and play music scores in MakeCode Arcade! - GitHub - UnsignedArduino/Musical-Images: An extension to write and play music scores in MakeCode Arcade!

I’ve written a Python script to take a MIDI file, do some mediocre black magic, and generate okay images:

> **[GitHub - UnsignedArduino/Musical-Images-Generator: A Python program to...](https://github.com/UnsignedArduino/Musical-Images-Generator)**
>
> A Python program to generate images compatible with the Musical-Images extension in MakeCode Arcade! - GitHub - UnsignedArduino/Musical-Images-Generator: A Python program to generate images compati...

You can find the code and instructions in the repo. Python knowledge is highly recommended for installation as the instructions won’t go over every single command to install.

It’s pretty good with songs that have a consistent beat - it’s absolute garbage with triplets and weird rhythms. And rests don’t exist! I’ve worked on this for several months and it doesn’t want to work with rests and stuff so PRs are welcome. 🙂

* * *

For performance on actual hardware, I have not tested it thoroughly, I’ve only tried it on small images in one of my [games](https://forum.makecode.com/t/crab-rave/10692) on a PyGamer which seemed to be fine.

---

_[View the full topic](https://forum.makecode.com/t/music-requests/6454)._
