# Midi to Microbit!

**URL:** <https://forum.makecode.com/t/midi-to-microbit/41677>\
**Category:** micro:bit\
**Tags:** music\
**Created:** [January 22, 2026, 11:23pm UTC](https://forum.makecode.com/t/midi-to-microbit/41677 "2026-01-22T23:23:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sonicblaston](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sonicblaston/32/19164_2.png) [@Sonicblaston](https://forum.makecode.com/u/Sonicblaston)\
**Post date:** [January 22, 2026, 11:23pm UTC](https://forum.makecode.com/t/midi-to-microbit/41677/1 "2026-01-22T23:23:57Z")

</div>

### Hello again. it’s been a while hasn’t it?

I made a Python script that converts MIDI files into monophonic sound for the micro:bit. It works for MakeCode Arcade as well, though you have better options for music there.

The script has a few limitations. It cannot translate the BPM of a song correctly, so you will have to adjust that manually. When you run the script, it will ask for a speed multiplier; 1.1 or 1.2 works well for most songs. Additionally, any gaps between notes will cause the last note to be held until a new one begins, effectively extending the note through the silence.

The script creates a text file containing code that you can copy and paste directly into MakeCode. I have provided both a Python version and an EXE. If you aren’t familiar with Python, the EXE is a much easier choice as it is simply the program compiled with PyInstaller.

If you want to download either version, you can get them here:

> **[GitHub - Sonicblaston62/Midi-to-Micro-Bit: This is a script that you can use to convert a...](https://github.com/Sonicblaston62/Midi-to-Micro-Bit)**
>
> This is a script that you can use to convert a midi file into music for the Micro:Bit

Here are some examples made by me and some friends

**Never Gonna Give You Up!**

> **[Never Gonna Give You Up](https://makecode.microbit.org/50649-94022-16756-96302)**
>
> Made with ❤️ in Microsoft MakeCode for micro:bit.

**Megalovania!**

> **[Megalovania](https://makecode.microbit.org/S59347-39865-82670-40449)**
>
> Made with ❤️ in Microsoft MakeCode for micro:bit.

**『アンコールダンス』/ feat. 重音テトSV**

> **["Encore Dance" / feat. Teto Kasane SV](https://makecode.microbit.org/S89971-04039-81288-39817)**
>
> Made with ❤️ in Microsoft MakeCode for micro:bit.

---

<div class="post-metadata">

**Author:** ![Sonicblaston](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sonicblaston/32/19164_2.png) [@Sonicblaston](https://forum.makecode.com/u/Sonicblaston)\
**Post date:** [January 23, 2026, 5:13pm UTC](https://forum.makecode.com/t/midi-to-microbit/41677/2 "2026-01-23T17:13:34Z")

</div>

Oh and if I didn’t make it clear. this all works in makecode arcade with no modifications! Here are the same songs but in Makecode Arcade

**Never Gonna Give You Up**

> **[Never Gonna Give you Up](https://arcade.makecode.com/39319-81187-04741-67428)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

**Megalovania**

> **[Megalovania](https://arcade.makecode.com/30631-91846-83827-02906)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

**『アンコールダンス』/ feat. 重音テトSV**

> **["Encore Dance" / feat. Teto Kasane SV](https://arcade.makecode.com/23952-92354-85660-65380)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.
