Mercurial > hg > qm-dsp
diff 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 |
line wrap: on
line diff
--- a/dsp/onsets/DetectionFunction.cpp Thu Oct 03 12:58:36 2013 +0100 +++ b/dsp/onsets/DetectionFunction.cpp Thu Oct 03 13:03:31 2013 +0100 @@ -160,6 +160,10 @@ break; case DF_PHASEDEV: + // Using the instantaneous phases here actually provides the + // same results (for these calculations) as if we had used + // unwrapped phases, but without the possible accumulation of + // phase error over time retVal = phaseDev( m_halfLength, m_thetaAngle); break;