projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98e9d69
)
src/spectral/phasevoc.c: set scaling to 1./3 if hop_s = win_s / 8, .5 otherwise
author
Paul Brossier
<piem@piem.org>
Thu, 28 Apr 2016 17:39:10 +0000
(19:39 +0200)
committer
Paul Brossier
<piem@piem.org>
Thu, 28 Apr 2016 17:39:10 +0000
(19:39 +0200)
src/spectral/phasevoc.c
patch
|
blob
|
history
diff --git
a/src/spectral/phasevoc.c
b/src/spectral/phasevoc.c
index
61c0c0f
..
ea149c8
100644
(file)
--- a/
src/spectral/phasevoc.c
+++ b/
src/spectral/phasevoc.c
@@
-120,7
+120,13
@@
aubio_pvoc_t * new_aubio_pvoc (uint_t win_s, uint_t hop_s) {
pv->hop_datasize = pv->hop_s * sizeof(smpl_t);
// for reconstruction with 75% overlap
- pv->scale = 2./3.;
+ if (win_s == hop_s * 4) {
+ pv->scale = 2./3.;
+ } else if (win_s == hop_s * 8) {
+ pv->scale = 1./3.;
+ } else {
+ pv->scale = .5;
+ }
return pv;