comparison plugins/SegmenterPlugin.h @ 37:9ce0db4770a2

* work on integrating segmenter (not yet done)
author Chris Cannam <c.cannam@qmul.ac.uk>
date Wed, 09 Jan 2008 16:51:59 +0000
parents 5359ba489c0f
children 9a2edd83775f
comparison
equal deleted inserted replaced
36:5359ba489c0f 37:9ce0db4770a2
10 #ifndef _SEGMENTER_PLUGIN_H_ 10 #ifndef _SEGMENTER_PLUGIN_H_
11 #define _SEGMENTER_PLUGIN_H_ 11 #define _SEGMENTER_PLUGIN_H_
12 12
13 #include <vamp-sdk/Plugin.h> 13 #include <vamp-sdk/Plugin.h>
14 #include <vamp-sdk/RealTime.h> 14 #include <vamp-sdk/RealTime.h>
15 #include "Segmenter.h" 15 #include "dsp/segmentation/Segmenter.h"
16 #include "segment.h" 16 #include "dsp/segmentation/segment.h"
17 17
18 class SegmenterPlugin : public Vamp::Plugin 18 class SegmenterPlugin : public Vamp::Plugin
19 { 19 {
20 public: 20 public:
21 SegmenterPlugin(float inputSampleRate); 21 SegmenterPlugin(float inputSampleRate);
22 virtual ~SegmenterPlugin(); 22 virtual ~SegmenterPlugin();
23 23
24 bool initialise(size_t channels, size_t stepSize, size_t blockSize); 24 bool initialise(size_t channels, size_t stepSize, size_t blockSize);
25 void reset(); 25 void reset();
26 26
27 std::string getIdentifier() const { return "segmenter"; } 27 std::string getIdentifier() const { return "qm-segmenter"; }
28 std::string getName() const { return "Segmenter"; } 28 std::string getName() const { return "Segmenter"; }
29 std::string getDescription() const { return "Divide the track into a sequence of consistent segments"; } 29 std::string getDescription() const { return "Divide the track into a sequence of consistent segments"; }
30 std::string getMaker() const; 30 std::string getMaker() const;
31 int getPluginVersion() const; 31 int getPluginVersion() const;
32 std::string getCopyright() const; 32 std::string getCopyright() const;