top of page
- API -

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

- API Detail-

▼Input values

・subjectLangPath: path to the folder containing the localized audio

・baseLangPath: path to the folder containing the base audio

・startPos: media insertion start position (seconds)

・mediaInterval: media interval (seconds)

・startEndType: type of media insertion start position (0: from the start / 1: from the end of the project)

・isVolMatch: whether to perform volume adjustment

・isHANDAUTOMER: whether to run HANDAUTOMER before volume adjustment

・HANDAUTOMER_ratioType: adjustment-ratio type when running HANDAUTOMER (see HANDAUTOMER)

・trackNameList: list of tracks to create (audio whose name contains the track name is inserted into that track; audio with no matching track goes into the "None" track)


▼Output values

・unmatchedPathList: paths of localized audio that were not processed because no base audio existed

- SCRIPT -

dofile(reaper.AZ_GetLuaInitPath())

require("reaper_AZSTOKE_SILVER")


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("主ボイスに存在しないファイル:"..value)

      end

   end

end

TALKTRON

AZ_TALKTRON_InsertMediaItems

Supported versions:

1.1.0

onwards

Multilingual volume auto-adjustment function

bottom of page