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:
Here are some examples made by me and some friends
Never Gonna Give You Up!
Megalovania!
『アンコールダンス』/ feat. 重音テトSV