Changeset d770fd2
- Timestamp:
- Oct 15, 2013, 6:49:00 PM (11 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:
- c0fe2a9
- Parents:
- 08bd8e0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/src/temporal/test-filter.c
r08bd8e0 rd770fd2 3 3 int main () 4 4 { 5 uint_t win_s = 32; // window size 5 uint_t win_s = 16; // window size 6 uint_t impulse_at = win_s / 2; 6 7 fvec_t *in = new_fvec (win_s); // input buffer 7 8 fvec_t *out = new_fvec (win_s); // input buffer 8 9 9 10 aubio_filter_t *o = new_aubio_filter_c_weighting (44100); 10 in->data[ 12] = 0.5;11 in->data[impulse_at] = 0.5; 11 12 fvec_print (in); 12 13 aubio_filter_do (o, in); … … 15 16 16 17 o = new_aubio_filter_a_weighting (32000); 17 in->data[ 12] = 0.5;18 in->data[impulse_at] = 0.5; 18 19 fvec_print (in); 19 20 aubio_filter_do_outplace (o, in, out); … … 21 22 22 23 aubio_filter_set_a_weighting (o, 32000); 23 in->data[ 12] = 0.5;24 in->data[impulse_at] = 0.5; 24 25 fvec_print (in); 25 26 aubio_filter_do_filtfilt (o, in, out);
Note: See TracChangeset
for help on using the changeset viewer.