Changeset cdfad6fd for examples/tests
- Timestamp:
- Jul 21, 2006, 8:10:23 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:
- 40536fa
- Parents:
- 17fbb7a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/tests/test-mfft.c
r17fbb7a rcdfad6fd 1 1 2 #include "aubio.h"2 #include <aubio.h> 3 3 4 4 int main(){ 5 5 /* allocate some memory */ 6 6 uint_t win_s = 4096; /* window size */ 7 uint_t channels = 100 0;/* number of channels */7 uint_t channels = 100; /* number of channels */ 8 8 fvec_t * in = new_fvec (win_s, channels); /* input buffer */ 9 9 cvec_t * fftgrain = new_cvec (win_s, channels); /* fft norm and phase */ … … 12 12 aubio_mfft_t * fft = new_aubio_mfft(win_s,channels); 13 13 /* fill input with some data */ 14 printf("initialised\n");14 //printf("initialised\n"); 15 15 /* execute stft */ 16 16 aubio_mfft_do (fft,in,fftgrain); 17 printf("computed forward\n");17 //printf("computed forward\n"); 18 18 /* execute inverse fourier transform */ 19 19 aubio_mfft_rdo(fft,fftgrain,out); 20 printf("computed backard\n");20 //printf("computed backard\n"); 21 21 del_aubio_mfft(fft); 22 22 del_fvec(in); 23 23 del_cvec(fftgrain); 24 24 del_fvec(out); 25 printf("memory freed\n"); 25 //printf("memory freed\n"); 26 aubio_cleanup(); 26 27 return 0; 27 28 }
Note: See TracChangeset
for help on using the changeset viewer.