diff src/TuningDifference.h @ 29:409ff482cb30

Add max-duration parameter. The results are often going to be quite wrong if you use this, simply because the two performances may be at different speeds and so the same duration of each may represent a different (sub-)performance. But it's sometimes necessary just to avoid blowing the thing up.
author Chris Cannam
date Fri, 27 Mar 2015 17:20:40 +0000
parents d660db57e902
children 2ef9c5d744ab
line wrap: on
line diff
--- a/src/TuningDifference.h	Fri Mar 13 15:03:54 2015 +0000
+++ b/src/TuningDifference.h	Fri Mar 27 17:20:40 2015 +0000
@@ -70,6 +70,7 @@
     Signal m_other;
     int m_blockSize;
     int m_frameCount;
+    float m_maxDuration;
 
     Chromagram::Parameters paramsForTuningFrequency(double hz) const;
     TFeature computeFeatureFromTotals(const TFeature &totals) const;