CS 591 S1 Computational Audio -- Spring, 2017

Size: px
Start display at page:

Download "CS 591 S1 Computational Audio -- Spring, 2017"

Transcription

1 CS 591 S1 Computational Audio -- Spring, 2017 Wayne Snyder Department Boston University Lecture 11 (Tuesday) Discrete Sine Transform Complex Numbers Complex Phasors and Audio Signals Lecture 12 (Thursday) Discrete Fourier Transform in Complex Case Fast Fourier Transform Digital Audio Fundamentals: Multiplying/Squaring Signals Recall: For a window of length W samples, a window frequency is one whose period P is such that W = P * k for some integer k, i.e., an integral number of periods exactly fit within the window; alternately, it begins and ends at same instantaneous phase. We will use these signals as probe waves to analyze a musical signal and assume that all such probe waves (for now) start at phase

2 Digital Audio Fundamentals: Multiplying/Squaring Signals Recall: What happens when the signal is composite (not a simple sine wave)? Let s track the average sample value when multiplying a composite wave by a probe wave created from [ ( f, 1.0, 0.0 ) ] for various frequencies f X = makesignal( [ ( 3.0,0.5,0.0), (5.0,0.3,0.0), (10,0.2,0.0) ], 1.0) Z = multsignals(x,p) P = makesignal( [ ( 2.0,1.0,0.0)], 1.0) µ = dotproduct(x,p) / len(x) = avg sample so µ ~ Digital Audio Fundamentals: Multiplying/Squaring Signals Recall: What happens when the signal is composite (not a simple sine wave)? Let s track the average sample value when multiplying a composite wave by a probe wave created from [ ( f, 1.0, 0.0 ) ] for various frequencies f X = makesignal( [ ( 3.0,0.5,0.0), (5.0,0.3,0.0), (10,0.2,0.0) ], 1.0) Z = multsignals(x,p) P = makesignal( [ ( 3.0,1.0,0.0)], 1.0) µ = dotproduct(x,p) / len(x) = == 3.0 so µ >

3 Digital Audio Fundamentals: Multiplying/Squaring Signals If we graph the results of multiplying this composite signal by various probe waves, we get the following: [ ( 3.0,0.5,0.0), (5.0,0.3,0.0), (10,0.2,0.0) ] Avg Sample Frequency of probe wave Why are the amplitudes reported exactly half as big as the component amplitudes? 5 Digital Audio Fundamentals: Multiplying/Squaring Signals Well, let s look at the square of the probe wave: Component: (3.0, 0.5, 0.0) Probe: (3.0, 1.0, 0.0) Recall: sin(x)*sin(y) = ½ [ cos(x-y) cos(x+y) ] so A 1 *sin(x)*a 2 * sin(x) = (A 1 *A 2 ) / 2 * [ cos(x-x) cos(x+x) ] In this case: (0.5*1.0) / 2 * [ cos(0) cos(2x) ] = *cos(2x) 0.25 average sample of cos(2x) = 0.0 so average of product wave = center line of product sine wave = 0.25 Punchline: To get amplitudes of components, use probe waves of amplitude 1.0, and multiply the average sample value of the product wave by

4 Digital Audio Fundamentals: Discrete Sine Transform Doing this consistently for all window frequencies gives us X = makesignal( [ ( 3.0,0.5,0.0), (5.0,0.3,0.0), (10,0.2,0.0) ], 1.0) S = DST( X ) S[0]: 0.0 S[1]: e-12 S[2]: e-12 S[3]: S[4]: e-12 S[5]: S[10]: S[11]: e-12 S[22049]: e-12 Why len(s) = W // 2?? Last frequency is W // 2 1 = / MAX_AMP = / MAX_AMP = / MAX_AMP = Digital Audio Fundamentals: Discrete Sine Transform Doing this consistently for all window frequencies gives us Note: The transform can ONLY detect window frequencies = k * f for f = 1 / W (in secs) So a window of 1.0 seconds can detect 0, 1, 2,., of 0.1 seconds can detect 0, 10, 20, 30,., of 0.2 seconds can detect 0, 5, 10,., ONLY Another problem is that this took 25 minutes to run! Double for loop with W = * = 972,405,000 executions of inner loop! 8 4

5 Digital Audio Fundamentals: Discrete Sine Transform Doing this consistently for all window frequencies gives us X = makesignal( [ ( 30.0,0.5,0.0), (50.0,0.3,0.0), (100.0, 0.2,0.0) ], 0.1) S = DST( X ) Bin Absolute Amp Freq Relative Amp S[0]: S[1]: e e-16 S[3]: S[4]: e e-16 S[5]: S[10]: S[2204]: e e-17 This took about 15 seconds to run 9 Digital Audio Fundamentals: Discrete Sine Transform Doing this consistently for all window frequencies gives us X = makesignal( [ ( 30.0,0.5,0.0), (50.0,0.3,0.0), (100.0, 0.2,0.0) ], 0.2) S = DST( X ) Bin Absolute Amp Freq Relative Amp S[0]: S[1]: e e-17 S[6]: S[10]: S[20]: S[4409]: e e-16 This took about 1 minute to run 10 5

