Changeset 22d7902
- Timestamp:
- Dec 19, 2018, 7:40:23 PM (6 years ago)
- Branches:
- feature/cnn, feature/crepe, feature/timestretch, fix/ffmpeg5, master
- Children:
- 1301f66
- Parents:
- cb0d7d0 (diff), 0770148 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/tests/test_pitchshift.py
rcb0d7d0 r22d7902 2 2 3 3 from numpy.testing import TestCase 4 from nose2.tools import params4 from _tools import parametrize 5 5 import numpy as np 6 6 import aubio … … 67 67 aubio.pitchshift("default", -123) 68 68 69 class aubio_pitchshift_testruns(TestCase):69 class Test_aubio_pitchshift_testruns(object): 70 70 71 @params( 71 run_args = ['mode', 'pitchscale', 'hop_size', 'samplerate'] 72 run_values = [ 72 73 ("default", 1.2, 128, 44100), 73 74 ("crispness:0", 0.43, 64, 8000), … … 75 76 ("crispness:3", 1.53, 512, 8000), 76 77 ("crispness:6", 2.3, 4096, 192000), 77 ) 78 ] 79 80 @parametrize(run_args, run_values) 78 81 def test_run_with_params(self, mode, pitchscale, hop_size, samplerate): 79 82 try: … … 98 101 99 102 if __name__ == '__main__': 100 from nose2 import main101 main()103 from _tools import run_module_suite 104 run_module_suite()
Note: See TracChangeset
for help on using the changeset viewer.