Changeset c2a39af


Ignore:
Timestamp:
Apr 29, 2016, 8:07:10 PM (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:
ee092a8
Parents:
215b33c
Message:

src/spectral/phasevoc.c: perfect reconstruction for overlap = 50% without modifications

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/spectral/phasevoc.c

    r215b33c rc2a39af  
    6767  fvec_ishift(pv->synth);
    6868  /* windowing */
    69   fvec_weight(pv->synth, pv->w);
     69  // if overlap = 50%, do not apply window (identity)
     70  if (pv->hop_s * 2 < pv->win_s) {
     71    fvec_weight(pv->synth, pv->w);
     72  }
    7073  /* additive synthesis */
    7174  aubio_pvoc_addsynth(pv, synthnew);
     
    125128  } else if (win_s == hop_s * 8) {
    126129    pv->scale = 1./3.;
     130  } else if (win_s == hop_s * 2) {
     131    pv->scale = 1.;
    127132  } else {
    128133    pv->scale = .5;
Note: See TracChangeset for help on using the changeset viewer.