# HG changeset patch # User Chris Cannam # Date 1445508193 -3600 # Node ID 25db325b6cf956af1e97ba14b3c8ec8fc76c83eb # Parent eb959aae96cf6c5488914e1b362bb366753d07bc Fix overenthusiastic clipping (damn it) diff -r eb959aae96cf -r 25db325b6cf9 Chordino.cpp --- 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;