C9 Signals and systems · Practice
The short-time Fourier transform
Problems dealt one at a time, with new numbers every time. The kinds you miss come back more often, and you can keep going as long as you like.
Check
A spectrogram of a 16 kHz signal uses 256-sample frames. How far apart are its frequency bins?
Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.
Check
A record of 16000 samples is analyzed with 256-sample frames hopped by 256/4. How many complete frames fit?
Check
Tones 5 Hz apart, sampled at 16 kHz, must be separated with a Hann window. What's the shortest window, in samples, whose main-lobe half-width is at most 5 Hz?
Check
A chirp sweeps 1000 Hz per second. About what window length shows it most sharply?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
Check
How long is a 512-sample frame at 8 kHz?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
Check
Track a chirp with a spectrogram. At fs = 8000, the signal is x = cos(2*pi*(500*t + b*t**2/2)) for one second (t = n/fs), so its frequency is 500 + b*t Hz. With Hann frames of L = 64 samples, hop L//2, find each frame's peak bin, convert it to Hz with k*fs/L, and compare with the true frequency at the frame's center. Set rms_err (the RMS tracking error in Hz over all frames) and frames.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
What's the bin spacing of 2048-sample frames at 22.05 kHz?
Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.
Check
How many 50%-overlapped frames of 400 samples fit in 4000 samples?
A kind of problem counts as solid once you've got it right on the first try twice in a row. Back to the lesson · Practice every topic in C9