shithub: aubio

Download patch

ref: dd18484ebbd743e05cd1ddf0f3d71c722fff0109
parent: ba303e87240cc5732d8cfa173deca978c34617c2
author: Paul Brossier <piem@piem.org>
date: Fri Jul 1 12:02:04 EDT 2016

src/notes/notes.h: clean up prototypes for python generator

--- a/src/notes/notes.c
+++ b/src/notes/notes.c
@@ -52,7 +52,7 @@
   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 @@
   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);
--- a/src/notes/notes.h
+++ b/src/notes/notes.h
@@ -38,7 +38,7 @@
   \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 @@
   \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
 }