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
RevLine 
[4e9101e]1
[21f0655]2#define AUBIO_UNSTABLE 1
3
[4e9101e]4#include <aubio.h>
5
[01b8fcc]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
[31907fd]14  aubio_specdesc_t *o;
[4e9101e]15 
[31907fd]16  o = new_aubio_specdesc ("energy", win_s, channels);
17  aubio_specdesc_do (o, in, out);
18  del_aubio_specdesc (o);
[01b8fcc]19
[31907fd]20  o = new_aubio_specdesc ("energy", win_s, channels);
21  aubio_specdesc_do (o, in, out);
22  del_aubio_specdesc (o);
[01b8fcc]23
[31907fd]24  o = new_aubio_specdesc ("hfc", win_s, channels);
25  aubio_specdesc_do (o, in, out);
26  del_aubio_specdesc (o);
[01b8fcc]27
[31907fd]28  o = new_aubio_specdesc ("complex", win_s, channels);
29  aubio_specdesc_do (o, in, out);
30  del_aubio_specdesc (o);
[01b8fcc]31
[31907fd]32  o = new_aubio_specdesc ("phase", win_s, channels);
33  aubio_specdesc_do (o, in, out);
34  del_aubio_specdesc (o);
[4e9101e]35
[31907fd]36  o = new_aubio_specdesc ("kl", win_s, channels);
37  aubio_specdesc_do (o, in, out);
38  del_aubio_specdesc (o);
[01b8fcc]39
[31907fd]40  o = new_aubio_specdesc ("mkl", win_s, channels);
41  aubio_specdesc_do (o, in, out);
42  del_aubio_specdesc (o);
[01b8fcc]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.