Audacity 3.2.0
Namespaces | Macros | Functions
MirTestUtils.cpp File Reference
#include "MirTestUtils.h"
#include <array>
#include <cmath>
#include <iomanip>
#include <iostream>
Include dependency graph for MirTestUtils.cpp:

Go to the source code of this file.

Namespaces

namespace  MIR
 

Macros

#define USE_FILESYSTEM   (__has_include(<filesystem>) && _WIN32)
 

Functions

void MIR::ProgressBar (int width, int percent)
 
OctaveError MIR::GetOctaveError (double expected, double actual)
 Gets the tempo detection octave error, as defined in section 5. of Schreiber, H., Urbano, J. and Müller, M., 2020. Music Tempo Estimation: Are We Done Yet?. Transactions of the International Society for Music Information Retrieval, 3(1), p.111–125. DOI: https://doi.org/10.5334/tismir.43 In short, with an example: two bars of a fast 3/4 can in some cases be interpreted as one bar of 6/8. However, there are 6 beats in the former, against 2 in the latter, leading to an "octave error" of 3. In that case, the returned factor would be 3, and the remainder, log2(3 * actual / expected) More...
 

Macro Definition Documentation

◆ USE_FILESYSTEM

#define USE_FILESYSTEM   (__has_include(<filesystem>) && _WIN32)

Audacity: A Digital Audio Editor

MirTestUtils.cpp

Matthieu Hodgkinson

Definition at line 13 of file MirTestUtils.cpp.