There are only so many ways to generate music with a computer, and by far the most popular method is MIDI. It’s been around for thirty-five years, and you don’t get to be a decades-old standard for no reason. That said, turning MIDI into audio is a pain, but this project in the Musical Instrument Challenge for the Hackaday Prize makes it easy. It’s a Fluxamasynth Module that turns MIDI into something you can hear.
The key to this build is a single chip that takes MIDI data in and spits out audio, according to the 128 general MIDI sounds. This might not sound like much, but if you’ve ever tried to turn MIDI into sound, you’ll find your options are limited. There is exactly one chip that can do this and is easily obtainable: the SAM2695 from Dream Sound Synthesis. This chip was originally designed for cheap toy keyboards, but if you have a chip, you can do anything with it.
The Fluxamasynth Modules are inspired by the original Fluxamasynth, an Arduino shield that is basically a breakout board for the SAM chip. There’s a MIDI in, and an 1/8″ jack for output, and not much else. The Fluxamasynth Modules extend the capability by adding more support, including stereo output, reverb, chorus, flange, and delay effects, and digs down deep into the configurable parameters for tuning.
The hardware is basically an audio appliance for the Arduino, Raspberry Pi, and the ESP32, and allows for generative music through code. You can see an example of this project in the video below.