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