comparison dsp/onsets/PeakPicking.cpp @ 410:c5e1b25d5177

Fix some uninitialised values
author Chris Cannam <c.cannam@qmul.ac.uk>
date Mon, 07 Sep 2015 14:00:30 +0100
parents 6dd7c8bb5e3a
children fdaa63607c15
comparison
equal deleted inserted replaced
409:1f1999b0f577 410:c5e1b25d5177
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);