6 def dst( X ): W = len(x) S = [0] * (W//2) # spectrum for f in range(w//2): # for each probe wave f in [0..N//2] for i in range(w): # S[f] = sum of product of X and probe S[f] += X[i] * sin(2 * pi * f * i / N) S[f] = S[f] / (W/2) # normalize to get actual amplitude return S Returns a spectrum of absolute amplitudes (in range -32K to 32K ) S = [ A 0, A 1, A 2,., A N//2-1 ] assuming w is even for window frequencies W f = [ 0, 1, 2,., N//1 1 ] and actual frequencies F = [ 0, 1R, 2R,., R*(N//2 1) ] for R = SampleRate / W Spectrum: [ ( 880, 0.8, 0 ), (1760, 0.6, 0), (2640, 0.4, 0) ] the Discrete Sine DST( X ) => Spectrum S of length len(x)//2 S[ f ] = amplitude of frequency component of sine wave at window freq f. 88 * SR / W = 880 Hz / = * SR / W = 1760 Hz / = 0.6 Freq in Hz = f * SampleRate / W W = * SR / W = 2640 Hz / = 0.4 6

7 Spectrum: [ ( 880, 0.8, 0 ), (1760, 0.6, 0), (2640, 0.4, 0) ] the Discrete Sine 88*SR/W = 880 Hz /32767 = *SR/W = 1760 Hz /32767 = *SR/W = 2640 Hz /32767 = 0.4 Spectrum: [ ( 880, 0.8, 0 ), (1760, 0.6, 0), (2640, 0.4, 0) ] the Discrete Sine 88*SR/W = 880 Hz /32767 = *SR/W = 1760 Hz /32767 = *SR/W = 2640 Hz /32767 = 0.4 7

8 Spectrum: [ ( 880, -0.8, 0 ), (1760, -0.6, 0), (2640, 0.4, 0) ] Component sine waves may have a negative amplitude. Component sine waves may have a negative amplitude; they will produce the negative of a squared wave, and report negative amplitudes just as they report positive amplitudes. 8

9 The same effect can be gotten by delaying the phase by pi or by using a negative frequency: all will produce negative amplitudes. Spectrum: [ ( 880, 0.8, pi ), (1760, 0.6, 0), (2640, 0.4, pi) ] the Discrete Sine Delaying a component by phase pi produces negative amplitudes. 9

10 Spectrum: [ ( 880, 0.8, 0 ), (-1760, 0.6, 0), (-2640, 0.4, 0) ] Negative frequencies produce negative amplitudes. Spectrum: [ ( 880, -0.8, 0 ), (-1760, -0.6, 0), (-2640, -0.4, pi) ] Doing combinations of these will flip the amplitude back and forth: 10

11 Spectrum: [ ( 880, 0.8, 0 ), (1760, 0.6, 0), (2640, 0.4, 0) ] What happens when we look at the spectrum past the Nyquist Limit, up to Hz?? Spectrum: [ ( 880, 0.8, 0 ), (1760, -0.6, 0), (2640, 0.4, 0) ] What happens when we look at the spectrum past the Nyquist Limit, up to Hz?? 11

12 Spectrum: [ ( -880, 0.8, 0 ), (-1760, -0.6, 0), (2640, 0.4, pi) ] What happens when we look at the spectrum past the Nyquist Limit, up to Hz?? Spectrum: [ ( 880, 0.8, 0 ), (1760, 0.6, 0), (2640, 0.4, 0) ] Testing for frequencies above the Nyquist limit will find the aliases The frequencies above the Nyquist Limit appear in reverse order with half amplitude. They have half amplitude because we normalized by len(x) instead of len(x)/2. 12

13 Digital Audio Fundamentals: Discrete Sine Transform There are three problems (so far): (1) This is horribly inefficient: O( N 2 ) for N = len(x) Solution: There will be a fast version of the transform presented next time, based on a recursive algorithm O( N log(n) ). (2) The resolution is limited to multiples of f Hz = 1 / W (secs) No solution, unfortunately, can try different window sizes, but stuck with this! (3) All components and probe waves have to be at the same phase (e.g., 0.0) Solution: If we do all the work with complex numbers, we can avoid issues of phase So onto Complex Numbers 25 13

CS 591 S1 Midterm Exam Solution

CS 591 S1 Midterm Exam Solution Name: CS 591 S1 Midterm Exam Solution Spring 2016 You must complete 3 of problems 1 4, and then problem 5 is mandatory. Each problem is worth 25 points. Please leave blank, or draw an X through, or write

More information

Physics 115 Lecture 13. Fourier Analysis February 22, 2018

Physics 115 Lecture 13. Fourier Analysis February 22, 2018 Physics 115 Lecture 13 Fourier Analysis February 22, 2018 1 A simple waveform: Fourier Synthesis FOURIER SYNTHESIS is the summing of simple waveforms to create complex waveforms. Musical instruments typically

More information

PART I: The questions in Part I refer to the aliasing portion of the procedure as outlined in the lab manual.

PART I: The questions in Part I refer to the aliasing portion of the procedure as outlined in the lab manual. Lab. #1 Signal Processing & Spectral Analysis Name: Date: Section / Group: NOTE: To help you correctly answer many of the following questions, it may be useful to actually run the cases outlined in the

More information

FFT analysis in practice

FFT analysis in practice FFT analysis in practice Perception & Multimedia Computing Lecture 13 Rebecca Fiebrink Lecturer, Department of Computing Goldsmiths, University of London 1 Last Week Review of complex numbers: rectangular

More information

SAMPLING THEORY. Representing continuous signals with discrete numbers

SAMPLING THEORY. Representing continuous signals with discrete numbers SAMPLING THEORY Representing continuous signals with discrete numbers Roger B. Dannenberg Professor of Computer Science, Art, and Music Carnegie Mellon University ICM Week 3 Copyright 2002-2013 by Roger

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

Section 8.4: The Equations of Sinusoidal Functions

Section 8.4: The Equations of Sinusoidal Functions Section 8.4: The Equations of Sinusoidal Functions In this section, we will examine transformations of the sine and cosine function and learn how to read various properties from the equation. Transformed

More information

Chapter 5 Window Functions. periodic with a period of N (number of samples). This is observed in table (3.1).

Chapter 5 Window Functions. periodic with a period of N (number of samples). This is observed in table (3.1). Chapter 5 Window Functions 5.1 Introduction As discussed in section (3.7.5), the DTFS assumes that the input waveform is periodic with a period of N (number of samples). This is observed in table (3.1).

More information

1 Graphs of Sine and Cosine

1 Graphs of Sine and Cosine 1 Graphs of Sine and Cosine Exercise 1 Sketch a graph of y = cos(t). Label the multiples of π 2 and π 4 on your plot, as well as the amplitude and the period of the function. (Feel free to sketch the unit

More information

ME 365 EXPERIMENT 8 FREQUENCY ANALYSIS

ME 365 EXPERIMENT 8 FREQUENCY ANALYSIS ME 365 EXPERIMENT 8 FREQUENCY ANALYSIS Objectives: There are two goals in this laboratory exercise. The first is to reinforce the Fourier series analysis you have done in the lecture portion of this course.

More information

Spectrum Analysis: The FFT Display

Spectrum Analysis: The FFT Display Spectrum Analysis: The FFT Display Equipment: Capstone, voltage sensor 1 Introduction It is often useful to represent a function by a series expansion, such as a Taylor series. There are other series representations

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

Graphs of sin x and cos x

Graphs of sin x and cos x Graphs of sin x and cos x One cycle of the graph of sin x, for values of x between 0 and 60, is given below. 1 0 90 180 270 60 1 It is this same shape that one gets between 60 and below). 720 and between

More information

LAB #7: Digital Signal Processing

LAB #7: Digital Signal Processing LAB #7: Digital Signal Processing Equipment: Pentium PC with NI PCI-MIO-16E-4 data-acquisition board NI BNC 2120 Accessory Box VirtualBench Instrument Library version 2.6 Function Generator (Tektronix

More information

First, frequency is being used in terms of radians per second which is often called "j*w0". The relationship is as such.

First, frequency is being used in terms of radians per second which is often called j*w0. The relationship is as such. *=============EULER_Spectrum_Format================================== There appears to be several different styles of format for spectrum analysis. Perhaps the most precise format will translate according

More information

Secondary Math Amplitude, Midline, and Period of Waves

Secondary Math Amplitude, Midline, and Period of Waves Secondary Math 3 7-6 Amplitude, Midline, and Period of Waves Warm UP Complete the unit circle from memory the best you can: 1. Fill in the degrees 2. Fill in the radians 3. Fill in the coordinates in the

More information

The Fast Fourier Transform

The Fast Fourier Transform The Fast Fourier Transform Basic FFT Stuff That s s Good to Know Dave Typinski, Radio Jove Meeting, July 2, 2014, NRAO Green Bank Ever wonder how an SDR-14 or Dongle produces the spectra that it does?

More information

Section 8.4 Equations of Sinusoidal Functions soln.notebook. May 17, Section 8.4: The Equations of Sinusoidal Functions.

Section 8.4 Equations of Sinusoidal Functions soln.notebook. May 17, Section 8.4: The Equations of Sinusoidal Functions. Section 8.4: The Equations of Sinusoidal Functions Stop Sine 1 In this section, we will examine transformations of the sine and cosine function and learn how to read various properties from the equation.

More information

Modulation. Digital Data Transmission. COMP476 Networked Computer Systems. Analog and Digital Signals. Analog and Digital Examples.

Modulation. Digital Data Transmission. COMP476 Networked Computer Systems. Analog and Digital Signals. Analog and Digital Examples. Digital Data Transmission Modulation Digital data is usually considered a series of binary digits. RS-232-C transmits data as square waves. COMP476 Networked Computer Systems Analog and Digital Signals

More information

ESE 150 Lab 04: The Discrete Fourier Transform (DFT)

ESE 150 Lab 04: The Discrete Fourier Transform (DFT) LAB 04 In this lab we will do the following: 1. Use Matlab to perform the Fourier Transform on sampled data in the time domain, converting it to the frequency domain 2. Add two sinewaves together of differing

More information

Frequency Division Multiplexing Spring 2011 Lecture #14. Sinusoids and LTI Systems. Periodic Sequences. x[n] = x[n + N]

Frequency Division Multiplexing Spring 2011 Lecture #14. Sinusoids and LTI Systems. Periodic Sequences. x[n] = x[n + N] Frequency Division Multiplexing 6.02 Spring 20 Lecture #4 complex exponentials discrete-time Fourier series spectral coefficients band-limited signals To engineer the sharing of a channel through frequency

More information

Basic Signals and Systems

Basic Signals and Systems Chapter 2 Basic Signals and Systems A large part of this chapter is taken from: C.S. Burrus, J.H. McClellan, A.V. Oppenheim, T.W. Parks, R.W. Schafer, and H. W. Schüssler: Computer-based exercises for

More information

6 Sampling. Sampling. The principles of sampling, especially the benefits of coherent sampling

6 Sampling. Sampling. The principles of sampling, especially the benefits of coherent sampling Note: Printed Manuals 6 are not in Color Objectives This chapter explains the following: The principles of sampling, especially the benefits of coherent sampling How to apply sampling principles in a test

More information

5.4 Graphs of the Sine & Cosine Functions Objectives

5.4 Graphs of the Sine & Cosine Functions Objectives Objectives 1. Graph Functions of the Form y = A sin(wx) Using Transformations. 2. Graph Functions of the Form y = A cos(wx) Using Transformations. 3. Determine the Amplitude & Period of Sinusoidal Functions.

More information

This tutorial describes the principles of 24-bit recording systems and clarifies some common mis-conceptions regarding these systems.

This tutorial describes the principles of 24-bit recording systems and clarifies some common mis-conceptions regarding these systems. This tutorial describes the principles of 24-bit recording systems and clarifies some common mis-conceptions regarding these systems. This is a general treatment of the subject and applies to I/O System

More information

Digital Video and Audio Processing. Winter term 2002/ 2003 Computer-based exercises

Digital Video and Audio Processing. Winter term 2002/ 2003 Computer-based exercises Digital Video and Audio Processing Winter term 2002/ 2003 Computer-based exercises Rudolf Mester Institut für Angewandte Physik Johann Wolfgang Goethe-Universität Frankfurt am Main 6th November 2002 Chapter

More information

CS Lecture 10:

CS Lecture 10: CS 1101101 Lecture 10: Digital Encoding---Representing the world in symbols Review: Analog vs Digital (Symbolic) Information Text encoding: ASCII and Unicode Encoding pictures: Sampling Quantizing Analog

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

Pulse Code Modulation

Pulse Code Modulation Pulse Code Modulation Modulation is the process of varying one or more parameters of a carrier signal in accordance with the instantaneous values of the message signal. The message signal is the signal

More information

Fourier transforms, SIM

Fourier transforms, SIM Fourier transforms, SIM Last class More STED Minflux Fourier transforms This class More FTs 2D FTs SIM 1 Intensity.5 -.5 FT -1.5 1 1.5 2 2.5 3 3.5 4 4.5 5 6 Time (s) IFT 4 2 5 1 15 Frequency (Hz) ff tt

More information

6.4 & 6.5 Graphing Trigonometric Functions. The smallest number p with the above property is called the period of the function.

6.4 & 6.5 Graphing Trigonometric Functions. The smallest number p with the above property is called the period of the function. Math 160 www.timetodare.com Periods of trigonometric functions Definition A function y f ( t) f ( t p) f ( t) 6.4 & 6.5 Graphing Trigonometric Functions = is periodic if there is a positive number p such

More information

Hideo Okawara s Mixed Signal Lecture Series. DSP-Based Testing Fundamentals 6 Spectrum Analysis -- FFT

Hideo Okawara s Mixed Signal Lecture Series. DSP-Based Testing Fundamentals 6 Spectrum Analysis -- FFT Hideo Okawara s Mixed Signal Lecture Series DSP-Based Testing Fundamentals 6 Spectrum Analysis -- FFT Verigy Japan October 008 Preface to the Series ADC and DAC are the most typical mixed signal devices.

More information

MITOCW MITRES_6-007S11lec18_300k.mp4

MITOCW MITRES_6-007S11lec18_300k.mp4 MITOCW MITRES_6-007S11lec18_300k.mp4 [MUSIC PLAYING] PROFESSOR: Last time, we began the discussion of discreet-time processing of continuous-time signals. And, as a reminder, let me review the basic notion.

More information

ECE 201: Introduction to Signal Analysis. Dr. B.-P. Paris Dept. Electrical and Comp. Engineering George Mason University

ECE 201: Introduction to Signal Analysis. Dr. B.-P. Paris Dept. Electrical and Comp. Engineering George Mason University ECE 201: Introduction to Signal Analysis Dr. B.-P. Paris Dept. Electrical and Comp. Engineering George Mason University Last updated: November 29, 2016 2016, B.-P. Paris ECE 201: Intro to Signal Analysis

More information

Part 2: Fourier transforms. Key to understanding NMR, X-ray crystallography, and all forms of microscopy

Part 2: Fourier transforms. Key to understanding NMR, X-ray crystallography, and all forms of microscopy Part 2: Fourier transforms Key to understanding NMR, X-ray crystallography, and all forms of microscopy Sine waves y(t) = A sin(wt + p) y(x) = A sin(kx + p) To completely specify a sine wave, you need

More information

THE STATE UNIVERSITY OF NEW JERSEY RUTGERS. College of Engineering Department of Electrical and Computer Engineering

THE STATE UNIVERSITY OF NEW JERSEY RUTGERS. College of Engineering Department of Electrical and Computer Engineering THE STATE UNIVERSITY OF NEW JERSEY RUTGERS College of Engineering Department of Electrical and Computer Engineering 332:322 Principles of Communications Systems Spring Problem Set 3 1. Discovered Angle

More information

Copyright 2009 Pearson Education, Inc. Slide Section 8.2 and 8.3-1

Copyright 2009 Pearson Education, Inc. Slide Section 8.2 and 8.3-1 8.3-1 Transformation of sine and cosine functions Sections 8.2 and 8.3 Revisit: Page 142; chapter 4 Section 8.2 and 8.3 Graphs of Transformed Sine and Cosine Functions Graph transformations of y = sin

More information

ECE 201: Introduction to Signal Analysis

ECE 201: Introduction to Signal Analysis ECE 201: Introduction to Signal Analysis Dr. B.-P. Paris Dept. Electrical and Comp. Engineering George Mason University Last updated: November 29, 2016 2016, B.-P. Paris ECE 201: Intro to Signal Analysis

More information

Summary Last Lecture

Summary Last Lecture Interleaved ADCs EE47 Lecture 4 Oversampled ADCs Why oversampling? Pulse-count modulation Sigma-delta modulation 1-Bit quantization Quantization error (noise) spectrum SQNR analysis Limit cycle oscillations

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

Signal Characteristics

Signal Characteristics Data Transmission The successful transmission of data depends upon two factors:» The quality of the transmission signal» The characteristics of the transmission medium Some type of transmission medium

More information

CMPT 368: Lecture 4 Amplitude Modulation (AM) Synthesis

CMPT 368: Lecture 4 Amplitude Modulation (AM) Synthesis CMPT 368: Lecture 4 Amplitude Modulation (AM) Synthesis Tamara Smyth, tamaras@cs.sfu.ca School of Computing Science, Simon Fraser University January 8, 008 Beat Notes What happens when we add two frequencies

More information

Section 7.6 Graphs of the Sine and Cosine Functions

Section 7.6 Graphs of the Sine and Cosine Functions 4 Section 7. Graphs of the Sine and Cosine Functions In this section, we will look at the graphs of the sine and cosine function. The input values will be the angle in radians so we will be using x is

More information

CS601_MIDTERM_SOLVE_PAPER ( COMPOSED BY SADIA ALI SADII

CS601_MIDTERM_SOLVE_PAPER ( COMPOSED BY SADIA ALI SADII MIDTERM EXAMINATION Spring 2010 CS601- Data Communication Question No: 1 ( Marks: 1 ) - Please choose one Which topology requires a central controller or hub? _ Mesh _ Star p_29 _ Bus _ Ring Time: 60 min

More information

Analog and Digital Signals

Analog and Digital Signals E.M. Bakker LML Audio Processing and Indexing 1 Analog and Digital Signals 1. From Analog to Digital Signal 2. Sampling & Aliasing LML Audio Processing and Indexing 2 1 Analog and Digital Signals Analog

More information

Nyquist's criterion. Spectrum of the original signal Xi(t) is defined by the Fourier transformation as follows :

Nyquist's criterion. Spectrum of the original signal Xi(t) is defined by the Fourier transformation as follows : Nyquist's criterion The greatest part of information sources are analog, like sound. Today's telecommunication systems are mostly digital, so the most important step toward communicating is a signal digitization.

More information

The Case for Oversampling

The Case for Oversampling EE47 Lecture 4 Oversampled ADCs Why oversampling? Pulse-count modulation Sigma-delta modulation 1-Bit quantization Quantization error (noise) spectrum SQNR analysis Limit cycle oscillations nd order ΣΔ

More information

Frequency Domain Representation of Signals

Frequency Domain Representation of Signals Frequency Domain Representation of Signals The Discrete Fourier Transform (DFT) of a sampled time domain waveform x n x 0, x 1,..., x 1 is a set of Fourier Coefficients whose samples are 1 n0 X k X0, X

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

CS 591 S1 Midterm Exam

CS 591 S1 Midterm Exam Name: CS 591 S1 Midterm Exam Spring 2017 You must complete 3 of problems 1 4, and then problem 5 is mandatory. Each problem is worth 25 points. Please leave blank, or draw an X through, or write Do Not

More information

G(f ) = g(t) dt. e i2πft. = cos(2πf t) + i sin(2πf t)

G(f ) = g(t) dt. e i2πft. = cos(2πf t) + i sin(2πf t) Fourier Transforms Fourier s idea that periodic functions can be represented by an infinite series of sines and cosines with discrete frequencies which are integer multiples of a fundamental frequency

More information

Filters. Signals are sequences of numbers. Simple algebraic operations on signals can perform useful functions: shifting multiplication addition

Filters. Signals are sequences of numbers. Simple algebraic operations on signals can perform useful functions: shifting multiplication addition Filters Signals are sequences of numbers. Simple algebraic operations on signals can perform useful functions: shifting multiplication addition Simple Example... Smooth points to better reveal trend X

More information

Lecture 2: SIGNALS. 1 st semester By: Elham Sunbu

Lecture 2: SIGNALS. 1 st semester By: Elham Sunbu Lecture 2: SIGNALS 1 st semester 1439-2017 1 By: Elham Sunbu OUTLINE Signals and the classification of signals Sine wave Time and frequency domains Composite signals Signal bandwidth Digital signal Signal

More information

Signals. Periodic vs. Aperiodic. Signals

Signals. Periodic vs. Aperiodic. Signals Signals 1 Periodic vs. Aperiodic Signals periodic signal completes a pattern within some measurable time frame, called a period (), and then repeats that pattern over subsequent identical periods R s.

More information

Math 1205 Trigonometry Review

Math 1205 Trigonometry Review Math 105 Trigonometry Review We begin with the unit circle. The definition of a unit circle is: x + y =1 where the center is (0, 0) and the radius is 1. An angle of 1 radian is an angle at the center of

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

Speech Coding in the Frequency Domain

Speech Coding in the Frequency Domain Speech Coding in the Frequency Domain Speech Processing Advanced Topics Tom Bäckström Aalto University October 215 Introduction The speech production model can be used to efficiently encode speech signals.

More information

Lecture #2. EE 313 Linear Systems and Signals

Lecture #2. EE 313 Linear Systems and Signals Lecture #2 EE 313 Linear Systems and Signals Preview of today s lecture What is a signal and what is a system? o Define the concepts of a signal and a system o Why? This is essential for a course on Signals

More information

Section 5.2 Graphs of the Sine and Cosine Functions

Section 5.2 Graphs of the Sine and Cosine Functions Section 5.2 Graphs of the Sine and Cosine Functions We know from previously studying the periodicity of the trigonometric functions that the sine and cosine functions repeat themselves after 2 radians.

More information

Signals and Systems Lecture 9 Communication Systems Frequency-Division Multiplexing and Frequency Modulation (FM)

Signals and Systems Lecture 9 Communication Systems Frequency-Division Multiplexing and Frequency Modulation (FM) Signals and Systems Lecture 9 Communication Systems Frequency-Division Multiplexing and Frequency Modulation (FM) April 11, 2008 Today s Topics 1. Frequency-division multiplexing 2. Frequency modulation

More information

Applications of Linear Algebra in Signal Sampling and Modeling

Applications of Linear Algebra in Signal Sampling and Modeling Applications of Linear Algebra in Signal Sampling and Modeling by Corey Brown Joshua Crawford Brett Rustemeyer and Kenny Stieferman Abstract: Many situations encountered in engineering require sampling

More information

MATH 1040 CP 15 SHORT ANSWER. Write the word or phrase that best completes each statement or answers the question.

MATH 1040 CP 15 SHORT ANSWER. Write the word or phrase that best completes each statement or answers the question. MATH 1040 CP 15 SHORT ANSWER. Write the word or phrase that best completes each statement or answers the question. 1) (sin x + cos x) 1 + sin x cos x =? 1) ) sec 4 x + sec x tan x - tan 4 x =? ) ) cos

