It's not my melody... It's marcb0t's Ocean Melody. Fix it.foobat wrote:No matter how hard I tried, it was utterly impossible to get it to play r57shell's Ocean Melody without frequent slowdown though.
Actually there are same troubles with VGM player for MD, but there are VGM players for MD.
I can give you some idea how to implement VGM with such precision. I don't familiar with hardware... but I think you can make some hardware "buffer". Cyclical buffer of YM2612 writes. So your microcontroller will write all reg writes in buffer, and buffer will write in YM2612 in correct timing. All you have to do is to check position in buffer, and fill it when it's needed.