EE599-020 Audio Signals and Systems Digital Signal Processing (Synthesis) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.

Slides:



Advertisements
Similar presentations
Design of Digital IIR Filter
Advertisements

Nonrecursive Digital Filters
EE513 Audio Signals and Systems Digital Signal Processing (Synthesis) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
Lecture 7 Linear time invariant systems
Signal and System IIR Filter Filbert H. Juwono
Chapter 6 Infinite Impulse Response Filter Design.
Filtering Filtering is one of the most widely used complex signal processing operations The system implementing this operation is called a filter A filter.
Infinite Impulse Response (IIR) Filters
So far We have introduced the Z transform
LINEAR-PHASE FIR FILTERS DESIGN
Sampling, Reconstruction, and Elementary Digital Filters R.C. Maher ECEN4002/5002 DSP Laboratory Spring 2002.
EECS 20 Chapter 9 Part 21 Convolution, Impulse Response, Filters Last time we Revisited the impulse function and impulse response Defined the impulse (Dirac.
EE513 Audio Signals and Systems Wiener Inverse Filter Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
AGC DSP AGC DSP Professor A G Constantinides 1 Digital Filter Specifications Only the magnitude approximation problem Four basic types of ideal filters.
EEE422 Signals and Systems Laboratory Filters (FIR) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
Systems: Definition Filter
EE Audio Signals and Systems Psychoacoustics (Masking) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
Digital Signals and Systems
Practical Signal Processing Concepts and Algorithms using MATLAB
EE513 Audio Signals and Systems Digital Signal Processing (Systems) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
DSP. What is DSP? DSP: Digital Signal Processing---Using a digital process (e.g., a program running on a microprocessor) to modify a digital representation.
Chapter 5 Frequency Domain Analysis of Systems. Consider the following CT LTI system: absolutely integrable,Assumption: the impulse response h(t) is absolutely.
1 Lecture 5: March 20, 2007 Topics: 1. Design of Equiripple Linear-Phase FIR Digital Filters (cont.) 2. Comparison of Design Methods for Linear- Phase.
SIGNAL PROCESSING WITH MATLAB Presented by: Farah Hani Nordin Dr. Farrukh Hafiz Nagi.
MATLAB for Signal Processing The MathWorks Inc. Natick, MA USA Filter Design.
IIR Filter design (cf. Shenoi, 2006) The transfer function of the IIR filter is given by Its frequency responses are (where w is the normalized frequency.
Chapter 5 Frequency Domain Analysis of Systems. Consider the following CT LTI system: absolutely integrable,Assumption: the impulse response h(t) is absolutely.
Copyright ©2010, ©1999, ©1989 by Pearson Education, Inc. All rights reserved. Discrete-Time Signal Processing, Third Edition Alan V. Oppenheim Ronald W.
1 Lab. 4 Sampling and Rate Conversion  Sampling:  The Fourier transform of an impulse train is still an impulse train.  Then, x x(t) x s (t)x(nT) *
Fundamentals of Digital Signal Processing. Fourier Transform of continuous time signals with t in sec and F in Hz (1/sec). Examples:
Chapter 7 Finite Impulse Response(FIR) Filter Design
1 Introduction to Digital Filters Filter: A filter is essentially a system or network that selectively changes the wave shape, amplitude/frequency and/or.
Digital filters Honza Černocký, ÚPGM. Aliases Numerical filters Discrete systems Discrete-time systems etc. 2.
Chapter 9-10 Digital Filter Design. Objective - Determination of a realizable transfer function G(z) approximating a given frequency response specification.
1 Conditions for Distortionless Transmission Transmission is said to be distortion less if the input and output have identical wave shapes within a multiplicative.
Lecturer: Dr Igor Khovanov Office: D207 Syllabus: Biomedical Signal Processing. Examples of signals. Linear System Analysis. Laplace.
Lecture 5 BME452 Biomedical Signal Processing 2013 (copyright Ali Işın, 2013)1 BME 452 Biomedical Signal Processing Lecture 5  Digital filtering.
Copyright © 2003 Texas Instruments. All rights reserved. DSP C5000 Chapter 15 Infinite Impulse Response (IIR) Filter Implementation.
EE422 Signals and Systems Laboratory Infinite Impulse Response (IIR) filters Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
Chapter 7. Filter Design Techniques
1 Digital Signal Processing Digital Signal Processing  IIR digital filter structures  Filter design.
Chapter 4 LTI Discrete-Time Systems in the Transform Domain
6.0 Time/Frequency Characterization of Signals/Systems
DISP 2003 Lecture 5 – Part 1 Digital Filters 1 Frequency Response Difference Equations FIR versus IIR FIR Filters Properties and Design Philippe Baudrenghien,
Digital Signal Processing Lecture 6 Frequency Selective Filters
Finite Impulse Response Filtering EMU-E&E Engineering Erhan A. Ince Dec 2015.
Professor A G Constantinides 1 Digital Filter Specifications We discuss in this course only the magnitude approximation problem There are four basic types.
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE445S Real-Time Digital Signal Processing Lab Spring.
Digital Signal Processing
IIR Filter design (cf. Shenoi, 2006)
UNIT - 5 IIR FILTER DESIGN.
Lecture: IIR Filter Design
EEE422 Signals and Systems Laboratory
IIR Filters FIR vs. IIR IIR filter design procedure
Infinite Impulse Response (IIR) Filters
J McClellan School of Electrical and Computer Engineering
Fourier Series FIR About Digital Filter Design
Sampling and Quantization
Sampling and Reconstruction
EE Audio Signals and Systems
LINEAR-PHASE FIR FILTERS DESIGN
3.4 Frequency-domain Filters
MMSE Optimal Design: The Least Squares method
Ideal Filters One of the reasons why we design a filter is to remove disturbances Filter SIGNAL NOISE We discriminate between signal and noise in terms.
Usıng the impulse sampling method Prepared by: Dr. Erhan A. INCE
Quadrature-Mirror Filter Bank
Chapter 7 Finite Impulse Response(FIR) Filter Design
Tania Stathaki 811b LTI Discrete-Time Systems in Transform Domain Ideal Filters Zero Phase Transfer Functions Linear Phase Transfer.
Chapter 7 Finite Impulse Response(FIR) Filter Design
DIGITAL SIGNAL PROCESSING WITH MATLAB
Presentation transcript:

EE Audio Signals and Systems Digital Signal Processing (Synthesis) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky

Filters Filter are designed based on specifications given by:  spectral magnitude emphasis  delay and phase properties through the group delay and phase spectrum  implementation and computational structures Matlab functions for filter design  (IIR) besself, butter, cheby1, cheby2, ellip, prony, stmcb  (FIR) fir1, fir2, kaiserord, firls, remez, remezord, fircls, fircls1, cremez  (Implementation) filter, filtfilt, dfilt  (Analysis) freqz, FDAtool, SPtool

Filter Specifications Example:Low-pass filter frequency response

Filter Specifications Example Low-pass filter frequency response (in dB)

Filter Specifications Example Low-pass filter frequency response (in dB) with ripple in both bands

Filter Spec Functions The transfer function magnitude or magnitude response: The transfer function phase or phase response: The group delay:

Basic Filter Design The following commands generate filter coefficients for basic low-pass, high-pass, band- pass, band-stop filters:  For linear phase FIR filters: fir1  For non-linear phase IIR filter: besself, butter, cheby1, cheby2, ellip Example: With function “fir1”, design an FIR high-pass filter for signal sampled at 8 kHz with cutoff at 500 Hz. Use order 10 and order 50 and compare phase and magnitude spectra with “freqz” command. Use “grpdelay” to examine delay properties of the filter. Also use command “filter” to filter a frequency swept signal from 20 to 2000 Hz over 4 seconds with unit amplitude.

Basic Filter Design Example: With function “cheby2” design an IIR Chebyshev Type II high-pass filter for signal sampled at 8 kHz with cutoff at 500 Hz. And stop band ripple of 30 dB down. Use order 5 and order 10 and compare phase and magnitude spectra with freqz command. Use grpdelay to examine delay characteristics. Also use command filter to filter a frequency swept signal from 20 to 2000 Hz over 2 seconds with unit amplitude. Example: With function “butter” design an IIR Butterworth band-pass filter for signal sampled at 20 MHz with with a sharp passband from 3.5 MHz to 9MHz. Use order 5 and verify design of phase and magnitude spectra with freqz command. Also use command filter and filtfilt to filter a an ultrasonic signal received from a medical imaging probe.

Filtfilt = Zero Phase Filtering Consider and N point signal x(n) and filter impulse response h(n) Convolve sequences to obtain w(n) and reverse the order of w(n) Convolve w(N-n) with h(n) and reverse results to obtain y(n) Note the effective filter of x(n) is H*(k)H(k), which has zero phase and the magnitude of H(k) magnitude squared.

Homework (1) a)Create a tone at 350 Hz with sampling rate 8000, amplitude.8, and duration 4 seconds. Add white noise (use the “randn” function) with a signal to noise ratio of 10 dB. Use the “fir1” command to design a 20 and 100 th order band- pass filter from 300 Hz to 400 Hz. Plot the magnitude response of the filters. Plot the mean spectra of the signal (use the “psd” function). Use “filter” to filter the signal and Listen to the sound before and after filtering. Describe and explain the differences you hear between the 3 signals. b)Repeat part (a) comparing a 5 th order elliptical filter with passband ripple of.5 dB and stopband ripple of 30 dB and a 5 th order Butterworth filter.

