Mercurial > hg > svcore
comparison transform/FeatureExtractionPluginTransform.cpp @ 63:ba405e5e69d3
* Add auto-normalize option to waveform layer
* Various fixes to display of dB/metered levels in waveform layer. Still need
to fix to ensure they don't waste half the display
* Add mix channels option to waveform layer
* Use multiple transforms menus, one per transform type -- not sure about this
* Give centroid plugin two outputs, for log and linear frequency weightings
* Show scale units from plugin in time-value display
author | Chris Cannam |
---|---|
date | Wed, 29 Mar 2006 12:35:17 +0000 |
parents | 2157fa46c1e7 |
children | 4d59dc469b0f |
comparison
equal
deleted
inserted
replaced
62:33285f426852 | 63:ba405e5e69d3 |
---|---|
128 | 128 |
129 // We don't have a sparse 3D model | 129 // We don't have a sparse 3D model |
130 m_descriptor->sampleType == | 130 m_descriptor->sampleType == |
131 FeatureExtractionPlugin::OutputDescriptor::VariableSampleRate) { | 131 FeatureExtractionPlugin::OutputDescriptor::VariableSampleRate) { |
132 | 132 |
133 m_output = new SparseTimeValueModel(modelRate, modelResolution, | 133 SparseTimeValueModel *model = new SparseTimeValueModel |
134 minValue, maxValue, false); | 134 (modelRate, modelResolution, minValue, maxValue, false); |
135 model->setScaleUnits(outputs[m_outputFeatureNo].unit.c_str()); | |
136 | |
137 m_output = model; | |
135 | 138 |
136 } else { | 139 } else { |
137 | 140 |
138 m_output = new DenseThreeDimensionalModel(modelRate, modelResolution, | 141 m_output = new DenseThreeDimensionalModel(modelRate, modelResolution, |
139 valueCount, false); | 142 valueCount, false); |