- Timestamp:
- Jul 21, 2006, 8:08:40 PM (18 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
- Children:
- cdfad6fd
- Parents:
- e8830c4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/tests/test-fft.c
re8830c4 r17fbb7a 1 1 2 2 #include "aubio_priv.h" 3 #include "aubio.h"3 #include <aubio.h> 4 4 5 5 int main(){ … … 13 13 14 14 /* allocate fft and other memory space */ 15 aubio_fft_t * fft = new_aubio_fft(win_s); /* fftwinterface */16 smpl_t * w = AUBIO_ARRAY(smpl_t,win_s); 15 aubio_fft_t * fft = new_aubio_fft(win_s); /* fft interface */ 16 smpl_t * w = AUBIO_ARRAY(smpl_t,win_s); /* window */ 17 17 /* complex spectral data */ 18 18 fft_data_t ** spec = AUBIO_ARRAY(fft_data_t*,channels); … … 40 40 aubio_fft_rdo(fft,spec[i],out->data[i],win_s); 41 41 } 42 43 del_fvec(in); 44 del_fvec(out); 45 del_cvec(fftgrain); 46 AUBIO_FREE(w); 47 del_aubio_fft(fft); 48 for (i=0; i < channels; i++) 49 AUBIO_FREE(spec[i]); 50 AUBIO_FREE(spec); 51 aubio_cleanup(); 42 52 return 0; 43 53 }
Note: See TracChangeset
for help on using the changeset viewer.