Audacity 3.2.0
Functions | Variables
MIR::anonymous_namespace{MirUtils.cpp} Namespace Reference

Functions

constexpr bool IsPrimeDecompositionTwoThreeOnly (int n)
 
std::vector< int > GetPowersOf2And3 (int lower, int upper)
 

Variables

constexpr auto bpmStdDev = 29.7953
 
constexpr auto pi = 3.141592653589793
 

Function Documentation

◆ GetPowersOf2And3()

std::vector< int > MIR::anonymous_namespace{MirUtils.cpp}::GetPowersOf2And3 ( int  lower,
int  upper 
)

Definition at line 44 of file MirUtils.cpp.

45{
46 std::vector<int> result;
47 for (int i = lower; i <= upper; ++i)
49 result.push_back(i);
50 return result;
51}
constexpr bool IsPrimeDecompositionTwoThreeOnly(int n)
Definition: MirUtils.cpp:23

References IsPrimeDecompositionTwoThreeOnly().

Referenced by MIR::GetPossibleBarDivisors().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsPrimeDecompositionTwoThreeOnly()

constexpr bool MIR::anonymous_namespace{MirUtils.cpp}::IsPrimeDecompositionTwoThreeOnly ( int  n)
constexpr

Definition at line 23 of file MirUtils.cpp.

24{
25 while (n % 2 == 0)
26 n /= 2;
27 while (n % 3 == 0)
28 n /= 3;
29 return n == 1;
30}

Referenced by GetPowersOf2And3().

Here is the caller graph for this function:

Variable Documentation

◆ bpmStdDev

constexpr auto MIR::anonymous_namespace{MirUtils.cpp}::bpmStdDev = 29.7953
constexpr

Definition at line 20 of file MirUtils.cpp.

◆ pi

constexpr auto MIR::anonymous_namespace{MirUtils.cpp}::pi = 3.141592653589793
constexpr