Essentia  2.1-beta5-dev
bpmutil.h File Reference
#include "../essentiamath.h"
#include <cassert>

Go to the source code of this file.

Namespaces

 essentia
 

Functions

Real lagToBpm (Real lag, Real sampleRate, Real hopSize)
 
Real bpmToLag (Real bpm, Real sampleRate, Real hopSize)
 
int longestChain (const std::vector< Real > &dticks, int startpos, Real period, Real tolerance)
 
void bpmDistance (Real x, Real y, Real &error, Real &ratio)
 
bool areEqual (Real a, Real b, Real tolerance)
 
bool areHarmonics (Real x, Real y, Real epsilon, bool bPower2)
 
Real greatestCommonDivisor (Real x, Real y, Real epsilon)
 
std::vector< Real > roundBpms (const std::vector< Real > &bpms)
 
std::vector< Real > postProcessTicks (const std::vector< Real > &origticks)
 
std::vector< Real > postProcessTicks (const std::vector< Real > &origticks, const std::vector< Real > &ticksAmplitudes, const Real &preferredPeriod)