gammatone.m ( File view )

  • By taher 2013-09-27
  • View(s):38
  • Download(s):1
  • Point(s): 1
			function r = gammatone(in, numChan, fRange, fs)
% Produce an array of filtered responses from a Gammatone filterbank.
% The first variable is required.
% 
% Usage: Produce gammatone filter 
%
% Input:  
% 
% Example call: gammatone
% 
% numChan: number of filter channels.
% fRange: frequency range.
% fs: sampling frequency.
% 
% References: 
%
% Auther: Taher Bagheri Fashkhami
% Modified by: February 2012
% Copyright (c) ...
% -------------------------------------------------------------------------

if nargin < 2
    numChan = 128;       % default number of filter channels in filterbank
end
if nargin < 3
    fRange = [80, 5000]; % default frequency range in Hz
end
if nargin < 4
    fs = 44000; %default sampling frequency
end

filterOrder = 4;    % filter order
gL = 2048;          % gammatone filter length or 128 ms for 16 kHz sampling rate

sigLength = length('E:\University\University of Tbriz_Term 3\PR\Project\s_allison.wav');   % input signal length

phase(1:numChan) = zeros(numChan,1);        % initial phases
erb_b = hz2erb(fRange);       % upper and lower bound of ERB
erb = [erb_b(1):diff(erb_b)/(numChan-1):erb_b(2)];     % ERB segment
cf = erb2hz(erb);       % center frequenc
...
...
(Please download the complete source code to view)
			
...
Expand> <Close

Want complete source code? Download it here

Point(s): 1

Download
0 lines left, continue to read
Sponsored links

File list

Tips: You can preview the content of files by clicking file names^_^
Name Size Date
meddis.m1.67 kB15-06-12|13:13
gammatone.m1.81 kB07-10-12|07:03
gammatoneFast.m1.57 kB24-06-12|17:25
...
Sponsored links

gammatone.m (2.60 kB)

Need 1 point
Your Point(s)

Your Point isn't enough.

Get point immediately by PayPal

More(Debit card / Credit card / PayPal Credit / Online Banking)

Submit your source codes. Get more point

LOGIN

Don't have an account? Register now
Need any help?
Mail to: support@codeforge.com

切换到中文版?

CodeForge Chinese Version
CodeForge English Version

Where are you going?

^_^"Oops ...

Sorry!This guy is mysterious, its blog hasn't been opened, try another, please!
OK

Warm tip!

CodeForge to FavoriteFavorite by Ctrl+D