More information

Chapter 3 Data Transmission COSC 3213 Summer 2003

Chapter 3 Data Transmission COSC 3213 Summer 2003 Chapter 3 Data Transmission COSC 3213 Summer 2003 Courtesy of Prof. Amir Asif Definitions 1. Recall that the lowest layer in OSI is the physical layer. The physical layer deals with the transfer of raw

More information

ADC, FFT and Noise. p. 1. ADC, FFT, and Noise

ADC, FFT and Noise. p. 1. ADC, FFT, and Noise ADC, FFT and Noise. p. 1 ADC, FFT, and Noise Analog to digital conversion and the FFT A LabView program, Acquire&FFT_Nscans.vi, is available on your pc which (1) captures a waveform and digitizes it using

More information

Name: Period: Date: Math Lab: Explore Transformations of Trig Functions

Name: Period: Date: Math Lab: Explore Transformations of Trig Functions Name: Period: Date: Math Lab: Explore Transformations of Trig Functions EXPLORE VERTICAL DISPLACEMENT 1] Graph 2] Explain what happens to the parent graph when a constant is added to the sine function.

More information

Lecture notes on Waves/Spectra Noise, Correlations and.

Lecture notes on Waves/Spectra Noise, Correlations and. Lecture notes on Waves/Spectra Noise, Correlations and. W. Gekelman Lecture 4, February 28, 2004 Our digital data is a function of time x(t) and can be represented as: () = a + ( a n t+ b n t) x t cos

