Teach programming to beginners by having them write code that produces music they can hear and change instantly.
Perform live-coded electronic music on stage by editing loops and beats in real time while the audience listens.
Compose algorithmic melodies and drum patterns that evolve procedurally during a performance.
Explore live-coding as an art form combining technology, music, and programming education.
Sonic Pi is a music instrument that you play by writing code. Instead of pressing keys on a keyboard or plucking strings, you type short programs that produce sound: beats, melodies, basslines, and more. You can change the code while the music is playing and hear the result immediately, which is a style of performance called live coding. The project was originally built to teach programming to children in schools. The idea was that making music is more motivating than writing programs that just print text, so students would engage more readily with coding concepts when the output is something they can hear and enjoy. That educational origin still shapes the design: the tool is meant to be approachable for beginners, including young students, while also being capable enough for skilled performers. Over time it has grown beyond the classroom and is also used by professional musicians and DJs who perform with it on stage. The README describes it as sitting at the intersection of art, technology, and education: it gives artists a way to express musical ideas in code, gives researchers a context for exploring questions about live performance and timing in programming languages, and gives educators a tool that encourages open play rather than rigid instruction. Sonic Pi runs on Linux, Mac, and Windows. It is open source and the application and its built-in tutorial have been translated into many languages, including French, German, Spanish, Japanese, Chinese, Russian, and others. The repository contains build instructions for each platform and welcomes contributions, including translation contributions. If you have never seen live coding before, the project website includes videos and examples that show what it looks and sounds like in practice.
← sonic-pi-net on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.