Mercurial > hg > qm-vamp-plugins
comparison plugins/ChromagramPlugin.h @ 49:fc88b465548a
* Normalise type option for chromagram
* Minimum segment duration option for segmenter
* Bit more documentation
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Tue, 22 Jan 2008 17:27:48 +0000 |
parents | 5d7ce1d87301 |
children | dcf5800f0f00 |
comparison
equal
deleted
inserted
replaced
48:3b4572153ce3 | 49:fc88b465548a |
---|---|
47 | 47 |
48 protected: | 48 protected: |
49 int m_minMIDIPitch; | 49 int m_minMIDIPitch; |
50 int m_maxMIDIPitch; | 50 int m_maxMIDIPitch; |
51 float m_tuningFrequency; | 51 float m_tuningFrequency; |
52 bool m_normalized; | 52 MathUtilities::NormaliseType m_normalise; |
53 int m_bpo; | 53 int m_bpo; |
54 | 54 |
55 void setupConfig(); | 55 void setupConfig(); |
56 | 56 |
57 ChromaConfig m_config; | 57 ChromaConfig m_config; |
59 mutable size_t m_step; | 59 mutable size_t m_step; |
60 mutable size_t m_block; | 60 mutable size_t m_block; |
61 | 61 |
62 vector<double> m_binsums; | 62 vector<double> m_binsums; |
63 size_t m_count; | 63 size_t m_count; |
64 | |
65 Feature normalize(const Feature &); | |
66 }; | 64 }; |
67 | 65 |
68 | 66 |
69 #endif | 67 #endif |