Changeset aea235c for tests/src/test-filter.c
- Timestamp:
- Dec 4, 2009, 1:47:17 AM (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:
- f7b05d4
- Parents:
- 4621cd6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/src/test-filter.c
r4621cd6 raea235c 6 6 /* allocate some memory */ 7 7 uint_t win_s = 32; /* window size */ 8 uint_t channels = 1; /* number of channel */ 9 fvec_t *in = new_fvec (win_s, channels); /* input buffer */ 10 fvec_t *out = new_fvec (win_s, channels); /* input buffer */ 8 fvec_t *in = new_fvec (win_s); /* input buffer */ 9 fvec_t *out = new_fvec (win_s); /* input buffer */ 11 10 12 11 13 aubio_filter_t *o = new_aubio_filter_c_weighting ( channels,44100);14 in->data[ 0][12] = 0.5;12 aubio_filter_t *o = new_aubio_filter_c_weighting (44100); 13 in->data[12] = 0.5; 15 14 fvec_print (in); 16 15 aubio_filter_do (o, in); … … 18 17 del_aubio_filter (o); 19 18 20 o = new_aubio_filter_c_weighting ( channels,44100);21 in->data[ 0][12] = 0.5;19 o = new_aubio_filter_c_weighting (44100); 20 in->data[12] = 0.5; 22 21 fvec_print (in); 23 22 aubio_filter_do_outplace (o, in, out); … … 25 24 del_aubio_filter (o); 26 25 27 o = new_aubio_filter_c_weighting ( channels,44100);28 in->data[ 0][12] = 0.5;26 o = new_aubio_filter_c_weighting (44100); 27 in->data[12] = 0.5; 29 28 fvec_print (in); 30 29 aubio_filter_do_filtfilt (o, in, out);
Note: See TracChangeset
for help on using the changeset viewer.