annotate dsp/transforms/FFT.h @ 96:88f3cfcff55f

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 6cb2b3cd5356
children f6ccde089491
rev   line source
cannam@0 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
cannam@0 2
cannam@0 3 /*
cannam@0 4 QM DSP Library
cannam@0 5
cannam@0 6 Centre for Digital Music, Queen Mary, University of London.
cannam@0 7 */
cannam@0 8
cannam@0 9 #ifndef FFT_H
cannam@0 10 #define FFT_H
cannam@0 11
cannam@0 12 class FFT
cannam@0 13 {
cannam@0 14 public:
cannam@64 15 FFT(unsigned int nsamples);
cannam@64 16 ~FFT();
cannam@0 17
cannam@64 18 void process(bool inverse,
cannam@64 19 const double *realIn, const double *imagIn,
cannam@64 20 double *realOut, double *imagOut);
cannam@64 21
cannam@64 22 private:
cannam@64 23 unsigned int m_n;
cannam@64 24 void *m_private;
cannam@0 25 };
cannam@0 26
cannam@64 27 class FFTReal
cannam@64 28 {
cannam@64 29 public:
cannam@64 30 FFTReal(unsigned int nsamples);
cannam@64 31 ~FFTReal();
cannam@64 32
cannam@64 33 void process(bool inverse,
cannam@64 34 const double *realIn,
cannam@64 35 double *realOut, double *imagOut);
cannam@64 36
cannam@64 37 private:
cannam@64 38 unsigned int m_n;
cannam@64 39 void *m_private;
cannam@64 40 };
cannam@64 41
cannam@0 42 #endif