This is an archive of a topic from NESdev BBS, taken in mid-October 2019 before a server upgrade. View original topic
Extract 1 song from NSF "album"
by jpx72 on 2011-04-01 (#76039)
Hello, anyone can guide me on how to save one song (as *.nsf) from a common *.nsf file containing many songs? (for example from this site: http://www.zophar.net/music/nsf.html )
Thanks...
Do you want an automated tool to do this, or are you fine with assembly hacking? If the latter, hack the code at the NSF's init address to change the song number to a constant.
Thanks for the replies, but the only programming language I'm a little familiar with is (was) turbo Pascal
So yes, I am looking for a piece of software that can do that, windows command line type would be sufficient... Or at least some way to cut the NSF file in hex-editor if that's even possible.
Using a hex editor you could change the 'starting track' number in the NSF header, then in the player don't change tracks. Then create copies of the file with different starting tracks for as many as you want.
Thanks, this should do the trick! One last question - songs in the "music data" after the header have -start- and -end- offset? I'm thinking about cutting the unused out to save space...
Not necessarily. Among code, instrument definitions, and music sequence data, the order of which comes first is entirely up to the programmer of the music engine.