projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixes for 98% of all the warnings/errors reported by OS X gcc on tiger
[ardour.git]
/
libs
/
qm-dsp
/
dsp
/
onsets
/
PeakPicking.cpp
diff --git
a/libs/qm-dsp/dsp/onsets/PeakPicking.cpp
b/libs/qm-dsp/dsp/onsets/PeakPicking.cpp
index 879ae8813c8f01d6a31f836c40a19ae83e634f78..55f56b46d0d3cd30be693a504dc211ed12e878d0 100644
(file)
--- 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 );
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 ];
}
{
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];
p = TPolyFit::PolyFit2( m_err, m_maxFit, m_poly);
double f = m_poly[0];
- double g = m_poly[1];
double h = m_poly[2];
double h = m_poly[2];
- int kk = m_poly.size();
-
if (h < -Qfilta || f > Qfiltc)
{
idx.push_back(m_maxIndex[j]);
if (h < -Qfilta || f > Qfiltc)
{
idx.push_back(m_maxIndex[j]);