shithub: aubio

Download patch

ref: 8e8bc5040bb3f200defe193075d9346ccd8c6970
parent: c0783367e9142a6f2525430d0ecb143e960ae0b2
author: Paul Brossier <piem@altern.org>
date: Thu Jun 2 20:59:14 EDT 2005

updated swig wrapper to new pitchdetection

--- a/swig/aubio.i
+++ b/swig/aubio.i
@@ -157,6 +157,33 @@
 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);