You'd have to port the entire game which may or may not be feasible, not just the audio portion that was in question. The FDS uses a slightly different ROM map than cartridge games, so you'd have to port all the code.
Also the FDS games are loaded from disk into RAM in the adapter cartridge and run from there, and that means that games can use as much of that 32KB program RAM space as extra RAM as it wants.