Skip to content

Improvement: Analog Rytm MKII cumulative base draft for 0.7.1 - #1934

Draft
repeat98 wants to merge 183 commits into
mainfrom
base/analog-rytm-mkii-next
Draft

repeat98 wants to merge 183 commits into
mainfrom
base/analog-rytm-mkii-next

Conversation

@repeat98

@repeat98 repeat98 commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

What was wrong or hard

  • Improvement: the site builds a Rytm set in the 3.7 MiB mod area on base 0.7.1 #1740 brings the larger Rytm mod area to the site builder with base 0.7.1. The maintainer’s decision on the 3.7 MiB proposal and the remaining release checks are tracked in Rytm: let the site's builder use the larger mod area (#1718) #1719.
  • Improvement: Rytm development bases no longer draw the link's armed mark #1932 removes the USB link’s armed mark, which appeared to run into the Rytm’s stop square. The development link still reports arming in GLOBAL > REMOTE CTRL and through rytm_link.py ident. The test runner ignores the old mark’s ten pixels when comparing screen references.
  • The lean engine (Nathaniel Pavel, @npp1993): Improved Performance's work moves into every variant of the base, as the owner asked when closing Improved Performance 0.2.0 for the Analog Rytm MKII: the screen redraws at half rate while the UI falls behind #1941 ("as long as it doesn't change anything user-facing"); the module left the library in Retire Improved Performance (Analog Rytm MKII): its work moves into the Rytm base #1944. The audio interrupt now leaves out work that cannot change a block: silent sample voices, idle sends, the delay and reverb once at rest, modulation passes that would change nothing, and parameters at rest. The output is stock's bit for bit, except that a delay or reverb tail below −114 dBFS outputs exact zero. It also adds CPU (blinking) or OVR (blinking in a dark box) in the status bar's lower right corner while the load is near or over its limit, and the screen redraws at half rate while the UI's queue is backed up. The code is the module's, with constants prefixed LE_ and globals le_ so they cannot clash with the base's own names. It is in base/perf-*.{s,c} under common in base.json. New identities: send-bus 20fbc98f, voices ee44bde6, plain 5ca4480f (+3.9 KB .run in each).
  • Centred dials of digital voices (Nathaniel Pavel, @npp1993): dials() gave every centred knob of a digital voice machine (Analog BD's TUN, LOW and HI) stock BD CLASSIC TUN's dial, whose draw (0x400ff9c0) scales (v - 32) × 2 for TUN's 32..96. On a 0..127 knob the dial sat on its end stop for the outer 32 values each side, and TUN's count factor moved a slow detent a sixteenth of a value, which the voice (whole values) cannot hear. Now every knob but LEV takes the plain dial's factors, profile and callbacks, and a centred one LFO DEP's centred dial group (draw 0x400fc0f8, unscaled). Stored values and the sound are unchanged. Rebuilt on the lean engine: send-bus 46e2e4f6, voices e1f399a9 (+20 B .run each), plain 5ca4480f unchanged; packages pinned at 72ad35ba5. Changelog: changelog/2026-11-21-rytm-centred-dials.md.
  • Pad pressure (Nathaniel Pavel, @npp1993): Pad Pressure Fix's three fixes join every variant, always on, with no setting, and the module leaves the library in the same change (as Improved Performance did in Retire Improved Performance (Analog Rytm MKII): its work moves into the Rytm base #1944). During a retrig roll (RTRG held or ALWAYS ON) a held pad's pressure now also reaches the sound's AFTERTOUCH targets and MIDI poly pressure; with RTRG held the RETRIG menu passes pressure on (PERF pads move the performance); CHROMATIC pads send poly pressure on the note they played, not 24 semitones up. With VEL.CUR OFF one squeeze moves both the roll's velocity and the aftertouch, which goes past stock; a setting may come later. The sites, bytes and code are the module's 0.2.0 (base/pad-pressure.s, 4 sites in common). New identities: send-bus b485034b, voices 1a8a1488, plain 2977431b (+44 B .run each); packages pinned at 6c46e1729. The linker refuses the module beside this base (the same sites), so the retirement ships with it: module, packages, pins, release notes and its planBuild test removed; chromatic-aftertouch-fix stays reserved. Changelog: changelog/2026-11-22-rytm-base-pad-pressure.md, changelog/2026-11-22-rytm-retire-pad-pressure-fix.md.
  • The link plays pads (development bases only): a pad request posts a pad's down, pressure and up as the panel does, and the test runner gets a pad step and note and poly-pressure MIDI checks, so pad and pressure behaviour can be tested hands off. Six cases tools/cases/pad-pressure-*.case. Changelog: changelog/2026-11-22-rytm-link-pads.md.
  • The USB link in every base (Nathaniel Pavel, @npp1993): every variant, release or development, now answers the link's read-only requests, as the Octatrack's and the Model:Cycles' bases do: ident with the set identity (CRC32 and length of the .run block, taken at the boot site; link-image.mjs prints the same as run), load (0x23, the audio block's share of its period per half second), diag (0x22) and log (0x24), a diagnostics log in the Octatrack's layout (version 2) from the Model:Cycles' design (Model:Cycles base: core-mc 0.3 and a key-LED hook #2077). Keys, pads, turns, the screen, memory reads, the remote YES and the RAM boot stay in development bases (MODWERK_DEV, link-dev.s); a release base answers them bad request. The router and boot sites move from dev to common; mw_link_carry stays dev-only, so a release base's storage layout is unchanged. New identities: send-bus 03902b3a, voices 5f84b65d, plain 096b0d40 (+3,848 B .run, +6,928 B .bss, 6,148 of it the log, +2 sites each); packages pinned once this lands. First step of the machine page's USB link piece (stack.link: started); the site's and the MCP's side follow on the Model:Cycles' host code. Changelog: changelog/2026-11-25-rytm-link-every-base.md.
  • The Rytm behind the MCP's device tools (Nathaniel Pavel, @npp1993): with --elektron-midi, when no Model:Cycles answers, device_status, device_load and device_log read an Analog Rytm MKII over its link: the identity (label, OS build, release or development, arm and RAM boot), the set identity and the .syx in --elektron-images it matches (the .run block before the storage lockfile), the audio load and the diagnostics log. The trial tools say the Rytm has no runtime loader yet. src/engine/elektron/rytm-link.ts; the log reader is shared with the Model:Cycles (readLinkLog, which now reads again when the log's seq moved during the read). Changelog: changelog/2026-11-25-rytm-mcp-device-tools.md. stack.tools and stack.diagnostics: started.
  • Send over USB for the Rytm (Nathaniel Pavel, @npp1993; beta testers only): the Rytm joins USB_UPGRADE_PORTS, so its install guide offers the Model:Cycles' send dialog; only YES on the unit installs. The Rytm's downloads are open to everyone, so the button is gated on hasBetaUi (usbSendPort). A block refused with status 2 (the unit in its OS UPGRADE menu) now says to leave every menu. Changelog: changelog/2026-11-25-rytm-send-over-usb.md. stack.flash: started.
  • The link costs nothing in the audio interrupt (Nathaniel Pavel, @npp1993, at the user's request): load and the diagnostics log now run on the UI task, from the sums the lean engine's CPU mark already keeps in the interrupt; the mark adds the look's dearest block (13 instructions a block instead of 10), and the link's own render handler (47 instructions and a call) and the log's block step (81) are gone. sdk/tests/test_machine_base.py refuses a link, load or log handler on the render events. The log's gap between audio blocks is 0 since, and a FREEZE is logged when the UI comes back. New identities: send-bus c88a39b4, voices 0999d0db, plain 1f06d2b4 (smaller than before: about −450 B .run, −80 B .bss); packages pinned once this lands.
  • The runtime loader in every base (Nathaniel Pavel, @npp1993): the Octatrack's runtime loader and upload controller (sdk/runtime, shared as on the Model:Cycles), the Rytm's glue base/runtime.c (OS 1.74 facts read from the code: the kernel's switch, ready lists and sixteen task inits, CACR/ACR0, the audio interrupt at level 5, stock code below 0x402ce000) and the Model:Cycles' link transport (modules.c, the lapse in the Rytm's UI ticks). Modules load to RAM on trial over the link (up_part 0x31, up_run 0x32, mods 0x33), then Keep or Undo; a power cycle restores the flashed set; refused while a pattern plays. rytm_link.py try/keep/undo/remove/mods, the developer MCP's trial tools on a Rytm (withElektron), elekloader/examples/hello.c. Nothing in the audio interrupt; the UI hooks return after one test while no module is live. About 32 KB .run and 108 KB .bss a base (64 KiB pool, 32 KiB staging). Identities: send-bus 1604081c, voices bb463068, plain 52ba262e; packages pinned once this lands. Changelog: changelog/2026-11-25-rytm-runtime-loader.md. stack.loader: started.

How it was checked

  • Improvement: the site builds a Rytm set in the 3.7 MiB mod area on base 0.7.1 #1740 records the source builds, compatibility checks and the OG01 and ST01 unit runs on OS 1.74. Those runs establish the new start address and cover a site-built set after a power cycle. A set crossing the old end and the remaining release cases in Rytm: let the site's builder use the larger mod area (#1718) #1719 are pending.
  • For Improvement: Rytm development bases no longer draw the link's armed mark #1932, the submitter compared the 0.7 development builds 7ee5867d and 6e2b69e6 in rytm-emu. ident reported both builds armed and the old notch disappeared on 6e2b69e6. All ten Rytm runner tests passed on the reviewed patch.
  • The lean engine: in rytm-emu, each variant alone on stock OS 1.74 was run against the same image with the 19 lean-engine sites put back to stock. Parameter words, smoother states, control frames, voice records, voice gains and the DAC output were identical in every block (plain 69,552, send-bus 69,537, voices 69,552 blocks). The interrupt ran about 47 % fewer instructions a block. The renames leave each variant's code sections and relocations unchanged. Two independent code reviews were run: of the fold-in, and of the blinking marks. sdk/tests/test_machine_base.py passes, and npm run pr:ready passed on this cumulative branch.

Tested on a unit: the submitter RAM-booted CB01 (image CRC 848ca70c, send-bus development base 4d3ee2ed, source 612d452) on an Analog Rytm MKII with stock OS 1.74. The stop and play icons appeared without the notch. The link armed at boot, refused a key after disarm, and re-armed through GLOBAL > REMOTE CTRL. A power cycle returned to the flashed CM02 image. Hardware test record

The CB01 run covered the development base by itself. Flashing CB01, adding modules, and reading the OFF state on the menu row are untested. A rapid DOWN sequence triggered the human-presence guard once without a known panel press. A repeat with 200 ms between keys passed. The cause remains open.

Tested on a unit (the lean engine): Nathaniel Pavel (@npp1993), Analog Rytm MKII, OS 1.74, development images RAM-booted over the link beside 17 modules, the voices variant as a development base. Full record: docs/verification/2026-11-21-rytm-base-lean-engine.md.

  • LD01 (CRC aa497278), on KIT 1, 120 BPM, A01. Load while playing was 79.2 % (85.8 % without the lean engine). Stopped before the first play, it was 48.8 % (76.7 %).
  • Wake-up: 10 cycles of STOP, 15 s rest, PLAY, with no fault (highest read 81.6 % in the first 3 s).
  • Soak: 30 min, 57 checks, all armed, highest read 82.0 %.
  • Hands on: live recording, kit and project loads, and the delay and reverb tails all behaved normally.
  • USB audio (Overbridge, a 12-channel tone into the unit while capturing its output): the load rose from 84.9 % to 91.5 % on a heavier pattern. OVR showed, and the audio was clean at the unit and in the captures.
  • LB02 (a test switch cycling the marks): every corner state as drawn.
  • LD02 (CRC 320ef14c): CPU and OVR blink under real load.

Open findings for the lean engine:

  • After the first play, the stopped load stays near 77 % instead of resting. The sound is unaffected and the cause is not found.
  • Under USB streaming at about 91 % load, the UI queue peaked at 218 and then held at 9 to 10. The share the blink's redraws add was not measured.
  • OVR blinks more slowly than CPU while the screen rate is halved. The tester chose to keep this.

Tested on a unit (centred dials): Nathaniel Pavel (@npp1993), Analog Rytm MKII, OS 1.74, 21 November 2026: CD02 (sha256 3ea8d38b…, the fix on a 0.7 development base with the link, before the lean engine, + Analog BD 0.2.2), flashed, three rig cases: each of TUN, LOW, HI draws a different dial at 0 and 8 and at 119 and 127; one step of TUN and of DEC moves the stored value by exactly one (0x4000 to 0x4100). In rytm-emu the same cases fail on CD00 (the same base without the fix): the dials sit on one stop, a TUN step moves 4/256. The rebuilt voices variant e1f399a9 (KE03, rytm-emu): Analog BD's emu_check passes, TUN's dial turns from -64 to +63. Not run: the rebuilt 46e2e4f6 / e1f399a9 packages on a unit; FUNC + turn on a centred knob (emulator: same as before).

Tested on a unit (pad pressure): the test rig on Nathaniel Pavel's (@npp1993) Analog Rytm MKII, OS 1.74, 22 November 2026, hands off: PD03 (image CRC d66c2665, the send-bus variant with the fix as a development base, with the link's pad), RAM-booted. The six pad-pressure cases (plain pad incl. full pressure, RTRG held with VEL.CUR OFF and 1, ALWAYS ON with both, CHROMATIC incl. UP and release, PERF with RTRG held) read the aftertouch word, the roll's velocity, the performance amount and USB MIDI out: 6 pass, twice. In rytm-emu the same image without the four sites fails 5 of 6 (the plain-pad control passes). Emulator A/B: each new variant alone gives base-next + the module 0.2.0's counts and MIDI bytes in 13 to 15 pressure cases, alone and beside Silent Pad+Trig, Live Rec Retrig Fix, QPER Live Rec, Control In Actions and Quick Mod Assign; every other Rytm library module links beside the new send-bus base. Three independent reviews (fold-in, retirement, link and runner); their fixes are in. Record: docs/verification/2026-11-22-rytm-base-pad-pressure.md.

Tested on a unit (the link in every base): the test rig on Nathaniel Pavel's (@npp1993) Analog Rytm MKII, OS 1.74, 25 November 2026, hands off, flash FXCJ. Images from a private tree holding the set the unit runs (FXCJ reproduced byte for byte first) plus this change; the private modules are not in this branch. SR01 (image CRC 5ae21e42, voices development base with the change, storage layout unchanged), RAM-booted: ident's set identity 91b73d51, 207,400 B, as link-image.mjs printed; load 59.2 % stopped, 68.4 % playing; the log's START, BASE and first five-minute record (mean 62.3 %, dearest block 76.5 %, longest block gap 742 µs); rig cases link-global-menu, link-func-nudge, pad-pressure-pad-plain pass. SR02 (the same set on the release voices base), RAM-booted from SR01: set identity 600cdffc, 202,044 B, as printed; load and the log read; key, pad, enc, release, confirm, ramboot, disarm, screen, mem all bad request; a power cycle brought FXCJ back. rytm-emu: the same on a release send-bus image with Filter Hz, and the three cases on its development twin. Host tests: the log's structs against the Octatrack's, diag.c and load.c on the host (a load hot from boot logs HOT), every variant's parts. An independent code review's five findings are fixed (HOT from boot, the log's nonce, torn log reads, the registry, stale references). Record: docs/verification/2026-11-25-rytm-link-every-base.md.

Tested on a unit (MCP device tools and Send over USB): Nathaniel Pavel's (@npp1993) Analog Rytm MKII, OS 1.74, 25 November 2026. Through the MCP (--elektron-midi): on a RAM-booted development image from before the link change, device_status read the identity with no set identity, and load and log were unsupported; on SR01 (RAM-booted), the set identity 91b73d51 matched Rytm-SR01-os1.74.syx in --elektron-images, device_load 58.5 %, device_log START and BASE, device_review refused (no loader). The page's sender (usb-upgrade.ts, run from the computer) sent SR01, 958 blocks, in 7.0 s to UPGRADE OS NOW?; NO there left SR01 running (same set identity, no restart): no flash write. Not run: a send answered YES (a flash from the page), the dialog in a browser. Tests: scripts/rytm-device.test.mjs (a fake Rytm: release and development idents, older bases, a log changing mid-read, both units connected, an MKI port), usb-upgrade.test.ts (the beta gate, port names), os-upgrade.test.ts (status 2). Two independent reviews; their fixes are in.

Tested on a unit (the link out of the audio interrupt): the test rig on Nathaniel Pavel's MKII, 25 November 2026, RAM boots over FXCJ. The combo set drops QPER Live Rec (retired into Improved Modulation 0.5.0 on this branch). SR05 (the rework, development base): set identity as printed, the three link cases pass, the log START and BASE. A/B at equal uptime with the same modules: SR07 (the same tree with the rework reverted) 59.0 % stopped, 61.6 to 61.9 % playing; SR05 58.8 to 58.9 % and 61.4 to 61.6 % (the old handler ran after the core's measurement, so the reading did not hold all its cost; the instruction count is the measure). SR06 (release base): set identity as printed, load 58.6 %, the log, every development request refused. Built before the review's last fix (a block's length taken only from a normal look), which the host test covers; three independent reviews, their fixes in.

