- Timestamp:
- Nov 17, 2018, 10:19:27 PM (6 years ago)
- Branches:
- feature/constantq
- Children:
- d1d4ad4
- Parents:
- 088760e (diff), a114fe0 (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. - Location:
- tests/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified tests/src/spectral/test-filterbank.c ¶
r088760e rc03d191 11 11 // create filterbank object 12 12 aubio_filterbank_t *o = new_aubio_filterbank (n_filters, win_s); 13 14 smpl_t power = aubio_filterbank_get_power(o); 15 smpl_t norm = aubio_filterbank_get_norm(o); 16 if (aubio_filterbank_set_power(o, power)) { 17 return 1; 18 } 19 if (aubio_filterbank_set_norm(o, norm)) { 20 return 1; 21 } 13 22 14 23 // apply filterbank ten times -
TabularUnified tests/src/temporal/test-filter.c ¶
r088760e rc03d191 9 9 10 10 aubio_filter_t *o = new_aubio_filter_c_weighting (44100); 11 12 if (new_aubio_filter(0)) 13 return 1; 14 15 if (aubio_filter_get_samplerate(o) != 44100) 16 return 1; 17 18 if (aubio_filter_set_c_weighting (o, -1) == 0) 19 return 1; 20 21 if (aubio_filter_set_c_weighting (0, 32000) == 0) 22 return 1; 23 11 24 in->data[impulse_at] = 0.5; 12 25 fvec_print (in); … … 16 29 17 30 o = new_aubio_filter_a_weighting (32000); 31 32 if (aubio_filter_set_a_weighting (o, -1) == 0) 33 return 1; 34 if (aubio_filter_set_a_weighting (0, 32000) == 0) 35 return 1; 36 18 37 in->data[impulse_at] = 0.5; 19 38 fvec_print (in);
Note: See TracChangeset
for help on using the changeset viewer.