Mercurial > hg > sonic-visualiser
comparison transform/FeatureExtractionPluginTransform.h @ 26:d88d117e0c34
* Add mono timestretch toggle button; some more work on getting blocksize etc
parameters through to plugins
author | Chris Cannam |
---|---|
date | Mon, 18 Sep 2006 16:43:17 +0000 |
parents | cd5d7ff8ef38 |
children | 61259228d029 |
comparison
equal
deleted
inserted
replaced
25:e74f508db18c | 26:d88d117e0c34 |
---|---|
16 #ifndef _FEATURE_EXTRACTION_PLUGIN_TRANSFORM_H_ | 16 #ifndef _FEATURE_EXTRACTION_PLUGIN_TRANSFORM_H_ |
17 #define _FEATURE_EXTRACTION_PLUGIN_TRANSFORM_H_ | 17 #define _FEATURE_EXTRACTION_PLUGIN_TRANSFORM_H_ |
18 | 18 |
19 #include "Transform.h" | 19 #include "Transform.h" |
20 | 20 |
21 #include "base/Window.h" | |
22 | |
21 #include "vamp-sdk/Plugin.h" | 23 #include "vamp-sdk/Plugin.h" |
22 | 24 |
23 class DenseTimeValueModel; | 25 class DenseTimeValueModel; |
24 | 26 |
25 class FeatureExtractionPluginTransform : public Transform | 27 class FeatureExtractionPluginTransform : public Transform |
27 public: | 29 public: |
28 FeatureExtractionPluginTransform(Model *inputModel, | 30 FeatureExtractionPluginTransform(Model *inputModel, |
29 QString plugin, | 31 QString plugin, |
30 int channel, | 32 int channel, |
31 QString configurationXml = "", | 33 QString configurationXml = "", |
32 QString outputName = ""); | 34 QString outputName = "", |
35 size_t stepSize = 0, | |
36 size_t blockSize = 0, | |
37 WindowType windowType = HanningWindow); | |
33 virtual ~FeatureExtractionPluginTransform(); | 38 virtual ~FeatureExtractionPluginTransform(); |
34 | 39 |
35 protected: | 40 protected: |
36 virtual void run(); | 41 virtual void run(); |
37 | 42 |
38 Vamp::Plugin *m_plugin; | 43 Vamp::Plugin *m_plugin; |
39 int m_channel; | 44 int m_channel; |
40 size_t m_stepSize; | 45 size_t m_stepSize; |
41 size_t m_blockSize; | 46 size_t m_blockSize; |
47 WindowType m_windowType; | |
42 Vamp::Plugin::OutputDescriptor *m_descriptor; | 48 Vamp::Plugin::OutputDescriptor *m_descriptor; |
43 int m_outputFeatureNo; | 49 int m_outputFeatureNo; |
44 | 50 |
45 void addFeature(size_t blockFrame, | 51 void addFeature(size_t blockFrame, |
46 const Vamp::Plugin::Feature &feature); | 52 const Vamp::Plugin::Feature &feature); |