# HG changeset patch # User Chris Cannam # Date 1386064966 0 # Node ID 6acd63422d446f1c0878195d13b4dc2012bb6889 # Parent 0d79970811c796d0e3633bbda9b9eaa542f93dde Make the calculation functions available with default parameters again as well (for Segmentino) diff -r 0d79970811c7 -r 6acd63422d44 dsp/tempotracking/TempoTrackV2.h --- a/dsp/tempotracking/TempoTrackV2.h Tue Nov 05 16:36:53 2013 +0000 +++ b/dsp/tempotracking/TempoTrackV2.h Tue Dec 03 10:02:46 2013 +0000 @@ -40,16 +40,34 @@ ~TempoTrackV2(); // Returned beat periods are given in df increment units; inputtempo and tempi in bpm - // MEPD 28/11/12 Expose inputtempo and constraintempo parameters void calculateBeatPeriod(const vector &df, vector &beatPeriod, - vector &tempi, double inputtempo, bool constraintempo); + vector &tempi) { + calculateBeatPeriod(df, beatPeriod, tempi, 120.0, false); + } + + // Returned beat periods are given in df increment units; inputtempo and tempi in bpm + // MEPD 28/11/12 Expose inputtempo and constraintempo parameters + // Note, if inputtempo = 120 and constraintempo = false, then functionality is as it was before + void calculateBeatPeriod(const vector &df, + vector &beatPeriod, + vector &tempi, + double inputtempo, bool constraintempo); + + // Returned beat positions are given in df increment units + void calculateBeats(const vector &df, + const vector &beatPeriod, + vector &beats) { + calculateBeats(df, beatPeriod, beats, 0.9, 4.0); + } // Returned beat positions are given in df increment units // MEPD 28/11/12 Expose alpha and tightness parameters + // Note, if alpha = 0.9 and tightness = 4, then functionality is as it was before void calculateBeats(const vector &df, const vector &beatPeriod, - vector &beats, double alpha, double tightness); + vector &beats, + double alpha, double tightness); private: typedef vector i_vec_t;