Mercurial > hg > svcore
diff transform/RealTimePluginTransform.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 | 749b5521e082 |
children | 4d59dc469b0f |
line wrap: on
line diff
--- a/transform/RealTimePluginTransform.cpp Tue Mar 28 23:57:32 2006 +0000 +++ b/transform/RealTimePluginTransform.cpp Wed Mar 29 12:35:17 2006 +0000 @@ -28,6 +28,7 @@ RealTimePluginTransform::RealTimePluginTransform(Model *inputModel, QString pluginId, QString configurationXml, + QString units, int output) : Transform(inputModel), m_plugin(0), @@ -66,9 +67,13 @@ return; } - m_output = new SparseTimeValueModel(input->getSampleRate(), - 1024, //!!! - 0.0, 0.0, false); + SparseTimeValueModel *model = new SparseTimeValueModel + (input->getSampleRate(), 1024, //!!! + 0.0, 0.0, false); + + if (units != "") model->setScaleUnits(units); + + m_output = model; } RealTimePluginTransform::~RealTimePluginTransform()