X-Git-Url: https://git.aubio.org/?p=vamp-aubio-plugins.git;a=blobdiff_plain;f=plugins%2FNotes.h;h=5bf32aa59910eca9c354dcdced4ef29c80130aee;hp=c8141b94bee277c391d78c86710075b3a5a22438;hb=76eec45012ee0e4d999c3cc31debee1d533c0731;hpb=340474448bee6047ee27d4d7b80bd9f1477bc810 diff --git a/plugins/Notes.h b/plugins/Notes.h index c8141b9..5bf32aa 100644 --- a/plugins/Notes.h +++ b/plugins/Notes.h @@ -18,14 +18,16 @@ #define _NOTES_PLUGIN_H_ #include -#include +#include #include +#include "Types.h" + class Notes : public Vamp::Plugin { public: - Notes(float inputSampleRate, unsigned int apiVersion); + Notes(float inputSampleRate); virtual ~Notes(); bool initialise(size_t channels, size_t stepSize, size_t blockSize); @@ -55,23 +57,19 @@ public: FeatureSet getRemainingFeatures(); protected: - int m_apiVersion; fvec_t *m_ibuf; - cvec_t *m_fftgrain; fvec_t *m_onset; - aubio_pvoc_t *m_pv; - aubio_pickpeak_t *m_peakpick; - aubio_onsetdetection_t *m_onsetdet; - aubio_onsetdetection_type m_onsettype; - aubio_pitchdetection_t *m_pitchdet; - aubio_pitchdetection_type m_pitchtype; - aubio_pitchdetection_mode m_pitchmode; + fvec_t *m_pitch; + aubio_onset_t *m_onsetdet; + OnsetType m_onsettype; + aubio_pitch_t *m_pitchdet; + PitchType m_pitchtype; float m_threshold; float m_silence; + float m_minioi; size_t m_median; size_t m_stepSize; size_t m_blockSize; - size_t m_channelCount; int m_minpitch; int m_maxpitch; bool m_wrapRange;