Mercurial > hg > qm-vamp-plugins
comparison plugins/MFCCPlugin.cpp @ 52:4fe04e706839
* Add some descriptions etc
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Wed, 30 Jan 2008 13:33:23 +0000 |
parents | df7a0bc46592 |
children | 3c418314a173 |
comparison
equal
deleted
inserted
replaced
51:64e4c8aec287 | 52:4fe04e706839 |
---|---|
88 | 88 |
89 ParameterDescriptor desc; | 89 ParameterDescriptor desc; |
90 desc.identifier = "nceps"; | 90 desc.identifier = "nceps"; |
91 desc.name = "Number of Coefficients"; | 91 desc.name = "Number of Coefficients"; |
92 desc.unit = ""; | 92 desc.unit = ""; |
93 //!!! descriptions -- "including C0 if requested" | 93 desc.description = "Number of MFCCs to return, starting from C0 if \"Include C0\" is specified or from C1 otherwise"; |
94 desc.minValue = 1; | 94 desc.minValue = 1; |
95 desc.maxValue = 40; | 95 desc.maxValue = 40; |
96 desc.defaultValue = 20; | 96 desc.defaultValue = 20; |
97 desc.isQuantized = true; | 97 desc.isQuantized = true; |
98 desc.quantizeStep = 1; | 98 desc.quantizeStep = 1; |
99 list.push_back(desc); | 99 list.push_back(desc); |
100 | 100 |
101 desc.identifier = "logpower"; | 101 desc.identifier = "logpower"; |
102 desc.name = "Power for Mel Amplitude Logs"; | 102 desc.name = "Power for Mel Amplitude Logs"; |
103 desc.unit = ""; | 103 desc.unit = ""; |
104 desc.description = "Power to raise the amplitude log values to before applying DCT. Values greater than 1 may reduce contribution of noise"; | |
104 desc.minValue = 0; | 105 desc.minValue = 0; |
105 desc.maxValue = 5; | 106 desc.maxValue = 5; |
106 desc.defaultValue = 1; | 107 desc.defaultValue = 1; |
107 desc.isQuantized = false; | 108 desc.isQuantized = false; |
108 desc.quantizeStep = 0; | 109 desc.quantizeStep = 0; |
109 list.push_back(desc); | 110 list.push_back(desc); |
110 | 111 |
111 desc.identifier = "wantc0"; | 112 desc.identifier = "wantc0"; |
112 desc.name = "Include C0"; | 113 desc.name = "Include C0"; |
113 desc.unit = ""; | 114 desc.unit = ""; |
114 //!!! description | 115 desc.description = "Whether to include the C0 (energy level) coefficient in the returned results"; |
115 desc.minValue = 0; | 116 desc.minValue = 0; |
116 desc.maxValue = 1; | 117 desc.maxValue = 1; |
117 desc.defaultValue = 1; | 118 desc.defaultValue = 1; |
118 desc.isQuantized = true; | 119 desc.isQuantized = true; |
119 desc.quantizeStep = 1; | 120 desc.quantizeStep = 1; |
215 | 216 |
216 OutputDescriptor d; | 217 OutputDescriptor d; |
217 d.identifier = "coefficients"; | 218 d.identifier = "coefficients"; |
218 d.name = "Coefficients"; | 219 d.name = "Coefficients"; |
219 d.unit = ""; | 220 d.unit = ""; |
221 d.description = "MFCC values"; | |
220 d.hasFixedBinCount = true; | 222 d.hasFixedBinCount = true; |
221 d.binCount = m_bins; | 223 d.binCount = m_bins; |
222 d.hasKnownExtents = false; | 224 d.hasKnownExtents = false; |
223 d.isQuantized = false; | 225 d.isQuantized = false; |
224 d.sampleType = OutputDescriptor::OneSamplePerStep; | 226 d.sampleType = OutputDescriptor::OneSamplePerStep; |
225 list.push_back(d); | 227 list.push_back(d); |
226 | 228 |
227 d.identifier = "means"; | 229 d.identifier = "means"; |
228 d.name = "Means of Coefficients"; | 230 d.name = "Means of Coefficients"; |
229 //!!! descriptions | 231 d.description = "Mean values of MFCCs across duration of audio input"; |
230 d.sampleType = OutputDescriptor::FixedSampleRate; | 232 d.sampleType = OutputDescriptor::FixedSampleRate; |
231 d.sampleRate = 1; | 233 d.sampleRate = 1; |
232 list.push_back(d); | 234 list.push_back(d); |
233 | 235 |
234 return list; | 236 return list; |