Add ChannelFader: an audio-taper gain fader over a level meter - #567
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HgjMCJ9MQRmUk6c8KABDYH
matt-edmondson
force-pushed
the
claude/project-thread-wmrk2b
branch
from
September 30, 2026 10:44
7a4589f to
e148c46
Compare
|
This was referenced Oct 1, 2026
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.



Requested by Matt · project thread
Before:
ktsu.ImGui.Widgetshad no mixer-strip gain control. A caller who wanted one used a linear slider, so unity sat near the top and the handle and any meter beside it read on different scales.After:
ImGuiWidgets.ChannelFaderdraws a vertical gain fader over a level meter. The handle and the meter share one audio taper (FaderTaper), so a level and a gain at the same height mean the same number of decibels. You drag it, click the track to jump, use the wheel to nudge by 1 dB, and right-click to return to unity. It marks itself withImGuiProbes.MarkItem.How:
FaderTapermaps decibels to travel.ChannelFaderStateholds the interaction with no ImGui dependency and is unit tested without a context.MeterScale.DrawVerticalMetergains an overload that takes a level-to-height mapping, so the meter is drawn on the fader's taper. The existing linear overload delegates to it, and its behaviour is unchanged.ChannelFaderDemoregistered with one line inDemoSections.cs, an isolation suite inImGui.Widgets.UITests, and a gallery tile.One deviation from #528:
ChannelFaderImplkeeps a per-idDragPositionshandle position across the frames of a drag. Rebuilding the position fromgainDbevery frame sends it through the taper and back, which differs in the last bit from where the drag left it. The fader would then report a change on every frame while the mouse is held still.Closes #528
🤖 Generated with Claude Code
https://claude.ai/code/session_01MBhLQ3ZkoYk8s5tKQ8RTAP
Generated by Claude Code