top of page
- API -
peakList = reaper.AZ_GetMediaItemPeakList(item)
- API Detail-
▼Input value
item(MediaItem): Media item
▼Output value
retval(boolean): Success or failure of API execution
peakList(table) : Peak array .MaxPeak /.MinPeak/.Time
- SCRIPT -
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)
peakList = reaper.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
SCOPE
AZ_GetMediaItemPeakList
Supported versions:
1.0.3
onwards
Peak sequence output for the specified media item
bottom of page