- API -
dofile(reaper.AZ_GetLuaInitPath())
require("reaper_AZSTOKE_SILVER")
allCount = reaper.AZ_GetSelectedMediaTypeCount(0,"")
for i = 0,allCount-1 do
reaper.AZ_SetSelectedMediaIdHANDAUTOMER(0,i,2)
reaper.AZ_SetSelectedMediaIdLoudnessMaxMomentary(0,i,-21)
end
- API Detail-
The media you want to adjust is in your project
- SCRIPT -
dofile(reaper.AZ_GetLuaInitPath())
require("reaper_AZSTOKE_SILVER")
・Make Silver API available
allCount = reaper.AZ_GetSelectedMediaTypeCount(0,"")
-Get the total number of selected media and assign it to allCount
for i = 0,allCount-1 do
・Supports allCount For loop
reaper.AZ_SetSelectedMediaIdHANDAUTOMER(0,i,2)
・Select HANDAUTOMER and execute according to the media ID
reaper.AZ_SetSelectedMediaIdLoudnessMaxMomentary(0,i,-21)
- Set Momentary to -21LUFS for each selected media ID
end