comparison src/Silvet.cpp @ 335:d861f86f2b17 livemode

Back out this reduction of duration threshold, I think it makes things too noisy
author Chris Cannam
date Thu, 25 Jun 2015 17:23:31 +0100
parents 806b2ea65416
children d25e4aee73d7
comparison
equal deleted inserted replaced
334:806b2ea65416 335:d861f86f2b17
999 999
1000 double columnDuration = 1.0 / m_colsPerSec; 1000 double columnDuration = 1.0 / m_colsPerSec;
1001 1001
1002 // only keep notes >= 100ms or thereabouts 1002 // only keep notes >= 100ms or thereabouts
1003 double durationThrSec = 0.1; 1003 double durationThrSec = 0.1;
1004 if (m_mode == LiveMode) durationThrSec = 0.07;
1005 int durationThreshold = floor(durationThrSec / columnDuration); // in cols 1004 int durationThreshold = floor(durationThrSec / columnDuration); // in cols
1006 if (durationThreshold < 1) durationThreshold = 1; 1005 if (durationThreshold < 1) durationThreshold = 1;
1007 1006
1008 FeatureList noteFeatures, onsetFeatures; 1007 FeatureList noteFeatures, onsetFeatures;
1009 1008