FIR Digital Filter Design
The Window Method
Bandpass Filter Design Example
Matlab codeSearch Spectral Audio Signal Processing
Would you like to be notified by email when Julius Orion Smith III publishes a new entry into his blog?
fs=20000; % sampling rate F=[3000 4000 6000 8000]; % band limits A=[0 1 0]; % band type: 0='stop', 1='pass' dev=[0.0001 10^(0.1/20)-1 0.0001]; % ripple/attenuation spec [M,Wn,beta,typ]= kaiserord(F,A,dev,fs); % window parameters b=fir1(M,Wn,typ,kaiser(M+1,beta),'noscale'); % filter design
Note the conciseness of the Matlab code thanks to the use of kaiserord and fir1 from the Signal Processing Toolbox.
