Changeset dc467b5d for tests/src/temporal/test-filter.c
- Timestamp:
- Oct 27, 2013, 12:44:29 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:
- 8247249
- Parents:
- dd15573 (diff), 7fc5ba2 (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/src/temporal/test-filter.c
rdd15573 rdc467b5d 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.