Filter Design with Spectral Magnitude Criteria The follow commands generate filter coefficients for an arbitrary filter shape or impulse response.  For linear phase FIR filters: fir2, firls  The frequency points are specified with a vector of points of the normalized frequency axis and a corresponding vector indicating the amplitude at each of those points.  For non-linear phase IIR filter: prony, stmcb  The filter is specified in terms an impulse response and the IIR filter model (with numerator and denominator order specified) is fitted to the response to minimize error.

Basic Filter Design Example: Record a voice repeating vowel sounds for about 10 seconds at fs = Hz, and compute its average spectrum. From the picture of the average spectrum magnitude, determine a spectral shape vector for use with function “fir2” to create a filter that matches the voice spectrum. Add white noise to another voice signal from the same person to achieve a 6dB SNR and use filter to see how well the noise can be reduced with the filter you designed. Example: Generate an approximate impulse response of a room and record it with fs=11025 Hz. Use the “prony” function to attempt to model the room distortion as an IIR filter (you have to guess some the orders and test to see if it works).

Homework(2) Record room noise for about 10 seconds at fs = Hz, and compute its average spectrum (use the ‘psd’ function). From the picture of the average spectrum magnitude, determine a spectral shape vector for use with function “fir2” to create a filter that matches the noise spectrum. Filter a white noise sequence with the FIR filter you designed and compare the sound of white noise before and after filtering with the room noise filter. Briefly describe your observation.