More information

Lecture Outline. Data and Signals. Analogue Data on Analogue Signals. OSI Protocol Model

Lecture Outline. Data and Signals. Analogue Data on Analogue Signals. OSI Protocol Model Lecture Outline Data and Signals COMP312 Richard Nelson richardn@cs.waikato.ac.nz http://www.cs.waikato.ac.nz Analogue Data on Analogue Signals Digital Data on Analogue Signals Analogue Data on Digital

More information

Section 7.7 Graphs of the Tangent, Cotangent, Cosecant, and Secant Functions

Section 7.7 Graphs of the Tangent, Cotangent, Cosecant, and Secant Functions Section 7.7 Graphs of the Tangent, Cotangent, Cosecant, and Secant Functions In this section, we will look at the graphs of the other four trigonometric functions. We will start by examining the tangent

More information

Recall. Sampling. Why discrete time? Why discrete time? Many signals are continuous-time signals Light Object wave CCD

Recall. Sampling. Why discrete time? Why discrete time? Many signals are continuous-time signals Light Object wave CCD Recall Many signals are continuous-time signals Light Object wave CCD Sampling mic Lens change of voltage change of voltage 2 Why discrete time? With the advance of computer technology, we want to process

More information

Musical Acoustics, C. Bertulani. Musical Acoustics. Lecture 13 Timbre / Tone quality I

