Hi !
Could reaper.NF_GetMediaItemMaxPeak( item ) also return the absolute pos (relative to item left edges) of this peaks ?
NF_AnalyzeTakeLoudness can do that, but when we don't need Loudness, it is a bit overkill (because it display the SWS analyse window and is less performant that this simple peak function).
Cheers !