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

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5
Last change on this file since 986131d was 986131d, checked in by Eduard Müller <mueller.eduard@googlemail.com>, 7 years ago

Intel IPP support for aubio

See emuell/aubio/ intel_ipp2 for details please

  • Property mode set to 100644
File size: 687 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  aubio_init();
11  uint_t i = 0;
12  uint_t win_s = 1024; // window size
13  uint_t hop_s = win_s/4; // hop size
14  // create some vectors
15  fvec_t * in = new_fvec (hop_s); // input buffer
16  fvec_t * out = new_fvec (1); // output candidates
17  // create pitch object
18  aubio_pitchfcomb_t * o  = new_aubio_pitchfcomb ( win_s, hop_s);
19
20  while (i < 10) {
21    aubio_pitchfcomb_do (o,in, out);
22    i++;
23  };
24
25  del_aubio_pitchfcomb(o);
26  del_fvec(out);
27  del_fvec(in);
28  aubio_cleanup();
29  return 0;
30}
Note: See TracBrowser for help on using the repository browser.