SoundCraft is an open-source, pure-Rust digital audio workstation (a clean-room Pro Tools-style DAW) for macOS, Windows, Linux and the web: multitrack audio/MIDI editing, a full mixer with built-in and CLAP/VST3/AU plug-ins, automation, recording, MIDI input, AAF import, bounce, video and surround — and every action is a command reachable from the CLI, a control channel and an MCP server. Trigger this skill whenever the user mentions SoundCraft (or `.scraft`, `.scraftz`, `.scgrp`, `soundcraft...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Soundcraft?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/midasmatterhorn-soundcraft)
---
name: soundcraft
description: >-
SoundCraft is an open-source, pure-Rust digital audio workstation (a clean-room Pro Tools-style
DAW) for macOS, Windows, Linux and the web: multitrack audio/MIDI editing, a full mixer with
built-in and CLAP/VST3/AU plug-ins, automation, recording, MIDI input, AAF import,
bounce, video and surround — and every action is a command reachable from the CLI, a control
channel and an MCP server. Trigger this skill whenever the user mentions SoundCraft (or
`.scraft`, `.scraftz`, `.scgrp`, `soundcraft-cli`, its control channel/MCP server, or "the
SoundCraft app"), asks what it can or cannot do, which audio/MIDI/session formats it reads or
writes, its keyboard shortcuts, or how to script, automate, inspect or troubleshoot it — and
when they never name it but describe the job ("edit this multitrack session", "bounce a mix to
WAV", "import this AAF", "drive a DAW from an agent"). Do not infer it from Pro Tools: read
this first.
---
# SoundCraft
**Audit basis.** Refreshed 2026-12-03 against tag **v0.21.0**, commit **`8e700934fd37f74377b21d8625329ac517012e54`** — `git rev-parse HEAD` in the pinned checkout confirms, and the installed `/Applications/SoundCraft.app` bundle matches: `CFBundleShortVersionString` 0.21.0, and its binary's read-only `--version` prints `soundcraft 0.21.0 (macos aarch64)`. The bundle contains only `SoundCraft`; it ships no `soundcraft-cli`. The previous skill described v0.20.1 (`a52bbdccbe15342f44e0de1906bf71a621e7a68f`); both tags are in this shallow clone, and `git diff v0.20.1..HEAD --stat` measures **420 files changed, +45,132/−22,617**.
**v0.20.1 → v0.21.0 delta.** The largest change is architectural: the session schema, time API, Standard MIDI File code, video codecs, MCP server plumbing and session bundle moved into shared craft-libs crates pinned together at `8fa4db64a9bb943520259ea95331a303ba788f21`, and `crates/model` and `crates/time` are now thin facades. In the surfaces this skill documents:
- **AAF import landed.** `file.preview_aaf {path, media_dir, composition?}` returns a read-only plan and `file.import_aaf {plan, media_dir, selected, media?: copy, mapping?: absolute|relative, offset_samples?}` builds new tracks from it (`crates/engine/src/cmd/aaf.rs`, `crates/engine/src/aaf.rs`, new `crates/interchange`). This is a strict subset: external mono/stereo PCM WAV only, editable clips and handles, no gain/fades/transitions/embedded essence/split channels/mixed rates, and no AAF/OMF/`.ptx` export.
- **MIDI hardware input now works.** Keyboards and pads play record-armed or input-monitored MIDI/instrument tracks live and are recorded into MIDI clips (`crates/playback/src/midi.rs`, `crates/model/src/midi_input.rs`, `crates/engine/src/io/midi_take.rs`, `docs/midi-input.md`). It has been played/recorded on Linux only; macOS and Windows build but are untested with a device. There is still no MIDI output, clock or merge/loop MIDI recording.
- **Localization exists.** UI languages are `en`, `pt-BR`, `fr`, `es`, `zh-Hans` (`Language::ALL`, `crates/ui-egui/src/localization.rs`), selectable at runtime with `ui.language`; catalogs are compiled in and fall back to English. pt-BR, es and zh-Hans cover all fixed strings, fr is partial, engine diagnostics stay English in zh-Hans, and only Spanish has had a native-speaker terminology review.
- **Mixer/automation:** bus-send pan and mute automation are now read during the mix (`crates/mix/src/send_automation.rs`, `docs/send-automation.md`); a soloed VCA solos its members; `mix.pan` now requires `index: 0|1` on a stereo track; `mix.volume` reports per-track results and whether a value was clamped; `ui.sends_default` sets the level a new send starts at.
- **Plug-ins:** a built-in Frequency Shifter brings the registry to **31** (28 processors + 3 instruments, `crates/dsp/src/plugins.rs`), VST3 editors now open on Linux/X11 as well as macOS and Windows, embedded CLAP editors open on Windows and Linux/X11, and macOS hardened-runtime entitlements now permit third-party plug-in code in both the app and the CLI (`packaging/macos/entitlements.plist`, `packaging/macos/package.sh`).
- **Control/CLI:** the app control channel gained `audio.health` (18 methods + 2 aliases) and closes a connection after a line that is not a request; `soundcraft-cli app` now recognises `ui.scroll`, `ui.zoom` and `audio.health` as methods instead of misrouting them; the web build gained a `window.soundcraft` command API.
- **Counts corrected.** The previous skill's 484 engine specs / 554 live ids counted `test.panic_probe`, which is inside a `#[cfg(test)]` module. The production registry is **485** engine specs (486 only when tests compile the probe), **73** UI commands, so a running app reports **558** ids. The live 0.21.0 CLI confirms 485 (`soundcraft-cli commands --json` returns 485 entries).
- **Carried:** defensive exports (hard-link refusal, exclusive part files), the 128-fold import guard, locked-clip rules, per-sample track/master volume automation, `.scraft` v1 JSON with a 256 MiB cap, and the 4-hour bounce cap were re-verified at this tag.
**Verify against your installed version** — the ArtCraft Launcher auto-updates, so a newer build may differ; every count quoted here was re-measured at this tag, and code paths that moved were re-cited. Measurement methods are in `evidence.md`.
## Overview
SoundCraft is an open-source, pure-Rust digital audio workstation: a clean-room reimplementation of the Avid Pro Tools workflow (recording, editing, mixing, automation, bounce) that also runs in a browser (`README.md`, `docs/target-app-parity.md`). The parity target is Pro Tools Ultimate 2026.4.1. It is a Cargo workspace of **14** library crates plus three entry points — the desktop app (egui 0.37), `soundcraft-cli` (clap, following the repo's RFC-0012), and a WebAssembly build — and `xtask`; the model and time layers are facades over shared craft-libs crates, and the MIDI/session/video format code is shared (`Cargo.toml`, `docs/architecture.md`). It is **pre-alpha**: the repo's generated report counts 397/512 target menu leaves implemented by the engine (77.5 %, `docs/parity-checklist.md`), and the alpha gate still fails on audio-interface routing, MIDI recording on macOS/Windows, and session interchange (`docs/roadmap.md` "Alpha gate"). Source: `github.com/storytold/soundcraft`.
## Capabilities (verified)
### The command layer is the API (start here)
- **485 engine command specs in a production build** from the **33** production modules registered by `command_specs()` (`crates/engine/src/cmd.rs`). Live proof: `soundcraft-cli commands --json` from the 0.21.0 release returns 485 entries.
- Static breakdown: **391** literal `cmd!` ids in non-test engine sources + **94** generated by four local helper macros (`toggle!` 17, `flag!` 61, `radio!` 6, `option!` 10) + **1** direct `CommandSpec` (`mix.insert_state`) = **486**, minus the `#[cfg(test)]`-only `test.panic_probe` = **485**. Counting textual `cmd!(` occurrences overcounts macro-definition/doc/test lines and misses generated ids — derive the count from id literals and subtract the test-gated module.
- The v0.20.1 → v0.21.0 engine delta is exactly **+2**: `file.preview_aaf` and `file.import_aaf`. No engine id was removed or renamed (the full literal set was diffed between tags).
- **73 UI commands** in `UI_COMMANDS` (`crates/ui-egui/src/menus.rs`): windows, dialogs, `app.checkForUpdates`, `ui.dock`, `ui.dock.reset`, `ui.language`, `ui.theme`, `ui.audio_device`, `ui.set`, `ui.sends_default`, `ui.reduce_visual_effects`, `ui.undo_levels`, `window.import_aaf`, `window.*`, `view.mix_section`, `view.scroll_into_view`. The desktop control channel appends them to `engine.commands`, so a running app reports **558 ids** (485 + 73, no overlap); `soundcraft-cli` and the headless MCP server report **485**.
- **CLI** (`soundcraft-cli`, **10 subcommands**, unchanged at v0.21.0, plus `--version`/`--help`; arguments are parsed with clap following RFC-0012, so a flag a subcommand does not take is a usage error): `info FILE [--compact]`; `convert IN OUT [--bit-depth 16|24|32f] [--rate HZ] [--normalize] [--dither|--no-dither] [--in-place]`; `run [--in S.scraft | --demo] [--cmd ID[=JSON]]… [--bounce OUT] [--start T --end T] [--save S.scraft] [--inspect [--compact]] [--in-place]`; `script FILE [--in S | --demo] [--save S] [--bounce OUT [--start T --end T]] [--keep-going] [--inspect [--compact]] [--in-place]`; `commands [FILTER] [--json [--compact]]`; `describe ID [--compact]`; `app [--port P] METHOD [JSON] [--compact]`; `mcp [--connect PORT] [--demo] [--automation-read-root DIR]… [--automation-write-root DIR]…`; `parity [--write PATH]`; `plugins`. No subcommand or flag was added in this delta; clap now propagates `--version` to subcommands.
- `convert` writes only the craft-audio encode formats: the output extension decides, `wav`/`wave`/`bwf`/`aif`/`aiff`/`aifc`/`flac` are accepted, anything else is refused with that list. It keeps a BWF source's `bext` on WAV output, rescaled to the output rate (`apps/soundcraft-cli/src/convert.rs`).
- Carried behaviour: every flag accepts `--flag=value`; `run`, `script` and `convert` reject unknown options and missing values; `--cmd=ID=JSON` inline; `--bounce` with no `--start`/`--end` bounces the whole session; `convert` dithers only when resolution is lost unless `--dither`/`--no-dither` says otherwise; `script --keep-going` still exits non-zero when a command failed.
- `app` shorthand: a dotted command id is wrapped as `engine.execute`; the 18 control methods (including `ui.scroll`, `ui.zoom` and `audio.health`) stay methods (`apps/soundcraft-cli/src/app.rs`). The earlier `ui.scroll`/`ui.zoom` misrouting is fixed.
- **MCP over stdio** (`crates/automation/src/mcp.rs`, now built on `craft-mcp-server`): protocol `2025-06-18` (accepts `2025-03-26`, `2024-11-05`); **17 tools + 2 resources**, verified live with an `initialize` / `tools/list` / `resources/list` exchange against the 0.21.0 CLI. Core: `list_commands`, `execute`, `batch`, `inspect_session`, `new_session`, `open_session`, `save_session`, `import_audio`, `bounce_mix`, `parity`. App-only (need the desktop app plus `mcp --connect`): `screenshot`, `ui_inspect`, `ui_set`, `menu_invoke`, `click`, `drag`, `key`. Resources: `soundcraft://session` and `soundcraft://commands`.
- `batch` runs up to **1000** calls (`MAX_BATCH_CALLS`); larger arrays are rejected before anything runs. Any failed call makes the tool result `isError: true`; `keep_going` still runs the rest. Empty batches and non-object messages get a JSON-RPC `Invalid Request` reply.
- Tool schemas are a subset: `new_session`/`open_session`/`save_session`/`import_audio`/`bounce_mix` forward their arguments to the engine command, so extra engine params work. Verify with `describe`.
- **Desktop control channel**: `soundcraft --control <port>` or `SOUNDCRAFT_CONTROL_PORT`; newline-delimited JSON over TCP on `127.0.0.1`, one reply per line. **18 canonical methods, +2 aliases** (`crates/ui-egui/src/control.rs`): `engine.execute` (alias `command`), `engine.commands`, `engine.parity`, `session.inspect` (alias `document.inspect`), **`audio.health`**, `ui.inspect`, `ui.menu.list`, `ui.menu.invoke`, `ui.set`, `ui.move`, `ui.click`, `ui.drag`, `ui.scroll`, `ui.zoom`, `ui.key`, `ui.text`, `ui.screenshot`, `app.quit`. `ui.dock`, `ui.dock.reset`, `ui.theme`, `ui.audio_device`, `ui.language`, `ui.sends_default`, `ui.reduce_visual_effects`, `ui.undo_levels` and the `setup.*` dialogs are **UI/engine commands** invoked through `engine.execute`, not top-level methods.
- **There is no authentication.** The listener binds loopback only, admits at most 16 connections, bounds each request line, and closes a connection after a line that is not a JSON object with a string `method` (`apps/soundcraft/src/control_server.rs`). Any local process that can reach the port can run commands; do not expose it through a proxy.
- `audio.health {reset?}` returns `callbacks`, `xruns`, `late_callbacks`, `worst_load`, plus `device`, `silent`, `sample_rate`, `buffer_frames`; reset returns the reading and counts afresh.
- `ui.screenshot {path?}` writes a PNG, or returns base64 in `png_base64` and the pixel size when no path is given. It binds the request to the window geometry, focus state and open session: a geometry change is retried within its 8 s deadline and then fails `screenshot stale`; a focus or session change cancels it; it can also fail `screenshot unavailable: the window has no capturable size yet` before the first paint, `screenshot queue full` (8 pending, 4 in flight), `screenshot too large` (64 MiB per image, 192 MiB aggregate encoding peak), `screenshot timed out`, or `screenshot path longer than 4096 bytes`.
- Two UI commands refuse a direct call and name the replacement: `ui.new_tracks_dialog` ("call `track.new` with parameters") and `ui.bounce_dialog` ("call `file.bounce_mix` with a path").
- Offscreen UI, no window: `cargo run -p soundcraft-ui-egui --example ui_shot -- out.png [script.jsonl] [--blank] [--size WxH] [--system-theme light|dark|none]` (`crates/ui-egui/examples/ui_shot.rs`).
- **Path confinement is MCP-only**: `--automation-read-root` / `--automation-write-root` confine every path for the in-process MCP server; each flag may be repeated, a kind left out grants no access of that kind, roots must be existing folders, and `--connect` with roots is refused. The desktop control channel has no equivalent confinement. Limits (`crates/engine/src/file_access.rs`): a symlink that resolves inside a root still wins, so the roots bound an agent, they do not sandbox a hostile one. Reads stay strict: clip-group audio must resolve inside the group folder, a movie path must be a regular file, and AAF media must be a real file directly inside the given `media_dir` (`crates/engine/src/io.rs::check_in_media_dir`, `crates/engine/src/aaf.rs`).
- **The web build has `window.soundcraft`**: a page command API over the same control requests (`request`, `execute`, `commands`, `docInspect`, `uiInspect`, `screenshot`), capped at 64 queued calls (`apps/soundcraft-web/src/api.rs`). It has no TCP channel and no filesystem; the browser saves `.scraftz` bundles instead.
### Editing and arrangement
- Edit window with tracks/clips/waveforms; Mix window (also as a separate native OS window through `window.mix_separate`); movable/dockable panels Tracks/Groups, Clips, MIDI Editor, Memory Locations, Undo History — Tracks/Groups and Clips dock as full-height columns (`crates/ui-egui/src/docking.rs`).
- Five edit modes Shuffle, Slip, Spot, Grid, Grid-Relative; seven tools Zoom, Trim, Selector, Grabber, Scrubber, Pencil, Smart (`crates/model/src/lib.rs` re-exports `craft-scraft-format`).
- **Tool selection:** F5–F10 pick Zoom/Trim/Selector/Grabber/Scrubber/Pencil; **F6+F7 or F7+F8 in either order** and **Cmd/Ctrl+7** pick the Smart Tool; **Cmd/Ctrl+6** picks Pencil. Only `view.zoom_in`, `view.zoom_out` and `view.waveform_zoom` repeat while their key is held — every other shortcut ignores auto-repeat, so one press is one action (`crates/ui-egui/src/shortcuts.rs`).
- **Grid and Nudge time scales.** `view.grid {value?, step?, format?, follow_main?, lines?}` and `view.nudge {value?, step?, format?, follow_main?}`; `format` is `bars_beats|min_secs|timecode|feet_frames|samples` (Clips/Markers additionally for grid, and nudge refuses it). Values accept `"1/16"`, `"1 bar"`, `"1/8t"`, `"1/4."`, `{"seconds"}`, `{"frames"}`, `{"samples"}`, plus `{"timecode":"frame|half_frame|quarter_frame|subframe|second|5_frames"}` and `{"feet_frames":"foot|frame|quarter_frame|subframe"}`. `follow_main: true` makes the Grid/Nudge track the main counter, and a `format: "clips_markers"` grid draws and snaps at visible clip boundaries and memory locations. Snapping excludes the clips being moved (`crates/engine/src/cmd/view.rs`, `craft-scraft-format`'s `grid_lines` / `snap_to_grid_excluding`, `crates/engine/src/edit.rs::grid_delta`). Both settings are saved in the session.
- Fades/crossfades in five shapes; cut/copy/paste/duplicate/repeat/shift/insert-silence/separate/heal/consolidate/strip-silence/nudge; Tab to Transient; Zoom Toggle; loop, quantize-to-grid, clip gain and gain envelope, clip effects, edit locks, colour, ratings. `event.quantize` accepts the quarter-note triplet `1/4t` (`crates/engine/src/cmd/event.rs`).
- **Time- and edit-locked clips keep their extent** through Separate, Trim Start/End and range trims; Event Time Insert/Cut split locked clips first so the timeline moves as a whole (`crates/engine/src/edit.rs`, `crates/engine/src/cmd/event.rs`).
- **Plain Left/Right with an edit selection** scroll the Edit window so the selection's start/end is centred; with only an insertion point, or over the MIDI piano roll, the keys are left alone (`crates/ui-egui/src/shortcuts.rs::centre_on_selection`).
- **Delete or Backspace with nothing in a text field clears the selection**, matching Edit › Clear (Cmd+B), in the Edit window or a separate Mix window; with note focus it deletes notes (`crates/ui-egui/src/shortcuts.rs`).
- **Strip Silence has three modes**: `edit.strip_silence {…, mode?: strip|extract|separate, name?, number?, zeros?, suffix?}`; `edit.strip_silence_preview` returns the padded ranges it would keep. It cuts every boundary in one pass (`crates/engine/src/io/strip.rs`, `crates/engine/src/edit.rs::separate_at_points`).
- **Clip Looping**: `clip.loop {clips?, count?, length?, fill?}`; `clip.unloop {mode?: remove|flatten}`.
- **Clip List › Auto Rename**: `clip.auto_rename {clips?, name?, number?, zeros?, suffix?}` sets the names editing gives the clips it separates; the schemes survive save/reopen.
- Playlists with comping lanes, clip groups (`.scgrp`), Clip List, track folders, VCA masters, track freeze/commit/bounce, file-based track presets (`track.save_preset` / `track.load_preset`) and Import Session Data from another `.scraft`. `.scgrp` import rejects audio paths that are absolute, contain `..`, or resolve through a link outside the group folder (`crates/engine/src/clip_group_file.rs`).
- **`track.commit` keeps the track's exact `ChannelFormat`**, surround/height/ambisonic included, up to the renderer's 16 channels.
- Commands Keyboard Focus single-key editing in the Edit window; `options.keyboard_focus {commands|clips|groups|none}`.
- Undo/redo for document commands, an undo history window, and `engine.history` returning `{undo, can_redo}`. The depth is 1–64 (default 64) and settable through `ui.undo_levels`; live input toggles do not enter undo.
- Marker `kind` is validated (`marker|selection|none`); a wrong or non-string kind is refused instead of silently adding a plain marker (`crates/engine/src/cmd/event.rs`).
### Mixing, automation and plug-ins
- 10 inserts and 10 sends per track (`INSERT_SLOTS`/`SEND_SLOTS`, `craft-scraft-format`'s mixer), busses, aux inputs, master faders, VCAs, routing folders, object/bed routing, solo modes, mute/solo groups, phase invert, input trim, pre/post sends, automatic plug-in delay compensation. A **soloed VCA solos its members** (`crates/mix/src/routing.rs`).
- **31 built-in plug-ins** in `REGISTRY` — 28 processors + 3 instruments (subtractive synth, drum synth, sampler), including the new Frequency Shifter (`freq_shifter`), plus `auto_pan`, `ring_mod`, `subharmonic` (`crates/dsp/src/plugins.rs`, `crates/dsp/src/plugins/freq_shifter.rs`). `engine.plugins` / `soundcraft-cli plugins` list them; live 0.21.0 output has 31 entries. Ids are stable, display names can change — `lofi` shows as "Bit Crusher".
- Offline AudioSuite processing via `audiosuite.process {process, params?, clips?, tracks?, start?, end?}`: any built-in plug-in id from `engine.plugins` plus **seven legacy process names that are not plug-ins** — `normalize`, `reverse`, `duplicate`, `time_stretch`, `pitch_shift`, `varispeed`, `speed_ramp`. Hosted `clap:`/`vst3:`/`au:` ids are refused with a message naming `engine.plugins` (`crates/engine/src/cmd/audiosuite.rs`); `signal_generator` fills a range with a new clip and is also a built-in id. A clip listed twice is processed once, and the total output across clips is budgeted before any processing starts.
- Automation: lanes for volume, pan, mute, send level/pan/mute and any insert parameter; seven modes (`off|read|touch|latch|touch/latch|write|trim`); moving a send fader writes send-level automation; `automation.set_point`, `write_range`, `clear`, `thin`, `thin_all`, `write_to_current`, `write_to_all`, `volume_to_clip_gain`, plus coalesce commands.
- **Track volume (with trim and VCA) and master volume are evaluated at every sample** as a ramp linear in dB (track faders cap at +12 dB); a breakpoint acts on its own sample whatever the block size (`crates/mix/src/automation.rs`, `crates/mix/src/strip.rs`). **Send pan and send mute are now read too** (mono-to-stereo pan, stepped ordinary-bus mute), with the static send values as fallback (`crates/mix/src/send_automation.rs`, `docs/send-automation.md`). Insert parameters are still read once per block.
- `mix.pan {tracks?, pan, index?}` requires `index` 0 or 1 for a stereo track and refuses an index 1 on mono; `mix.volume` returns each track's final dB and a `clamped` flag when the fader stopped at −144/+12 dB (`crates/engine/src/cmd/mix.rs`).
- Third-party hosting in-process: CLAP, VST3 and macOS Audio Units. Discovery: `engine.clap_plugins {rescan?}`, `engine.vst3_plugins {rescan?}`; ids `clap:<id>`, `vst3:<class id hex>`, `au:<type>:<subtype>:<manufacturer>`. **There is no Audio Unit discovery command** — the UI scans AUs at menu time. VST3 scanning now covers the standard per-user and system scan paths (`crates/vst3-host/src/scan.rs`). Hosts are told whether they render offline, and a load failure keeps the system's dlopen/GetPluginFactory reason.
- Plug-in editors: CLAP opens the plug-in's own floating window; a plug-in that offers only an embedded editor is hosted on **Windows and Linux/X11** (not macOS); VST3 editors open on **macOS, Windows and Linux/X11**; Audio Units never. A CLAP editor must be asked for on the process main thread, enforced on every platform.
- **macOS signing:** the hardened-runtime entitlements `com.apple.security.cs.disable-library-validation` and `com.apple.security.cs.allow-unsigned-executable-memory` are applied to both the app and the CLI (`packaging/macos/entitlements.plist`, `packaging/macos/package.sh`). This removes the previous entitlement block on third-party VST3s; verified from packaging, not by loading a commercial plug-in in a signed build.
- A CLAP reset keeps queued note-offs and reserves queue slots for releases, so a hosted instrument stops every held note at Stop, Play and Locate (`crates/clap-host/src/plugin.rs`). A hosted instrument's reported latency is added to the strip's delay compensation.
- Plug-in presets are partly UI-only; for a hosted plug-in's opaque state use `mix.insert_state {track, slot, state: base64|null}` — not undoable and not journaled.
### Recording, MIDI input and audio devices
- Record arm, input monitoring, punch on selection or on the fly, pre/post-roll, loop recording with a playlist per take, destructive and track-punch modes.
- **Live input state is transient**: `mix.record_arm`, `mix.input_monitor` and `track.set_record_to_input_only` write the runtime session, are not undoable, do not mark the document dirty, and are not restored from an autosave (`crates/engine/src/cmd/mix.rs`, `crates/engine/src/dirty.rs`, `crates/engine/src/autosave.rs`).
- Takes **stream to disk** while recording: one WAV per take part, created exclusively, the header rewritten every second; a take that fills a part continues in `<name>-2.wav`, `-3.wav`, … up to the import budget, and the parts are placed as one take. After stop the take is decoded into RAM as a session source (`crates/playback/src/record.rs`, `crates/engine/src/io/record.rs`). A session never saved and with no settings folder records into a new random, owner-only (0700 on Unix) folder under the temporary folder, made exclusively on first use (`crates/ui-egui/src/app/playback.rs`, `crates/engine/src/autosave.rs::create_unique_folder`).
- **Track input routing exists**: audio inputs use `track.input {"input":"In 3"}` (or a bus name / `none`); `plan_takes` records consecutive device channels starting from that input, wrapped to the device's input count (`crates/engine/src/io.rs::plan_takes`). What is still missing is an input/output matrix with per-channel gain/delay and latency reporting.
- **MIDI input is implemented** (`crates/playback/src/midi.rs`, `crates/engine/src/io/midi_take.rs`, `docs/midi-input.md`): every MIDI input is opened and rescanned every two seconds; a MIDI/instrument track listens to all devices/channels until `track.input {"input":"MIDI:<channel>:<device>"}` narrows it (`*` = any; e.g. `MIDI:10:*`). Record-enabled or input-monitored tracks play the instrument live; a record pass writes notes, controllers, pitch bend, aftertouch and program changes into a MIDI clip. `setup.midi_input_filter` keeps message kinds out of recordings; device switches are app preferences, not session state. `ui.inspect` reports `midi_inputs`, `midi_events` and `midi_events_dropped`. A recorded take is capped at 1,048,576 events (`MAX_MIDI_TAKE_EVENTS`); the device input queue is separately bounded, and when it overflows SoundCraft drops the excess, releases that device's held notes and marks the take incomplete.
- Platform reality: Linux ALSA sequencer, macOS CoreMIDI, Windows WinMM. **Played and recorded on Linux only**; macOS/Windows build but are untested with a device. No MIDI input on FreeBSD or the web.
- Device selection is real: `ui.audio_device {system?, output?, input?, sample_rate?, buffer_size?, list?}` changes the audio system/device/rate/buffer (sample rate 8 000–768 000, buffer 16–8192) and reopens the player; it refuses while recording. `setup.playback_engine {device?, buffer_size?, delay_compensation?}` is the engine command: a programmatic call in the desktop app routes device/buffer through `ui.audio_device` and applies delay compensation, returning the open device and `applied: true` when a device is open; headless it stores the request and returns `applied: false` (`crates/engine/src/cmd/setup_more.rs`, `crates/ui-egui/src/panels/windows.rs`). ASIO is behind the opt-in `asio` build feature.
- Autosave on its own thread after changes, one folder per session, plus crash recovery at launch; `Backups/` beside a session keeps the newest ten **numbered** copies (`Backups/<name> backup <n>.<ext>`) on overwrite.
### MIDI, notation, instruments and time
- Instrument and MIDI tracks, piano-roll editor with velocity lane and event list, note add/edit/delete/move, quantize, input quantize, step input, transpose, real-time properties, MIDI track offsets, retrospective record.
- Standard MIDI File code now comes from shared `craft-midi` (`crates/midi/src/lib.rs` re-exports it): reads formats 0 and 1 fully and format 2 best-effort; SoundCraft's exporter sets **format 1**. Controller events are indexed per channel and kind, so a controller number reused across channels no longer collides.
- `mix.sampler_load {track?, path, params?}` / `mix.sampler_clear` for the built-in Sampler; the Sampler accepts the craft-audio decode formats.
- Score Editor and MusicXML export. The command ids remain `file.export_sibelius`, `file.send_to_sibelius` and `file.print_score`, but their labels are "MusicXML...", "MusicXML" and "Print Score..." (`crates/engine/src/cmd/file.rs`). MusicXML and SVG writers come from shared craft-libs crates.
- Monophonic audio-to-MIDI (`edit.copy_audio_as_midi`, `track.extract_midi`) and chord detection to markers.
- Five counter timebases (bars|beats, min:secs, timecode, feet+frames, samples); tempo and meter maps with ramps; key signatures; **Beat Analysis** (id `event.beat_detective`) and Identify Beat; Elastic Audio warping (the "x-form" algorithm displays "Rendered (High Quality)").
### Audio and session formats
- **Read:** WAV/BWF/RF64 and AIFF/AIFF-C natively; FLAC, MP3/MP2/MP1, Ogg Vorbis and Opus, AAC and ALAC in MP4/M4A/M4B and MOV, CAF, AC-3/E-AC-3, and Matroska/WebM audio through `craft-audio`. The container is detected from bytes first, the extension is only a hint (`apps/soundcraft-cli/src/info.rs`, `craft-audio`'s `DECODE_EXTENSIONS`, `docs/file-format-parity.md`).
- **Write:** **seven** extension aliases — `wav`, `wave`, `bwf`, `aif`, `aiff`, `aifc`, `flac` — with optional TPDF dither. WAV switches to RF64 above 4 GiB; float WAV and AIFF-C `fl32` keep finite samples above full scale; FLAC is integer-depth only. There is still no MP3/AAC/Ogg/Opus export (`apps/soundcraft-cli/tests/it/behaviour.rs` asserts the accepted list, `crates/engine/src/cmd/file.rs`).
- Import converts to the session rate, but refuses a conversion that would grow the audio more than **128-fold** or exceed `MAX_IMPORT_SAMPLES` (1 << 30 samples across channels, ~4 GiB of f32); session load, clip-group import and the Sampler use the same guard (`crates/engine/src/io/import.rs`).
- Waveform overviews are generated in memory, not cached as `.wfm` files (`craft_audio::peaks`).
- **Native session `.scraft`**: pretty-printed serde JSON owned by shared `craft-scraft-format` with `format_version` **1**; a newer version is refused. The text is parsed straight into the document, and a **document field repeated in one JSON object is refused** (`duplicate field`), while keys of map-like data and unknown keys keep the last value / are ignored. Files over **256 MiB** are refused unread and are never written (`MAX_SESSION_BYTES`, `crates/engine/src/io.rs`). Audio that only exists in memory is written as 32-bit float WAV into a sibling `Audio Files/` folder; saves are atomic; an overwrite copies the old file to `Backups/` first.
- `.scraftz` is the **browser** bundle (zip of the `.scraft` plus `Audio Files/`, 10,000-entry / 1 GiB caps). Desktop SoundCraft does **not** open it; only the web build does (`crates/engine/src/io/bundle.rs`, `apps/soundcraft-web/src/web.rs`, `crates/ui-egui/src/dialogs/files.rs`).
- Stored media paths are resolved by `craft_docpath.resolve_absolute`: a stored path is followed only when local or on the session's own network share.
- `.scgrp` clip groups are JSON plus a `<name> Audio/` folder of 32-bit float WAVs; import resolves each audio path inside the group folder and refuses an escape, existing or missing alike (`crates/engine/src/clip_group_file.rs`).
- **AAF import** is a strict subset: `file.preview_aaf` reads a CompositionMob's SourceClip/Filler edits with external mono/stereo PCM WAV, then `file.import_aaf` creates new tracks with full source handles, relink and timecode mapping. `media` only supports `copy`; `mapping` is `absolute` or `relative`; media files must be directly inside `media_dir`; importing into a non-empty session requires the same sample rate (no sample-rate conversion). Gain, fades, transitions, embedded essence, split channels, mixed rates and **AAF/OMF/`.ptx` export are absent (`crates/engine/src/cmd/aaf.rs`, `crates/engine/src/aaf.rs`, `crates/interchange/src/lib.rs`, `docs/file-format-parity.md`).
- One session per running app; there are no session tabs.
### Export, bounce and delivery
- `file.bounce_mix {path, format?, bit_depth?: 16|24|32f, start?, end?, source?: main|bus name, normalize?, dither?, fold_down?: stereo}` streams the render to disk and returns `{path, bytes, seconds, peak_db, lufs, true_peak_db}`; `dither` defaults true, `normalize` false, omitted range means the edit selection else the whole content. The doc names `wav|aiff|flac`, but any craft-audio write alias is accepted, including `aifc`. **WAV output carries a `bext` TimeReference** (session timecode start + bounce start); AIFF/FLAC have nowhere to put it (`crates/engine/src/io.rs`). Bounces are limited to 4 hours (`MAX_BOUNCE_SECS`).
- `file.bounce_stems {dir, format?, bit_depth?, start?, end?, dither?, fold_down?}` writes one file per unmuted, active audio/instrument/MIDI track; stem WAVs carry the same BWF stamp. A non-string `format` and an unsupported one are both rejected with the supported list.
- `file.export_clips {dir, clips?, format?: wav}` writes clips as **WAV only**; it opens each name with `create_new`, so an occupied name (a planted link included) is skipped and `<stem>-2.wav` used, and a run of same-named clips counts up once (`crates/engine/src/io.rs::export_clips`). Also `file.export_midi {path, tracks?}`, `file.export_session_text {path?, replace?}`, `file.export_selected_tracks_as_session`, `file.export_sibelius`/`file.send_to_sibelius`, `file.print_score`, `file.export_clip_groups`.
- Exports do not write through planted links: `write_file` follows an existing symlink, refuses a dangling link, a non-regular file, a read-only file and a hard-linked destination; bounces and saves write a fresh part file and rename it over the name (`crates/engine/src/io.rs::write_file`, `write_export_checked`, `create_new`).
- `session.save_template {path, replace?}` writes a clip-stripped `.scraft` (also subject to the 256 MiB cap); there is no template browser.
### Video, surround, localization and platforms
- Video track with thumbnails, Video window with optional timecode burn-in, Video Universe strip; pure-Rust decoding of H.264 (8-bit 4:2:0), Apple ProRes (422 family, 4444/XQ) and Motion JPEG, with H.264/ProRes supplied by shared `craft-video` and the container/bitstream layers by `craft_media` (`crates/video/src/lib.rs`, `crates/video/src/movie.rs`). HEVC, AV1 and DNx movies are recognised by the demuxer but frames return "unsupported". Hostile-frame bounds include an MJPEG pixel/dimension check and per-request H.264 byte/sample budgets.
- Surround/immersive mixing: **34** main/bus format choices from Mono to 9.1.6 and 1st–7th Order Ambisonics (`ChannelFormat::ALL`, shared `craft-scraft-format`); `setup.main_format`; surround panners; `track.object` for object/bed routing; Renderer window.
- **Five UI languages**: `en`, `pt-BR`, `fr`, `es`, `zh-Hans` (`Language::ALL`, `crates/ui-egui/src/localization.rs`); English source text is the key, catalogs are compiled in, and a missing entry falls back to English. `ui.language {language?}` reads or sets the tag; Appearance has the picker (`crates/ui-egui/src/panels/extra_windows.rs`). pt-BR, es and zh-Hans cover all fixed strings; fr is partial (~62 %); pt-BR carries engine-error templates, zh-Hans keeps engine diagnostics in English. A system Han fallback and an OFL web font subset are wired (`crates/ui-egui/src/fonts.rs`). No RTL layout or complex-script shaping.
- Native builds for macOS (universal, signed/notarized), Windows x64/x86/arm64 (per-user install by default), Linux (AppImage, deb, rpm, Flatpak, tar.gz, riscv64 tarball; **XWayland drag-and-drop by default on Wayland**), FreeBSD, and WebAssembly. The web build has no TCP control channel and no filesystem.
- **Startup update prompt with direct self-updating** (craft-update). The updater reports installing, ready, installed and failed, offers Restart to Update, and starts the installer when the app exits (`crates/ui-egui/src/updates_ui.rs`, `apps/soundcraft/src/main.rs`). A Nightly build is launcher-owned, has no in-app update check, and uses `--launch-profile`/`--profile-root` flags the stable app does not take (`apps/soundcraft/src/launch_profile.rs`).
## Known limitations and not-implemented
Do not assign these; each is absent or partial at v0.21.0:
- **MIDI hardware I/O is incomplete.** Input works (checked on Linux only); there is **no MIDI output**, no MIDI clock/MTC, no MIDI thru to gear, no loop/merge MIDI recording, and no MIDI input on FreeBSD or the web. macOS/Windows input is type-checked, not device-tested.
- **Session interchange is import-only and strict.** AAF import takes external mono/stereo PCM WAV with editable clips/handles; **no AAF/OMF export, no OMF import, no `.ptx`/`.ptf`**. The nearest full-session bridge is `file.import_session_data` between SoundCraft `.scraft` sessions.
- **Audio-interface depth.** Input and output are separate cpal streams; the mix runs in fixed 512-sample blocks; no duplex clock, no I/O matrix, no latency reporting, no record-offset compensation. Choosing a device, rate and buffer works in the desktop app (`ui.audio_device`, `setup.playback_engine`), but the routing/duplex path is the remaining alpha blocker. ASIO is opt-in and unverified in official builds.
- **All playback sources are decoded whole into RAM.** No disk streaming for playback; bounces themselves stream to disk, and takes stream to WAV while recording (continuing in numbered part files).
- **Plug-in limits.** AAX is not hosted. AU editors are not hosted and AUs have no discovery command; embedded CLAP editors open only on Windows and Linux/X11 (macOS missing); VST3 editors open on macOS/Windows/Linux-X11. No external sidechain, no ARA, no out-of-process sandboxing, no multiple editor pages. AudioSuite runs built-in plug-ins only, never hosted ones.
- **No compressed export** (MP3/AAC/M4A/Ogg/Opus) even though those decode on import.
- **Video is decode-only and limited.** No HEVC/AV1/DNxHD/DNxHR decode, no video export or bounce-with-video, no external timecode.
- **No immersive delivery.** No ADM BWF, Dolby Atmos renderer integration or binaural.
- **No control surfaces (HUI/MCU/EUCON) and no external sync (MTC/LTC/video reference).**
- **Localization is partial.** Five selectable languages, but French is ~62 % translated, only the Spanish terminology has had a native-speaker review (pt-BR, fr and zh-Hans have not), and there is no RTL layout or complex-script shaping (Arabic/Hindi/Japanese/Korean are not usable UI languages). zh-Hans engine diagnostics remain English.
- **Preferences is mostly a catalog.** The nine-page window (`crates/ui-egui/src/preferences.rs`) only wires UI Theme, Reduce Visual Effects, Levels of Undo and Sends Default; every other control is a disabled placeholder that says "This preference is not available yet." Language lives in the separate Appearance window.
- **Five menu leaves are deliberate placeholders**: `View > Transport > Ableton Link` (shown "Tempo Sync"), `Track > ARA Plugins > Melodyne` and `Clip > ARA Plugins > Melodyne` ("No ARA plug-ins"), `View > Mix Window Views > HEAT` ("Analog Saturation") and `Options > Activate HEAT` ("Activate Analog Saturation"). They are always disabled and say "Not available yet." (`crates/engine/src/catalog.rs::PLACEHOLDERS`).
- **Session management is thin.** No template browser, no batch rename; the Workspace window is a one-folder file list. Sessions over 256 MiB cannot be opened or saved.
- **Automation is only partly per-sample.** Track/master volume (with trim and VCA) and send pan/mute are per-sample; insert parameters and send levels are read once per block, so their interior breakpoints still depend on block size (`docs/gaps.md` G-04).
- **No speech-to-text** (settings only, `setup.transcription_settings`) and **no fidelity harness** against Pro Tools.
- **`.scraftz` does not open on the desktop**; only the browser build opens it.
- **Shortcut collisions exist.** `Cmd+Alt+L` is declared by both `clip.loop` and `edit.move_selection_left`; `command_for` walks the specs in registration order and `edit::specs()` comes before `clip::specs()`, so the key runs Move Edit Left. Trigger Loop by command id. `Space` is handled before the registry, so it plays/stops. Audit any shortcut you rely on against the handler, not the spec table (`crates/engine/src/cmd/edit.rs`, `crates/engine/src/cmd/clip.rs`, `crates/ui-egui/src/shortcuts.rs`).
- **Parity is uneven by area.** The generated report counts 397/512 menu leaves implemented (Window 1/52, AudioSuite 0/28, View 92/112, File 22/30). AudioSuite catalog leaves all map to the single `audiosuite.process` command.
- **Docs still lag the code** in places: `docs/roadmap.md` still calls the macOS VST3 entitlement missing although `packaging/macos/entitlements.plist` now grants it; `docs/architecture.md` says device selection and a MIDI device layer are absent; `docs/localization-parity.md` says "2 languages shipped" while `Language::ALL` has 5; `docs/gaps.md` G-05's summary row still says third-party VST3s are blocked. Trust the code paths cited here, then `soundcraft-cli describe`.
## How to operate
### Launch on macOS
- `open -a SoundCraft`, or `open -a SoundCraft --args --demo`. A terminal launch of the app executable with `--control` prints `SOUNDCRAFT_CONTROL_PORT=<port>` on **stdout**; `open -a … --args` does not show it, so prefer a fixed port there.
- App flags (verified from `apps/soundcraft/src/launch_args.rs`): `--demo` / `--sample`, `--no-audio` (never open an output device in a smoke test), `--control <port>` (`0` = pick a free port and print it), `--version`/`-V`, `-h`/`--help`, and positional files: `.scraft` opens as a session, `.aaf` opens the Session Data (AAF) window, `.mid`/`.midi`/`.smf` imports MIDI, anything else imports as audio (`crates/ui-egui/src/dialogs/files.rs`).
- Environment: `SOUNDCRAFT_CONTROL_PORT` (port or loopback `host:port`; another host is ignored with a warning), `SOUNDCRAFT_CONFIG_DIR` (the whole settings folder; empty disables it), `SOUNDCRAFT_NO_PREFS` (recommended for agent test runs), `SOUNDCRAFT_NO_SYSTEM_FONTS`, `SOUNDCRAFT_WAYLAND` (Linux: `1` keeps native Wayland instead of XWayland), `RUST_LOG`. On/off variables take `1/on/true/yes` or `0/off/false/no`.
- Settings on macOS: `~/Library/Application Support/SoundCraft/` — `ui.json`, `Autosave/`, `Presets/`, `logs/soundcraft.log`. A `portable.txt` beside the executable switches to `<exe dir>/SoundCraftData`.
- The Nightly channel is a separate bundle with a launcher-owned profile; do not pass its `--launch-profile`/`--profile-root` flags to `soundcraft-cli` (it refuses them with exit 2).
### Getting the CLI (the launcher installs the app, not the CLI)
The ArtCraft Launcher installs `SoundCraft.app`; it does not put `soundcraft-cli` on your `PATH`. It ships **no** CLI binary inside the bundle — `Contents/MacOS` holds only `SoundCraft` — so a launcher-only install has no `soundcraft-cli` at all. The CLI is published on the app's GitHub release: `soundcraft-cli-0.21.0-macos-universal.zip`, **9,862,432 bytes (9.4 MB)**, SHA-256 `8f765ae92917254b5231d75e89acf903f7258f23d1604305385fbe93efcdb6a7` (the `SHA256SUMS.txt` asset is 5,123 bytes). `soundcraft-cli` answering *command not found* means "not installed yet", not "not supported".
Find it, in this order:
1. **On `PATH`** — `command -v soundcraft-cli`. If it answers, `soundcraft-cli --version` must report the version this skill was written against (0.21.0). A different version means the CLI and the app have drifted: re-read *Verify against your installed version* before trusting ids.
2. **Bundle copy** — Skip it: `find "/Applications/SoundCraft.app" -name 'soundcraft-cli'` finds nothing (verified), so go to step 3.
3. **Install it from the release** — user-local, no `sudo`:
```sh
APP_VER=0.21.0
REL="https://github.com/storytold/soundcraft/releases/download/v$APP_VER"
ASSET="soundcraft-cli-$APP_VER-macos-universal.zip"
mkdir -p "$HOME/.local/bin" "$HOME/Downloads/soundcraft-cli" && cd "$HOME/Downloads/soundcraft-cli"
curl -fLO "$REL/$ASSET" && curl -fLO "$REL/SHA256SUMS.txt"
expected=$(grep -F "$ASSET" SHA256SUMS.txt | awk '{print $1}')
actual=$(shasum -a 256 "$ASSET" | awk '{print $1}')
[ "$expected" = "$actual" ] && echo "checksum OK" || { echo "checksum MISMATCH — stop"; exit 1; }
unzip -oq "$ASSET"
install -m 0755 "soundcraft-cli-$APP_VER-macos-universal/soundcraft-cli" "$HOME/.local/bin/soundcraft-cli"
"$HOME/.local/bin/soundcraft-cli" --version
```
`~/.local/bin` must be on `PATH` for the shell that runs the skill: `export PATH="$HOME/.local/bin:$PATH"` (put it in your shell profile to keep it).
The 0.21.0 asset was verified end to end in this round: 9,862,432 bytes, checksum matched, unzip holds `soundcraft-cli` plus licences and README, and `--version` prints `soundcraft-cli 0.21.0 (macos aarch64)`. Rules: never `sudo` into `/usr/local`, never unzip into `/Applications`, and never replace an existing `soundcraft-cli` of a different version without telling the user. macOS is what this recipe verifies; on Linux/Windows the CLI ships inside the app package (not verified in this round).
### Document and window model
One session per app; `session.new`/`session.open`/`session.close` replace it. Programmatic session switches **do not prompt to save** — save first. Edit and Mix are separate views; `window.mix_separate` puts Mix in its own native window. There are no session tabs. The Preferences window is modal: while it is open, menu entries and single-key editing are disabled.
### Positions, references and ranges
- Positions: a JSON integer (or float) is **samples**; `{"seconds": 2.5}` is seconds; a string is parsed in the current main-counter format then all formats, optionally prefixed with `bars_beats:`, `min_secs:`, `timecode:`, `feet_frames:` or `samples:`. CLI `--start`/`--end` parse a bare decimal as seconds.
- Ranges: `start` + `end`, or `start` + `length`; `start` alone is a point range; both omitted = the edit selection. Tracks by id or name; clips by id; buses by case-insensitive name.
- Grid/Nudge: set them by command, not by string guessing — `view.grid {"format":"timecode","follow_main":true}` is unambiguous, and `edit.separate_on_grid` / `edit.move_clips` / `edit.quantize` use whichever scale is current.
### Open, import, save, export
- New/open: `session.new {name?, sample_rate?, bit_depth?: 24, template?: blank|demo}`; `session.open {path}` never fails on missing media (it warns, and returns `missing`); `session.save {path?, replace?}`, `session.save_as`, `session.save_copy`, `session.save_template`, `session.revert`, `session.close`.
- Import: `file.import_audio {path | paths: [..], track?, at?, new_tracks?}`, `file.import_midi`, `file.import_video`, `file.import_clip_groups`, `file.import_session_data`. A file whose rate is more than 128× below the session's is refused before conversion.
- **AAF is two-step:** `file.preview_aaf {"path":"take.aaf","media_dir":"media"}` returns a `plan` plus track/source summaries; pass that `plan` back verbatim to `file.import_aaf {"plan":…, "media_dir":"media", "selected":[0,1], "media":"copy"}`. The GUI path is `window.import_aaf {"path":"take.aaf"}` (app-only), which opens the Session Data window. There is no AAF export.
- Export/bounce: see above. Always read the returned `path`/`bytes`/levels; a completed call does not prove the audio is non-silent. `soundcraft-cli info mix.wav` prints the `bwf.time_reference` a WAV bounce was stamped with. Export to a **fresh path or a regular file**: a hard-linked destination is refused by `write_file` exports and replaced by rename for bounces, and `file.export_clips` will skip an occupied name and write `-2` rather than overwrite it.
- Audio device: `ui.audio_device {"list":true}` returns `{config, device, systems}`; applying reopens the devices and refuses while recording. Save before changing devices. `setup.playback_engine` works programmatically in the desktop app too (it routes through the same device command), but `ui.audio_device` is the direct API.
### Keyboard shortcuts (verified in code)
Space play/stop; Shift+Space half-speed; Cmd+Space or F12 record; F1–F4 edit modes; F5–F10 tools (F6+F7 or F7+F8 = Smart Tool, Cmd/Ctrl+7 = Smart Tool, Cmd/Ctrl+6 = Pencil); Enter new memory location; Cmd+= Mix/Edit; Tab to transient; Cmd+Shift+N new tracks; Cmd+S/O/N save/open/new; Cmd+E separate; Cmd+D duplicate; Cmd+U strip silence; Cmd+Z undo; Cmd+Shift+K export clips; Cmd+Alt+B bounce mix; Cmd+P print score; Cmd+1 Transport, Cmd+3 Big Counter, Cmd+4 Automation, Cmd+5 Memory Locations, Cmd+9 Video; Alt+Shift+C track commit; Shift+A bypass a track's inserts; Cmd+Alt+[ / ] waveform zoom (held keys repeat); Cmd+Ctrl+1–5 zoom presets; Cmd+Alt+0–5 clip rating; Cmd+W close window; plain Left/Right centre the Edit window on the edit selection; Delete/Backspace clears the selection when no text field has focus. In Commands Keyboard Focus, single keys edit: N toggles Insertion Follows Playback, B separates, X/C/V cut/copy/paste, Z undo, O/E-adjacent keys move the timeline selection (`crates/ui-egui/src/shortcuts.rs`). Cmd+Alt+L is declared by both `clip.loop` and `edit.move_selection_left`; the keyboard handler resolves the earlier-registered `edit.move_selection_left`, so trigger Clip Loop by id. The in-app **Setup › Keyboard Shortcuts** window (`window.shortcuts`) is the live list.
### Recipes that work at this tag
```sh
# Headless: demo session → set a level → insert an EQ → bounce → print the session JSON.
soundcraft-cli run --demo \
--cmd 'mix.volume={"track":"Kick","db":-6}' \
--cmd 'mix.insert={"track":"Bass","plugin":"eq_7band"}' \
--bounce mix.wav --inspect
# Discover a build: ids + labels as text, then every detail as JSON.
soundcraft-cli commands bounce
soundcraft-cli commands --json --compact
# Convert to a fresh file; aifc is a write alias, and a BWF source keeps its bext on WAV.
soundcraft-cli convert in.wav out.aifc --bit-depth 24 --rate 48000
# MIDI input: narrow a track to channel 1 of one device, then inspect what arrived.
soundcraft-cli run --demo --cmd 'track.input={"track":"Keys","input":"MIDI:1:Launchkey MK3 MIDI 1"}'
# Live app (where a GUI is allowed): fixed control port, no output device, then drive it.
open -a SoundCraft --args --demo --no-audio --control 7801
soundcraft-cli app --port 7801 mix.new_bus '{"name":"Verb"}'
soundcraft-cli app --port 7801 mix.send '{"track":"Bass","bus":"Verb","level_db":-12}'
soundcraft-cli app --port 7801 automation.write_range '{"track":"Bass","param":"send_a_pan","start":0,"end":96000,"value":-0.5}'
soundcraft-cli app --port 7801 audio.health '{}'
soundcraft-cli app --port 7801 ui.screenshot '{"path":"shot.png"}'
# Translate the interface while it runs, then bounce a bus.
soundcraft-cli app --port 7801 ui.language '{"language":"es"}'
soundcraft-cli app --port 7801 file.bounce_mix '{"path":"mix.wav","source":"Verb"}'
# Grid that follows the main counter, then a Clips/Markers grid, then back to a note value.
soundcraft-cli run --in song.scraft --cmd 'view.grid={"format":"timecode","follow_main":true}' --save song.scraft
soundcraft-cli run --in song.scraft --cmd 'view.grid={"format":"clips_markers"}'
soundcraft-cli run --in song.scraft --cmd 'view.grid={"value":"1/16"}'
# Named clips from Strip Silence, then preview the ranges without touching the session.
soundcraft-cli run --in song.scraft --cmd 'edit.strip_silence_preview={"tracks":["Vox"]}'
soundcraft-cli run --in song.scraft \
--cmd 'edit.strip_silence={"tracks":["Vox"],"mode":"strip","name":"VOX","number":1,"zeros":2}' \
--save song.scraft --inspect
# Give an MCP client a headless DAW confined to two read folders and one output folder.
claude mcp add soundcraft -- soundcraft-cli mcp --demo \
--automation-read-root ./project --automation-read-root ./samples \
--automation-write-root ./out
```
`mix.insert` takes a built-in id from `engine.plugins` (or a `clap:`/`vst3:`/`au:` id); `mix.send` needs the bus to exist. All positions in these examples are samples.
### Discover the build you are talking to
`soundcraft-cli commands <filter>` lists ids/labels/menu paths; `soundcraft-cli commands --json` or `soundcraft-cli describe ID` prints the authoritative parameter doc; over the control channel use `engine.commands {filter}` and `session.inspect`; over MCP use `list_commands` and `inspect_session`. Labels, menu paths and shortcuts can change between releases — bind to **ids**. At v0.21.0 several labels are deliberately different from the ids' historical names (Beat Analysis, Punch Recording, MusicXML, Bit Crusher, Tempo Sync).
## Working with an AI agent
Legitimate, evidence-checkable work:
- **Prepare and convert inputs.** `soundcraft-cli info FILE` probes audio (including a WAV's `bwf` block); `soundcraft-cli convert IN OUT` lands assets in WAV/AIFF/AIFF-C/FLAC (output extension decides; anything else is refused) and keeps a BWF source's time reference on WAV. An extreme low-rate source is refused rather than expanded.
- **Drive it headlessly** with `soundcraft-cli run` / `script` / `mcp`, or bridge MCP to a running app with `--connect`. Prefer `batch` for many edits (cap 1000), then `inspect_session` and `session.audio_health` to verify. Most document commands are undoable; queries, view/session settings, the live input toggles (`mix.record_arm`, `mix.input_monitor`, `track.set_record_to_input_only`) and the explicitly non-journaled `mix.insert_state` are not.
- **Import an AAF only as a plan → review → import sequence.** Run `file.preview_aaf`, inspect `tracks` and `warnings`, choose `selected` indices, then pass the exact plan object to `file.import_aaf`. Keep `media_dir` as the folder the preview used; media must sit directly inside it, and only full-source copy is supported. Do not promise AAF export or sample-rate conversion of imported media.
- **Read and repair `.scraft`.** Pretty JSON with `format_version: 1`: you may parse, diff and patch it, but never bump the version, do not add private top-level keys, and **never emit the same document field twice in one object** — the parser refuses it. Keep ids unique per namespace. Keep `Audio Files/` paths relative to the session folder. Never edit a session while the app or CLI has it open, and keep the file under 256 MiB.
- **Compose mix work from commands.** `mix.new_bus` before `mix.send`; `mix.insert {"plugin":"eq_7band"}` then `mix.insert_params`/`mix.insert_param`; `mix.volume`/`pan`/`trim` (give `index` on stereo pans); `automation.write_range` or `set_point`; `file.bounce_mix … source:"Verb"` to bounce a bus. `engine.plugins` lists built-ins by id; AU has no query — know the fourcc id or use the UI. AudioSuite accepts built-ins only.
- **Set the grid explicitly** with `view.grid`/`view.nudge` `format` + `follow_main` instead of assuming a note-value scale; a Clips/Markers grid depends on what is visible, so inspect the session first.
- **Name clips from a batch edit.** `clip.auto_rename` before a cut/Strip Silence run gives every resulting piece a numbered name.
- **Respect locks.** Separate/Trim/range edits leave time- and edit-locked clips alone; unlock them first (`clip.edit_lock` for edit lock, `clip.time_lock` for time lock) when an edit must include them.
- **Verify exports.** `file.bounce_mix` returns `bytes`, `seconds`, `peak_db`, `lufs`, `true_peak_db`; check the file exists, has plausible duration and non-silent levels, then re-probe with `soundcraft-cli info` (which also shows a WAV's BWF stamp). For a stem set, check `files` count and each file. Export to a new name when a previous export exists: `write_file` exports refuse a hard link, and Export Clips numbers around an occupied name instead of replacing it.
- **Automate UI acceptance** with the control channel and its UI commands. Run with `--no-audio` and an isolated `SOUNDCRAFT_CONFIG_DIR`; never arm a track, enable input monitoring or start recording in a smoke test, and do not rely on MIDI hardware being present. Screenshots are bound to the geometry/session they were admitted for; expect `screenshot stale`/`canceled` rather than a silently wrong image. Use `audio.health` (not a screenshot) to prove the realtime path kept up.
- **Localize a run** with `ui.language {"language":"es"}` (or `fr`, `pt-BR`, `zh-Hans`); command ids, menu lookup paths, file formats and device names are never translated, so keep driving by id.
- **What not to attempt:** driving the GUI blind; promising AAF/OMF/`.ptx` export, OMF import, MIDI output/clock, MP3/AAC export, ADM/Atmos delivery or video export; opening `.scraftz` on the desktop; assuming `setup.playback_engine` is headless-applied (it returns `applied: false` there); expecting Audio Unit discovery or AU editors; expecting AudioSuite to run a hosted plug-in; expecting embedded CLAP editors on macOS; expecting a Preferences placeholder or one of the five catalog placeholders to do anything; reading/copying Pro Tools resources — SoundCraft is clean-room (`AGENTS.md`).
## Verification protocol
SoundCraft is pre-alpha and its docs lag the code in a few places. For any real task:
1. **Round-trip on a throwaway session first**: `session.new` → one edit → `session.save` to a scratch folder → `session.open` it back → `file.bounce_mix` → confirm the returned levels are non-silent and the file exists.
2. **Never trust a silent export**: compare `peak_db`/`lufs`/`true_peak_db` with expectations and re-probe the output with `soundcraft-cli info`; for a WAV bounce, check the `bwf.time_reference` is the timecode position you expect. Export to a fresh path, and treat a hard-link refusal as a signal to choose another name, not to delete files.
3. **Back up and version per session**: copy the whole folder (`.scraft` + `Audio Files/`), not just the JSON; `Backups/` keeps the newest ten numbered copies. Keep sessions under 256 MiB — a larger save is refused before any audio is written.
4. **One session at a time, isolated profile**: run agents with `SOUNDCRAFT_CONFIG_DIR` pointing at a fresh folder. Recovered autosaves come back with record-arm and input-monitor off; re-arm explicitly.
5. **Exercise the lock rules**: if an edit must move every clip, check for locked clips first; Separate/Trim silently leave them in place and Event Time operations split them.
6. **Prove the audio path, not just the API**: use `audio.health` after playback starts; `late_callbacks` and `xruns` can rise while every command still returns success.
7. **Test MIDI with the hardware you actually have**: `ui.inspect` shows `midi_inputs`/`midi_events`; a take with dropped events is marked incomplete. Do not claim macOS/Windows MIDI recording works from a macOS run.
8. **Update apps only between projects**: this skill is pinned to v0.21.0 (`soundcraft 0.21.0 (macos aarch64)`). Check `--version` before relying on a format or parameter detail.
9. **Inspect, don't guess**: `soundcraft-cli describe ID`, `commands --json` and `engine.commands` give the authoritative schema; `session.audio_health` checks loaded media without touching files.
## Sources & evidence
- Repo: https://github.com/storytold/soundcraft — inspected at tag **v0.21.0**, commit `8e700934fd37f74377b21d8625329ac517012e54`, published 2026-11-29; inspection date **2026-12-03**. The previous pin was v0.20.1, commit `a52bbdccbe15342f44e0de1906bf71a621e7a68f` (2026-11-12). Installed bundle: `/Applications/SoundCraft.app`, `soundcraft 0.21.0 (macos aarch64)`, `CFBundleShortVersionString` 0.21.0, `CFBundleIdentifier` `ai.storyteller.soundcraft`; the bundle contains only `SoundCraft`, not `soundcraft-cli`. Only `--version` was run; the GUI was never launched.
- Read: `README.md`, `ROADMAP.md`, `Cargo.toml`, `AGENTS.md`, `apps/soundcraft/src/{main.rs,launch_args.rs,launch_profile.rs,control_server.rs,env.rs,config.rs}`, `apps/soundcraft-cli/src/{args.rs,catalog.rs,convert.rs,error.rs,info.rs,lib.rs,main.rs,app.rs,mcp.rs,session.rs}`, `apps/soundcraft-cli/tests/it/{run.rs,behaviour.rs}`, `apps/soundcraft-web/src/{api.rs,web.rs,main.rs}`, `crates/engine/src/{cmd.rs,io.rs,autosave.rs,dirty.rs,edit.rs,score.rs,file_access.rs,clip_group_file.rs,feature_names.rs,catalog.rs,aaf.rs,inspect.rs}`, `crates/engine/src/cmd/{aaf.rs,file.rs,view.rs,view_more.rs,options.rs,mix.rs,edit.rs,track.rs,track_more.rs,setup_more.rs,clip.rs,health.rs,plugin_state.rs,zoom_toggle.rs,audiosuite.rs,audio_midi.rs,event.rs,event_more.rs,strip_silence.rs,sampler.rs,query.rs}`, `crates/engine/src/io/{session.rs,bundle.rs,import.rs,strip.rs,record.rs,midi_take.rs,midi.rs}`, `crates/interchange/src/{lib.rs,aaf.rs}`, `crates/model/src/{lib.rs,midi_input.rs}`, `crates/time/src/lib.rs`, `crates/midi/src/lib.rs`, `crates/mix/src/{lib.rs,instances.rs,offline.rs,automation.rs,threads.rs,strip.rs,clips.rs,send_automation.rs}`, `crates/dsp/src/{lib.rs,plugins.rs,plugins/freq_shifter.rs,plugins/harmonic.rs}`, `crates/automation/src/{mcp.rs,args.rs}`, `crates/clap-host/src/{lib.rs,plugin.rs,ffi/gui.rs}`, `crates/vst3-host/src/{lib.rs,plugin.rs,scan.rs,ffi/editor.rs}`, `crates/au-host/src/lib.rs`, `crates/video/src/{lib.rs,movie.rs}`, `crates/playback/src/{record.rs,midi.rs}`, `crates/ui-egui/src/{menus.rs,control.rs,preferences.rs,shortcuts.rs,localization.rs,fonts.rs,updates_ui.rs,toolbar.rs,docking.rs}`, `crates/ui-egui/src/app/{playback.rs,midi.rs,control.rs}`, `crates/ui-egui/src/panels/{windows.rs,extra_windows.rs,sampler_window.rs}`, `crates/ui-egui/src/{dialogs.rs,dialogs/files.rs,aaf_import.rs,mix_window/routing.rs,edit_window/header.rs,video_track.rs}`, `crates/ui-egui/examples/ui_shot.rs`, `crates/engine/catalog/menus.txt`, `packaging/macos/{entitlements.plist,package.sh}`, `docs/{cli,mcp,control-protocol,midi-input,send-automation,gaps,roadmap,parity-checklist,file-format-parity,plugin-parity,localization,localization-parity,target-app-parity,architecture,releasing}.md`.
- Counts recomputed and, where possible, observed live with the 0.21.0 release CLI: **485 engine commands** (485 `commands --json` entries; 486 static minus `test.panic_probe`), **73 UI commands**, **558 ids in a running app**, **18 control methods (+2 aliases)**, **17 MCP tools + 2 resources** (live `tools/list`/`resources/list`), **10 CLI subcommands**, **31 built-in plug-ins** (live `plugins` and `engine.plugins`), **34 channel formats**, **512 catalog leaves**, **397/512 engine parity (77.5 %)**; seven write extension aliases; `FORMAT_VERSION = 1`; `MAX_BATCH_CALLS = 1000`; `MAX_SESSION_BYTES = 256 MiB`; `MAX_RATE_EXPANSION = 128`; `MAX_IMPORT_SAMPLES = 1 << 30`; `BUNDLE_LIMITS` 10,000 entries / 1 GiB; bounces capped at 4 hours; `MAX_MIDI_TAKE_EVENTS = 1 << 20`.
- Workspace: **14** library crates plus `soundcraft`, `soundcraft-cli`, `soundcraft-web` and `xtask`. New crate `crates/interchange`; `crates/model` and `crates/time` are compatibility facades. All craft-libs dependencies are pinned to `8fa4db64a9bb943520259ea95331a303ba788f21`; the egui fork is `b9770908e0f304896f9658d239a7b29cf8af1564`; workspace `rust-version` is 1.95.
- Verified package: `soundcraft-cli-0.21.0-macos-universal.zip`, 9,862,432 bytes, SHA-256 `8f765ae92917254b5231d75e89acf903f7258f23d1604305385fbe93efcdb6a7`; downloaded, checksum-compared, unzipped and run (`soundcraft-cli 0.21.0 (macos aarch64)`, 485 commands, 31 plugins).
- Evidence table and count recipes: `evidence.md` next to this file.