rytm-mods-src's Analog Rytm MKII OS 1.73 mods
(MrScruff, published with permission), ported one by one to the elemod format so they link with
elekloader's core-ar2 and with each other, instead of being
patched into code caves at fixed addresses. Built for OS 1.74 (1.73 sources are the source of truth).
Contents: Mods · Install · Known limits · Build · Core versions · Layout · Porting notes · Version history · Status · Licence
No firmware is included: no OS files, sections, dumps or built .syx/.elemod files. The mods name
firmware routines by address only (include/ar2-1.73.inc, include/ar2-1.74.inc), and their
mod.json sites give the stock instructions they replace by length and SHA-256 only ("len",
"stock_sha256"), which elekloader checks against your own stock file, as core-ar2 does.
All thirteen are on core-ar2 0.22 (the newest) and load together as +Drive mods through
drive-loader-ar2 0.12, with the one exception under Known limits. Each has its own
README.md in its folder.
| mod | version | needs core-ar2 | what it does |
|---|---|---|---|
comp-preview |
1.1 | 0.4 | scrolling gain-reduction trace as one more COMP page |
ctrl-all |
1.2 | any | TRK + knob turns every track |
ctrl-in-perf |
1.0 | any | CTRL IN drives a performance macro |
env-reset-amp |
1.0 | any | ENV RESET reaches AMP |
euclid-accents |
1.2 | 0.4 | Euclidean accents |
filter-hz |
1.0 | any | filter frequency shown in Hz |
kit-ab |
1.0 | any | kit A/B: edits against saved |
lfo-rnd |
1.5 | 0.17 | LFO RND page |
main-rms |
1.0 | any | main output level light |
scene-mutes |
1.0 | 0.17 | scenes that set the track mutes |
slice-loop |
1.0 | any | SLICE LOOP in the track menu |
velocity-humanise |
1.2 | 0.4 | random velocity per track |
voice-dac |
1.7 | 0.17 | DAC sum, voice filter (DAC FILTER), shaper, polarity, and a SHAPER bus page on the FX track |
voice-dac-nd |
1.7 | 0.17 | voice-dac without DEP (32 sound bits in place of 39); was voice-dac-nodep, id voice-dac |
"any" means core-ar2 0.1 or later. Details of how the floors were found are under Core versions.
- Build the
.elemodfiles and core-ar2 0.22 with your own stock OS file (see Build). - As +Drive mods: flash core-ar2 0.22 with drive-loader-ar2 0.12 (and nothing else, or any of
these mods). Copy the
.elemodfiles into the +Drive's/modsfolder (elekloader mods put, or the MODS page) and tick them on the MODS page.python3 -m elekloader.drive check BUILD.syx FILES...says beforehand whether they load. - Or flashed in: link the mods you want into one
.syxwithelekloader.patch(the Build section has the commands), then flash it. Keeprytm-mods.lock.jsonand pass it again for every later build.
You need your own copy of Elektron's stock Analog Rytm MKII OS 1.74 .syx. It is never part of this
repository or anything built from it. Keep your built .syx and the out/ folders out of git and out
of any upload.
Settings saved by voice-dac 1.2 to 1.4 and lfo-rnd 1.1 to 1.2 load as the defaults: set them again after updating.
voice-dac-nd was voice-dac-nodep (mod id voice-dac) before release v1.6. Its id is now its own,
so elekloader takes it for a new mod. If your builds used voice-dac-nodep, rename it in your lockfile
before the next build:
python3 -I tools/lock_rename_mod.py rytm-mods.lock.json voice-dac voice-dac-ndThat keeps its settings, lock codes, CCs and knob ids, and the layout ID. Without it, the build drops the
old fields and places voice-dac-nd's again, and with all thirteen mods that repacks the sound and kit
storage, so every mod's sound and kit settings in older projects load at defaults. (A lockfile taken out
of an older .syx with --lockfile-from needs the same rename.) Don't rename a lockfile whose builds
used voice-dac with DEP: that mod is still voice-dac. On +Drive, delete the old
voice-dac-1.7-nodep-os1.74.elemod from /mods (the loader refuses the two together) and set
voice-dac-nd's DAC FILTER, DAC SUM and SHAPER again: its fields start at defaults.
- voice-dac with DEP and lfo-rnd cannot be loaded together. voice-dac 1.7 with DEP (39 sound bits),
lfo-rnd 1.5 (16) and core's LFO destination field (7) need 62 of the 56 bits a sound has, so
elekloader.patchand the +Drive loader refuse it. Usevoice-dac-ndbeside lfo-rnd, orvoice-dac(with DEP) in a build without lfo-rnd. - OS 1.74 only for the mods that keep settings in core-ar2's mod storage or use its page tables (euclid-accents, velocity-humanise, lfo-rnd, voice-dac, comp-preview).
- A step-1 p-lock made while stopped plays from the second loop (a core limit; seen with lfo-rnd and voice-dac).
- Not run on a unit: the full thirteen-mod build (flashed or from +Drive), any of these mods loaded from +Drive, voice-dac-nd 1.7 (1.7-nodep) and 1.6.1 with DEP, a real CV on CTRL IN with core 0.22, NRPN on voice-dac's shaper knobs and the shaper over a power cycle. See Status.
- rytm-mods' diagnostic builds (its non-default params and the claims they gate) are not ported.
You need:
- an elekloader checkout at
mainwith core-ar2 0.22 (elekloader/elekloader#430) and the Python 3 it asks for (v1.5 and v1.6 build with core-ar2 0.22; v1.4 with core-ar2 0.6, from elekloader/elekloader#179 on; v1.3 with core-ar2 0.4 or 0.5, from elekloader/elekloader#155 on); - ColdFire binutils on
PATH(m68k-linux-gnu-asand-ld; on Debian or Ubuntu,apt install binutils-m68k-linux-gnu); - your own copy of Elektron's stock Analog Rytm MKII OS 1.74
.syx. It is never part of this repository or of anything built from it. (For OS 1.73, see the v1.0 note under Version history.)
EL=path/to/elekloader # the elekloader checkout
R2=path/to/rytm2_mods # this repository
STOCK=path/to/Analog-Rytm_MKII_OS1.74.syx # your stock OS file
OS=-os1.74
cd "$EL"
python3 -m elekloader.sdk.build mods/core-ar2 --stock "$STOCK"
MODS="filter-hz ctrl-all env-reset-amp slice-loop euclid-accents velocity-humanise lfo-rnd
comp-preview main-rms kit-ab voice-dac-nd ctrl-in-perf scene-mutes"
ARGS=""
for m in $MODS; do
python3 -m elekloader.sdk.build "$R2/$m" --stock "$STOCK"
ID=$(python3 -c "import json; print(json.load(open('$R2/$m/mod.json'))['id'])")
V=$(python3 -c "import json; print(json.load(open('$R2/$m/mod.json'))['version'])")
ARGS="$ARGS --mod $R2/$m/out/$ID-$V$OS.elemod"
done
python3 -m elekloader.patch --stock "$STOCK" --mod mods/core-ar2/out/core-0.22.elemod $ARGS \
--out rytm-mods.syx --version R2AL --lockfile rytm-mods.lock.jsonLeave out any mod you don't want from MODS. With all thirteen, voice-dac must be
voice-dac-nd: voice-dac 1.7 with DEP (39 sound bits), lfo-rnd 1.5 (16) and core's LFO destination
field (7) need 62 of the 56 bits a sound has, so elekloader.patch refuses it. Use voice-dac (with DEP)
in a build without lfo-rnd. Keep rytm-mods.lock.json and pass it again
for every later build: it says where each mod's settings live in your projects, kits and
sounds, so a build that adds or drops a mod still reads them. (A lost lockfile can be taken back
out of the last build with --lockfile-from rytm-mods.syx.) elekloader.patch
checks that the selected mods combine before it writes anything. --version is the
four characters the unit shows as its OS version. The result is your own firmware file:
keep it, and the out/ build folders, out of git and out of any upload.
To load them from +Drive instead of flashing them in, see Install. All thirteen load together
on core 0.22 (with voice-dac in place of voice-dac-nd, lfo-rnd is refused for the same 56 sound bits).
Each mod's "resources": {"core": ...} is the earliest core-ar2 it links and works with. elekloader
takes the newest core it has that is at least that, and the +Drive loader refuses a mod only when the
flashed core is older (drive-loader-ar2 itself needs core-ar2 0.18, so on a +Drive build any floor up
to 0.18 is met).
How the floors were found: core-ar2 0.1 to 0.22 were each built from the elekloader commit that made
that version, and every mod here (built for OS 1.74, its own "core" taken out) was linked alone
against each with elekloader.patch. Where one of a mod's hooks has a matching std1 event (core-ar2
0.17), the mod takes the event in place of its own site, so its floor is 0.17; otherwise its floor
is the first core it links with. Each mod was then linked, with its floor in place, against its floor
(linked), the core before it (refused) and 0.22 (linked), and all of them load together with
drive-loader-ar2 0.12 on core-ar2 0.22.
| mod | needs core-ar2 | why |
|---|---|---|
| ctrl-all, ctrl-in-perf, env-reset-amp, filter-hz, kit-ab, main-rms, slice-loop | any (0.1) | only sites of their own and core's hook bus; no std1 event matches their hooks |
| comp-preview | 0.4 | core's view pages (core_view_pages) |
| euclid-accents, velocity-humanise | 0.4 | core's parameters (core_params) |
| lfo-rnd 1.5 | 0.17 | core's knob flags (core_knob_flags) |
| scene-mutes | 0.17 | std1 ev_mute, at the entry of track_mute_set that rytm-mods detours |
| voice-dac 1.7, voice-dac-nd 1.7 | 0.17 | std1 ev_tick (the idle routine its HPF refresh hooked) and ev_project; also core's knob looks (0.13) and the SHAPER's lockable kit fields, the FX track's parameters (0.9) |
No std1 event matches the other hooks: ctrl-all's knob handler needs the out flag and the FUNC and
track state that ev_param_turn does not carry; the audio hooks of comp-preview, main-rms,
ctrl-in-perf, lfo-rnd and voice-dac sit inside the audio interrupt, not where ev_render_in or
ev_render_out run; euclid-accents, velocity-humanise and env-reset-amp change the trig or voice
command, which ev_voice_start only observes; filter-hz, kit-ab, slice-loop and the view and draw
hooks have no event.
| path | what |
|---|---|
include/ar2-1.73.inc |
every main-OS symbol of rytm-mods-src's re/symbols.toml as an absolute .equ (generated, 328 symbols) |
include/ar2-1.74.inc |
the same symbols at their OS 1.74 addresses (generated by tools/port_os.py) |
shared/shared.s |
rytm-mods-src's 0000-shared runtime, included into each mod that uses it |
<mod>/ |
one elemod mod: mod.json, its source, README.md; os1.74/ holds its source for OS 1.74 (generated) |
tools/gen_symbols.py |
regenerates the include from a rytm-mods-src checkout |
tools/port_mod.py |
ports one rytm-mods mod mechanically (source and mod.json; the README is by hand) |
tools/port_os.py |
makes every mod's OS 1.74 port from its 1.73 one: include/ar2-1.74.inc, <mod>/os1.74/, and the "1.74" entry of mod.json's ports |
tools/verify_port.py |
checks a port against rytm-mods' own build, label by label (re-assembles the original, then compares disassembly with every address named) |
| rytm-mods | here |
|---|---|
a [[detour]] in registry/allocations.toml (addr, expect bytes, entry) |
a sites entry: {"addr", "len", "stock_sha256": <the length and SHA-256 of the whole instructions displaced>, "op": "jmp", "target": <entry>}; where the 6-byte jmp lands across an instruction the stub re-emits, the site takes it whole |
a [[patch]] with replace |
a bytes site ("kind": "code" in .text), widened to whole instructions |
a [[patch]] with from_symbol, in a data table |
a ptr site |
a [[patch]] with from_symbol, the address operand of a jsr/lea/move.l # |
a keep2 site: the opcode word kept, the address the mod's (any other instruction: a bytes code site with an abs32 reloc) |
a stub at a fixed cave address, or split over several caves by .section |
ordinary code, placed by the linker in the 128 KB DDR area: every section becomes .text → .run |
| state kept in a cave | stays with the code in .run (DDR is RAM) |
a gate on a claim |
applied with the default build's params |
build/symbols.inc |
include/ar2-1.73.inc |
build/shared.inc + mod 0000 |
.include "../shared/shared.s" in the mod itself |
build params |
fixed at the default build's values |
Rules that matter (elekloader docs/ADAPTING.md): only labels that a site or event names are
.globl, and they start with the mod's id; everything else stays local, so two mods never
export the same name. port_mod.py adds a prefixed global alias beside each such label, so the
stub's own references stay local and assemble as they did in rytm-mods (the hand-ported
slice-loop and env-reset-amp rename their entry label instead). A site covers whole stock instructions; the stub re-emits what it
displaced, exactly as in rytm-mods. Two mods may never patch the same bytes.
0000-shared is not a mod here: its ~234 bytes are assembled into each mod that calls it
(velocity-humanise, lfo-rnd and voice-dac), so every mod stands alone. euclid-accents,
velocity-humanise, lfo-rnd and voice-dac keep their settings in core-ar2's mod storage
(storage in their mod.json), not in the OS's saved records: euclid-accents 1.1,
velocity-humanise 1.1 and voice-dac 1.2 need core-ar2 0.3, which is OS 1.74 only, and lfo-rnd
1.1 needs 0.2 or later. velocity-humanise no longer needs euclid-accents.
The page routines: from core-ar2 0.4, core owns the entries of page_info, page_get_value,
param_apply_delta and param_value_text and asks each mod's core_pages and core_params entries
in turn (lfo-rnd, voice-dac, euclid-accents, velocity-humanise, by their order), before stock;
the four answer for different ids, so the order does not change what they do.
Mods that hook deeper in those routines keep their own sites: ctrl-all in param_apply_delta
(0x400378c2 on 1.74) and filter-hz in param_value_text. Before core 0.4 the four mods detoured
consecutive instructions at each entry, each rejoining at the next mod's jmp, as in rytm-mods,
which left no room for a fifth mod with pages.
Elektron's 1.74 changes only the main OS, and that is 1.73's with code added in two places (Outbox 8's main-output routing): the code after 0x4005702a sits 0x6c further on, after 0x40123e2a 0x1cc, and the data after the code by other amounts. RAM from 0x402ce000 on and the SRAM did not move. Building for 1.74 needs an elekloader that knows the Rytm's 1.74 (its release in the profile, and core-ar2's 1.74 port).
Every mod's 1.73 source is its source of truth. tools/port_os.py (run with both stock files)
writes the 1.74 port from it: each firmware address in the include, the sources' code and the
sites, moved and checked (see the tool), and each site's stock bytes checked in 1.74 and given
by length and SHA-256. It writes
nothing if any address fails its check. Run it again after changing a 1.73 source. elekloader
builds the port when given the 1.74 stock file, as <id>-<version>-os1.74.elemod.
Checked with both stock files: core-ar2 with all eleven ports, built for each, changes the same
instructions at the same (moved) sites, and the mods' code differs only in the firmware
addresses it names, each the moved one. A word in the mods' code that holds a 1.73 address
whose 1.74 address differs, left unmoved, is a port error: the include once kept two vtable
addresses tagged const (ctrl-all's set checks) at their 1.73 values, which made TRK + turn
reach only the selected track on 1.74.
Which release introduced what (the mods' own README.md files have the detail).
- v1.2 euclid-accents, velocity-humanise and voice-dac keep their settings in core-ar2 0.3's mod storage and build for OS 1.74 only; lfo-rnd uses core-ar2's storage too.
- v1.3 lfo-rnd 1.2, voice-dac 1.3, euclid-accents 1.2 and velocity-humanise 1.2 reach the parameter pages through core-ar2 0.4's page tables (core-ar2 0.4, OS 1.74 only), so other mods with pages can link beside them. comp-preview 1.1 lists its preview through core 0.4's page-key lists, so a mod can add a page behind COMP too.
- v1.4 voice-dac 1.4 (rytm-mods-src 3a98e23: DAC FILTER's knobs follow TYP) needs core-ar2 0.6, whose page functions let a page's knobs follow the selected sound.
- v1.5 lfo-rnd 1.3 and voice-dac 1.5 make their knobs core-ar2 parameters: each can be p-locked, scene-locked and reached over MIDI, and the depths and DAC FILTER's FRQ, RES, DEP, ATK and SUS are also LFO, velocity and aftertouch destinations. voice-dac 1.5 needs core-ar2 0.10, lfo-rnd 1.3 core-ar2 0.9. voice-dac 1.5-nodep (no DEP) links beside lfo-rnd in a build with LFO destinations.
- v1.6 everything links with core-ar2 0.22 and loads as a +Drive mod through drive-loader-ar2 0.12. lfo-rnd 1.5 (core 0.17) and voice-dac 1.6 (core 0.13) take the knob ids, looks and list flags core now owns. voice-dac 1.6.1 and scene-mutes take core's std1 events where rytm-mods hooks the same routine. ctrl-in-perf (rytm-mods-src 0017) and scene-mutes (0018) are new.
- v1.7 voice-dac 1.7 (and 1.7-nodep) adds rytm-mods-src abc35f7's bus shaper: a SHAPER page on the FX track, behind DISTORTION while DAC SUM is on, shaping MAIN's sum of the voices and the delay and reverb returns. Its eight knobs are knob ids of the mod's own and its values eight kit fields (56 of the kit's 64 bits, no sound bits). They are the FX track's parameters: p-locks with an FX trig held, scene locks, performance depths, and NRPNs and CCs on the FX channel. It needs core-ar2 0.17.
- v1.0 is the OS 1.73 release with all eleven mods then ported; its own README says which elekloader it builds with. v1.2's lfo-rnd, voice-dac, euclid-accents, velocity-humanise and comp-preview do not link with core 0.4, so v1.3's are needed for it.
- voice-dac-nd (release v1.6): the no-DEP voice-dac,
voice-dac-nodep/with mod idvoice-dacand version 1.7-nodep until then, isvoice-dac-nd/, mod idvoice-dac-nd, version 1.7. The code is the same. See Install for the lockfile rename that keeps its settings.
| rytm-mods-src | here | source status | port |
|---|---|---|---|
| 0000-shared | shared/shared.s |
built | ported (included by velocity-humanise, lfo-rnd, voice-dac, scene-mutes; shared_kit_record, from abc35f7, only where a mod asks for it) |
| 0008-filter-hz | filter-hz/ |
hardware-verified | matches label by label; confirmed on a unit |
| 0012-slice-loop | slice-loop/ |
hardware-verified | matches label by label; confirmed on a unit |
| 0014-ctrl-all | ctrl-all/ |
hardware-verified | 1.2, MrScruff's SYNTH knob fix (9831bdf): matches label by label, confirmed on a unit on OS 1.74; 1.0 and 1.1 confirmed on a unit |
| 0015-env-reset-amp | env-reset-amp/ |
hardware-verified | bit probe left out; matches label by label; confirmed on a unit |
| 0002-euclid-accents | euclid-accents/ |
hardware-verified | 1.2 on core-ar2 0.4's pages and 1.1, settings in core-ar2 0.3's storage: confirmed on a unit on OS 1.74; 1.0 matches label by label, confirmed on a unit |
| 0003-velocity-humanise | velocity-humanise/ |
built (MANUAL: verified) | 1.2 on core-ar2 0.4's pages: confirmed on a unit on OS 1.74; 1.1, settings in core-ar2 0.3's storage, stands alone: confirmed on a unit on OS 1.74; 1.0 matches label by label, confirmed on a unit |
| 0004-lfo-rnd | lfo-rnd/ |
built (MANUAL: verified) | 1.5, on core-ar2 0.17's knob flags (1.4: its own knob ids, core 0.13): links with core 0.17 to 0.22, emulator checks of 1.4; 1.5 confirmed on a unit on OS 1.74 with core 0.22 (2026-11-29: DS1's list, YES and NO, kept through save and reload, hits varying in level; not by ear, not over a power cycle); 1.3, its knobs core-ar2 0.9 parameters: confirmed on a unit on OS 1.74 with core 0.10 in the all-eleven build (CCs, offsets, DP1 p-lock, LFO on DP1, kept over kit save and power cycles; a step-1 lock made while stopped plays from the second loop, a core limit); 1.2 on core-ar2 0.4's pages: confirmed on a unit on OS 1.74; 1.1, settings in core-ar2's storage: confirmed on a unit on OS 1.74 with core 0.3; 1.0 matches label by label, confirmed on a unit |
| 0006-comp-preview | comp-preview/ |
hardware-verified | 1.1, its preview in core-ar2 0.4's COMP list: confirmed on a unit on OS 1.74, also beside duck; 1.0 matches label by label, confirmed on a unit |
| 0009-main-rms | main-rms/ |
built (MANUAL: display checked on the device) | matches label by label; confirmed on a unit |
| 0010-kit-ab | kit-ab/ |
hardware-verified | matches label by label; confirmed on a unit |
| 0013-voice-dac | voice-dac/, voice-dac-nd/ |
hardware-verified | default build only (no timing, prof, burn or dbg); 1.7 and 1.7-nodep, abc35f7's bus shaper (the FX track's SHAPER page, its knobs FX-lockable): links with core 0.17 to 0.22 and loads from +Drive on drive-loader 0.12 with core 0.22; in the emulator the page shows with DAC SUM on, a MIX p-lock on an FX trig draws as a lock and runs the shaper on its steps in playback, and reading the locked values costs about 370 instructions a block; 1.7 confirmed on a unit on OS 1.74 with core 0.22 (2026-11-29: the SHAPER page and its eight knobs, CCs, kept through save and reload, a MIX p-lock, a scene lock and a performance depth, and a listening check by ear; not NRPN, not over a power cycle, not from +Drive); 1.6.1 (nodep) and 1.6.1-nodep, the HPF refresh and project hook on core-ar2 0.17's std1 events: links with core 0.17 to 0.22, confirmed on a unit on OS 1.74 with core 0.22 (2026-11-30: DAC FILTER reaches the audio interrupt on the idle tick and after a project load, kept through save and load); 1.6 and 1.6-nodep, POL on the mod's own knob id (core-ar2 0.13): linked with core 0.13 to 0.22; 1.5-nodep on core-ar2 0.10, its knobs core parameters: confirmed on a unit on OS 1.74 (CCs, velocity and aftertouch routes, scene lock, LFO on DAC FRQ with a smooth slow sweep, kept over kit save and power cycles; a step-1 p-lock made while stopped plays from the second loop, a core limit); 1.5 with DEP: confirmed on a unit on OS 1.74 (defaults, DEP knob, CC and popups, LP1/HP1 shelves, LFO on DAC DEP); 1.1, MrScruff's update (76ae299): matches label by label but for three names where sections meet; 1.4 (3a98e23, knobs follow TYP) on core-ar2 0.6: confirmed on a unit on OS 1.74; 1.3 on core-ar2 0.4's pages and 1.2, settings in core-ar2 0.3's storage: confirmed on a unit on OS 1.74; 1.0 confirmed on a unit |
| 0017-ctrl-in-perf | ctrl-in-perf/ |
built | 1.0: code unchanged; links with core-ar2 0.1 to 0.22; confirmed on a unit on OS 1.74 with core 0.22 (2026-11-29: PERF DEST steps OFF to PF12, hidden in OFF mode, PF1 kept over a power cycle); a real CV on CTRL IN not checked with core 0.22 |
| 0018-scene-mutes | scene-mutes/ |
built | 1.0: takes core-ar2 0.17's ev_mute where rytm-mods detours track_mute_set (needs core 0.17); confirmed on a unit on OS 1.74 with core 0.22 (2026-11-29: a scene mask on BD and SD silences them while engaged; a CH mute made by hand stays after disengaging); CLEAR ALL, CC and NRPN engage and kit change not checked with core 0.22 |
Every mod on rytm-mods-src main (71f1ce1) is ported, abc35f7's bus shaper in 0013-voice-dac as voice-dac 1.7. "Matches label by label": tools/verify_port.py
re-assembles rytm-mods' own code, checks it equals rytm-mods-src's default build ("T2"), then
compares each label's instructions with the port's, every address named by its label. For all
eleven, in the full build (core-ar2 with every port, as in Build above): every byte it changes
in the OS is inside one of the ports' sites, every one of those sites is also patched by
rytm-mods' default build (T2), and the bytes sites write T2's bytes exactly. rytm-mods'
diagnostic builds (its non-default params and the claims they gate) are not ported.
GPL-2.0, as rytm-mods-src (LICENSE). The mods are MrScruff's work; the elemod ports keep his code and
note every change.