Problem with [detonate] reading midi files

Lennard's icon

Hello,

I am building a midi sequencer that can quantize the recorded midi files.

I record midi data using the seq object (I write a .mid file) and then I read it with detonate. Then I can extract the start time, Pitch, Velocity, and Duration and can work with that. All of that was working well, but recently (after I did a lot of patching in this patch), the detonate object doesn't read the midi files correctly anymore. To be specific, the durations are often way to short. If I open the midi file in my DAW, it is played back correctly. Do you have any idea, why detonate doesn't work correctly anymore?

Or is there maybe an alternative way (using filein for example) to read the midi files and extract all the starting times, pitches, velocitys and durations for all the notes?

This is one of my recorded midi files, that is read incorrectly with detonate, but played back correctly in my DAW.

test2.mid
mid