How to implement some sort of VGM, Tracker file or MIDI -type music player in my projects?

Hi again, you may remember me for asking about enabling OpenGL rendering, which, um, ended up somewhat inconclusive.
Well, now, I want to implement some sort of VGM player. Or a Tracker file player. Or a MIDI player with OPL3 emulation.
I have some experience in programming, but not alot.
Is any of the following already been pre-built before?
(And yes, I will use music that isn’t restricted by copyright.)