top of page
- API -

inType,inLen,outType,outLen = reaper.AZ_GetMediaItemFade(mediaItem)

- API Detail-

▼Input value

  • MediaItem (MediaItem): Media item

▼Output value

  • retval(bool): Whether the API execution was successful or not

  • inType(integer): Type of start fade (0 to 6)

  • inLen(number): Length of the start fade (in seconds)

  • outType(integer): End fade type (0 to 6)

  • outLen(number): Length of the end fade (in seconds)

- SCRIPT -

function Msg(param)

reaper.ShowConsoleMsg(tostring(param).."\n")

end


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

inType,inLen,outType,outLen = reaper.AZ_GetMediaItemFade(mediaItem)

Msg(inType)

Msg(inLen)

Msg(outType)

Msg(outLen)

MEDIA

AZ_GetMediaItemFade

Supported versions:

1.0.3

onwards

Get the fade time type and duration (seconds) for the specified media item.

bottom of page