Mercurial > hg > qm-dsp
diff dsp/tempotracking/TempoTrack.h @ 189:e4a57215ddee
Fix compiler warnings with -Wall -Wextra
author | Chris Cannam |
---|---|
date | Mon, 28 Sep 2015 12:33:17 +0100 |
parents | 88f3cfcff55f |
children | 64fc3009d0a3 |
line wrap: on
line diff
--- a/dsp/tempotracking/TempoTrack.h Tue Sep 08 13:18:14 2015 +0100 +++ b/dsp/tempotracking/TempoTrack.h Mon Sep 28 12:33:17 2015 +0100 @@ -30,16 +30,16 @@ struct WinThresh { - unsigned int pre; - unsigned int post; + int pre; + int post; }; struct TTParams { - unsigned int winLength; //Analysis window length - unsigned int lagLength; //Lag & Stride size - unsigned int alpha; //alpha-norm parameter - unsigned int LPOrd; // low-pass Filter order + int winLength; //Analysis window length + int lagLength; //Lag & Stride size + int alpha; //alpha-norm parameter + int LPOrd; // low-pass Filter order double* LPACoeffs; //low pass Filter den coefficients double* LPBCoeffs; //low pass Filter num coefficients WinThresh WinT;//window size in frames for adaptive thresholding [pre post]: @@ -59,22 +59,22 @@ void initialise( TTParams Params ); void deInitialise(); - int beatPredict( unsigned int FSP, double alignment, double period, unsigned int step); - int phaseMM( double* DF, double* weighting, unsigned int winLength, double period ); - void createPhaseExtractor( double* Filter, unsigned int winLength, double period, unsigned int fsp, unsigned int lastBeat ); - int findMeter( double* ACF, unsigned int len, double period ); + int beatPredict( int FSP, double alignment, double period, int step); + int phaseMM( double* DF, double* weighting, int winLength, double period ); + void createPhaseExtractor( double* Filter, int winLength, double period, int fsp, int lastBeat ); + int findMeter( double* ACF, int len, double period ); void constDetect( double* periodP, int currentIdx, int* flag ); void stepDetect( double* periodP, double* periodG, int currentIdx, int* flag ); - void createCombFilter( double* Filter, unsigned int winLength, unsigned int TSig, double beatLag ); + void createCombFilter( double* Filter, int winLength, int TSig, double beatLag ); double tempoMM( double* ACF, double* weight, int sig ); - unsigned int m_dataLength; - unsigned int m_winLength; - unsigned int m_lagLength; + int m_dataLength; + int m_winLength; + int m_lagLength; - double m_rayparam; - double m_sigma; - double m_DFWVNnorm; + double m_rayparam; + double m_sigma; + double m_DFWVNnorm; vector<int> m_beats; // Vector of detected beats