Code. Music. Live.
open sourceMIT AND AGPL-3.0-or-laterfree
Sonic Pi is a free, open source instrument you play by writing code: you compose and perform music with live loops, scales, chords, samples and synths written as code, and change it while it plays. It's used by professional musicians and DJs for live-coded performances, in computing and music lessons, and is designed to be accessible to blind and partially sighted people. The app runs on Windows, macOS and Linux (including Raspberry Pi), with MIDI, OSC, live audio in and out and Ableton Link, and a beta runs in the browser on the SuperSonic audio engine. It began as a Cambridge University Computer Lab research project with Raspberry Pi and is now independent and community supported.
Problems it solves
- I want to make music by writing code and change it live while it plays
- teach kids programming through making music in a computing lesson
- perform a live coding set at a club or algorave
- learn to code as a musician without starting with abstract exercises
- drive my MIDI synths and drum machines from algorithmic patterns
- sync a code-based instrument with Ableton Live over Link
- a music programming tool that works with a screen reader
- make generative music on a Raspberry Pi
Features
- live loops you can change while the music plays
- built-in synths and effects controlled from code
- bundled CC0 sample library
- MIDI and OSC in and out
- live audio in and out
- Ableton Link and Link Audio
- gamepad input
- built-in tutorial and examples
- browser version (beta)
- AppImages for x64, Arm64 (Raspberry Pi) and 32-bit Linux
Limitations
- The browser version has no OSC, Ableton Link or low-latency audio through an audio interface1
Alternatives
The same job
These do what Sonic Pi does.
- Strudel Live coding music patterns in the browser
- SuperCollider A platform for audio synthesis and algorithmic composition
- Pure Data Open source visual programming language for real-time audio and multimedia
- Max Visual programming for audio, video and interactive media
