Skip to content

AUv3: the host's overview from the plugin's remote controls - #658

Open
Crandall1 wants to merge 1 commit into
free-audio:nextfrom
Audio-Damage-Inc:auv3-overview-from-remote-controls
Open

Crandall1 wants to merge 1 commit into
free-audio:nextfrom
Audio-Damage-Inc:auv3-overview-from-remote-controls

Conversation

@Crandall1

@Crandall1 Crandall1 commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

The AUv3 wrapper doesn’t override parametersForOverviewWithCount:, and AUAudioUnit’s own implementation returns an empty array, so an iOS host with a compact generic view picks the parameters itself. Logic Pro for iPad takes the first three in the parameter tree. createParameterTree groups the tree by CLAP module path, and the groups come out of a std::map in alphabetical order, which is kind of whack.

Proposed fix:

  • Clap::Plugin fetches clap.remote-controls, falling back to the draft id.
  • parametersForOverviewWithCount: goes through the pages in order, slot by slot, and returns up to count parameter addresses. It skips CLAP_INVALID_ID, duplicates, and any id the tree doesn’t hold (hidden parameters). The calls are made under AlwaysMainThread().
  • A plugin with no remote controls, or whose pages give nothing usable, still gets [super parametersForOverviewWithCount:], so nothing changes for it.

parametersForOverviewWithCount: was never answered, so a compact host view
(Logic Pro for iPad's plug-in controls, GarageBand's) showed the first
parameters in the tree, which is grouped by module in alphabetical order.
It now walks the plugin's remote-control pages, first page first, and takes
the first parameters the tree holds. A plugin without remote controls gets
AUAudioUnit's answer, as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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