SPB Git

Repository Public

STATUS.md 10.0 KB

# ORIX Sonata — Status

Version 0.1.0 (build 2), 2026-11-24. Four words are used precisely: delivered (in the tree and reachable by the user), tested (an automated test passes), measured (a number recorded with its protocol), not verified (never exercised the way a user would).

Nobody has listened to this application. Every statement about sound below is a measurement (pitch, level, spectrum, loudness, determinism), not a judgement of how it sounds. The instruments may be in tune and still sound poor. A listening pass by the owner is the first thing to do. Renders for that purpose: cargo run --release -p sonata-instruments --example audition (one WAV per engine and preset in build/audition/).

# Definition of Done, line by line

The user can… State
create a project delivered; tested at model level (DocumentRoundTripTests), not through the UI by automation
read the documentation delivered: 31 chapters bundled, searchable; every sonata block compiled by tests; 107 example scripts in the Examples menu and the Library, each compiled, rendered and measured by tests
write an original composition delivered: editor with compiler-driven colouring, completion, diagnostics
get precise diagnostics delivered and tested: code, file, line, column, suggestion, safe fix
compile delivered, tested, measured (sub-millisecond phases on the starter piece)
hear several instruments at once delivered; tested with the engine driven offline and with the real output device muted; never heard
see the true waveforms and spectra delivered: master and per-track waveforms come from offline renders of the program; WaveLab reads the engine tap or rendered PCM; calibration tested on known sines
mix delivered: faders, pan, mute, solo, meters, loudness; live and stored as overrides; tested through the engine
save, reopen delivered; tested (package round trip, assets preserved, migration from format 1)
export a valid audio file delivered, tested: WAV, AIFF, FLAC verified by ffmpeg/ffprobe and afinfo
get the same result from the CLI tested: the CLI and the app call the same crates, including studio overrides
reproduce tests and benchmarks Scripts/build.sh test, Benchmarks/2026-11-24-m5max.md
install a Release build delivered: Developer ID, Hardened Runtime, notarized (Accepted), stapled, Gatekeeper accepts a quarantined copy

# Delivered and tested

Language and compiler — Sonata 0.1: normative spec, EBNF, diagnostics reference, compatibility policy; lexer, parser with recovery, canonical idempotent formatter; modules with an embedded standard library; unit algebra; pure functions, patterns, seeded randomness, quotas; cursor model with voices, tuplets, swing, ties, articulations, tempo ramps, signatures; instrument definitions with inheritance, slots and graph { } patches; effects, buses, sends, automation, markers; Musical IR and DSP IR with latency compensation; content-hash cache; AST/IR/graph JSON; language services; LSP server. The mandate's Aurora and CrystalHarp listings compile unchanged. Fuzzing: about 6 000 generated or mutated programs without a panic.

Engine — one processor for real time and offline (bit-identical across block sizes); no allocation in the callback (counting-allocator tests); sample-accurate events; hot swap with crossfade keeping position; loop, seek, count-in, metronome; meters, scope rings, callback timing percentiles; BS.1770-4 loudness (−23.0 LUFS ±0.1 on the reference tone) and true peak.

Sound — 16 engines, 83 presets, 83 named standard instruments; 18 effects, 44 presets; 24 patch nodes. Pitch within 0.13 cent for most engines (clarinet +1.0, bowed string −3.6 at the top), tested at 44.1–192 kHz; levels below 0 dBFS; deterministic renders.

Files — WAV 16/24/32/float, AIFF/AIFC, FLAC 16/24 (own encoder and decoder), TPDF dither, stems, explicit normalisation, atomic writes, refusal to overwrite; MIDI export and import; MusicXML 4.0 (checked with xmllint); vector PDF of the score.

Application — document-based (projects and single files), nine spaces: Code, Compiler, Studio (timeline, mixer, piano roll), WaveLab (12 tools incl. Metal waterfall), Instrument Lab (inspector from the registry, patch editor, analysis), Score, Documentation, Library, Assistant. Command palette, quick open, project search, jump to definition, undo for every studio edit, Examples menu, MIDI keyboard audition, settings. Compose from a description: with the user's Anthropic key (Keychain), the model is given the whole language description (specification, grammar, standard library, parameter reference) and writes a piece that the app compiles, corrects through the compiler's diagnostics (at most four requests), renders and measures.

Tools — sonata CLI (check, build, render, play, fmt, inspect, export, import, test, benchmark, docs, pkg) with stable exit codes; packages (.sonatapkg) with hashes, safe extraction, deterministic resolution and a lock file.

