Mercurial > hg > qm-dsp
comparison dsp/onsets/PeakPicking.cpp @ 185:2ae4ceb76ac3
Fix some uninitialised values
author | Chris Cannam |
---|---|
date | Mon, 07 Sep 2015 14:00:30 +0100 |
parents | f976d7609700 |
children | fdaa63607c15 |
comparison
equal
deleted
inserted
replaced
184:76ec2365b250 | 185:2ae4ceb76ac3 |
---|---|
56 m_DFProcessingParams.LPBCoeffs = Config.LPBCoeffs; | 56 m_DFProcessingParams.LPBCoeffs = Config.LPBCoeffs; |
57 m_DFProcessingParams.winPre = Config.WinT.pre; | 57 m_DFProcessingParams.winPre = Config.WinT.pre; |
58 m_DFProcessingParams.winPost = Config.WinT.post; | 58 m_DFProcessingParams.winPost = Config.WinT.post; |
59 m_DFProcessingParams.AlphaNormParam = Config.alpha; | 59 m_DFProcessingParams.AlphaNormParam = Config.alpha; |
60 m_DFProcessingParams.isMedianPositive = false; | 60 m_DFProcessingParams.isMedianPositive = false; |
61 m_DFProcessingParams.Delta = Config.delta; //add the delta threshold as an adjustable parameter | 61 m_DFProcessingParams.delta = Config.delta; //add the delta threshold as an adjustable parameter |
62 | 62 |
63 m_DFSmoothing = new DFProcess( m_DFProcessingParams ); | 63 m_DFSmoothing = new DFProcess( m_DFProcessingParams ); |
64 | 64 |
65 m_workBuffer = new double[ m_DFLength ]; | 65 m_workBuffer = new double[ m_DFLength ]; |
66 memset( m_workBuffer, 0, sizeof(double)*m_DFLength); | 66 memset( m_workBuffer, 0, sizeof(double)*m_DFLength); |