comparison 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
comparison
equal deleted inserted replaced
28:c21ce05afbe4 29:409ff482cb30
68 TFeature m_refTotals; 68 TFeature m_refTotals;
69 TFeature m_refFeature; 69 TFeature m_refFeature;
70 Signal m_other; 70 Signal m_other;
71 int m_blockSize; 71 int m_blockSize;
72 int m_frameCount; 72 int m_frameCount;
73 float m_maxDuration;
73 74
74 Chromagram::Parameters paramsForTuningFrequency(double hz) const; 75 Chromagram::Parameters paramsForTuningFrequency(double hz) const;
75 TFeature computeFeatureFromTotals(const TFeature &totals) const; 76 TFeature computeFeatureFromTotals(const TFeature &totals) const;
76 TFeature computeFeatureFromSignal(const Signal &signal, double hz) const; 77 TFeature computeFeatureFromSignal(const Signal &signal, double hz) const;
77 double featureDistance(const TFeature &other, int rotation = 0) const; 78 double featureDistance(const TFeature &other, int rotation = 0) const;