Beating Threads — live coding music
summary
Sonic Pi is a free open‑source live‑coding music system that turns simple commands like play/sleep into synchronized, performance‑grade audio by sending timestamped messages to a local audio server. It implements cue and sync with logical timestamps (an application of Lamport clocks) so named threads and live_loop hot‑swapping stay in phase; effects use block scoping (with_effects) to auto‑manage resources. It targets education and clubs, runs on low‑cost hardware runs on Raspberry Pi, cites ~400,000 users, and includes formal Haskell proofs of its timing model.
AI-written summary · about
chapters (10)
- 0:00Introduction and goals
- 5:58Why programming should be creative
- 10:15Introducing Sonic Pi
- 17:11Simplifying programming for all
- 24:31Live coding and concurrency
- 31:40Timing and synchronization in music
- 39:14Lamport clocks for live performance
- 45:17Code as creative expression
- 55:53Community and accessibility
- 1:00:06Cognitive efficiency in programming