Tested on a unit (the runtime loader): the test rig on Nathaniel Pavel's MKII, 25 November 2026, RAM boots over FXCJ, scratch project. SR08 (the combo set on the voices development base with the loader; 945 KB of the mod area and 1.06 MB of flash left): the example module on trial in 0.9 s, its square on the screen (x 125, rows 2-3), Undo removed it, a trial and Keep kept it; a removal while a pattern played refused (unsafe); every 124-byte upload part arrived whole. SR09 (release base): a trial and Undo. rytm-emu: the same trial, screen change and Undo. Host: the MCP's review, trial, Undo and Keep on a Rytm through the base's own loader compiled for the computer. One independent review (every OS 1.74 fact confirmed against the code); its fixes are in. Record: docs/verification/2026-11-25-rytm-runtime-loader.md.

Edge cases

Case Why this change makes it a risk How run Result
Old-layout flashed base RAM-boots a larger set The new set starts below the old area #1740 reports OG01 booted from the flashed 0.7 gate on a Rytm MKII with OS 1.74 pass
Site-built set starts at the new address and boots after a power cycle The site chooses the new area from the base version #1740 reports a flash and reboot of ST01, release send-bus base eb2ea64d pass
Set crosses the previous upper boundary and completes the #1719 release checks The wider area needs evidence on hardware Pending hardware qualification not run: the broader release evidence is pending
Header while stopped and playing, link arming, RAM-boot rollback The draw subscriber was removed from the development base CB01 RAM boot on MKII, OS 1.74. Checked both transport states, ident, the refused key after disarm, manual re-arm and power-cycle return to CM02 pass
Legacy screen reference with the notch Old references should still compare and real changes outside the mark should be detected sdk/tests/test_rytm_cases.py pass
Output of every variant against stock The lean engine replaces stock loops and skips work rytm-emu twins of plain, send-bus and voices against the same image with the sites at stock, every block compared pass
First block after silence or STOP A part at rest must run stock's work at once LD01: 10 STOP, rest, PLAY cycles over the link, load and armed state read after each pass
Long play with transport changes A part could stick at rest or wake late LD01: 30 min soak, STOP and PLAY every 5 min, 57 checks pass
Live recording, kit and project loads, delay and reverb tails Loads and recording change many parameters at once LD01 by hand, as the tester reported pass
USB audio streaming at high load Overbridge adds load and the marks must come up LD01 and LD02: 12-channel tone in, capture out, load and UI queue read pass
CPU and OVR drawing on the bar, and the voice name beneath The marks paint over the bar's right end LB02 test switch, 160 screenshots; LD02 under real load pass
Stopped load after the first play Parts should rest again after playing LD01 read 90 s after STOP fail: stays near 77 %, sound unaffected, cause not found
Centred knobs reach both ends; one step a detent The dial and count factor change for TUN, LOW, HI Rig on CD02 (flashed MKII): dial at 0 vs 8, 119 vs 127; TUN and DEC one step pass
Send-bus and plain variants on a unit, a flashed release image, a second unit Only the voices variant ran on hardware Not run not run: emulator twins only for these variants
Pad pressure during retrig rolls, CHROMATIC and PERF Four stock sites in every variant Rig on PD03 (MKII from RAM): six cases, plus rytm-emu A/B of every variant pass
A saved set that holds Pad Pressure Fix The module leaves the library with this base Not run not run: the retirement path every retired module takes (#1650, #1944)
Pad pressure on a flashed release image, the plain and voices variants on a unit Only the send-bus development base ran on hardware Not run not run: emulator A/B only for these
A release base asked for keys, pads, turns, the screen, memory, CONFIRM or RAMBOOT The router now runs in every base SR02 on the unit: each request pass: bad request
The set identity matches the image A host tells builds apart by it SR01, SR02 on the unit, LK01 in rytm-emu, against link-image.mjs's run pass
The development link still drives the unit link.c and link.s were split SR01: three rig cases pass
A flashed release base, the plain and send-bus variants on a unit, boot time the CRC adds Only RAM-booted voices images ran Not run not run: the unit runs the voices combo from flash; a flashed release base waits for the 0.7.1 release qualification (#1719), and RAM boots came back in 11 to 14 s as before
A member without beta access on the Rytm's build page The Rytm's downloads are open to all usbSendPort tests; production USB_LINK is false pass: no Send over USB
An MKI or Analog Four port, or a Windows port name The sender finds the unit by its port name namesModel tests on seven names pass
A send answered YES (a flash from the page) Only NO was answered on the unit Not run not run: a flash write; waits for the owner's or tester's go
An idle unit pays for the link in the audio interrupt The every-base link and log are new work Code: no link handler on the render events (test); instruction count; unit A/B SR07 vs SR05 pass: +3 instructions a block in the mark, nothing else
A trial while a pattern plays Patching stock code under a playing sequencer SR08 on the unit: a removal with PLAY on pass: refused (unsafe), the module stays
A full combo set with the loader's 108 KB Every base grows SR08 link-image: 945 KB left, flash 1.06 MB, unpacked under the RAM boot's limit pass
A module with stock-code sites, a trial lapse, a power cycle after Keep on a unit The example has no sites; lapse and power cycle are by design Not run not run: next unit run; host tests cover sites and the lapse

Guides: #1932 updates the Rytm link and test runner guides to describe the arming control and compatibility with existing screen references. #1740 updates the Rytm build and memory-area documentation. For the lean engine, the base README lacked a section on it: sdk/machines/analog-rytm-mkii/elekloader/README.md now has "Lean engine" (its parts, the bit-exact statement and its one exception, the marks and the screen rate), and the variant sizes there and in machine.json are current. For pad pressure, the base README gains "Pad pressure" (its sites, what goes past stock), and the Rytm link and runner guides (LINK.md, TEST_RUNNER.md) describe the new pad request and step; they lacked any way to test pads. For the link in every base, LINK.md described a development-only link: it now has "Every base, and development bases", the set identity and the log; the machine README and the recipe's Rytm row said release bases carry no link.

🤖 Generated with Claude Code

npp1993 and others added 10 commits November 18, 2026 10:35
…se 0.7.1

The site's builder links through elekloader's kit, whose Analog Rytm MKII
profile had the 128 KiB at 0x47be0000 alone, so a library set could not use
the room #1718 opened. The kit picks a larger area by core version only
(coreDdr), so, as the owner decided on #1719:

- the kit's src/devices.ts now re-exports src/engine/elektron/kit-devices.ts,
  the upstream file with Modwerk's lines marked MODWERK: the Rytm's
  coreDdr [['0.7.1', [0x47b50000, 0x47f00000]]]. It is a KIT_REPLACEMENTS
  entry; the lock keeps the upstream hash and a test holds the rest to it.
- Modwerk's base is 0.7.1 (base.json's version; the imported mod.json stays
  exact). Its three variants differ from 0.7's in the version and, on
  send-bus, in MODS_END (0x47f00000). Sets on 0.7 packages build byte for
  byte as before (three sets compared through the kit with the stock OS).
- linkMods reads the same coreDdr from the kit's profile, so link-image and
  the site place a set alike; ddrMore stays for 0.7 development bases only.
- machine.json's shared mod memory, the configurator's estimate and meter
  (MiB from 1 MiB), interface.json's memory area, guides and notices follow.
  Modules still ask for the 0.7 interface.

Refs #1719, #1718

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ite-larger-mod-area

# Conflicts:
#	src/engine/elekloader/machine-build.ts
Improvement: the site builds a Rytm set in the 3.7 MiB mod area on base 0.7.1
The USB link drew a 2 x 5 black notch at x 126-127 of the header bar while
armed. On the unit it ran into stock's stop square and read as a drawing
fault; no software reads it (ident reports armed) and the GLOBAL row is
what a person sees. The draw hook, its function and its FILLRECT define
go. The test runner's screen compares skip those 10 pixels so references
recorded with the mark still pass. Also moves test_rytm_cases.py's
__main__ block to the end, so its last test runs under discovery.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 9f4ce27)
…d armed mark is not reported as replaced

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 5d21330)
@npp1993

