Changes in / [2704647:e7fb07e]
- Files:
-
- 16 added
- 7 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
README
r2704647 re7fb07e 119 119 CONTACT 120 120 121 The home page of this project can be found at http://aubio. piem.org/. Feel free121 The home page of this project can be found at http://aubio.org/. Feel free 122 122 to drop me a comment (piem@altern.org) or on the mailing list, aubio@piem.org. 123 123 Suggestions and feedback are most welcome. -
configure.ac
r2704647 re7fb07e 91 91 AM_CONDITIONAL(MINGW, false) 92 92 AM_CONDITIONAL(DARWIN, false) 93 case "${ build_os}" in93 case "${host_os}" in 94 94 *mingw* | *cygwin*) 95 95 mingw32_support="yes" -
swig/aubio.i
r2704647 re7fb07e 263 263 aubio_pickpeak_t * new_aubio_peakpicker(smpl_t threshold); 264 264 uint_t aubio_peakpick_pimrt(fvec_t * DF, aubio_pickpeak_t * p); 265 uint_t aubio_peakpick_pimrt_wt( fvec_t* DF, aubio_pickpeak_t* p, smpl_t* peakval ); 265 266 smpl_t aubio_peakpick_pimrt_getval(aubio_pickpeak_t* p); 266 uint_t aubio_peakpick_pimrt_wt( fvec_t* DF, aubio_pickpeak_t* p, smpl_t* peakval );267 267 void del_aubio_peakpicker(aubio_pickpeak_t * p); 268 void aubio_peakpicker_set_threshold(aubio_pickpeak_t * p, smpl_t threshold); 269 smpl_t aubio_peakpicker_get_threshold(aubio_pickpeak_t * p); 268 270 269 271 /* transient/steady state separation */ -
tests/python/examples/aubioonset.py
r2704647 re7fb07e 1 1 from template import * 2 2 3 class aubioonset_ test_case(program_test_case):3 class aubioonset_unit(program_test_case): 4 4 5 5 import os.path … … 24 24 self.getOutput() 25 25 # only one onset in woodblock.aiff 26 assert len(str(self.output)) != 0, "no output produced with command:\n"\27 + self.command28 assert len(self.output.split('\n')) == 126 self.assertNotEqual(0, len(str(self.output)), \ 27 "no output produced with command:\n" + self.command) 28 self.assertEqual(1, len(self.output.split('\n')) ) 29 29 # onset should be at 0.00000 30 assert float(self.output.strip()) == 0.30 self.assertEqual(0, float(self.output.strip())) 31 31 32 for name in ["energy", "specdiff", "hfc", "complex", "phase", "kl", "mkl"]: 33 exec("class aubioonset_test_case_"+name+"(aubioonset_test_case):\n\ 32 list_of_onset_modes = ["energy", "specdiff", "hfc", "complex", "phase", \ 33 "kl", "mkl", "specflux"] 34 35 for name in list_of_onset_modes: 36 exec("class aubioonset_"+name+"_unit(aubioonset_unit):\n\ 34 37 options = \" -O "+name+" \"") 35 38 -
tests/python/run_all_tests
r2704647 re7fb07e 15 15 return [i.split('.')[0].replace('/','.') for i in glob(path)] 16 16 17 modules_to_test = list_of_test_files('*.py') 17 modules_to_test = [] 18 modules_to_test += list_of_test_files('src/*.py') 19 modules_to_test += list_of_test_files('src/*/*.py') 18 20 modules_to_test += list_of_test_files('examples/aubio*.py') 21 modules_to_test += list_of_test_files('*.py') 19 22 20 23 if __name__ == '__main__': -
tests/python/template.py
r2704647 re7fb07e 5 5 6 6 def assertCloseEnough(self, first, second, places=5, msg=None): 7 8 9 10 11 12 13 14 15 16 17 18 7 """Fail if the two objects are unequal as determined by their 8 *relative* difference rounded to the given number of decimal places 9 (default 7) and comparing to zero. 10 """ 11 if round(first, places) == 0: 12 if round(second-first, places) != 0: 13 raise self.failureException, \ 14 (msg or '%r != %r within %r places' % (first, second, places)) 15 else: 16 if round((second-first)/first, places) != 0: 17 raise self.failureException, \ 18 (msg or '%r != %r within %r places' % (first, second, places))
Note: See TracChangeset
for help on using the changeset viewer.