comparison dsp/onsets/DetectionFunction.cpp @ 345:04d134031a15

Comments
author Chris Cannam <c.cannam@qmul.ac.uk>
date Thu, 03 Oct 2013 13:03:31 +0100
parents 5eb9c2387108
children 2053a308bb4d
comparison
equal deleted inserted replaced
344:5eb9c2387108 345:04d134031a15
158 case DF_SPECDIFF: 158 case DF_SPECDIFF:
159 retVal = specDiff( m_halfLength, m_magnitude); 159 retVal = specDiff( m_halfLength, m_magnitude);
160 break; 160 break;
161 161
162 case DF_PHASEDEV: 162 case DF_PHASEDEV:
163 // Using the instantaneous phases here actually provides the
164 // same results (for these calculations) as if we had used
165 // unwrapped phases, but without the possible accumulation of
166 // phase error over time
163 retVal = phaseDev( m_halfLength, m_thetaAngle); 167 retVal = phaseDev( m_halfLength, m_thetaAngle);
164 break; 168 break;
165 169
166 case DF_COMPLEXSD: 170 case DF_COMPLEXSD:
167 retVal = complexSD( m_halfLength, m_magnitude, m_thetaAngle); 171 retVal = complexSD( m_halfLength, m_magnitude, m_thetaAngle);