5.0

5.0 | 1 rating Rate this file 34 downloads (last 30 days) File Size: 1.77 KB File ID: #16568

Bass / Treble Shelving Filter

by Jeff Tackett

 

25 Sep 2007 (Updated 26 Sep 2007)

Code covered by BSD License  

Generates coefficients for a 2nd order IIR digital filter

Download Now | Watch this File

File Information
Description

Derive coefficients for a shelving filter with a given amplitude and cutoff frequency. All coefficients are calculated as described in Udo
Zolzer's DAFX book (p. 50 -55).

Usage: [B,A] = shelving(G, Fc, Fs, Q, type);

            G is the logrithmic gain (in dB)
            FC is the center frequency
            Fs is the sampling rate
            Q adjusts the slope be replacing the sqrt(2) term
            type is a character string defining filter type
                 Choices are: 'Base_Shelf' or 'Treble_Shelf'

Typically this filter is used for multi-band equalization of audio. For example a 3-band equalizer (Bass/Mid/Treble) might use:

Bass = Bass shelving Filter
Mid = Peaking Filter
Treble = Treble shelving Filter

MATLAB release MATLAB 7.3 (R2006b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
04 May 2009 Andrey Krishkevich  
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
audio processing Jeff Tackett 22 Oct 2008 09:28:15
video processing Jeff Tackett 22 Oct 2008 09:28:15
bass shelf Jeff Tackett 22 Oct 2008 09:28:15
equalization Jeff Tackett 22 Oct 2008 09:28:15
shelving iir filter Jeff Tackett 22 Oct 2008 09:28:15
treble shelf Jeff Tackett 22 Oct 2008 09:28:15
eq Jeff Tackett 22 Oct 2008 09:28:16
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com