Audacity 3.2.0
|
Functions | |
template<typename T , typename F > | |
std::vector< T > | initVector (size_t dim1, const F &f) |
template<typename T > | |
std::vector< std::vector< T > > | initVector (size_t dim1, size_t dim2) |
double | ComputeWarpFactor (const Envelope &env, double t0, double t1) |
Compute the integral warp factor between two non-warped time points. More... | |
double anonymous_namespace{MixerSource.cpp}::ComputeWarpFactor | ( | const Envelope & | env, |
double | t0, | ||
double | t1 | ||
) |
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.
t0 | The starting time to calculate from |
t1 | The ending time to calculate to |
Definition at line 61 of file MixerSource.cpp.
References Envelope::AverageOfInverse().
Referenced by MixerSource::MixVariableRates().
std::vector< T > anonymous_namespace{MixerSource.cpp}::initVector | ( | size_t | dim1, |
const F & | f | ||
) |
Definition at line 24 of file MixerSource.cpp.
std::vector< std::vector< T > > anonymous_namespace{MixerSource.cpp}::initVector | ( | size_t | dim1, |
size_t | dim2 | ||
) |
Definition at line 33 of file MixerSource.cpp.