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

Functions

auto RemovePathPrefix (const std::string &filename)
 

Variables

static constexpr auto bpmExpectedValue = 126.3333
 
constexpr auto numTimeSignatures = static_cast<int>(TimeSignature::_count)
 
constexpr std::array< double, numTimeSignaturesquarternotesPerBeat
 

Function Documentation

◆ RemovePathPrefix()

auto MIR::anonymous_namespace{MusicInformationRetrieval.cpp}::RemovePathPrefix ( const std::string &  filename)

Definition at line 37 of file MusicInformationRetrieval.cpp.

38{
39 return filename.substr(filename.find_last_of("/\\") + 1);
40}

Variable Documentation

◆ bpmExpectedValue

constexpr auto MIR::anonymous_namespace{MusicInformationRetrieval.cpp}::bpmExpectedValue = 126.3333
staticconstexpr

Definition at line 33 of file MusicInformationRetrieval.cpp.

◆ numTimeSignatures

constexpr auto MIR::anonymous_namespace{MusicInformationRetrieval.cpp}::numTimeSignatures = static_cast<int>(TimeSignature::_count)
constexpr

Definition at line 35 of file MusicInformationRetrieval.cpp.

◆ quarternotesPerBeat

constexpr std::array<double, numTimeSignatures> MIR::anonymous_namespace{MusicInformationRetrieval.cpp}::quarternotesPerBeat
constexpr
Initial value:
{ 2., 1.,
1., 1.5 }

Definition at line 44 of file MusicInformationRetrieval.cpp.

Referenced by MIR::GetProjectSyncInfo().