source: tests/src/pitch/test-pitchfcomb.c @ 8bffcff

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since 8bffcff was 158e031, checked in by Paul Brossier <piem@piem.org>, 11 years ago

tests/: add void to prototypes to build with -Wstrict-prototypes

  • Property mode set to 100644
File size: 671 bytes
Line 
1#define AUBIO_UNSTABLE 1
2
3// this file uses the unstable aubio api, please use aubio_pitch instead
4// see src/pitch/pitch.h and tests/src/pitch/test-pitch.c
5
6#include <aubio.h>
7
8int main (void)
9{
10  uint_t i = 0;
11  uint_t win_s = 1024; // window size
12  uint_t hop_s = win_s/4; // hop size
13  // create some vectors
14  fvec_t * in = new_fvec (hop_s); // input buffer
15  fvec_t * out = new_fvec (1); // output candidates
16  // create pitch object
17  aubio_pitchfcomb_t * o  = new_aubio_pitchfcomb ( win_s, hop_s);
18
19  while (i < 10) {
20    aubio_pitchfcomb_do (o,in, out);
21    i++;
22  };
23
24  del_aubio_pitchfcomb(o);
25  del_fvec(out);
26  del_fvec(in);
27  aubio_cleanup();
28  return 0;
29}
Note: See TracBrowser for help on using the repository browser.