EE513 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

Chapter 8. FIR Filter Design
Signal Processing in the Discrete Time Domain Microprocessor Applications (MEE4033) Sogang University Department of Mechanical Engineering.
Digital Signal Processing IIR Filter IIR Filter Design by Approximation of Derivatives Analogue filters having rational transfer function H(s) can be.
Nonrecursive Digital Filters
ECE 8443 – Pattern Recognition EE 3512 – Signals: Continuous and Discrete Objectives: Filters and Difference Equations Signal Flow Graphs FIR and IIR Filters.
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
Unit 9 IIR Filter Design 1. Introduction The ideal filter Constant gain of at least unity in the pass band Constant gain of zero in the stop band The.
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.
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.
The Wavelet Tutorial: Part3 The Discrete Wavelet Transform
6.2 - The power Spectrum of a Digital PAM Signal A digtal PAM signal at the input to a communication channl scale factor (where 2d is the “Euclidean.
SIGNAL PROCESSING WITH MATLAB Presented by: Farah Hani Nordin Dr. Farrukh Hafiz Nagi.
EE Audio Signals and Systems Digital Signal Processing (Synthesis) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
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) *
ECE 4710: Lecture #6 1 Bandlimited Signals  Bandlimited waveforms have non-zero spectral components only within a finite frequency range  Waveform is.
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.
Quiz 1 Review. Analog Synthesis Overview Sound is created by controlling electrical current within synthesizer, and amplifying result. Basic components:
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.
1 Digital Signal Processing. 2 Digital Signal Processing Topic 6: Filters-Introduction 1. Simple Filters 2. Ideal Filters 3. Linear Phase and FIR filter.
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.
First-Order System Revisited
Chapter 4 LTI Discrete-Time Systems in the Transform Domain
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
Lecture 09b Finite Impulse Response (FIR) Filters
Finite Impulse Response Filtering EMU-E&E Engineering Erhan A. Ince Dec 2015.
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE445S Real-Time Digital Signal Processing Lab Spring.
IIR Filter design (cf. Shenoi, 2006)
Figure 8.1 (p. 615) Time-domain condition for distortionless transmission of a signal through a linear time-invariant system. Signals and Systems, 2/E.
UNIT - 5 IIR FILTER DESIGN.
EEE422 Signals and Systems Laboratory
Infinite Impulse Response (IIR) Filters
Fourier Series FIR About Digital Filter Design
Sampling and Quantization
Sampling and Reconstruction
EE Audio Signals and Systems
ME2300 DIGITAL SIGNAL PROCESSING [Slide 6] IIR Filter Design BY DREAMCATCHER
LINEAR-PHASE FIR FILTERS DESIGN
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
Tania Stathaki 811b LTI Discrete-Time Systems in Transform Domain Ideal Filters Zero Phase Transfer Functions Linear Phase Transfer.
DIGITAL SIGNAL PROCESSING WITH MATLAB
Presentation transcript:

EE513 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, firpm, firpmord, 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 Specification Functions The transfer function magnitude or magnitude response: The transfer function phase or phase response: The group delay (envelope delay) :

Filter Analysis Example Consider a filter with transfer function: Compute and plot the magnitude response, phase response, and group delay. Note pole-zero diagram. What would be expected for the magnitude response?

Filter Analysis Example

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 stopband ripple of 30 dB down. Use order 5 and order 10 for comparing 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 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, which has zero phase and the magnitude of.

Filter Design with Spectral Magnitude Criteria The following 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 containing 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 (numerator and denominator order specified) is fitted to the response to minimize mean square error of the impulse response.

Basic Filter Design Example: Record a voice repeating random speech for about 20 seconds at f s = 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 approximates 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 f s =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).

Exercise Example Record room noise (or another interesting noise process ) for about 10 seconds at f s = 8000 Hz, and compute its average spectrum (use the pwelch 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 to white noise before and after filtering with the room noise filter. Briefly describe your observations, comment on differences and similarities.

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?  What would a shift of the sinc function in time do to the rect function in the frequency 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. This is the filter that is required to perfectly reconstruct a bandlimited signal (sampled above its Nyquist rate) from its samples.

Ideal Interpolation Function If the rect function in the frequency domain has B/2 equal to the Nyquist frequency. Then the time domain sinc nulls 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.