Project-detail
Ruby (Sonic Pi) Built 2025

Sonic Pi Live-Coding Workshops

Making music with code, starting from one note

1-minute demo: the intro workshop
1-minute demo: Sonic Pi with Ableton
From the intro workshop: first sounds in Sonic Pi.
From the Ableton workshop: setting up Live to take Sonic Pi's MIDI.

Sonic Pi is a free live-coding synth. You type a few lines of Ruby, press run, and it plays. Change the code while it runs and the music changes with it.

The workshop is for all ages and levels. You don’t need to have coded or played an instrument. Bring a laptop and headphones, and keep the headphones on until you want to share.

It runs in three stages. Melody Maker covers notes, chords and silence over 9 short files. Drum Machine adds a beat in 6. Major Scale brings in a first scale, swapping samples and repeating loops, in 8. Each file adds one idea to the one before. The first file is two lines: play :A and sleep 1.

Then comes Your Gig. You pick from a folder of samples and build your own track.

I start with melody and rhythm before anything else. The programming ideas come in as the music needs them.

I wrote seven decks in reveal.js to go with it. They cover an intro to Sonic Pi, Sonic Pi with Ableton, playing live, two on algorithmic drums, a Bach prelude over MIDI, and patterns and rhythm.

The Ableton deck is for people who already know one of the two tools. Sonic Pi sends notes and controller changes to Ableton over MIDI, triggers clips over OSC, and Ableton Link keeps the tempo. It’s planned as 8 sessions. One part covers what to do when code breaks or timing drifts in the middle of a set.

You can read the Ableton and Sonic Pi deck. The other workshops I run are on the facilitation page.