% tool
% 
%   INPUT VALUES:
%  
%   RETURN VALUE:
%
% 
% (c) 2003-2008, University of Cambridge, Medical Research Council 
% Maintained by Tom Walters (tcw24@cam.ac.uk), written by Stefan Bleeck (stefan@bleeck.de)
% http://www.pdn.cam.ac.uk/cnbh/aim2006
% $Date: 2008-06-10 18:00:16 +0100 (Tue, 10 Jun 2008) $
% $Revision: 585 $

function scaler=getfiltervaluehighpass(cur_fre,cutoff,dbperoctave)


%feststellen, wieviel octaven ich über dem cutoff bin:
octs=log2(cur_fre/cutoff);

% wieviel dB sind das?
nrdB=octs*dbperoctave;

scaler=power(10,(-nrdB/20));

% gib nur die Werte > Cutoff zurück
scaler=min(1,scaler);






