feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change
on this file since 020d80e was
51ee670,
checked in by Paul Brossier <piem@piem.org>, 15 years ago
|
tests/src/test-hist.c: update to new_aubio_window
|
-
Property mode set to
100644
|
File size:
675 bytes
|
Line | |
---|
1 | #include <aubio.h> |
---|
2 | #include <stdlib.h> |
---|
3 | |
---|
4 | int main( int argc, char** argv ) |
---|
5 | { |
---|
6 | uint_t length; |
---|
7 | for (length = 1; length < 10; length ++ ) { |
---|
8 | aubio_hist_t *o = new_aubio_hist(0, 1, length, 5); |
---|
9 | fvec_t *t = new_aubio_window(length,aubio_win_hanning); |
---|
10 | aubio_hist_do(o,t); |
---|
11 | fvec_print(t); |
---|
12 | aubio_hist_do_notnull(o,t); |
---|
13 | fvec_print(t); |
---|
14 | aubio_hist_dyn_notnull(o,t); |
---|
15 | fvec_print(t); |
---|
16 | del_fvec(t); |
---|
17 | t = new_aubio_window(length,aubio_win_hanningz); |
---|
18 | aubio_hist_do(o,t); |
---|
19 | fvec_print(t); |
---|
20 | aubio_hist_do_notnull(o,t); |
---|
21 | fvec_print(t); |
---|
22 | aubio_hist_dyn_notnull(o,t); |
---|
23 | fvec_print(t); |
---|
24 | del_aubio_hist(o); |
---|
25 | del_fvec(t); |
---|
26 | } |
---|
27 | return 0; |
---|
28 | } |
---|
29 | |
---|
Note: See
TracBrowser
for help on using the repository browser.