7 uint_t n = 6; // compute n times
8 uint_t win_s = 32; // window size
9 uint_t hop_s = win_s / 4; // hop size
11 fvec_t * in = new_fvec (hop_s); // input buffer
12 cvec_t * fftgrain = new_cvec (win_s); // fft norm and phase
13 fvec_t * out = new_fvec (hop_s); // output buffer
15 // allocate fft and other memory space
16 aubio_pvoc_t * pv = new_aubio_pvoc(win_s,hop_s);
18 // fill input with some data
19 fvec_set_all (in, 1.);
23 // get some fresh input data
26 // execute phase vocoder
27 aubio_pvoc_do (pv,in,fftgrain);
29 // do something with fftgrain
31 cvec_print (fftgrain);
33 // optionally rebuild the signal
34 aubio_pvoc_rdo(pv,fftgrain,out);
36 // and do something with the result