52 size_t decimationFactor,
74 const vector<double> &beats,
75 vector<int> &downbeats);
86 void getBeatSD(vector<double> &beatsd)
const;
const float * getBufferedAudio(size_t &length) const
Retrieve the accumulated audio produced by pushAudioBlock calls.
vector< vector< int > > i_mat_t
void pushAudioBlock(const float *audio)
For your downsampling convenience: call this function repeatedly with input audio blocks containing d...
DownBeat(float originalSampleRate, size_t decimationFactor, size_t dfIncrement)
Construct a downbeat locator that will operate on audio at the downsampled by the given decimation fa...
vector< vector< double > > d_mat_t
void getBeatSD(vector< double > &beatsd) const
Return the beat spectral difference function.
void resetAudioBuffer()
Clear any buffered downsampled audio data.
This class takes an input audio signal and a sequence of beat locations (calculated e...
void findDownBeats(const float *audio, size_t audioLength, const vector< double > &beats, vector< int > &downbeats)
Estimate which beats are down-beats.
Decimator carries out a fast downsample by a power-of-two factor.
void setBeatsPerBar(int bpb)
double measureSpecDiff(d_vec_t oldspec, d_vec_t newspec)