import numpy
+from _aubio import *
class fvec(numpy.ndarray):
from numpy.testing import TestCase, run_module_suite
-from numpy.testing import assert_equal
-from _aubio import *
-from numpy import array
class aubiomodule_test_case(TestCase):
- def setUp(self):
+ def test_import(self):
""" try importing aubio """
-
+ import aubio
if __name__ == '__main__':
from unittest import main
from numpy.testing import TestCase, run_module_suite
from numpy.testing import assert_equal, assert_almost_equal
-from _aubio import cvec
+from aubio import cvec
from numpy import array, shape, pi
class aubio_cvec_test_case(TestCase):
from numpy.testing import TestCase, run_module_suite
from numpy.testing import assert_equal, assert_almost_equal
# WARNING: numpy also has an fft object
-from _aubio import fft, cvec
-from aubio import fvec
+from aubio import fvec, fft, cvec
from numpy import array, shape
from math import pi
from numpy.testing import TestCase, run_module_suite
from numpy.testing import assert_equal, assert_almost_equal
-from _aubio import *
-from aubio import fvec
+from aubio import fvec, digital_filter
from numpy import array
def array_from_text_file(filename, dtype = 'float'):
from numpy.testing import TestCase, run_module_suite
from numpy.testing import assert_equal, assert_almost_equal
from numpy import array, shape
-from _aubio import *
-#from aubio import cvec
+from aubio import cvec, filterbank
class aubio_filter_test_case(TestCase):
from numpy.testing import TestCase, run_module_suite
from numpy.testing import assert_equal, assert_almost_equal
-from _aubio import *
-from aubio import fvec
+from aubio import fvec, zero_crossing_rate, alpha_norm, min_removal
from numpy import array, shape
class aubio_fvec_test_case(TestCase):
from numpy.testing import TestCase, run_module_suite
from numpy.testing import assert_equal, assert_almost_equal
# WARNING: numpy also has an fft object
-from _aubio import specdesc, cvec
+from aubio import specdesc, cvec
from numpy import array, shape, arange, zeros, log
from math import pi
from numpy.testing import TestCase, run_module_suite
from numpy.testing import assert_equal, assert_almost_equal
-from aubio import fvec
-from _aubio import *
+from aubio import fvec, cvec, pvoc
from numpy import array, shape
class aubio_pvoc_test_case(TestCase):