Mercurial > hg > vamp-tempogram
comparison TempogramPlugin.h @ 19:e90a4797e579
* Attempted fixing bug which crashes sonic visualizer.
author | Carl Bussey <c.bussey@se10.qmul.ac.uk> |
---|---|
date | Fri, 15 Aug 2014 12:34:07 +0100 |
parents | 89bc9e5199d7 |
children | de7213b35755 |
comparison
equal
deleted
inserted
replaced
18:89bc9e5199d7 | 19:e90a4797e579 |
---|---|
76 protected: | 76 protected: |
77 // plugin-specific data and methods go here | 77 // plugin-specific data and methods go here |
78 size_t m_inputBlockSize; | 78 size_t m_inputBlockSize; |
79 size_t m_inputStepSize; | 79 size_t m_inputStepSize; |
80 SpectrogramTransposed m_spectrogram; //spectrogram data | 80 SpectrogramTransposed m_spectrogram; //spectrogram data |
81 vector<float> m_noveltyCurve; //novelty curve data | |
82 float m_noveltyCurveMinDB; | |
83 | |
84 void cleanup(); //used to release anything allocated in initialise() | |
85 string floatToString(float value) const; | |
86 vector<unsigned int> calculateTempogramNearestNeighbourLogBins() const; | |
87 void updateBPMParameters(); | |
88 int bpmToBin(const float &bpm) const; | |
89 | 81 |
90 //Novelty Curve specific parameters | 82 //Novelty Curve specific parameters |
83 float m_noveltyCurveMinDB; | |
91 float m_noveltyCurveCompressionConstant; | 84 float m_noveltyCurveCompressionConstant; |
92 | 85 |
93 //Tempogram specific parameters | 86 //Tempogram specific parameters |
94 float m_tempogramLog2WindowLength; | 87 float m_tempogramLog2WindowLength; |
95 size_t m_tempogramWindowLength; | 88 size_t m_tempogramWindowLength; |
105 | 98 |
106 //Cyclic tempogram parameters | 99 //Cyclic tempogram parameters |
107 float m_cyclicTempogramMinBPM; | 100 float m_cyclicTempogramMinBPM; |
108 int m_cyclicTempogramNumberOfOctaves; | 101 int m_cyclicTempogramNumberOfOctaves; |
109 int m_cyclicTempogramOctaveDivider; | 102 int m_cyclicTempogramOctaveDivider; |
103 | |
104 string floatToString(float value) const; | |
105 vector<unsigned int> calculateTempogramNearestNeighbourLogBins() const; | |
106 int bpmToBin(const float &bpm) const; | |
110 }; | 107 }; |
111 | 108 |
112 | 109 |
113 #endif | 110 #endif |