digital signal processing
DESCRIPTION
Digital Signal Processing. Prof. Nizamettin AYDIN naydin @ yildiz .edu.tr http:// www . yildiz .edu.tr/~naydin. Digital Signal Processing. Lecture 5 Periodic Signals, Harmonics & Time-Varying Sinusoids. READING ASSIGNMENTS. This Lecture: Chapter 3, Sections 3-2 and 3-3 - PowerPoint PPT PresentationTRANSCRIPT
1
Prof. Nizamettin AYDIN
http://www.yildiz.edu.tr/~naydin
Digital Signal Processing
2
Lecture 5
Periodic Signals, Harmonics & Periodic Signals, Harmonics & Time-Varying SinusoidsTime-Varying Sinusoids
Digital Signal Processing
4
READING ASSIGNMENTS
• This Lecture:– Chapter 3, Sections 3-2 and 3-3– Chapter 3, Sections 3-7 and 3-8
• Next Lecture:
– Fourier Series ANALYSISFourier Series ANALYSIS– Sections 3-4, 3-5 and 3-6
5
Problem Solving Skills
• Math Formula– Sum of Cosines
– Amp, Freq, Phase
• Recorded Signals– Speech
– Music
– No simple formula
• Plot & Sketches– S(t) versus t
– Spectrum
• MATLAB– Numerical
– Computation
– Plotting list of numbers
6
LECTURE OBJECTIVES
• Signals with HARMONICHARMONIC Frequencies– Add Sinusoids with fk = kf0
FREQUENCY can change vs. TIMEChirps:
Introduce Spectrogram Visualization (specgram.m) (plotspec.m)
x(t) cos(t2 )
N
kkk tkfAAtx
100 )2cos()(
7
SPECTRUM DIAGRAM
• Recall Complex Amplitude vs. Freq
kk aX 21
0 100 250–100–250f (in Hz)
3/7 je 3/7 je2/4 je 2/4 je
10
)2/)250(2cos(8)3/)100(2cos(1410)(
tttx
kjkk eAX
kX2
1
8
SPECTRUM for PERIODIC ?
• Nearly Periodic in the Vowel Region– Period is (Approximately) T = 0.0065 sec
9
PERIODIC SIGNALS
• Repeat every T secs– Definition
– Example:
– Speech can be “quasi-periodic”
)()( Ttxtx
)3(cos)( 2 ttx ?T
3T
32T
10
Period of Complex Exponential
Definition: Period is T
k = integer
tjTtj ee )(
?)()()(
txTtxetx tj
12 kje
kTe Tj 21
kkTT
k0
22
11
N
k
tkfjk
tkfjk
jkk
N
kkk
eXeXXtx
eAX
tkfAAtx
k
1
2212
21
0
100
00)(
)2cos()(
Harmonic Signal Spectrum
0:haveonly can signal Periodic fkfk
Tf
10
12
Define FUNDAMENTAL FREQ
00
1
Tf
(shortest) Periodlfundamenta
(largest) Frequencylfundamenta
)2(
)2cos()(
0
0
000
100
T
f
ffkf
tkfAAtx
k
N
kkk
13
What is the fundamental frequency?
Harmonic Signal (3 Freqs)
3rd5th
10 Hz
14
POP QUIZ: FUNDAMENTAL
• Here’s another spectrum:
What is the fundamental frequency?
100 Hz ? 50 Hz ?
0 100 250–100–250f (in Hz)
3/7 je 3/7 je2/4 je 2/4 je
10
15
SPECIAL RELATIONSHIPto get a PERIODIC SIGNAL
IRRATIONAL SPECTRUM
16
Harmonic Signal (3 Freqs)
T=0.1
17
NON-Harmonic Signal
NOTPERIODIC
18
FREQUENCY ANALYSIS
• Now, a much HARDER problemNow, a much HARDER problem• Given a recording of a song, have the
computer write the music
• Can a machine extract frequencies?– Yes, if we COMPUTE the spectrum for x(t)
• During short intervals
19
Time-Varying FREQUENCIES DiagramF
req
uen
cy i
s th
e ve
rtic
al a
xis
Time is the horizontal axis
A-440
26Ekim2k11
20
SIMPLE TEST SIGNAL
• C-major SCALE: stepped frequencies– Frequency is constant for each note
IDEAL
21
SPECTROGRAM
• SPECTROGRAM Tool– MATLAB function is specgram.m– SP-First has plotspec.m & spectgr.m
• ANALYSIS program– Takes x(t) as input &
– Produces spectrum values Xk
– Breaks x(t) into SHORT TIME SEGMENTS • Then uses the FFT (Fast Fourier Transform)
22
SPECTROGRAM EXAMPLE
• Two Constant Frequencies: Beats
))12(2sin())660(2cos( tt
23
tjtjj
tjtj eeee )12(2)12(221)660(2)660(2
21
AM Radio Signal
• Same as BEAT Notes
))12(2sin())660(2cos( tt
))648(2cos())672(2cos( 221
221 tt
tjtjtjtjj eeee )648(2)648(2)672(2)672(2
41
24
SPECTRUM of AM (Beat)
• 4 complex exponentials in AM:
What is the fundamental frequency?
648 Hz ? 24 Hz ?
0 648 672f (in Hz)
–672 –648
2/41 je
2/41 je2/
41 je2/
41 je
25
STEPPED FREQUENCIES
• C-major SCALE: successive sinusoids– Frequency is constant for each note
IDEAL
26
SPECTROGRAM of C-Scale
ARTIFACTS at Transitions
Sinusoids ONLY
From SPECGRAMANALYSIS PROGRAM
27
Spectrogram of LAB SONG
ARTIFACTS at Transitions
Sinusoids ONLY
Analysis Frame = 40ms
28
Time-Varying Frequency
• Frequency can change vs. time– Continuously, not stepped
• FREQUENCY MODULATION (FM)FREQUENCY MODULATION (FM)
• CHIRP SIGNALS– Linear Frequency Modulation (LFM)
))(2cos()( tvtftx c VOICE
29
)2cos()( 02 tftAtx
New Signal: Linear FM
• Called Chirp Signals (LFM)
– Quadratic phase
• Freq will change LINEARLY vs. time– Example of Frequency Modulation (FM)– Define “instantaneous frequency”
QUADRATIC
30
INSTANTANEOUS FREQ
• Definition
• For Sinusoid:
Derivativeof the “Angle”)()(
))(cos()(
tt
tAtx
dtd
i
Makes sense
0
0
0
2)()(
2)()2cos()(
ftt
tfttfAtx
dtd
i
31
INSTANTANEOUS FREQof the Chirp
• Chirp Signals have Quadratic phase
• Freq will change LINEARLY vs. time
ttt
ttAtx2
2
)(
)cos()(
tttdtd
i 2)()(
32
CHIRP SPECTROGRAM
33
CHIRP WAVEFORM
34
OTHER CHIRPS
(t) can be anything:
(t) could be speech or music:– FM radio broadcast
))cos(cos()( tAtx
)sin()()( ttt dtd
i
35
SINE-WAVE FREQUENCY MODULATION (FM)