Mercurial > hg > vamp-tempogram
comparison Tempogram.h @ 4:597f033fa7a2
* Some cleaning and rearranging to prepare for band processing implementation
author | Carl Bussey <c.bussey@se10.qmul.ac.uk> |
---|---|
date | Tue, 05 Aug 2014 15:56:59 +0100 |
parents | 5125d34fda67 |
children | 21147df9cb2d |
comparison
equal
deleted
inserted
replaced
3:5125d34fda67 | 4:597f033fa7a2 |
---|---|
43 OutputList getOutputDescriptors() const; | 43 OutputList getOutputDescriptors() const; |
44 | 44 |
45 bool initialise(size_t channels, size_t stepSize, size_t blockSize); | 45 bool initialise(size_t channels, size_t stepSize, size_t blockSize); |
46 void initialiseForGRF(); | 46 void initialiseForGRF(); |
47 void cleanupForGRF(); | 47 void cleanupForGRF(); |
48 vector<float> spectrogramToNoveltyCurve(vector<float> spectrogramData, int numberOfBlocks, int blockSize, float samplingFrequency, FeatureSet * featureSet = NULL); | |
49 void reset(); | 48 void reset(); |
50 | 49 |
51 FeatureSet process(const float *const *inputBuffers, | 50 FeatureSet process(const float *const *inputBuffers, |
52 Vamp::RealTime timestamp); | 51 Vamp::RealTime timestamp); |
53 | 52 |
59 size_t m_stepSize; | 58 size_t m_stepSize; |
60 float compressionConstant; | 59 float compressionConstant; |
61 float specMax; | 60 float specMax; |
62 float *previousY; | 61 float *previousY; |
63 float *currentY; | 62 float *currentY; |
64 vector<float> specData; | 63 vector< vector<float> > specData; |
64 float ** spectrogram; | |
65 vector<float> noveltyCurve; | 65 vector<float> noveltyCurve; |
66 float minDB; | 66 float minDB; |
67 | 67 |
68 unsigned int tN; | 68 unsigned int tN; |
69 unsigned int thopSize; | 69 unsigned int thopSize; |
70 double * fftInput; | 70 double * fftInput; |
71 double * fftOutputReal; | 71 double * fftOutputReal; |
72 double * fftOutputImag; | 72 double * fftOutputImag; |
73 | 73 |
74 int numberOfBlocks; | 74 int numberOfBlocks; |
75 int hannN; | |
76 float *hannWindow; | |
77 float *hannWindowtN; | 75 float *hannWindowtN; |
78 | 76 |
79 vector<Vamp::RealTime> ncTimestamps; | 77 vector<Vamp::RealTime> ncTimestamps; |
80 }; | 78 }; |
81 | 79 |