Capturing user edits to MIDI inside DAW

Hello all!

I am trying to come up with an elegant way to update the internal state of my VST plugin in response to user edits of MIDI data from their DAW’s editor window, one that does not involve the user having the Play the sequence over the edited material.

It seems as though some hosts will send a NoteOn message when a midi event is dragged to a different pitch within the editor, but what if you wanted to capture an edit to the midi event’s duration? For example, the user originally had a 960-tick duration event and then shortened it to 900 ticks using the mouse in his/her DAW.

Any and all suggestions, work-arounds, or code examples would be greatly welcomed and appreciated.