Skip to content

Plugin editor: group parameters by the plugin's own groups, not by '/' in names - #92

Open
marcin-koziol wants to merge 1 commit into
BurningTreeC:mainfrom
marcin-koziol:plugin-param-groups
Open

marcin-koziol wants to merge 1 commit into
BurningTreeC:mainfrom
marcin-koziol:plugin-param-groups

Conversation

@marcin-koziol

Copy link
Copy Markdown

Problem

The generic plugin editor split every parameter name at its last / into a section heading and a short name. That suits CLAP, whose names come with the module path in front, but a plugin whose parameter name simply contains a slash got a made-up section. x42 Whirl's "Motors Ac/Dc" showed as a heading "MOTORS AC" over a slider called "Dc". This came from a user report: marcin-koziol#2

Fix

  • PluginParameterView carries the plugin's own group of each parameter (group, taken from PluginInstance::parameter_group: CLAP's module path, VST3's units, a built-in's band or pad).
  • The editor's section headings come from that group. A name loses only the group's prefix (or the prefix of the group's last part, e.g. "Osc 1 Pitch" under "Scene A/Osc 1"). A / in a name without a group stays part of the name.

Tests

  • A new unit test, names_are_shortened_only_by_their_own_group, covers names with no group, with a group, with a nested group, with the last part of a group as prefix, and a name equal to its group.
  • clippy runs clean on faderframe-ui and faderframe-session.

🤖 Generated with Claude Code

The generic editor split every parameter name at its last '/' into a
section heading and a name, so a name that merely holds a slash (x42
Whirl's "Motors Ac/Dc") showed as a "MOTORS AC" heading over "Dc".
Headings now come from the plugin's own parameter groups (CLAP's module
path, VST3's units), and a name loses only its group's prefix.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

2 participants