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

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5
Last change on this file since 986131d was 986131d, checked in by Eduard Müller <mueller.eduard@googlemail.com>, 7 years ago

Intel IPP support for aubio

See emuell/aubio/ intel_ipp2 for details please

  • Property mode set to 100644
File size: 784 bytes
Line 
1#include "aubio.h"
2#include "utils_tests.h"
3
4int main (void)
5{
6  aubio_init();
7
8  uint_t length = 0;
9  uint_t n_length = 4, n_types = 10, i, t;
10  uint_t lengths[4] = { 8, 10, 15, 16 };
11  char *method = "default";
12  char *window_types[10] = { "default",
13    "rectangle", "hamming", "hanning", "hanningz",
14    "blackman", "blackman_harris", "gaussian", "welch", "parzen"};
15
16  for ( t = 0; t < n_types; t ++ ) {
17    for ( i = 0; i < n_length; i++)
18    {
19      length = lengths[i];
20      method = window_types[t];
21
22      fvec_t * window = new_aubio_window(method, length);
23
24      fvec_set_window(window, method);
25      fprintf(stdout, "length: %d, method: %s, window:, ", length, method);
26      fvec_print(window);
27
28      del_fvec(window);
29    }
30  }
31
32  aubio_cleanup();
33 
34  return 0;
35}
36
Note: See TracBrowser for help on using the repository browser.