Changeset b2de03f
- Timestamp:
- May 12, 2016, 8:05:34 PM (9 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:
- 163d159
- Parents:
- 1670f39
- Location:
- tests/src/temporal
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/src/temporal/test-a_weighting.c
r1670f39 rb2de03f 21 21 // samplerate unknown 22 22 f = new_aubio_filter_a_weighting (4200); 23 del_aubio_filter (f); 23 if (!f) { 24 //PRINT_MSG ("failed creating A-weighting filter with samplerate=4200Hz\n"); 25 } 24 26 25 27 // order to small 26 28 f = new_aubio_filter (2); 27 aubio_filter_set_a_weighting (f, samplerate); 29 if (aubio_filter_set_a_weighting (f, samplerate) != 0) { 30 //PRINT_MSG ("failed setting filter to A-weighting\n"); 31 } 28 32 del_aubio_filter (f); 29 33 30 34 // order to big 31 35 f = new_aubio_filter (12); 32 aubio_filter_set_a_weighting (f, samplerate); 36 if (aubio_filter_set_a_weighting (f, samplerate) != 0) { 37 //PRINT_MSG ("failed setting filter to A-weighting\n"); 38 } 33 39 del_aubio_filter (f); 34 40 -
tests/src/temporal/test-c_weighting.c
r1670f39 rb2de03f 20 20 // samplerate unknown 21 21 f = new_aubio_filter_c_weighting (4200); 22 del_aubio_filter (f); 22 if (!f) { 23 //PRINT_WRN ("failed creating C-weighting filter with samplerate=4200Hz"); 24 } 23 25 24 26 // order to small 25 27 f = new_aubio_filter (2); 26 aubio_filter_set_c_weighting (f, samplerate); 28 if (aubio_filter_set_c_weighting (f, samplerate) != 0) { 29 //PRINT_WRN ("failed setting filter to C-weighting"); 30 } 27 31 del_aubio_filter (f); 28 32 29 33 // order to big 30 34 f = new_aubio_filter (12); 31 aubio_filter_set_c_weighting (f, samplerate); 35 if (aubio_filter_set_c_weighting (f, samplerate) != 0) { 36 //PRINT_WRN ("failed setting filter to C-weighting"); 37 } 32 38 del_aubio_filter (f); 33 39
Note: See TracChangeset
for help on using the changeset viewer.