On 02/07/2014 12:07 PM, Richard Shann wrote:
> On Fri, 2014-02-07 at 15:04 +0000, Richard Shann wrote:
>>
>> could you run diff again against the current git master
>
> sorry - I was forgetting that you can't simply do that (because I
> have packed both versions of the code into the file pitchrecog.c),
> I'll piece it together.
>
> Richard

i did the merge, adding AUBIO_UNSTABLE and using fvec_copy. updated
patch attached.

Best, Paul
diff --git a/src/pitchrecog.c b/src/pitchrecog.c
index 6837281..bb1cf60 100644
--- a/src/pitchrecog.c
+++ b/src/pitchrecog.c
@@ -440,6 +440,7 @@ store_pitch (double pitch)
 #include <getopt.h>
 #include <unistd.h>
 #include <math.h>
+#define AUBIO_UNSTABLE 1
 #include <aubio/aubio.h>
 #include <audio.h>
 #include <glib.h>
@@ -563,11 +564,7 @@ note_append (fvec_t * note_buffer, smpl_t anote)
 static uint_t
 get_note (fvec_t * note_buffer, fvec_t * note_buffer2)
 {
-  uint_t i = 0;
-  for (i = 0; i < note_buffer->length; i++)
-    {
-      note_buffer2->data[i] = note_buffer->data[i];
-    }
+  fvec_copy(note_buffer, note_buffer2);
   return fvec_median (note_buffer2);
 }
 

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Denemo-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/denemo-devel

Reply via email to