Audacity
3.0.3
|
Functions | |
double | ComputeWarpedLength (const Envelope &env, double t0, double t1) |
Compute the duration (in seconds at playback) of the specified region of the track. More... | |
double | SolveWarpedLength (const Envelope &env, double t0, double length) |
Compute how much unwarped time must have elapsed if length seconds of warped time has elapsed. More... | |
double anonymous_namespace{AudioIOBase.cpp}::ComputeWarpedLength | ( | const Envelope & | env, |
double | t0, | ||
double | t1 | ||
) |
Compute the duration (in seconds at playback) of the specified region of the track.
Takes a region of the time track (specified by the unwarped time points in the project), and calculates how long it will actually take to play this region back, taking the time track's warping effects into account.
t0 | unwarped time to start calculation from |
t1 | unwarped time to stop calculation at |
Definition at line 1219 of file AudioIOBase.cpp.
References Envelope::IntegralOfInverse().
Referenced by AudioIOBase::PlaybackSchedule::AdvancedTrackTime(), and AudioIOBase::PlaybackSchedule::RealDuration().
double anonymous_namespace{AudioIOBase.cpp}::SolveWarpedLength | ( | const Envelope & | env, |
double | t0, | ||
double | length | ||
) |
Compute how much unwarped time must have elapsed if length seconds of warped time has elapsed.
t0 | The unwarped time (seconds from project start) at which to start |
length | How many seconds of warped time went past. |
Definition at line 1231 of file AudioIOBase.cpp.
References Envelope::SolveIntegralOfInverse().
Referenced by AudioIOBase::PlaybackSchedule::AdvancedTrackTime().