Skip to content

feat(gui): OSC copy map mode - #286

Merged
BlueJayLouche merged 2 commits into
mainfrom
feat/osc-copy-mode
Oct 5, 2026
Merged

BlueJayLouche merged 2 commits into
mainfrom
feat/osc-copy-mode

Conversation

@BlueJayLouche

Copy link
Copy Markdown
Owner

What

A third top-bar map mode, OSC COPY, beside MIDI MAP and LFO MAP. With it on, every mappable control gets a blue outline. Hovering shows the control's OSC address, and clicking copies it to the clipboard and turns the outline green.

Why

Getting a parameter's OSC address meant reading it off the address list and retyping it. For channel and FX parameters the id contains a generated part, so that is slow and easy to get wrong.

How

  • EngineState gains osc_copy_mode and osc_copied_param.
  • map_mode_active includes the new mode, and apply_param_map_overlay has a branch for it. The <category>/<id> path every caller already passes for MIDI learn is the OSC address under /rustjay/, so no new lookup is needed.
  • The two built-in call sites that tested the MIDI and LFO flags directly now call map_mode_active.
  • The engine's top bar gets the toggle. The three modes are mutually exclusive, and switching to OSC COPY cancels a pending MIDI learn.

An app that draws its own top bar (KOVVBOJ) needs its own toggle; its controls already take part through the shared overlay.

Guide

external-control.md gets a "Copying an address" section. It also now says what the server accepts, a float from 0 to 1 scaled onto the parameter's range, where it said a value in [min, max]. OscState::update_parameter has always normalised.

Checked

  • cargo clippy -p rustjay-core -p rustjay-gui --all-targets is clean on macOS.
  • Hands-on in a KOVVBOJ build against this branch: the mode works on the mix page controls and the copied addresses drive the parameters.
  • No new test: the added logic is one string format, the rest is UI wiring.

🤖 Generated with Claude Code

BlueJayLouche and others added 2 commits October 6, 2026 01:19
A third top-bar map mode beside MIDI MAP and LFO MAP. With it on, every
mappable control is outlined; hovering shows its OSC address and a click
copies it. It rides the existing overlay, so any app whose controls
already take part in the map modes gets it without changes.

The guide gains a section for it, and now says what the server actually
accepts: a float from 0 to 1 scaled onto the parameter's range, where it
used to say a value in the range itself.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The three baselines are CI's own Linux renders from the failing run,
taken from its snapshot-renders artifact. The only change in them is the
new top-bar button and the buttons to its left moving over by its width.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@BlueJayLouche
BlueJayLouche merged commit 89ed930 into main Oct 5, 2026
2 checks passed
@BlueJayLouche
BlueJayLouche deleted the feat/osc-copy-mode branch October 5, 2026 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant