Working with Audio in Python (feat. Pedalboard)
summary
Library shows how to decode, edit, and encode audio in Python using Pedalboard and its io/resampling stack; pure Python sample-by-sample loops take ~8 seconds per minute while NumPy drops that to ~23 ms per minute, and chunked processing (read/write in 500k-sample blocks) prevents OOMs seen when a 3.9 MB .ogg expands to ~14.2 GB. Demos include a browser Pyodide/WebAssembly proof of concept and the ability to resample on the fly and load VSTs for real-time effects.
AI-written summary · about
chapters (15)
- 0:00Introduction
- 1:44Digital audio basics
- 8:48Reading and editing audio
- 13:22Simple audio effects
- 16:13Pitfalls with audio files
- 19:25Streaming audio safely
- 20:49Python loops for audio
- 21:30What is Pedalboard and its inspiration
- 22:13Applying effects with Pedalboard
- 24:18Third-party plugins in Pedalboard
- 25:43MIDI synthesis with Pedalboard
- 26:44Resampling and time stretching
- 27:48Streaming and recording audio
- 28:29Resources and closing
- 28:51Q&A
related talks
31mSounds good!
33mCode, Play & Rock 'n' Roll: A WebAudio Experiment
21mChanging live audio with the web-audio-api
19mChanging live audio with the web-audio-api
31mLive audio synthesis with Synchrotron
31mIt's so quiet. Let's make music.
21mGenerating Music with Python and FoxDot
23mAudio Programming with Go
