Mercurial > hg > qm-dsp
comparison dsp/onsets/DetectionFunction.cpp @ 120:b0e98fcfacd7 pvoc
Comments
author | Chris Cannam |
---|---|
date | Thu, 03 Oct 2013 13:03:31 +0100 |
parents | 2020c73dc997 |
children | 2053a308bb4d |
comparison
equal
deleted
inserted
replaced
119:2020c73dc997 | 120:b0e98fcfacd7 |
---|---|
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); |