25
25
% By default, a Hann window on the frequency side is choosen, but the
26
26
% window can be changed by passing any of the window types from
27
27
% FIRWIN as an optional parameter.
28
% Run getfield(getfield(arg_firwin,'flags'),'wintype') to get a cell
29
% array of window types available.
29
% Because the downsampling rates of the channels must all divide the
30
% signal length, FILTERBANK will only work for multiples of the
31
% least common multiple of the downsampling rates. See the help of
31
% The integer downsampling rates of the channels must all divide the
32
% signal length, FILTERBANK will only work for input signal lengths
33
% being multiples of the least common multiple of the downsampling rates.
34
% See the help of FILTERBANKLENGTH.
35
% The fractional downsampling rates restrict the filterbank to a single
34
38
% [g,a]=ERBFILTERS(...,'regsampling') constructs a non-uniform
35
39
% filterbank with integer subsampling factors.
37
41
% [g,a]=ERBFILTERS(...,'uniform') constructs a uniform filterbank
38
% where the downsampling rate is the same for all the channels. This
39
% results in most redundant representation, which produces nice plots.
42
% where the integer downsampling rate is the same for all the channels. This
43
% results in most redundant representation which produces nice plots.
41
45
% [g,a]=ERBFILTERS(...,'fractional') constructs a filterbank with
42
% fractional downsampling rates a. The rates are constructed such
43
% that the filterbank can handle signal lengths that are multiples of
44
% L, so the benefit of the fractional downsampling is that you get to
45
% choose the value returned by FILTERBANKLENGTH. This results in the
46
% least redundant system.
46
% fractional downsampling rates a.
47
% This results in the least redundant system.
48
49
% [g,a]=ERBFILTERS(...,'fractionaluniform') constructs a filterbank with
49
50
% fractional downsampling rates a, which are uniform for all filters
68
69
% system may no longer be painless.
70
71
% 'symmetric' Create filters that are symmetric around their centre
71
% frequency. This is the default.
72
% frequency. This is the default.'sqrtsquare','sqrtrect'
73
74
% 'warped' Create asymmetric filters that are symmetric on the
137
138
% Vancouver, Canada, May 2013. IEEE.
140
%@strong{Url}: @url{http://ltfat.sourceforge.net/doc/filterbank/erbfilters.php}
141
%@strong{Url}: @url{http://ltfat.github.io/doc/filterbank/erbfilters.html}
141
142
%@seealso{filterbank, ufilterbank, ifilterbank, ceil23}
144
% Copyright (C) 2005-2014 Peter L. Soendergaard <soender@users.sourceforge.net>.
145
% This file is part of LTFAT version 2.0.1
145
% Copyright (C) 2005-2015 Peter L. Soendergaard <peter@sonderport.dk>.
146
% This file is part of LTFAT version 2.1.0
147
148
% This program is free software: you can redistribute it and/or modify
148
149
% it under the terms of the GNU General Public License as published by
302
303
'inf','min_win',kv.min_win);
305
g=warpedblfilter(flags.wintype,fsupp_erb,fc,fs,@freqtoerb,@erbtofreq, ...
306
g = cell(1,numel(fc));
308
g{m}=warpedblfilter(flags.wintype,fsupp_erb,fc(m),fs,@freqtoerb,@erbtofreq, ...
309
'scal',scal(m),'inf');