comparison examples/ZeroCrossing.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 3bbe244611bb
comparison
equal deleted inserted replaced
8:c4662bbef275 9:44113b1e296b
107 107
108 OutputDescriptor zc; 108 OutputDescriptor zc;
109 zc.name = "counts"; 109 zc.name = "counts";
110 zc.unit = "crossings"; 110 zc.unit = "crossings";
111 zc.description = "Zero Crossing Counts"; 111 zc.description = "Zero Crossing Counts";
112 zc.hasFixedValueCount = true; 112 zc.hasFixedBinCount = true;
113 zc.valueCount = 1; 113 zc.binCount = 1;
114 zc.hasKnownExtents = false; 114 zc.hasKnownExtents = false;
115 zc.isQuantized = true; 115 zc.isQuantized = true;
116 zc.quantizeStep = 1.0; 116 zc.quantizeStep = 1.0;
117 zc.sampleType = OutputDescriptor::OneSamplePerStep; 117 zc.sampleType = OutputDescriptor::OneSamplePerStep;
118 list.push_back(zc); 118 list.push_back(zc);
119 119
120 zc.name = "zerocrossings"; 120 zc.name = "zerocrossings";
121 zc.unit = ""; 121 zc.unit = "";
122 zc.description = "Zero Crossings"; 122 zc.description = "Zero Crossings";
123 zc.hasFixedValueCount = true; 123 zc.hasFixedBinCount = true;
124 zc.valueCount = 0; 124 zc.binCount = 0;
125 zc.sampleType = OutputDescriptor::VariableSampleRate; 125 zc.sampleType = OutputDescriptor::VariableSampleRate;
126 zc.sampleRate = m_inputSampleRate; 126 zc.sampleRate = m_inputSampleRate;
127 list.push_back(zc); 127 list.push_back(zc);
128 128
129 return list; 129 return list;