2021-09-10 14:35:48 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
#include "mathutils.h"
|
|
|
|
|
|
|
|
namespace beat_utils
|
|
|
|
{
|
|
|
|
struct BeatInfo
|
|
|
|
{
|
2021-09-13 14:50:39 -04:00
|
|
|
int BPM = 0;
|
|
|
|
microsec interval = 0;
|
2021-09-10 14:35:48 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
BeatInfo calculateBeatRateInfo(const std::vector<microsec>& approximate_deltas);
|
|
|
|
}
|