npp1993 commented Nov 21, 2026 •

Copy link
Copy Markdown
Collaborator

Hardware test record: armed mark removal (Analog Rytm MKII, 21 Nov 2026)

Build

  • Source revision: base/analog-rytm-mkii-next at 612d452
  • Stock OS 1.74 (ident os_build 0176); the flash holds CM02.
  • npm run machine:base -- analog-rytm-mkii --stock …OS1.74.syx --dev: core 0.7.1, send-bus dev 4d3ee2edcf2685286626d853e4e734e4c668ad965209a21c54dd10f483e318d9 (voices dev 8b2c4dba, plain dev 862adf7f).
  • Release variants from the same tree match base-binding.json (send-bus eb2ea64d, voices 5402f9a7, plain 13a1c204).
  • Test image CB01: node scripts/link-image.mjs --version CB01 --elemod modwerk-base-analog-rytm-mkii-dev-4d3ee2ed.elemod, no modules, image crc 848ca70c.

On the unit (USB, rytm_link.py)

  • RAM boot: rytm_link.py ramboot CB01.syx booted from RAM, image crc 848ca70c, flash untouched.
  • Armed at boot: ident right after the boot said armed 1, human 0, with no panel presses.
  • Transport header, stopped: x 126-127, y 2-6 are 10 of 10 lit, and the stop square stands alone. No notch.
  • Transport header, playing (PLAY over the link, ident playing 1): 10 of 10 lit, and the play triangle stands alone. Stopped again: the same.
  • rytm_link.py disarm: ident armed 0, and the next key was refused with "not armed (GLOBAL > REMOTE CTRL)".
  • Re-armed by hand on GLOBAL > REMOTE CTRL (YES on the row): ident armed 1. Then GLOBAL opened over the link, stepped down to the last row, which reads REMOTE CTRL: ON.
  • Power cycle: the unit came back on the flashed OS (boot_text "the flashed OS, no RAM boot asked", label CM02, image crc 0), armed 1 at boot.

