Recall from the end of the Lecture 12 notes what DT and DFT samples tell us about the original CT signal.
Problem. At a sampling rate of fs=44100, a total of N=1024 samples are taken from a CT signal of a cello, yielding the DT signal x[n]. The DFT of x[n] is X[k], pictured below.
A zoomed-in graph of ∣X[k]∣ for k∈{0,1,…,24} is shown above. Estimate the frequency of the original cello CT signal.
Solution: Note that argmaxk∣X[k]∣=7. The index k=7 in the DFT X[k] corresponds to the frequency 7×Nfs≈301.46 Hz.
More precisely, the true peak frequency must correspond to some index k∈[6.5,7.5]. This gives us the interval [280Hz,323Hz], corresponding to frequencies between D4 and Eb4.
Greater values of N will yield a finer frequency resolution. Let's consider one way we might increase the value of N.
Problem. Let's increase N by a factor of 8 by defining a new signal y[n] via zero-padding.
y[n]:={x[n]0 if n∈{0,1,…,N−1}. if n∈{N,N+1,…,8N−1}.
We then read from 8⋅Y[k], where Y[k] is the DFT of y[n]. What frequency data should we expect to obtain from this?
Solution: Recall from Lecture 12 that Y[k] is the result of taking 8⋅N samples from the DTFT of yw[n] and dividing them by 8⋅N. Here's the key:
Claim. The DTFT of yw[n] is identical to the DTFT of xw[n].
Thus 8⋅Y[k] is just a more finely-discretized sampling of N1Xw(Ω) than X[k].
Note that argmaxk∣8⋅Y[k]∣=55, which suggests a tighter interval of frequencies [293Hz,298.77Hz] from k∈[54.5,55.5]. But it would be misleading to be so tight: the peak at k=55 is not very much higher than the peak at, say, k=54 or k=56.
Through zero-padding, larger values of N will give us a clearer view of the DTFT Xw(Ω). But if the DTFT Xw(Ω) itself is too fuzzy, we still won't get a clearer vision of the correct CT frequency.
If we want to genuinely increase our frequency resolution, we just need to sample more data. Increasing the length of our DT signal by ×32 to N=32768, we arrive at the following.
Only now can we see the truth:
There are actually two frequencies: both D and E-flat! (In addition to their harmonic series…)
The fundamental frequency is an octave lower than expected, at k=108 (or 145Hz) and k=114 (or 153Hz).
Zero-padding can make our understanding of the data more precise, but it can't make the data we got any more informative.
§ Lecture and Recitation: Circular Convolution
Definition. Given two arrays A and B and a positive integer N, their circular convolution is:
(A⊛B)[n]:=m=0∑N−1A[m]B[(n−m)%N].
Remark. It's just polynomial multiplication in the ring C[z]/(zN−1).
Just as the DTFT of a convolution is the product of the DTFTs, the DFT of a circular convolution is the product of the DFTs.
Theorem. (Circular Convolution = Multiplication) Suppose the DFT of a[n] is A[k], and the DFT of b[n] is B[k], both using the same window size N. Then the DFT of (a⊛b)[n] is N⋅A[k]⋅B[k], and the DFT of a[n]⋅b[n] is (A⊛B)[k].
Proof: Just the same sort of argument as we saw in Lecture 10. For the first direction,
Problem. Consider a DT signal x[n] of length 11 whose DFT for N=16 (found via zero-padding) is X[k]. Determine how the length-11 circular convolution (x⊛x)[n] relates to the signal x′[n]:=16⋅DFT−1(X2[k]).
Solution: By the theorem above, we should expect:
x′[n]=m=0∑10x[m]x[(n−m)%16] and (x⊛x)[n]=m=0∑10x[m]x[(n−m)%11].
So we should expect some time-aliasing errors between x′[n] and (x⊛x)[n]. For example, suppose x[n] is given by:
x[n]:={10 if n∈{1,2,4,8} if n∈{0,3,5,6,7,9,10}.
There is exactly 1 pair of numbers from {1,2,4,8} whose sum is 0 modulo 16—the pair (8,8)—so x′[0]=1. However, there is no pair of numbers from {1,2,4,8} whose sum is 0 modulo 11, so (x⊛x)[0]=0.
§ Recitation: Impulse Trains
An impulse train is a special kind of periodic signal consisting of repeating evenly-spaced impulses.
An example of an impulse train and its DFT is shown above.
Theorem. (Impulse Trains) The Fourier transform of an impulse train is another impulse train.
Given f[n]:=∑m=−∞∞δ[n−mN], its DTFT is F(Ω)=N2π∑k=0N−1δ(Ω−k⋅N2π).
Given f(t):=∑m=−∞∞δ(t−mT), its CTFT is F(ω)=T2π∑k=−∞∞δ(ω−k⋅T2π).
Given f[n]:=∑m=0(N/L)−1δ[n−mL] where L∣N, its DFT for window size N is F[k]=L1∑m=0L−1δ[k−m⋅LN].
Proof: Just plain computation. Work it out in your head; the discussion from Lecture 6 on impulses is relevant here. ■