feature/autosinkfeature/cnnfeature/crepefix/ffmpeg5
Last change
on this file since d013a93 was
158e031,
checked in by Paul Brossier <piem@piem.org>, 11 years ago
|
tests/: add void to prototypes to build with -Wstrict-prototypes
|
-
Property mode set to
100644
|
File size:
1005 bytes
|
Rev | Line | |
---|
[4e9101e] | 1 | #include <aubio.h> |
---|
| 2 | |
---|
[158e031] | 3 | int main (void) |
---|
[01b8fcc] | 4 | { |
---|
[6938a20] | 5 | uint_t win_s = 1024; // window size |
---|
| 6 | cvec_t *in = new_cvec (win_s); // input buffer |
---|
| 7 | fvec_t *out = new_fvec (1); // output spectral descriptor |
---|
[01b8fcc] | 8 | |
---|
[31907fd] | 9 | aubio_specdesc_t *o; |
---|
[6938a20] | 10 | |
---|
[aea235c] | 11 | o = new_aubio_specdesc ("energy", win_s); |
---|
[31907fd] | 12 | aubio_specdesc_do (o, in, out); |
---|
| 13 | del_aubio_specdesc (o); |
---|
[01b8fcc] | 14 | |
---|
[aea235c] | 15 | o = new_aubio_specdesc ("energy", win_s); |
---|
[31907fd] | 16 | aubio_specdesc_do (o, in, out); |
---|
| 17 | del_aubio_specdesc (o); |
---|
[01b8fcc] | 18 | |
---|
[aea235c] | 19 | o = new_aubio_specdesc ("hfc", win_s); |
---|
[31907fd] | 20 | aubio_specdesc_do (o, in, out); |
---|
| 21 | del_aubio_specdesc (o); |
---|
[01b8fcc] | 22 | |
---|
[aea235c] | 23 | o = new_aubio_specdesc ("complex", win_s); |
---|
[31907fd] | 24 | aubio_specdesc_do (o, in, out); |
---|
| 25 | del_aubio_specdesc (o); |
---|
[01b8fcc] | 26 | |
---|
[aea235c] | 27 | o = new_aubio_specdesc ("phase", win_s); |
---|
[31907fd] | 28 | aubio_specdesc_do (o, in, out); |
---|
| 29 | del_aubio_specdesc (o); |
---|
[4e9101e] | 30 | |
---|
[aea235c] | 31 | o = new_aubio_specdesc ("kl", win_s); |
---|
[31907fd] | 32 | aubio_specdesc_do (o, in, out); |
---|
| 33 | del_aubio_specdesc (o); |
---|
[01b8fcc] | 34 | |
---|
[aea235c] | 35 | o = new_aubio_specdesc ("mkl", win_s); |
---|
[31907fd] | 36 | aubio_specdesc_do (o, in, out); |
---|
| 37 | del_aubio_specdesc (o); |
---|
[01b8fcc] | 38 | |
---|
| 39 | del_cvec (in); |
---|
| 40 | del_fvec (out); |
---|
| 41 | aubio_cleanup (); |
---|
| 42 | |
---|
| 43 | return 0; |
---|
| 44 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.