Diff of /demos/demo_blockproc_paramequalizer.m [76dce7] .. [89ea83] Maximize Restore

  Switch to unified view

a/demos/demo_blockproc_paramequalizer.m b/demos/demo_blockproc_paramequalizer.m
...
...
47
% Setup blocktream
47
% Setup blocktream
48
fs = block(source,varargin{:},'loadind',p);
48
fs = block(source,varargin{:},'loadind',p);
49
49
50
% Cutoff/center frequency
50
% Cutoff/center frequency
51
feq = [0.0060, 0.0156, 0.0313, 0.0625, 0.1250, 0.2600]*fs;
51
feq = [0.0060, 0.0156, 0.0313, 0.0625, 0.1250, 0.2600]*fs;
52
53
% To allow the Java object initialize properly
54
pause(0.1);
55
52
56
% Build the filters
53
% Build the filters
57
[filts(1).Ha, filts(1).Hb] = parlsf(feq(1),blockpanelget(p,'band1'),fs);
54
[filts(1).Ha, filts(1).Hb] = parlsf(feq(1),blockpanelget(p,'band1'),fs);
58
[filts(2).Ha, filts(2).Hb] = parpeak(feq(2),Q,blockpanelget(p,'band2'),fs);
55
[filts(2).Ha, filts(2).Hb] = parpeak(feq(2),Q,blockpanelget(p,'band2'),fs);
59
[filts(3).Ha, filts(3).Hb] = parpeak(feq(3),Q,blockpanelget(p,'band3'),fs);
56
[filts(3).Ha, filts(3).Hb] = parpeak(feq(3),Q,blockpanelget(p,'band3'),fs);
...
...
95
  end
92
  end
96
93
97
  % Play the block
94
  % Play the block
98
  blockplay(f);
95
  blockplay(f);
99
end
96
end
97
blockdone();
100
% Close the control panel
98
% Close the control panel
101
p.close();
99
p.close();
102
%fobj.close();
100
%fobj.close();
103
101
104
function [Ha,Hb]=parlsf(fc,G,Fs)
102
function [Ha,Hb]=parlsf(fc,G,Fs)