- API -
allCount, count = reaper.AZ_GetSelectedMediaTypeCount(0, "")
for i = 0, allCount - 1 do
item = reaper.AZ_GetMediaItemSelect(0,i,1)
retval = reaper.AZ_SetMediaItemHANDAUTOMER(item,2)
name = reaper.AZ_GetMediaItemName(item)
startPos = reaper.AZ_GetMediaItemStartTimeSeconds(item)
endPos = reaper.AZ_GetMediaItemEndTime(item)
reaper.AZ_AddRegionMarker(0, startPos, endPos, name, 0, 0)
end
- API Detail-
Prepare the waveform data you want to adjust in a folder
- SCRIPT -
allCount, count = reaper.AZ_GetSelectedMediaTypeCount(0, "")
-Get the number of selected media and assign it to allCount
for i = 0, allCount - 1 do
・Execute the process repeatedly for allCount times
item = reaper.AZ_GetMediaItemSelect(0,i,1)
-Get the selected media and assign it to item
reaper.AZ_SetMediaItemHANDAUTOMER(item,2)
・Run HANDAUTOMER on item Compression level 2
name = reaper.AZ_GetMediaItemName(item)
-Get the waveform name of the item and assign it to name
startPos = reaper.AZ_GetMediaItemStartTimeSeconds(item)
・Get the start position of the item and assign it to startPos
endPos = reaper.AZ_GetMediaItemEndTime(item)
-Get the end position of item and assign it to endPos
reaper.AZ_AddRegionMarker(0, startPos, endPos, name, 0, 0)
・Generate regions based on various information
end
・End the repeat process