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

MIDI file 00Matrix.mid played incorrect with Fluidsynth #3335

Open
BlisterB opened this issue Jan 19, 2025 · 2 comments
Open

MIDI file 00Matrix.mid played incorrect with Fluidsynth #3335

BlisterB opened this issue Jan 19, 2025 · 2 comments

Comments

@BlisterB
Copy link
Member

BlisterB commented Jan 19, 2025

EasyRPG Continuis Build doesn't seem to use the correct soundfont file :

  • Using gm.sf2 (or scc1t2.sf2) as easyrpg.soundfont file in the game folder
  • The MIDI file 00Matrix.mid isn't played correctly
  • "F1" -> "Audio" -> "MIDI" screen confirms that easyrpg.soundfont file is being played

Image

  • If I delete the file easyrpg.soundfont on Windows, the file is played correctly
  • With VLC, if I use gm.sf2 as soundfile, the file is played correctly (so the problem doesn't come from the soundfile)

Image

  • Here is a test game using 00Matrix.mid as the Title Screen music:

Project MIDI Issue.zip

@Ghabry Ghabry changed the title MIDI file played with the wrong soundfont MIDI file 00Matrix.mid played incorrect with Fluidsynth Jan 19, 2025
@Ghabry
Copy link
Member

Ghabry commented Jan 19, 2025

Fluidsynth is being used to play the file and it uses the correct soundfont but it sounds different.

Biggest difference is the "ooooooooooooooo" sound in the background. In the Player at 18s it is cut off. In VLC it continues.

Not sure why this happens, I compared our MIDI code with the VLC MIDI code and they look quite similar.

@fdelapena
Copy link
Contributor

fdelapena commented Feb 1, 2025

Needs retesting with FluidSynth 2.4.3, released 1 week after this bug report. ChangeLog shows some fixed with voices not terminating when they should or even raising.
https://github.com/FluidSynth/fluidsynth/releases/tag/v2.4.3
And the cut-off, if related to drums, it is now reverted to behave as in (likely) VLC. Now it can be set to behave as Microsoft GM/GS synth as a setting.

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

No branches or pull requests

3 participants