- Timestamp:
- Oct 19, 2009, 1:52:04 PM (15 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:
- b01bd4a
- Parents:
- b14107f
- Location:
- tests/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/src/temporal/test-aweighting.c
rb14107f r59c046d 11 11 12 12 for ( samplerate = rates[i]; i < nrates ; i++ ) { 13 f = new_aubio_filter_a_weighting ( samplerate, channels);13 f = new_aubio_filter_a_weighting (channels, samplerate); 14 14 del_aubio_filter (f); 15 15 16 f = new_aubio_filter ( samplerate,7, channels*2);17 aubio_filter_set_a_weighting (f );16 f = new_aubio_filter (7, channels*2); 17 aubio_filter_set_a_weighting (f, samplerate); 18 18 del_aubio_filter (f); 19 19 } 20 20 21 21 // samplerate unknown 22 f = new_aubio_filter_a_weighting ( 12089, channels);22 f = new_aubio_filter_a_weighting (channels, 4200); 23 23 del_aubio_filter (f); 24 24 25 25 // order to small 26 f = new_aubio_filter ( samplerate,2, channels*2);27 aubio_filter_set_a_weighting (f );26 f = new_aubio_filter (2, channels*2); 27 aubio_filter_set_a_weighting (f, samplerate); 28 28 del_aubio_filter (f); 29 29 30 30 // order to big 31 f = new_aubio_filter ( samplerate,12, channels*2);32 aubio_filter_set_a_weighting (f );31 f = new_aubio_filter (12, channels*2); 32 aubio_filter_set_a_weighting (f, samplerate); 33 33 del_aubio_filter (f); 34 34 -
tests/src/temporal/test-cweighting.c
rb14107f r59c046d 11 11 12 12 for ( samplerate = rates[i]; i < nrates ; i++ ) { 13 f = new_aubio_filter_c_weighting ( samplerate, channels);13 f = new_aubio_filter_c_weighting (channels, samplerate); 14 14 del_aubio_filter (f); 15 15 16 f = new_aubio_filter ( samplerate,5, channels*2);17 aubio_filter_set_c_weighting (f );16 f = new_aubio_filter (5, channels*2); 17 aubio_filter_set_c_weighting (f, samplerate); 18 18 del_aubio_filter (f); 19 19 } 20 20 21 21 // samplerate unknown 22 f = new_aubio_filter_c_weighting ( 12089, channels);22 f = new_aubio_filter_c_weighting (channels, 4200); 23 23 del_aubio_filter (f); 24 24 25 25 // order to small 26 f = new_aubio_filter ( samplerate,2, channels*2);27 aubio_filter_set_c_weighting (f );26 f = new_aubio_filter (2, channels*2); 27 aubio_filter_set_c_weighting (f, samplerate); 28 28 del_aubio_filter (f); 29 29 30 30 // order to big 31 f = new_aubio_filter ( samplerate,12, channels*2);32 aubio_filter_set_c_weighting (f );31 f = new_aubio_filter (12, channels*2); 32 aubio_filter_set_c_weighting (f, samplerate); 33 33 del_aubio_filter (f); 34 34 -
tests/src/test-filter.c
rb14107f r59c046d 11 11 12 12 13 aubio_filter_t *o = new_aubio_filter_c_weighting ( 44100, channels);13 aubio_filter_t *o = new_aubio_filter_c_weighting (channels, 44100); 14 14 in->data[0][12] = 0.5; 15 15 fvec_print (in); … … 18 18 del_aubio_filter (o); 19 19 20 o = new_aubio_filter_c_weighting ( 44100, channels);20 o = new_aubio_filter_c_weighting (channels, 44100); 21 21 in->data[0][12] = 0.5; 22 22 fvec_print (in); … … 25 25 del_aubio_filter (o); 26 26 27 o = new_aubio_filter_c_weighting ( 44100, channels);27 o = new_aubio_filter_c_weighting (channels, 44100); 28 28 in->data[0][12] = 0.5; 29 29 fvec_print (in);
Note: See TracChangeset
for help on using the changeset viewer.