Files
JIANT/docs
Claude ad11f68066 JIANT 0.9.9-seq2h: COPY / PASTE in the sequencer (the approved mock-up's CP / CP2)
On SEQ's roll pages (the DRUM grid too), stopped or playing, the 16 white keys are the
steps of the bar shown (ui.bank, as the grid's and COMP's):
  a step key held + SELECT turned       COPY that step
  two held (the first and the last)     COPY the range between them
  keys 1 and 16 held + SELECT           COPY the bar
  a step key held + REC tapped          PASTE from that step, round within LEN
REC tapped with no step key, or the clipboard empty, arms / disarms as ever: REC is a
layer button and a key pressed before it is no layer key, so the tap (ui_layer.c
layer_tap -> rec_tap) sees it held and pastes. A melodic track armed: its keys write
or record notes, no copy or paste; the DRUM grid's white keys stay the steps (the hit
a held key put on an empty step is taken back by its copy / paste, a hit pressed for
one stays). Toasts COPIED n STEPS / PASTED n STEPS, the footer's [n] (ui_draw.c
clip_tag); DRUM <-> melodic refused (DRUM <-> NOTES: NO).

The clipboard (ui.c clip, 516 B of the .bss seq2h's scratch freed): 16 step_t whole
(notes, TIEs, flags, the DRUM hits / accents / lane modes, both components) and up to
32 of their parameter locks by offset. It stays across tracks, bars and sections.
Undo: the existing one (project.c undo_mark before a paste; GLO + G4), no RAM of its own.

RAM .data+.bss 88116 -> 88660 B (0.9.9-seq2g: 92724); the pool unchanged (spare 8224 B).
ui_test test_copy_paste: a range (notes, TIE, components, a lock) pasted elsewhere
equal, UNDO, a range round the bar's end within LEN, the bar onto another track, notes
onto DRUM and DRUM onto notes refused, DRUM hits whole, REC alone still arms.
MANUAL (EN, ES): Copy and paste. Goldens 157 unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-24 01:15:11 +00:00
..