source: tests/src/test-window.c @ 277918b

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

tests/src/test-window.c: update to new_aubio_window

  • Property mode set to 100644
File size: 949 bytes
RevLine 
[4e9101e]1#include <aubio.h>
2#include <stdlib.h>
3
4int main( int argc, char** argv )
5{
6  uint_t length;
7  for (length = 2; length <= 5; length++)
8  {
[ff9d00c]9    fvec_t *t = new_aubio_window(length,aubio_win_rectangle);
10    del_fvec(t);
11    t = new_aubio_window(length,aubio_win_hamming);
12    fvec_print(t);
13    del_fvec(t);
14    t = new_aubio_window(length,aubio_win_hanning);
15    fvec_print(t);
16    del_fvec(t);
17    t = new_aubio_window(length,aubio_win_hanningz);
18    fvec_print(t);
19    del_fvec(t);
20    t = new_aubio_window(length,aubio_win_blackman);
21    fvec_print(t);
22    del_fvec(t);
23    t = new_aubio_window(length,aubio_win_blackman_harris);
24    fvec_print(t);
25    del_fvec(t);
26    t = new_aubio_window(length,aubio_win_gaussian);
27    fvec_print(t);
28    del_fvec(t);
29    t = new_aubio_window(length,aubio_win_welch);
30    fvec_print(t);
31    del_fvec(t);
32    t = new_aubio_window(length,aubio_win_parzen);
33    fvec_print(t);
[4e9101e]34    del_fvec(t);
35  }
36  return 0;
37}
38
Note: See TracBrowser for help on using the repository browser.