Mercurial > hg > svcore
comparison transform/FeatureExtractionPluginTransform.cpp @ 117:c30728d5625c sv1-v0.9rc1
* Make vertical scale alignment modes work in note layer as well as time-value
layer, and several significant fixes to it
* Make it possible to draw notes properly on the note layer
* Show units (and frequencies etc in note layer's case) in the time-value and
note layer description boxes
* Minor fix to item edit dialog layout
* Some minor menu rearrangement
* Comment out a lot of debug output
* Add SV website and reference URLs to Help menu, and add code to (attempt to)
open them in the user's preferred browser
author | Chris Cannam |
---|---|
date | Fri, 12 May 2006 14:40:43 +0000 |
parents | 90ade4fa63be |
children | 4170b21773cf |
comparison
equal
deleted
inserted
replaced
116:a08718723b20 | 117:c30728d5625c |
---|---|
43 m_stepSize(0), | 43 m_stepSize(0), |
44 m_blockSize(0), | 44 m_blockSize(0), |
45 m_descriptor(0), | 45 m_descriptor(0), |
46 m_outputFeatureNo(0) | 46 m_outputFeatureNo(0) |
47 { | 47 { |
48 std::cerr << "FeatureExtractionPluginTransform::FeatureExtractionPluginTransform: plugin " << pluginId.toStdString() << ", outputName " << outputName.toStdString() << std::endl; | 48 // std::cerr << "FeatureExtractionPluginTransform::FeatureExtractionPluginTransform: plugin " << pluginId.toStdString() << ", outputName " << outputName.toStdString() << std::endl; |
49 | 49 |
50 FeatureExtractionPluginFactory *factory = | 50 FeatureExtractionPluginFactory *factory = |
51 FeatureExtractionPluginFactory::instanceFor(pluginId); | 51 FeatureExtractionPluginFactory::instanceFor(pluginId); |
52 | 52 |
53 if (!factory) { | 53 if (!factory) { |
121 << pluginId.toStdString() << "\" has no output named \"" | 121 << pluginId.toStdString() << "\" has no output named \"" |
122 << outputName.toStdString() << "\"" << std::endl; | 122 << outputName.toStdString() << "\"" << std::endl; |
123 return; | 123 return; |
124 } | 124 } |
125 | 125 |
126 std::cerr << "FeatureExtractionPluginTransform: output sample type " | 126 // std::cerr << "FeatureExtractionPluginTransform: output sample type " |
127 << m_descriptor->sampleType << std::endl; | 127 // << m_descriptor->sampleType << std::endl; |
128 | 128 |
129 int binCount = 1; | 129 int binCount = 1; |
130 float minValue = 0.0, maxValue = 0.0; | 130 float minValue = 0.0, maxValue = 0.0; |
131 | 131 |
132 if (m_descriptor->hasFixedBinCount) { | 132 if (m_descriptor->hasFixedBinCount) { |
133 binCount = m_descriptor->binCount; | 133 binCount = m_descriptor->binCount; |
134 } | 134 } |
135 | 135 |
136 std::cerr << "FeatureExtractionPluginTransform: output bin count " | 136 // std::cerr << "FeatureExtractionPluginTransform: output bin count " |
137 << binCount << std::endl; | 137 // << binCount << std::endl; |
138 | 138 |
139 if (binCount > 0 && m_descriptor->hasKnownExtents) { | 139 if (binCount > 0 && m_descriptor->hasKnownExtents) { |
140 minValue = m_descriptor->minValue; | 140 minValue = m_descriptor->minValue; |
141 maxValue = m_descriptor->maxValue; | 141 maxValue = m_descriptor->maxValue; |
142 } | 142 } |