source: tests/src/test-onsetdetection.c @ 21f0655

feature/autosinkfeature/constantqfeature/pitchshiftfeature/pydocstringsfeature/timestretchpitchshiftsamplertimestretchyinfft+
Last change on this file since 21f0655 was 21f0655, checked in by Paul Brossier <piem@piem.org>, 11 years ago

tests/src: add AUBIO_UNSTABLE where needed

  • Property mode set to 100644
File size: 1.3 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_onsetdetection_t *o;
15 
16  o = new_aubio_onsetdetection ("energy", win_s, channels);
17  aubio_onsetdetection_do (o, in, out);
18  del_aubio_onsetdetection (o);
19
20  o = new_aubio_onsetdetection ("energy", win_s, channels);
21  aubio_onsetdetection_do (o, in, out);
22  del_aubio_onsetdetection (o);
23
24  o = new_aubio_onsetdetection ("hfc", win_s, channels);
25  aubio_onsetdetection_do (o, in, out);
26  del_aubio_onsetdetection (o);
27
28  o = new_aubio_onsetdetection ("complex", win_s, channels);
29  aubio_onsetdetection_do (o, in, out);
30  del_aubio_onsetdetection (o);
31
32  o = new_aubio_onsetdetection ("phase", win_s, channels);
33  aubio_onsetdetection_do (o, in, out);
34  del_aubio_onsetdetection (o);
35
36  o = new_aubio_onsetdetection ("kl", win_s, channels);
37  aubio_onsetdetection_do (o, in, out);
38  del_aubio_onsetdetection (o);
39
40  o = new_aubio_onsetdetection ("mkl", win_s, channels);
41  aubio_onsetdetection_do (o, in, out);
42  del_aubio_onsetdetection (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.