source: tests/src/test-mathutils-window.c @ f400ea1

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

tests/: move file around to match src/

  • Property mode set to 100644
File size: 945 bytes
Line 
1#include <aubio.h>
2#include <stdlib.h>
3
4int main( )
5{
6  uint_t length;
7  for (length = 2; length <= 5; length++)
8  {
9    fvec_t *t = new_aubio_window("rectangle", length);
10    del_fvec(t);
11    t = new_aubio_window("hamming", length);
12    fvec_print(t);
13    del_fvec(t);
14    t = new_aubio_window("hanning", length);
15    fvec_print(t);
16    del_fvec(t);
17    t = new_aubio_window("hanningz", length);
18    fvec_print(t);
19    del_fvec(t);
20    t = new_aubio_window("blackman", length);
21    fvec_print(t);
22    del_fvec(t);
23    t = new_aubio_window("blackman_harris", length);
24    fvec_print(t);
25    del_fvec(t);
26    t = new_aubio_window("gaussian", length);
27    fvec_print(t);
28    del_fvec(t);
29    t = new_aubio_window("welch", length);
30    fvec_print(t);
31    del_fvec(t);
32    t = new_aubio_window("parzen", length);
33    fvec_print(t);
34    del_fvec(t);
35    t = new_aubio_window("default", length);
36    fvec_print(t);
37    del_fvec(t);
38  }
39  return 0;
40}
41
Note: See TracBrowser for help on using the repository browser.