Skip to main content
AmigoFish

Coding Adventure: Analyzing Audio

From Sebastian Lague · · 21 min

The player loads from YouTube only when you click. It uses YouTube's privacy-enhanced mode.

If the video does not play, the owner may have turned off embedding. Watch it on YouTube instead.

Watch on YouTube

Not rated yet

Description

Let's have some fun messing about with sound and the Short-Time Fourier Transform!

Support my work (and get early access to new videos and source code) on Patreon: https://www.patreon.com/SebastianLague

Project files: https://github.com/SebLague/Audio-Experiments

This is a follow-up to my previous audio-based episode, which you can watch over here: https://www.youtube.com/watch?v=iA6wRgwl7k0

Music credits: https://raw.githubusercontent.com/SebLague/Misc-Project-Info/refs/heads/main/Coding-Adventures/stft.txt

Chapters: 00:00 Intro 02:17 The Short-Time Fourier Transform 04:47 Time and Frequency Resolution 08:14 Single Frequency Experiment 10:25 Creating a Spectrogram 11:48 Hann Window 14:43 Hop and Segment Size 15:57 Spectrogram to Sound 17:05 Painting Sound 20:04 Secret Messages 20:44 Outro

Back to Sebastian Lague · Report a problem