Skip to content

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) - #1745

Merged
repeat98 merged 45 commits into
mainfrom
base/0.7.9-consolidated
Nov 18, 2026
Merged

repeat98 merged 45 commits into
mainfrom
base/0.7.9-consolidated

Conversation

@repeat98

@repeat98 repeat98 commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

One Octatrack base release instead of five base pull requests, each of which would otherwise have rebuilt the base and needed its own unit test and base update. Each one's branch is merged, not squashed, so every author's commits keep their authorship.

Supersedes #1678, #1694, #1610 and #1742 (each closes with a link here), and #1711's base part.

🤖 Generated with Claude Code

repeat98 and others added 30 commits November 14, 2026 15:47
…ooks

A module that subscribes the new ev_in_use (hook 38, asked by the base from the
UI tick, each module on its own) and answers 0 is left out of the rows of the
events marked "rests" in events.json (ev_play_increment, ev_voice_bind,
ev_voice_bind_run, ev_tail_kill), so the frame interrupt never enters its code
there; its other hooks, tables and setup UI stay. The loader keeps a resting
and an asking bit per position; a switch wakes its position, and
modwerk_runtime_rest_poll restages and commits the rows only when an answer
changed, under the lock, fenced against a paused task inside the dispatch and
written masked, as a switch is. Modules that do not subscribe never rest.

Host tests only; no base regeneration (the base-identity pins are stale until
the owner rebuilds the base from a stock OS file).

Co-Authored-By: Claude <noreply@anthropic.com>
…alled set changes, so it never shows a removed module.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…menu); Pattern Sample Locks 0.1.9 is its first row

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main took hooks 38-52 for project, bank and Part events (#1564). The generator keeps both
new kinds: hooks the base raises itself, and ev_in_use, which the base asks each module.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ckages name it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…the base's Part Edit menu

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e's own detours

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>
… rests

A runtime.json may name the module's own detours under "rests". The builder sets bit 7 of
those sites' length byte (loader.h RUNTIME_SITE_RESTS), only for a hashed site of a module
that subscribes ev_in_use; an older base reads the length as malformed and refuses it.
When the rest poll changes a module's state it writes those sites masked, with its rows:
stock's bytes while it rests, its patch when it wakes. A wake waits while a paused task
would resume inside such a site past its first byte; the site checks (switch, intact,
broken, journal) expect stock's bytes in a resting module's resting sites. The reviewed
recipes re-pin build.py and verify_static.py.

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ges name it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ack before an at-rest price

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…overload the frame, and the pick box shows its CPU

A module effect's package carries its CPU price in its FX page recipe (bytes 46-47, from resources.cpuPrice; older
bases ignore them). The base keeps the frame interrupt's share from the frame guard's sums and refuses a pick with
CPU FULL when that share plus the price, less the price of the effect the slot runs, reaches mw_frame_line (60 %,
measured on an MKII). The box after a pick shows CPU in place of POOL. Effects without a price are judged by the meter.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
…after #1418); build.py and page-script pins refreshed

Generated base files take main's side and are regenerated next.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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 #1418.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…bound packages re-bound; sizes recorded (+880 since 0.7.8, 48,556 free)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e host test compiles under -Werror

#1711 moved every use of it behind #ifndef MODWERK_HOST; the host build then failed on an unused variable (test_recipe.py's test_status.c, the red module-suites (sdk) check).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…kages re-bound, sizes recorded (+776 since 0.7.8, 48,660 free)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
repeat98 and others added 14 commits November 18, 2026 11:45
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…after a project load (#1720)

A project load replaced the effect map with the project's lines, so an installed module the project did not
name stayed on its handle unnamed; once a track used it, the save wrote no line, and after the next power
cycle a pinned module (Tape Echo 15, BBD 14, Euclid 29) was refused RUNTIME_FULL by the restore and every
re-add. rebind_tick now names every live module that stays on its handle, and the admission reads a handle's
owner as MISSING does (map, else catalogue), so files saved before the fix heal. Host test in test_dsp.c.

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	sdk/machines/octatrack/HOOKS.md
#	sdk/machines/octatrack/base-binding.json
#	sdk/machines/octatrack/base-sizes.json
#	sdk/machines/octatrack/base-versions.json
#	sdk/machines/octatrack/elekloader/base-version.json
#	sdk/machines/octatrack/elekloader/runtime_events.h
#	sdk/machines/octatrack/events.json
#	sdk/machines/octatrack/include/modwerk_events.h
#	sdk/machines/octatrack/module-adapters/candidate-recipes.json
#	sdk/machines/octatrack/module-adapters/controller-policies.json
#	sdk/machines/octatrack/module-adapters/machine-recipes.json
#	sdk/machines/octatrack/module-adapters/reconstruction-recipes.json
#	sdk/machines/octatrack/module-adapters/standalone-recipes.json
#	sdk/machines/octatrack/site-events.json
#	src/engine/assets/octatrack-base-fills.json
#	src/engine/assets/octatrack-base-sources.json
#	src/engine/assets/octatrack-base-variants.json
#	src/engine/assets/octatrack-base.elemod
#	src/engine/assets/octatrack-module-packages.json
# Conflicts:
#	sdk/machines/octatrack/base-binding.json
#	sdk/machines/octatrack/base-sizes.json
#	sdk/machines/octatrack/base-versions.json
#	src/engine/assets/octatrack-base-fills.json
#	src/engine/assets/octatrack-base-variants.json
#	src/engine/assets/octatrack-base.elemod
#	src/engine/assets/octatrack-module-packages.json
# Conflicts:
#	sdk/machines/octatrack/base-binding.json
#	sdk/machines/octatrack/base-sizes.json
#	sdk/machines/octatrack/base-versions.json
#	sdk/machines/octatrack/module-adapters/reconstruction-recipes.json
#	src/engine/assets/octatrack-base-fills.json
#	src/engine/assets/octatrack-base-variants.json
#	src/engine/assets/octatrack-base.elemod
#	src/engine/assets/octatrack-module-packages.json
… (a merge step had kept conflict markers)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…on by price comes with set-carried prices

The in-package price (#1711's recipe bytes) would change released packages once #1709 writes prices into manifests,
so the packers are back to main's; fxpage.c keeps no price. status.c keeps the frame share and the pick box's CPU row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ackages re-bound, size recorded

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@repeat98
repeat98 marked this pull request as ready for review November 18, 2026 19:48
@repeat98
repeat98 merged commit 69b220f into main Nov 18, 2026
18 of 26 checks passed
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.

2 participants