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

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since 72db1cf 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
RevLine 
[4e9101e]1#include <aubio.h>
2#include <stdlib.h>
3
[0d434df5]4int main( )
[4e9101e]5{
6  uint_t length;
7  for (length = 2; length <= 5; length++)
8  {
[407bba9]9    fvec_t *t = new_aubio_window("rectangle", length);
[ff9d00c]10    del_fvec(t);
[407bba9]11    t = new_aubio_window("hamming", length);
[ff9d00c]12    fvec_print(t);
13    del_fvec(t);
[407bba9]14    t = new_aubio_window("hanning", length);
[ff9d00c]15    fvec_print(t);
16    del_fvec(t);
[407bba9]17    t = new_aubio_window("hanningz", length);
[ff9d00c]18    fvec_print(t);
19    del_fvec(t);
[407bba9]20    t = new_aubio_window("blackman", length);
[ff9d00c]21    fvec_print(t);
22    del_fvec(t);
[407bba9]23    t = new_aubio_window("blackman_harris", length);
[ff9d00c]24    fvec_print(t);
25    del_fvec(t);
[407bba9]26    t = new_aubio_window("gaussian", length);
[ff9d00c]27    fvec_print(t);
28    del_fvec(t);
[407bba9]29    t = new_aubio_window("welch", length);
[ff9d00c]30    fvec_print(t);
31    del_fvec(t);
[407bba9]32    t = new_aubio_window("parzen", length);
33    fvec_print(t);
34    del_fvec(t);
35    t = new_aubio_window("default", length);
[ff9d00c]36    fvec_print(t);
[4e9101e]37    del_fvec(t);
38  }
39  return 0;
40}
41
Note: See TracBrowser for help on using the repository browser.