-
Notifications
You must be signed in to change notification settings - Fork 31
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
MIDI Notes above 0x50 (G# 5) all play the same wrong note 0x24 #3
MIDI Notes above 0x50 (G# 5) all play the same wrong note 0x24 #3
Comments
@zemzelett did you encounter this issue during the rewrite? |
Yes. During my rewrite i encountered something like this. I had random notes playing above a certain note value.
It was due to the lookup table being restricted. I think i implemented something to prevent playing notes beyond the actual possible range of the Gameboy.
i guess something similar is happening for you. The code probably wraps to the lowest possible note or it goes beyond the lookup picking up „random values“ for the frequency. You might find something looking into the section of the code, where the frequency value is being looked up. (e.g.: https://github.com/trash80/mGB/blob/master/Source/mGBASMSynthFunctions.s#L429)
I’m currently on the move, so i’m not able to go into too much detail.
… Am 10.02.2019 um 15:07 schrieb Greig Stewart ***@***.***>:
@zemzelett <https://github.com/zemzelett> did you encounter this issue during the rewrite?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#3 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ALBq918h_o--mpfjlWHidA4OfGdvspZzks5vMCeugaJpZM4azEh9>.
|
Just pushed some older versions I believe before I made changes for using the newer GBDK which seems to have a few different issues. Maybe this may help with investigation. Hopefully it can compile for you. I currently do not have the time to look into this, but I recall quirks when I made the GBDK changes. |
For some reason the const keyword was removed from the |
I do not know but that sort of wacky trickery generally indicates issues fighting with GBDK bugs/features. |
I think the reason for this issue might be that the The significance of I do think that the table should be |
I am finding building the rom using the master branch with the new make process using SDCC results in this issue. Notes above G# 5 all play C2 on channels 1 and 2. The same issue exists on channel 3 but at a different note. The newest rom in the releases directory works fine but I believe that was built using the old process.
Steps to reproduce, using Ubuntu 18.10:
Rom is attached. mgb.zip
The text was updated successfully, but these errors were encountered: