diff options
Diffstat (limited to 'libs/qm-dsp/dsp/onsets')
-rw-r--r-- | libs/qm-dsp/dsp/onsets/DetectionFunction.cpp | 4 | ||||
-rw-r--r-- | libs/qm-dsp/dsp/onsets/PeakPicking.cpp | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/libs/qm-dsp/dsp/onsets/DetectionFunction.cpp b/libs/qm-dsp/dsp/onsets/DetectionFunction.cpp index 1abed021f9..ae22cfb11d 100644 --- a/libs/qm-dsp/dsp/onsets/DetectionFunction.cpp +++ b/libs/qm-dsp/dsp/onsets/DetectionFunction.cpp @@ -250,7 +250,7 @@ double DetectionFunction::complexSD(unsigned int length, double *srcMagnitude, d double tmpPhase = 0; double tmpReal = 0; double tmpImag = 0; - + double dev = 0; ComplexData meas = ComplexData( 0, 0 ); ComplexData j = ComplexData( 0, 1 ); @@ -287,7 +287,7 @@ double DetectionFunction::broadband(unsigned int length, double *src) m_magHistory[i] = sqrmag; } return val; -} +} double* DetectionFunction::getSpectrumMagnitude() { diff --git a/libs/qm-dsp/dsp/onsets/PeakPicking.cpp b/libs/qm-dsp/dsp/onsets/PeakPicking.cpp index b46c54b6d1..472897b241 100644 --- a/libs/qm-dsp/dsp/onsets/PeakPicking.cpp +++ b/libs/qm-dsp/dsp/onsets/PeakPicking.cpp @@ -42,12 +42,12 @@ void PeakPicking::initialise( PPickParams Config ) Qfiltb = Config.QuadThresh.b ; Qfiltc = Config.QuadThresh.c ; - m_DFProcessingParams.length = m_DFLength; - m_DFProcessingParams.LPOrd = Config.LPOrd; - m_DFProcessingParams.LPACoeffs = Config.LPACoeffs; - m_DFProcessingParams.LPBCoeffs = Config.LPBCoeffs; + m_DFProcessingParams.length = m_DFLength; + m_DFProcessingParams.LPOrd = Config.LPOrd; + m_DFProcessingParams.LPACoeffs = Config.LPACoeffs; + m_DFProcessingParams.LPBCoeffs = Config.LPBCoeffs; m_DFProcessingParams.winPre = Config.WinT.pre; - m_DFProcessingParams.winPost = Config.WinT.post; + m_DFProcessingParams.winPost = Config.WinT.post; m_DFProcessingParams.AlphaNormParam = Config.alpha; m_DFProcessingParams.isMedianPositive = false; @@ -70,7 +70,7 @@ void PeakPicking::process( double* src, unsigned int len, vector<int> &onsets ) vector <double> m_maxima; - // Signal conditioning + // Signal conditioning m_DFSmoothing->process( src, m_workBuffer ); for( unsigned int u = 0; u < len; u++) |