Mercurial > hg > smallbox
comparison util/classes/@audio/buffer.m @ 192:f1e601cc916d danieleb
removed error check for wLength
author | Daniele Barchiesi <daniele.barchiesi@eecs.qmul.ac.uk> |
---|---|
date | Thu, 01 Mar 2012 16:57:51 +0000 |
parents | f8bc99a5470c |
children | 82b0d3f982cb |
comparison
equal
deleted
inserted
replaced
184:8fc38e8df8c6 | 192:f1e601cc916d |
---|---|
5 function obj = buffer(obj,wLength,overlap,window,method) | 5 function obj = buffer(obj,wLength,overlap,window,method) |
6 | 6 |
7 %% Check inputs & Defaults | 7 %% Check inputs & Defaults |
8 error(nargchk(2, 5, nargin, 'struct')); | 8 error(nargchk(2, 5, nargin, 'struct')); |
9 if rem(length(obj.s),wLength) | 9 if rem(length(obj.s),wLength) |
10 error('The wLength must be an integer divisor of the signal length!'); | 10 % error('The wLength must be an integer divisor of the signal length!'); |
11 end | 11 end |
12 if ~exist('overlap','var') || isempty(overlap), overlap = 0; end | 12 if ~exist('overlap','var') || isempty(overlap), overlap = 0; end |
13 if ~exist('method','var') || isempty(method), method = 'standard'; end | 13 if ~exist('method','var') || isempty(method), method = 'standard'; end |
14 | 14 |
15 %% Buffer audio | 15 %% Buffer audio |