feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change
on this file since ff74460 was
26adcfb,
checked in by Paul Brossier <piem@piem.org>, 12 years ago
|
moved tests to subdirectory
|
-
Property mode set to
100755
|
File size:
543 bytes
|
Line | |
---|
1 | #! /usr/bin/env python |
---|
2 | |
---|
3 | from numpy.testing import TestCase, run_module_suite |
---|
4 | from numpy.testing import assert_equal, assert_almost_equal |
---|
5 | # WARNING: numpy also has an fft object |
---|
6 | from aubio import onset, cvec |
---|
7 | from numpy import array, shape, arange, zeros, log |
---|
8 | from math import pi |
---|
9 | |
---|
10 | class aubio_onset(TestCase): |
---|
11 | |
---|
12 | def test_members(self): |
---|
13 | o = onset() |
---|
14 | assert_equal ([o.buf_size, o.hop_size, o.method, o.samplerate], |
---|
15 | [1024,512,'default',44100]) |
---|
16 | |
---|
17 | |
---|
18 | if __name__ == '__main__': |
---|
19 | from unittest import main |
---|
20 | main() |
---|
Note: See
TracBrowser
for help on using the repository browser.