diff CepstrumPitchTracker.h @ 11:0c95dc49163a track

Some work on accepting/rejecting peaks
author Chris Cannam
date Tue, 26 Jun 2012 16:06:00 +0100
parents 960868d5f841
children cb88b9954eec
line wrap: on
line diff
--- a/CepstrumPitchTracker.h	Tue Jun 26 15:30:12 2012 +0100
+++ b/CepstrumPitchTracker.h	Tue Jun 26 16:06:00 2012 +0100
@@ -77,6 +77,12 @@
 
     double **m_history;
     
+    int m_prevpeak;
+    double m_prevprop;
+
+    double calculatePeakProportion(const double *data, double abstot, int n);
+    bool acceptPeak(int n, double peakProportion);
+
     void filter(const double *in, double *out);
     void fft(unsigned int n, bool inverse,
              double *ri, double *ii, double *ro, double *io);