From the Fourier Series to the Spectrogram, Part 1: From Sound to the DFT
Part 1 of 3: from air pressure and a guitar string, through sampling and the Fourier series — to the DFT, derived honestly, delta functions and all.
Part 1 of 3: from air pressure and a guitar string, through sampling and the Fourier series — to the DFT, derived honestly, delta functions and all.
Part 2 of 3: learning to read the DFT’s output — which bin is which frequency, why resolution is one over duration, the mirror symmetry, and the Nyquist frequency.
Part 3 of 3: cut the signal into frames, pay for the cut with leakage, patch it with windows, stack the columns — the spectrogram, and its mel-compressed cousin that speech models actually consume.
The full series in one post: why attention replaced recurrence; every building block of the Transformer — intuition, formula, PyTorch code, a numpy reference and an honest FLOPs count; then the assembled model, trained on a toy task, with the memory costs and the KV-cache explained.
A deep dive into variational autoencoders: the ELBO and its derivation, the reparameterization trick, CVAE — and the discrete-latent line of work (VQ-VAE, VQ-VAE-2, DALL-E) that grew out of it. With self-check questions and a hands-on notebook.