A couple of years ago I wrote a MIDI player with a bluepill board (STM32F1 microcontroller) and a waveform generator (AD9833) in Rust. It was actually quite simple and a lot of fun to write (and hear!).
Video: [1]
Source code: [2]
[1] https://blog.eldruin.com/ad983x-waveform-generator-dds-drive...
[2] https://github.com/eldruin/driver-examples/blob/master/stm32...