Repository Public
1<!--2ORIX Sonata3File: README.md4Author: Simon-Pierre Boucher5Contact: contact@spboucher.ai6-->7<div align="center">89<img src="Documentation/assets/icon.png" alt="ORIX Sonata icon" width="168" height="168">1011# ORIX Sonata1213**Write the Music. Compile the Sound.**1415A native macOS studio around **Sonata**, a language that compiles a program into musical events,<br>16a DSP graph and audio. Its own compiler, real-time engine, instruments and effects — offline, without an account.<br>17Every waveform, spectrum and number shown is measured; what is not finished is said to be unfinished.1819**Author: [Simon-Pierre Boucher](https://www.spboucher.ai)**202122232425262728-F59E0B?style=flat-square)29303132333435363738<img src="Documentation/screenshots/studio.png" alt="Studio: timeline over the rendered audio of each track, mixer" width="900">3940</div>4142## The language4344```sonata45composition "Aurora" {46 tempo 120bpm47 key D minor48 instrument piano: GrandPiano {49 gain -8dB50 chord [D3, A3, D4] duration 1/251 chord [F3, A3, C4] duration 1/252 effects { reverb hall(mix: 0.2) }53 }54}55```5657```bash58sonata check piece.sonata # diagnostics with codes, lines, suggestions59sonata render piece.sonata -o piece.wav60sonata play piece.sonata61```6263## The application6465| | |66|---|---|67| <img src="Documentation/screenshots/code.png" width="440" alt="Code space"> | <img src="Documentation/screenshots/piano-roll.png" width="440" alt="Piano roll"> |68| **Code** — editor coloured by the compiler, diagnostics with fixes, the master's real waveform | **Studio** — notes over each track's rendered audio; edits are reversible overrides beside the code |69| <img src="Documentation/screenshots/wavelab.png" width="440" alt="WaveLab spectrum"> | <img src="Documentation/screenshots/instrument-lab.png" width="440" alt="Instrument Lab"> |70| **WaveLab** — oscilloscope, calibrated spectrum, spectrogram, 3D waterfall, loudness | **Instrument Lab** — 16 engines, inspector generated from the registry, measured test notes |71| <img src="Documentation/screenshots/score.png" width="440" alt="Score"> | <img src="Documentation/screenshots/compose.png" width="440" alt="Compose from a description"> |72| **Score** — staff notation, PDF, MusicXML, MIDI | **Compose** — describe a piece; with your Anthropic key the model writes it in Sonata and the app compiles, corrects and measures it |73| <img src="Documentation/screenshots/library.png" width="440" alt="Library"> | <img src="Documentation/screenshots/documentation.png" width="440" alt="Documentation"> |74| **Library** — 83 instruments, 18 effects, 107 example scripts | **Documentation** — the manual, offline, every example runnable |7576## Install7778Download `ORIX-Sonata-0.1.0.dmg` from the releases of this repository, open it and drag **ORIX Sonata** to Applications. Signed with a Developer ID and notarized by Apple. See `Distribution/RELEASE-NOTES-0.1.0.md` for the command-line tools and how to uninstall.7980## What is here8182| | |83|---|---|84| `crates/` | the compiler, DSP, instruments, real-time engine, renderer, interchange, packages, CLI, LSP and the C ABI (Rust) |85| `Packages/`, `Apps/` | the macOS application (Swift): Code, Compiler, Studio, WaveLab, Instrument Lab, Score, Documentation, Library, Assistant |86| `StandardLibrary/` | the standard library, written in Sonata |87| `Examples/` | example scripts, compiled and rendered by the tests, bundled in the app |88| `Documentation/` | language specification, manual, acoustics notes, architecture decisions |89| `Benchmarks/` | measured performance with its protocol |9091**Read `STATUS.md` first.** It says what is delivered, tested and measured, what was never92verified (nobody has listened to it yet) and what is not in this version.9394## Build9596Requires Xcode 27, Rust 1.95 (pinned), XcodeGen.9798```bash99Scripts/build.sh test # every Rust and Swift test100Scripts/build.sh debug # the app (Debug) in build/DerivedData101Scripts/build.sh cli # target/release/sonata102Scripts/build-release.sh # signed, notarized DMG and ZIP in dist/ (needs a Developer ID and a notarytool profile)103Scripts/check.sh # headers, no secret or audio tracked, no placeholder104```105106Dependencies: serde and serde_json. Everything else — FFT, filters, instruments, codecs, the107audio engine — is in this repository. See `Documentation/DEPENDENCIES.md`.108109## Licence110111All rights reserved. © 2026 Simon-Pierre Boucher.112