Skip to content

IndexOutOfBounds when loading MIDI file #6

Open
@achimmihca

Description

@achimmihca

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions