Changeset 44755a0 for tests/src/spectral
- Timestamp:
- May 26, 2015, 11:23:25 AM (10 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:
- b4fd9d6
- Parents:
- c82a034
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/src/spectral/test-fft.c
rc82a034 r44755a0 3 3 int main (void) 4 4 { 5 uint_t win_s = 8; // window size 5 uint_t i, n_iters = 100; // number of iterations 6 uint_t win_s = 500; // window size 6 7 fvec_t * in = new_fvec (win_s); // input buffer 7 8 cvec_t * fftgrain = new_cvec (win_s); // fft norm and phase … … 19 20 in->data[6] = 5; 20 21 in->data[7] = 6; 21 fvec_print(in);22 //fvec_print(in); 22 23 23 // execute stft 24 aubio_fft_do (fft,in,fftgrain); 25 cvec_print(fftgrain); 24 for (i = 0; i < n_iters; i++) { 25 // execute stft 26 aubio_fft_do (fft,in,fftgrain); 27 cvec_print(fftgrain); 26 28 27 // execute inverse fourier transform 28 aubio_fft_rdo(fft,fftgrain,out); 29 // execute inverse fourier transform 30 aubio_fft_rdo(fft,fftgrain,out); 31 } 29 32 30 33 // cleam up 31 fvec_print(out);34 //fvec_print(out); 32 35 del_aubio_fft(fft); 33 36 del_fvec(in);
Note: See TracChangeset
for help on using the changeset viewer.