diff Chordino.cpp @ 167:25db325b6cf9

Fix overenthusiastic clipping (damn it)
author Chris Cannam
date Thu, 22 Oct 2015 11:03:13 +0100
parents 3c731acad404
children 0a743c2dac6a
line wrap: on
line diff
--- a/Chordino.cpp	Tue Sep 08 13:13:34 2015 +0100
+++ b/Chordino.cpp	Thu Oct 22 11:03:13 2015 +0100
@@ -501,12 +501,12 @@
             }
             if (iChord == nChord-1) tempchordvalue *= .7;
             if (tempchordvalue < 0) tempchordvalue = 0.0;
-            if (tempchordvalue > 20.0) {
+            if (tempchordvalue > 40.0) {
                 if (!clipwarned) {
                     cerr << "WARNING: interim chroma contains extreme chord value " << tempchordvalue << ", clipping this and any others that appear" << endl;
                     clipwarned = true;
                 }
-                tempchordvalue = 10.0;
+                tempchordvalue = 40.0;
             }
             tempchordvalue = pow(1.3, tempchordvalue);
             sumchordvalue += tempchordvalue;