Mercurial > hg > aimc
comparison 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 |
comparison
equal
deleted
inserted
replaced
454:49b7b984e957 | 516:68c15d43fcc8 |
---|---|
1 function ERB = ERB_Hz(CF_Hz, ERB_break_freq, ERB_Q) | |
2 % function ERB = ERB_Hz(CF_Hz, ERB_break_freq, ERB_Q) | |
3 % | |
4 % Auditory filter nominal Equivalent Rectangular Bandwidth | |
5 % Ref: Glasberg and Moore: Hearing Research, 47 (1990), 103-138 | |
6 % ERB = 24.7 * (1 + 4.37 * CF_Hz / 1000); | |
7 | |
8 if nargin < 3 | |
9 ERB_Q = 1000/(24.7*4.37); % 9.2645 | |
10 if nargin < 2 | |
11 ERB_break_freq = 1000/4.37; % 228.833 | |
12 end | |
13 end | |
14 | |
15 ERB = (ERB_break_freq + CF_Hz) / ERB_Q; |