How to get notes duration from the [midiin] object?

zion's icon

Hi
The midi track on my Live play a midi slot that shoots different notes in different durations, in my midi device I whish to get that duration but could not find it, I tried the [midiparse] object to interrupt the coming raw midi massages from the [midiin] object, but didn't find 'duration' there.
That value of course must be somewhere because it is a saved midi slot with saved pitches, velocity and duration..
thanks!

11OLSEN's icon

Midiin is realtime. It will only give you start and endpoint. You have to measure durations by yourself (i think the borax object is capable of this) Or use the LOM to get durations of existing notes in a midi clip but they are relativ to the project tempo.

zion's icon

I don't want to measure the midi notes in real-time because when they start I already need their duration as information for doing some things ..
So I'll have to use the LOM to get durations of existing notes in a midi clip and take the tempo in my calculation.
Thanks!