Changeset 4b6937b


Ignore:
Timestamp:
Nov 7, 2007, 5:19:31 PM (12 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
Children:
18a82b3
Parents:
4368223
Message:

fft.c: use ifdef, not if, improve indentation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/fft.c

    r4368223 r4b6937b  
    4646  uint_t fft_size;
    4747  real_t *in, *out;
    48   fftw_plan   pfw, pbw;
     48  fftw_plan pfw, pbw;
    4949  fft_data_t * specdata;     /* complex spectral data */
    5050  fvec_t * compspec;
     
    6161  /* create plans */
    6262#ifdef HAVE_COMPLEX_H
    63   s->fft_size = winsize/2+1;
     63  s->fft_size = winsize/2 + 1;
    6464  s->specdata = (fft_data_t*)fftw_malloc(sizeof(fft_data_t)*s->fft_size);
    6565  s->pfw = fftw_plan_dft_r2c_1d(winsize, s->in,  s->specdata, FFTW_ESTIMATE);
     
    102102    }
    103103    fftw_execute(s->pfw);
    104 #if HAVE_COMPLEX_H
     104#ifdef HAVE_COMPLEX_H
    105105    compspec->data[i][0] = REAL(s->specdata[0]);
    106106    for (j = 1; j < s->fft_size -1 ; j++) {
     
    121121  const smpl_t renorm = 1./(smpl_t)s->winsize;
    122122  for (i = 0; i < compspec->channels; i++) {
    123 #if HAVE_COMPLEX_H
     123#ifdef HAVE_COMPLEX_H
    124124    s->specdata[0] = compspec->data[i][0];
    125125    for (j=1; j < s->fft_size - 1; j++) {
Note: See TracChangeset for help on using the changeset viewer.