@mcut/timeline
getEffectiveVolume
Generated TypeScript API reference for the public mcut SDK.
mcut SDK / timeline/src / getEffectiveVolume
Function: getEffectiveVolume()
function getEffectiveVolume(element, timelineMs): number;Defined in: packages/timeline/src/audio.ts:36
The volume that actually plays at an absolute timeline time: the animated (or static) volume scaled by the fade envelope. The single seam preview sync, export mixing, and volume visualizations must share so they agree. 0 for elements without volume (text, image, caption).
Parameters
element
timelineMs
number
Returns
number