Mercurial > hg > ishara
comparison dsp/synth/unbuffer_nu.m @ 36:9e7be347b3a0
Renamed sequence classes to avoid clashes with seq methods;
Fixed default slicing dimension while retaining behaviour of window.m;
Updated use of sequences in dsp/synth.
author | samer |
---|---|
date | Thu, 24 Jan 2013 14:51:23 +0000 |
parents | c75bb62b90a9 |
children |
comparison
equal
deleted
inserted
replaced
35:f1ce7876346a | 36:9e7be347b3a0 |
---|---|
4 % seq([[1,_]]) ~'sequence of overlapping frames', | 4 % seq([[1,_]]) ~'sequence of overlapping frames', |
5 % seq(natural) ~'sequence of hop sizes' | 5 % seq(natural) ~'sequence of hop sizes' |
6 % -> seq([[1,_]]) ~'sequence of de-overlapped frames'. | 6 % -> seq([[1,_]]) ~'sequence of de-overlapped frames'. |
7 | 7 |
8 function Y=unbuffer_nu(X,hop) | 8 function Y=unbuffer_nu(X,hop) |
9 Y=zipaccum(@olap,{hop,X},[]); | 9 Y=zipaccum(@olap,[],hop,X); |
10 | 10 |
11 function [y,s1]=olap(hop,x,s) | 11 function [y,s1]=olap(hop,x,s) |
12 ls=length(s); | 12 ls=length(s); |
13 lx=length(x); | 13 lx=length(x); |
14 if lx>=hop | 14 if lx>=hop |