source: tests/src/spectral/test-specdesc.c @ 3a6aa799

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since 3a6aa799 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: 1.0 KB
Line 
1
2#define AUBIO_UNSTABLE 1
3
4#include <aubio.h>
5
6int
7main ()
8{
9  uint_t win_s = 1024;          /* window size */
10  cvec_t *in = new_cvec (win_s);      /* input buffer */
11  fvec_t *out = new_fvec (1); /* input buffer */
12
13  aubio_specdesc_t *o;
14 
15  o = new_aubio_specdesc ("energy", win_s);
16  aubio_specdesc_do (o, in, out);
17  del_aubio_specdesc (o);
18
19  o = new_aubio_specdesc ("energy", win_s);
20  aubio_specdesc_do (o, in, out);
21  del_aubio_specdesc (o);
22
23  o = new_aubio_specdesc ("hfc", win_s);
24  aubio_specdesc_do (o, in, out);
25  del_aubio_specdesc (o);
26
27  o = new_aubio_specdesc ("complex", win_s);
28  aubio_specdesc_do (o, in, out);
29  del_aubio_specdesc (o);
30
31  o = new_aubio_specdesc ("phase", win_s);
32  aubio_specdesc_do (o, in, out);
33  del_aubio_specdesc (o);
34
35  o = new_aubio_specdesc ("kl", win_s);
36  aubio_specdesc_do (o, in, out);
37  del_aubio_specdesc (o);
38
39  o = new_aubio_specdesc ("mkl", win_s);
40  aubio_specdesc_do (o, in, out);
41  del_aubio_specdesc (o);
42
43  del_cvec (in);
44  del_fvec (out);
45  aubio_cleanup ();
46
47  return 0;
48}
Note: See TracBrowser for help on using the repository browser.