Diff of /frames/frame.m [76dce7] .. [89ea83]  Maximize  Restore

Switch to unified view

a/frames/frame.m b/frames/frame.m
...
...
263
    F.red=sum(F.a(:,2)./F.a(:,1));
263
    F.red=sum(F.a(:,2)./F.a(:,1));
264
    F.length=@(Ls) filterbanklength(Ls,F.a);
264
    F.length=@(Ls) filterbanklength(Ls,F.a);
265
    F.lengthcoef=@(Ncoef) Ncoef/F.red;
265
    F.lengthcoef=@(Ncoef) Ncoef/F.red;
266
    F.native2coef=@(coef) cell2mat(coef(:));
266
    F.native2coef=@(coef) cell2mat(coef(:));
267
    F.coef2native=@(coef,s) mat2cell(coef,round(s(1)/F.red*F.a(:,2)./F.a(:,1)));
267
    F.coef2native=@(coef,s) mat2cell(coef,round(s(1)/F.red*F.a(:,2)./F.a(:,1)));
268
    F.frana=@(insig) F.native2coef(F,comp_filterbank(insig,F.g,F.a));
268
    F.frana=@(insig) F.native2coef(comp_filterbank(insig,F.g,F.a));
269
    F.frsyn=@(insig) comp_ifilterbank(F.coef2native(insig,size(insig)),...
269
    F.frsyn=@(insig) comp_ifilterbank(F.coef2native(insig,size(insig)),...
270
                                      F.g,F.a,round(size(insig,1)/F.red));
270
                                      F.g,F.a,round(size(insig,1)/F.red));
271
    
271
    
272
  case 'filterbankreal'
272
  case 'filterbankreal'
273
    F.red=2*sum(F.a(:,2)./F.a(:,1));
273
    F.red=2*sum(F.a(:,2)./F.a(:,1));