Not run or not explained

  • Not run: a flash of a CB01 image (RAM boot only), modules on top of the base, and the OFF state as shown on the row itself (only ident and the refused key show it).
  • Seen once, not explained: a fast DOWN*12 run in GLOBAL stopped with "a person is at the unit" (human 1); no panel press is known for that moment. The same walk with 200 ms between keys ran clean.

Tested by Nathaniel Pavel (@npp1993).

…iant

Every variant (common) now leaves out the audio interrupt's work that
cannot change a block: silent sample voices, idle sends, the delay and
reverb at rest, modulation passes that would be the identity, smoothing
of parameters at rest, unchanged compressor control words and the USB
input while nothing streams. Output is stock's bit for bit except a
delay or reverb tail below -114 dBFS after a full memory length without
input. CPU/OVR shows in the status bar's lower right corner near or
over the limit, and the frame step runs at half rate while more than 8
messages wait for the UI.

The sources are the Improved Performance module's (#1937, 0.2.0 on
#1941), retired in #1944, with every assembler constant, switch and C
define prefixed LE_ and every global le_: base.json's dev already
defines UI_QUEUE_AT with another meaning, which test_machine_base
caught. Code sections and relocations are unchanged by the renames.

rytm-emu, zero time, each variant alone against the same image with
the 19 lean sites put back to stock: plain 69,552, send-bus 69,537 and
voices 69,552 blocks, parameters, smoother states, control frames,
voice records, gains and the DAC output identical; the handler ran
about 31,100 fewer instructions a block (47 %).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
npp1993 and others added 11 commits November 21, 2026 12:06
…1 on a unit)

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… ee44bde6, plain 5ca4480f)

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

