top of page

AZSTOKE/ALGAZODIK

GameAudio & Art

11

Media

AZSTOKE_UserInputPathAutoInsertMedia

指定フォルダのWAVファイルを1秒間隔で並列挿入

RANK
SNS SHARE

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

require("reaper_AZSTOKE_SILVER")


function Msg(param)

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

end

retval,inputList = AZ_SILVER.AZ_GetUserInputList("AZWavList",1,"Path :","D:\\")   

retval,fileList = AZ_SILVER.AZ_GetFilePathList(inputList[1],"wav")


startPos = 0


for i, value in pairs(fileList) do

    reaper.AZ_SetPlayCursorPosition(0,0,startPos)

    item = reaper.AZ_InsertMediaOutItem(0,value)

    _,endPos = reaper.AZ_GetMediaItemEndTime(item)

    startPos = endPos + 1 

end

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

require("reaper_AZSTOKE_SILVER")


・Enable use of SilverAPI


function Msg(param)

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

end


・Debug console output


retval,inputList = AZ_SILVER.AZ_GetUserInputList("AZWavList",1,"Path :","D:\\")


- Display SimpleUI and assign input values to inputList


retval,fileList = AZ_SILVER.AZ_GetFilePathList(inputList[1],"wav")


- Get the full path of the file from the path information and assign it to an array


startPos = 0


・Assign 0 as the initial value of startPos


for i, value in pairs(fileList) do


・Play the number of files in the fileList in a For loop


reaper.AZ_SetPlayCursorPosition(0,0,startPos)


・Move the cursor to the startPos position


item = reaper.AZ_InsertMediaOutItem(0,value)


・Insert media, output mediaItem and assign it to item


_,endPos = reaper.AZ_GetMediaItemEndTime(item)


-Get the end point of the media item and assign it to endPos


startPos = endPos + 1


・Set the starting point one second after endPos to startPos


end

To use the API, you need to sign up for a plan.

Download the dedicated API

need to do it.

*SILVER is scheduled to be released in May.

指定フォルダの中にwavファイルを用意

- Script Code -
- Script Image -
- Warm Up -
- Script Detail -
- API -

LUA

​ReaScript File Download 👇

* A dedicated API is required to run this

- Script Image -
bottom of page