Re-SiON is a re-implementation of an old software synthesizer created for Adobe Flash. It's incredibly tiny (at ~40KB) and runs on the web and desktop platforms. It plays easily editable plaintext MML (Music Macro Language) files which are insanely tiny, many example songs only taking up a few kilobytes.
The project also comes with a playground to play and edit MML in real time, and a converter that can convert from tracker formats and NES/SNES/GameBoy/Genesis music straight to MML.
I've been hacking away at this every day with AI over the past three weeks. It's all open source under MIT. Happy to answer any questions.