Changeset e7fb07e
- Timestamp:
- Dec 1, 2007, 3:55:36 PM (17 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
- Children:
- 554a9cb
- Parents:
- 2704647 (diff), 55e9018 (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. - Files:
-
- 9 added
- 6 edited
- 7 moved
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/src/spectral/filterbank.py
r2704647 re7fb07e 92 92 def testmfcc_channels(self): 93 93 """ check the values of each filters in the mfcc filterbank """ 94 import os.path 94 95 self.filterbank = new_aubio_filterbank_mfcc(n_filters, win_size, samplerate, 95 96 0., samplerate) 96 97 filterbank_mfcc = [ [float(f) for f in line.strip().split()] 97 for line in open( 'filterbank_mfcc.txt').readlines()]98 for line in open(os.path.join('src','spectral','filterbank_mfcc.txt')).readlines()] 98 99 for channel in range(n_filters): 99 100 vec = aubio_filterbank_getchannel(self.filterbank,channel) -
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.