Skip to content

Add Knob and Fader console widgets (0.5.25) - #324

Merged
koaning merged 3 commits into
mainfrom
koaning/slider2d-fader-vibe
Aug 12, 2026
Merged

Add Knob and Fader console widgets (0.5.25)#324
koaning merged 3 commits into
mainfrom
koaning/slider2d-fader-vibe

Conversation

@koaning

@koaning koaning commented Aug 12, 2026

Copy link
Copy Markdown
Owner

Summary

Two new audio-console input widgets for wigglystuff, released as 0.5.25.

  • Knob — audio-panel rotary knob. Partial-arc by default (start_angle/end_angle, up to a gapless full 360° circle), with a pointer, a configurable tick scale (ticks), and discrete detents (steps) for a rotary selector.
  • Fader — mixing-console fader (vertical or horizontal) with a configurable tick scale and the same steps detents.
  • MIDI learn (opt-in midi=True): click the button, move a hardware control, and the next control-change binds to the widget and drives its value. Bindings can be set upfront (midi_cc/midi_channel) and persist across restarts in browser localStorage, namespaced by the notebook URL path (override with midi_key/midi_scope). Web MIDI is Chromium-only and needs a secure context.
  • Demos at demos/knob.py / demos/fader.py, reference docs, gallery entries (README + docs), llms.txt, changelog, and the quick-reference table.

Notes

  • No MixPanel (dropped) and no Slider2D changes — scoped to Knob + Fader.
  • Core dependencies unchanged (anywidget, drawdata); no 3rd-party deps leaked into core.
  • No new tests (per maintainer preference); verified via widget smoke tests and marimo check on both demos.

🤖 Generated with Claude Code

koaning and others added 3 commits August 11, 2026 17:06
New audio-console controls:
- Knob: partial-arc rotary (configurable sweep up to a full circle), pointer,
  configurable tick scale, discrete `steps` detents, and Web MIDI learn.
- Fader: vertical/horizontal mixing-console fader with a tick scale and `steps`.
- MIDI learn (opt-in) with upfront `midi_cc`/`midi_channel` and localStorage
  persistence namespaced by the browser URL path.
- Demos, reference docs, gallery entries, llms.txt, changelog, quick-ref table.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@koaning
koaning merged commit 01e5028 into main Aug 12, 2026
1 check failed
@koaning
koaning deleted the koaning/slider2d-fader-vibe branch August 12, 2026 08:21
koaning added a commit that referenced this pull request Aug 12, 2026
PR #324 added Knob and Fader as a gallery row with a trailing empty
<td></td>, which failed test_gallery_cells_are_well_formed (only the
final row may be short). Move both cards into the final Hint row so
every row has exactly three well-formed cells.

Co-authored-by: Claude Opus 4.8 (1M context) <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