Navigation
API > API/Plugins > API/Plugins/AudioWidgets > API/Plugins/AudioWidgets/FSparseSampledSequenceTransportC-
Description
Zoom Formula
E.g: Coordinator is receiving a playback ratio (PBR) in the range 0 to 1 To position the focus point accordingly, this would the formula to follow:
FP = (PBR - LB) / ZR
FP = Focus Point ZR = Zoom Ratio LB = Lower Displayed Waveform Bound from here, you can rotate as needed. e.g to find PBR PBR = (FP * ZR) + LB
This formula can be used to position any element (e.g. a marker) given in a 0 to 1 position range where 0 is the beginning time of the waveform and 1 the end time
Zoom is defined as a ratio = displayed length / total length
| Name | UpdatePlaybackRange |
| Type | function |
| Header File | /Engine/Plugins/Runtime/AudioWidgets/Source/AudioWidgets/Public/SparseSampledSequenceTransportCoordinator.h |
| Include Path | #include "SparseSampledSequenceTransportCoordinator.h" |
| Source | /Engine/Plugins/Runtime/AudioWidgets/Source/AudioWidgets/Private/SparseSampledSequenceTransportCoordinator.cpp |
void UpdatePlaybackRange
(
const TRange < double > & NewRange
)