Diff of /demos/demo_blockproc_paramequalizer.m [e5fffd] .. [7c7a96] Maximize Restore

  Switch to unified view

a/demos/demo_blockproc_paramequalizer.m b/demos/demo_blockproc_paramequalizer.m
...
...
64
   
64
   
65
  % Obtain gains of the respective filters
65
  % Obtain gains of the respective filters
66
  G = blockpanelget(p,'band1','band2','band3','band4','band5','band6');
66
  G = blockpanelget(p,'band1','band2','band3','band4','band5','band6');
67
  
67
  
68
  % Check if any of the user-defined gains is different from the actual ones
68
  % Check if any of the user-defined gains is different from the actual ones
69
  % and do recomputauion.
69
  % and do recomputation.
70
   for ii=1:numel(filts)
70
   for ii=1:numel(filts)
71
     if G(ii)~=filts(ii).G
71
     if G(ii)~=filts(ii).G
72
        filts(ii).G = G(ii);
72
        filts(ii).G = G(ii);
73
        if strcmpi('lsf',filts(ii).type)
73
        if strcmpi('lsf',filts(ii).type)
74
           [filts(ii).Ha, filts(ii).Hb] = parlsf(feq(ii),filts(ii).G,fs);
74
           [filts(ii).Ha, filts(ii).Hb] = parlsf(feq(ii),filts(ii).G,fs);
...
...
92
  end
92
  end
93
93
94
  % Play the block
94
  % Play the block
95
  blockplay(f);
95
  blockplay(f);
96
end
96
end
97
blockdone();
97
blockdone(p);
98
% Close the control panel
99
p.close();
100
%fobj.close();
101
98
102
function [Ha,Hb]=parlsf(fc,G,Fs)
99
function [Ha,Hb]=parlsf(fc,G,Fs)
103
% PARLSF Parametric Low-Shelwing filter
100
% PARLSF Parametric Low-Shelwing filter
104
%   Input parameters:
101
%   Input parameters:
105
%         fm    : Cut-off frequency
102
%         fm    : Cut-off frequency