SPB Git

Repository Public

README.md 5.8 KB 112 lines markdown

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)**2021![macOS](https://img.shields.io/badge/macOS-15%2B-007AFF?style=for-the-badge&logo=apple&logoColor=white)22![Apple Silicon](https://img.shields.io/badge/Apple%20Silicon-arm64-6366F1?style=for-the-badge)23![Rust](https://img.shields.io/badge/Compiler%20%2B%20DSP-Rust-DEA584?style=for-the-badge&logo=rust&logoColor=white)24![Swift](https://img.shields.io/badge/App-Swift%206%20%C2%B7%20SwiftUI-FA7343?style=for-the-badge&logo=swift&logoColor=white)25![Offline](https://img.shields.io/badge/Works-Offline-22C55E?style=for-the-badge)26![Accounts](https://img.shields.io/badge/Accounts-Not%20Required-14B8A6?style=for-the-badge)2728![Version](https://img.shields.io/badge/version-0.1.0%20(2)-F59E0B?style=flat-square)29![Rust tests](https://img.shields.io/badge/Rust%20tests-253%20passed-22C55E?style=flat-square)30![Swift tests](https://img.shields.io/badge/Swift%20tests-79%20passed-22C55E?style=flat-square)31![Examples](https://img.shields.io/badge/examples-107%20compiled%20%26%20rendered-22C55E?style=flat-square)32![Notarization](https://img.shields.io/badge/notarization-Accepted%20by%20Apple-6366F1?style=flat-square)33![Entitlements](https://img.shields.io/badge/entitlements-none-22C55E?style=flat-square)34![Dependencies](https://img.shields.io/badge/runtime%20dependencies-serde%20only-22C55E?style=flat-square)35![Listening](https://img.shields.io/badge/listening%20pass-not%20done%20yet-EF4444?style=flat-square)36![License](https://img.shields.io/badge/license-All%20rights%20reserved-64748B?style=flat-square)3738<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
Files main
Menu

Theme