feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change
on this file since c251b80 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:
1.0 KB
|
Rev | Line | |
---|
[4e9101e] | 1 | |
---|
[21f0655] | 2 | #define AUBIO_UNSTABLE 1 |
---|
| 3 | |
---|
[4e9101e] | 4 | #include <aubio.h> |
---|
| 5 | |
---|
[01b8fcc] | 6 | int |
---|
| 7 | main () |
---|
| 8 | { |
---|
| 9 | uint_t win_s = 1024; /* window size */ |
---|
[aea235c] | 10 | cvec_t *in = new_cvec (win_s); /* input buffer */ |
---|
| 11 | fvec_t *out = new_fvec (1); /* input buffer */ |
---|
[01b8fcc] | 12 | |
---|
[31907fd] | 13 | aubio_specdesc_t *o; |
---|
[4e9101e] | 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 ("energy", win_s); |
---|
[31907fd] | 20 | aubio_specdesc_do (o, in, out); |
---|
| 21 | del_aubio_specdesc (o); |
---|
[01b8fcc] | 22 | |
---|
[aea235c] | 23 | o = new_aubio_specdesc ("hfc", win_s); |
---|
[31907fd] | 24 | aubio_specdesc_do (o, in, out); |
---|
| 25 | del_aubio_specdesc (o); |
---|
[01b8fcc] | 26 | |
---|
[aea235c] | 27 | o = new_aubio_specdesc ("complex", win_s); |
---|
[31907fd] | 28 | aubio_specdesc_do (o, in, out); |
---|
| 29 | del_aubio_specdesc (o); |
---|
[01b8fcc] | 30 | |
---|
[aea235c] | 31 | o = new_aubio_specdesc ("phase", win_s); |
---|
[31907fd] | 32 | aubio_specdesc_do (o, in, out); |
---|
| 33 | del_aubio_specdesc (o); |
---|
[4e9101e] | 34 | |
---|
[aea235c] | 35 | o = new_aubio_specdesc ("kl", win_s); |
---|
[31907fd] | 36 | aubio_specdesc_do (o, in, out); |
---|
| 37 | del_aubio_specdesc (o); |
---|
[01b8fcc] | 38 | |
---|
[aea235c] | 39 | o = new_aubio_specdesc ("mkl", win_s); |
---|
[31907fd] | 40 | aubio_specdesc_do (o, in, out); |
---|
| 41 | del_aubio_specdesc (o); |
---|
[01b8fcc] | 42 | |
---|
| 43 | del_cvec (in); |
---|
| 44 | del_fvec (out); |
---|
| 45 | aubio_cleanup (); |
---|
| 46 | |
---|
| 47 | return 0; |
---|
| 48 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.