source: interfaces/python/test_onset.py @ 312826c

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since 312826c was 312826c, checked in by Paul Brossier <piem@piem.org>, 12 years ago

test_onset.py, test_onsetdetection.py: split and update

  • Property mode set to 100755
File size: 539 bytes
Line 
1#! /usr/bin/python
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.