* Add frequency range limits, frequency-wrap option, and silence
[vamp-aubio-plugins.git] / plugins / Pitch.h
index 1752737..b54124d 100644 (file)
@@ -31,6 +31,7 @@ public:
 
     InputDomain getInputDomain() const { return TimeDomain; }
 
+    std::string getIdentifier() const;
     std::string getName() const;
     std::string getDescription() const;
     std::string getMaker() const;
@@ -46,7 +47,8 @@ public:
 
     OutputList getOutputDescriptors() const;
 
-    FeatureSet process(float **inputBuffers, Vamp::RealTime timestamp);
+    FeatureSet process(const float *const *inputBuffers,
+                       Vamp::RealTime timestamp);
 
     FeatureSet getRemainingFeatures();
 
@@ -55,6 +57,11 @@ protected:
     aubio_pitchdetection_t *m_pitchdet;
     aubio_pitchdetection_type m_pitchtype;
     aubio_pitchdetection_mode m_pitchmode;
+    float m_minfreq;
+    float m_maxfreq;
+    float m_silence;
+    bool m_wrapRange;
+
     size_t m_stepSize;
     size_t m_blockSize;
     size_t m_channelCount;