University of Bahrain

Size: px
Start display at page:

Download "University of Bahrain"

Transcription

1 University of Bahrain College of Engineering Dept of Electrical and Electronics Engineering Experiment 5 EEG 453 Multimedia Audio processing Objectives This experiment demonstrates different Audio processing techniques using MATLAB Laboratory Procedure Audio signals, much like images, can undergo filtering. It is somewhat easier to understand the impact of signal processing on audio, since audio needs not be translated from a spatial to a frequency domain. PART -I 1.1 To load a wave (PCM) audio file, Matlab provides the function wavread : music = wavread('music.wav'); It's important to capture the sampling frequency at which the sound was recorded, otherwise the speed of playback and results of further processing is not guaranteed to be correct:

2 [music, f] = wavread('music.wav'); To play a wave file at sampling frequency f: wavplay(music, f); To view the waveform, plot the wave. Since audio is represented with many thousand samples per second, it may be required to plot small portions of the waveform at a time. subplot(2,1,1), plot(music), title('entire waveform'); smallrange = : floor(f/100); subplot(2,1,2), plot(smallrange, music(smallrange)), title('100 milliseconds'); 1.2. Spectrogram 2-dimensional plots of audio waves can be used to easily identify magnitude; however, combined frequency distributions and magnitudes are more easily viewed in a spectrogram: specgram(music, 512, f); where 512 is the number of samples that are used for the discrete Fourier Transform, and thus a grouping factor of samples per column in the spectrogram image.

3 Plotting both the original waveform and the spectrogram, it is possible to find correspondences between the two graphical representations:

4 However, it is easier to find such similarities in smaller portions of audio. We can also find repeating patters: subplot(2,1,1), plot(music(100000:150000)), axis('tight'); subplot(2,1,2), specgram(music(100000:150000),128,f); 2.1.Filtering We will examine audio filtering in the sense of specific frequency suppression and extraction. There are many different types of filters available for the construction of filters. We will specifically use the Butterworth filter. Matlab includes function butter for building Butterworth filters of three sorts: 'low' : Low-pass filters, which remove frequencies greater than some specified value. 'high' : High-pass filters, which remove frequencies lower than some specified value. 'stop' : Stop-band filters, which remove frequencies in a given range of values. Frequencies values are specified in normalized terms between 0.0 and 1.0, where 1.0 corresponds to half the sampling frequency: f/2. A given frequency is thus expressed in terms of this value, for example, 1000Hz = 1000/(f/2). Filters are described in terms of 2 vectors ([b, a] = [numerator, denominator]).

5 To apply a filter to a 1-D audio waveform, Matlab provides function filtfilt, which takes as arguments the result [b, a] from butter, the waveform, and a value denoting the order (number of coefficients) of the filter. A filter's frequency response can be plotted using function freqz. Magnitude values at zero db are unaffected by the filter. Magnitude values below 0 db are suppressed Low-pass filter We design a 10th order low-pass filter to supress frequencies higher than 200Hz. fnorm = 200 / (f/2); [b,a] = butter(10, fnorm, 'low'); musiclow = filtfilt(b, a, music); The frequency response for this filter: freqz(b,a,128,f); wavplay(musiclow,f); Playing the new audio waveform clearly reveals that low (bass) frequencies are preserved, while all higher frequencies have been suppressed.

6 2.1.2 High-pass filter We design a 10th order high-pass filter to supress frequencies below 5kHz. fnorm = 5000 / (f/2); [b, a] = butter(10, fnorm, 'high'); musichigh = filtfilt(b, a, music); The frequency response of this filter freqz(b,a,128,f); wavplay(musichigh,f); Playing the new audio waveform reveals only high-pitched tones Stop-band filter fnorm = [500/(f/2), 2500/(f/2)]; [b, a] = butter(10, fnorm, 'stop'); musicband = filtfilt(b, a, music); The frequency response for this filter freqz(b,a,128,f); wavplay(musicband,f);

7 Part -II Recording Audio To record data from an audio input device (such as a microphone connected to your system) for processing in MATLAB: 1. Create an audiorecorder object. 2. Call the record or recordblocking method, where: record returns immediate control to the calling function or the command prompt even as recording proceeds. Specify the length of the recording in seconds, or end the recording with the stop method. Optionally, call the pause and resume methods. recordblocking retains control until the recording is complete. Specify the length of the recording in seconds. 3. Create a numeric array corresponding to the signal data using the getaudiodata method. For example, connect a microphone to your system and record your voice for 5 seconds. Capture the numeric signal data and create a plot: % Record your voice for 5 seconds.

8 recobj = audiorecorder; disp('start speaking.') recordblocking(recobj, 5); disp('end of Recording.'); % Play back the recording. play(recobj); % Store data in double-precision array. myrecording = getaudiodata(recobj); % Plot the samples. plot(myrecording); Create an audiorecorder object for CD-quality audio in stereo, and view its properties: recobj = audiorecorder(44100, 16, 2); get(recobj) %Collect a sample of your speech with a microphone, and plot the signal data: % Record your voice for 5 seconds. recobj = audiorecorder; disp('start speaking.') recordblocking(recobj, 5); disp('end of Recording.'); % Play back the recording. play(recobj); % Store data in double-precision array. myrecording = getaudiodata(recobj); % Plot the waveform. plot(myrecording);

