comparison dsp/signalconditioning/DFProcess.h @ 321:f1e6be2de9a5

A threshold (delta) is added in the peak picking parameters structure (PPickParams). It is used as an offset when computing the smoothed detection function. A constructor for the structure PPickParams is also added to set the parameters to 0 when a structure instance is created. Hence programmes using the peak picking parameter structure and which do not set the delta parameter (e.g. QM Vamp note onset detector) won't be affected by the modifications. Functions modified: - dsp/onsets/PeakPicking.cpp - dsp/onsets/PeakPicking.h - dsp/signalconditioning/DFProcess.cpp - dsp/signalconditioning/DFProcess.h
author mathieub <mathieu.barthet@eecs.qmul.ac.uk>
date Mon, 20 Jun 2011 19:01:48 +0100
parents d5014ab8b0e5
children 715f779d0b4f
comparison
equal deleted inserted replaced
320:b4b98fdad2ad 321:f1e6be2de9a5
3 /* 3 /*
4 QM DSP Library 4 QM DSP Library
5 5
6 Centre for Digital Music, Queen Mary, University of London. 6 Centre for Digital Music, Queen Mary, University of London.
7 This file 2005-2006 Christian Landone. 7 This file 2005-2006 Christian Landone.
8
9 Modifications:
10
11 - delta threshold
12 Description: add delta threshold used as offset in the smoothed
13 detection function
14 Author: Mathieu Barthet
15 Date: June 2010
8 16
9 This program is free software; you can redistribute it and/or 17 This program is free software; you can redistribute it and/or
10 modify it under the terms of the GNU General Public License as 18 modify it under the terms of the GNU General Public License as
11 published by the Free Software Foundation; either version 2 of the 19 published by the Free Software Foundation; either version 2 of the
12 License, or (at your option) any later version. See the file 20 License, or (at your option) any later version. See the file
26 double *LPBCoeffs; 34 double *LPBCoeffs;
27 unsigned int winPre; 35 unsigned int winPre;
28 unsigned int winPost; 36 unsigned int winPost;
29 double AlphaNormParam; 37 double AlphaNormParam;
30 bool isMedianPositive; 38 bool isMedianPositive;
39 float Delta; //delta threshold used as an offset when computing the smoothed detection function
31 }; 40 };
32 41
33 class DFProcess 42 class DFProcess
34 { 43 {
35 public: 44 public:
62 FiltFiltConfig m_FilterConfigParams; 71 FiltFiltConfig m_FilterConfigParams;
63 72
64 FiltFilt* m_FiltFilt; 73 FiltFilt* m_FiltFilt;
65 74
66 bool m_isMedianPositive; 75 bool m_isMedianPositive;
76 float m_Delta; //add delta threshold
67 }; 77 };
68 78
69 #endif 79 #endif