diff plugins/OnsetDetect.cpp @ 239:855c91bfc912

Further style fixes
author Chris Cannam <cannam@all-day-breakfast.com>
date Wed, 05 Jun 2019 11:23:04 +0100
parents 38502a1595ff
children
line wrap: on
line diff
--- a/plugins/OnsetDetect.cpp	Mon Jun 03 11:51:39 2019 +0100
+++ b/plugins/OnsetDetect.cpp	Wed Jun 05 11:23:04 2019 +0100
@@ -442,7 +442,7 @@
     PeakPicking peakPicker(ppParams);
 
     double *ppSrc = new double[ppParams.length];
-    for (unsigned int i = 0; i < ppParams.length; ++i) {
+    for (int i = 0; i < ppParams.length; ++i) {
         ppSrc[i] = m_d->dfOutput[i];
     }
 
@@ -473,10 +473,10 @@
 	returnFeatures[0].push_back(feature); // onsets are output 0
     }
 
-    for (unsigned int i = 0; i < ppParams.length; ++i) {
+    for (int i = 0; i < ppParams.length; ++i) {
         
         Feature feature;
-//        feature.hasTimestamp = false;
+
         feature.hasTimestamp = true;
 	size_t frame = i * m_d->dfConfig.stepSize;
 	feature.timestamp = m_d->origin + Vamp::RealTime::frame2RealTime