[xiph-commits] r17973 - trunk/chirptest
xiphmont at svn.xiph.org
xiphmont at svn.xiph.org
Sat May 7 15:23:45 PDT 2011
Author: xiphmont
Date: 2011-05-07 15:23:45 -0700 (Sat, 07 May 2011)
New Revision: 17973
Modified:
trunk/chirptest/window.c
Log:
Center the tgauss window properly
Modified: trunk/chirptest/window.c
===================================================================
--- trunk/chirptest/window.c 2011-05-07 22:09:04 UTC (rev 17972)
+++ trunk/chirptest/window.c 2011-05-07 22:23:45 UTC (rev 17973)
@@ -73,7 +73,7 @@
static void tgauss_deep(float *x, int n){
int i;
for(i=0;i<n;i++){
- float f = (i-n/2.)/(n/2.);
+ float f = (i+.5-n/2.)/(n/2.);
x[i] = exp(-TGB*pow(f,2)) * pow(1.-fabs(f),TGA);
}
}
More information about the commits
mailing list