top of page
- API -

reaper.AZ_LOUDMATCHIFY_SetVolumeForSelectedMediaId(proj, selectItemID, loudnessTable, ,volumeType ,additionalVolume)

- API Detail-

▼Input value

・projID(integer): Project ID

・selectItemID(integer): Selected 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_SetVolumeForSelectedMediaId(0,0,loudnessTable, 1,0)

Loudness = reaper.AZ_GetSelectedMediaIdLoudnessMaxMomentary(0,0)


Msg(Loudness)

LOUDMATCHIFY

AZ_LOUDMATCHIFY_SetVolumeForSelectedMediaId

Supported versions:

1.0.3

onwards

Execute LOUDMATCHIFY on the selected media ID

bottom of page