1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
6 Centre for Digital Music, Queen Mary, University of London.
7 This file 2005-2006 Christian Landone.
12 Description: add delta threshold used as offset in the smoothed
14 Author: Mathieu Barthet
17 This program is free software; you can redistribute it and/or
18 modify it under the terms of the GNU General Public License as
19 published by the Free Software Foundation; either version 2 of the
20 License, or (at your option) any later version. See the file
21 COPYING included with this distribution for more information.
37 double AlphaNormParam;
38 bool isMedianPositive;
39 float delta; //delta threshold used as an offset when computing the smoothed detection function
49 isMedianPositive(false),
58 DFProcess( DFProcConfig Config );
61 void process( double* src, double* dst );
65 void initialise( DFProcConfig Config );
67 void removeDCNormalize( double *src, double*dst );
68 void medianFilter( double* src, double* dst );
76 double m_alphaNormParam;
81 double* m_filtScratchIn;
82 double* m_filtScratchOut;
84 FilterConfig m_FilterConfigParams;
88 bool m_isMedianPositive;
89 float m_delta; //add delta threshold