Wavetable editor fits above the keyboard: one oscillator per tab, table drawn in its card (0.36.1)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Reactorcoremeltdown
2026-11-14 05:34:41 +01:00
co-authored by Claude Opus 5.5
parent 3170e8dd7a
commit bc257203e3
8 changed files with 120 additions and 73 deletions
+10
View File
@@ -349,6 +349,16 @@ table). `DeviceLayoutsTest` checks that every parameter of every laid-out device
is on exactly one card and that knob labels stay short. A device missing from
`DeviceLayouts` falls back to one card with all its parameters.
**Fit above the keyboard (0.36.1).** Instruments pin an audition keyboard, which
leaves the editor about 460 dp on a 20:9 phone, of which the title, preset bar and
tab strip take about 170. A page should therefore stay under ~290 dp (one card
with a drawing, a choice row and a knob row is ~230; two such cards don't fit).
That is why the Wavetable has one oscillator per tab and separate AMP and MOD
tabs. Its table drawing is a `Viz.Wavetable(osc)` inside each oscillator card
(`WavetablePreview`), and LOAD TABLE is a `Panel.action` in Oscillator 1's title
(`LoadTableAction`, WavetableEditor.kt). Tabs share the strip's width (up to
seven fit) instead of scrolling sideways.
**Recomposition pitfall (fixed in 0.35.1).** Slot params live in a plain map that
Compose can't observe; edits bump `vm.revision` instead. Because the compiler's
strong skipping compares `vm`/`slot` by identity, a child composable that receives
+3 -2
View File
@@ -227,7 +227,7 @@ The keyboard pinned at the bottom of the Toolbox auditions the current device.
**Device editors.** Controls are grouped into cards by what they do, each with its
own colour: amber for the sound source, green for the filter, pink for envelopes,
violet for modulation, white for output and mix. Bigger devices split their cards
into tabs along the top (Wavetable: OSC · VOICE · FILTER · ENV · LFO). Drag a knob
into tabs along the top (Wavetable: OSC 1 · OSC 2 · VOICE · FILTER · AMP · MOD · LFO). Drag a knob
up or down to turn it, double‑tap it to reset; short choices are switches you tap.
Envelope, filter and LFO cards draw their shape and follow the knobs as you turn
them. The 10‑Band EQ is a row of vertical faders (double‑tap one to flatten it).
@@ -313,7 +313,8 @@ WAV made of frames of 256 to 2048 samples (set **Frame Size** if it guesses wron
oscillator 1 then plays it as **Custom**. **Bend** sharpens a wave without changing
its pitch, **Unison** stacks up to four detuned copies (**Spread**), and there is a
**Sub** sine, **Noise**, a **Filter** with its own envelope amount and **Drive**.
The table view shows oscillator 1's frames, the one at its position lit.
Each oscillator's tab draws its table's frames, the one at its position lit;
**LOAD TABLE** is in oscillator 1's title, with **Frame** below its table.
### Effects