top of page

GameAudio & Art

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


item = reaper.AZ_GetMediaItemSelect(0,0,0)

retval,peakList = AZ_SILVER.AZ_GetMediaItemPeakList(item)


for i, value in pairs(peakList) do

   Msg("MaxPeak: "..peakList[i].MaxPeak)

   Msg("MinPeak: "..peakList[i].MinPeak)

   Msg("Time: "..peakList[i].Time)

end

- SIMPLE SCRIPT -

retval,peakList = AZ_SILVER.AZ_GetMediaItemPeakList(item)

- API -

SCOPE

AZ_SILVER.AZ_GetMediaItemPeakList

指定メディアアイテムのピーク配列出力

- API Detail -

▼入力値 

item(MediaItem):メディアアイテム


▼出力値 

retval(boolean):API実行の成否 

peakList(table) : ピーク配列 .MaxPeak /.MinPeak/.Time

bottom of page