Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NSF Export Issues in 0.5.0.1 #215

Open
etoubleh opened this issue May 17, 2023 · 2 comments
Open

NSF Export Issues in 0.5.0.1 #215

etoubleh opened this issue May 17, 2023 · 2 comments

Comments

@etoubleh
Copy link

etoubleh commented May 17, 2023

https://web.archive.org/web/20170130070756/http://www.fodxm.co.uk/fod_coffeezonesources.zip
Dn-FT crashes when I try to export 4_raindance.ftm to NSF.

https://battleofthebits.org/arena/Entry/Suppressed+Feelings/31620/
https://battleofthebits.org/arena/Entry/All+Bets+are+0ff/46078/
The first 2A03 square wave channel is transposed down when I export these to NSF and play them in NSFplay.
Based on a small sample size of .ftm and .0cc files that I tested, it seems like this only affects songs that use multiple expansion chips.

@Gumball2415
Copy link
Member

Gumball2415 commented Feb 17, 2024

2A03 square transposition is due to Kxx state clobbering via bugged S5B init code.

When multichip is enabled (2 or more chips), Dn uses compiled driver code with all expansion audio enabled. The program then diligently patches the driver as necessary to play the actual chips used in the module.

This means this issue affects every NSF export with multichip.

@Gumball2415
Copy link
Member

Gumball2415 commented Feb 28, 2024

image
Rain Dance appears to have invalid pattern instrument data at frame 3A, pattern 3E, in the DPCM channel
this causes the pattern compiler to return an invalid DPCM instrument pointer, which crashes the program.

by default, Dn-FamiTracker bypasses invalid pattern data, all the way back to vanilla.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants