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

Eliminate corruption when writing MIDIs due to RunningStatus #82

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MrCheeze
Copy link

When writing midis, a running state is used so that if multiple messages of the same type are used in a row, the message type only has to be specified once. This is fine, except for the fact that MetaEvents and SysexEvents does not cause the state to reset. This can cause the generated midis to be unreadable by some (but not all) software, so here's a quick fix.

…sting even after a MetaEvent/SysexEvent is seen.
@MrCheeze
Copy link
Author

Incidentally, I notice the python3 branch instead opts to eliminate the use of RunningStatus entirely, with the following comment:

why in the heeeeeeeeelp would you not write the status message
here? doesn't matter if it's the same as last time. the byte
needs to be there!

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

Successfully merging this pull request may close these issues.

1 participant