comparison runner/FeatureExtractionManager.h @ 288:fd4a6183482f kapoor_1202

Merge from branch piper-nopiper. The next release will be based on this.
author Chris Cannam
date Fri, 02 Dec 2016 10:04:44 +0000
parents 68dc2d99a5b1
children 0e866ef12d87
comparison
equal deleted inserted replaced
259:9e7d180be225 288:fd4a6183482f
36 class AudioFileReader; 36 class AudioFileReader;
37 37
38 class FeatureExtractionManager 38 class FeatureExtractionManager
39 { 39 {
40 public: 40 public:
41 FeatureExtractionManager(); 41 FeatureExtractionManager(bool verbose);
42 virtual ~FeatureExtractionManager(); 42 virtual ~FeatureExtractionManager();
43 43
44 void setChannels(int channels); 44 void setChannels(int channels);
45 void setDefaultSampleRate(int sampleRate); 45 void setDefaultSampleRate(int sampleRate);
46 void setNormalise(bool normalise); 46 void setNormalise(bool normalise);
73 // a single "file" whose individual channels are mixdowns of the 73 // a single "file" whose individual channels are mixdowns of the
74 // supplied sources. 74 // supplied sources.
75 void extractFeaturesMultiplexed(QStringList sources); 75 void extractFeaturesMultiplexed(QStringList sources);
76 76
77 private: 77 private:
78 bool m_verbose;
79
78 // A plugin may have many outputs, so we can have more than one 80 // A plugin may have many outputs, so we can have more than one
79 // transform requested for a single plugin. The things we want to 81 // transform requested for a single plugin. The things we want to
80 // run in our process loop are plugins rather than their outputs, 82 // run in our process loop are plugins rather than their outputs,
81 // so we maintain a map from the plugins to the transforms desired 83 // so we maintain a map from the plugins to the transforms desired
82 // of them and then iterate through this map 84 // of them and then iterate through this map