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

Fix: Two issues in MIDI file writer #8125

Merged
merged 1 commit into from May 8, 2020
Merged

Conversation

nielsmh
Copy link
Contributor

@nielsmh nielsmh commented May 8, 2020

  • Variable-length values would write threshold values with a byte too many.

This probably hasn't caused any issues in practice, I'm guessing most MIDI readers will handle 80 7f just as well as 7f in as a duration value.

  • System Exclusive messages would cause write to fail since the end byte was treated as part of next message.

As far as I know, none of the music sets commonly used have any SysEx messages in them. I only discovered this while toying with playing the MT-32 music from the DOS version.

Variable-length values would write threshold values with a byte too many.
System Exclusive messages would cause write to fail since the end byte was treated as part of next message.
@nielsmh nielsmh added the backport requested This PR should be backport to current release (RC / stable) label May 8, 2020
@nielsmh nielsmh merged commit 2c84549 into OpenTTD:master May 8, 2020
@nielsmh nielsmh deleted the fix-midiwriting branch May 8, 2020 20:44
@LordAro LordAro added backported This PR is backported to a current release (RC / stable) and removed backport requested This PR should be backport to current release (RC / stable) labels Jul 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backported This PR is backported to a current release (RC / stable)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants