Mercurial > hg > vamp-simple-cepstrum
diff SimpleCepstrum.h @ 24:0a3c1ecff644
Add rather simplistic cubic interpolation for peak values in a cepstrum output (not yet for pitch tracker). Only gains us 1dp
author | Chris Cannam |
---|---|
date | Thu, 05 Jul 2012 20:50:56 +0100 |
parents | 7786d595d2f2 |
children | fb862b3418f3 |
line wrap: on
line diff
--- a/SimpleCepstrum.h Thu Jul 05 08:29:20 2012 +0100 +++ b/SimpleCepstrum.h Thu Jul 05 20:50:56 2012 +0100 @@ -83,6 +83,7 @@ Method m_method; mutable int m_pkOutput; + mutable int m_ipkOutput; mutable int m_varOutput; mutable int m_p2rOutput; mutable int m_cepOutput; @@ -101,6 +102,8 @@ double **m_history; void filter(const double *in, double *out); + double cubicInterpolate(const double[4], double); + double findInterpolatedPeak(const double *in, int maxbin); void fft(unsigned int n, bool inverse, double *ri, double *ii, double *ro, double *io);