top of page
- API -

unmatchedPathList = reaper.AZ_TALKTRON_InsertMediaItems(subjectLangPath,baseLangPath, startPos, mediaInterval, startEndType, isVolMatch, isHANDAUTOMER, HANDAUTOMER_ratioType, trackNameList)

- API Detail-

▼Input value

・subjectLangPath: Path to the folder where the localized audio is stored

・baseLangPath: The path to the folder where the base audio is stored

・startPos: Media insertion start position (seconds)

・mediaInterval: Media interval (seconds)

・startEndType: Type of media insertion start position (0: From the beginning : 1: From the end of the project)

・isVolMatch: Whether to adjust the volume

・isHANDAUTOMER : Whether to execute HANDAUTOMER before adjusting the volume

・HANDAUTOMER_ratioType: Adjustment rate type when executing HANDAUTOMER (see HANDAUTOMER)

・trackNameList : List of tracks to be created (Audio containing the track name will be inserted into that track, and audio without a corresponding track will be inserted into the "None" track)


▼Output value

・unmatchedPathList : Paths of localized audio that were not processed because the base audio did not exist

- SCRIPT -

os = reaper.GetOS()

if "Win" == string.match(os,"(Win)") then

package.cpath = package.cpath .. ";"..reaper.GetResourcePath() .."/UserPlugins/?.dll"

else

package.cpath = package.cpath .. ";"..reaper.GetResourcePath() .."/UserPlugins/?.dylib"

end

require("reaper_AZSTOKE_SILVER")


function Msg(param)

reaper.ShowConsoleMsg(tostring(param).."\n")

end


retval, pathList = reaper.AZ_GetUserInputList("GetPath",3,"basePath:,sujectPath:,trackList:","D://,D://,3")


if retval then

retval, trackList = reaper.AZ_GetUserInputList("TrackList",tonumber(pathList[3]),"track1,track2,track3,track4,track5","PL0000,PL0001,PL0002,PL0003,PL0004,PL0005")

if retval then

unmatchedPathList = reaper.AZ_TALKTRON_InsertMediaItems(pathList[2],pathList[1], 0, 1, 0, true, true, 2, trackList)

for i, value in pairs(unmatchedPathList) do

Msg("File not found in main voice:"..value)

end

end

end

TALKTRON

AZ_TALKTRON_InsertMediaItems

Supported versions:

1.0.3

onwards

Multilingual volume auto-adjustment function

bottom of page