feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5
Last change
on this file since 37a6942 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:
646 bytes
|
Rev | Line | |
---|
[21f0655] | 1 | #define AUBIO_UNSTABLE 1 |
---|
| 2 | |
---|
[4e9101e] | 3 | #include <aubio.h> |
---|
| 4 | |
---|
[158e031] | 5 | int main (void) |
---|
[4e9101e] | 6 | { |
---|
| 7 | uint_t length; |
---|
| 8 | for (length = 1; length < 10; length ++ ) { |
---|
[aea235c] | 9 | aubio_hist_t *o = new_aubio_hist(0, 1, length); |
---|
[407bba9] | 10 | fvec_t *t = new_aubio_window("hanning", length); |
---|
[51ee670] | 11 | aubio_hist_do(o,t); |
---|
| 12 | fvec_print(t); |
---|
| 13 | aubio_hist_do_notnull(o,t); |
---|
| 14 | fvec_print(t); |
---|
| 15 | aubio_hist_dyn_notnull(o,t); |
---|
| 16 | fvec_print(t); |
---|
| 17 | del_fvec(t); |
---|
[407bba9] | 18 | t = new_aubio_window("hanningz", length); |
---|
[4e9101e] | 19 | aubio_hist_do(o,t); |
---|
[51ee670] | 20 | fvec_print(t); |
---|
[4e9101e] | 21 | aubio_hist_do_notnull(o,t); |
---|
[51ee670] | 22 | fvec_print(t); |
---|
[4e9101e] | 23 | aubio_hist_dyn_notnull(o,t); |
---|
[51ee670] | 24 | fvec_print(t); |
---|
[4e9101e] | 25 | del_aubio_hist(o); |
---|
| 26 | del_fvec(t); |
---|
| 27 | } |
---|
| 28 | return 0; |
---|
| 29 | } |
---|
| 30 | |
---|
Note: See
TracBrowser
for help on using the repository browser.