[Julius-cvs 547] CVS update: julius4/libsent/src/wav2mfcc

Back to archive index

sumom****@users***** sumom****@users*****
2010年 5月 6日 (木) 17:59:21 JST


Index: julius4/libsent/src/wav2mfcc/mfcc-core.c
diff -u julius4/libsent/src/wav2mfcc/mfcc-core.c:1.4 julius4/libsent/src/wav2mfcc/mfcc-core.c:1.5
--- julius4/libsent/src/wav2mfcc/mfcc-core.c:1.4	Tue Jun 17 10:20:51 2008
+++ julius4/libsent/src/wav2mfcc/mfcc-core.c	Thu May  6 17:59:21 2010
@@ -17,7 +17,7 @@
  * @author Akinobu Lee
  * @date   Mon Aug  7 11:55:45 2006
  *
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
  * 
  */
 /*
@@ -130,10 +130,16 @@
   float a, b;
 
   w->sintbl_wcep = (double *)mymalloc(sizeof(double) * mfcc_dim);
-  a = PI / lifter;
-  b = lifter / 2.0;
-  for(i=0;i<mfcc_dim;i++) {
-    w->sintbl_wcep[i] = 1.0 + b * sin((i+1) * a);
+  if (lifter > 0) {
+    a = PI / lifter;
+    b = lifter / 2.0;
+    for(i=0;i<mfcc_dim;i++) {
+      w->sintbl_wcep[i] = 1.0 + b * sin((i+1) * a);
+    }
+  } else {
+    for(i=0;i<mfcc_dim;i++) {
+      w->sintbl_wcep[i] = 1.0;
+    }
   }
   w->sintbl_wcep_len = mfcc_dim;
 #ifdef MFCC_TABLE_DEBUG



Julius-cvs メーリングリストの案内
Back to archive index