Tests — 253 Rust tests; 79 Swift tests (8 project format, 13 bridge through the C ABI, 58 interface logic), plus two opt-in tests (real output device muted; live Anthropic API); clippy -D warnings and rustfmt clean on the whole workspace; Scripts/check.sh (headers, no secret or audio tracked, no placeholder).

# Measured

See Benchmarks/2026-11-24-m5max.md. In short, on an M5 Max, one audio thread, 48 kHz, 128 frames: 64 voices of synth or piano use 4–6 % of a core (p99 ≤ 0.17 ms); 256 voices 14–23 %; 1024 simple voices about 55 % without a missed callback; 1024 piano voices do not hold. Real device, monitor muted, debug build: 188 callbacks, p99 0.53 ms, no overrun.

Compose, live (Anthropic API, claude-opus-5-5, 2026-11-24, four runs of the opt-in test liveComposeWritesAPieceThatCompiles): every run ended with a piece that compiles and renders. Two compiled on the first request, two needed one correction from the compiler's diagnostics; 20–37 s per run. Examples: a piano lullaby (2 tracks, 60–97 notes, 30–33 s, peak −13.8 to −24.6 dBFS — the −24.6 run is what led to the measured-level feedback now in the loop) and a chiptune (6 tracks, 702 notes, 25.6 s, peak −2.7 dBFS, −15.5 LUFS). With the system prompt cached, a request is billed 61 uncached input tokens. Four runs are an observation, not a success rate; none of these pieces was listened to.

# Not verified

  • Listening, on any speaker or headphone.
  • The interface driven by a person or by XCUITest. Every space was built, launched and captured as a screenshot; buttons were exercised through their models in unit tests. The one XCUITest (Apps/ORIXSonataUITests) was written but not run, because UI automation takes the keyboard and mouse of the machine in use. Drag gestures in the timeline and piano roll, the save and export panels, the detached mixer, the palette and the MIDI keyboard path were never operated by hand.
  • VoiceOver. Labels and values are set on controls and canvases; no pass with VoiceOver on.
  • MIDI hardware, device changes while playing, long sessions, low memory, disk full.
  • The assistant's Chat mode, OpenAI, OpenRouter and local servers against the real services. Compose was run live against the Anthropic API (see Measured); the chat tool loop and the three other providers are tested with scripted providers only.
  • macOS 15–26 (deployment target 15.0; built and run on macOS 27 only) and Intel (arm64 only).
  • The DMG was mounted and assessed on this Mac only, not installed on a second machine.

# Incomplete (explicitly not in 0.1)

Area Missing
Studio audio recording; MIDI recording; trimming, splitting and fading audio regions; visual editing of automation (lanes are displayed); freeze/bounce commands (stems are rendered for display only); markers created in the studio
Editor multi-cursor, minimap, snippets with placeholders, hover cards (hover text exists in the LSP; the editor shows diagnostics tooltips), side-by-side diff outside the assistant
Language static type inference (types and units are checked when code is evaluated); incremental analysis; effect times that follow tempo changes
DSP multiband dynamics, pitch shifting, time stretching, binaural spatialisation, multichannel beyond stereo, multithreaded engine, true-peak limiting (the limiter is sample-peak; true peak is measured)
Instruments the 150-instrument goal: 16 engines / 83 presets exist. Flute and brass use a prescribed excitation (no overblowing); the piano has no string-to-string sympathetic coupling; no sampled instrument; engine preset values are not exposed in the registry
Score slurs, dynamics, lyrics, grand staff, mid-piece clef or key changes, cross-measure beams, collision avoidance, visual editing
Files AAC/MP3 export; RF64 (WAV/AIFF stop at 4 GiB); FLAC above 24 bits or 2 channels
Plugins Audio Units hosting (none)
Packages remote registry; audio content in packages
Assistant streaming answers; an embedded local model (a local OpenAI-compatible server is supported instead)
Localisation the interface is English only; one French chapter in the manual. All interface strings go through the localisation APIs, so a catalogue can be added
Distribution universal2; installation of the CLI outside the bundle (the tools are in Contents/Helpers/)

# Blocked

Nothing is blocked by a missing credential or tool.

# Published

At the owner's request on 2026-11-24: the repository is public at https://git.spboucher.ai/orix-sonata with tag v0.1.0, and the release files (DMG, ZIP, checksums, notes) are at /releases/orix-sonata/v0.1.0/; the DMG was downloaded again from there and its checksum, staple and Gatekeeper assessment verified. The app is listed on https://www.spboucher.ai/apps with its page https://www.spboucher.ai/apps/sonata. Not done: the ORIX site entry (www.orixlab.dev) and the GitHub mirror.

Files main
Menu

Theme