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
|
Line | |
---|
1 | #include <aubio.h> |
---|
2 | |
---|
3 | int main (void) |
---|
4 | { |
---|
5 | aubio_init(); |
---|
6 | |
---|
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 |
---|
10 | |
---|
11 | aubio_specdesc_t *o; |
---|
12 | |
---|
13 | o = new_aubio_specdesc ("energy", win_s); |
---|
14 | aubio_specdesc_do (o, in, out); |
---|
15 | del_aubio_specdesc (o); |
---|
16 | |
---|
17 | o = new_aubio_specdesc ("energy", win_s); |
---|
18 | aubio_specdesc_do (o, in, out); |
---|
19 | del_aubio_specdesc (o); |
---|
20 | |
---|
21 | o = new_aubio_specdesc ("hfc", win_s); |
---|
22 | aubio_specdesc_do (o, in, out); |
---|
23 | del_aubio_specdesc (o); |
---|
24 | |
---|
25 | o = new_aubio_specdesc ("complex", win_s); |
---|
26 | aubio_specdesc_do (o, in, out); |
---|
27 | del_aubio_specdesc (o); |
---|
28 | |
---|
29 | o = new_aubio_specdesc ("phase", win_s); |
---|
30 | aubio_specdesc_do (o, in, out); |
---|
31 | del_aubio_specdesc (o); |
---|
32 | |
---|
33 | o = new_aubio_specdesc ("kl", win_s); |
---|
34 | aubio_specdesc_do (o, in, out); |
---|
35 | del_aubio_specdesc (o); |
---|
36 | |
---|
37 | o = new_aubio_specdesc ("mkl", win_s); |
---|
38 | aubio_specdesc_do (o, in, out); |
---|
39 | del_aubio_specdesc (o); |
---|
40 | |
---|
41 | del_cvec (in); |
---|
42 | del_fvec (out); |
---|
43 | |
---|
44 | aubio_cleanup (); |
---|
45 | |
---|
46 | return 0; |
---|
47 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.