Generating Audio from Latent and Spectral Representations
Learning objectives
- learner can convert a generated log-spectrogram back to audio via denormalize, de-log, and iSTFT
- learner can explain Griffin-Lim phase reconstruction and why it sounds robotic
- learner can describe the two VAE generation modes and the full VAE sound-generation pipeline
Capstone — one whole task that evidences the objectives
Build a small spectrogram-to-audio generator: sample a point from a VAE latent prior (and separately reconstruct an encoded input), decode to a log-spectrogram, then denormalize, de-log, and iSTFT it back to audio using Griffin-Lim for phase — and write up why the Griffin-Lim output sounds robotic and how the two generation modes differ.
Prerequisite modules
This module closes the loop that every spectrogram-based neural instrument depends on: getting sound back out. In a live-coding or studio rig built around a trained VAE — say, a model trained on a folder of found percussion or field recordings — the decoder hands you a normalized log-magnitude image, not a waveform. Until you can invert that image reliably, the model is mute. The whole task here is a small but complete generator: pull a point from the latent prior for a genuinely new sound, reconstruct an encoded input for an A/B comparison, and turn both decoder outputs into audible files you could drop into a sampler or a set.
The arc starts supported: first internalize the three-stage encode–decode–invert pipeline as a map, then work through the inversion procedure step by step — strip the channel dimension, denormalize with the stored per-sample min/max, de-log back to linear amplitude, then iSTFT with the matching hop length. That inversion chain is the part-task drill: it recurs on every sound you ever generate, and skipping or reordering a step silently wrecks amplitudes, so it must become automatic. From there the two generation modes (reconstruction vs. prior sampling) are exercised side by side, and the Griffin-Lim concept supplies the language for the write-up: the network discarded phase, Griffin-Lim converges on a plausible-but-wrong one, and that is exactly the metallic texture you will hear.
The four required atoms gate the capstone directly — without any one of them you either cannot produce audio or cannot explain what you hear. The supporting atoms enrich the picture: RAVE’s architecture and its reparametrized encoder show where these latents come from in a realtime instrument, and the segment-processing principle previews the memory tradeoffs waiting when models scale up.
Atoms in this module
Required — these gate the capstone
Supporting — enrichment, not gating
Part of curricula
- Generative & AI AV Artist — real-time machine-driven performance — Train a neural audio instrument (DDSP → RAVE) recommended