Repository Public
1{2 "slug": "sonata",3 "lede": "A native macOS studio where music is written as code. Sonata is a language with its own compiler, real-time audio engine, 68 instrument engines and 85 effects, and a studio around it: timeline, audio and MIDI tracks, mixer, analysis lab, score and offline documentation. Version 0.4.0 is a preview.",4 "overview": [5 "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.",6 "Nothing in it is borrowed from another audio program. The compiler, the engine, 68 instrument engines and 85 effects are written for it, and the app links no third-party audio library. The engines range from physical models (a bowed string with a friction junction, a hammer piano, reeds, flutes and brass with real registers, drums and cymbals) to additive, wavetable, FM, granular and spectral synthesis, plus a sampler for your own files. Exports are WAV, AIFF and FLAC, with stems, plus MIDI, MusicXML and a PDF score.",7 "Version 0.4.0 brings Sonata Language 1.0: types and units checked before anything runs, side chains, playing techniques and per-note expression, tunings from Scala files, additive metres, sections and arrangement, chord symbols and a theory library. Every script written for 0.1 keeps its meaning.",8 "The studio now holds audio and MIDI tracks beside the tracks of the code: non-destructive regions, takes and comps, automation that can be written from the faders, freeze, and an undo history that survives a crash. What you change there is kept beside the code as reversible edits, and the code is never rewritten behind your back.",9 "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.",10 "This is a preview on the way to 1.0, and it says so. It passes 762 Rust tests and 119 Swift tests, and its self-test passes 35 of 35 steps on a second Mac, but nobody has yet listened to it critically, nobody has operated the studio by hand, and recording was only exercised with synthetic input. The repository's status file lists what is tested, what is measured and what is missing."11 ],12 "stats": [13 {14 "value": "68",15 "label": "instrument engines, 606 named instruments"16 },17 {18 "value": "85",19 "label": "effects"20 },21 {22 "value": "216",23 "label": "example scripts, each compiled and rendered by the tests"24 },25 {26 "value": "881",27 "label": "automated tests (762 Rust, 119 Swift)"28 }29 ],30 "features": [31 {32 "title": "The Sonata language",33 "intro": "Sonata Language 1.0, with a written specification and a grammar.",34 "items": [35 {36 "name": "Notes, chords and rhythm",37 "text": "Note names with octaves, exact fractional durations, tuplets, swing, ties, articulations, tempo changes and ramps, changing time signatures, microtones in cents."38 },39 {40 "name": "Programming when you want it",41 "text": "Constants, functions, patterns with parameters, bounded loops, conditions, modules, and seeded randomness, so a generative piece is reproducible."42 },43 {44 "name": "Units that are checked",45 "text": "Beats, seconds, hertz, decibels and semitones are different types. Mixing them is a compile error with a suggestion, not a surprise in the audio."46 },47 {48 "name": "Precise diagnostics",49 "text": "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."50 },51 {52 "name": "Techniques and expression",53 "text": "Slap, harmonic, palm mute, rimshot, flutter and more, with pressure and slide curves on a single note; 55 of the 68 engines respond per voice."54 },55 {56 "name": "Tunings and form",57 "text": "Equal divisions, cents and ratio tables or Scala files; sections with an arrangement; motifs you can invert, reverse and transpose; chord symbols such as Cmaj7#11/E."58 }59 ]60 },61 {62 "title": "Sound",63 "intro": "Synthesis and physical models; a sampler for your own files.",64 "items": [65 {66 "name": "68 engines",67 "text": "Strings, keyboards, guitars, winds, percussion, synthesis and experimental families, each a different model, each put through the same automated checks of pitch, level, stability and clicks."68 },69 {70 "name": "606 named instruments",71 "text": "The standard library binds every preset to a name such as GrandPiano, Cello or Marimba, and you can define your own in a few lines or wire one from 165 kinds of patch node."72 },73 {74 "name": "85 effects",75 "text": "Equalisers, multiband dynamics, a true-peak limiter checked with a BS.1770 meter, tape, tube and amplifier, five reverberators, spectral effects, pitch shifting, restoration and binaural panning."76 },77 {78 "name": "A mixer with buses",79 "text": "Faders in decibels, constant-power pan, sends and returns, automation, and a master limiter that is on by default."80 }81 ]82 },83 {84 "title": "Studio",85 "intro": "See and adjust what the code produces.",86 "items": [87 {88 "name": "Timeline over real audio",89 "text": "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."90 },91 {92 "name": "Audio and MIDI tracks",93 "text": "Import or record onto tracks that play beside the code: split, trim, slip, fades and crossfades, takes with a comp, warp markers, all non-destructive and undoable."94 },95 {96 "name": "Automation",97 "text": "Lanes for volume, pan and the parameters of instruments and effects, with curves per segment and write, touch, latch and trim modes driven from the faders."98 },99 {100 "name": "Piano roll",101 "text": "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."102 },103 {104 "name": "Live reload",105 "text": "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."106 },107 {108 "name": "MIDI keyboard",109 "text": "A connected keyboard plays the instrument of the selected track."110 }111 ]112 },113 {114 "title": "WaveLab",115 "intro": "Measurements of the signal that is really there.",116 "items": [117 {118 "name": "Spectrum and spectrogram",119 "text": "FFT sizes from 256 to 32,768 points, four windows, a calibrated dBFS axis, labelled peaks, and PNG or CSV export."120 },121 {122 "name": "Oscilloscope and vectorscope",123 "text": "Triggered waveform with period and frequency read-outs; stereo correlation, balance and width."124 },125 {126 "name": "Harmonics, envelopes, filters",127 "text": "Fundamental, partials and distortion of a tone; measured attack and release against the instrument's envelope; frequency and phase response of any effect."128 },129 {130 "name": "Loudness",131 "text": "Momentary, short-term and integrated loudness in LUFS and true peak, following ITU-R BS.1770-4."132 }133 ]134 },135 {136 "title": "Compose with Claude",137 "intro": "Optional, with your own key.",138 "items": [139 {140 "name": "From a sentence to a piece",141 "text": "Describe the mood, the instruments, the length. The model answers with a complete Sonata program."142 },143 {144 "name": "Checked by the compiler",145 "text": "The app compiles the answer itself and sends errors back for correction, at most four requests. You see the result only once it compiles."146 },147 {148 "name": "Measured before you open it",149 "text": "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."150 },151 {152 "name": "Your key, your Mac",153 "text": "The key is stored in the macOS Keychain. In Compose mode only your description and the language description are sent, never your project."154 }155 ]156 },157 {158 "title": "Tools",159 "intro": "For people who live in a terminal.",160 "items": [161 {162 "name": "Command line",163 "text": "sonata check, render, play, fmt, inspect, export, import, analyze, test and benchmark, with batch modes, stable exit codes and JSON output. The tools ship inside the app."164 },165 {166 "name": "Language server",167 "text": "Diagnostics, completion, hover with types, rename, code actions and formatting for any editor that speaks LSP."168 },169 {170 "name": "Packages",171 "text": "Share modules as verified archives: every file is pinned by a SHA-256, nothing in a package is ever executed."172 },173 {174 "name": "Interchange",175 "text": "MIDI with pitch bend, MPE and tuning tables, MusicXML export and import, and a report of what a file could not carry."176 }177 ]178 }179 ],180 "screenshots": [181 {182 "file": "01-studio.jpg",183 "device": "mac",184 "title": "Studio",185 "caption": "The timeline draws the compiled notes over the rendered audio of each track; the dock below switches between mixer, piano roll and the session of audio and MIDI tracks.",186 "alt": "ORIX Sonata studio in dark mode: two tracks with notes over waveforms and the session dock",187 "width": 1800,188 "height": 1153189 },190 {191 "file": "02-code.jpg",192 "device": "mac",193 "title": "Code",194 "caption": "The 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.",195 "alt": "ORIX Sonata code editor with a Sonata composition, a console reading no problems, and a waveform strip",196 "width": 1800,197 "height": 1153198 },199 {200 "file": "03-session.jpg",201 "device": "mac",202 "title": "Studio session",203 "caption": "Audio tracks beside the tracks of the code: regions, two takes with their comp, and a volume automation lane. This view was saved by the application's own self-test.",204 "alt": "ORIX Sonata studio session with code tracks, an audio track with regions and an automation lane, and a track with two takes",205 "width": 1800,206 "height": 1153207 },208 {209 "file": "04-wavelab.jpg",210 "device": "mac",211 "title": "WaveLab: spectrum",212 "caption": "A 4,096-point spectrum of the rendered master with its peaks labelled in hertz and note names, and the resolution printed below.",213 "alt": "ORIX Sonata WaveLab showing a calibrated spectrum in dBFS with labelled peaks",214 "width": 1800,215 "height": 1153216 },217 {218 "file": "05-instrument-lab.jpg",219 "device": "mac",220 "title": "Instrument Lab",221 "caption": "The 68 engines by family, each with every parameter, its techniques and per-note expression, the Sonata source it generates, and the measured spectrum of a test note.",222 "alt": "ORIX Sonata Instrument Lab with a list of engines, parameter sliders, generated source and a spectrum of one note",223 "width": 1800,224 "height": 1153225 },226 {227 "file": "06-score.jpg",228 "device": "mac",229 "title": "Score",230 "caption": "The composition transcribed to staff notation, ready to export as PDF, MusicXML or MIDI.",231 "alt": "ORIX Sonata score page with two staves, a key signature and a tempo mark",232 "width": 1800,233 "height": 1153234 },235 {236 "file": "07-compose.jpg",237 "device": "mac",238 "title": "Compose",239 "caption": "Describe a piece in words. With your own Anthropic key, the model writes it in Sonata and the app compiles, corrects and measures it.",240 "alt": "ORIX Sonata Compose panel with a description field and example prompts",241 "width": 1800,242 "height": 1153243 },244 {245 "file": "08-library.jpg",246 "device": "mac",247 "title": "Library",248 "caption": "Instruments, engines, effects, patch nodes and the example scripts, with real counts and a compiling snippet for each.",249 "alt": "ORIX Sonata Library listing instruments with a detail pane",250 "width": 1800,251 "height": 1153252 },253 {254 "file": "09-compiler.jpg",255 "device": "mac",256 "title": "Compiler",257 "caption": "The 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.",258 "alt": "ORIX Sonata Compiler space with phase timing bars and counters",259 "width": 1800,260 "height": 1153261 },262 {263 "file": "10-documentation.jpg",264 "device": "mac",265 "title": "Documentation",266 "caption": "The manual, offline. Every code block can be compiled, listened to or opened as a document.",267 "alt": "ORIX Sonata documentation chapter with a runnable code block",268 "width": 1800,269 "height": 1153270 },271 {272 "file": "11-assistant.jpg",273 "device": "mac",274 "title": "Assistant",275 "caption": "Questions about the language and your project, answered with your own key; nothing is sent until you set it up.",276 "alt": "ORIX Sonata Assistant space",277 "width": 1800,278 "height": 1153279 }280 ],281 "specs": [282 {283 "label": "Version",284 "value": "0.4.0 (build 5), preview"285 },286 {287 "label": "Released",288 "value": "November 25, 2026"289 },290 {291 "label": "Requires",292 "value": "macOS 15 or later (verified on macOS 27 and 26.4)"293 },294 {295 "label": "Architecture",296 "value": "Apple silicon"297 },298 {299 "label": "Download size",300 "value": "15.9 MB"301 },302 {303 "label": "Installed size",304 "value": "about 46 MB"305 },306 {307 "label": "Signing",308 "value": "Developer ID, notarized by Apple"309 },310 {311 "label": "Entitlements",312 "value": "Audio input only (asked when you first record)"313 },314 {315 "label": "Written in",316 "value": "Rust (compiler, engine) and Swift (app)"317 },318 {319 "label": "Third-party code",320 "value": "serde and serde_json only"321 },322 {323 "label": "Audio",324 "value": "44.1 to 192 kHz offline; real time at the device rate"325 },326 {327 "label": "Exports",328 "value": "WAV, AIFF, FLAC, stems, MIDI, MusicXML, PDF"329 },330 {331 "label": "Language",332 "value": "English"333 },334 {335 "label": "Price",336 "value": "Free"337 }338 ],339 "privacy": [340 "No account, no sign-in and no telemetry.",341 "The app makes no network request unless you set up the optional assistant.",342 "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.",343 "In Compose mode your project is not sent: only your description and the description of the language that ships with the app.",344 "The microphone is opened only when you record on an armed track; recordings stay in your project folder.",345 "Audio is never sent anywhere.",346 "Projects are plain folders of text files that you can read, back up and version."347 ],348 "limits": [349 "Nobody has listened to it critically yet. Tuning, levels, spectra and clicks are measured by tests, but how the instruments and effects sound is still to be judged by ear.",350 "The interface is exercised by a self-test that calls what the controls call; it has not had a complete pass by hand, and some labels of the session toolbar are truncated.",351 "Recording was exercised with synthetic input only; a real microphone, monitoring and MIDI devices are untested.",352 "The targets set for 1.0 are not met yet: 606 of 1,024 presets, 85 of 100 effects, 165 of 200 patch nodes, 216 of 500 example scripts.",353 "No Audio Units and no AAC or MP3 export. Long audio is loaded in memory, not streamed from disk.",354 "The editor does not yet use the new language services, and the new analysis tools are in the command line, not yet in WaveLab.",355 "English only for now; five chapters of the manual are in French."356 ],357 "gettingStarted": [358 "Download the disk image, open it and drag ORIX Sonata to the Applications folder.",359 "Open the app and choose New: a short piece for piano and strings is already written.",360 "Press Command-Return to play it, then change a note or a tempo and listen again.",361 "Open the Examples menu to explore 216 scripts, from a first scale to full pieces.",362 "To try Compose, open the Assistant space, switch to Compose and paste an Anthropic API key."363 ],364 "faq": [365 {366 "q": "Do I need to know how to program?",367 "a": "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."368 },369 {370 "q": "Does it need an internet connection or an account?",371 "a": "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."372 },373 {374 "q": "Is it a replacement for a full digital audio workstation?",375 "a": "Not yet. This preview has audio and MIDI tracks, regions, takes and automation, but they have not been operated by hand or with real inputs, and it does not host plug-ins. It is first a place to write music as code, hear it, look closely at the signal and export it."376 },377 {378 "q": "How does Compose work, and what does it cost?",379 "a": "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."380 },381 {382 "q": "Can I use the compiler without the app?",383 "a": "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."384 },385 {386 "q": "Why is it version 0.4, and a preview?",387 "a": "Because it is a stage on the way to 1.0 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. Version 0.1.0 stays available."388 }389 ]390}