kovaxis / midly

A feature-complete MIDI parser and writer focused on speed.
The Unlicense
138 stars 26 forks source link

`EndOfTrack` is never present, even after adding it #20

Closed Boscop closed 2 years ago

Boscop commented 2 years ago

I've noticed something weird: For some reason, even if I add EndOfTrack to the end of each track before writing a SMF, the resulting SMF data never has any EndOfTrack messages. Any idea why? Also whenever I parse a SMF, and print it out, there are also no EndOfTrack events. Are they "transparently removed" during writing/parsing? Do I even need to add EndOfTrack before writing a SMF?

Boscop commented 2 years ago

Hm, or maybe it's just the case for otherwise empty tracks that midly removes EndOfTrack?