The base gave every centred knob of a digital voice machine stock BD CLASSIC
TUN's dial. Its draw (0x400ff9c0) scales (v - 32) * 2 for TUN's 32..96, so on
a 0..127 knob the dial sat at its stops for the outer 32 values each side
(Analog BD's TUN, LOW, HI). TUN's count factor also stepped a sixteenth of a
value a detent, which the voice (whole values) cannot hear.

dials() now gives every knob but LEV the plain dial's factors, profile and
callbacks, and a centred knob LFO DEP's centred dial group (draw 0x400fc0f8,
unscaled). Stored values and the sound are unchanged. New identities:
send-bus 9d2e0667, voices 2f72465c (plain unchanged), published as before.

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>
… claude/rytm-base-centred-dials

# Conflicts:
#	sdk/imports/elekloader-modwerk-base-analog-rytm-mkii-2026-11-06.json
#	sdk/imports/packages/modwerk-base-analog-rytm-mkii/modwerk-base-analog-rytm-mkii-20fbc98f.elemod
#	sdk/imports/packages/modwerk-base-analog-rytm-mkii/modwerk-base-analog-rytm-mkii-2f72465c.elemod
#	sdk/imports/packages/modwerk-base-analog-rytm-mkii/modwerk-base-analog-rytm-mkii-5402f9a7.elemod
#	sdk/imports/packages/modwerk-base-analog-rytm-mkii/modwerk-base-analog-rytm-mkii-9d2e0667.elemod
#	sdk/imports/packages/modwerk-base-analog-rytm-mkii/modwerk-base-analog-rytm-mkii-eb2ea64d.elemod
#	sdk/imports/packages/modwerk-base-analog-rytm-mkii/modwerk-base-analog-rytm-mkii-ee44bde6.elemod
#	sdk/machines/analog-rytm-mkii/base-binding.json
#	sdk/machines/analog-rytm-mkii/elekloader/README.md
#	sdk/machines/analog-rytm-mkii/machine.json
#	src/devices/machines.generated.json
#	vendor/elekloader/catalog/modwerk-base-analog-rytm-mkii-20fbc98f.elemod
#	vendor/elekloader/catalog/modwerk-base-analog-rytm-mkii-2f72465c.elemod
#	vendor/elekloader/catalog/modwerk-base-analog-rytm-mkii-5402f9a7.elemod
#	vendor/elekloader/catalog/modwerk-base-analog-rytm-mkii-9d2e0667.elemod
#	vendor/elekloader/catalog/modwerk-base-analog-rytm-mkii-eb2ea64d.elemod
#	vendor/elekloader/catalog/modwerk-base-analog-rytm-mkii-ee44bde6.elemod
…46e2e4f6, voices e1f399a9)

