Skip to content

IndexOutOfBounds when loading MIDI file #6

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
achimmihca opened this issue Apr 5, 2023 · 0 comments
Open

IndexOutOfBounds when loading MIDI file #6

achimmihca opened this issue Apr 5, 2023 · 0 comments

Comments

@achimmihca
Copy link
Contributor

I have an IndexOutOfBounds exception when opening this midi file of Ode to Joy

First the exception happens in ReadMetaMessage

case 0x2F://endoftrack
    return new MetaEvent(delta, status, metaStatus, reader[p++]);

When I add an index check there, then the exception occurs in other positions.
Would be nice if this can be fixed.

Note that the midi file uses kar file extension because it contains lyrics for karaoke. The file can be safely renamed to use mid file extension if needed.

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

No branches or pull requests

1 participant