There are currently 4 ways to import MIDI music into MakeCode Arcade: (as found on Awesome Arcade ) (warning: self promotion as I created 3 of the tools)
pxt-rtttl
- You can convert extremely simple MIDI files to RTTTL with converters online. (just a quick search) Easy to use in blocks, but the MIDI file must be extremely simple.Musical-Images
- Using a Python tool you can convert MIDI files to MakeCode Arcade images that store MIDI directly in the image. Easy to use in blocks. The playback algorithm isn’t the best with complicated rhythms. It is depreciated in favor ofArcadeMIDI
.ArcadeMIDI
- Using another Python tool you can convert MIDI files to MakeCode Arcade images that store MIDI directly in the image. Easy to use in blocks. The playback algorithm is better thanMusical-Images
but still not the best.Arcade-MIDI-to-Song
- Another Python tool that can convert MIDI files to MakeCode Arcade Songs. (natively supported by MakeCode Arcade) Not very easy to use in blocks. The playback algorithm uses MakeCode Arcade and so it is much better thanArcadeMIDI
.
Unfortunately, there are currently no non-Python tools that allow you to import complex MIDI files into MakeCode Arcade.
I hope to add media converters (convert PNG/JPG, GIF, and MIDI to MakeCode Arcade images, image arrays, and Song hex buffers respectively, and back) directly on the Awesome Arcade website soon so you don’t have to download any tools - it will run in the browser!