source: tests/src/test-pitchschmitt.c @ 3f99693

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since 3f99693 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
RevLine 
[4e9101e]1#include <aubio.h>
2
3int main(){
4        /* allocate some memory */
5        uint_t win_s      = 1024;                       /* window size */
6        fvec_t * in       = new_fvec (win_s, 1); /* input buffer */
[f162cf9]7        fvec_t * out = new_fvec (1, 1); /* input buffer */
8        aubio_pitchschmitt_t * o  = new_aubio_pitchschmitt(win_s);
[4e9101e]9        uint_t i = 0;
10
11        while (i < 1000) {
[f162cf9]12          aubio_pitchschmitt_do (o,in, out);
[4e9101e]13          i++;
14        };
15
16        del_aubio_pitchschmitt(o);
17        del_fvec(in);
[f162cf9]18        del_fvec(out);
[4e9101e]19        aubio_cleanup();
20
21        return 0;
22}
23
Note: See TracBrowser for help on using the repository browser.