shithub: aubio

Download patch

ref: 31a3fd4363da1a4b13ef6550ba07fbba2ec1f3b2
parent: fb1c5e2054eb859d412e1e28cb9c045c8219854c
parent: b5cec0c844ea8d85d38505ba8f611424e6897a8a
author: Paul Brossier <piem@piem.org>
date: Mon Oct 29 16:30:03 EDT 2018

Merge branch 'fix/pyfilterbank'

--- a/python/ext/py-filterbank.c
+++ b/python/ext/py-filterbank.c
@@ -94,7 +94,7 @@
 
   if (self->vec.length != self->win_s / 2 + 1) {
     PyErr_Format(PyExc_ValueError,
-                 "input cvec has length %d, but fft expects length %d",
+                 "input cvec has length %d, but filterbank expects length %d",
                  self->vec.length, self->win_s / 2 + 1);
     return NULL;
   }
@@ -139,7 +139,7 @@
       &(self->freqs), samplerate);
   if (err > 0) {
     PyErr_SetString (PyExc_ValueError,
-        "error when setting filter to A-weighting");
+        "error when running set_triangle_bands");
     return NULL;
   }
   Py_RETURN_NONE;
@@ -158,7 +158,7 @@
   err = aubio_filterbank_set_mel_coeffs_slaney (self->o, samplerate);
   if (err > 0) {
     PyErr_SetString (PyExc_ValueError,
-        "error when setting filter to A-weighting");
+        "error when running set_mel_coeffs_slaney");
     return NULL;
   }
   Py_RETURN_NONE;