Mercurial > hg > qm-vamp-plugins
comparison plugins/SegmenterPlugin.cpp @ 40:77e394a5f3c9
...
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Thu, 10 Jan 2008 17:26:53 +0000 |
parents | 7f499758cb23 |
children | 0f85778f1b53 |
comparison
equal
deleted
inserted
replaced
39:7f499758cb23 | 40:77e394a5f3c9 |
---|---|
58 if (channels < getMinChannelCount() || | 58 if (channels < getMinChannelCount() || |
59 channels > getMaxChannelCount()) return false; | 59 channels > getMaxChannelCount()) return false; |
60 | 60 |
61 if (!segmenter) makeSegmenter(); | 61 if (!segmenter) makeSegmenter(); |
62 | 62 |
63 //!!! TODO: print out a helpful error message | |
64 | |
65 if (stepSize != hopsize) { | 63 if (stepSize != hopsize) { |
66 std::cerr << "SegmenterPlugin::initialise: supplied step size " | 64 std::cerr << "SegmenterPlugin::initialise: supplied step size " |
67 << stepSize << " differs from required step size " << hopsize | 65 << stepSize << " differs from required step size " << hopsize |
68 << std::endl; | 66 << std::endl; |
69 return false; | 67 return false; |
218 segmentation.name = "Segmentation"; | 216 segmentation.name = "Segmentation"; |
219 segmentation.description = "Segmentation"; | 217 segmentation.description = "Segmentation"; |
220 segmentation.unit = "segment-type"; | 218 segmentation.unit = "segment-type"; |
221 segmentation.hasFixedBinCount = true; | 219 segmentation.hasFixedBinCount = true; |
222 segmentation.binCount = 1; | 220 segmentation.binCount = 1; |
221 segmentation.hasKnownExtents = true; | |
223 segmentation.minValue = 1; | 222 segmentation.minValue = 1; |
224 segmentation.maxValue = nSegmentTypes; | 223 segmentation.maxValue = nSegmentTypes; |
225 segmentation.isQuantized = true; | 224 segmentation.isQuantized = true; |
226 segmentation.quantizeStep = 1; | 225 segmentation.quantizeStep = 1; |
227 segmentation.sampleType = OutputDescriptor::VariableSampleRate; | 226 segmentation.sampleType = OutputDescriptor::VariableSampleRate; |