source:
tests/src/pitch/test-pitchmcomb.c
@
d22cc42
Last change on this file since d22cc42 was 02418f6, checked in by , 13 years ago | |
---|---|
|
|
File size: 679 bytes |
Rev | Line | |
---|---|---|
[21f0655] | 1 | #define AUBIO_UNSTABLE 1 |
2 | ||
[4e9101e] | 3 | #include <aubio.h> |
4 | ||
5 | int main(){ | |
6 | /* allocate some memory */ | |
7 | uint_t win_s = 1024; /* window size */ | |
8 | uint_t hop_s = win_s/4; /* hop size */ | |
[aea235c] | 9 | cvec_t * in = new_cvec (win_s); /* input buffer */ |
10 | fvec_t * out = new_fvec (1); /* input buffer */ | |
[e5757cf] | 11 | |
[aea235c] | 12 | aubio_pitchmcomb_t * o = new_aubio_pitchmcomb(win_s, hop_s); |
[4e9101e] | 13 | uint_t i = 0; |
14 | ||
15 | while (i < 1000) { | |
[e5757cf] | 16 | aubio_pitchmcomb_do (o,in, out); |
[4e9101e] | 17 | i++; |
18 | }; | |
19 | ||
20 | del_aubio_pitchmcomb(o); | |
21 | del_cvec(in); | |
[e5757cf] | 22 | del_fvec(out); |
[4e9101e] | 23 | aubio_cleanup(); |
24 | ||
25 | return 0; | |
26 | } |
Note: See TracBrowser
for help on using the repository browser.