Sonic Pi Livecoding
summary
Sonic Pi is a free live‑coding environment that runs on Raspberry Pi/Mac/PC and lets code play notes, samples and external MIDI devices. It implements live_loop threads that name and run concurrently, a sample slicing workflow to index drum hits, and half/negative playback rates for pitch/time warping. Timing uses a custom scheduling sleep (not POSIX) so threads remain locked in sync, and a deterministic MIDI event queue ensures repeatable performance; the system is demonstrably usable on stage for hours without drift.
AI-written summary · about
chapters (14)
- 0:00Introduction to live coding
- 1:52Programming in popular media
- 4:22Introducing Sonic Pi
- 5:33Challenges in CS education
- 7:45Basic musical coding commands
- 10:28Melody and note manipulation
- 14:13Programming as a creative art
- 16:30Synthesizers and sound design
- 19:14Using samples and loops
- 22:34Debugging and live performance
- 26:47Live loops and concurrency
- 30:43The philosophy of live coding
- 33:28MIDI integration and finale
- 38:21Call to use coding for good
related talks
01h 00mSonic Pi
30mLive Coding Music with Sonic Pi
01h 11mSonic Pi - Live Coding as a tool for next-gen education.
37mSonic PI: live music, live coding
15mProgramming as Performance: Live Coding with Sonic Pi
59mSonic Pi
42mGet Ready to Rock with Sonic Pi - The Live Coding Music Synth for Everyone
50mProgramming as Performance
