# HG changeset patch # User Chris Cannam # Date 1386064966 0 # Node ID fe7552b4f80ab9ecc58abb395850588c24e37a42 # Parent 0a47ec0a1a5663fdccdd842d9e901aa13041d98d Make the calculation functions available with default parameters again as well (for Segmentino) diff -r 0a47ec0a1a56 -r fe7552b4f80a 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;