Skip to content

Read either minus sign in Dialogue's sensitivity and the Leveler's percent knobs - #26

Merged
pumfleet merged 1 commit into
mainfrom
percent-minus
Nov 2, 2026
Merged

pumfleet merged 1 commit into
mainfrom
percent-minus

Conversation

@pumfleet

@pumfleet pumfleet commented Nov 2, 2026

Copy link
Copy Markdown
Owner

Summary

Found during the shared-code consolidation (#22) and left out of it because it changes behaviour.

  • Dialogue, sensitivity parameters (−100% to +100%): getValueForText kept only ASCII +-, so "−50%" with U+2212, the sign Dialogue displays, read as +50%. The displayed text didn't read back either.
  • Leveler, Guard and Music knobs: the same parser. Their ranges start at 0, so the only effect was "−50%" reading as 50% instead of clamping to 0.
  • Both now use ui::format::parseLenient, which the dB fields already use.

Testing

  • New Dialogue [params] test: "-50%", "−50%" and "− 50 %" all read −0.5, "+25%" reads 0.25, and the displayed text for −40% reads back.
  • Verified by CI (Dialogue builds on macOS and Windows only).

🤖 Generated with Claude Code

…rcent knobs

Both parsers kept only ASCII signs, so a typed or pasted "−50%" (U+2212, the sign the
interfaces display) read as +50%. Dialogue's sensitivity runs from −100% to +100%, so
this flipped the value, and the interface's own text didn't read back. Both now use
ui::format::parseLenient, like the dB fields.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pumfleet
pumfleet merged commit bff8904 into main Nov 2, 2026
4 checks passed
@pumfleet
pumfleet deleted the percent-minus branch November 2, 2026 19:39
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