Skip to content
Discussion options

You must be logged in to vote

According to the MIDI 1.0 specification, page 73, a MIDI note-on event (9n) with a velocity of 0 is considered a note-off. In your example, every note_on event is immediately followed with another note_on but with a velocity=0, thereby functioning as the note_off(s) you look for.

The advantage of this is that, assuming an uninterrupted stream of note-on and note-off events, a space-conscious implementation may take advantage of the running status. Your file likely employed such encoding methods.

I haven't looked at the mido codebase, so my answer is mostly related to MIDI as a whole, not this project in particular, which appears to be completely in-spec.

Edit: related discussions:

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rdoursenaud
Comment options

Answer selected by rdoursenaud
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
3 participants
Converted from issue

This discussion was converted from issue #588 on November 08, 2024 17:55.