Skip to content

[Bug]: XG MIDI playback is weird with external MIDI output #9565

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

Open
Limyx826 opened this issue Sep 21, 2021 · 5 comments
Open

[Bug]: XG MIDI playback is weird with external MIDI output #9565

Limyx826 opened this issue Sep 21, 2021 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@Limyx826
Copy link
Contributor

Limyx826 commented Sep 21, 2021

Version of OpenTTD

1.11.2 Windows 10 21H1

Expected result

Smooth playback of XG midi

Actual result

Botched playback of XG midi

Steps to reproduce

Change your MIDI output from default Windows to external MIDI out (e.g. Virtual MIDI Synth, etc.).
Just load Traditional Winter Holiday Music Pack from BaNaNaS and play auld lang syne, it is the most obvious case.
Play the midi file directly with a midi player and you will know.

@Limyx826 Limyx826 changed the title [Bug]: XG midi playback is weird [Bug]: XG MIDI playback is weird with external MIDI playback Sep 21, 2021
@Limyx826 Limyx826 changed the title [Bug]: XG MIDI playback is weird with external MIDI playback [Bug]: XG MIDI playback is weird with external MIDI output Sep 21, 2021
@nielsmh
Copy link
Contributor

nielsmh commented Sep 21, 2021

Does the MIDI file in question have an XG system reset message in it? I haven't tested with that music set at all myself but I do have two XG synths so I'll test this later today.

@Limyx826
Copy link
Contributor Author

According to the MIDI player I have it is XG.
image

@nielsmh
Copy link
Contributor

nielsmh commented Sep 21, 2021

There is definitely something going wrong, yes. I'm not entirely sure what it is, and I doubt it specifically has to do with the sequences being XG spec, but there might be something else with note on/off ordering that goes wrong somewhere in loading or playback. Because I definitely do get hanging notes with those tunes, and they don't hang when played by other software.

@nielsmh nielsmh self-assigned this Sep 21, 2021
@nielsmh nielsmh added the bug Something isn't working label Sep 21, 2021
@nielsmh
Copy link
Contributor

nielsmh commented Sep 21, 2021

Tested a bit more. The hanging notes happen when I use a hardware port on both the win32 and the dmusic drivers, not when I use the Microsoft softsynth with either, but if I configure DirectMusic without a port at all (i.e. using the "default softsynth" rather than "softsynth as a MIDI device") the playback breaks even more, missing several instruments. Possibly because the MIDI is selecting a bank containing no sounds, and instead of falling back on the default bank it just plays silence instead.

@Limyx826
Copy link
Contributor Author

The same in openttd-20240130-master-g96651b5ada-windows-win64.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants