From db626228719ca87ea1ea86cd2d27c7f889d3e38d Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Thu, 8 Oct 2009 01:23:31 +0200 Subject: [PATCH] tests/python: update imports --- tests/python/src/pitch/pitchdetection.py | 5 ++--- tests/python/src/spectral/fft.py | 6 ++---- tests/python/src/spectral/phasevoc.py | 5 ++--- tests/python/src/temporal/zero_crossing_rate.py | 5 ++--- tests/python/src/utils/hist.py | 6 ++---- tests/python/src/utils/scale.py | 4 +--- 6 files changed, 11 insertions(+), 20 deletions(-) diff --git a/tests/python/src/pitch/pitchdetection.py b/tests/python/src/pitch/pitchdetection.py index c2114fbd..1c0de703 100644 --- a/tests/python/src/pitch/pitchdetection.py +++ b/tests/python/src/pitch/pitchdetection.py @@ -1,6 +1,5 @@ -import unittest - -from aubio.aubiowrapper import * +from template import aubio_unit_template +from localaubio import * buf_size = 4096 hop_size = 512 diff --git a/tests/python/src/spectral/fft.py b/tests/python/src/spectral/fft.py index f94f9cfc..8b596bcc 100644 --- a/tests/python/src/spectral/fft.py +++ b/tests/python/src/spectral/fft.py @@ -1,8 +1,6 @@ -import math - from template import aubio_unit_template - -from aubio.aubiowrapper import * +from localaubio import * +import math buf_size = 1024 channels = 4 diff --git a/tests/python/src/spectral/phasevoc.py b/tests/python/src/spectral/phasevoc.py index 72db90bc..6e487be9 100644 --- a/tests/python/src/spectral/phasevoc.py +++ b/tests/python/src/spectral/phasevoc.py @@ -1,6 +1,5 @@ -import unittest - -from aubio.aubiowrapper import * +from template import aubio_unit_template +from localaubio import * buf_size = 1024 hop_size = 256 diff --git a/tests/python/src/temporal/zero_crossing_rate.py b/tests/python/src/temporal/zero_crossing_rate.py index 16932410..98ad13c0 100644 --- a/tests/python/src/temporal/zero_crossing_rate.py +++ b/tests/python/src/temporal/zero_crossing_rate.py @@ -1,6 +1,5 @@ -import unittest - -from aubio.aubiowrapper import * +from template import aubio_unit_template +from localaubio import * buf_size = 2048 channels = 1 diff --git a/tests/python/src/utils/hist.py b/tests/python/src/utils/hist.py index 340f5143..d7dc774e 100644 --- a/tests/python/src/utils/hist.py +++ b/tests/python/src/utils/hist.py @@ -1,8 +1,6 @@ -import unittest -import random - from template import aubio_unit_template -from aubio.aubiowrapper import * +from localaubio import * +import random buf_size = 2048 channels = 1 diff --git a/tests/python/src/utils/scale.py b/tests/python/src/utils/scale.py index f48e6f34..510873e3 100644 --- a/tests/python/src/utils/scale.py +++ b/tests/python/src/utils/scale.py @@ -1,7 +1,5 @@ -import unittest - from template import aubio_unit_template -from aubio.aubiowrapper import * +from localaubio import * buf_size = 2000 channels = 2 -- 2.26.2