Changeset f3bee79 for src/spectral
- Timestamp:
- Oct 1, 2009, 5:41:07 PM (15 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:
- 847b374
- Parents:
- e6c11e3
- Location:
- src/spectral
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/spectral/fft.c
re6c11e3 rf3bee79 23 23 #include "mathutils.h" 24 24 #include "spectral/fft.h" 25 26 /* note that <complex.h> is not included here but only in aubio_priv.h, so that 27 * c++ projects can still use their own complex definition. */ 28 #include <fftw3.h> 29 30 #ifdef HAVE_COMPLEX_H 31 #if HAVE_FFTW3F 32 /** fft data type with complex.h and fftw3f */ 33 #define FFTW_TYPE fftwf_complex 34 #else 35 /** fft data type with complex.h and fftw3 */ 36 #define FFTW_TYPE fftw_complex 37 #endif 38 #else 39 #if HAVE_FFTW3F 40 /** fft data type without complex.h and with fftw3f */ 41 #define FFTW_TYPE float 42 #else 43 /** fft data type without complex.h and with fftw */ 44 #define FFTW_TYPE double 45 #endif 46 #endif 47 48 /** fft data type */ 49 typedef FFTW_TYPE fft_data_t; 25 50 26 51 #if HAVE_FFTW3F -
src/spectral/fft.h
re6c11e3 rf3bee79 27 27 #define FFT_H_ 28 28 29 /* note that <complex.h> is not included here but only in aubio_priv.h, so that30 * c++ projects can still use their own complex definition. */31 #include <fftw3.h>32 33 #ifdef HAVE_COMPLEX_H34 #if HAVE_FFTW3F35 /** fft data type with complex.h and fftw3f */36 #define FFTW_TYPE fftwf_complex37 #else38 /** fft data type with complex.h and fftw3 */39 #define FFTW_TYPE fftw_complex40 #endif41 #else42 #if HAVE_FFTW3F43 /** fft data type without complex.h and with fftw3f */44 #define FFTW_TYPE float45 #else46 /** fft data type without complex.h and with fftw */47 #define FFTW_TYPE double48 #endif49 #endif50 51 29 #ifdef __cplusplus 52 30 extern "C" { 53 31 #endif 54 55 /** fft data type */56 typedef FFTW_TYPE fft_data_t;57 32 58 33 /** FFT object
Note: See TracChangeset
for help on using the changeset viewer.