Thanks :P
This is the script I'm taking above
X-Raym_Create text items on first selected track from selected items notes.lua
Script: X-Raym_Create text items on first selected track from selected takes name.lua
Then use
: Script: HeDa_Toggle Note Stretch to Fit.eel
track 1 is the text items, and track 2 the related MIDI items.
If this doesn't solve the issue, send a mockup so we can evaluate.
This might help !