Repository navigation
merge: sync API progress into standalone - #60
Merged
Merged
Conversation
Accessibility for the plugin (VST3 + ARA), tested by hand with NVDA 2026.2 in
REAPER 7.82 on Windows 11. Not tested: standalone app, macOS.
Piano roll (OpenDyne):
- The notes canvas is in the accessibility tree and takes focus ("Notes, A4 +25 ct").
- Left/Right/Home/End move between notes and play the corrected note; Shift+Left/Right
select a range; Ctrl+A selects all; after Delete the next note is selected.
- Up/Down change the pitch (Alt = 1 cent); Ctrl+Left/Right move the end of the selected
note and Ctrl+Shift+Left/Right its start (10 ms, same planner as the mouse); Enter does
what a double click does.
- F3/F5/F4 with Up/Down: pitch modulation, drift, note volume. X splits a note at its
largest sung pitch change and J merges with the next note (scissors planner and
transaction); R returns notes to their original pitch; I reads all note details.
- Spoken results: delete/cut/copy/paste, undo/redo with the action name, AUTO,
Read Audio progress, tool changes. Shift+F10 / menu key opens the tool menu.
Esc goes to the host (the FX window closes as in other plugins).
Per-note EQ window: Left/Right band, Up/Down row, Tab adjusts with arrows, second Tab
types a number, Insert/Delete add/remove bands, I reads all bands, Esc closes; the remove
confirmation is a real (invisible) dialog over the painted one.
Everywhere: one slider model (arrows, Alt fine, Page Up/Down, Home = max, End = min,
Backspace = default, Enter = type a number); panel knobs say what they changed;
Preferences tabs/pages, menus, message, Pitch Shift and shortcut dialogs; named time
and tempo displays.
Implementation: JUCE AccessibilityHandler; short messages via UI Automation
notification events (Utils/ScreenReaderAnnouncer), since postAnnouncement on Windows
speaks through SAPI and NVDA does not hear it. No changes to DSP, project format or host
parameters. New strings in LocalizationManager (5 languages).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
F4 + Up/Down and Enter now go through editVolumeEnvelopeRegions / resetVolumeEnvelopeRegion, like the mouse drag and double-click. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Ctrl+Up/Down: the next pitch grid step (key/scale note, semitone or cent), 5 % for
modulation and drift, 1 dB for volume. Ctrl+Shift+Up/Down: the fine step (1 cent,
1 %, 0.1 dB). Alt+Up/Down: a semitone even in key/scale mode.
- Plain Up/Down no longer edit, so exploring cannot move a note by accident; they say
which keys do ("Ctrl+Up/Down changes the pitch"). Ctrl+Alt+Up/Down stays the zoom.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Volume Envelope gain is applied at playback, not in the render, so the audition after Up/Down with the volume tool sounded unchanged. It now applies the same gain. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
REAPER does not report the edit cursor to a stopped plugin, so Ctrl+V pasted where playback last stopped (6.73 s) instead of at the cursor OSARA reported (4.41 s). ReaperHostBridge reads GetCursorPosition / GetPlayState through REAPER's VST3 host interface (IReaperHostApplication); other hosts are unaffected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Without a selection Right takes the note under the edit cursor or the next one,
Left the note under it or the previous one (nearest note past the ends), so the
user lands where they are in the song. Without a known cursor: the first note.
- Shift+X splits the selected note at the edit cursor ("Note split at the cursor:
A4, B4"); says so when the cursor is unknown or outside the note.
- The cursor comes from ReaperHostBridge while the transport is stopped.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…sition Stopping with Space in the plugin, REAPER may keep its edit cursor where playback began (or move it only once its window is active), so paste, arrows and Shift+X used the old place until the user switched to REAPER and back. Until the edit cursor is moved after a stop, the stop position is used; once it is moved, the cursor. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With a note selected, Left/Right moved from that note even after playback was paused elsewhere or the edit cursor was moved. Now, when the position changed since the last arrow press, the arrow takes the note there, as without a selection. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When a keyboard edit was rejected (notes changed meanwhile, no pitch data, planner refused the split), nothing was said. Sighted users see the note stay put and the selection highlight disappear; the screen reader now says "Could not apply" or "Could not apply, selection cleared". Covers Ctrl+Up/Down, R, Enter, X, Shift+X, J, Ctrl(+Shift)+Left/Right, volume edits and Delete/Cut. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ays it - REAPER's play state and positions are read on every frame (trackReaperTransport), so pause and stop are known exactly instead of through the plugin's delayed view. - Paused (Ctrl+Space): the pause position (GetPlayPosition); stopped: the edit cursor; stopped with Space in the plugin: where playback stopped, until the edit cursor is moved. Moving the edit cursor after a pause or stop always wins. - Shift+I says the position and its source: "Position 4.41 s, paused", "..., edit cursor", "..., where playback stopped". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A user test showed REAPER moving its edit cursor to the stop place itself, while the plugin's own stop guess was 0.25 s later and also kicked in after a cursor move. Stopped: always the edit cursor, the place REAPER announces. Paused is unchanged (the pause position, matched to 0.01 s in the test). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e already selected - The first arrow after opening the window had no remembered cursor and so ignored it; now it takes the note at the cursor. - When the note at the cursor is already selected, the arrow moves to its neighbour instead of repeating the same note. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Conflicts with the shortcut dispatch scopes (016dc4a): - KeyShortcutConfig: the author's scoped entries, with F3 / F5 kept for Pitch Modulation / Pitch Drift (kPianoRollOpenDyneScope). - AppPreferences: both sides used shortcut schema 2. Schema 2 stays the author's Mac defaults migration; schema 3 is the F3 / F5 adoption. Tests expect 3. - PianoRollToolHandler: findShortcutForBinding now gets the piano roll scope. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Zoom is visual and already has shortcuts; the buttons showed up as unnamed + / - in NVDA object navigation inside the notes list. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Upstream: in-plugin transport seek and edit cursor, external edit in the standalone, auto-scan capture, trackpad zoom (W-MS); reference track retired; render and FCPE fixes. Conflicts: - Shortcut schema: 2 and 3 stay the author's Mac migrations; 4 is the F3 / F5 adoption for Pitch Modulation / Drift. Tests expect 4. - TransportBar: scale combos stay AccessibleComboBox; the new External edit and Save and return buttons have no tooltip equal to their text (NVDA read it twice). - Preferences: the retired reference align selector is dropped as upstream. - CMake: both new test targets kept. Also: "External edit applied" is spoken when the returned notes are applied. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The text was only painted, so NVDA read nothing but the links and Close. Each line is now a focusable static text in reading order, the window is named, focus starts on the heading, Tab scrolls the line into view, and Enter/Space press the focused link or button. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Conflict in Plugin/PluginEditor.cpp recordRequested: took upstream
readScopeAudio(true) and moved our speech into readScopeAudio, manual
reads only ("Audio already read", "Processing audio").
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Conflicts: - Plugin/PluginEditor.cpp: took upstream readScopeAudio (auto read, silent); our "Audio already read" / "Processing audio" go back into recordRequested. - PianoRollToolHandler.h, PianoRollComponent.cpp: kept our bool notifyEscapeKey (EQ closes first, Esc passes to the host), added upstream transportShortcutsEnabled. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Upstream 5938769 removed the per-tick preference sync and the constructor never synced, so the editor stayed in the default scheme: OpenDyne users got the classic mode, F1-F6 went to REAPER and Read Audio made no notes. a11y: Read Audio on already read audio with no OpenDyne notes now makes the notes from the existing pitch and says "Notes made: N" instead of a dead end. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… default) Add an optional local control API to OpenTune Standalone. It lets a local client (for example an MCP server driven by an AI agent) perform the operations that the standalone UI offers and read their results: project and content reads, import and export, key, AUTO, note edits, undo and redo, time handles, arrangement, tracks, transport, selection, project files, preferences, the audio device and quitting. The protocol is OTCP v1 (JSON-RPC 2.0 over NDJSON) on a system-assigned port of the literal address 127.0.0.1, with a per-instance token from the system CSPRNG. It is off twice over. The CMake option OPENTUNE_ENABLE_CONTROL_API defaults to OFF; with it OFF nothing of this change is compiled. With it ON the API still does not listen unless OPENTUNE_CONTROL_API=1 or --control-api is given at start, and OpenTune behaves as before; the one exception is OPENTUNE_DATA_DIR, which redirects the preferences and the log when the user sets it (so that tests do not touch the user's settings); a path that is not absolute is ignored. The API supports the standalone app on Windows and macOS; configuring an iOS build with the option ON stops with an error. New code lives in Source/Control/, Source/Standalone/ControlEditorBridge* and cmake/OpenTuneControl.cmake. Existing files only gain small hooks, each marked "OpenTune Control API hook" and inside the option (142 lines in total): service start and stop in the processor, the data directory redirect, a content epoch, the editor bridge, a shared export lock, the undo/redo follow-up, undo stack accessors (read-only, plus clearing the redo history after an API change that has no undo entry, as the protocol requires) and a selection commit wrapper. PianoRoll is not changed. Operations whose logic exists only in UI code are rebuilt in Source/Control from the same lower-level functions, and the mirrored functions are listed for drift checks (next commit). Signed-off-by: DLsnows <noreply@synchain.ca>
Add the tests of the control API, registered with add_test when both OPENTUNE_ENABLE_CONTROL_API and OPENTUNE_BUILD_TESTS are ON (one main() per file, as the existing tests). They run without a window, an audio device or models: unit tests of the channel and the handles, processor-level tests with a test bridge in place of the editor, lifecycle and shutdown tests, and runners for the contract vectors of the specification. Every test gets its own OPENTUNE_DATA_DIR, so none of them writes the user's settings. Tests/Control/spec/otcp/v1/ is a byte-for-byte copy of the OTCP v1 1.0.0 specification (MIT, see its LICENSE): the prose, the JSON Schemas of every method, the registries of warnings and reasons, and the vectors the tests run. It is replaced only as a whole when a new specification version is published. ControlMirrorDriftTests checks the upstream functions that the control code mirrors: Source/Control/mirror-map.json records a normalised hash of each, and Source/Control/MIRRORS.md says which control file and which test to update when one of them changes. Signed-off-by: DLsnows <noreply@synchain.ca>
…notes Source/Control/README.md (English and Chinese) is the developer guide: the architecture and file map, the threading and shutdown rules, how a request is handled, the undo, dirty flag and revision token conventions, how to add a method, how to run the tests, the list of hooks in existing files and the method table. Source/Control/REVIEW-CHECKLIST.md is the checklist for reviewing a change of the control API, for people and for AI reviewers alike. Source/Control/MAINTAINING.md is for the maintainers of OpenTune and their AI agents: what to do on the control API side when a feature changes (only tell us, adapt the API as well, or remove it), the checks for every change, how to reach the companion MCP server project, and rules that can be pasted into CLAUDE.md or AGENTS.md. Signed-off-by: DLsnows <noreply@synchain.ca>
Conflicts: - Preferences: kept our keyboard audition toggle and accessible combo box, added upstream note transpose preview toggle. - PluginProcessor: took upstream mixAuditions, our NoteAudition is mixed there before its ARA early return; both audition members kept. - PluginEditor: external edit check moved to the processor upstream; "External edit applied" now follows a processor counter. - RenderBadgeComponent, PianoRollComponent, AppPreferences: kept both sides. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
JUCE gives ToggleButton a read-only On/Off value, so NVDA said "read only" on every check box, and a key press raises no toggle event, so it stayed silent. AccessibleToggleButton has no value and raises the UIA toggle state change on click, so the screen reader says checked / not checked in its own language. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
As an item FX in REAPER the editor view instance is a playback renderer and gets no audio while stopped, so the arrows were silent. The document's realtime editor renderer now mixes the audition, as upstream does for the drag audition. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Dropped "Play the note after a keyboard edit": the keyboard audition now follows upstream's note transpose preview toggle (user's request). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
保存原始采样率 PCM,以固定整数样本映射连接 ARA、Standalone、Capture、导出和工程恢复;范围 SRC 保留全局相位及真实滤波支撑,避免重复转换和块边界错样。 完善进程级渲染运行时、后端切换、退休与退出协调,声码器权重在控制队列接受请求后保存。同步相关 Control 行为、镜像记录及回归测试。 验证:Release 单并行 Ninja 构建及发布产物检查通过;54 项播放与工程相关回归通过;6 项偏好设置回归通过,其中 PrefsOptions 首轮消息等待超时后单独复测通过;两份 48 kHz WAV 全量逐样本比对通过。 保留三项既有镜像漂移:ui-confirm-dialog-buttons、prefs-tuning、audio-list-channel-pairs。
移除键盘旋钮延时提交,按键释放结束手势;本地目标切换先提交,外部更新和 API 选择先取消草稿。补齐参数投影和真实输入回归,同步五项控制镜像登记。Release 单并行构建、发布产物校验及 146 项测试通过。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Verification
Merge with a regular merge commit to preserve both branch histories.