top of page
- Script Code -

dofile(reaper.AZ_GetLuaInitPath())

require("reaper_AZSTOKE_BRONZE")


itemList = reaper.AZ_GetSelectedMediaItemList(0)

nowPos = reaper.AZ_GetPlayCursorPosition(0)


for i, value in pairs(itemList) do

   if i == 1 then

      interval = 2

   else

      interval = 0.5

   end

   reaper.CSurf_GoEnd()

   pos = reaper.AZ_GetPlayCursorPosition(0)

   pos = pos + interval

   reaper.AZ_SetMediaItemStartTimeSeconds(value,pos)

end


reaper.AZ_SetPlayCursorPosition(0,0,nowPos)

- Warm Up -

- Script Detail -

dofile(reaper.AZ_GetLuaInitPath())

require("reaper_AZSTOKE_BRONZE")


・Enable BRONZE API


itemList = reaper.AZ_GetSelectedMediaItemList(0)


・Output selected media as a list


nowPos = reaper.AZ_GetPlayCursorPosition(0)


・Get the current cursor position


for i, value in pairs(itemList) do


・For loop for list of media


   if i == 1 then


・The first media performs the following process:


      interval = 2


・Interval value: 2 seconds


   else


      interval = 0.5


・0.5 seconds for all but the first one


   end

   reaper.CSurf_GoEnd()


・Set cursor to end of all media


   pos = reaper.AZ_GetPlayCursorPosition(0)


・Get last cursor second


   pos = pos + interval


・Add the interval value to the last second


   reaper.AZ_SetMediaItemStartTimeSeconds(value,pos)


・Move the media to that position

end

- API LINK -

Media

AZSTOKE_Media_OK_Reset

Rearrange the clipped OK sound

01_BRONZE_ss_edited.png
01_SILVER_edited_edited.png
03_GOLD_edited_edited.png
bottom of page