Merged base/analog-rytm-mkii-next (the lean engine) under the dials()
fix and republished the two variants that carry the digital voices;
plain 5ca4480f is unchanged. Both grow 20 bytes of .run. The two
changed packages' source commit is zeros until they are pinned.
rytm-emu (KE03: voices e1f399a9 + Analog BD 0.2.1): emu_check passes,
TUN's dial turns from -64 to +63.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
npp1993 and others added 3 commits November 22, 2026 20:57
…iant

Every variant (common) now carries the Pad Pressure Fix module's 0.2.0
fixes, always on, with no setting: during a retrig roll (RTRG held or
ALWAYS ON) a held pad's pressure also reaches the sound's aftertouch and
MIDI poly pressure; with RTRG held the RETRIG menu passes it on (PERF
pads move the performance); CHROMATIC pads send poly pressure on the
note they played. With VEL.CUR OFF one squeeze moves both the roll's
velocity and the aftertouch, which goes past stock; a setting may come
later.

The sites, bytes, guards and code are the module's (base/pad-pressure.s,
symbol mw_pad_pressure_out, constants MW_PP_*). +44 B .run and +4 sites
per variant: send-bus b485034b, voices 1a8a1488, plain 2977431b. The
same toolchain rebuilds the previous identities from the previous
source. Package source commits are zeros until pinned.

