Mercurial > hg > qm-dsp
comparison dsp/segmentation/ClusterMeltSegmenter.h @ 289:befe5aa6b450
* Refactor FFT a little bit so as to separate construction and processing
rather than have a single static method -- will make it easier to use a
different implementation
* pull in KissFFT implementation (not hooked up yet)
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Wed, 13 May 2009 09:19:12 +0000 |
parents | c3600d3cfe5c |
children | e5907ae6de17 |
comparison
equal
deleted
inserted
replaced
288:86c70067c723 | 289:befe5aa6b450 |
---|---|
18 using std::vector; | 18 using std::vector; |
19 | 19 |
20 class Decimator; | 20 class Decimator; |
21 class ConstantQ; | 21 class ConstantQ; |
22 class MFCC; | 22 class MFCC; |
23 class FFTReal; | |
23 | 24 |
24 class ClusterMeltSegmenterParams | 25 class ClusterMeltSegmenterParams |
25 // defaults are sensible for 11025Hz with 0.2 second hopsize | 26 // defaults are sensible for 11025Hz with 0.2 second hopsize |
26 { | 27 { |
27 public: | 28 public: |
69 | 70 |
70 void extractFeaturesConstQ(const double *, int); | 71 void extractFeaturesConstQ(const double *, int); |
71 void extractFeaturesMFCC(const double *, int); | 72 void extractFeaturesMFCC(const double *, int); |
72 | 73 |
73 Window<double> *window; | 74 Window<double> *window; |
75 FFTReal *fft; | |
74 ConstantQ* constq; | 76 ConstantQ* constq; |
75 MFCC* mfcc; | 77 MFCC* mfcc; |
76 model_t* model; // the HMM | 78 model_t* model; // the HMM |
77 int* q; // the decoded HMM state sequence | 79 int* q; // the decoded HMM state sequence |
78 vector<vector<double> > histograms; | 80 vector<vector<double> > histograms; |