nsfplay icon indicating copy to clipboard operation
nsfplay copied to clipboard

Sunsoft 5B/YM2149F highest frequency missing plus slite volume cerve error?

Open djmaximum17 opened this issue 1 year ago • 6 comments

I've tested this with various NSF players, NEZplug++ seems to be the only player that emulates this NSFplay just ignores it, also I think the volume curve is a bit off? 5B_ultrasound_half_volume_test.zip

djmaximum17 avatar Jun 27 '24 03:06 djmaximum17

If NEZPlug does something differently than NSFPlay this is not something I consider an error. I have no reason to assume NEZplug is correct.

What does it do on 5B hardware, and does that differ from NSFPlay?

The idea that a tone with period 1 could reduce the volume of the envelope is plausible, but I can't make that assumption without seeing the hardware do it. (Does seem to be something that's on my list to investigate though. #7 & #43 )

Similarly, I would not alter the volume curve without a hardware demonstration that contradicts it. The current shape was set to match hardware as closely as I could, for a single channel.

In the long term I'd want have an option to simulate the 5B amplifier circuit in NSFPlay 3.0: https://forums.nesdev.org/viewtopic.php?f=2&t=17745

bbbradsmith avatar Jun 27 '24 14:06 bbbradsmith

if anyone has a TNS-HFC, TNS-HFX or a Nishizumi and a Famicom cart that has a real Sunsoft 5B, we need a hardware recording to confirm this behavior.

djmaximum17 avatar May 12 '25 12:05 djmaximum17

I have a Gimmick cart, I just need a test ROM, but this is not a priority issue for me so I have not written one at this point. If you have a ROM ready that you want me to test I would be willing to do that. Otherwise it will wait until I find the time for it.

bbbradsmith avatar Jun 04 '25 06:06 bbbradsmith

PPMCK's ROM export only supports 2A03, I don't know of any tools that can convert NSFs into ROMs that supports expansion chips.

djmaximum17 avatar Jun 07 '25 05:06 djmaximum17

What I would need to write is a hotswap test ROM, like the ones in: https://github.com/bbbradsmith/nes-audio-tests

bbbradsmith avatar Jun 16 '25 20:06 bbbradsmith