* Add French and Spanish UI localization
French and Spanish join Brazilian Portuguese on the localization layer:
two Language variants (fr, es) with catalogs in locales/fr and
locales/es, listed in Appearance > Language and accepted by ui.language.
Numbers use a decimal comma, as in pt-BR.
The rows come from #143's earlier translation table, keyed to the
English strings main shows: 1,368 per language, about 62 % of the
pt-BR catalog. Positional {} templates take main's named placeholders.
Strings without a row show in English; engine error templates are not
translated yet.
The catalog tests (unique keys, placeholder parity, lookup) now run on
every catalog, and the fallback test covers French and Spanish.
* Complete the Spanish (es-ES) UI catalog
Fill in the remaining Spanish UI strings and all error templates, and
review studio terminology against common Spanish studio usage (native
speaker, sound engineer).
The file-path field in the path prompt now uses its own "File Path" key
(es "Ruta", fr "Chemin du fichier", pt-BR "Caminho do arquivo"), so the
auto-pan "Path" parameter can be translated as a direction.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Test that the Spanish catalog covers every menu label
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs: Spanish catalog complete in the language tables
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs: name the path prompt's File path and Folder path keys
---------
Co-authored-by: SondesonRS <SondesonRS@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
* Import external-WAV AAF as editable session data
File > Import > Session Data analyzes an AAF and imports the selected audio
tracks as new tracks, one clip per edit. Clips keep their offset into the
complete source, so handles stay available; the import is one undo step and
Save collects the full sources.
crates/interchange (layer 3, no filesystem/process/UI access):
- build_session(Plan): versioned rational-time plan -> Session. Endpoints are
rounded to samples independently, so adjacent edits never drift.
- aaf::read_aaf: reads the AAF object model from structured storage with the
cfb crate (MIT): properties streams, strong reference vectors/sets and
dictionary weak references. Media goes through a MediaResolver trait.
crates/engine: file.preview_aaf (read-only) and file.import_aaf (undoable).
The resolver opens only files named in the chosen media folder, checks
file_access and reads WAV headers without loading samples; import re-probes
and decodes before touching the session.
crates/ui-egui: Session Data window with track selection, media folder,
absolute/relative mapping, sample offset and report.
Supported: SourceClip/Filler sequences resolved through MasterMobs to
WAVEDescriptor SourceMobs with one external locator; mono/stereo PCM WAV;
composition timecode including 24000/1001 and drop-frame. Gain, fades,
transitions, selectors, nested sequences, embedded essence, split channels,
mixed sample rates and non-local locators fail explicitly.
Addresses #40.
* AAF import: resolve each source once, offer composition choice, start folder picker
- file_source returns early for a known source, so each WAV is probed and
each relink is reported once however many edits use it. The per-slot
PhysicalTrackNumber check still runs first.
- When an AAF holds several compositions, the Session Data window lists them
and passes the chosen MobID to file.preview_aaf.
- "Choose media folder..." opens at the current media folder instead of
receiving a label as its start path.
* AAF import: lock the composition selector while analysis runs
A selection change during analysis could leave a plan for the previous
composition in the window and enable Import with it.
* AAF import: drop a running analysis when the file or media folder changes
window.import_aaf (and opening an .aaf) can set a new path while the
previous file is still being analyzed; its late plan could then be shown and
imported for the new path.
* AAF import: forget the chosen composition when the path is edited
* AAF import: keep the media folder with a typed AAF path
A typed path now moves a media folder that was derived from the previous
AAF, so same-named WAVs are not taken from the old folder. A folder the user
chose elsewhere is kept.
* AAF import: bound hostile input, confine locators, report missing media
Review follow-up for the AAF reader (untrusted input):
- Cap the structured-storage directory at MAX_DIRECTORY_ENTRIES on open;
document every bound (sector chains via cfb, 32 MiB streams, MAX_ITEMS
collections, 32-link source chains with cycle detection).
- Locators are data: refuse `..` anywhere (also percent-encoded and inside
absolute paths), NUL bytes, paths that name no file, and relative
locators with a root or drive prefix; relative ones stay under the AAF's
folder.
- A missing media file no longer aborts the import: it is reported with
the number of edits skipped, the other edits keep their positions, and
the import fails only when no referenced file exists.
- Tests: looped directory, mini-FAT and mini-stream chains terminate with
an error; locators patched into the fixture cannot leave the AAF folder;
an absolute locator is only looked up in the chosen media folder;
missing media is reported per file.
- Provenance statement in the module docs and README.
* AAF import: confine the plan's media to the media folder at import too
file.import_aaf takes the plan from its caller (UI, MCP, automation), so
the media-folder rule applied while analysing is checked again before any
source is read: the import requires `media_dir`, and every source must be a
file directly inside it once both paths are canonical (symlinks resolved).
The UI passes the folder it analysed with.
Test: a plan edited to point outside the folder (absolute path, `..`
traversal, symlink) or without `media_dir` is refused without an edit.
* AAF reader: decode UTF-16 with as_chunks for clippy 1.99
clippy::chunks_exact_to_as_chunks (Rust 1.99, used by the gate) rejects
chunks_exact(2) with a constant size. as_chunks is stable since 1.88, below
the workspace minimum.
* AAF reader: state its provenance accurately
The storage layout, class and property identifiers and MobID text form
were learned by reading pyaaf2 (MIT), not from the published AAF
specifications. No pyaaf2, AAF SDK or copyleft code was copied.
* aaf: bound property expansion
Cache parsed objects and share property payloads. Enforce a 128 MiB aggregate property budget and reject duplicate local references before expansion, with a compact AAF regression. Migrate AAF media handling to craft-audio after integrating current main.
* docs: record strict AAF import support
* MIDI input devices: live play-through and MIDI recording
Keyboards and pads could not be used at all: there was no MIDI device
layer (G-02).
- crates/playback/src/midi.rs opens every MIDI input port through midir
(ALSA sequencer, CoreMIDI, WinMM), follows devices that are plugged in or
removed, and passes channel messages to the audio thread over a lock-free
ring, each with the time it arrived.
- The mix engine plays them on the instruments of record-enabled and
input-monitored MIDI and instrument tracks (crates/mix/src/live_midi.rs):
notes at their sample offset, the sustain pedal holding note-offs back.
- While recording, the events are kept with their timeline position and
become MIDI clips on the record-enabled tracks
(crates/engine/src/io/midi_take.rs), with controllers, pitch bend and
aftertouch. A pass can be MIDI only: the audio input is opened for audio
tracks alone.
- A MIDI or instrument track chooses a device and a channel at its input
selector (kept in the track's input route as `MIDI:<channel>:<device>`).
- Setup > Playback Engine lists the input ports with a switch each and, on
request, what arrives from one; Setup > MIDI > MIDI Input Devices opens
it. The switches are app preferences.
Note lifecycle:
- A strip keeps the keys and the sustain pedal of every owner (input port
and channel) apart. A pitch held by two devices or channels sounds until
the last one releases it, and one owner's pedal does not hold another's
notes. A strip follows 16 owners at a time; further ones share the last
place (documented in live_midi.rs).
- A full queue is never silent. An event that does not reach the audio
thread (the 1,024-entry input ring or the 256 events a callback takes)
marks its port; the audio thread then drops what it still has queued from
that port and the engine releases the notes and pedal the port holds. A
port that closes, a replaced feed and events skipped while nothing
listens take the same path.
- A take records where input was dropped: the notes that port held end
there, and the status line says the take is incomplete. Recorded events
the UI thread did not collect in time are counted and reported too.
Recorded notes are told apart by device as well as channel and pitch.
On Linux, live play was checked with a hardware keyboard (Akai MPK mini 3)
and recording with a virtual one (crates/playback/examples/midi_keys.rs),
before the note-lifecycle work; that part is covered by tests only. macOS
and Windows are type-checked only; there is no MIDI input on FreeBSD or
the web.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
* midi real device tests
* midi device drop test
* midi device fix pr review comments
* MIDI input: review fixes for note ownership, lost input and takes
Live notes (crates/mix/src/live_midi.rs):
- An owner without a place of its own joins the shared place while it is
in use, even when another place has come free. It could get a second
place before, and the release of its key in the shared place was then
not found: the note stayed on. The same held for the pedal.
- A change of the track's input releases the shared place when the input
no longer takes any one of the owners in it, not only the first.
- The strip remembers which port and channel last set each controller.
When that source loses its input or the track stops listening to it,
the instrument's controllers are set again from the clips and from the
sources that are left, so a bend from an unplugged device does not stay.
- When playback runs out under monitoring, the clips' sustain pedal goes
up with their notes.
Capture (crates/playback):
- A loss carries its time. What a port sends after it is played and comes
after the mark in the take; before, it was dropped and recorded ahead
of the mark.
- The age of an event is counted at the transport speed.
- Loop recording writes a mark where the loop goes round, and a key played
with the playhead at the end of the loop stays inside the loop.
- The end of a record pass is acknowledged by its number, so the late
answer to an earlier pass does not end the wait for a later one.
- A connection the backend closes marks its port, also when a device with
the same name is opened in its place.
Takes (crates/engine/src/io/midi_take.rs, crates/ui-egui):
- A note held into the next round of a loop is split there, also when its
release is later on the timeline than its press.
- A track taken out of record during a pass keeps what it recorded.
- A pass whose end the audio engine did not confirm is reported as
incomplete in the status line.
- An inactive record-enabled audio track no longer turns a MIDI pass into
an audio one that is then refused.
docs/midi-input.md: Windows drivers that allow one program per device, and
the new status text.
* MIDI input: review follow-ups on loss order, controllers and loop takes
- Each port has its own time of loss. One port's later loss no longer
takes along what another port sent after its own: that is played, and
comes after that port's mark in the take.
- A retired connection is closed before its port is marked as lost. Marked
first, a note-on delivered while it closed carried a later time than the
loss and could be played after the release.
- The strip keeps the last controller value of every source, not only the
newest. When one of two sources that set the same controller goes away,
the controller goes back to the value of the one that stays. 64 values
are kept; past that the oldest is forgotten.
- A take can say where the pass stopped (MidiTakeEvent::END), and the UI
says so for loop passes. A key still down then ends at the stop in the
round it is in: held over a round or more it covers the loop, where it
used to end at the loop end of its first round.
- A pass that records MIDI does not start while the audio engine has not
confirmed the end of the previous one. It takes the MIDI since its last
callback with the state of the pass it knows, so a pass started and
stopped meanwhile had its notes written at the old position.
* MIDI input: loss marks in the queue, connection gate, stop position
- A loss from a full queue is also written into the queue, ahead of the
first event that fits again. The audio thread deals with it at that
place. Before, a loss flagged after the callback had read the flags was
seen one callback late and ended a note played after it. The flag for a
loss already met in the queue is not a second loss.
- A connection is shut off under the feed's lock when it is closed
(MidiFeed::close_port), and what its device thread still delivers is
discarded. Dropping a connection joins that thread on ALSA; CoreMIDI
(MIDIPortDispose) and WinMM (midiInStop, midiInReset, midiInClose) do not
promise to, so the order of drop and mark is no longer relied on.
- When the controller table is full and forgets a value, the strip keeps
the port and channel it came from. The controllers are still reset when
that source goes away, where a bend pushed out of the table used to stay.
- A loop pass ends where the audio engine is. The larger of the engine's
and the UI's position was used, and just after the loop went round the
UI's is still near the loop end: a short held note covered the loop.
- The end of a pass waits for the audio engine by what the pass set out to
record, not by the devices connected at Stop. A pass whose last device
was unplugged before Stop left nothing pending, and a new pass could
start before the engine was done with it.
* MIDI input: stop at the loop end, and passes owed by the audio engine
- A key played while the playhead stands at the end of the loop is the
last thing of that round. It was written as the first of the next round,
with a mark that the loop had gone round; a pass stopped right there
never went round, and a note held to the stop grew a second part.
- The feed knows whether an ended pass is still owed by the audio engine
(MidiFeed::pass_owed), and the UI asks it before a pass that records
MIDI starts. The UI kept that itself, where no test could stall the
audio callback against it.
* MIDI input: stop boundary, loop rounds, loss marks and shared owners
- A pass ends at a time on the feed's clock (MidiFeed::end_pass). Only
what arrived up to it is written to the take, however late the audio
thread hears of the Stop, and the callback takes the queue in once more
after the command before it confirms: a note that arrived between its
reading the queue and the Stop was missing from a confirmed take.
- The confirmation carries where the playhead stood (MidiFeed::stopped_at).
A loop pass ends there; the player's position read afterwards could be
a round further on, which the take knows nothing about. Without a
confirmation no stop position is used.
- The take builder is told whether the pass looped (MidiPass). In a pass
that did not, a release stamped before its key press (a late callback)
is one short note, where it was split around the ends of the clip. The
stop position is a parameter, not an entry that the event cap could cut.
- A pass records the tracks that were in record when it started, and only
those: the same list the end of the pass waits by. A track put in record
during the pass got what was played before that, without a wait.
- A short loop goes round several times in a callback: each entry is put
in the round it arrived in, so two entries a round apart have one mark
between them.
- A mark in the queue is stamped with the time of its loss. A port that
overflowed, played on and was then closed keeps a mark for the close
(the new note was held to the end of the take), and a loss told by the
port's flag is not written again when its mark arrives.
- Live events stay in order of arrival when they are played: a release
taken by a shorter callback was due before its note-on.
- A callback reads the transport speed once, for rendering and for the
ages of the next callback's events.
- The shared owner place is left alone by a source that never joined it:
its note-off no longer ends another owner's note there, and its loss no
longer releases the place.
- When a live source goes away, the instrument's controllers are restored
before the block's clip events are sent, so a clip controller at the
start of that block keeps its new value.
- Tests that assert MIDI positions use a clock the test sets.
* MIDI input: pass boundaries, loop punch-in and review follow-ups
- A pass begun while the transport runs has a start time on the feed
(MidiFeed::begin_pass): what is played after Record is written down
also when the audio thread takes it in before it reads the command.
- A pass goes on through a transport stop until the command that ends it.
The UI sends the two one after the other; when they reached two
callbacks, a note played just before the stop was left out of a
confirmed take.
- The end of a pass is asked for every entry, so a Stop that comes while
the queue is being read still cuts off what follows it.
- A mark in the queue carries the time its events were dropped, kept apart
from a later close of the port. An overflow before Stop is in the take
when the port closes after it.
- A pass punched in while a loop plays is a loop take over that loop. In a
line from the punch-in to a stop in the next round nothing fell inside
the range.
- In a loop take with marks, only the marks say that the loop went round:
a release stamped before its press within one round is one short note.
- A key pressed in the last samples of the range starts at the last tick
the clip plays, not at the tick of its end.
- When the clips' controllers are sent again while stopped, their sustain
pedal goes up again: no pedal-up of theirs would follow.
- The render step is taken after the commands, so a session at another
sample rate is rendered at that rate from the callback that installs it.
- The stop position and the incomplete-take warning go by one answer from
the audio engine.
* MIDI input: test that a callback renders at the speed it keeps
A speed change that arrives while a callback runs takes effect from the
next one: the callback renders at the speed it read, and the next callback
counts the ages of its events at that same speed.
* MIDI input: volume and pan go back to MIDI's defaults with their device
The reset sent when a live source goes away is Reset All Controllers,
which leaves the channel volume (CC 7) and the pan (CC 10) alone. A
device that turned the volume down to nothing and was unplugged left the
track silent. When the source that went away had set one of the two, and
neither the clips nor a source that is still there gives it a value, the
instrument is sent the value MIDI names as the default (100, and 64).
The same when the track stops playing live input.
* MIDI input: third round of review follow-ups
- The stop cutoff is one value on the feed, in force from the store that
ends the pass and gone when the audio thread confirms it.
- The start of a pass holds for the whole pass: what was played before
Record stays out also when it is taken in after the start command.
- What is played just before a Stop is put inside the range that ends at
the stop, not on its end.
- A port closed while the queue is read is met through the mark of its
overflow; the flag of that close, a callback later, is not a second
loss (it ended a key the new connection played).
- An overflow and the loss it is have one time. Read apart, they could
differ by a microsecond and count as two losses.
- A volume or pan the full controller table forgot goes back to its
default when its own device goes, not when another does.
- The chase of the clips' controllers uses the track's MIDI delay, as
playing them does.
- Recorded controllers in the last samples of the range stay where the
clip plays; in a take without marks the press as played, not the note's
start, says whether the loop went round; a take cut at the event cap
does not use the stop position.
- The loop the MIDI of a punched-in pass goes to is the loop the audio
engine plays: not a range too short to loop, nor one that Play From
dropped.
- The audio input stops taking in before the wait for the MIDI.
* MIDI input: fourth round of review follow-ups
- A record pass goes on through the natural end of playback until the UI
ends it, up to the time playback ran out: what was played as it reached
the end is in the take, what follows is not.
- Before the end of a pass is confirmed, the device threads are kept out
of the queue while it is read once more, so a message stamped before
the Stop is not put in after the answer. The audio thread does not wait
for a device thread that is in there.
- A later loss of a port is noted as dealt with only at the end of the
callback: with two overflow marks of one port in the queue, the second
was skipped and the key played between them had no end.
- Whether a pass was begun is read before when: a pass seen as begun has
its own start time.
- The volume and the pan go back to their defaults when the source that
set them last goes, also when the controller table forgot its value,
and not when an earlier setter goes.
- A clip's note-off that is held back because a live key holds the pitch
is remembered for the block: the key going up earlier in the block no
longer ends the note before the clip would have.
- In a take without marks, whether the loop went round between a press
and its release is judged by their samples, not their ticks.
- The stop position of a loop pass is not used when recorded entries did
not reach the take: one may be the mark of a round.
- Loop recording over a selection too short to loop is recorded as a
punch, as the transport plays it.
* MIDI input: fifth round of review follow-ups
- Whether a pass was begun is asked for every event: a pass begun while
the callback is reading the queue records from when it began.
- The ages of a pass's last events are counted up to when the transport
stopped. Counted up to the callback that takes them in, the time the
playhead stood still moved them back.
- An overflow the port's flag told of keeps its time when an older mark
in the queue shows a later close: its own mark may never come.
- What becomes of the clips' held back note-offs is settled after the
block's live events. A key that goes down again before the clip's note
would have ended is not ended by it, and with two clip notes of a pitch
in a block the one that sounds when the key goes up lasts to its end.
- When the source that set the volume or the pan last goes and another
one's value is sent again, that one is the last setter from then on.
* MIDI input: sixth round of review follow-ups
- A loss is followed whenever the transport runs, and written to the take
by when it happened, like an event: a port lost in a pass that began
while the queue was being read ends its notes in the take.
- A pass started and ended by the commands of one callback is still that
pass in the last read of the queue: what was played in it is kept.
- When a live key takes a pitch again, the clips' held back note-offs
from since the last key went up are sent where they were, so the
instrument lets go of the clip's note before the new press.
---------
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Docs-only conflicts: the status lines and history rows keep both main's Linux/X11 plugin editor and Command-click entries and this branch's Frequency Shifter entries.
Signed-off-by: FredApps <153173854+FredApps@users.noreply.github.com>
Conflicts in the doc headers and change logs of ROADMAP.md, docs/gaps.md, docs/roadmap.md and
docs/target-app-parity.md: kept main's pt-BR entries and this branch's Frequency Shifter
entries, newest first.
Add a pt-BR catalog and persisted language selection, covering UI labels, menus, dialogs, tooltips, accessibility text, and engine menu labels, and update the localization parity docs.
The tracking row and M13 in docs/roadmap.md, the pre-alpha reasons and
first alpha blocker in ROADMAP.md, the tracking list in
target-app-parity.md and the device I/O paragraph in architecture.md.
Estimates unchanged: G-06's hours were the streaming-sources work.
docs/gaps.md G-06, docs/roadmap.md M6, docs/hardware-parity.md and the
Performance row of docs/target-app-parity.md still said takes are
recorded into RAM, though #84 records them straight to disk. With long
takes now continuing in a new file (#888), recording to disk is done:
G-06 keeps only streaming sources from disk, M6 no longer lists record
to disk as missing, and the hardware row shows it per platform. Status
lines and revision history updated.
plugin-parity: VST3 editors are hosted on every desktop platform, and
embedded CLAP editors on Windows and Linux/X11. gaps: G-05 shrinks to
the macOS work (AU views, embedded CLAP, the entitlement), 10-15 h.
roadmap and ROADMAP: the same estimate, the mix row's VST3 windows, and
a progress log entry.
setup.playback_engine and setup.hardware stored device and buffer_size on the session and reported 1024 when nothing was set. Playback never read those values, so the open device stayed at its old buffer. In the app the commands now reopen the device through ui.audio_device and return the name, buffer and sample rate actually in use, while delay compensation still goes through the engine command. Headless keeps the stored request, returns applied: false, and leaves buffer_size null until one is set. A buffer is any integer from 16 to 8192 and is not rounded to a power of two; values outside that range error.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The plugin registry in crates/dsp/src/plugins/mod.rs holds 25 processors
and 3 instruments, as docs/plugin-parity.md already says, but gaps.md
and target-app-parity.md still said 26 processors and 2 instruments,
and roadmap.md said 26 built-in processors. At 3bc2d92 the registry
held 24 processors and 2 instruments, so the code snapshot in
target-app-parity.md now gives those counts.
The Sampler merged in #108, but G-20, the beta plan's plugin essentials
and the MIDI and instruments row still listed it as missing or as an
open pull request.
Reject oversized batches before any side effects instead of reporting success after truncating calls.
Closes#460
Co-Authored-By: OpenAI Codex <noreply@openai.com>
* Progress docs to the craftrules standard; full re-measure against Pro Tools 2026.4.1
Stage: alpha. Menu breadth 482/512 (94.1%, measured), feature breadth ~70%,
ready for real work ~40%; ~350-570 agent-hours to beta, ~950-1,450 to full parity,
calibrated on this repo's PR history.
- ROADMAP.md rewritten: stage banner, two numbers, dimension/feature/language tables
- docs/target-app-parity.md: authoritative assessment (area table moved from ROADMAP)
- docs/gaps.md: 22 ranked gaps with evidence and estimates
- docs/roadmap.md: milestones, current focus, beta plan
- docs/ui-, file-format-, hardware-, plugin-, localization-parity.md: new checklists
- docs/parity.md -> docs/parity-checklist.md (generated by cargo xtask parity)
- architecture.md: video, vst3-host, au-host crates; device I/O limits
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Stage: pre-alpha under the core-workflow gate
Add the alpha gate to docs/roadmap.md: interface recording at a chosen buffer
size, MIDI recording, and session interchange with Pro Tools fail, so the stage
moves from alpha to pre-alpha (~5 points and ~110-180 agent-hours to alpha).
Mark the alpha blockers in docs/gaps.md; update ROADMAP.md, target-app-parity.md
and README.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Add mainstream-practitioner and essentials-user readiness numbers
Mainstream practitioner ~36% (weekly-area depth 50.6% x 0.90 interaction x 0.92
stability x 0.85 file exchange) and essentials user ~57% (core-feature depth
72.4% x 0.90 launch/stability x 0.90 discoverability x 0.97 files), with written
weights, discounts and GitHub user evidence. Full ready-for-real-work checked
against its written dimension weights (40.6%); unchanged at ~40%, stage unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Readiness by audience: hours to ~95% for full, mainstream and essentials
Full ~40% / 950-1,450 h, mainstream ~36% / 380-600 h, essentials ~57% / 110-200 h,
calibrated on this repo's PR history. The full number is already an additive
weighted sum over the written dimension table; method unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>