Repository navigation
feat(gui): OSC copy map mode - #286
Merged
Merged
Conversation
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>
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.
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
EngineStategainsosc_copy_modeandosc_copied_param.map_mode_activeincludes the new mode, andapply_param_map_overlayhas 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.map_mode_active.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.mdgets 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_parameterhas always normalised.Checked
cargo clippy -p rustjay-core -p rustjay-gui --all-targetsis clean on macOS.🤖 Generated with Claude Code