@mcut/timeline
getFadeGain
Generated TypeScript API reference for the public mcut SDK.
mcut SDK / timeline/src / getFadeGain
Function: getFadeGain()
function getFadeGain(element, localMs): number;Defined in: packages/timeline/src/audio.ts:17
Fade multiplier (0..1) at element-local localMs: linear ramps over the
first fadeInMs and last fadeOutMs of the clip. Fades longer than the
clip clamp to its duration; overlapping ramps take the minimum (a dip, the
standard NLE behavior). 1 everywhere when no fades are set.
Parameters
element
localMs
number
Returns
number