Changeset 1d4fc4a


Ignore:
Timestamp:
Mar 21, 2006, 7:03:37 PM (14 years ago)
Author:
Paul Brossier <piem@altern.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
Children:
9771488
Parents:
2e2bfff
Message:

add windowing, correct phase interpolation
add windowing, correct phase interpolation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/pitchfcomb.c

    r2e2bfff r1d4fc4a  
    8484          p->winput->data[0][k] = p->win->data[0][k] * input->data[0][k];
    8585  }
    86   aubio_mfft_do(p->fft,input,p->fftOut);
     86  aubio_mfft_do(p->fft,p->winput,p->fftOut);
    8787
    8888  for (k=0; k<=p->fftSize/2; k++) {
     
    100100
    101101    /* map delta phase into +/- Pi interval */
    102     tmp = aubio_unwrap2pi(tmp) + PI;
     102    tmp = aubio_unwrap2pi(tmp);
    103103
    104104    /* get deviation from bin frequency from the +/- Pi interval */
    105     tmp = p->stepSize/(smpl_t)p->fftSize*tmp/(TWO_PI);
     105    tmp = p->fftSize/(smpl_t)p->stepSize*tmp/(TWO_PI);
    106106
    107107    /* compute the k-th partials' true frequency */
Note: See TracChangeset for help on using the changeset viewer.