source: tests/src/spectral/test-specdesc.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: 1.0 KB
RevLine 
[4e9101e]1#include <aubio.h>
2
[158e031]3int main (void)
[01b8fcc]4{
[986131d]5  aubio_init();
6 
[6938a20]7  uint_t win_s = 1024; // window size
8  cvec_t *in = new_cvec (win_s); // input buffer
9  fvec_t *out = new_fvec (1); // output spectral descriptor
[01b8fcc]10
[31907fd]11  aubio_specdesc_t *o;
[6938a20]12
[aea235c]13  o = new_aubio_specdesc ("energy", win_s);
[31907fd]14  aubio_specdesc_do (o, in, out);
15  del_aubio_specdesc (o);
[01b8fcc]16
[aea235c]17  o = new_aubio_specdesc ("energy", win_s);
[31907fd]18  aubio_specdesc_do (o, in, out);
19  del_aubio_specdesc (o);
[01b8fcc]20
[aea235c]21  o = new_aubio_specdesc ("hfc", win_s);
[31907fd]22  aubio_specdesc_do (o, in, out);
23  del_aubio_specdesc (o);
[01b8fcc]24
[aea235c]25  o = new_aubio_specdesc ("complex", win_s);
[31907fd]26  aubio_specdesc_do (o, in, out);
27  del_aubio_specdesc (o);
[01b8fcc]28
[aea235c]29  o = new_aubio_specdesc ("phase", win_s);
[31907fd]30  aubio_specdesc_do (o, in, out);
31  del_aubio_specdesc (o);
[4e9101e]32
[aea235c]33  o = new_aubio_specdesc ("kl", win_s);
[31907fd]34  aubio_specdesc_do (o, in, out);
35  del_aubio_specdesc (o);
[01b8fcc]36
[aea235c]37  o = new_aubio_specdesc ("mkl", win_s);
[31907fd]38  aubio_specdesc_do (o, in, out);
39  del_aubio_specdesc (o);
[01b8fcc]40
41  del_cvec (in);
42  del_fvec (out);
[986131d]43 
[01b8fcc]44  aubio_cleanup ();
45
46  return 0;
47}
Note: See TracBrowser for help on using the repository browser.