feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change
on this file since 0178c65 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
|
Line | |
---|
1 | #include <aubio.h> |
---|
2 | |
---|
3 | int |
---|
4 | main (void) |
---|
5 | { |
---|
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 | |
---|
11 | |
---|
12 | aubio_filter_t *o = new_aubio_filter_c_weighting (44100); |
---|
13 | in->data[12] = 0.5; |
---|
14 | fvec_print (in); |
---|
15 | aubio_filter_do (o, in); |
---|
16 | fvec_print (in); |
---|
17 | del_aubio_filter (o); |
---|
18 | |
---|
19 | o = new_aubio_filter_c_weighting (44100); |
---|
20 | in->data[12] = 0.5; |
---|
21 | fvec_print (in); |
---|
22 | aubio_filter_do_outplace (o, in, out); |
---|
23 | fvec_print (out); |
---|
24 | del_aubio_filter (o); |
---|
25 | |
---|
26 | o = new_aubio_filter_c_weighting (44100); |
---|
27 | in->data[12] = 0.5; |
---|
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; |
---|
38 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.