comparison transform/FeatureExtractionModelTransformer.cpp @ 445:55cff2c6e4a0

* some work on transform finder
author Chris Cannam
date Thu, 25 Sep 2008 12:44:23 +0000
parents 288f45533041
children 3c5252e7cefd
comparison
equal deleted inserted replaced
444:14521503f196 445:55cff2c6e4a0
209 209
210 bool preDurationPlugin = (m_plugin->getVampApiVersion() < 2); 210 bool preDurationPlugin = (m_plugin->getVampApiVersion() < 2);
211 211
212 if (binCount == 0 && 212 if (binCount == 0 &&
213 (preDurationPlugin || !m_descriptor->hasDuration)) { 213 (preDurationPlugin || !m_descriptor->hasDuration)) {
214
215 // Anything with no value and no duration is an instant
214 216
215 m_output = new SparseOneDimensionalModel(modelRate, modelResolution, 217 m_output = new SparseOneDimensionalModel(modelRate, modelResolution,
216 false); 218 false);
217 219
218 } else if ((preDurationPlugin && binCount > 1 && 220 } else if ((preDurationPlugin && binCount > 1 &&