Skip to content

Add expanded Trance Gate window - #98

Merged
chrislaupama merged 1 commit into
mainfrom
device-windows-12
Nov 16, 2026
Merged

chrislaupama merged 1 commit into
mainfrom
device-windows-12

Conversation

@chrislaupama

Copy link
Copy Markdown
Collaborator

What changes

  • Trance Gate opens a 1200 pt window:
    • A panel down the left with the step ring (step counter with its chevrons, rate picker, the gate shape of each step) and the pattern track.
    • The envelope across the display, with its Attack, Decay and Release handles.
    • One card: Attack, Decay, Sustain, Release | Swing | Mix. No meters.
  • The ring, pattern track and envelope are the card's own editor, drawn and hit tested from a geometry scope (TgScope with TG_CARD or TG_WIN). Everything the card does works in the window the same way: painting steps, dragging the step count, the rate menu, picking a pattern, dragging the envelope handles.
  • The window's canvas sends its editor events with kind + 16, so they are hit tested in the window's geometry.
  • Control cards can now start right of a side panel (Builder::left).
  • Tests: trance_gate_window_toggles_steps_on_its_own_ring. Trance Gate added to the window bench.
  • README, docs/devices.md and CHANGELOG updated.

Screenshots

Before (card in the floating panel):

before

After:

after

Benchmark

bench_dynamics_windows (release, Linux cloud container), per build: Trance Gate card 319.0 µs, window 301.2 µs. The window draws the same picture as the card, at a larger size.


Generated by Claude Code

The card's ring, pattern track and envelope are drawn and hit tested from a geometry scope (TG_CARD or TG_WIN), so the window shows them at its own size: the ring and pattern track on a panel down the left, the envelope across the display, and a card with Attack, Decay, Sustain, Release, Swing and Mix. Window editor events carry kind + 16. Test trance_gate_window_toggles_steps_on_its_own_ring; added to the window bench; docs updated.
@chrislaupama
chrislaupama marked this pull request as ready for review November 16, 2026 02:10
@chrislaupama
chrislaupama merged commit 798c91b into main Nov 16, 2026
13 checks passed
@chrislaupama
chrislaupama deleted the device-windows-12 branch November 16, 2026 02:10
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