Audio Sieving Using Signal Filters

Audio Sieving Using Signal Filters

AUDIO SIEVING USING SIGNAL FILTERS A project under V.6.2 – Signals and System Engineering Yatharth Aggarwal Sagar Mayank Chauhan Rajan Table of Contents Introduction ............................................................................................................. 2 Filters .......................................................................................................................... 4 Butterworth Filter ............................................................................................. 7 Chebyshev Filter (Type 1) ............................................................................. 9 Chebyshev Filter (Type 2) .......................................................................... 11 Filter performance............................................................................................. 13 Bibliography ......................................................................................................... 15 1 | Page Introduction Noise-cancellation feature in headphones measure the external ambient noise with a microphone, and generate a signal that matches the noise, But with the opposite amplitude. This “anti-noise” (filter) is added to the original music signal and effectively interfere destructively with the ambient noise. This addition of anti-noise might also depend upon certain mathematical function which is known as filtering process. The motivation for the project came from a question paper of University of Colorado of ECE department. With that lead we will: Design a Bandstop filter with the following specifications: ñ Passbands: 0 – 1400 Hz and 1,900 – 5,512.5Hz ñ Stopband: 1,600 - 1,700Hz ñ Tolerance in the passband: 0.5 dB ñ Maximum gain in the stopBand: 100 dB. And will implement the filter using each of the following design methods: ñ Butterworth ñ Chebyshev Type I ñ Chebyshev Type II For a noisy signal(sound file) given here [1] The software tool used here is MATLAB provided By Mathworks[2]. The purpose of this assignment is to compare the above mentioned Bandstop filters with the same cut-off frequencies, transition Band, and ripple. 2 | Page The sound file consists of a song which we need and filter out rest of the other sounds which in this is heard at maximum deciBels. The following graphs are that of noisy sound signal. Frequency Figure I: Graph (top) is x(t) versus time and bottom graph represents the fourier transform X(f) and f (frequency) The x(t) graph seems to periodic at some point indicating the sound is repetitive. The second graph left part (beginning from x-axis = 6000) should not Be considered as it is made just for numerical values By the software. 3 | Page Filters In signal processing, a filter is a device or process that removes from a signal some unwanted component or feature[3]. Filtering is a class of signal processing, which involves the designing of filters in such a manner that they either do complete or partial suppression of some aspect of the signal. Filters can Be classified in several different groups, depending on what criteria are used for classification. The two major types of digital filters are finite impulse response digital filters (FIR filters) and infinite impulse response digital filters (IIR). Some Basic terminology: ñ The frequency response can Be classified into a number of different Band forms descriBing which frequency bands the filter passes (the passband) and which it rejects (the stopband): o Low-pass filter: low frequencies are passed, high frequencies are attenuated. o High-pass filter: high frequencies are passed, low frequencies are attenuated. o Band-pass filter: only frequencies in a frequency Band are passed. o Band-stop filter: only frequencies in a frequency Band are attenuated. o Notch filter: rejects just one specific frequency - an extreme Band-stop filter. o ComB filter: has multiple regularly spaced narrow passbands giving the Bandform the appearance of a comB. o All-pass filter: all frequencies are passed, But the phase of the output is modified. ñ Cut-off frequency is the frequency beyond which the filter will not pass signals. ñ Roll-off is the rate at which attenuation increases Beyond the cut-off frequency. ñ Transition Band, the (usually narrow) Band of frequencies Between a passband and stopband. ñ Ripple is the variation of the filter's insertion loss in the passband. ñ The order of a filter is the degree of the approximating polynomial and in passive filters corresponds to the numBer of elements required to Build it. Increasing order increases roll-off and Brings the filter closer to the ideal response, But also the longer the impulse response is and the longer the latency will Be. Designing filters comes with many trade-offs; among the parameters to take into account are the cut-off frequencies, transition Band, ripple, processing power available, and whether linear phase is necessary. In this case the filter should allow frequencies on the range of [0, 1400] and [1900, 5,512.5] Hz with a tolerance of 0.5dB. The stopband is a region from [1600, 1700] Hz with a maximum gain of -100dB. The filters are then applied to a song with noise in the stopband region; the filtered song can then Be heard. Digital filter attenuation is usually expressed in terms of the logarithmic deciBel scale (dB). The attenuation measured in deciBels can Be found using the following expression: 4 | Page � = 20 log (�(�)) where H(f) is the transfer function of the filter. This transfer function tells how the filter Behaves as it is defined as: �(�) �(�) = , �(�) where Y(f) is the output signal and X(f) is the input signal to the system in terms of their z- transforms when function is linear and discrete in time. The transfer function of all linear time-invariant filters generally share certain characteristics: ñ For filters which are constructed of discrete components, their transfer function must Be the ratio of two polynomials in ‘f’, i.e. a rational function of ‘f’. The order of the transfer function will Be the highest power of ‘f’ encountered in either the numerator or the denominator. ñ The coefficients of the polynomials of the transfer function will Be real or occur in complex conjugate pairs. �� ∏ (1 − � � ) ( ) � � = = � ∏ (1 − �� ) �� where: ñ bi are the feedforward filter coefficients (non-recursive part) ñ aj are the feedBack filter coefficients (recursive part) ñ H0 is a constant ñ qi are the zeros of the transfer function ñ pj are the poles of the transfer function. 5 | Page Let us now define the three filters mathematically The passBand and stopband gains Gp, Gs and the corresponding attenuations in dB are de- fined in terms of the “ripple” parameters εp, εs as follows: The magnitude responses of the analog Butterworth, Chebyshev, and elliptic filters are given as functions of the analog frequency Ω by: where CN(x) is the order-N Chebyshev polynomial, that is, CN(x)= cos(N cos−1 x), and cd(x, k) denotes the JacoBian elliptic function cd with modulus k and real quarter-period K 6 | Page Butterworth Filter Butterworth filters[4] are designed to Be maximally flat; when compared to other filters, it has a slower roll off, But no ripple near the corner frequencies. In this case the order comes out to Be 18. Figure 2 displays the magnitude. Note how there is no ripple in the magnitude transition, just a smooth decay. The pole-zero diagram in Figure 3 illustrates how the Butterworth had 9 zeros on the unit circle at 1650 Hz surrounded By a semicircle of nine poles. Each zero and pole is accompanied By its complex conjugate mirrored across the real (x) axis. With a relatively low order, the Butterworth design only needs 37 (=2n+1 calculations, where n is the order of the transfer function) add/multiply operations per input sample. Figure II: Butterworth magnitude versus frequency response 7 | Page Figure III: Butterworth pole-zero plot Figure IV: Butterworth impulse response with 100 data points 8 | Page Chebyshev Filter (Type 1) Chebyshev filters[5] are Based on a concept called Chebyshev polynomials; put simply, these coefficients descriBe polynomials that are Bounded to a one By one Box centered at the origin and diverge elsewhere. Though these filters have a steeper roll off than Butterworth, they have ripple in the passband. The ripple is difficult to see in Figure 5, the magnitude as phase plot Note the difference Between Figure 5 and Figure 2, the magnitude responses of the CheByshev Type I and Butterworth filters, respectively. Though CheByshev filters have a faster roll off, the rate of attenuation change seems similar here. The pole-zero diagram, Figure 6, is different than that of the Butterworth, But has the same idea: surround n zeros locally with n poles. The impulse response is shown in Figure 7 and is fairly similar in shape to the Butterworth. 25 add/multiply operations are required as order here goes 12. Figure V: Magnitude of Chebyshev- 1 response (Notice ripples near the passband segment) 9 | Page Figure VI: Chebyshev Type 1 pole-zero plot Figure VII: Chebyshev Type 1 impulse response with 100 sample points 10 | Page Chebyshev Filter (Type 2) The Chebyshev Type II filter[5] is very similar to the Type I. However, instead of ripple in the passband, it occurs in the stopband. Figure 8, the magnitude, shows how the Type II filter rolls off smoothly (with no ripple), then ripples Between 1600 and 1700 Hz Before smoothly returning to the passband. The pole-zero diagram in Figure 9 more closely resembles the Butterworth; the zeros are not in one location, But the poles surround

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    19 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us