9 PART III Create a WAV file of your own audio voice, and read portions of the file back into MATLAB. % Create WAV file in current folder. %Record your own voice, name the file as myfile and place it in current folder hfile = 'myfile.wav'; % Read the data back into MATLAB, and listen to audio. [y, Fs, nbits, readinfo] = wavread(hfile); sound(y, Fs); % Pause before next read and playback operation. duration = numel(y) / Fs; pause(duration + 2) % Read and play only the first 2 seconds. nsamples = 2 * Fs; [y2, Fs] = wavread(hfile, nsamples); sound(y2, Fs); pause(4) % Read and play the middle third of the file. sizeinfo = wavread(hfile, 'size'); tot_samples = sizeinfo(1); startpos = tot_samples / 3; endpos = 2 * startpos; [y3, Fs] = wavread(hfile, [startpos endpos]); sound(y3, Fs);

Experiment 8: Sampling

Experiment 8: Sampling Prepared By: 1 Experiment 8: Sampling Objective The objective of this Lab is to understand concepts and observe the effects of periodically sampling a continuous signal at different sampling rates, changing

More information

BIOE 198MI Biomedical Data Analysis. Spring Semester Lab6: Signal processing and filter design

BIOE 198MI Biomedical Data Analysis. Spring Semester Lab6: Signal processing and filter design BIOE 198MI Biomedical Data Analysis. Spring Semester 2018. Lab6: Signal processing and filter design Problem Statement: In this lab, we are considering the problem of designing a window-based digital filter

More information

(ans: Five rows and five columns accommodate 25 switch locations. )

