Audio processing using Matlab Elena Grassi. Sampling Read values from a continuous signal Equally spaced time interval (sampling frequency)

Slides:



Advertisements
Similar presentations
Nonrecursive Digital Filters
Advertisements

Lecture 23 Filters Hung-yi Lee.
EE513 Audio Signals and Systems Digital Signal Processing (Synthesis) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
Signal and System IIR Filter Filbert H. Juwono
Chapter 6 Infinite Impulse Response Filter Design.
CHAPTER 7 Digital Filter Design Wang Weilian School of Information Science and Technology Yunnan University.
MALVINO Electronic PRINCIPLES SIXTH EDITION.
Infinite Impulse Response (IIR) Filters
1 BIEN425 – Lecture 13 By the end of the lecture, you should be able to: –Outline the general framework of designing an IIR filter using frequency transform.
ECE651 Digital Signal Processing I Digital IIR Filter Design.
So far We have introduced the Z transform
Active Filters Conventional passive filters consist of LCR networks. Inductors are undesirable components: They are particularly non-ideal (lossy) They.
Continuous-time Signal Sampling Prof. Siripong Potisuk.
Discrete-Time IIR Filter Design from Continuous-Time Filters Quote of the Day Experience is the name everyone gives to their mistakes. Oscar Wilde Content.
Data Acquisition. Data Acquisition System Analog Signal Signal Conditioner ADC Digital Processing Communication.
Practical Signal Processing Concepts and Algorithms using MATLAB
Formatting and Baseband Modulation
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.
Numerical algorithms for power system protection Prof. dr. sc. Ante Marušić, doc. dr. sc. Juraj Havelka University of Zagreb Faculty of Electrical Engineering.
Ni.com Data Analysis: Time and Frequency Domain. ni.com Typical Data Acquisition System.
Sine Waves. Notation s 0 … s n … s N or s(0), … s(n), … s(N) Sketch the following digital signals: δ (n) = 1, n = 0 = 0, otherwise u (n) = 1, n >= 0 =
Introduction Chapter 1. Signals  A signal is a function of time, e.g., f is the force on some mass vout is the output voltage of some circuit p is the.
Electronic Circuit DKT 214
Chapter 7 IIR Filter Design
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.
Copyright ©2010, ©1999, ©1989 by Pearson Education, Inc. All rights reserved. Discrete-Time Signal Processing, Third Edition Alan V. Oppenheim Ronald W.
Filtering. What Is Filtering? n Filtering is spectral shaping. n A filter changes the spectrum of a signal by emphasizing or de-emphasizing certain frequency.
Active Filters. Filters A filter is a system that processes a signal in some desired fashion. A continuous-time signal or continuous signal of x(t) is.
Lecture 10: IIR Filter Designs XILIANG LUO 2014/11 1.
Dan Ellis 1 ELEN E4810: Digital Signal Processing Topic 8: Filter Design: IIR 1.Filter Design Specifications 2.Analog Filter Design 3.Digital.
1 Digital Signal Processing. 2 Digital Signal Processing Topic 8: Filter Design: IIR 1. Filter Design Specifications 2. Analog Filter Design 3. Digital.
Active Filter A. Marzuki. 1 Introduction 2 First- Order Filters 3 Second-Order Filters 4 Other type of Filters 5 Real Filters 6 Conclusion Table of Contents.
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
EMT212 - ANALOGUE ELECTRONIC II
ECE 4710: Lecture #16 1 Bandpass Spectrum  Spectrum of bandpass signal is directly related to spectrum of complex envelope  We have already shown that.
Chapter 9-10 Digital Filter Design. Objective - Determination of a realizable transfer function G(z) approximating a given frequency response specification.
Measurements & Electrical Analog Devices (Part 2).
1 Conditions for Distortionless Transmission Transmission is said to be distortion less if the input and output have identical wave shapes within a multiplicative.
Chapter 7. Filter Design Techniques
First-Order System Revisited
Filtering x y.
CHAPTER 5 Digital Processing of Continuous- Time Signal Wangweilian School of Information Science and Technology Yunnan University.
Continuous-time Signal Sampling
The Story of Wavelets Theory and Engineering Applications
Analog Lowpass Filter Prototype Design ELEC 423 Prof. Siripong Potisuk.
15 Oct 2009Comp30291 Section 21 UNIVERSITY of MANCHESTER School of Computer Science Comp30291: Digital Media Processing Section 2 Analogue filtering.
Op amp 2 Active Filters.
Finite Impulse Response Filtering EMU-E&E Engineering Erhan A. Ince Dec 2015.
Chapter 5 Active Filter By En. Rosemizi Bin Abd Rahim EMT212 – Analog Electronic II.
Digital Signal Processing
IIR Filter design (cf. Shenoi, 2006)
UNIT - 5 IIR FILTER DESIGN.
Darshan Institute of Engineering & Technology - Rajkot
Lecture: IIR Filter Design
IIR Filters FIR vs. IIR IIR filter design procedure
Sampling and Aliasing Prof. Brian L. Evans
Infinite Impulse Response (IIR) Filters
Filter Design Techniques
VADODARA INSTITUTE OF ENGINEERING
ME2300 DIGITAL SIGNAL PROCESSING [Slide 6] IIR Filter Design BY DREAMCATCHER
LINEAR-PHASE FIR FILTERS DESIGN
Chapter 2 Signal Sampling and Quantization
3.4 Frequency-domain Filters
Analogue filtering UNIVERSITY of MANCHESTER School of Computer Science
EE521 SystemView Example James K Beard, Ph.D. (215) 12/8/2018
Chapter 7 Finite Impulse Response(FIR) Filter Design
Chapter 7 Finite Impulse Response(FIR) Filter Design
Presentation transcript:

