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