top of page
- API -

reaper.AZ_LOUDMATCHFY_SetVolumeForMediaItem(item, loudnessTable, ,volumeType ,additionalVolume)

- API Detail-

▼Input value

・item(MediaItem): Media item

・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)


item = reaper.AZ_GetMediaItemSelect(0,0,0)

reaper.AZ_LOUDMATCHIFY_SetVolumeForMediaItem(item ,loudnessTable, 1,0)

Loudness = reaper.AZ_GetMediaItemLoudnessMaxMomentary(item)


Msg(Loudness)

LOUDMATCHIFY

AZ_LOUDMATCHFY_SetVolumeForMediaItem

Supported versions:

1.0.3

onwards

Run LOUDMATCHIFY on media

bottom of page