Changeset 83a768e for src


Ignore:
Timestamp:
Apr 28, 2016, 7:39: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:
215b33c
Parents:
98e9d69
Message:

src/spectral/phasevoc.c: set scaling to 1./3 if hop_s = win_s / 8, .5 otherwise

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/spectral/phasevoc.c

    r98e9d69 r83a768e  
    121121
    122122  // for reconstruction with 75% overlap
    123   pv->scale = 2./3.;
     123  if (win_s == hop_s * 4) {
     124    pv->scale = 2./3.;
     125  } else if (win_s == hop_s * 8) {
     126    pv->scale = 1./3.;
     127  } else {
     128    pv->scale = .5;
     129  }
    124130
    125131  return pv;
Note: See TracChangeset for help on using the changeset viewer.