comparison examples/SpectralCentroid.cpp @ 9:44113b1e296b

* Add valueNames to parameter descriptor * Change valueCount and valueNames to binCount and binNames in output descriptor, to avoid confusion with other uses of value * Some explanatory notes about FFT alignment
author cannam
date Wed, 05 Apr 2006 16:50:07 +0000
parents c4662bbef275
children 85801331454c
comparison
equal deleted inserted replaced
8:c4662bbef275 9:44113b1e296b
116 116
117 OutputDescriptor d; 117 OutputDescriptor d;
118 d.name = "logcentroid"; 118 d.name = "logcentroid";
119 d.unit = "Hz"; 119 d.unit = "Hz";
120 d.description = "Log Frequency Centroid"; 120 d.description = "Log Frequency Centroid";
121 d.hasFixedValueCount = true; 121 d.hasFixedBinCount = true;
122 d.valueCount = 1; 122 d.binCount = 1;
123 d.hasKnownExtents = false; 123 d.hasKnownExtents = false;
124 d.isQuantized = false; 124 d.isQuantized = false;
125 d.sampleType = OutputDescriptor::OneSamplePerStep; 125 d.sampleType = OutputDescriptor::OneSamplePerStep;
126 list.push_back(d); 126 list.push_back(d);
127 127