Musical Acoustics, C. Bertulani. Musical Acoustics. Lecture 13 Timbre / Tone quality I 1 Musical Acoustics Lecture 13 Timbre / Tone quality I Waves: review 2 distance x (m) At a given time t: y = A sin(2πx/λ) A -A time t (s) At a given position x: y = A sin(2πt/t) Perfect Tuning Fork: Pure

More information

Fourier Transform Pairs

Fourier Transform Pairs CHAPTER Fourier Transform Pairs For every time domain waveform there is a corresponding frequency domain waveform, and vice versa. For example, a rectangular pulse in the time domain coincides with a sinc

More information

The Sine Function. Precalculus: Graphs of Sine and Cosine

The Sine Function. Precalculus: Graphs of Sine and Cosine Concepts: Graphs of Sine, Cosine, Sinusoids, Terminology (amplitude, period, phase shift, frequency). The Sine Function Domain: x R Range: y [ 1, 1] Continuity: continuous for all x Increasing-decreasing

More information

SHOCK AND VIBRATION RESPONSE SPECTRA COURSE Unit 17. Aliasing. Again, engineers collect accelerometer data in a variety of settings.

SHOCK AND VIBRATION RESPONSE SPECTRA COURSE Unit 17. Aliasing. Again, engineers collect accelerometer data in a variety of settings. SHOCK AND VIBRATION RESPONSE SPECTRA COURSE Unit 17. Aliasing By Tom Irvine Email: tomirvine@aol.com Introduction Again, engineers collect accelerometer data in a variety of settings. Examples include:

More information

E40M Sound and Music. M. Horowitz, J. Plummer, R. Howe 1

E40M Sound and Music. M. Horowitz, J. Plummer, R. Howe 1 E40M Sound and Music M. Horowitz, J. Plummer, R. Howe 1 LED Cube Project #3 In the next several lectures, we ll study Concepts Coding Light Sound Transforms/equalizers Devices LEDs Analog to digital converters

More information

PART II Practical problems in the spectral analysis of speech signals

PART II Practical problems in the spectral analysis of speech signals PART II Practical problems in the spectral analysis of speech signals We have now seen how the Fourier analysis recovers the amplitude and phase of an input signal consisting of a superposition of multiple

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

Easy SDR Experimentation with GNU Radio

Easy SDR Experimentation with GNU Radio Easy SDR Experimentation with GNU Radio Introduction to DSP (and some GNU Radio) About Me EE, Independent Consultant Hardware, Software, Security Cellular, FPGA, GNSS,... DAGR Denver Area GNU Radio meet-up

More information

Graphs of other Trigonometric Functions

Graphs of other Trigonometric Functions Graphs of other Trigonometric Functions Now we will look at other types of graphs: secant. tan x, cot x, csc x, sec x. We will start with the cosecant and y csc x In order to draw this graph we will first

More information