(ans: Five rows and five columns accommodate 25 switch locations. ) Chapter 2 Sensors & Actuators 2.1 Problems Problem 2.1 (Music icon address What screen-row-column address would the controller assign to the music icon shown in Figure 2.10 if the icon is located on the

More information

(ans: Five rows require a 3-bit code and ten columns a 4-bit code. Hence, each key has a 7 bit address.

(ans: Five rows require a 3-bit code and ten columns a 4-bit code. Hence, each key has a 7 bit address. Chapter 2 Edited with the trial version of Foxit Advanced PDF Editor Sensors & Actuators 2.1 Problems Problem 2.1 (Music icon address What screen-row-column address would the controller assign to the music

More information

Laboratory Assignment 2 Signal Sampling, Manipulation, and Playback

Laboratory Assignment 2 Signal Sampling, Manipulation, and Playback Laboratory Assignment 2 Signal Sampling, Manipulation, and Playback PURPOSE This lab will introduce you to the laboratory equipment and the software that allows you to link your computer to the hardware.

More information

Princeton ELE 201, Spring 2014 Laboratory No. 2 Shazam

Princeton ELE 201, Spring 2014 Laboratory No. 2 Shazam Princeton ELE 201, Spring 2014 Laboratory No. 2 Shazam 1 Background In this lab we will begin to code a Shazam-like program to identify a short clip of music using a database of songs. The basic procedure

More information

HCS / ACN 6389 Speech Perception Lab

HCS / ACN 6389 Speech Perception Lab HCS / ACN 6389 Speech Perception Lab Course Requirements Matlab problems & lab assignments (40%) Oral presentations (10%) Term project paper (50%) Dr. Peter Assmann Fall 2017 2 Term project: important

More information

EECE 323 Fundamentals of Digital Signal Processing. Spring Section A. Practical Homework MATLAB Application on Aliasing and Antialiasing

EECE 323 Fundamentals of Digital Signal Processing. Spring Section A. Practical Homework MATLAB Application on Aliasing and Antialiasing EECE 323 Fundamentals of Digital Signal Processing Spring 2013 Section A Practical Homework MATLAB Application on Aliasing and Antialiasing Student Name: Sharbel Dahlan ID: 1004018456 Instructor: Dr. Jinane

More information

Armstrong Atlantic State University Engineering Studies MATLAB Marina Sound Processing Primer

Armstrong Atlantic State University Engineering Studies MATLAB Marina Sound Processing Primer Armstrong Atlantic State University Engineering Studies MATLAB Marina Sound Processing Primer Prerequisites The Sound Processing Primer assumes knowledge of the MATLAB IDE, MATLAB help, arithmetic operations,

More information

Figure 1: Block diagram of Digital signal processing

Figure 1: Block diagram of Digital signal processing Experiment 3. Digital Process of Continuous Time Signal. Introduction Discrete time signal processing algorithms are being used to process naturally occurring analog signals (like speech, music and images).

More information

Digital Signal Processing ETI

Digital Signal Processing ETI 2012 Digital Signal Processing ETI265 2012 Introduction In the course we have 2 laboratory works for 2012. Each laboratory work is a 3 hours lesson. We will use MATLAB for illustrate some features in digital

More information

Digital Signal Processing ETI

Digital Signal Processing ETI 2011 Digital Signal Processing ETI265 2011 Introduction In the course we have 2 laboratory works for 2011. Each laboratory work is a 3 hours lesson. We will use MATLAB for illustrate some features in digital

More information

SMS045 - DSP Systems in Practice. Lab 1 - Filter Design and Evaluation in MATLAB Due date: Thursday Nov 13, 2003

SMS045 - DSP Systems in Practice. Lab 1 - Filter Design and Evaluation in MATLAB Due date: Thursday Nov 13, 2003 SMS045 - DSP Systems in Practice Lab 1 - Filter Design and Evaluation in MATLAB Due date: Thursday Nov 13, 2003 Lab Purpose This lab will introduce MATLAB as a tool for designing and evaluating digital

More information

MATLAB for Audio Signal Processing. P. Professorson UT Arlington Night School

MATLAB for Audio Signal Processing. P. Professorson UT Arlington Night School MATLAB for Audio Signal Processing P. Professorson UT Arlington Night School MATLAB for Audio Signal Processing Getting real world data into your computer Analysis based on frequency content Fourier analysis

More information

EP375 Computational Physics

EP375 Computational Physics EP375 Computational Physics Topic 12 SOUND PROCESSING Department of Engineering Physics Gaziantep University Apr 2016 Sayfa 1 Content 1. Introduction 2. Sound 3. Perception of Sound 4. Physics of Sound

More information

Massachusetts Institute of Technology Dept. of Electrical Engineering and Computer Science Spring Semester, Introduction to EECS 2

Massachusetts Institute of Technology Dept. of Electrical Engineering and Computer Science Spring Semester, Introduction to EECS 2 Massachusetts Institute of Technology Dept. of Electrical Engineering and Computer Science Spring Semester, 2007 6.082 Introduction to EECS 2 Lab #1: Matlab and Control of PC Hardware Goal:... 2 Instructions:...

More information

Electrical & Computer Engineering Technology

Electrical & Computer Engineering Technology Electrical & Computer Engineering Technology EET 419C Digital Signal Processing Laboratory Experiments by Masood Ejaz Experiment # 1 Quantization of Analog Signals and Calculation of Quantized noise Objective:

More information

EE 422G - Signals and Systems Laboratory

EE 422G - Signals and Systems Laboratory EE 422G - Signals and Systems Laboratory Lab 3 FIR Filters Written by Kevin D. Donohue Department of Electrical and Computer Engineering University of Kentucky Lexington, KY 40506 September 19, 2015 Objectives:

More information

EE422G Solution to Homework #8

EE422G Solution to Homework #8 EE4G Solution to Homework #8. MATLAB >> H = tf([ 4],[ 6 6]); >> H = tf([ ],[ - 5 5 4]); >> step(h).7 Step Response.6.5 Amplitude.4... 4 5 6 >> step(h) Time (sec).5 Step Response.5 Amplitude.5.5.5..5..5..5.4.45

More information

Project 0: Part 2 A second hands-on lab on Speech Processing Frequency-domain processing

Project 0: Part 2 A second hands-on lab on Speech Processing Frequency-domain processing Project : Part 2 A second hands-on lab on Speech Processing Frequency-domain processing February 24, 217 During this lab, you will have a first contact on frequency domain analysis of speech signals. You

More information

Fundamentals of Digital Audio *

Fundamentals of Digital Audio * Digital Media The material in this handout is excerpted from Digital Media Curriculum Primer a work written by Dr. Yue-Ling Wong (ylwong@wfu.edu), Department of Computer Science and Department of Art,

More information

Signal Processing. Introduction

Signal Processing. Introduction Signal Processing 0 Introduction One of the premiere uses of MATLAB is in the analysis of signal processing and control systems. In this chapter we consider signal processing. The final chapter of the

More information

Digital Signal Processing Laboratory 1: Discrete Time Signals with MATLAB

Digital Signal Processing Laboratory 1: Discrete Time Signals with MATLAB Digital Signal Processing Laboratory 1: Discrete Time Signals with MATLAB Thursday, 23 September 2010 No PreLab is Required Objective: In this laboratory you will review the basics of MATLAB as a tool

More information

Brief Introduction to Signals & Systems. Phani Chavali

Brief Introduction to Signals & Systems. Phani Chavali Brief Introduction to Signals & Systems Phani Chavali Outline Signals & Systems Continuous and discrete time signals Properties of Systems Input- Output relation : Convolution Frequency domain representation

More information

ECEn 487 Digital Signal Processing Laboratory. Lab 3 FFT-based Spectrum Analyzer

ECEn 487 Digital Signal Processing Laboratory. Lab 3 FFT-based Spectrum Analyzer ECEn 487 Digital Signal Processing Laboratory Lab 3 FFT-based Spectrum Analyzer Due Dates This is a three week lab. All TA check off must be completed by Friday, March 14, at 3 PM or the lab will be marked

More information

MAE143A Signals & Systems - Homework 9, Winter 2015 due by the end of class Friday March 13, 2015.

MAE143A Signals & Systems - Homework 9, Winter 2015 due by the end of class Friday March 13, 2015. MAEA Signals & Systems - Homework 9, Winter due by the end of class Friday March,. Question Three audio files have been placed on the class website: Waits.wav, WaitsAliased.wav, WaitsDecimated.wav. These

More information

Fourier Series and Gibbs Phenomenon

Fourier Series and Gibbs Phenomenon Fourier Series and Gibbs Phenomenon University Of Washington, Department of Electrical Engineering This work is produced by The Connexions Project and licensed under the Creative Commons Attribution License

More information

DSP First. Laboratory Exercise #11. Extracting Frequencies of Musical Tones

DSP First. Laboratory Exercise #11. Extracting Frequencies of Musical Tones DSP First Laboratory Exercise #11 Extracting Frequencies of Musical Tones This lab is built around a single project that involves the implementation of a system for automatically writing a musical score

More information

SGN Bachelor s Laboratory Course in Signal Processing Audio frequency band division filter ( ) Name: Student number:

SGN Bachelor s Laboratory Course in Signal Processing Audio frequency band division filter ( ) Name: Student number: TAMPERE UNIVERSITY OF TECHNOLOGY Department of Signal Processing SGN-16006 Bachelor s Laboratory Course in Signal Processing Audio frequency band division filter (2013-2014) Group number: Date: Name: Student

More information

EE 5410 Signal Processing

EE 5410 Signal Processing EE 54 Signal Processing MATLAB Exercise Telephone Touch-Tone Signal Encoding and Decoding Intended Learning Outcomes: On completion of this MATLAB laboratory exercise, you should be able to Generate and

More information

EE 464 Short-Time Fourier Transform Fall and Spectrogram. Many signals of importance have spectral content that

EE 464 Short-Time Fourier Transform Fall and Spectrogram. Many signals of importance have spectral content that EE 464 Short-Time Fourier Transform Fall 2018 Read Text, Chapter 4.9. and Spectrogram Many signals of importance have spectral content that changes with time. Let xx(nn), nn = 0, 1,, NN 1 1 be a discrete-time

More information

Signal Processing First Lab 20: Extracting Frequencies of Musical Tones

Signal Processing First Lab 20: Extracting Frequencies of Musical Tones Signal Processing First Lab 20: Extracting Frequencies of Musical Tones Pre-Lab and Warm-Up: You should read at least the Pre-Lab and Warm-up sections of this lab assignment and go over all exercises in

More information

Massachusetts Institute of Technology Department of Electrical Engineering & Computer Science 6.341: Discrete-Time Signal Processing Fall 2005

Massachusetts Institute of Technology Department of Electrical Engineering & Computer Science 6.341: Discrete-Time Signal Processing Fall 2005 Massachusetts Institute of Technology Department of Electrical Engineering & Computer Science 6.341: Discrete-Time Signal Processing Fall 2005 Project Assignment Issued: Sept. 27, 2005 Project I due: Nov.

More information

Experiment No. 6. Audio Tone Control Amplifier

Experiment No. 6. Audio Tone Control Amplifier Experiment No. 6. Audio Tone Control Amplifier By: Prof. Gabriel M. Rebeiz The University of Michigan EECS Dept. Ann Arbor, Michigan Goal: The goal of Experiment #6 is to build and test a tone control

More information

Project 2 - Speech Detection with FIR Filters

Project 2 - Speech Detection with FIR Filters Project 2 - Speech Detection with FIR Filters ECE505, Fall 2015 EECS, University of Tennessee (Due 10/30) 1 Objective The project introduces a practical application where sinusoidal signals are used to

More information

Mel Spectrum Analysis of Speech Recognition using Single Microphone

Mel Spectrum Analysis of Speech Recognition using Single Microphone International Journal of Engineering Research in Electronics and Communication Mel Spectrum Analysis of Speech Recognition using Single Microphone [1] Lakshmi S.A, [2] Cholavendan M [1] PG Scholar, Sree

More information

SGN Audio and Speech Processing

SGN Audio and Speech Processing Introduction 1 Course goals Introduction 2 SGN 14006 Audio and Speech Processing Lectures, Fall 2014 Anssi Klapuri Tampere University of Technology! Learn basics of audio signal processing Basic operations

More information

WHAT ELSE SAYS ACOUSTICAL CHARACTERIZATION SYSTEM LIKE RON JEREMY?

WHAT ELSE SAYS ACOUSTICAL CHARACTERIZATION SYSTEM LIKE RON JEREMY? WHAT ELSE SAYS ACOUSTICAL CHARACTERIZATION SYSTEM LIKE RON JEREMY? Andrew Greenwood Stanford University Center for Computer Research in Music and Acoustics (CCRMA) Aeg165@ccrma.stanford.edu ABSTRACT An

More information

Laboratory Assignment 4. Fourier Sound Synthesis

Laboratory Assignment 4. Fourier Sound Synthesis Laboratory Assignment 4 Fourier Sound Synthesis PURPOSE This lab investigates how to use a computer to evaluate the Fourier series for periodic signals and to synthesize audio signals from Fourier series

More information

Lab 3 FFT based Spectrum Analyzer

Lab 3 FFT based Spectrum Analyzer ECEn 487 Digital Signal Processing Laboratory Lab 3 FFT based Spectrum Analyzer Due Dates This is a three week lab. All TA check off must be completed prior to the beginning of class on the lab book submission

More information

Project 1. Notch filter Fig. 1: (Left) voice signal segment. (Right) segment corrupted by 700-Hz sinusoidal buzz.

Project 1. Notch filter Fig. 1: (Left) voice signal segment. (Right) segment corrupted by 700-Hz sinusoidal buzz. Introduction Project Notch filter In this course we motivate our study of theory by first considering various practical problems that we can apply that theory to. Our first project is to remove a sinusoidal

More information

DSP First. Laboratory Exercise #7. Everyday Sinusoidal Signals

DSP First. Laboratory Exercise #7. Everyday Sinusoidal Signals DSP First Laboratory Exercise #7 Everyday Sinusoidal Signals This lab introduces two practical applications where sinusoidal signals are used to transmit information: a touch-tone dialer and amplitude

More information

Lab 4 Fourier Series and the Gibbs Phenomenon

Lab 4 Fourier Series and the Gibbs Phenomenon Lab 4 Fourier Series and the Gibbs Phenomenon EE 235: Continuous-Time Linear Systems Department of Electrical Engineering University of Washington This work 1 was written by Amittai Axelrod, Jayson Bowen,

More information

Sampling and Reconstruction of Analog Signals

Sampling and Reconstruction of Analog Signals Sampling and Reconstruction of Analog Signals Chapter Intended Learning Outcomes: (i) Ability to convert an analog signal to a discrete-time sequence via sampling (ii) Ability to construct an analog signal

More information

HST.582J / 6.555J / J Biomedical Signal and Image Processing Spring 2007

HST.582J / 6.555J / J Biomedical Signal and Image Processing Spring 2007 MIT OpenCourseWare http://ocw.mit.edu HST.582J / 6.555J / 16.456J Biomedical Signal and Image Processing Spring 2007 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.

More information

The Formula for Sinusoidal Signals

The Formula for Sinusoidal Signals The Formula for I The general formula for a sinusoidal signal is x(t) =A cos(2pft + f). I A, f, and f are parameters that characterize the sinusoidal sinal. I A - Amplitude: determines the height of the

More information

speech signal S(n). This involves a transformation of S(n) into another signal or a set of signals

speech signal S(n). This involves a transformation of S(n) into another signal or a set of signals 16 3. SPEECH ANALYSIS 3.1 INTRODUCTION TO SPEECH ANALYSIS Many speech processing [22] applications exploits speech production and perception to accomplish speech analysis. By speech analysis we extract

More information

EEE - 321: Signals and Systems Lab Assignment 3

EEE - 321: Signals and Systems Lab Assignment 3 BILKENT UNIVERSITY ELECTRICAL AND ELECTRONICS ENGINEERING DEPARTMENT EEE - 321: Signals and Systems Lab Assignment 3 For Section-I report submission is due by 08.11.2017 For Section-II report submission

More information

Laboratory 5: Interfacing Circuits to Computers: Analog-to-Digital Conversion, Digital Filters, and Digital-to-Analog Conversion

Laboratory 5: Interfacing Circuits to Computers: Analog-to-Digital Conversion, Digital Filters, and Digital-to-Analog Conversion ES 3: Introduction to Electrical Systems Laboratory 5: Interfacing Circuits to Computers: Analog-to-Digital Conversion, Digital Filters, and Digital-to-Analog Conversion I. GOALS: In this laboratory you

More information

Signal Processing Toolbox

Signal Processing Toolbox Signal Processing Toolbox Perform signal processing, analysis, and algorithm development Signal Processing Toolbox provides industry-standard algorithms for analog and digital signal processing (DSP).

More information

EBU5375 Signals and Systems: Filtering and sampling in Matlab. Dr Jesús Requena Carrión

EBU5375 Signals and Systems: Filtering and sampling in Matlab. Dr Jesús Requena Carrión EBU5375 Signals and Systems: Filtering and sampling in Matlab Dr Jesús Requena Carrión Background: Ideal filters We have learnt three types of filters: lowpass, highpass and bandpass filters. We represent

More information

ECE 5655/4655 Laboratory Problems

ECE 5655/4655 Laboratory Problems Assignment #5 ECE 5655/4655 Laboratory Problems Make Note of the Following: Due MondayApril 29, 2019 If possible write your lab report in Jupyter notebook If you choose to use the spectrum/network analyzer

More information

THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering. EIE2106 Signal and System Analysis Lab 2 Fourier series

THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering. EIE2106 Signal and System Analysis Lab 2 Fourier series THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering EIE2106 Signal and System Analysis Lab 2 Fourier series 1. Objective The goal of this laboratory exercise is to

More information

JOURNAL OF OBJECT TECHNOLOGY

JOURNAL OF OBJECT TECHNOLOGY JOURNAL OF OBJECT TECHNOLOGY Online at http://www.jot.fm. Published by ETH Zurich, Chair of Software Engineering JOT, 2009 Vol. 9, No. 1, January-February 2010 The Discrete Fourier Transform, Part 5: Spectrogram

More information

EXPERIMENT 4 INTRODUCTION TO AMPLITUDE MODULATION SUBMITTED BY

EXPERIMENT 4 INTRODUCTION TO AMPLITUDE MODULATION SUBMITTED BY EXPERIMENT 4 INTRODUCTION TO AMPLITUDE MODULATION SUBMITTED BY NAME:. STUDENT ID:.. ROOM: INTRODUCTION TO AMPLITUDE MODULATION Purpose: The objectives of this laboratory are:. To introduce the spectrum

More information

DCSP-10: DFT and PSD. Jianfeng Feng. Department of Computer Science Warwick Univ., UK

DCSP-10: DFT and PSD. Jianfeng Feng. Department of Computer Science Warwick Univ., UK DCSP-10: DFT and PSD Jianfeng Feng Department of Computer Science Warwick Univ., UK Jianfeng.feng@warwick.ac.uk http://www.dcs.warwick.ac.uk/~feng/dcsp.html DFT Definition: The discrete Fourier transform

More information

Aberehe Niguse Gebru ABSTRACT. Keywords Autocorrelation, MATLAB, Music education, Pitch Detection, Wavelet

Aberehe Niguse Gebru ABSTRACT. Keywords Autocorrelation, MATLAB, Music education, Pitch Detection, Wavelet Master of Industrial Sciences 2015-2016 Faculty of Engineering Technology, Campus Group T Leuven This paper is written by (a) student(s) in the framework of a Master s Thesis ABC Research Alert VIRTUAL

More information

ECE438 - Laboratory 7a: Digital Filter Design (Week 1) By Prof. Charles Bouman and Prof. Mireille Boutin Fall 2015

ECE438 - Laboratory 7a: Digital Filter Design (Week 1) By Prof. Charles Bouman and Prof. Mireille Boutin Fall 2015 Purdue University: ECE438 - Digital Signal Processing with Applications 1 ECE438 - Laboratory 7a: Digital Filter Design (Week 1) By Prof. Charles Bouman and Prof. Mireille Boutin Fall 2015 1 Introduction

More information

SIGNALS AND SYSTEMS LABORATORY 3: Construction of Signals in MATLAB

SIGNALS AND SYSTEMS LABORATORY 3: Construction of Signals in MATLAB SIGNALS AND SYSTEMS LABORATORY 3: Construction of Signals in MATLAB INTRODUCTION Signals are functions of time, denoted x(t). For simulation, with computers and digital signal processing hardware, one

More information

Limitations of Sum-of-Sinusoid Signals

Limitations of Sum-of-Sinusoid Signals Limitations of Sum-of-Sinusoid Signals I So far, we have considered only signals that can be written as a sum of sinusoids. x(t) =A 0 + N Â A i cos(2pf i t + f i ). i=1 I For such signals, we are able

More information

A Guitar Overdrive/Distortion Effect of Digital Signal Processing

A Guitar Overdrive/Distortion Effect of Digital Signal Processing A Guitar Overdrive/Distortion Effect of Digital Signal Processing Instructor: William L. Martens Student: Cheng-Hao Chang; SID: 310106370; E-Mail: ccha5015@uni.sydney.edu.au 1. Problem Description Urban

More information

Chapter 1: Introduction to audio signal processing

Chapter 1: Introduction to audio signal processing Chapter 1: Introduction to audio signal processing KH WONG, Rm 907, SHB, CSE Dept. CUHK, Email: khwong@cse.cuhk.edu.hk http://www.cse.cuhk.edu.hk/~khwong/cmsc5707 Audio signal proce ssing Ch1, v.3c 1 Reference

More information

DSP First. Laboratory Exercise #2. Introduction to Complex Exponentials

DSP First. Laboratory Exercise #2. Introduction to Complex Exponentials DSP First Laboratory Exercise #2 Introduction to Complex Exponentials The goal of this laboratory is gain familiarity with complex numbers and their use in representing sinusoidal signals as complex exponentials.

More information

ECE 201: Introduction to Signal Analysis

ECE 201: Introduction to Signal Analysis ECE 201: Introduction to Signal Analysis Prof. Paris Last updated: October 9, 2007 Part I Spectrum Representation of Signals Lecture: Sums of Sinusoids (of different frequency) Introduction Sum of Sinusoidal

More information

(i) Understanding the basic concepts of signal modeling, correlation, maximum likelihood estimation, least squares and iterative numerical methods

(i) Understanding the basic concepts of signal modeling, correlation, maximum likelihood estimation, least squares and iterative numerical methods Tools and Applications Chapter Intended Learning Outcomes: (i) Understanding the basic concepts of signal modeling, correlation, maximum likelihood estimation, least squares and iterative numerical methods

More information

PROBLEM SET 6. Note: This version is preliminary in that it does not yet have instructions for uploading the MATLAB problems.

PROBLEM SET 6. Note: This version is preliminary in that it does not yet have instructions for uploading the MATLAB problems. PROBLEM SET 6 Issued: 2/32/19 Due: 3/1/19 Reading: During the past week we discussed change of discrete-time sampling rate, introducing the techniques of decimation and interpolation, which is covered

More information

SGN Audio and Speech Processing

SGN Audio and Speech Processing SGN 14006 Audio and Speech Processing Introduction 1 Course goals Introduction 2! Learn basics of audio signal processing Basic operations and their underlying ideas and principles Give basic skills although

More information

Computational Perception /785

Computational Perception /785 Computational Perception 15-485/785 Assignment 1 Sound Localization due: Thursday, Jan. 31 Introduction This assignment focuses on sound localization. You will develop Matlab programs that synthesize sounds

More information

SP.718 Special Topics at Edgerton Center: D-Lab Health: Medical Technologies for the Developing World

SP.718 Special Topics at Edgerton Center: D-Lab Health: Medical Technologies for the Developing World MIT OpenCourseWare http://ocw.mit.edu SP.718 Special Topics at Edgerton Center: D-Lab Health: Medical Technologies for the Developing World Spring 2009 For information about citing these materials or our

More information

LABORATORY - FREQUENCY ANALYSIS OF DISCRETE-TIME SIGNALS

LABORATORY - FREQUENCY ANALYSIS OF DISCRETE-TIME SIGNALS LABORATORY - FREQUENCY ANALYSIS OF DISCRETE-TIME SIGNALS INTRODUCTION The objective of this lab is to explore many issues involved in sampling and reconstructing signals, including analysis of the frequency

More information

DSP First Lab 4a: Synthesis of Sinusoidal Signals Speech Synthesis

DSP First Lab 4a: Synthesis of Sinusoidal Signals Speech Synthesis DSP First Lab 4a: Synthesis of Sinusoidal Signals Speech Synthesis FORMAL Lab Report: You must write a formal lab report that describes your system for speech synthesis (Section 4). This lab report will

More information

Lab 8. Signal Analysis Using Matlab Simulink

Lab 8. Signal Analysis Using Matlab Simulink E E 2 7 5 Lab June 30, 2006 Lab 8. Signal Analysis Using Matlab Simulink Introduction The Matlab Simulink software allows you to model digital signals, examine power spectra of digital signals, represent

More information

Lecture 3, Multirate Signal Processing

Lecture 3, Multirate Signal Processing Lecture 3, Multirate Signal Processing Frequency Response If we have coefficients of an Finite Impulse Response (FIR) filter h, or in general the impulse response, its frequency response becomes (using

More information

Making Music with Tabla Loops

Making Music with Tabla Loops Making Music with Tabla Loops Executive Summary What are Tabla Loops Tabla Introduction How Tabla Loops can be used to make a good music Steps to making good music I. Getting the good rhythm II. Loading

More information

LAB 2 Machine Perception of Music Computer Science 395, Winter Quarter 2005

LAB 2 Machine Perception of Music Computer Science 395, Winter Quarter 2005 1.0 Lab overview and objectives This lab will introduce you to displaying and analyzing sounds with spectrograms, with an emphasis on getting a feel for the relationship between harmonicity, pitch, and

More information

Using Audacity to make a recording

Using Audacity to make a recording Using Audacity to make a recording Audacity is free, open source software for recording and editing sounds. It is available for Mac OS X, Microsoft Windows, GNU/Linux, and other operating systems and can

More information

Islamic University of Gaza. Faculty of Engineering Electrical Engineering Department Spring-2011

Islamic University of Gaza. Faculty of Engineering Electrical Engineering Department Spring-2011 Islamic University of Gaza Faculty of Engineering Electrical Engineering Department Spring-2011 DSP Laboratory (EELE 4110) Lab#4 Sampling and Quantization OBJECTIVES: When you have completed this assignment,

More information

Since the advent of the sine wave oscillator

Since the advent of the sine wave oscillator Advanced Distortion Analysis Methods Discover modern test equipment that has the memory and post-processing capability to analyze complex signals and ascertain real-world performance. By Dan Foley European

More information

Fall Music 320A Homework #2 Sinusoids, Complex Sinusoids 145 points Theory and Lab Problems Due Thursday 10/11/2018 before class

Fall Music 320A Homework #2 Sinusoids, Complex Sinusoids 145 points Theory and Lab Problems Due Thursday 10/11/2018 before class Fall 2018 2019 Music 320A Homework #2 Sinusoids, Complex Sinusoids 145 points Theory and Lab Problems Due Thursday 10/11/2018 before class Theory Problems 1. 15 pts) [Sinusoids] Define xt) as xt) = 2sin

More information

ZRE 01- Introductory Lab JanČernocký,ValentinaHubeika,FITBUTBrno

ZRE 01- Introductory Lab JanČernocký,ValentinaHubeika,FITBUTBrno ZRE 01- Introductory Lab JanČernocký,ValentinaHubeika,FITBUTBrno Thegoalofthelabistointroducebasicoperationswithasoundsignal,mainlyusingMatlab.Thislab(aswell asallfollowinglabs)willberununderlinux.althoughmatlabisavailableunderwindowsosaswell,someofthe

More information

Digital Speech Processing and Coding

Digital Speech Processing and Coding ENEE408G Spring 2006 Lecture-2 Digital Speech Processing and Coding Spring 06 Instructor: Shihab Shamma Electrical & Computer Engineering University of Maryland, College Park http://www.ece.umd.edu/class/enee408g/

More information

Speech and Music Discrimination based on Signal Modulation Spectrum.

Speech and Music Discrimination based on Signal Modulation Spectrum. Speech and Music Discrimination based on Signal Modulation Spectrum. Pavel Balabko June 24, 1999 1 Introduction. This work is devoted to the problem of automatic speech and music discrimination. As we

More information

CS101 Lecture 18: Audio Encoding. What You ll Learn Today

CS101 Lecture 18: Audio Encoding. What You ll Learn Today CS101 Lecture 18: Audio Encoding Sampling Quantizing Aaron Stevens (azs@bu.edu) with special guest Wayne Snyder (snyder@bu.edu) 16 October 2012 What You ll Learn Today How do we hear sounds? How can audio

More information

Problem Set 1 (Solutions are due Mon )

Problem Set 1 (Solutions are due Mon ) ECEN 242 Wireless Electronics for Communication Spring 212 1-23-12 P. Mathys Problem Set 1 (Solutions are due Mon. 1-3-12) 1 Introduction The goals of this problem set are to use Matlab to generate and

More information

Lecture 7 Frequency Modulation

Lecture 7 Frequency Modulation Lecture 7 Frequency Modulation Fundamentals of Digital Signal Processing Spring, 2012 Wei-Ta Chu 2012/3/15 1 Time-Frequency Spectrum We have seen that a wide range of interesting waveforms can be synthesized

More information

Lab 4 An FPGA Based Digital System Design ReadMeFirst

Lab 4 An FPGA Based Digital System Design ReadMeFirst Lab 4 An FPGA Based Digital System Design ReadMeFirst Lab Summary This Lab introduces a number of Matlab functions used to design and test a lowpass IIR filter. As you have seen in the previous lab, Simulink

More information

WORKING WITH AUDACITY

WORKING WITH AUDACITY WORKING WITH AUDACITY Recording With Audacity Editing Sound Exporting From Audacity Importing Your Audio Into Miromaa M ROMAA training Contents Record Audio Using Audacity... 1 Getting Started with Audacity...

More information

PYKC 7 Feb 2019 EA2.3 Electronics 2 Lecture 13-1

PYKC 7 Feb 2019 EA2.3 Electronics 2 Lecture 13-1 In this lecture, we will look back on all the materials we have covered to date. Instead of going through previous lecture materials, I will focus on what you have learned in the laboratory sessions, going

More information

Signal segmentation and waveform characterization. Biosignal processing, S Autumn 2012

Signal segmentation and waveform characterization. Biosignal processing, S Autumn 2012 Signal segmentation and waveform characterization Biosignal processing, 5173S Autumn 01 Short-time analysis of signals Signal statistics may vary in time: nonstationary how to compute signal characterizations?

More information

HIGH QUALITY AUDIO CODING AT LOW BIT RATE USING WAVELET AND WAVELET PACKET TRANSFORM

HIGH QUALITY AUDIO CODING AT LOW BIT RATE USING WAVELET AND WAVELET PACKET TRANSFORM HIGH QUALITY AUDIO CODING AT LOW BIT RATE USING WAVELET AND WAVELET PACKET TRANSFORM DR. D.C. DHUBKARYA AND SONAM DUBEY 2 Email at: sonamdubey2000@gmail.com, Electronic and communication department Bundelkhand

More information

Sound synthesis with Pure Data

Sound synthesis with Pure Data Sound synthesis with Pure Data 1. Start Pure Data from the programs menu in classroom TC307. You should get the following window: The DSP check box switches sound output on and off. Getting sound out First,

More information

Waveshaping Synthesis. Indexing. Waveshaper. CMPT 468: Waveshaping Synthesis

Waveshaping Synthesis. Indexing. Waveshaper. CMPT 468: Waveshaping Synthesis Waveshaping Synthesis CMPT 468: Waveshaping Synthesis Tamara Smyth, tamaras@cs.sfu.ca School of Computing Science, Simon Fraser University October 8, 23 In waveshaping, it is possible to change the spectrum

More information

C.8 Comb filters 462 APPENDIX C. LABORATORY EXERCISES

C.8 Comb filters 462 APPENDIX C. LABORATORY EXERCISES 462 APPENDIX C. LABORATORY EXERCISES C.8 Comb filters The purpose of this lab is to use a kind of filter called a comb filter to deeply explore concepts of impulse response and frequency response. The

More information

Converting Speaking Voice into Singing Voice

Converting Speaking Voice into Singing Voice Converting Speaking Voice into Singing Voice 1 st place of the Synthesis of Singing Challenge 2007: Vocal Conversion from Speaking to Singing Voice using STRAIGHT by Takeshi Saitou et al. 1 STRAIGHT Speech

More information

ECE 5650/4650 MATLAB Project 1

ECE 5650/4650 MATLAB Project 1 This project is to be treated as a take-home exam, meaning each student is to due his/her own work. The project due date is 4:30 PM Tuesday, October 18, 2011. To work the project you will need access to

More information

UNIVERSITY OF WARWICK

UNIVERSITY OF WARWICK UNIVERSITY OF WARWICK School of Engineering ES905 MSc Signal Processing Module (2004) ASSIGNMENT 1 In this assignment, you will use the MATLAB package. In Part (A) you will design some FIR filters and

More information

Octave Functions for Filters. Young Won Lim 2/19/18

Octave Functions for Filters. Young Won Lim 2/19/18 Copyright (c) 2016 2018 Young W. Lim. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published

More information

MUSC 316 Sound & Digital Audio Basics Worksheet

MUSC 316 Sound & Digital Audio Basics Worksheet MUSC 316 Sound & Digital Audio Basics Worksheet updated September 2, 2011 Name: An Aggie does not lie, cheat, or steal, or tolerate those who do. By submitting responses for this test you verify, on your

More information

ENGR 210 Lab 12: Sampling and Aliasing

ENGR 210 Lab 12: Sampling and Aliasing ENGR 21 Lab 12: Sampling and Aliasing In the previous lab you examined how A/D converters actually work. In this lab we will consider some of the consequences of how fast you sample and of the signal processing

More information

Discrete Fourier Transform

Discrete Fourier Transform 6 The Discrete Fourier Transform Lab Objective: The analysis of periodic functions has many applications in pure and applied mathematics, especially in settings dealing with sound waves. The Fourier transform

More information