src/notes/notes.h: clean up prototypes for python generator
authorPaul Brossier <piem@piem.org>
Fri, 1 Jul 2016 14:02:04 +0000 (16:02 +0200)
committerPaul Brossier <piem@piem.org>
Fri, 1 Jul 2016 14:02:04 +0000 (16:02 +0200)
src/notes/notes.c
src/notes/notes.h

index a305d8a..22a7cd8 100644 (file)
@@ -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);
index acd63e4..fc12bad 100644 (file)
@@ -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
 }