- Timestamp:
- Mar 3, 2013, 7:40:05 PM (12 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:
- 2fcb973
- Parents:
- 9547247
- Location:
- tests/src/temporal
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/src/temporal/test-a_weighting.c
r9547247 r3684ab4 1 1 #include <aubio.h> 2 2 3 int main(){ 3 int main () 4 { 4 5 5 6 aubio_filter_t * f; -
tests/src/temporal/test-biquad.c
r9547247 r3684ab4 1 1 #include <aubio.h> 2 2 3 int main () { 3 int main () 4 { 4 5 uint_t win_s = 64; // window size 5 6 -
tests/src/temporal/test-c_weighting.c
r9547247 r3684ab4 1 1 #include <aubio.h> 2 2 3 int main (){4 3 int main () 4 { 5 5 aubio_filter_t * f; 6 6 -
tests/src/temporal/test-filter.c
r9547247 r3684ab4 1 1 #include <aubio.h> 2 2 3 int 4 main (void) 3 int main () 5 4 { 6 /* allocate some memory */ 7 uint_t win_s = 32; /* window size */ 8 fvec_t *in = new_fvec (win_s); /* input buffer */ 9 fvec_t *out = new_fvec (win_s); /* input buffer */ 10 5 uint_t win_s = 32; // window size 6 fvec_t *in = new_fvec (win_s); // input buffer 7 fvec_t *out = new_fvec (win_s); // input buffer 11 8 12 9 aubio_filter_t *o = new_aubio_filter_c_weighting (44100); … … 17 14 del_aubio_filter (o); 18 15 19 o = new_aubio_filter_ c_weighting (44100);16 o = new_aubio_filter_a_weighting (32000); 20 17 in->data[12] = 0.5; 21 18 fvec_print (in); 22 19 aubio_filter_do_outplace (o, in, out); 23 20 fvec_print (out); 24 del_aubio_filter (o);25 21 26 o = new_aubio_filter_c_weighting (44100);22 aubio_filter_set_a_weighting (o, 32000); 27 23 in->data[12] = 0.5; 28 24 fvec_print (in); 29 25 aubio_filter_do_filtfilt (o, in, out); 30 26 fvec_print (out); 31 del_aubio_filter (o);32 27 33 28 del_fvec (in); 34 29 del_fvec (out); 30 del_aubio_filter (o); 35 31 aubio_cleanup (); 36 32 -
tests/src/temporal/test-resampler.c
r9547247 r3684ab4 1 #include <stdio.h>2 1 #include <aubio.h> 3 2 4 int 5 main () 3 int main () 6 4 { 7 /* allocate some memory */ 8 uint_t win_s = 1024; /* window size */ 5 uint_t win_s = 1024; // window size 9 6 smpl_t ratio = 0.5; 10 fvec_t *in = new_fvec (win_s); /* input buffer */11 fvec_t *out = new_fvec ((uint_t) (win_s * ratio)); /* input buffer */7 fvec_t *in = new_fvec (win_s); // input buffer 8 fvec_t *out = new_fvec ((uint_t) (win_s * ratio)); // output buffer 12 9 aubio_resampler_t *o = new_aubio_resampler (0.5, 0); 13 10 uint_t i = 0;
Note: See TracChangeset
for help on using the changeset viewer.