diff options
Diffstat (limited to 'libs/qm-dsp/dsp/onsets/PeakPicking.cpp')
-rw-r--r-- | libs/qm-dsp/dsp/onsets/PeakPicking.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libs/qm-dsp/dsp/onsets/PeakPicking.cpp b/libs/qm-dsp/dsp/onsets/PeakPicking.cpp index 879ae8813c..55f56b46d0 100644 --- a/libs/qm-dsp/dsp/onsets/PeakPicking.cpp +++ b/libs/qm-dsp/dsp/onsets/PeakPicking.cpp @@ -80,7 +80,7 @@ void PeakPicking::process( double* src, unsigned int len, vector<int> &onsets ) quadEval( m_maxima, onsets ); - for( int b = 0; b < m_maxima.size(); b++) + for(unsigned int b = 0; b < m_maxima.size(); b++) { src[ b ] = m_maxima[ b ]; } @@ -131,11 +131,8 @@ int PeakPicking::quadEval( vector<double> &src, vector<int> &idx ) p = TPolyFit::PolyFit2( m_err, m_maxFit, m_poly); double f = m_poly[0]; - double g = m_poly[1]; double h = m_poly[2]; - int kk = m_poly.size(); - if (h < -Qfilta || f > Qfiltc) { idx.push_back(m_maxIndex[j]); |