feature/crepe_org
Last change
on this file since 378852b was
c0429d4,
checked in by Paul Brossier <piem@piem.org>, 6 years ago
|
[tests] check hist with size null fails
|
-
Property mode set to
100644
|
File size:
687 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 | } |
---|
[c0429d4] | 28 | if (new_aubio_hist(0, 1, 0)) return 1; |
---|
[4e9101e] | 29 | return 0; |
---|
| 30 | } |
---|
| 31 | |
---|
Note: See
TracBrowser
for help on using the repository browser.