Time-Frequency Spectrum

Slides:



Advertisements
Similar presentations
ECE 8443 – Pattern Recognition EE 3512 – Signals: Continuous and Discrete Objectives: Response to a Sinusoidal Input Frequency Analysis of an RC Circuit.
Advertisements

Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE445S Real-Time Digital Signal Processing Lab Spring.
Review on Fourier …. Slides edited from: Prof. Brian L. Evans and Mr. Dogu Arifler Dept. of Electrical and Computer Engineering The University of Texas.
Ira Fulton School of Engineering Intro to Sinusoids What is a sinusoid? » Mathematical equation : Function of the time variable : Amplitude : Frequency.
EE313 Linear Systems and Signals Fall 2010 Initial conversion of content to PowerPoint by Dr. Wade C. Schwartzkopf Prof. Brian L. Evans Dept. of Electrical.
EE313 Linear Systems and Signals Fall 2010 Initial conversion of content to PowerPoint by Dr. Wade C. Schwartzkopf Prof. Brian L. Evans Dept. of Electrical.
8/27/2015 © 2003, JH McClellan & RW Schafer 1 Signal Processing First Lecture 8 Sampling & Aliasing.
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE345S Real-Time Digital Signal Processing Lab Spring.
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE345S Real-Time Digital Signal Processing Lab Fall.
Motivation Music as a combination of sounds at different frequencies
1 Prof. Nizamettin AYDIN Advanced Digital Signal Processing 30/09/14.
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE445S Real-Time Digital Signal Processing Lab Fall.
1 Prof. Nizamettin AYDIN Digital Signal Processing.
Interpolation and Pulse Shaping
Quadrature Amplitude Modulation (QAM) Transmitter
EE313 Linear Systems and Signals Fall 2010 Initial conversion of content to PowerPoint by Dr. Wade C. Schwartzkopf Prof. Brian L. Evans Dept. of Electrical.
1 Prof. Nizamettin AYDIN Digital Signal Processing.
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin Lecture 4 EE 345S Real-Time.
1 ECE 3336 Introduction to Circuits & Electronics Note Set #8 Phasors Spring 2013 TUE&TH 5:30-7:00 pm Dr. Wanda Wosik.
Signals & Systems Lecture 13: Chapter 3 Spectrum Representation.
EE313 Linear Systems and Signals Fall 2010 Initial conversion of content to PowerPoint by Dr. Wade C. Schwartzkopf Prof. Brian L. Evans Dept. of Electrical.
Time Frequency Analysis
ECE 8443 – Pattern Recognition EE 3512 – Signals: Continuous and Discrete Objectives: Causality Linearity Time Invariance Temporal Models Response to Periodic.
EE313 Linear Systems and Signals Fall 2010 Initial conversion of content to PowerPoint by Dr. Wade C. Schwartzkopf Prof. Brian L. Evans Dept. of Electrical.
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin Lecture 3
Signals & Systems Lecture 17: Chapter 3 Spectrum Representation.
DSP First, 2/e Lecture 5 Spectrum Representation.
DSP First, 2/e Lecture 6 Periodic Signals, Harmonics & Time-Varying Sinusoids.
DSP First, 2/e Lecture 18 DFS: Discrete Fourier Series, and Windowing.
DSP First, 2/e LECTURE #1 Sinusoids Aug © , JH McClellan & RW Schafer.
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE445S Real-Time Digital Signal Processing Lab Spring.
Lecture 19 Spectrogram: Spectral Analysis via DFT & DTFT
Lecture 6 Periodic Signals, Harmonics & Time-Varying Sinusoids
Fourier Series Prof. Brian L. Evans
Sampling and Aliasing Prof. Brian L. Evans
CS 591 S1 – Computational Audio
Introduction & Sinusoids
Signal Processing First
Lecture 11 FIR Filtering Intro
Periodic Signals Prof. Brian L. Evans
Sampling and Aliasing Prof. Brian L. Evans
Signal Processing First
Lecture 5 Spectrum Representation
Review on Fourier …. Slides edited from: Prof. Brian L. Evans and Mr. Dogu Arifler Dept. of Electrical and Computer Engineering The University of Texas.
The Laplace Transform Prof. Brian L. Evans
Sampling and Reconstruction
Frequency Response Prof. Brian L. Evans
Generating Sinusoidal Signals
Lecture 14 Digital Filtering of Analog Signals
Lecture 10 Digital to Analog (D-to-A) Conversion
Lecture 9 Sampling & Aliasing
For a periodic complex sound
Homework 1 (Due: 11th Oct.) (1) Which of the following applications are the proper applications of the short -time Fourier transform? Also illustrate.
LECTURE #2 Phase & Time-Shift Delay & Attenuation
Advanced Digital Signal Processing
Lecture 13 Frequency Response of FIR Filters
Lecture 18 DFS: Discrete Fourier Series, and Windowing
Lecture 17 DFT: Discrete Fourier Transform
Signal Processing First
LECTURE #4 Phasor Addition Theorem
Digital Signal Processing
Signal Processing First
Lecture 7C Fourier Series Examples: Common Periodic Signals
Lecture 10: Fourier Analysis of Periodic Signals
Signal Processing and Data Analysis Simon Godsill Lent 2015
Lecture 5A: Operations on the Spectrum
Digital Signal Processing
Lecture 7: Spectral Representation
Lec.6:Discrete Fourier Transform and Signal Spectrum
Signal Processing First
Presentation transcript:

Time-Frequency Spectrum EE 313 Linear Systems and Signals Fall 2017 Time-Frequency Spectrum Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin Textbook: McClellan, Schafer & Yoder, Signal Processing First, 2003 Lecture 4 http://www.ece.utexas.edu/~bevans/courses/signals

