Skip to content

Improvement: Analog Rytm MKII base-next into main (idle voice clear, FX lock words, Improved FX Routing 0.3.0) - #2554

Merged
npp1993 merged 36 commits into
mainfrom
base/analog-rytm-mkii-next
Dec 3, 2026
Merged

npp1993 merged 36 commits into
mainfrom
base/analog-rytm-mkii-next

Conversation

@npp1993

@npp1993 npp1993 commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

What works. The Analog Rytm MKII's next base, with three changes beyond main:

#2514 (the runtime loader in release bases) is reverted here (f09e8a7): it carries #2513's sdk/runtime relicense, whose Octatrack and Model:Cycles base rebuilds ship with Octatrack 0.8.6 (#2473). It re-lands in #2557 after that.

Today's library modules sound the same.

Who acts. The Rytm maintainer (Nathaniel Pavel, @npp1993) promotes base/analog-rytm-mkii-next into main with this pull request once CI is green; it ships the base with the next site deploy.

Tested on a unit: each change on its own development build, MKII, OS 1.74, RAM boot: LVC2 (dev voices base a0b41d24 with the idle-voice fix, RC47's set + Sample Layer: slv-tail, abd-voice, sy-voices pass; #2515) and LMC3 (image CRC 899b4080, the lock words and Improved FX Routing: the rig's LOW MONO, preflight, text and sound cases; #2539, #2541). The merged release packages (send-bus 7e4ca6c9, voices b94a5ce2, plain 442ca20c) and Improved FX Routing's exact package have not run on a unit.

Guides: the Rytm guide gains the EMAC << scale-factor trap and the base README says which stock buffers the lean engine zeroes only once and that the lock words are in every variant (sdk/machines/analog-rytm-mkii/README.md, elekloader/README.md); merging main kept both sides of the guide's cost paragraph.

What is in it

Not run

  • The merged release packages and Improved FX Routing's exact package on a unit (each change ran on its own development build).
How the fix was checked (#2515)
  • rytm-emu, a twin module writing a marker into idle voice 7's stream every 1000 blocks: old base 25,288 of 25,288 blocks stale, fixed base 0.
  • rytm-emu, zero-time twin (BD, SD, BT samples; notes, PLAY, STOP; 163,287 blocks): fixed base and stock's sample engine give identical DAC words on all 16 channels. Instructions a block: old 35,217, fixed 35,458, stock sample engine 47,055.
  • Independent code review: no defect; one stale comment fixed.
  • Unit, Analog Rytm MKII, OS 1.74, RAM boot, 1 December 2026. Rig case slv-tail (Sample Layer TRANSIENT, SHF at its top, DEC INF, against an SHF-0 control): LVB2 (old base, dev voices 89a81ff5) FAIL, tail −12.2 dBFS; LVC2 (fixed, dev voices a0b41d24) PASS, tail −83.9 dBFS against the control's −83.5. abd-voice and sy-voices pass on LVC2.

Edge cases

Case Why this change makes it a risk How run Result
A module writes an idle voice's sample stream in place the bug itself unit, slv-tail on LVC2 (fixed) and LVB2 (old) pass (old base fails)
Idle voices, voices going idle and active the zeroing runs every block; voices move between the skip and stock's loop rytm-emu zero-time twin against stock's sample engine pass: identical DAC words
Analog BD and the SY machines the voice mix reads both streams unit, abd-voice, sy-voices on LVC2 pass
The release packages, flashed only a development base ran not run not run: waits for the release qualification

🤖 Generated with Claude Code

npp1993 and others added 30 commits December 1, 2026 20:01
… block, as stock does

The sample voices' trim (LE_TRIM) left a skipped voice's 32 output longs (0x800067f8 + 128 x voice) alone while a
bit a voice (dsz_out) said they still held zeros from an earlier block. That assumed nothing else writes the buffer,
but it is the sample stream stock's voice mixer reads, and a module may shape it in place first: Sample Layer
(#2253) does, from a gate on the mixer's call 0x4012129a, so after a voice went idle its TRANSIENT
delay tail or band ring stayed in the buffer and was read back every block. le_dsg now zeroes the 32 longs in every
block it skips stock's gain loop, the bytes stock's loop writes; dsz_out is gone (le_dsk_total [7] unused).

rytm-emu, a twin module on Sample Layer's site marking idle voice 7 every 1000 blocks: old base 137,812 of 137,812
blocks after the first mark found the stream stale (and its DAC channel kept the marker), fixed base 0.
Release identities plain 8b2663e1, voices dacd67fe, send-bus b37be733 (sizes unchanged); packages, record and
registry follow. Review: no defect; the README's lean-engine section now says which buffers a module may not
shape in place.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…8b2663e1, voices dacd67fe, send-bus b37be733)

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, #2473). This is
the same change as 0eb7a85e9, which #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 (#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>
Fix: Rytm base: the lean engine clears an idle sample voice's output every block
#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>
locks.c/locks.s and their three sites (0x4000940c, 0x40009216, 0x40008f98) move from add into common, and
voices no longer leaves them, so step locks on FX words 38-41 save and load on plain and voices too. First
user: Improved FX Routing's LOW MONO knob (a kit word of its own). Identities and packages follow once the
open base-next PRs land.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Stock's kit lock lists store a lock's word as a slot through 0x40007602 / 0x400075c8, which give 0 (the delay's
TIME) for FX words 38-41. fxguard.s takes the three map loads (0x40008036, 0x400080f4, 0x40008092) and maps
38-41 to slots 38-41 and back. Found by the independent review of Improved FX Routing's LOW MONO.

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

Stock has two kit lock lists, each with a saver and a loader; 0x40007fb4 loads the +1950 list (performance locks,
most likely) with the same 6-byte map pair at 0x40007fd0. Found by the second independent review.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… every variant and the lock-list guard (plain 442ca20c, voices b94a5ce2, send-bus 7e4ca6c9)

Packages, import record (pinned to the sources' commit), catalog and registry; the build table; the Rytm guide's
note on the EMAC's << scale factor.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…'s and reverb's returns mono below 40-300 Hz

Audio In Routing renamed (id stays audio-in-fx). Knob F (LMO) on the FX track's DISTORTION page: a side high-pass
(12 dB/oct state-variable filter, mid untouched word for word) on both returns, run from ev_render_out; all-zero
buffers left alone for the lean engine's rests; 11 ms fade on and off. F is hidden id 447 on a whole FX word inside a
31-bit kit field. Unit (LMC3, rig): side -28.5 dB at 30-60 Hz, mid within 0.06 dB.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…dc7b), its release record, catalog record and vendored copy

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e lock-list guard; voices still leaves the send bus

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… 52,545, voices 34,827 bytes)

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…IF31, no unit; emulator rehearsal passed)

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ingerprint after the documentation edits (package unchanged)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Rytm base: FX words 38-41 keep step, scene and performance locks in every variant
Improved FX Routing 0.3.0-experimental (Rytm): LOW MONO, the delay's and reverb's returns mono below 40-300 Hz
#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>
# Conflicts:
#	sdk/machines/analog-rytm-mkii/README.md
… every variant

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@npp1993 npp1993 changed the title Improvement: Analog Rytm MKII base — idle sample voices cleared every block (base-next) Improvement: Analog Rytm MKII base-next into main (idle voice clear, FX lock words, Improved FX Routing 0.3.0) Dec 2, 2026
@npp1993
npp1993 enabled auto-merge December 3, 2026 00:02
npp1993 and others added 3 commits December 2, 2026 18:29
@npp1993 npp1993 changed the title Improvement: Analog Rytm MKII base-next into main (idle voice clear, FX lock words, Improved FX Routing 0.3.0) Improvement: Analog Rytm MKII base-next into main (idle voice clear, FX lock words, Improved FX Routing 0.3.0, release loader) Dec 3, 2026
npp1993 and others added 2 commits December 2, 2026 18:41
… 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 npp1993 changed the title Improvement: Analog Rytm MKII base-next into main (idle voice clear, FX lock words, Improved FX Routing 0.3.0, release loader) Improvement: Analog Rytm MKII base-next into main (idle voice clear, FX lock words, Improved FX Routing 0.3.0) Dec 3, 2026
@npp1993
npp1993 merged commit a1d6e3b into main Dec 3, 2026
13 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