Mercurial > hg > svcore
comparison transform/FeatureExtractionModelTransformer.h @ 786:5295bdb58840 tonioni
fixed flexi note layer and propagated model selection to analyser
author | gyorgyf |
---|---|
date | Sat, 13 Apr 2013 13:39:17 +0100 |
parents | 1d7ebc05157e |
children | 54829c1e155e |
comparison
equal
deleted
inserted
replaced
776:cb587575bc0d | 786:5295bdb58840 |
---|---|
29 class FeatureExtractionModelTransformer : public ModelTransformer | 29 class FeatureExtractionModelTransformer : public ModelTransformer |
30 { | 30 { |
31 Q_OBJECT | 31 Q_OBJECT |
32 | 32 |
33 public: | 33 public: |
34 enum PreferredOutputModel { | |
35 NoteOutputModel, | |
36 FlexiNoteOutputModel, | |
37 UndefinedOutputModel = 255 | |
38 }; | |
39 | |
34 FeatureExtractionModelTransformer(Input input, | 40 FeatureExtractionModelTransformer(Input input, |
35 const Transform &transform); | 41 const Transform &transform, |
42 const PreferredOutputModel outputmodel); | |
43 | |
36 virtual ~FeatureExtractionModelTransformer(); | 44 virtual ~FeatureExtractionModelTransformer(); |
37 | 45 |
38 protected: | 46 protected: |
39 virtual void run(); | 47 virtual void run(); |
40 | 48 |
41 Vamp::Plugin *m_plugin; | 49 Vamp::Plugin *m_plugin; |
42 Vamp::Plugin::OutputDescriptor *m_descriptor; | 50 Vamp::Plugin::OutputDescriptor *m_descriptor; |
43 int m_outputFeatureNo; | 51 int m_outputFeatureNo; |
52 PreferredOutputModel m_preferredOutputModel; | |
44 | 53 |
45 void createOutputModel(); | 54 void createOutputModel(); |
46 | 55 |
47 void addFeature(size_t blockFrame, | 56 void addFeature(size_t blockFrame, |
48 const Vamp::Plugin::Feature &feature); | 57 const Vamp::Plugin::Feature &feature); |