# HG changeset patch # User Chris Cannam # Date 1367855405 -3600 # Node ID dd0be537bd97ddeb87e056b483525588dabf7e18 # Parent 3f4f3af724b058a844d89b45c13f9f1008ff2150 Simplify diff -r 3f4f3af724b0 -r dd0be537bd97 yetilab/stream/filter.yeti --- a/yetilab/stream/filter.yeti Mon May 06 16:49:45 2013 +0100 +++ b/yetilab/stream/filter.yeti Mon May 06 16:50:05 2013 +0100 @@ -36,11 +36,7 @@ (n = min count (nsamples - pos); pos := pos + n; if not s.finished? then - mat.concat (Horizontal ()) - (fromStream :: - if got == n then [] - else [mat.zeroMatrix { columns = n - got, rows = s.channels}] - fi); + mat.resizedTo { rows = s.channels, columns = n } (s.read n); else mat.zeroMatrix { columns = n, rows = s.channels } fi),