So, generally speaking, there isn't a single unified way to do this. Every GB/C game's music code is unique, and some games have some non-standard optimizations to them. A GBS file is essentially just a ROM with everything but the music code stripped out, so the developer's original code is...