Cette page est affichée en anglais. Une traduction française est en cours.
ScriptsJul 18, 2026·3 min de lecture

Sonic Pi — Code Music Live with a Ruby-Based Synth

An open-source live coding music synthesizer designed for education and creative performance.

Prêt pour agents

Installation agent prête

Cet actif peut être installé après choix du runtime, vérification du plan et exécution de la commande adaptée.

Native · 98/100Policy : autoriser
Surface agent
Tout agent MCP/CLI
Type
Skill
Installation
Single
Confiance
Confiance : Established
Point d'entrée
Sonic Pi Overview
Commande d'installation directe
npx -y tokrepo@latest install 517de5b4-82a5-11f1-9bc6-00163e2b0d79 --target codex

À exécuter après confirmation du plan en dry-run.

Introduction

Sonic Pi is a code-based music creation and performance tool originally designed for computing education in schools. Created by Sam Aaron at the University of Cambridge, it lets you compose and perform music by writing Ruby-like code. It runs on Windows, macOS, Linux, and Raspberry Pi.

What Sonic Pi Does

  • Turns code into music in real time with live coding loops
  • Provides built-in synths, samples, and effects with zero setup
  • Supports multi-channel audio, MIDI output, and OSC communication
  • Enables live performances where code changes are heard immediately
  • Teaches programming concepts through the medium of music composition

Architecture Overview

Sonic Pi consists of a Qt-based GUI editor, a Ruby runtime for interpreting user code, and SuperCollider as the audio synthesis engine. The scheduler uses a deterministic timing model to ensure tight rhythmic accuracy. Communication between components happens over OSC (Open Sound Control), allowing external tools to interact with Sonic Pi programmatically.

Self-Hosting & Configuration

  • Download prebuilt binaries for Windows, macOS, Linux, or Raspberry Pi
  • Build from source using CMake and Qt5/Qt6 on supported platforms
  • Configure audio output device and buffer size in preferences
  • MIDI devices are auto-detected; OSC ports are configurable
  • Runs fully offline with no internet or account required

Key Features

  • Deterministic timing engine for sample-accurate rhythmic precision
  • Live loop system for real-time musical improvisation
  • Built-in library of synths, samples, and FX (reverb, distortion, filters)
  • MIDI and OSC support for hardware synths and external software
  • Comprehensive built-in tutorial with interactive lessons

Comparison with Similar Tools

  • SuperCollider — More powerful but steeper learning curve; Sonic Pi wraps it in a friendlier interface
  • TidalCycles — Haskell-based live coding; more pattern-focused but harder to learn
  • Overtone — Clojure-based music environment; targets experienced programmers
  • Scratch — Visual block coding for kids; Sonic Pi bridges text coding and music

FAQ

Q: Do I need music theory knowledge? A: No. You can start making beats and melodies with simple code patterns.

Q: Can Sonic Pi be used for live performance? A: Yes, it is widely used in algorave performances and live coding events.

Q: Does it support external audio samples? A: Yes, you can load and play any WAV or FLAC file from disk.

Q: Is it suitable for classroom use? A: Absolutely. It was designed for schools and includes a built-in curriculum.

Sources

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires