summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libs/qm-dsp/dsp/onsets/PeakPicking.cpp2
-rw-r--r--libs/vamp-plugins/OnsetDetect.cpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/libs/qm-dsp/dsp/onsets/PeakPicking.cpp b/libs/qm-dsp/dsp/onsets/PeakPicking.cpp
index ea50223e15..be98a82a34 100644
--- a/libs/qm-dsp/dsp/onsets/PeakPicking.cpp
+++ b/libs/qm-dsp/dsp/onsets/PeakPicking.cpp
@@ -126,6 +126,8 @@ int PeakPicking::quadEval( vector<double> &src, vector<int> &idx )
m_maxFit.push_back(selMax);
}
+ TPolyFit::PolyFit2(m_err, m_maxFit, m_poly);
+
double f = m_poly[0];
double h = m_poly[2];
diff --git a/libs/vamp-plugins/OnsetDetect.cpp b/libs/vamp-plugins/OnsetDetect.cpp
index d768791327..ea1760412b 100644
--- a/libs/vamp-plugins/OnsetDetect.cpp
+++ b/libs/vamp-plugins/OnsetDetect.cpp
@@ -366,7 +366,7 @@ OnsetDetector::process(const float *const *inputBuffers,
// std::cerr << "OnsetDetector::process(" << timestamp << "): "
// << "dftype " << m_dfType << ", sens " << m_sensitivity
-// << ", len " << len << ", mean " << mean << std::endl;
+// << ", len " << len << std::endl;
double *magnitudes = new double[len];
double *phases = new double[len];