v2.3.0 release: onEditingEnded edit-ended callback on continuous controls
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
+21
@@ -7,6 +7,27 @@ functionality in a backward-compatible way.
|
||||
|
||||
---
|
||||
|
||||
## 2.3.0 — Edit-ended callback on continuous controls
|
||||
|
||||
A small, additive, source-compatible release. The continuous `LyrebirdUI`
|
||||
controls drive their parameter node(s) continuously while dragging, which gives
|
||||
a host no single "the user finished this edit" signal. This adds one.
|
||||
|
||||
**New — `.onEditingEnded` on the continuous controls.** `ParameterKnob`,
|
||||
`ParameterSlider`, `ParameterXY`, and `MultiSlider` gain an `.onEditingEnded`
|
||||
modifier (both the SwiftUI and the Linux/GTK4 variants) that fires **once per
|
||||
drag gesture**, reporting the value(s) at the start and end of the drag. A host
|
||||
can use it to record a single edit per gesture — an undo checkpoint, say —
|
||||
instead of one per intermediate update. The payload matches each control:
|
||||
`(previous, new)` doubles for the knob and slider, a pair of `(x, y)` tuples for
|
||||
the XY pad, and the before/after cell-value arrays for the multi-slider.
|
||||
|
||||
Additive and drop-in over 2.2.x: every control's public initializer is
|
||||
unchanged (the callback is attached by the modifier), so existing call sites and
|
||||
DocC links are unaffected. See `docs/ui/gui-system.md` for examples.
|
||||
|
||||
---
|
||||
|
||||
## 2.2.0 — Live-parameter ramp origin primed at synth add
|
||||
|
||||
A small-but-behavioral release. One fix to how `@UIParam` / `@LiveParam` values
|
||||
|
||||
Reference in New Issue
Block a user