Changeset b257b60 for tests/src/spectral/test-fft.c
- Timestamp:
- Aug 12, 2015, 7:21:38 PM (9 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:
- 60fc05b
- Parents:
- 3a1a5d6 (diff), 7b2d740 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/src/spectral/test-fft.c
r3a1a5d6 rb257b60 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.