- API -
reaper.AZ_LOUDMATCHIFY_SetVolumeForMediaItemList(itemList, loudnessTable,volumeType ,additionalVolumeList)
- API Detail-
▼Input value
・itemList(table): Array of media
・loudnessTable(table): Loudness table
・Name(string): Name
・Loudness(double): Loudness
・volumeType(integer): Adjustment method
・0 : The maximum instantaneous loudness value is adjusted to the loudness value after adding additionalVolume.
・1 : Set the maximum instantaneous loudness to the loudness value
・2: Adjust the maximum RMS value to the loudness value
・3: Match the maximum peak value to the loudness value
・4 : Adjust the media volume to the loudness value
・additionalVolumeList(table): List of additional volumes and corresponding media
・Item(MediaItem): Media item
・Volume(double): Volume
- SCRIPT -
dofile(reaper.AZ_GetLuaInitPath())
require("reaper_AZSTOKE_BRONZE")
require("reaper_AZSTOKE_SILVER")
require("reaper_AZSTOKE_GOLD")
jsonStr = reaper.AZ_ReadFile("D://script","savedata.txt")
loudnessTable = reaper.AZ_Json_Deserialize(jsonStr)
itemList = reaper.AZ_GetMediaItemList(0)
reaper.AZ_LOUDMATCHIFY_SetVolumeForMediaItemList(itemList,loudnessTable,1,0)