Skip to content

Board actions: toggle mixer effects, switch mixer presets - #15

Merged
PalmarHealer merged 2 commits into
mainfrom
feature/board-fx-actions
Nov 12, 2026
Merged

PalmarHealer merged 2 commits into
mainfrom
feature/board-fx-actions

Conversation

@PalmarHealer

Copy link
Copy Markdown
Contributor

What this adds

Two new button actions for the mixer, next to "Mute mixer channel":

  • Toggle mixer effects flips a channel's "Effects & EQ" switch. It plays the same switch sound and crossfade as clicking it on screen.
  • Switch mixer preset loads the next of the effect presets you picked for a channel; if you pick none, it goes through all presets.
    • Picking presets: in the wizard you choose the channel from a list, then tick the presets (built-in and your own) as a multi-select, like "Cycle output device".
    • What a press does: it loads the preset after the one the channel's chain currently matches. If the chain matches none of them (for example, after a hand edit), it loads the first. It also switches the effects on, so the press is audible, and shows a short "Channel: Preset" toast.

How

  • Saved to the profile. Both actions change the profile, unlike mute, which stays live-only. The UI thread handles them in the board frame loop, where manual LED toggles are already persisted.
  • What a press updates. It saves the profile and hands it to the mixer, so the effects switch with their usual sound and fades. It also redraws the Mixer page if it is open.
  • Actuator. The actuator never receives these commands.
  • Model. The logic lives in MixerConfig::toggle_fx and MixerConfig::switch_preset, with unit tests:
    • a send counts as its channel
    • a deleted channel is a no-op
    • presets advance and wrap
    • an empty list means all presets
    • unknown names are skipped
  • Saved form. The preset list is stored newline-separated in the action's property, like "Cycle output device"; the channel is stored in mixer. The list label reads "Channel: A → B".

Testing

  • cargo test: 97 pass, 1 ignored.
  • Not checked yet: the wizard flow and pressing a real board button. Both still need a manual check.

🤖 Generated with Claude Code

PalmarHealer and others added 2 commits October 31, 2026 03:31
…ts presets

Two new button actions for mixer channels:
- Toggle mixer effects flips the channel's Effects & EQ switch, with its sound and fades.
- Switch mixer preset loads the next of the chosen effect presets (all when none are picked) and switches the effects on.

Both change the profile, so the UI thread handles them: it saves the profile, hands it to the mixer and updates the Mixer page when it is open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@PalmarHealer
PalmarHealer merged commit a50329a into main Nov 12, 2026
2 checks passed
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