Skip to content

Improvement: Rytm release bases carry the runtime loader again (after #2513) - #2514

Merged
npp1993 merged 18 commits into
repeat98:base/analog-rytm-mkii-nextfrom
npp1993:claude/rytm-release-loader
Dec 3, 2026
Merged

npp1993 merged 18 commits into
repeat98:base/analog-rytm-mkii-nextfrom
npp1993:claude/rytm-release-loader

Conversation

@npp1993

@npp1993 npp1993 commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

What this does: it puts the runtime loader back into every Analog Rytm MKII release base (plain, voices and send-bus), so a musician's unit takes a module on trial over USB, with Keep and Undo, as the Octatrack does. #1934 left the loader out of release bases (66c9f23) only because sdk/runtime was GPL-3.0-or-later. #2513 relicenses it.

What changes for players: the Status page can load modules on trial on a release base, not only on a development base. The base grows by about 33 KB of .run and 108 KB of .bss (96 KB of it the pool and staging) in the 3.7 MiB mod area.

Status: ran on Nathaniel Pavel's MKII on 2 December 2026: each of the three release bases took a module on trial, undid it, kept it and removed it again over USB. Merging into base/analog-rytm-mkii-next now, before Octatrack base 0.8.6 reaches main. This branch carries #2513's relicensing (merged into 0.8.6), so base-next cannot go to main until 0.8.6 is on main: until then its Octatrack base check (octatrack-base.test.ts, base-sources.mjs) is stale, as on 0.8.6's own branch.

Tested on a unit: bases a7456fa8 (plain), 859c0626 (voices) and 064c4cbb (send-bus), MKII, each RAM-booted as RL11-RL13 with a module's trial, Undo, Keep and removal over USB

On the unit (RL11-RL13, 2 December 2026): each release image RAM-booted from the development base in flash (RC47), ident gave the linked set identity, the screen was refused (a release base), the pool started empty at 65,536 bytes. hello.mwrm on trial then Undo; sited.mwrm (one stock-code site) on trial then Undo four times; a trial kept (one live module), then removed by an empty package and kept: the pool back to 65,536 free, phase normal, generations 2 to 12 in order. Load stayed at 39-41 % of the block (peak 57-61 %) with the module kept. Nobody pressed a key; a power cycle brought RC47 back each time.

Build Variant Set Result
RL11 plain a7456fa8 + Filter Hz, Loop Sync 6c4a0e24, 62,164 B pass
RL12 voices 859c0626 + Analog BD df7873a5, 72,712 B pass
RL13 send-bus 064c4cbb + Chorus 436fca35, 76,472 B pass

Who must act: nobody for this merge. @repeat98: base-next now waits on 0.8.6 (#2473) before it can go to main.

Edge cases

Case Why this change makes it a risk How run Result
A trial, Keep and Undo of hello.mwrm on each release variant (plain, voices, send-bus) The loader now runs in release bases, which never carried it in this build Release images RL11-RL13 RAM-booted on the unit, rytm_link.py try, keep, remove pass on all three (above)
A trial left to expire with the host gone (ten seconds with no link request) The expiry and its restore now run on musicians' units rytm_link.py try --seconds 20, then unplug USB not run on a release base (needs a person at the unit); the expiry code is the same one development bases ran on 25 November
A trial asked while a pattern plays The loader must refuse (unsafe), as on a development base Play a pattern, then rytm_link.py try not run on a release base (needs a person to press PLAY; a release base takes no key over the link)
A power cycle after a Keep A kept module lives in RAM only: the flashed set must come back Keep, power off and on, ident and mods pass for a RAM-booted release image: after each run (a module kept, then removed) a power cycle brought RC47 back from flash; a flashed release base not run
The largest send-bus set beside the loader's 108 KB The loader takes mod-area RAM a set used to have link-image.mjs with the biggest send-bus set; ramSpare and fxWork pass (host): send-bus with Chorus and 16 modules, 170,928 B, ramSpare 3,547,540, fxWork room 886,884
A runtime module whose site touches a base site Release bases now hold the sites a module must not patch over test_a_rytm_runtime_module_never_patches_over_the_base (host) pass
A GPL-3.0 file reaching a release base The release must stay GPL-2-compatible now that it carries shared code The release licence test, with a GPL-3.0 line put in journal.h and in wire.c pass (both refused)
What changed and how it was checked
  • base.json: runtime.c, modules.c, the staged loader and upload sources, the RUNTIME_* cflags, the four mw_runtime_* UI hooks and the shared list move from dev back to common, as they were before 66c9f23. link.c no longer needs MODWERK_RUNTIME. diag.h and modules.c stay GPL-2.0-or-later.
  • Release identities: plain a7456fa8, voices 859c0626, send-bus 064c4cbb, rebuilt after merging base-next's lean-engine change (Fix: Rytm base: the lean engine clears an idle sample voice's output every block #2515) and the FX track's lock words in every variant (Rytm base: FX words 38-41 keep step, scene and performance locks in every variant #2539). The packages, base-binding.json, the import record (pinned to 9e68b14), machine.json, the generated registry and the docs agree.
  • test_a_rytm_release_base_compiles_only_gpl_2_compatible_code: it used to refuse any shared file in a release base. Now it walks the shared sdk/runtime files and the copies the build stages under ../base/, and needs a GPL-2 SPDX line in each. Checked: a GPL-3.0 line put in journal.h or wire.c fails it.
  • Runs:
    • sdk/tests/test_machine_base.py: 42 pass.
    • src/engine/elekloader, src/engine/elektron, scripts/rytm-device.test.mjs: 686 pass. The one failure is the stale Octatrack base above.
    • src/components: 371 pass.
    • tsc -b, sdk:imports:check and licenses.mjs pass.
    • An independent review found stale "release bases have no loader" text, now fixed. The dated changelog entries of 25 November and 1 December stay as they shipped.
  • What the guides lacked: nothing new.

🤖 Generated with Claude Code

npp1993 and others added 12 commits December 1, 2026 17:13
…next

Improvement: Analog Rytm MKII cumulative base draft for 0.7.1
…es in its first stage

An edit to a file a base is built from (the shared sdk/runtime loader among them, a licence line included) is a new
Octatrack base version with its base-bound packages relinked, and a new identity for each elemod base that compiles
it. The Octatrack base test found it only late in the run, with no word on the version or who releases it, and
nothing checked the elemod packages' recorded sources. scripts/base-sources.mjs compares both records with the tree
beside the base size and base-bound checks, and the loader's README says it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A cumulative base draft marked ready brought three new module versions without the record; modules:check named one
per run. procedureRecordProblem and testingVersionProblem now collect every module and give the guide's pointer once.

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

Workflow: npm run check names a base not built from this tree's sources in its first stage
…rds-at-once

Workflow: name every module without its test procedure record in one run
…8#2500)

* Docs: the Rytm's amp state stays in decay after a decay ends

* Docs: the amp state returns to -1 only after a choke; point to the existing note

---------

Co-authored-by: Chevy One <316992723+chevyone@users.noreply.github.com>
…voice (repeat98#2505)

Co-authored-by: Chevy One <316992723+chevyone@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…rack base 0.8.6)

repeat98 (Jannik Aßfalg) agreed for his loader, upload and diagnostics layout (relayed by Nathaniel Pavel,
1 December 2026). The two short loader changes by other authors, twwwy's engine price check (2eed068) and
ex1010's image check hook (00ecaf5), are rewritten by Nathaniel Pavel with the same behaviour and interface:
engine_priced() is the old condition, and a nonzero refusal is still refused. The Python tools and the tests
under sdk/runtime keep GPL-3.0-or-later; nothing in a base compiles them.

The Octatrack base is built from these files (src/engine/assets/octatrack-base-sources.json), so this makes
the committed base stale: it is regenerated with the rest of base 0.8.6 (base/octatrack-next, repeat98#2473). This is
the same change as 0eb7a85e9, which repeat98#1934 left out so as not to force an Octatrack release.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…/runtime is GPL-2.0-or-later

Undoes the split of 66c9f23 (made only because sdk/runtime was GPL-3.0-or-later): runtime.c, modules.c and the
shared loader and upload sources move from base.json's dev back to common, so every variant's release base takes a
module on trial over the USB link, with Keep and Undo, as the Octatrack's does. link.c no longer needs
MODWERK_RUNTIME. Release identities plain 026181bd, voices a2a2a8ac, send-bus e34034d1, byte-identical to those
0eb7a85e9 built on 1 December; diag.h and modules.c keep GPL-2.0-or-later.

The release licence test now walks the staged sdk/runtime files too (and the copies the build stages under
../base/), instead of refusing any shared file: a GPL-3.0 header there fails it.

Needs the relicensing (5df9e84, merged here) to reach main with Octatrack base 0.8.6 (repeat98#2473) before it can.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
….md, the Status page's note, the 1 December record and changelog)

Found by the independent review. The dated changelog entries of 25 November and 1 December stay as they shipped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
npp1993 and others added 6 commits December 2, 2026 03:21
repeat98#2515 (lean engine: an idle voice's sample stream zeroed every block) changed perf-sample-voices.s, so the release
bases with the loader are rebuilt from the merged sources: plain 6496a83a, voices a0efb9e9, send-bus a981a3b0 (sizes
unchanged). base-next's loaderless 8b2663e1, dacd67fe and b37be733 are replaced; its README note on stock's audio
buffers is kept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
repeat98#2539 puts the FX track's lock words and the lock-list guard (fxguard.s) in every variant. With the runtime loader
in common too, the release bases are rebuilt: plain a7456fa8, voices 859c0626, send-bus 064c4cbb (base-next's
loaderless 442ca20c, b94a5ce2, 7e4ca6c9 replaced). The Rytm guide keeps both the inline-asm note from main and the
MAC scale-factor note from base-next.

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… (RL11-RL13)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@npp1993
npp1993 marked this pull request as ready for review December 3, 2026 00:30
@npp1993
npp1993 merged commit d68b51e into repeat98:base/analog-rytm-mkii-next Dec 3, 2026
2 of 5 checks passed
npp1993 added a commit that referenced this pull request Dec 3, 2026
… is on main

#2514 carries #2513's sdk/runtime relicense, which changes sources of the
Octatrack and Model:Cycles bases committed on main; those rebuilds ship with
Octatrack 0.8.6 (#2473). Reverted so the cumulative promotion #2554 can carry
the idle-voice fix, the FX lock words and Improved FX Routing 0.3.0 now.
Re-land by reverting this commit once 0.8.6 is on main.

This reverts commit d68b51e, reversing changes made to 988c534.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
npp1993 added a commit to npp1993/modwerk that referenced this pull request Dec 3, 2026
… re-land; rebuild send-bus 4926b8f2 and voices 5ec47ff1

repeat98#2402 changed the voices and send-bus sources (a voice's empty-knob box), and
this branch adds the runtime loader to every release base, so both pinned the
Rytm base packages. Rebuilt from the merged sources with machine:base --write:
plain stays a7456fa8 (byte-identical to repeat98#2514's), send-bus 4926b8f2 and voices
5ec47ff1 (+176 B .run each, one relocation each, as repeat98#2402 added). Packages,
import record, budgets, the identity table and the loader changelog follow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
npp1993 added a commit to npp1993/modwerk that referenced this pull request Dec 3, 2026
… re-land; rebuild plain e6787a4a, send-bus adaab166, voices 7d4e86b1

repeat98#2583 adds the delay and reverb sends' hook (ev_fx_sends) to every variant; this
branch adds the runtime loader to every release base. base.json keeps both (the
hook's subscription order and the loader's shared sdk/runtime files). Rebuilt from
the merged sources with machine:base --write (+104 B .run, two relocations each).
Packages, import record, budgets, the identity table and the loader changelog follow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
npp1993 added a commit to npp1993/modwerk that referenced this pull request Dec 4, 2026
… re-land; rebuild plain 6db855fd, send-bus 95f77227, voices 261a906b

repeat98#2590 (ev_params, a sound's 64 bits of mod storage, extra step locks; base 0.7.2)
and this branch (the runtime loader in every release base) both change base.json,
the guides and the pinned Rytm base packages. base.json, the recipe row and the
guides keep both; the release-loader text follows this branch. Also restores the
sends hook (repeat98#2583) in the base README's list, which the previous merge dropped.
Rebuilt with machine:base --write from the merged sources; packages, import
record, budgets, identity table, guide sizes and the loader changelog follow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
npp1993 added a commit to npp1993/modwerk that referenced this pull request Dec 4, 2026
… into the repeat98#2514 re-land

Base-next is back to its tree after repeat98#2583 (byte-identical to f440a89), so this
merge takes the re-land's tree from e1ffbea, built and checked on that base:
plain e6787a4a, send-bus adaab166, voices 7d4e86b1, import record pinned at
3221443. Keeps the base README's sends-hook line restored in e6cca49.

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