You would need to read in the .mid file and "parse" the tempo/timing info. Ambitious, but possible I guess. I've read-in wav files in EEL, for the headers and metadata REAPER can't give me
This script looks very good, very impressive.
I need to knuckle down and get writing in Lua...
>