- API -
reaper.AZ_LOUDMATCHIFY_SetVolumeForMediaId(projID, itemID, loudnessTable, ,volumeType ,additionalVolume)
- API Detail-
▼Input value
・projID(integer): Project ID
・itemID(integer): Media ID
・loudnessTable(Table): Loudness table
・Name(String): Name
・Loudness(double): Loudness
・volumeType(integer): Adjustment method
・0: Maximum value of MaxMomentary is adjusted after adding additionalVolume
・1: Set to the maximum value of MaxMomentary
・2: Adjust to the maximum RMS value
・3: Adjust to the maximum value of the peak
・4 : Match media volume
・additionalVolume(double): Additional volume Used only when volumeType=0
- SCRIPT -
dofile(reaper.AZ_GetLuaInitPath())
require("reaper_AZSTOKE_SILVER")
require("reaper_AZSTOKE_GOLD")
jsonStr = reaper.AZ_ReadFile("D://script","savedata.txt")
loudnessTable = reaper.AZ_Json_Deserialize(jsonStr)
reaper.AZ_LOUDMATCHIFY_SetVolumeForMediaId(0,0,loudnessTable, 1,0)
Loudness = reaper.AZ_GetMediaIdLoudnessMaxMomentary(0,0)
Msg(Loudness)