In the peak script you are using RPR_Main_OnCommand(RPR_NamedCommandLookup('_SWS_FI NDITEMPEAK'), 0)
using sws extension to do a find peak command.
Does sws have a "find first point above X db?" So, it could potentially place the snap offset point where the media item first reaches a certain db.
__________________
Soundemote - Home of the chaosfly and pretty oscilloscope.
MyReaperPlugin - Easy-to-use cross-platform C++ REAPER extension template
|