Useful Filter Functions The sinc function and the rectangular pulse form a Fourier transform pair. Sketch these functions and label the null points of the sinc function. What would a shift of the rect function in frequency do to the sinc function in the time domain?

Useful Filter Functions The sinc function and the rectangular pulse form a Fourier transform pair. Sketch these function and label the null points of the sinc function. What would a shift of the rect function in time do to the sinc function in the frequency domain?

Ideal Low-Pass Filter The rect function in the frequency domain represents the ideal low-pass filter. If the ideal low-pass filter were implemented in the time domain, what would the convolution kernel look like? Comment on the causality of this filter.

Ideal Interpolation Function If the rect function in the frequency domain has B/2 equal to the Nyquist frequency. Then the time domain sinc null fall on sampling increments and the following convolution becomes the reconstruction or interpolation filter to restore a sampled band-limited signal from its samples: where T = 1/B.

Homework(3) Use the interpolation function on the previous page to upsample by a factor of 10 the band-limited function given in terms of its samples below, with band limit.5 Hz. The sampling rate (B) was 1 Hz. F = [ ] Note: a) Matlab has a sinc function (see help sinc), b) your upsampled function should have 150 samples in it, and c) a step edge is not bandlimited so the interpolated bandlimited function will have overshoot and undershoot between the given samples (i.e. it will not look like a sharper step).