rytm-emu 2ac0f1f, 13 pressure cases (plain, RTRG held and ALWAYS ON with
VEL.CUR OFF and 1, CHROMATIC incl. UP and release, PERF): each new
variant alone gives base-next + the module's counts and MIDI bytes
exactly; beside Silent Pad+Trig, Live Rec Retrig Fix, QPER Live Rec,
Control In Actions and Quick Mod Assign (plus LIVE RECORDING) too. The
module is refused beside the new base by the linker (same sites).

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

The base carries all three fixes in every variant, always on
(changelog/2026-11-22-rytm-base-pad-pressure.md on the base draft), and
the linker refuses the module beside that base, since both patch the
same four sites. So the module, its import records and packages, the
vendored .elemod, its release notes and its planBuild test leave the
library, as Improved Performance did (#1944). The id
chromatic-aftertouch-fix stays reserved. The 0.2.0 verification record
links TESTING.md as merged and notes the retirement.

Merge only together with or after the base release that carries the
fixes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
npp1993 and others added 8 commits November 25, 2026 21:03
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…'s (a regrouped resend counts once); the ten-minute page test with room

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

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ii-next' into claude/improved-modulation-0.7.0
…he manifest's

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…README fix (the package is byte-identical)

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@npp1993

npp1993 commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator

Needs @repeat98: a consent text change rides on base-next. Not urgent until base-next ships.

The Rytm's diagnostics stack piece is now on this branch: a member who shares diagnostics also sends their Analog Rytm MKII's own log (load, overloads, freezes, the last 16 keys at such a moment) from its page, Your Analog Rytm, with the firmware set's CRC32 and size. It goes through the Octatrack's existing collector, endpoint and tables. No migration; the reports carry machine: 'analog-rytm-mkii' and set and diagnostics:pull lists them apart.

Because that is a new purpose, the consent version moves to 2026-11-25.1 with one added paragraph (EN and DE on the privacy page):

An Analog Rytm MKII with a Modwerk base keeps the same kind of log: its load and whether it was playing, overloads and freezes, and at such a moment the last 16 keys pressed. While its page Your Analog Rytm is open, the site sends that log with the checksum and size of the firmware set the unit runs.

Following your 19 November precedent, the new text covers members already sharing (nobody is asked again). Please confirm the text and that carry-over before base-next ships, or tell me to change either. The code marks it "for the owner to confirm" until then.

Details
  • Contract: src/community/octatrack-diagnostics-contract.ts (DIAGNOSTIC_LOG_MACHINES, accepted versions 25.1 and 19.1).
  • Server: validateDiagnostic takes machine/set only on a device_log in phase ready, with no base, active, error, result or refusal.
  • Page: src/components/ModelCyclesUnit.tsx reads the log only while the member shares (and the browser sends no privacy signal), at the first reading and every ten minutes, never beside the status read.
  • Tests: server fields, the collector (consent, marks apart from the Octatrack's), the page, diagnostics:pull. Two independent reviews; findings fixed.
  • Not run on a unit end to end: the unit was on another session's image. The log format is the one the MCP read from SR01 and SR09.

npp1993 and others added 3 commits November 25, 2026 22:04
…flashed from the page, its Status page and a shared log on a unit)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… parameter row a UI tick (a whole looped scene take in one call, about 1,200 lock writes, left the UI task waiting in rytm-emu, in 0.6.0 too); rytm-emu Q709

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…k values straight into the lock matrix with one stock call a row, counts stock's notices against a budget a go (lock trigs nine each, a lengthened track 258) and goes on in the next tick past it; with a track to lengthen while playing the write waits for the loop's start (APPLY AT LOOP START), so its locks stay on the pattern's steps; top_view stops at the list's end; the scene lane's wipe flag read and cleared with the block held off; rytm-emu Q711

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@npp1993

npp1993 commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator

@repeat98 The Rytm's stack is ready for your review on this branch. Six of the seven pieces are done with unit evidence; the seventh, the base itself, is your release of this draft.

What works, on Nathaniel Pavel's MKII (OS 1.74):

  • Link in every base (SysEx over USB MIDI): identity with the set identity, the audio load, and a diagnostics log in the Octatrack's layout. It costs nothing when idle: the log and the load run on the UI task, not in the audio interrupt. Development bases add keys, screen, memory and RAM boot.
  • Runtime loader in every base: a module on trial, Keep and Undo over USB, refused while playing.
  • Flash from the site: the machine page builds the base from the owner's OS file and sends it over USB; YES on the unit installs it.
  • Status page: Your Analog Rytm (beta) shows the base, the set, live modules and the load (it is Model:Cycles: a Status page over the link #2131's page, generalized for both machines).
  • Diagnostics: a member who shares sends the Rytm's own log from that page.
  • Tools: the developer MCP's device_status, device_load, device_log and the trial tools work on a Rytm.

What you need to decide or do:

  1. Consent text (asked above): 2026-11-25.1 adds the Rytm's log and, as you did on 19 November, covers members already sharing. Please confirm or change it.
  2. Test this draft on your unit and merge it when you're happy. After that I mark base done and the Rytm's stack is complete.

What did not run on a unit: a shared log with a five-minute load record or a HOT/FREEZE in it (only START/BASE so far); a signed-in member's share (the visitor's path ran); a page flash with modules in the set; the production site.

Evidence and where to look
  • Records: docs/verification/2026-11-25-rytm-link-every-base.md, docs/verification/2026-11-25-rytm-runtime-loader.md, docs/verification/2026-11-25-rytm-stack-from-the-site.md.
  • Status table: docs/MACHINE_RECIPE.md (Analog Rytm MKII row), sdk/machines/analog-rytm-mkii/machine.json (stack).
  • Machine guide: sdk/machines/analog-rytm-mkii/README.md, link protocol sdk/machines/analog-rytm-mkii/LINK.md.
  • Each piece had an independent code review before it was pushed; findings were fixed.
  • The site test ran on a local build of this branch (site and community API, local database), in Chrome, with the unit flashed from the page and then restored to its previous set.

npp1993 and others added 10 commits November 25, 2026 23:06
…CORD + YES job (a loop start is a whole step back; a track is lengthened only while the loop is within its length, else one more loop's wait; a lock edit, another kit or pattern ends a job early and says so; the amounts at rest before the first row); rytm-emu Q712

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…limitations, changelog and TESTING for the rewrite; screenshots from Q713 (the RECORD + YES one shows APPLY AT LOOP START); evidence (R707 and R712 on the author's unit, rig and hand)

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ource (pinned toolchain)

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ii-next' into claude/improved-modulation-0.7.0
Improved Modulation 0.7.0: several QPER links, FIX/CHRO/LFO + PLAY, quantized scene changes, RECORD + YES rewritten
… history lives in the contract's comment)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…main, Octatrack base 0.8.2): the Rytm's unit page and diagnostics fields kept, main's beta gate on machine pages carried to the ladder link

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

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

repeat98 commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner Author

@npp1993 thanks, this is a big step: the whole Rytm stack on one branch, with unit evidence for each piece. I read it through, with a second review of the loader and link code. It can't merge yet. Below is everything it still needs, so the next pass can finish it.

Where it stands: everything you listed works on your MKII. Two things block the merge: one loader bug, and the release checks from #1719, which haven't run on the final build yet. Musically nothing changes for players until this ships. You're the one to act on 3 to 5. I'll merge once they're done.

  1. Merge main and 2. the APP_DEVELOPMENT.md size: both already done in fb69f12ad and 0820c2ceb. I'd reviewed 7eedef6f7, sorry for the noise.

  2. The loader refuses every module that has stock-code sites, and never frees pool memory. runtime.c:151 answers "unknown" unless max >= 2 * TASKS + 1, which is 33 with 16 tasks. RUNTIME_PAUSED is 32, so every modwerk_machine_paused call answers "unknown":

    • in_flight refuses any switch that involves sites (BUSY).
    • reclaim frees nothing, so each trial stays in the 64 KiB pool until a power cycle.

    The real maximum is 1 + 16 + 15 = 32, so the guard should be max < 2u * TASKS. A _Static_assert(2 * TASKS <= RUNTIME_PAUSED) keeps it from drifting again. Nothing caught it because hello.c has no sites and the host stub also answers "unknown". After the fix, please run on the unit:

    • a module with stock sites on trial, then Undo, then Keep;
    • several trials in a row, to show the pool frees up again.
  3. Once sites can switch, nothing stops a module patching over the base's own sites. modwerk_machine_patchable allows all of 0x40000400–0x402ce000, and the Rytm has no event-site list. When a stock hash covers less than its site, stock_of then records the base's own bytes past the hash as "stock". A module site that runs into a lean-engine jsr would crash the audio interrupt; a power cycle recovers. Please have the builder pass the base's site ranges to patchable, and refuse any overlap.

  4. The Rytm: let the site's builder use the larger mod area (#1718) #1719 release checks, on the exact release build of the final head (after 3 and 4), recorded with its revision and package SHA-256:

    • a flashed release base with a full set that goes past the old 128 KiB end;
    • the plain and send-bus variants on a unit;
    • an OS upgrade from the Modwerk base to stock and back;
    • +Drive save-as and format;
    • a save, then power off with the set running;
    • a long run on that flashed build.

    I'm dropping the second unit from my 18 November list: your MKII qualifies the release.

Consent text 2026-11-25.1: confirmed. The text and the carry-over stay as you wrote them. Please drop the "for the owner to confirm" note in octatrack-diagnostics-contract.ts.

Trials with nobody at the unit: keep them as on the Octatrack. Please update link.c's header (it still says IDENT, DIAG, LOAD and LOG "and nothing more") and LINK.md. They should say that every base runs a module on trial over USB MIDI with nobody at the unit, that any host with SysEx access can send one, and that a power cycle undoes it.

Smaller points
  • link.c:750 checks USB_SYSEX_STATE, then calls sysex_send from the UI task without a lock. Could a reply interleave with stock's own SysEx, for example while the page polls ident or load during a Transfer? If you've already checked sysex_send, one sentence in LINK.md is enough.
  • When this merges, it also publishes Improved Compressor 0.1.0 (its first release, which my merge counts as reviewing) and Improved Modulation 0.7.0, whose followers get notified, and retires QPER Live Rec and Pad Pressure Fix.

npp1993 and others added 2 commits November 26, 2026 10:09
…er patches the base's own sites (held-sites.h from machine:base), the link's reply goes out whole under stock's USB lock; identities send-bus c0c0eff6, voices d670789c, plain 0b5b4ce1 (owner's review of #1934)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…reply before a reset; sizes dated (review)

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

This branch has not been deployed

No deployments
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