top of page
- API -

reaper.AZ_SetMediaItemFade(mediaItem,inType,inLen,outType,outLen)

- API Detail-

▼Input value

  • MediaItem (MediaItem): Media item

  • 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)

▼Output value

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

- SCRIPT -

function Msg(param)

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

end


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

reaper.AZ_SetMediaItemFade(mediaItem,6,1,1,0.5)

MEDIA

AZ_SetMediaItemFade

Supported versions:

1.0.3

onwards

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

bottom of page