mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-21 16:37:12 +01:00
Don't pass whole TimeTrack to Ruler or Mixer...
... they need only the information in a (Bounded)Envelope.
This commit is contained in:
@@ -83,38 +83,6 @@ class TimeTrack final : public Track {
|
||||
BoundedEnvelope *GetEnvelope() { return mEnvelope.get(); }
|
||||
const BoundedEnvelope *GetEnvelope() const { return mEnvelope.get(); }
|
||||
|
||||
//Note: The meaning of this function has changed (December 2012)
|
||||
//Previously this function did something that was close to the opposite (but not entirely accurate).
|
||||
/** @brief Compute the integral warp factor between two non-warped time points
|
||||
*
|
||||
* Calculate the relative length increase of the chosen segment from the original sound.
|
||||
* So if this time track has a low value (i.e. makes the sound slower), the NEW warped
|
||||
* sound will be *longer* than the original sound, so the return value of this function
|
||||
* is larger.
|
||||
* @param t0 The starting time to calculate from
|
||||
* @param t1 The ending time to calculate to
|
||||
* @return The relative length increase of the chosen segment from the original sound.
|
||||
*/
|
||||
double ComputeWarpFactor(double t0, double t1) const;
|
||||
/** @brief 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.
|
||||
* @param t0 unwarped time to start calculation from
|
||||
* @param t1 unwarped time to stop calculation at
|
||||
* @return the warped duration in seconds
|
||||
*/
|
||||
double ComputeWarpedLength(double t0, double t1) const;
|
||||
/** @brief Compute how much unwarped time must have elapsed if length seconds of warped time has
|
||||
* elapsed
|
||||
*
|
||||
* @param t0 The unwarped time (seconds from project start) at which to start
|
||||
* @param length How many seconds of warped time went past.
|
||||
* @return The end point (in seconds from project start) as unwarped time
|
||||
*/
|
||||
double SolveWarpedLength(double t0, double length) const;
|
||||
|
||||
// Get/Set the speed-warping range, as percentage of original speed (e.g. 90%-110%)
|
||||
|
||||
double GetRangeLower() const;
|
||||
|
||||
Reference in New Issue
Block a user