# HG changeset patch # User Chris Cannam # Date 1444232851 -3600 # Node ID 78ed74fa177be5e2acf848dead2b65f872c15633 # Parent fff8f6d2d2a389e1ead2b54163882e42bf1ccd0e Fix crash in finetune mode sometimes caused by note remaining on while column falls below threshold diff -r fff8f6d2d2a3 -r 78ed74fa177b src/Silvet.cpp --- a/src/Silvet.cpp Tue Sep 15 14:39:16 2015 +0100 +++ b/src/Silvet.cpp Wed Oct 07 16:47:31 2015 +0100 @@ -1020,7 +1020,12 @@ active[j] = strength; if (shiftCount > 1) { - activeShifts[j] = bestShifts[j]; + if (!bestShifts.empty()) { + activeShifts[j] = bestShifts[j]; + } else { + // can happen if column was below threshold + activeShifts[j] = 0; + } } }