feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change
on this file since 615ac7d was
f162cf9,
checked in by Paul Brossier <piem@piem.org>, 15 years ago
|
src/pitch/pitchschmitt.c: remove unneeded samplerate parameter, update prototypes, make multichannel
|
-
Property mode set to
100644
|
File size:
584 bytes
|
Line | |
---|
1 | #include <aubio.h> |
---|
2 | |
---|
3 | int main(){ |
---|
4 | /* allocate some memory */ |
---|
5 | uint_t win_s = 1024; /* window size */ |
---|
6 | fvec_t * in = new_fvec (win_s, 1); /* input buffer */ |
---|
7 | fvec_t * out = new_fvec (1, 1); /* input buffer */ |
---|
8 | aubio_pitchschmitt_t * o = new_aubio_pitchschmitt(win_s); |
---|
9 | uint_t i = 0; |
---|
10 | |
---|
11 | while (i < 1000) { |
---|
12 | aubio_pitchschmitt_do (o,in, out); |
---|
13 | i++; |
---|
14 | }; |
---|
15 | |
---|
16 | del_aubio_pitchschmitt(o); |
---|
17 | del_fvec(in); |
---|
18 | del_fvec(out); |
---|
19 | aubio_cleanup(); |
---|
20 | |
---|
21 | return 0; |
---|
22 | } |
---|
23 | |
---|
Note: See
TracBrowser
for help on using the repository browser.