source: tests/src/utils/test-hist.c @ f3617e7

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since f3617e7 was abd326c, checked in by Paul Brossier <piem@piem.org>, 12 years ago

tests/src/utils/: improve examples

  • Property mode set to 100644
File size: 642 bytes
Line 
1#define AUBIO_UNSTABLE 1
2
3#include <aubio.h>
4
5int main ()
6{
7  uint_t length;
8  for (length = 1; length < 10; length ++ ) {
9    aubio_hist_t *o = new_aubio_hist(0, 1, length);
10    fvec_t *t = new_aubio_window("hanning", length);
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);
18    t = new_aubio_window("hanningz", length);
19    aubio_hist_do(o,t);
20    fvec_print(t);
21    aubio_hist_do_notnull(o,t);
22    fvec_print(t);
23    aubio_hist_dyn_notnull(o,t);
24    fvec_print(t);
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.