top of page
- API -

peak = reaper.AZ_GetTrackItemCurrentPeak(track, chIndex)

- API Detail-

▼Input values

track(MediaTrack): target track

chIndex(integer): channel index (0-based)


▼Output values

peak(number): current peak value (linear; 1.0 = +0dB, 0.0 = -inf)

- SCRIPT -

dofile(reaper.AZ_GetLuaInitPath())

require("reaper_AZSTOKE_SILVER")


track = reaper.AZ_GetTrackItemSelect(0, 0, 0)

chIndex = 0


peak = reaper.AZ_GetTrackItemCurrentPeak(track, chIndex)

Msg(peak)

TRACK

AZ_GetTrackItemCurrentPeak

Supported versions:

2.0.0

onwards

Get current peak value (linear)

bottom of page