Changeset 3c6f584
- Timestamp:
- Aug 20, 2015, 1:15:54 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:
- 0309a22
- Parents:
- e3e8e9d
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/spectral/fft.c
re3e8e9d r3c6f584 168 168 #endif 169 169 #else // using OOURA 170 if (aubio_is_power_of_two(winsize) != 1) { 171 AUBIO_ERR("fft: can only create with sizes power of two," 172 " requested %d\n", winsize); 173 return NULL; 174 } 170 175 s->winsize = winsize; 171 176 s->fft_size = winsize / 2 + 1; -
tests/src/spectral/test-fft.c
re3e8e9d r3c6f584 3 3 int main (void) 4 4 { 5 int return_code = 0; 5 6 uint_t i, n_iters = 100; // number of iterations 6 7 uint_t win_s = 500; // window size … … 10 11 // create fft object 11 12 aubio_fft_t * fft = new_aubio_fft(win_s); 13 14 if (!fft) { 15 return_code = 1; 16 goto beach; 17 } 12 18 13 19 // fill input with some data … … 34 40 //fvec_print(out); 35 41 del_aubio_fft(fft); 42 beach: 36 43 del_fvec(in); 37 44 del_cvec(fftgrain); 38 45 del_fvec(out); 39 46 aubio_cleanup(); 40 return 0;47 return return_code; 41 48 }
Note: See TracChangeset
for help on using the changeset viewer.