Audio processing using Matlab Elena Grassi

Sampling Read values from a continuous signal Equally spaced time interval (sampling frequency)

A/D (analog in/digital out) AI = analoginput('winsound'); addchannel(AI,1); set(AI,'SampleRate',44100) set(AI,'SamplesPerTrigger',4*44100) set(AI,'TriggerType','Manual') start(AI) trigger(AI) data = getdata(AI); delete(AI), clear AI

Spectrogram Short time Fourier transform Tradeoff frequency/time resolution. Note: dB= 20*log10 () specgram(y, 256, fs) title('Spectrogram [dB]')

D/A (digital in/analog out) AO = analogoutput('winsound'); addchannel(AO,1); set(AO,'SampleRate',22050) set(AO,'TriggerType','Manual') putdata(AO,x) start(AO) trigger(AO) waittilstop(AO,5) delete(AO), clear AO

Aliasing When sampling is too slow for a signal’s BW, high frequency content cannot be observed and it leaks into lower frequencies, thus distorting the signal. Minimum sampling required to capture the signal accurately: Nyquist frequency= 2*BW If not possible, apply antialiasing filter.

Filters Modify frequency content of signals. Classification according to their pass/stop bands: Lowpass (smoothing filter) Highpass Bandpass Stopband Specify corner frequency(ies), normalized wrt ½ sampling frequency. Example: 2000/(fs/2) for 2000 Hz.

Example

Filter Types Classification according to their roll-off, flatness, phase: Bessel: linear phase, preserves wave shape. Butterworth: flat and monotonic, sacrifice roll-off steepness. Chebyshev I: equiripple in passband and monotonic in stopband. Chebyshev II: monotonic in passband and equiripple in stopband, roll off slower than type I.

Example [b,a]= butter(6,2000*2/fsi,'low'); b= numerator polynomial in z a= denominator polynomial in z order corner freq sampling freq

Filter frequency response h= impz(b,a,N); H=(abs(fft(h))); fscale= fsi/N*(1:N/2); plot(fscale,H(1:N/2),'r') xlabel('f [Hz]') title('Filter frequency response')

Filter order Related to complexity (hardware or numerical) and how many samples of data are used. Higher order Steepness Trade off with complexity/numerical stability