5.7 KiB
🎹🎶 mt32-pi
A work-in-progress baremetal Roland MT-32 emulator for the Raspberry Pi 3 or above, based on Munt and Circle. Turn your Raspberry Pi into a dedicated emulation of the famous multi-timbre sound module used by countless classic MS-DOS and Sharp X68000 games, that starts up in seconds!
Project status
- Tested on Raspberry Pi 4 Model B and Raspberry Pi 3 Model B+.
- It's possible that the Pi 2 may be good enough, but I don't have one for testing. Can you help?
- Pi 0 and 1 are unfortunately too slow, even with an overclock.
- PWM headphone jack audio.
- Quality is known to be poor (aliasing/distortion on quieter sounds).
- It is not currently known whether this can be improved or not.
- USB or GPIO MIDI interface.
- I2S Hi-Fi DAC support is almost ready (feel free to open an issue if you have a DAC HAT and want to test!).
- LCD status screen support (for MT-32 SysEx messages and status information) is in progress.
Quick-start guide
- Download the latest release from the Releases section.
- Extract contents to a blank FAT32-formatted SD card.
- If you are updating an old version, you can just replace the
kernel*.imgfiles. The other boot files will not change often; but keep an eye on the changelog just in case.
- If you are updating an old version, you can just replace the
- Add
MT32_CONTROL.ROMandMT32_PCM.ROMto the root of the SD card - you have to provide these for copyright reasons. - Connect a USB MIDI interface or GPIO MIDI circuit to the Pi, and connect some speakers to the headphone jack.
- Connect your vintage PC's MIDI OUT to the Pi's MIDI IN and (optionally) vice versa.
MIDI connection examples
[ Pi ] --> [ USB/GPIO MIDI ] <===> [ USB MIDI ] <-- [ Modern PC ]
[ Pi ] --> [ USB/GPIO MIDI ] <===> [ Gameport MIDI cable ] <-- [ Vintage PC ]
[ Pi ] --> [ USB/GPIO MIDI ] <===> [ Atari ST or other machine with built-in MIDI ]
[ Pi ] --> [ USB/GPIO MIDI ] <===> [ Synthesizer keyboard or controller ]
Confirmed working USB MIDI interfaces
Any class-compliant USB MIDI interface should work fine - if the interface works on Windows or Linux PCs without requiring any drivers, there's a high chance it will work with mt32-pi.
Beware: cheap no-name interfaces are not recommended; they have reliability issues not unique to this project [1, 2].
If you're shopping for a USB MIDI interface, the following devices have been confirmed as working properly by our testers. Feel free to contribute test results with your own MIDI interfaces and we can list known working ones!
| Manufacturer | Device | Comments |
|---|---|---|
| M-Audio | Uno | 1 in, 1 out; male DIN plugs. Tested by @dwhinham. |
| M-Audio | MIDISport 1x1 | 1 in, 1 out; female DIN sockets. Tested by @nswaldman. |
GPIO MIDI interface
You can build a simple circuit based on an opto-isolator, a diode, and a few resistors. If mt32-pi does not detect any USB MIDI devices present on startup, it will expect to receive input on the UART RX pin (pin 10).
Schematic
Breadboard example
Custom System Exclusive messages
mt32-pi responds to MT-32 SysEx messages as you would expect, but it can also respond to its own commands. mt32-pi listens for manufacturer ID 0x7D, or the "non-commercial/educational use" special ID. Therefore, a complete mt32-pi SysEx message looks like:
F0 7D { command } F7
Currently there is only one implemented command, although more will probably be added in the future. Please note that these commands are subject to change until the project reaches a mature state.
| Command | Description |
|---|---|
00 |
Reboot the Raspberry Pi. |
FAQ
- Q: What happened to the old
mt32-piproject that was based on a minimal Linux distro built with Buildroot?
A: That's been archived in theold-buildrootbranch.
Disclaimer
This project, just like Munt, has no affiliation with Roland Corporation. Use of "Roland" or other registered trademarks is purely for informational purposes only, and implies no endorsement by or affiliation with thheir respective owners.
Acknowledgments
- Many thanks go out to @rc55 and @nswaldman for their encouragement and testing! ❤️
- The Munt team for their incredible work reverse-engineering the Roland MT-32 and producing an excellent emulation and well-structured project.
- The Circle and circle-stdlib projects for providing the best C++ baremetal framework for the Raspberry Pi.
