Mercurial > hg > chp
comparison ConstrainedHarmonicPeak.h @ 0:f559ab000b67
Initial skeleton
author | Chris Cannam |
---|---|
date | Fri, 07 Mar 2014 14:34:50 +0000 |
parents | |
children | ab0b04e1c56b |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f559ab000b67 |
---|---|
1 #ifndef CONSTRAINEDHARMONICPEAK_H | |
2 #define CONSTRAINEDHARMONICPEAK_H | |
3 | |
4 #include <vamp-sdk/Plugin.h> | |
5 | |
6 using std::string; | |
7 | |
8 class ConstrainedHarmonicPeak : public Vamp::Plugin | |
9 { | |
10 public: | |
11 ConstrainedHarmonicPeak(float inputSampleRate); | |
12 virtual ~ConstrainedHarmonicPeak(); | |
13 | |
14 string getIdentifier() const; | |
15 string getName() const; | |
16 string getDescription() const; | |
17 string getMaker() const; | |
18 int getPluginVersion() const; | |
19 string getCopyright() const; | |
20 | |
21 InputDomain getInputDomain() const; | |
22 size_t getPreferredBlockSize() const; | |
23 size_t getPreferredStepSize() const; | |
24 size_t getMinChannelCount() const; | |
25 size_t getMaxChannelCount() const; | |
26 | |
27 ParameterList getParameterDescriptors() const; | |
28 float getParameter(string identifier) const; | |
29 void setParameter(string identifier, float value); | |
30 | |
31 ProgramList getPrograms() const; | |
32 string getCurrentProgram() const; | |
33 void selectProgram(string name); | |
34 | |
35 OutputList getOutputDescriptors() const; | |
36 | |
37 bool initialise(size_t channels, size_t stepSize, size_t blockSize); | |
38 void reset(); | |
39 | |
40 FeatureSet process(const float *const *inputBuffers, | |
41 Vamp::RealTime timestamp); | |
42 | |
43 FeatureSet getRemainingFeatures(); | |
44 | |
45 protected: | |
46 int m_blockSize; | |
47 float m_minFreq; | |
48 float m_maxFreq; | |
49 }; | |
50 | |
51 | |
52 | |
53 #endif |