There's no easy way to do it. The music depends on when the PSG registers are written and what they're written with. There's no generic way to extract this from the ROM itself. At best, it might be possible on some games to find and reverse-engineer the program and data used to create the music, but that's a lot of work for each game.