Time-Frequency Spectrum – SPFirst Sec. 3-7 Waveform Synthesis Synthesize many kinds of waveforms using Constant, cosine and general periodic signals when fk = k f0 Non-periodic signals, e.g. ©2003-2016, JH McClellan & RW Schafer

Time-Frequency Spectrum – SPFirst Sec. 3-7 Waveform Synthesis Figure 3-10: Sum of three cosine waves of harmonic frequencies. Fundamental frequency of xh(t) is 10 Hz. Figure 3-11: Sum of three cosine waves with nonharmonic frequencies, x2(t). No exact repetition appears in this signal. We’ve been assuming spectrum (set of amplitudes, frequencies, and phases) does not change with time ©2003-2016, JH McClellan & RW Schafer

Music – Western Scale – Intro Time-Frequency Spectrum – SPFirst Sec. 3-7 Music – Western Scale – Intro https://en.wikipedia.org/wiki/File:Piano_Frequencies.svg C D E F G A B Octave Piano with 88 keys Key frequencies increase from left to right (27.5 to 4186 Hz) Middle C at 262 Hz (C4) in cyan & A at 440 Hz (A4) in yellow Octave has 12 keys and doubles frequencies of previous octave Sheet music Frequency ♩ ♪ B F E D G ♯ 6 8 How fast notes are played depends on time signature and beats per minute (bpm) Time

Music – Western Scale – Intro Time-Frequency Spectrum – SPFirst Sec. 3-7 Music – Western Scale – Intro C major scale Stepped frequencies Constant frequency for each note C4 = 261.626; D4 = 293.665; E4 = 329.628; F4 = 349.228; G4 = 391.995; A4 = 440.000; B4 = 493.883; C5 = 523.251; bpm = 60; % 300 beattime = 60/bpm; fs = 8000; Ts = 1/fs; N = beattime/Ts; t = Ts : Ts : N*Ts; f = [C4,D4,E4,F4,G4,A4,B4,C5]; vec = zeros(1, length(f)*N); for i = 1:length(f) note = cos(2*pi*f(i)*t); vec((i-1)*N+1 : i*N) = note; end sound(vec, fs); 60 bpm 300 bpm Ideal Analysis

Music – Western Scale – Intro Time-Frequency Spectrum – SPFirst Sec. 3-7 Music – Western Scale – Intro Analysis of audio clip for C major scale 300 bpm Artifacts at transitions in notes Artifacts at transitions in notes (more on slide 4-9) N = beattime * fs; % number of samples in one note spectrogram(vec, N, 100, N, fs, 'yaxis'); ylim( [0 0.7] ); % focus on 0 to 700 Hz colormap bone % grayscale mapping Grayscale map

Music – Western Scale – Intro Time-Frequency Spectrum – SPFirst Sec. 3-7 Music – Western Scale – Intro Analysis of audio clip for C major scale (repeated) 300 bpm Artifacts at transitions in notes (more on slide 4-9) N = beattime * fs; % number of samples in one note spectrogram(vec, N, 100, N, fs, 'yaxis'); ylim( [0 0.7] ); % focus on 0 to 700 Hz Default map

Time-Frequency Spectrum – SPFirst Sec. 3-7 Spectrogram Time-frequency plot of a signal Breaks signal x(t) into smaller segments Performs Fourier analysis each segment separately Fourier analysis implemented by fast Fourier transform (FFT) FFT of segment of samples has same number of samples (N) MATLAB: spectrogram( x, N, shift, N, ‘yaxis’) t x(t) Time-Domain Plot t f Spectrogram Shift start of segment Shift start of segment FFT Segment 1 FFT Segment 2 FFT Segment 3 Segment 1 Segment 2 Segment 3

Time-Frequency Spectrum – SPFirst Sec. 3-7 Spectrogram 50% overlap between adjacent segments common Consider “edge” effects in analyzing short sinusoid SECTION LOCATIONS MIDDLE of SECTION is REFERENCE TIME SPFirst adds plotspec (above) and spectgr functions ©2003-2016, JH McClellan & RW Schafer

Time-Frequency Spectrum – SPFirst Sec. 3-8 Chirp Signals Sinusoid with rising or falling frequency vs. time Change in frequency occurs continuously Linear sweep over range of frequencies (e.g. audio test signal) Revisit sinusoidal signal model Assumes constant amplitude, frequency and phase over time Angle in right term y(t) = 2 p f0 t + f varies linearly with time Derivative of y(t) w/r to t is constant frequency 2 p f0 in rad/s

Time-Frequency Spectrum – SPFirst Sec. 3-8 Chirp Signals Linear sweep 261-3951 Hz Chirp x(t) = A cos(y(t)) where Instantaneous freq. (Hz) Scaled slope of angle y(t) For x(t) over 0 ≤ t ≤ tmax, instantaneous frequency from f0 to f0 + 2 m tmax Linear frequency sweep For 0 ≤ t ≤ tmax, sweep f1 to f2 f0 = f1 and m = (f2 – f1) / (2 tmax) x(t) t Spectrogram

Chirp Signals MATLAB code for previous slide fs = 8000; Ts = 1 / fs; tmax = 5; t = 0 : Ts : tmax; f1 = 261; % note C4 f2 = 3951; % note B7 f0 = f1; mu = (f2 - f1) / (2*tmax); phi = 0; angle = 2*pi*mu*t.^2 + 2*pi*f0*t + phi; x = cos(angle); sound(x, fs); figure; plot(t(1:800), x(1:800)); spectrogram(x, 1024, 512, 1024, fs, 'yaxis');