Skip to content

Releases

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 03 Dec 07:15

First public release. Verified against Sonic Pi 5.0.0 on macOS (Apple Silicon).

Added

  • Execution with confirmation. sonic_pi_run reports completed, running, error (class,
    message and the line number in your code) or unconfirmed, which is never retried
    automatically. Programs up to 4 MiB; code above ~55 KB is sent through a file.
  • Stop (sonic_pi_stop), sent even when Sonic Pi is too busy to answer a probe.
  • Discovery and recovery. Finds Sonic Pi's port and token from the running process (or its GUI
    log), reconnects after restarts and port/token changes, and detects a broken audio engine.
  • Diagnostics. sonic_pi_status, sonic_pi_discover, sonic_pi_doctor (with a fix per failed
    check), sonic_pi_logs (runtime errors, including later errors inside live_loops),
    sonic_pi_reconnect.
  • Validation. sonic_pi_validate: size limits, a host-access guard rail (not a sandbox), a
    Ruby syntax check with Sonic Pi's bundled Ruby, unknown synth/FX/sample/scale/chord names and
    reserved variable names (zero false positives on all bundled examples), loud-amp warnings.
  • Music knowledge from the installed Sonic Pi. list_catalog, get_parameters,
    get_documentation, get_examples, plus reference resources.
  • Compositions. A model of tempo, key, tracks, effects and sections that generates Sonic Pi
    code and hot-swaps only the loops that changed, with undo/redo and JSON save/load.
  • Long-form recording. recording_start / recording_status / recording_stop: lossless
    24-bit WAV written by Sonic Pi's audio engine, up to 4 hours, hard max_seconds limit, free-disk
    check, level checks and provenance. Interrupted takes are kept and their headers repaired; a take
    is stopped when the server exits, and an orphaned take is recovered on the next start.
  • audio_analyze for signal measurements of a finished recording.
  • All 30 tools have titles and behaviour hints (read-only, destructive, idempotent, closed-world),
    and portable input schemas (no $ref, no nullable type arrays).
  • Stable error codes in structured results, including for invalid arguments (INVALID_INPUT).
  • CLI: serve, doctor, status, discover, version.

Verified on the real runtime

  • A 60-minute recording under live edits: valid 3600 s WAV, server latency ≤ 85 ms, no timing or
    memory trend.
  • Same code and seed give identical note sequences.
  • Engine crash mid-recording (kill -9): take marked interrupted, WAV repaired and readable.