Introduction. Chapter Time-Varying Signals

Introduction. Chapter Time-Varying Signals Chapter 1 1.1 Time-Varying Signals Time-varying signals are commonly observed in the laboratory as well as many other applied settings. Consider, for example, the voltage level that is present at a specific

More information

Continuous vs. Discrete signals. Sampling. Analog to Digital Conversion. CMPT 368: Lecture 4 Fundamentals of Digital Audio, Discrete-Time Signals

Continuous vs. Discrete signals. Sampling. Analog to Digital Conversion. CMPT 368: Lecture 4 Fundamentals of Digital Audio, Discrete-Time Signals Continuous vs. Discrete signals CMPT 368: Lecture 4 Fundamentals of Digital Audio, Discrete-Time Signals Tamara Smyth, tamaras@cs.sfu.ca School of Computing Science, Simon Fraser University January 22,

More information

University of California, San Diego Department of Electrical and Computer Engineering

University of California, San Diego Department of Electrical and Computer Engineering University of California, San Diego Department of Electrical and Computer Engineering Part One: Introduction of Lab TAs ECE65, Spring 2007 Lab 0, ECE 65 Lab Orientation 1) James Liao, geniojames@yahoo.com

More information

SECTION 1.5: TRIGONOMETRIC FUNCTIONS

SECTION 1.5: TRIGONOMETRIC FUNCTIONS SECTION.5: TRIGONOMETRIC FUNCTIONS The Unit Circle The unit circle is the set of all points in the xy-plane for which x + y =. Def: A radian is a unit for measuring angles other than degrees and is measured

More information

Multiples and Divisibility

Multiples and Divisibility Multiples and Divisibility A multiple of a number is a product of that number and an integer. Divisibility: A number b is said to be divisible by another number a if b is a multiple of a. 45 is divisible

More information

Lecture 3 Complex Exponential Signals

Lecture 3 Complex Exponential Signals Lecture 3 Complex Exponential Signals Fundamentals of Digital Signal Processing Spring, 2012 Wei-Ta Chu 2012/3/1 1 Review of Complex Numbers Using Euler s famous formula for the complex exponential The

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

Discrete Fourier Transform (DFT)

Discrete Fourier Transform (DFT) Amplitude Amplitude Discrete Fourier Transform (DFT) DFT transforms the time domain signal samples to the frequency domain components. DFT Signal Spectrum Time Frequency DFT is often used to do frequency

More information

FAST Fourier Transform (FFT) and Digital Filtering Using LabVIEW

FAST Fourier Transform (FFT) and Digital Filtering Using LabVIEW FAST Fourier Transform (FFT) and Digital Filtering Using LabVIEW Instructor s Portion Wei Lin Department of Biomedical Engineering Stony Brook University Summary Uses This experiment requires the student

More information

ECE 556 BASICS OF DIGITAL SPEECH PROCESSING. Assıst.Prof.Dr. Selma ÖZAYDIN Spring Term-2017 Lecture 2

ECE 556 BASICS OF DIGITAL SPEECH PROCESSING. Assıst.Prof.Dr. Selma ÖZAYDIN Spring Term-2017 Lecture 2 ECE 556 BASICS OF DIGITAL SPEECH PROCESSING Assıst.Prof.Dr. Selma ÖZAYDIN Spring Term-2017 Lecture 2 Analog Sound to Digital Sound Characteristics of Sound Amplitude Wavelength (w) Frequency ( ) Timbre

More information

Reading: Johnson Ch , Ch.5.5 (today); Liljencrants & Lindblom; Stevens (Tues) reminder: no class on Thursday.

Reading: Johnson Ch , Ch.5.5 (today); Liljencrants & Lindblom; Stevens (Tues) reminder: no class on Thursday. L105/205 Phonetics Scarborough Handout 7 10/18/05 Reading: Johnson Ch.2.3.3-2.3.6, Ch.5.5 (today); Liljencrants & Lindblom; Stevens (Tues) reminder: no class on Thursday Spectral Analysis 1. There are

More information

Solutions to Information Theory Exercise Problems 5 8

Solutions to Information Theory Exercise Problems 5 8 Solutions to Information Theory Exercise roblems 5 8 Exercise 5 a) n error-correcting 7/4) Hamming code combines four data bits b 3, b 5, b 6, b 7 with three error-correcting bits: b 1 = b 3 b 5 b 7, b

More information

Music 270a: Fundamentals of Digital Audio and Discrete-Time Signals

Music 270a: Fundamentals of Digital Audio and Discrete-Time Signals Music 270a: Fundamentals of Digital Audio and Discrete-Time Signals Tamara Smyth, trsmyth@ucsd.edu Department of Music, University of California, San Diego October 3, 2016 1 Continuous vs. Discrete signals

More information

Digital Signal Processing Lecture 1 - Introduction

Digital Signal Processing Lecture 1 - Introduction Digital Signal Processing - Electrical Engineering and Computer Science University of Tennessee, Knoxville August 20, 2015 Overview 1 2 3 4 Basic building blocks in DSP Frequency analysis Sampling Filtering

More information

E40M Sound and Music. M. Horowitz, J. Plummer, R. Howe 1

E40M Sound and Music. M. Horowitz, J. Plummer, R. Howe 1 E40M Sound and Music M. Horowitz, J. Plummer, R. Howe 1 LED Cube Project #3 In the next several lectures, we ll study Concepts Coding Light Sound Transforms/equalizers Devices LEDs Analog to digital converters

More information

Chapter 3 Data and Signals 3.1

Chapter 3 Data and Signals 3.1 Chapter 3 Data and Signals 3.1 Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Note To be transmitted, data must be transformed to electromagnetic signals. 3.2

More information

Real and Complex Modulation

Real and Complex Modulation Real and Complex Modulation TIPL 4708 Presented by Matt Guibord Prepared by Matt Guibord 1 What is modulation? Modulation is the act of changing a carrier signal s properties (amplitude, phase, frequency)

More information

Chapter-2 SAMPLING PROCESS

Chapter-2 SAMPLING PROCESS Chapter-2 SAMPLING PROCESS SAMPLING: A message signal may originate from a digital or analog source. If the message signal is analog in nature, then it has to be converted into digital form before it can

More information

Introduction to Telecommunications and Computer Engineering Unit 3: Communications Systems & Signals

Introduction to Telecommunications and Computer Engineering Unit 3: Communications Systems & Signals Introduction to Telecommunications and Computer Engineering Unit 3: Communications Systems & Signals Syedur Rahman Lecturer, CSE Department North South University syedur.rahman@wolfson.oxon.org Acknowledgements

More information

Computer Graphics (Fall 2011) Outline. CS 184 Guest Lecture: Sampling and Reconstruction Ravi Ramamoorthi

Computer Graphics (Fall 2011) Outline. CS 184 Guest Lecture: Sampling and Reconstruction Ravi Ramamoorthi Computer Graphics (Fall 2011) CS 184 Guest Lecture: Sampling and Reconstruction Ravi Ramamoorthi Some slides courtesy Thomas Funkhouser and Pat Hanrahan Adapted version of CS 283 lecture http://inst.eecs.berkeley.edu/~cs283/fa10

More information

Notes on Fourier transforms

Notes on Fourier transforms Fourier Transforms 1 Notes on Fourier transforms The Fourier transform is something we all toss around like we understand it, but it is often discussed in an offhand way that leads to confusion for those

More information

2.5 Amplitude, Period and Frequency

2.5 Amplitude, Period and Frequency 2.5 Amplitude, Period and Frequency Learning Objectives Calculate the amplitude and period of a sine or cosine curve. Calculate the frequency of a sine or cosine wave. Graph transformations of sine and

More information