Sonic Pi app icon

Audio

Sonic Pi

Sonic Pi turns code into music: type commands, press run, and hear synths, samples and loops play live on Windows, macOS or Linux at no cost.

WindowsmacOSLinuxMIT

Sonic Pi: making music by writing short programs

What it does

Sonic Pi is a live coding environment in which music is written as text. You type short instructions in a Ruby-derived language, press the run button, and an internal synthesis engine produces sound immediately, changing as you edit. It was created for education, and the installer includes a built-in tutorial with worked examples, which makes it a practical way to teach programming and music at the same time. The engine is a SuperCollider-based synthesizer with a library of samples and synth voices, and the source code is released under the MIT licence, so schools and individuals can use it freely.

The workflow

Open the app and one of the tutorial sections, read a short example, and press run to hear it. Editing while it plays is the point: loops start and stop, new layers are queued to join on the next bar, and parameters such as cutoff, amplitude and pan can be changed with randomisation or slowly smoothing functions. Live loops let several musical parts run concurrently on their own threads, and the cue system synchronises them so a drum pattern, a bassline and a melody can be layered without writing a timeline. Finished ideas can be recorded to a WAV file with the built-in recorder.

Practical settings and limits

Audio configuration is minimal by design: you choose the output device and the engine's sample rate, and the defaults are usually correct. The bigger adjustment is the sound engine's own latency, which is tuned for stable playback rather than tight interaction; Sonic Pi is not the tool for playing a MIDI keyboard through a plugin. There is no piano roll, no mixer view and no plugin hosting, so anything that needs visual arrangement must be expressed in code. Very dense code with many live loops will consume CPU, and the tutorial's own examples are the best guide to keeping things efficient.

Who should choose something else

Choose LMMS or REAPER if you want a piano roll, a mixer and plugin instruments, and pick a tracker if you prefer step-based editing. Sonic Pi is the wrong tool for recording bands, editing podcasts or preparing delivery masters. It excels where the goal is learning, experimenting with algorithmic music, or performing a set by typing code in front of an audience.

Best for
Teachers, students and live coders who want to explore programming and music together in one free environment.
Good to know
Sonic Pi is text-first: there is no piano roll, mixer or plugin hosting, and the engine is tuned for stability rather than lowest latency.

How to get started

  1. Download the 64-bit Windows installer from the official Sonic Pi site and run it.
  2. Launch Sonic Pi and open the tutorial in the left-hand panel.
  3. Choose an output device from the audio preferences if the default is wrong.
  4. Type a short live loop such as a sample and a synth, then press run to hear it.
  5. Edit the code while it plays, then use the recorder to write the result to a WAV file.

Questions & answers

Do I need to know how to program?

No. The bundled tutorial starts from single lines of code and builds up gradually, and every example can be played immediately.

Does Sonic Pi work with MIDI controllers?

It can receive MIDI input and send MIDI out, but it is not designed as a plugin host or a low-latency performance rig.

Is it free for schools?

Yes. It is released under the MIT licence and can be installed on as many machines as you like at no cost.

More in audio

View category