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

Gen 3 Pokemon Inaccurate healing Sound Effect #142

Open
DarthPidgey opened this issue Dec 12, 2023 · 10 comments
Open

Gen 3 Pokemon Inaccurate healing Sound Effect #142

DarthPidgey opened this issue Dec 12, 2023 · 10 comments

Comments

@DarthPidgey
Copy link

As title says the sound effect for using a healing item like potions in a Gen 3 Pokemon game is inaccurate compared to real hardware, MiSTer audio was tested on both HDMI and IO board.
Sound effect comparison.zip

@Toryalai1
Copy link

What is your core version? Latest?

@DarthPidgey
Copy link
Author

DarthPidgey commented Dec 14, 2023

Yes the one released a few days ago, though it's always seemed to have the issue

@Toryalai1
Copy link

How did you record from GB?

@DarthPidgey
Copy link
Author

Via the headphone out, recording software was audacity, but the sound is clearly different even if you were to listen by yourself no matter if it was headphone or speaker

@birdybro
Copy link
Member

birdybro commented Feb 3, 2024

Sounds like the duty cycle is wrong. This sound effect happens on PSG channel 1.

@DarthPidgey
Copy link
Author

the march 17th build didn't fix this

@DarthPidgey
Copy link
Author

the mGBA emulator had the same sound glitch reported by me but was fixed today, any ideas on how to implement something similar? mgba-emu/mgba#3086

@RobertPeip
Copy link
Member

Yes, looks possible to implement.
Can you please create a savestate before the sound effect in question?

Best would be for me: loading savestate -> press a -> sound happens.

Sorry, I'm very bad at hearing these differences, so i must be sure I'm researching the right thing.

@DarthPidgey
Copy link
Author

savestates.zip
The pokemon pinball ruby & sapphire savestate is for the standard US version and should be the easiest to test. The others I used the leaked debug roms since they have an easily accessible soundtest allowing one to hear the sound effects with no music.

@RobertPeip
Copy link
Member

TLDR: not fixed yet. Explanation below.

So the sound effect consists of 3 independent parts. Each part is starting with a frequency and then ramps it up using the sweep functionality.
You can see it in the screenshot(upper one is mister, lower is hw)
grafik
Interesting is the third sequence.
There is a new start marked with the red box , causing the frequency ramp to restart and therefore never reach the high frequency as it should.

I found a mistake in the code in that the freuency register is updated, even when only the lower 8 bit are written and even if the "Start" bit (initial) is not set, so I changed it.
However, it doesn't seem to have any effect.
I included the rbf and the changed source file in the zip here if anyone wants to debug further. I'm out of clues currently, sorry.
rbf_source.zip

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

No branches or pull requests

4 participants