feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change
on this file since dbf47c6 was
aea235c,
checked in by Paul Brossier <piem@piem.org>, 15 years ago
|
tests/src: switch to mono
|
-
Property mode set to
100644
|
File size:
817 bytes
|
Rev | Line | |
---|
[4e9101e] | 1 | #include <aubio.h> |
---|
| 2 | |
---|
[bd1a630] | 3 | int |
---|
| 4 | main (void) |
---|
| 5 | { |
---|
| 6 | /* allocate some memory */ |
---|
| 7 | uint_t win_s = 32; /* window size */ |
---|
[aea235c] | 8 | fvec_t *in = new_fvec (win_s); /* input buffer */ |
---|
| 9 | fvec_t *out = new_fvec (win_s); /* input buffer */ |
---|
[4e9101e] | 10 | |
---|
| 11 | |
---|
[aea235c] | 12 | aubio_filter_t *o = new_aubio_filter_c_weighting (44100); |
---|
| 13 | in->data[12] = 0.5; |
---|
[bd1a630] | 14 | fvec_print (in); |
---|
| 15 | aubio_filter_do (o, in); |
---|
| 16 | fvec_print (in); |
---|
| 17 | del_aubio_filter (o); |
---|
[4e9101e] | 18 | |
---|
[aea235c] | 19 | o = new_aubio_filter_c_weighting (44100); |
---|
| 20 | in->data[12] = 0.5; |
---|
[bd1a630] | 21 | fvec_print (in); |
---|
| 22 | aubio_filter_do_outplace (o, in, out); |
---|
| 23 | fvec_print (out); |
---|
| 24 | del_aubio_filter (o); |
---|
| 25 | |
---|
[aea235c] | 26 | o = new_aubio_filter_c_weighting (44100); |
---|
| 27 | in->data[12] = 0.5; |
---|
[bd1a630] | 28 | fvec_print (in); |
---|
| 29 | aubio_filter_do_filtfilt (o, in, out); |
---|
| 30 | fvec_print (out); |
---|
| 31 | del_aubio_filter (o); |
---|
| 32 | |
---|
| 33 | del_fvec (in); |
---|
| 34 | del_fvec (out); |
---|
| 35 | aubio_cleanup (); |
---|
| 36 | |
---|
| 37 | return 0; |
---|
[4e9101e] | 38 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.