From: Paul Brossier Date: Fri, 1 Jul 2016 14:02:04 +0000 (+0200) Subject: src/notes/notes.h: clean up prototypes for python generator X-Git-Tag: 0.4.4~297 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=dd18484ebbd743e05cd1ddf0f3d71c722fff0109;p=aubio.git src/notes/notes.h: clean up prototypes for python generator --- diff --git a/src/notes/notes.c b/src/notes/notes.c index a305d8ac..22a7cd87 100644 --- a/src/notes/notes.c +++ b/src/notes/notes.c @@ -52,7 +52,7 @@ struct _aubio_notes_t { uint_t isready; }; -aubio_notes_t * new_aubio_notes (const char_t * notes_method, +aubio_notes_t * new_aubio_notes (const char_t * method, uint_t buf_size, uint_t hop_size, uint_t samplerate) { aubio_notes_t *o = AUBIO_NEW(aubio_notes_t); @@ -80,9 +80,9 @@ aubio_notes_t * new_aubio_notes (const char_t * notes_method, if (o->pitch_tolerance != 0.) aubio_pitch_set_tolerance (o->pitch, o->pitch_tolerance); o->pitch_output = new_fvec (1); - if (strcmp(notes_method, "default") != 0) { + if (strcmp(method, "default") != 0) { AUBIO_ERR("unknown notes detection method %s, using default.\n", - notes_method); + method); goto fail; } o->note_buffer = new_fvec(o->median); diff --git a/src/notes/notes.h b/src/notes/notes.h index acd63e45..fc12bad2 100644 --- a/src/notes/notes.h +++ b/src/notes/notes.h @@ -38,7 +38,7 @@ typedef struct _aubio_notes_t aubio_notes_t; \return newly created ::aubio_notes_t */ -aubio_notes_t * new_aubio_notes (const char_t * notes_method, +aubio_notes_t * new_aubio_notes (const char_t * method, uint_t buf_size, uint_t hop_size, uint_t samplerate); /** delete notes detection object @@ -55,7 +55,7 @@ void del_aubio_notes(aubio_notes_t * o); \param out output notes of size [3] ? FIXME */ -void aubio_notes_do (aubio_notes_t *o, const fvec_t *input, fvec_t *output); +void aubio_notes_do (aubio_notes_t *o, const fvec_t * input, fvec_t * output); #ifdef __cplusplus }