Open nateraw opened 4 days ago
@nateraw
Thank you for your error report and quick fix! I didn’t know that the end_of_track
message was necessary, but I learned it from you👍.
Honestly, I’m so busy these days that I can’t make any promises, but I’ll definitely reflect it in the next update. Thanks again!
Hi there, this is the issue I was referring to in #13 - reporting anyway even though code isn't here to refer to.
Not sure if this is on purpose or not, but I've noticed there's a mismatch between input audio file duration and the length of the midi data saved to disk. It appears the midi ends right after the final note event. so, in cases where there's a bit of silence at the end of the input audio clip, this silence is left out of the MIDI data.
Not too familiar with
mido
, but if I understand correctly, we'd just have to add the correctend_of_file
event with the correct time tick value.My current solution is to inject this event into the midi objects like this: