diff 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
line wrap: on
line diff
--- a/transform/FeatureExtractionPluginTransform.cpp	Tue Mar 28 23:57:32 2006 +0000
+++ b/transform/FeatureExtractionPluginTransform.cpp	Wed Mar 29 12:35:17 2006 +0000
@@ -130,8 +130,11 @@
 	       m_descriptor->sampleType ==
 	       FeatureExtractionPlugin::OutputDescriptor::VariableSampleRate) {
 	
-	m_output = new SparseTimeValueModel(modelRate, modelResolution,
-					    minValue, maxValue, false);
+        SparseTimeValueModel *model = new SparseTimeValueModel
+            (modelRate, modelResolution, minValue, maxValue, false);
+        model->setScaleUnits(outputs[m_outputFeatureNo].unit.c_str());
+
+        m_output = model;
 
     } else {