source: tests/src/test-onsetdetection.c @ 4621cd6

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

src/spectral/specdesc.{c,h}: rename aubio_onsetdetection to aubio_specdesc

  • Property mode set to 100644
File size: 1.2 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  uint_t channels = 1;          /* number of channel */
11  cvec_t *in = new_cvec (win_s, channels);      /* input buffer */
12  fvec_t *out = new_fvec (1, channels); /* input buffer */
13
14  aubio_specdesc_t *o;
15 
16  o = new_aubio_specdesc ("energy", win_s, channels);
17  aubio_specdesc_do (o, in, out);
18  del_aubio_specdesc (o);
19
20  o = new_aubio_specdesc ("energy", win_s, channels);
21  aubio_specdesc_do (o, in, out);
22  del_aubio_specdesc (o);
23
24  o = new_aubio_specdesc ("hfc", win_s, channels);
25  aubio_specdesc_do (o, in, out);
26  del_aubio_specdesc (o);
27
28  o = new_aubio_specdesc ("complex", win_s, channels);
29  aubio_specdesc_do (o, in, out);
30  del_aubio_specdesc (o);
31
32  o = new_aubio_specdesc ("phase", win_s, channels);
33  aubio_specdesc_do (o, in, out);
34  del_aubio_specdesc (o);
35
36  o = new_aubio_specdesc ("kl", win_s, channels);
37  aubio_specdesc_do (o, in, out);
38  del_aubio_specdesc (o);
39
40  o = new_aubio_specdesc ("mkl", win_s, channels);
41  aubio_specdesc_do (o, in, out);
42  del_aubio_specdesc (o);
43
44  del_cvec (in);
45  del_fvec (out);
46  aubio_cleanup ();
47
48  return 0;
49}
Note: See TracBrowser for help on using the repository browser.