Changeset 44755a0 for tests/src/spectral


Ignore:
Timestamp:
May 26, 2015, 11:23:25 AM (9 years ago)
Author:
Paul Brossier <piem@piem.org>
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
Message:

tests/src/spectral/test-fft.c: quieten and clarify

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/src/spectral/test-fft.c

    rc82a034 r44755a0  
    33int main (void)
    44{
    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
    67  fvec_t * in = new_fvec (win_s); // input buffer
    78  cvec_t * fftgrain = new_cvec (win_s); // fft norm and phase
     
    1920  in->data[6] = 5;
    2021  in->data[7] = 6;
    21   fvec_print(in);
     22  //fvec_print(in);
    2223
    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);
    2628
    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  }
    2932
    3033  // cleam up
    31   fvec_print(out);
     34  //fvec_print(out);
    3235  del_aubio_fft(fft);
    3336  del_fvec(in);
Note: See TracChangeset for help on using the changeset viewer.