MCPcopy Create free account
hub / github.com/audacity/audacity / ComputeWarpFactor

Function ComputeWarpFactor

libraries/lib-mixer/MixerSource.cpp:61–64  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

59 * @return The relative length increase of the chosen segment from the original sound.
60 */
61double ComputeWarpFactor(const Envelope &env, double t0, double t1)
62{
63 return env.AverageOfInverse(t0, t1);
64}
65
66}
67

Callers 1

MixVariableRatesMethod · 0.85

Calls 1

AverageOfInverseMethod · 0.80

Tested by

no test coverage detected