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:
804 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 | |
---|
8 | int main (void) |
---|
9 | { |
---|
10 | aubio_init(); |
---|
11 | |
---|
12 | uint_t n = 10; // compute n times |
---|
13 | uint_t win_s = 1024; // window size |
---|
14 | uint_t hop_s = win_s/4; // hop size |
---|
15 | // create some vectors |
---|
16 | cvec_t * in_cvec = new_cvec (win_s); // input fftgrain |
---|
17 | fvec_t * out_cands = new_fvec (1); // pitch candidate |
---|
18 | // create pitch object |
---|
19 | aubio_pitchmcomb_t * mcomb = new_aubio_pitchmcomb(win_s, hop_s); |
---|
20 | |
---|
21 | while ( n-- ) { |
---|
22 | aubio_pitchmcomb_do (mcomb, in_cvec, out_cands); |
---|
23 | // fvec_print(out_cands); |
---|
24 | }; |
---|
25 | |
---|
26 | // clean up before exiting |
---|
27 | del_aubio_pitchmcomb(mcomb); |
---|
28 | del_cvec(in_cvec); |
---|
29 | del_fvec(out_cands); |
---|
30 | |
---|
31 | aubio_cleanup(); |
---|
32 | |
---|
33 | return 0; |
---|
34 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.