pinobatch / pently

Scalable music engine for NES games
zlib License
72 stars 4 forks source link

Write NSFe chunks to NSF2 #41

Closed pinobatch closed 5 years ago

pinobatch commented 5 years ago

NSF version 2 specifies the total length in bytes of the program section. This allows NSFe chunks (see issues #39 and #40) to follow it. All chunks but INFO, DATA, and BANK should be copied to the NSFe metadata area. The header should be built from INFO, BANK, and auth if present.

NSFPlay maintainer Brad Smith wrote a tool nsfe_to_nsf2.py to turn an NSFe file into an equivalent NSF2 file with NSFe data. In channel #development of the FamiTracker.org Discord server, he released it under what amounts to the WTFPL:

<rainwarrior> do whatever you want with it
pinobatch commented 5 years ago

NSFPlay beta correctly plays NSF2 and shows metadata the same as it does for NSFe.

(A recent commit message mentions errors with the displayed Dendy rate. These turned out to be only cosmetic, and even changing tracks caused it to clear up.)