Mercurial > hg > aimc
annotate trunk/matlab/bmm/carfac/ERB_Hz.m @ 516:68c15d43fcc8
Added MATLAB code for Lyon's CAR-FAC filter cascade.
author | tom@acousticscale.org |
---|---|
date | Wed, 15 Feb 2012 21:26:40 +0000 |
parents | |
children | aa282a2b61bb |
rev | line source |
---|---|
tom@516 | 1 function ERB = ERB_Hz(CF_Hz, ERB_break_freq, ERB_Q) |
tom@516 | 2 % function ERB = ERB_Hz(CF_Hz, ERB_break_freq, ERB_Q) |
tom@516 | 3 % |
tom@516 | 4 % Auditory filter nominal Equivalent Rectangular Bandwidth |
tom@516 | 5 % Ref: Glasberg and Moore: Hearing Research, 47 (1990), 103-138 |
tom@516 | 6 % ERB = 24.7 * (1 + 4.37 * CF_Hz / 1000); |
tom@516 | 7 |
tom@516 | 8 if nargin < 3 |
tom@516 | 9 ERB_Q = 1000/(24.7*4.37); % 9.2645 |
tom@516 | 10 if nargin < 2 |
tom@516 | 11 ERB_break_freq = 1000/4.37; % 228.833 |
tom@516 | 12 end |
tom@516 | 13 end |
tom@516 | 14 |
tom@516 | 15 ERB = (ERB_break_freq + CF_Hz) / ERB_Q; |