changeset 287:d6811e2949ff

Periodic window probably better after all
author Chris Cannam
date Thu, 30 May 2013 17:56:29 +0100
parents 6ed6af2fc794
children 16a9ee99efcf
files yetilab/stream/framer.yeti yetilab/stream/test/test_framer.yeti
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/yetilab/stream/framer.yeti	Thu May 30 17:47:25 2013 +0100
+++ b/yetilab/stream/framer.yeti	Thu May 30 17:56:29 2013 +0100
@@ -112,7 +112,7 @@
    (var remaining = frames;
     var buffered = mat.zeroSizeMatrix ();
     var position = 0;
-    w = win.windowFunction (Hann ()) [ Symmetric true ] framesize;
+    w = win.windowFunction (Hann ()) [ Symmetric false ] framesize;
     channels = mat.height (head frames); // so we don't need to keep a head ptr
     filt.delayedBy (- framesize)
         {
--- a/yetilab/stream/test/test_framer.yeti	Thu May 30 17:47:25 2013 +0100
+++ b/yetilab/stream/test/test_framer.yeti	Thu May 30 17:56:29 2013 +0100
@@ -109,6 +109,11 @@
           [3,4,5], [4,5,6], [5,6,0], [6,0,0] ];
 ),
 
+"frames-4.2x8": \(
+    testFrames { framesize = 4, hop = 2 } 8
+        [ [0,0,1,2], [1,2,3,4], [3,4,5,6], [5,6,7,8], [7,8,0,0] ];
+),
+
 "overlapAdd-3.1": \(
     compareUsing (mat.equal)
        (fr.overlapAdd 1 3 1 [ mat.newRowVector (vec.fromList [ 1,2,3 ]),