1 /* test sample for phase vocoder */
7 uint_t win_s = 1024; /* window size */
8 uint_t hop_s = 256; /* hop size */
9 /* allocate some memory */
10 fvec_t * in = new_fvec (hop_s); /* input buffer */
11 cvec_t * fftgrain = new_cvec (win_s); /* fft norm and phase */
12 fvec_t * out = new_fvec (hop_s); /* output buffer */
13 /* allocate fft and other memory space */
14 aubio_pvoc_t * pv = new_aubio_pvoc(win_s,hop_s);
15 /* fill input with some data */
16 printf("initialised\n");
18 aubio_pvoc_do (pv,in,fftgrain);
19 printf("computed forward\n");
20 /* execute inverse fourier transform */
21 aubio_pvoc_rdo(pv,fftgrain,out);
22 printf("computed backard\n");
28 printf("memory freed\n");