1 | |
---|
2 | #define AUBIO_UNSTABLE 1 |
---|
3 | |
---|
4 | #include <aubio.h> |
---|
5 | |
---|
6 | int |
---|
7 | main () |
---|
8 | { |
---|
9 | uint_t win_s = 1024; /* window size */ |
---|
10 | uint_t channels = 1; /* number of channel */ |
---|
11 | cvec_t *in = new_cvec (win_s, channels); /* input buffer */ |
---|
12 | fvec_t *out = new_fvec (1, channels); /* input buffer */ |
---|
13 | |
---|
14 | aubio_specdesc_t *o; |
---|
15 | |
---|
16 | o = new_aubio_specdesc ("energy", win_s, channels); |
---|
17 | aubio_specdesc_do (o, in, out); |
---|
18 | del_aubio_specdesc (o); |
---|
19 | |
---|
20 | o = new_aubio_specdesc ("energy", win_s, channels); |
---|
21 | aubio_specdesc_do (o, in, out); |
---|
22 | del_aubio_specdesc (o); |
---|
23 | |
---|
24 | o = new_aubio_specdesc ("hfc", win_s, channels); |
---|
25 | aubio_specdesc_do (o, in, out); |
---|
26 | del_aubio_specdesc (o); |
---|
27 | |
---|
28 | o = new_aubio_specdesc ("complex", win_s, channels); |
---|
29 | aubio_specdesc_do (o, in, out); |
---|
30 | del_aubio_specdesc (o); |
---|
31 | |
---|
32 | o = new_aubio_specdesc ("phase", win_s, channels); |
---|
33 | aubio_specdesc_do (o, in, out); |
---|
34 | del_aubio_specdesc (o); |
---|
35 | |
---|
36 | o = new_aubio_specdesc ("kl", win_s, channels); |
---|
37 | aubio_specdesc_do (o, in, out); |
---|
38 | del_aubio_specdesc (o); |
---|
39 | |
---|
40 | o = new_aubio_specdesc ("mkl", win_s, channels); |
---|
41 | aubio_specdesc_do (o, in, out); |
---|
42 | del_aubio_specdesc (o); |
---|
43 | |
---|
44 | del_cvec (in); |
---|
45 | del_fvec (out); |
---|
46 | aubio_cleanup (); |
---|
47 | |
---|
48 | return 0; |
---|
49 | } |
---|