From: Paul Brossier Date: Fri, 3 Jun 2005 00:59:14 +0000 (+0000) Subject: updated swig wrapper to new pitchdetection X-Git-Tag: bzr2git~887 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8e8bc5040bb3f200defe193075d9346ccd8c6970;p=aubio.git updated swig wrapper to new pitchdetection --- diff --git a/swig/aubio.i b/swig/aubio.i index 71109ba3..730e32cd 100644 --- a/swig/aubio.i +++ b/swig/aubio.i @@ -157,6 +157,33 @@ void aubio_pvoc_do(aubio_pvoc_t *pv, fvec_t *in, cvec_t * fftgrain); void aubio_pvoc_rdo(aubio_pvoc_t *pv, cvec_t * fftgrain, fvec_t *out); /* pitch detection */ +typedef enum { + aubio_yin, + aubio_mcomb, + aubio_schmitt, + aubio_fcomb +} aubio_pitchdetection_type; + +typedef enum { + aubio_freq, + aubio_midi, + aubio_cent, + aubio_bin +} aubio_pitchdetection_mode; + +smpl_t aubio_pitchdetection(aubio_pitchdetection_t * p, fvec_t * ibuf); +smpl_t aubio_pitchdetection_mcomb(aubio_pitchdetection_t *p, fvec_t * ibuf); +smpl_t aubio_pitchdetection_yin(aubio_pitchdetection_t *p, fvec_t *ibuf); + +void del_aubio_pitchdetection(aubio_pitchdetection_t * p); + +aubio_pitchdetection_t * new_aubio_pitchdetection(uint_t bufsize, + uint_t hopsize, + uint_t channels, + uint_t samplerate, + aubio_pitchdetection_type type, + aubio_pitchdetection_mode mode); + /* pitch mcomb */ aubio_pitchmcomb_t * new_aubio_pitchmcomb(uint_t size, uint_t channels);