source: python/tests/test_onset.py @ 926f0f6

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since 926f0f6 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
RevLine 
[75e715f]1#! /usr/bin/env python
[312826c]2
3from numpy.testing import TestCase, run_module_suite
4from numpy.testing import assert_equal, assert_almost_equal
5# WARNING: numpy also has an fft object
6from aubio import onset, cvec
7from numpy import array, shape, arange, zeros, log
8from math import pi
9
10class 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
18if __name__ == '__main__':
19    from unittest import main
20    main()
Note: See TracBrowser for help on using the repository browser.