macOS · v0.1.0
ORIX Sonata
Write the music. Compile the sound.
A native macOS studio where music is written as code. Sonata is a small language with its own compiler, real-time audio engine, instruments and effects, and a studio around it: timeline, mixer, analysis lab, score and offline documentation.
macOS 15 or laterApple siliconSigned and notarized by Apple
- 16
- instrument engines, 83 presets
- 18
- effects, 44 presets
- 107
- example scripts, each compiled and rendered by the tests
- 332
- automated tests (253 Rust, 79 Swift)
10 screens
Screenshots
StudioThe timeline draws the compiled notes over the rendered audio of each track; below, the mixer with meters and master loudness. CodeThe editor is coloured by the compiler; the console shows the measured compile time and counters, and the strip at the bottom is the master's real waveform. Piano rollNotes of the selected track with their velocities. Edits made here are stored beside the code and can be discarded at any time. WaveLab: spectrumA 4,096-point spectrum of the rendered master with its peaks labelled in hertz and note names, and the resolution printed below. Instrument LabThe plucked-string engine with every parameter, the Sonata source it generates, and the measured spectrum of a test note. ScoreThe composition transcribed to staff notation, ready to export as PDF, MusicXML or MIDI. ComposeDescribe a piece in words. With your own Anthropic key, the model writes it in Sonata and the app compiles, corrects and measures it. LibraryInstruments, engines, effects, patch nodes and the example scripts, with real counts and a compiling snippet for each. CompilerThe time of each phase of the last compilation, the number of events, voices and DSP nodes, and viewers for the AST and both intermediate representations. DocumentationThe manual, offline. Every code block can be compiled, listened to or opened as a document.
What it is
Overview
ORIX Sonata starts from a text file. A composition declares a tempo, a key, tracks and the notes each instrument plays; the compiler turns it into timed musical events and a signal-processing graph, and the engine plays it. The same program gives the same audio every time, on the command line and in the app.
Nothing in it is borrowed from another audio program. The compiler, the engine, sixteen instrument engines (a modal piano, plucked and bowed strings, winds, brass, organ, synthesisers, drums, voice) and eighteen effects are written for it, and the app links no third-party audio library. Exports are WAV, AIFF and FLAC, with stems, plus MIDI, MusicXML and a PDF score.
Around the code there are nine spaces. Studio shows the notes of each track over that track's rendered audio, with a mixer and a piano roll; what you change there is kept beside the code as reversible edits, and the code is never rewritten behind your back. WaveLab measures what is actually playing: oscilloscope, calibrated spectrum, spectrogram, a 3D waterfall, loudness. Instrument Lab opens each engine, and Score transcribes the piece to staff notation.
An optional Compose mode takes a description in plain words. With your own Anthropic key, the model is given the whole description of the language and writes a piece, which the app compiles with its real compiler, sends back for correction if needed, then renders and measures before showing it to you. Everything else works offline and without an account.
This is a first version, and it says so. Pitch, level, spectrum and loudness are measured by more than three hundred automated tests, but nobody has yet sat down and listened to it critically, and the interface has not had a full pass by hand. The repository's status file lists what is tested, what is measured and what is missing.
6 areas
Features
01
The Sonata language
A language made for music, with a written specification and a grammar.
- Notes, chords and rhythm
- Note names with octaves, exact fractional durations, tuplets, swing, ties, articulations, tempo changes and ramps, changing time signatures, microtones in cents.
- Programming when you want it
- Constants, functions, patterns with parameters, bounded loops, conditions, modules, and seeded randomness, so a generative piece is reproducible.
- Units that are checked
- Beats, seconds, hertz, decibels and semitones are different types. Mixing them is a compile error with a suggestion, not a surprise in the audio.
- Precise diagnostics
- Every error has a code, a line and a column, an explanation and often a one-click fix. A failed compile keeps the last valid version playing.
02
Sound
Synthesis and physical models, no sample library.
- Sixteen engines
- Modal piano, plucked string, bowed string, flute, clarinet, brass, organ, bass, subtractive synth, FM, kick, snare, hi-hat, modal percussion, formant voice, and a patch engine you wire yourself.
- 83 named instruments
- The standard library defines instruments such as GrandPiano, Cello, Marimba or SynthPad on top of the engines, and you can define your own in a few lines.
- Eighteen effects
- Equaliser, filter, compressor, limiter, gate, expander, delay, chorus, flanger, phaser, reverb, convolution with generated spaces, distortion, saturation, bitcrusher, stereo width, tremolo and autopan.
- A mixer with buses
- Faders in decibels, constant-power pan, sends and returns, automation, and a master limiter that is on by default.
03
Studio
See and adjust what the code produces.
- Timeline over real audio
- Each lane shows the compiled notes drawn over the rendered waveform of that track, with bars, beats, markers, a cycle range and zoom down to the sample.
- Piano roll
- Move, resize, add and delete notes, edit velocities, quantise. Each edit is stored beside the code and reported if the code later changes the same note.
- Live reload
- Edit the code while it plays: the new version is compiled in the background and swapped in with a short crossfade at the same position.
- MIDI keyboard
- A connected keyboard plays the instrument of the selected track.
04
WaveLab
Measurements of the signal that is really there.
- Spectrum and spectrogram
- FFT sizes from 256 to 32,768 points, four windows, a calibrated dBFS axis, labelled peaks, and PNG or CSV export.
- Oscilloscope and vectorscope
- Triggered waveform with period and frequency read-outs; stereo correlation, balance and width.
- Harmonics, envelopes, filters
- Fundamental, partials and distortion of a tone; measured attack and release against the instrument's envelope; frequency and phase response of any effect.
- Loudness
- Momentary, short-term and integrated loudness in LUFS and true peak, following ITU-R BS.1770-4.
05
Compose with Claude
Optional, with your own key.
- From a sentence to a piece
- Describe the mood, the instruments, the length. The model answers with a complete Sonata program.
- Checked by the compiler
- The app compiles the answer itself and sends errors back for correction, at most four requests. You see the result only once it compiles.
- Measured before you open it
- The piece is rendered offline: you get its waveform, length, peak and loudness, then choose to listen, open it as a new document or replace your code.
- Your key, your Mac
- The key is stored in the macOS Keychain. In Compose mode only your description and the language description are sent, never your project.
06
Tools
For people who live in a terminal.
- Command line
- sonata check, render, play, fmt, inspect, export, import, test and benchmark, with stable exit codes and JSON output. The tools ship inside the app.
- Language server
- Diagnostics, completion, hover, go to definition and formatting for any editor that speaks LSP.
- Packages
- Share modules as verified archives: every file is pinned by a SHA-256, nothing in a package is ever executed.
Details
Specifications
- Version
- 0.1.0 (build 2)
- Released
- November 24, 2026
- Requires
- macOS 15 or later (built and run on macOS 27)
- Architecture
- Apple silicon
- Download size
- 8.5 MB
- Installed size
- about 23 MB
- Signing
- Developer ID, notarized by Apple
- Entitlements
- None
- Written in
- Rust (compiler, engine) and Swift (app)
- Third-party code
- serde and serde_json only
- Audio
- 44.1 to 192 kHz offline; real time at the device rate
- Exports
- WAV, AIFF, FLAC, stems, MIDI, MusicXML, PDF
- Language
- English
- Price
- Free
- SHA-256 of ORIX-Sonata-0.1.0.dmg
- 52bdebd5064f5ac83e9a504c7a5545aa7ab5d9b22b81dd73a271560aa71a5b7e
Your data
Privacy
- No account, no sign-in and no telemetry.
- The app makes no network request unless you set up the optional assistant.
- Compose and the assistant talk only to the provider you choose, with a key kept in the macOS Keychain, after you have agreed to what is sent.
- In Compose mode your project is not sent: only your description and the description of the language that ships with the app.
- Audio is never sent anywhere.
- Projects are plain folders of text files that you can read, back up and version.
Stated plainly
Known limits
- Nobody has listened to it critically yet. Tuning, levels and spectra are measured by tests, but how the instruments sound is still to be judged by ear.
- The interface has been built, launched and captured, and its logic is tested, but it has not had a complete pass by hand.
- No audio or MIDI recording, no editing of audio regions, no Audio Units, no AAC or MP3 export in this version.
- The audio engine uses one core. On the development Mac it held 256 voices comfortably and 1,024 simple voices; 1,024 piano voices do not hold.
- The flute and brass use a simplified excitation, and the score is a faithful transcription, not engraving.
- English only for now.
First use
Getting started
- 01
Download the disk image, open it and drag ORIX Sonata to the Applications folder.
- 02
Open the app and choose New: a short piece for piano and strings is already written.
- 03
Press Command-Return to play it, then change a note or a tempo and listen again.
- 04
Open the Examples menu to explore 107 scripts, from a first scale to full pieces.
- 05
To try Compose, open the Assistant space, switch to Compose and paste an Anthropic API key.
Answers
Questions
Do I need to know how to program?
A first piece is a few readable lines: a tempo, an instrument, and notes written as C4 or F#3 with a duration. The examples and the built-in manual start from there. Loops and functions are there when you want them.
Does it need an internet connection or an account?
No. Compiling, playing, analysing and exporting all happen on your Mac. Only the optional Compose and assistant features use the network, with your own key.
Is it a replacement for a full digital audio workstation?
Not in this version. It does not record audio and does not host plug-ins. It is a place to write music as code, hear it, look closely at the signal and export it.
How does Compose work, and what does it cost?
You describe the music; the model writes Sonata code; the app compiles it and asks for corrections if the compiler finds errors. It uses your Anthropic account, so each piece costs a few requests billed to you by Anthropic.
Can I use the compiler without the app?
Yes. The sonata command-line tool and the language server are inside the application bundle, and the source of everything is in the public repository.
Why is it version 0.1?
Because it is the first release and has not been through a listening pass. The numbers it shows are real measurements, and the list of what remains to be done is published with it.
Also