Skip to content

Improvement: Octatrack base 0.7.9 shares the Part Edit menu (ot_part_menu); Pattern Sample Locks 0.1.9 is its first row - #1678

Closed
twwwy wants to merge 10 commits into
repeat98:mainfrom
twwwy:improvement/ot-part-menu
Closed

twwwy wants to merge 10 commits into
repeat98:mainfrom
twwwy:improvement/ot-part-menu

Conversation

@twwwy

@twwwy twwwy commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Tested on a unit: Pattern Sample Locks 0.1.9 package 6fea272e on this base's development twin e08c4416 (numbered 0.7.8 then, before #1418 took that number; it does not include #1418's DSP hook chains), MKII: device:qualify release run, plus the author's Lock and Clear check while playing.

  • What was wrong or hard: Pattern Sample Locks and Kits both take over FUNC+PART (PSL patches the popup calls at 0x4002dc68/dc90/dcc4, Kits the opener at 0x4002dc9c), so they are declared conflicting and a player can only have one. Every later module that wants a Part Edit row would hit the same wall.
  • What this changes:
    • Base 0.7.9 (f6367148): a new table, ot_part_menu (index 53). The base owns the three Part Edit popup calls. With a module contributing, FUNC+PART opens a window drawn like the PROJECT menu: PART EDIT title bar; on the left PART (stock's RENAME, RELOAD, SAVE, SAVE ALL) and one icon row per module; on the right the highlighted row's actions. Keys as in PROJECT: UP/DOWN/LEVEL move, RIGHT or YES go in, LEFT goes back, NO closes from either column, and it reopens where it was left (parent, column and each parent's action row). With no contribution the window is stock's.
    • A module contributes one 24-byte struct modwerk_part_menu: a label (7 characters), 1-6 actions (14 characters), a choose(action) callback (called after the base has closed stock's popup) and an optional 19x9 icon. Modules never see each other. Built behind --part-menu, which --beta now includes.
    • Pattern Sample Locks 0.1.9 (my module) is the first row: LOCKS > LOCK SAMPLES / CLEAR LOCKS. It drops its three opener detours and its screen:PART EDIT claim, and no longer needs a reconstruction recipe (its nine copies were authored coincidences, which base 0.7.5 stopped refusing). Its track and confirm screens are unchanged. It has to ship with the hook: the package builder refuses 0.1.8's detours on sites the base now owns.
  • How I checked it:
    • Host test test_part_menu.c (in test_machine_events.py): navigation, stock rows, the reopen memory, removed contributions, and the frame (title bar, rule, shadow, track strips untouched). PSL's verify.py; hook coverage; modules:compat (0 problems).
    • The base and both packages rebuilt from my OS 1.40C (octatrack:base --beta --write, octatrack:module-packages).
    • On my MKII, a development twin of the base booted from RAM, with PSL 0.1.9 and Kits 0.1.1 (a local Kits update, not in this PR) contributing: drawn and compared by screenshot with PROJECT on the same unit; LOCK and CLEAR opened their screens; SAVE KIT saved a Kit (KIT SAVED, status 065 NEW KIT); NO, LEFT and reopening behave as PROJECT does there. Recorded in PSL's TESTING.md.
    • Qualification (done): PSL 0.1.9's tests.qualification and evidence/performance.json. Emulator: CLEAR on 512 fields is 307,343 instructions (0.1.8: 333,805), and 20 rounds of Lock then Clear while playing, with STOP and a Part change between, gave 40 events and no hang. Memory comes from the exact package. device:qualify --keeps-ok passed on the MKII, and the author applied Lock and Clear on the unit with playback continuing. Not tested: MKI, a power cycle, sound, MIDI, scenes and recording.
  • What the guides lacked or got wrong, and where I fixed it: docs/module-guides/README.md's table of shared sites now lists the Part Edit window rows (ot_part_menu). Also learned: a base table whose sites a published module still patches cannot land alone (build.py's unevented refuses the old package), so the hook ships with its first user; I did not find that written down. Should it go in "Propose a hook"?

Settled with @repeat98:

  1. Kits: OK on the agent board (17 Nov) to send Kits 0.1.1 as its own follow-up pull request once this base has landed, keeping the Sam Banks and Octakit credits, with FUNC+PASTE+PART still copying a Part in its evidence. Until then Kits 0.1.0 still declares the conflict, so nothing changes for Kits users.
  2. Shape: owner exception granted in the comments: base 0.7.9 and PSL 0.1.9 stay in one pull request, so module-contract and module-pr-ok stay red by agreement. Hook 53 goes to whichever of this and Improvement: Octatrack base 0.7.8, a module that no track uses rests #1694 merges first.
  • Changing a module someone else wrote: not in this PR (Kits follows separately with the OK above).
  • I read the guide for its category in docs/module-guides/, and TESTING.md lists what I did not test.
  • Source and media are mine or properly licensed. Nothing comes from Elektron firmware; the icons are drawn for this.
  • Screenshots are real captures; hardware results are what I saw on the named development build.

🤖 Generated with Claude Code

…menu); Pattern Sample Locks 0.1.9 is its first row

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the enhancement New feature or request label Nov 17, 2026
twwwy and others added 4 commits November 18, 2026 01:02
…the base's Part Edit menu

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…n and 0.1.9 MKII screenshots

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@twwwy

twwwy commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

Update: Pattern Sample Locks 0.1.9's qualification is done, and main is merged in.

  • Emulator (same ot_emu and card as 0.1.8, base 0.7.8): dearest press CLEAR on 512 fields 307,343 instructions (0.1.8: 333,805), LOCK 96,682; 20 rounds of Lock then Clear while playing with STOP and a Part change between, 40 events, no hang. The stress exercise is now committed (press_stress_emulator.py, capture_emulator.py --press-stress).
  • Hardware: device:qualify passed on my MKII with the exact package 6fea272e on a development build of base 0.7.8 (Keep, four Parts three times round, bank change, Part reload checked byte for byte, removal; no crash, stall or loader error). Six new 0.1.9 MKII screenshots.
  • modules:generate and every check in npm run check pass except the two below.

Two things only you can decide (pr:ready):

  1. Hook index 53 is claimed by you for the per-frame "in use" hook. I asked on the board: either lands first and the other takes 54.
  2. Base and module in one PR. pr:ready wants the base merged first, but the package builder (unevented in sdk/runtime/loader/build.py) refuses Pattern Sample Locks 0.1.8 as soon as events.json names those three sites, even with the menu off. Unlike modules:compat, it has no pending-migration exception. So the base cannot land alone without changing that gate. Should I (a) send a small Fix: PR letting the builder honour a reviewed pending-migration relation, then split this into base first and Sample Locks after, or (b) keep the hook and its first user together here?

Not run on hardware for 0.1.9 yet: a Lock or Clear actually applied (I'll do it on a scratch project), MKI, a power cycle.

…MKII

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
twwwy and others added 2 commits November 18, 2026 10:29
octatrack:module-packages -- --base-only --stock: the other base-bound packages
were already on 0.7.8. Sidechain's held 0.2.1 builds byte-identical under this
base, so only its requiredBase moved (test_base_bound rebuilds and compares it).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@twwwy

twwwy commented Nov 18, 2026

Copy link
Copy Markdown
Contributor Author

Asking for an owner exception to the scope rule: #1678 as one pull request.

module-contract (and pr:ready) refuse this PR because it changes the base and a module. The split fails another gate. A base-only PR that takes over the three Part Edit opener sites is refused by catalogue_overlaps and build.py's unevented while the published Pattern Sample Locks 0.1.8 still patches them. And 0.1.9 can't land before the hook it contributes to. The hardware evidence (device:qualify on base 0.7.8 dev e08c4416 with package 6fea272e, and the author's Lock/Clear check on the MKII) was also taken on the two together. No check, gate or test has been edited.

If you'd rather have it split, I'll first send a Fix: pull request that lets a base PR take over a site a published module still patches, then split this one into the base and Pattern Sample Locks 0.1.9.

Other things in this push:

@repeat98

Copy link
Copy Markdown
Owner

Exception granted: base 0.7.8 and Pattern Sample Locks 0.1.9 stay in one pull request, since the published 0.1.8 blocks a base-only split and 0.1.9 needs the hook. No gate change needed. Hook 53 still goes to whichever of this and #1694 merges first.

@twwwy
twwwy marked this pull request as ready for review November 18, 2026 07:55
@repeat98

Copy link
Copy Markdown
Owner

#1418 just merged as base 0.7.8, so this one moves to 0.7.9: please merge main (no rebase), set base-version.json to 0.7.9, rebuild the base and relink the packages, then pr:ready. Hook 53 is unchanged: whichever of this and #1694 merges first keeps it.

…s 0.7.9

Conflicts: took main's base files and rebuilt (octatrack:base --beta --write:
base 0.7.9 f6367148, package 076abb50, fills a27efddc), relinked the base-bound
packages with --base-only (bytes unchanged, requiredBase moved), merged
octatrack-module-packages.json row by row, kept this branch's empty
reconstruction recipe (PSL 0.1.9 drops its route), wrote the size record
(805,032 of 851,712 bytes, +2,756 since 0.7.8). The changelog, PSL README and
module changelog now say base 0.7.9; TESTING.md notes the tested builds were
numbered 0.7.8 and predate repeat98#1418.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@twwwy twwwy changed the title Improvement: Octatrack base 0.7.8 shares the Part Edit menu (ot_part_menu); Pattern Sample Locks 0.1.9 is its first row Improvement: Octatrack base 0.7.9 shares the Part Edit menu (ot_part_menu); Pattern Sample Locks 0.1.9 is its first row Nov 18, 2026
@twwwy

twwwy commented Nov 18, 2026

Copy link
Copy Markdown
Contributor Author

Done: main merged (no rebase), base-version.json set to 0.7.9 and the base rebuilt (octatrack:base --beta --write): base 0.7.9 f6367148, package 076abb50, fills a27efddc. The base-bound packages are relinked with --base-only (bytes unchanged, only requiredBase moved). The size record is 805,032 of 851,712 bytes, +2,756 since 0.7.8. test_base_bound, test_base_bound_trust, test_machine_events (with the Part Edit menu host test) and test_hook_coverage pass. pr:ready shows only the scope exception and the index-53 claim. The Pattern Sample Locks package 6fea272e is unchanged. Its unit and emulator runs were on this base's earlier builds, which predate #1418, and TESTING.md now says so.

@repeat98

Copy link
Copy Markdown
Owner

Thanks a lot for this! To stop five base pull requests from rebuilding the base one after another, I've folded every open Octatrack base change into one release: #1745 (base 0.7.9). Your branch is merged into it as it is, so your commits and authorship are kept, and Pattern Sample Locks 0.1.9 ships with it under the same exception as here. ot_part_menu keeps index 53.

There's nothing more for you to do here, so I'm closing this one in favour of #1745. I'll test that exact build on my unit and let you know when it's live.

@repeat98 repeat98 closed this Nov 18, 2026
repeat98 added a commit that referenced this pull request Nov 18, 2026
Octatrack base 0.7.9: Part Edit menu, resting modules, kept effects after a power cycle, status word, CPU in the pick box (folds #1678 #1694 #1610 #1742 #1711)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants