feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change
on this file since 47f17fc was
cfa0f12,
checked in by Paul Brossier <piem@piem.org>, 15 years ago
|
tests/src/test-filter.c: avoid redefining o
|
-
Property mode set to
100644
|
File size:
932 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 | 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 */ |
---|
11 | |
---|
12 | |
---|
13 | aubio_filter_t *o = new_aubio_filter_c_weighting (44100, channels); |
---|
14 | in->data[0][12] = 0.5; |
---|
15 | fvec_print (in); |
---|
16 | aubio_filter_do (o, in); |
---|
17 | fvec_print (in); |
---|
18 | del_aubio_filter (o); |
---|
19 | |
---|
20 | o = new_aubio_filter_c_weighting (44100, channels); |
---|
21 | in->data[0][12] = 0.5; |
---|
22 | fvec_print (in); |
---|
23 | aubio_filter_do_outplace (o, in, out); |
---|
24 | fvec_print (out); |
---|
25 | del_aubio_filter (o); |
---|
26 | |
---|
27 | o = new_aubio_filter_c_weighting (44100, channels); |
---|
28 | in->data[0][12] = 0.5; |
---|
29 | fvec_print (in); |
---|
30 | aubio_filter_do_filtfilt (o, in, out); |
---|
31 | fvec_print (out); |
---|
32 | del_aubio_filter (o); |
---|
33 | |
---|
34 | del_fvec (in); |
---|
35 | del_fvec (out); |
---|
36 | aubio_cleanup (); |
---|
37 | |
---|
38 | return 0; |
---|
39 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.