changeset 503:13e551657422 vamp-kiss-naming

Merge
author Chris Cannam
date Tue, 30 Jan 2018 15:28:27 +0000
parents 90571dcc371a (current diff) d129bf797f24 (diff)
children e79869de50ad
files
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/examples/FixedTempoEstimator.cpp	Tue Jan 30 09:56:46 2018 +0000
+++ b/examples/FixedTempoEstimator.cpp	Tue Jan 30 15:28:27 2018 +0000
@@ -529,6 +529,8 @@
 
     for (int i = p0; i <= p1 && i+1 < n/2; ++i) {
 
+        if (i < 1) continue;
+        
         if (m_fr[i] > m_fr[i-1] &&
             m_fr[i] > m_fr[i+1]) {