#include <vamp-sdk/Plugin.h>
#include <aubio/aubio.h>
+#include "Types.h"
+
class Onset : public Vamp::Plugin
{
public:
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_peakpicker_t *m_peakpick;
+ aubio_specdesc_t *m_onsetdet;
+ OnsetType m_onsettype;
float m_threshold;
float m_silence;
size_t m_stepSize;