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

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since a79ec76 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
RevLine 
[21f0655]1#define AUBIO_UNSTABLE 1
2
[c71aa44]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
[4e9101e]5
[c71aa44]6#include <aubio.h>
[4e9101e]7
[158e031]8int main (void)
[c71aa44]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);
[4e9101e]18
[c71aa44]19  while (i < 10) {
20    aubio_pitchfcomb_do (o,in, out);
21    i++;
22  };
[4e9101e]23
[c71aa44]24  del_aubio_pitchfcomb(o);
25  del_fvec(out);
26  del_fvec(in);
27  aubio_cleanup();
28  return 0;
[4e9101e]29}
Note: See TracBrowser for help on using the repository browser.