Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions docs/verification/2026-11-21-rytm-analog-bd-0-2-2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Analog Rytm MKII: BD ANALOG 0.2.2-experimental package — 21 November 2026

Nathaniel Pavel's (@npp1993) BD ANALOG (`analog-bd`) 0.2.2 drops the type's name (808 / 909) from the SYNTH page's bottom bar: `mw_voice.names` is 0, so the base draws nothing there, and knob B's label (TON / SWT) says the type. No sound code changes. Its source-only OS 1.74 package is pinned in `sdk/imports/elekloader-analog-bd-2026-11-21.json` (commit `8b0d14396`), recorded in `sdk/imports/analog-bd-0.2.2-2026-11-21.json`, replacing 0.2.1's pin.

- **Build:** `scripts/build-elemod-isolated.sh` in `modwerk-source-tools` (image `3d0d46b0…`) from a clean checkout of `12f774a06`, the source the package commit carries. Exported with `package-elemod-recipe.mjs`.
- **Package:** `analog-bd-0.2.2-experimental-os1.74.elemod` `d268d583…6f11`, the same bytes in `sdk/imports/packages/analog-bd/` and the vendored catalogue.
- **Image:** the published voices base dd771eae with this source links to BA23 `0504d80a…d3d7`; the three media plans in `media/capture.json` replay on BA23 to the committed captures.
- **Checks:** `tools/emu_check.py` all pass, meter unchanged; `module:doctor` green.
- **On a unit:** the author's automated rig on the author's MKII, CD02 (`3ea8d38b…`, this source on a development base with a USB test link), flashed: no type name in the bottom bar for the 808 or the 909, B's label switching, the type coming back (module TESTING.md). This package has not run alone on a unit.
8 changes: 4 additions & 4 deletions sdk/analog-rytm-mkii/modules/analog-bd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Choose BD ANALOG on the BD, SD or BT track and play it like a stock BD machine:
1. Select the BD track, press FUNC + SRC, scroll to BD ANALOG (the last of the BD section) and press YES.
2. Play the pad soft and hard: velocity is the accent, harder hits are snappier.
3. Turn TUN for the pitch and DEC for the length; SWP sets how far the pitch sweeps down.
4. Tap encoder B: the label changes from TON to SWT and the bar from 808 to 909. Play it again, and tap again for the 808.
4. Tap encoder B: its label changes from TON (808 Tone) to SWT (909 Sweep Time). Play it again, and tap again for the 808.

### Changes to stock flows

Expand All @@ -49,16 +49,16 @@ None: BD ANALOG is a machine of its own in the machine list. Choosing another ma
- Tracks: BD ANALOG is in the machine list of the BD, SD and BT tracks only. On the unit (rig, 11 Nov 2026) three 909s hit together played clean and four overran the audio block, so three voices is the cap. With three playing in a large set of modules the unit's controls can lag.
- CPU: the Rytm's own audio work takes about two thirds of the audio block with nothing playing. An 808 voice adds about 7 % of the block (its render about 5 %, the base's work under 1 %, stock's for the track about 1 %). Hits spread across the beat cost less than hits at the same instant ([TESTING.md](TESTING.md)).
- The level into the voice's analog path and how hard it can be driven are not yet measured on a unit.
- Built for OS 1.74 only, on the Modwerk base's digital voices (its send-bus variant: the site picks it for a set with this module).
- Built for OS 1.74 only, on the Modwerk base's digital voices (the voices variant; send-bus when the set also holds a send effect).

## Tests and measurements

rytm-emu on OS 1.74, the hand-written assembly against its C, the host engine against repeat98's float models, the author's own unit by hand (0.1.0, 0.2.0 and 0.2.1) and the author's automated rig on a MKII (0.2.0): [TESTING.md](TESTING.md).
rytm-emu on OS 1.74, the hand-written assembly against its C, the host engine against repeat98's float models, the author's own unit by hand (0.1.0, 0.2.0 and 0.2.1) and the author's automated rig on a MKII (0.2.0, and 0.2.2's screen): [TESTING.md](TESTING.md).

## Authorship and licences

Original 808/909 models, fits and coefficients: Jannik Aßfalg (repeat98), MIT, from Analog BD for the Octatrack (`sdk/octabam/modules/analog-bassdrum`). Rytm port: Nathaniel Pavel (@npp1993), MIT ([LICENSE](LICENSE)). The tables are generated from those models; the build carries no Elektron code or tables. Screens show Elektron's interface solely to document the modification ([media/LICENSE.md](media/LICENSE.md)).

## Screens and audio

Screenshots are rytm-emu captures of build BA22 (0.2.1 on the base of the digital voices, repeat98/modwerk#1447; the same frames as 0.2.0's) ([media/capture.json](media/capture.json)). No audio preview yet.
Screenshots are rytm-emu captures of build BA23 (0.2.2 on the base's voices variant dd771eae; the machine list the same frame as 0.2.1's) ([media/capture.json](media/capture.json)). No audio preview yet.
17 changes: 16 additions & 1 deletion sdk/analog-rytm-mkii/modules/analog-bd/TESTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

The bases named below are development builds of the Modwerk base with the digital voices (and, for BL01, a USB test link), not published and not rebuildable from this repository; the published base is the send-bus variant of repeat98/modwerk#1447 (3ece243b): this module ran on it in rytm-emu (BA21) and, by hand, on the author's unit (VB01, 12 November 2026: chosen from the BD section and offered on SD and BT only, the 808/909 tap, a kit reload keeping the type, a sound lock changing the type, a project save and power cycle; docs/verification/2026-11-12-rytm-base-digital-voices.md), but not the rig's knob sweeps.

- CD02 (0.2.2-experimental, sha256 3ea8d38b…, solo on a development base of the author's with a USB test link and the base's centred-dial fix, not published): flashed on the author's MKII on 21 November 2026 and run by the author's rig (below). This module's source in CD02 is the release's (fingerprint below).
- BA23 (0.2.2-experimental, sha256 0504d80a…, solo on the published voices base dd771eae): the README's three screens captured again with capture.json's plans; the machine list byte for byte 0.2.1's, the two SYNTH pages without the bottom bar's 808 / 909.
- RC42 (0.2.1-experimental, sha256 1ac19211…, a private 17-module combo: this module beside 16 others on a base of the digital voices without the send bus, 1,564 B of module RAM left): flashed, tried by hand by the author on 16 November 2026. Reported: everything works and sounds as before; with three BD ANALOG voices playing the unit gets laggy. Not measured by the rig.
- BA22 (0.2.1-experimental, sha256 b5b06ee1…, solo on the published base 3ece243b): the README's three screens captured again with capture.json's plans; each frame byte for byte 0.2.0's (BA21).
- AB23 (0.2.1-experimental, sha256 3f7bbb91…, solo on the published base 3ece243b): the knob tables read only when a knob changes stored as 16-bit steps above their smallest word (`NAME_LO + (NAME[i] << NAME_SH)`); the body's level, velocity and ATK worked out instead of read; HIGH's weight twice LOW's from one table. T_AP, T_GT, T_GD and T_DKP stay Q31 words. Every per-sample routine is instruction for instruction the same as 0.2.0's (objdump). tools/asm_check.py: every routine saves its registers; desk, bodies, click and noise match their C, 0 differences. emu_check: all pass, meter unchanged (mean 3.4 %, dearest block 4.6 %). Not on the unit yet.
Expand All @@ -26,10 +28,23 @@ The bases named below are development builds of the Modwerk base with the digita

`evidence.sourceSha256` is the sha256 of `sha256sum build.json src/machine.c src/ab_dsp.c src/ab_desk.s src/ab_body.s src/ab_body808.s src/ab_noise.s src/ab_click.s src/ab_tone808.s src/ab_trig808.s src/ab_dsp.h src/tables.h` (in that order): `e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855`.

## Source fingerprint, 0.2.2

The same command as for 0.2.1: `b73ba4308810126d1c102488838da382c59a57a514d6ae0ddc1c167b41fe30d3`.

## Source fingerprint, 0.2.1

`evidence.sourceSha256`, worked out in the module's folder as `sha256sum build.json src/machine.c src/ab_dsp.c src/ab_desk.s src/ab_body.s src/ab_body808.s src/ab_noise.s src/ab_click.s src/ab_tone808.s src/ab_trig808.s src/ab_dsp.h src/tables.h | sha256sum`: `4583f70cdd8cf66f0273f681865ddd7c29c9273eba8dab1f371fd66f70a1c9d0`. 0.2.0's recorded value above is the hash of empty input (the command hashed nothing); the same command gives `5dc3e042…` for 0.2.0's files.

## Unit rig, 0.2.2 (21 November 2026)

Run by the author's automated rig on the author's MKII, not by a person: CD02 flashed, scratch project, BD track. Three screen and memory cases (the rig's, not in this repository), each choosing BD ANALOG from the machine list and checking the track's machine byte reads slot 36 first:

- No type badge: the bottom bar's right end (x 96-127, y 56-63) is the same for the 808 and, after a tap of B, the 909 (blank; with 0.2.1 the two differ there), B reads TON then SWT, and a second tap brings the type back.
- TUN, LOW and HI turn their dials to both ends (the base's centred-dial fix, not this module): the dial differs between 0 and 8 and between 119 and 127 for each. One step of TUN or DEC moves the stored value by one (0x4000 to 0x4100).
- The same cases in rytm-emu: pass on CD02, fail on CD00 (the same development base without the dial fix, with 0.2.1): there the dials sit on one end stop at 0 and 8, one TUN step (the rig's 4 counts) moves 4/256 of a value, and the badge is drawn.
- Not covered: pads and pressure, sound (0.2.2 changes no sound code), save and reload, power cycle.

## Memory, 0.2.1 (16 November 2026)

5,024 bytes less than 0.2.0: `ramSpare` from `scripts/link-image.mjs` on the published base 3ece243b, 76,272 bytes with this module (71,248 with 0.2.0). The module's `.run` (m68k-elf-size): 15,186 bytes (20,206); the tables shrank by 5,120 bytes (.rodata 14,394 to 9,274) and the two settings routines grew by 100.
Expand Down Expand Up @@ -128,7 +143,7 @@ Over USB (MIDI and the unit's audio), 808 pass: select and switch passed, but 39
## Unit rig, AB06 (5 November 2026)

808 pass over USB: select and switch passed; 39 of 40 hits still silent. A probe of four hits each (note 0 on channels 1 and 10, note 60 on channel 1) sounded about one in four on every channel: the trig arrived but the base marked it taken while its timer still pointed a block or more ahead. Fixed in AB07.
Open: the type's name in the bottom bar draws over the menu a double tap of SRC opens (the author, AB06).
Open: the type's name in the bottom bar draws over the menu a double tap of SRC opens (the author, AB06). (Fixed in AB08; since 0.2.2 no type name is drawn.)

## Unit rig, AB07 (5 November 2026)

Expand Down
18 changes: 9 additions & 9 deletions sdk/analog-rytm-mkii/modules/analog-bd/media/capture.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,37 @@
"schemaVersion": 1,
"machine": "analog-rytm-mkii",
"moduleId": "analog-bd",
"moduleVersion": "0.2.1-experimental",
"moduleVersion": "0.2.2-experimental",
"firmware": "1.74",
"capturedAt": "2026-11-17T02:30:00Z",
"imageSha256": "b5b06ee1f22c6a8d5575b62f8d023d6b05f69c5f0771f1f79ac81c0a828d0e75",
"build": "Modwerk's linker: the Modwerk base's send-bus variant 3ece243b (repeat98/modwerk#1447, merged) + this folder's BD ANALOG 0.2.1-experimental, materialised against stock OS 1.74, --version BA22",
"capturedAt": "2026-11-21T22:00:00Z",
"imageSha256": "0504d80a1264526548eb381d14152038754c36e02f067677af136aa53e39d3d7",
"build": "Modwerk's linker: the Modwerk base's voices variant dd771eae + this folder's BD ANALOG 0.2.2-experimental, materialised against stock OS 1.74, --version BA23",
"emulator": {
"name": "rytm-emu",
"repository": "https://github.com/trigcondition/rytm-emu",
"binary": "dtboot",
"settings": "blank card, JIT on",
"revision": "2ac0f1f"
},
"conditions": "CARD: dtboot ba20.syx --every 999G --card card.img --instr 9G --card-save --press YES@3900M:12M --press NO@6001M:12M --press NO@6503M:12M (formats the card, clears the notices). Then the plans below on that card: the four NO presses clear the calibration notices, FUNC + SRC opens BD's machine list on BD HARD, four DOWN presses reach BD ANALOG, YES chooses it, PUSH_B taps encoder B. Frames are dtboot's firmware-rendered 128x64 screen at 3x, unmodified.",
"conditions": "CARD: dtboot ba23.syx --every 999G --card card.img --instr 9G --card-save --press YES@3900M:12M --press NO@6001M:12M --press NO@6503M:12M (formats the card, clears the notices). Then the plans below on that card: the four NO presses clear the calibration notices, FUNC + SRC opens BD's machine list on BD HARD, four DOWN presses reach BD ANALOG, YES chooses it, PUSH_B taps encoder B. Frames are dtboot's firmware-rendered 128x64 screen at 3x, unmodified.",
"captures": [
{
"path": "media/machine-list.png",
"frame": "step10_DOWN.png",
"plan": "DTBOOT_STEPS=1 DTBOOT_PNG_DIR=png dtboot ba20.syx --every 999G --card card.img --instr 16500M --press NO@9201M:12M --press NO@10001M:12M --press NO@10801M:12M --press NO@11601M:12M --press FUNC@13201M:300M --press SRC@13301M:12M --press DOWN@13701M:12M --press DOWN@13801M:12M --press DOWN@13901M:12M --press DOWN@14001M:12M --press YES@14601M:12M --press PUSH_B@15601M:12M",
"plan": "DTBOOT_STEPS=1 DTBOOT_PNG_DIR=png dtboot ba23.syx --every 999G --card card.img --instr 16500M --press NO@9201M:12M --press NO@10001M:12M --press NO@10801M:12M --press NO@11601M:12M --press FUNC@13201M:300M --press SRC@13301M:12M --press DOWN@13701M:12M --press DOWN@13801M:12M --press DOWN@13901M:12M --press DOWN@14001M:12M --press YES@14601M:12M --press PUSH_B@15601M:12M",
"sha256": "bc947ce72c040fd8a030107a6eac048da6df893f8053635ae69062d491e4cb1a"
},
{
"path": "media/synth-808.png",
"frame": "end",
"plan": "DTBOOT_END_PNG=end808.png dtboot ba20.syx --every 999G --card card.img --instr 15500M --press NO@9201M:12M --press NO@10001M:12M --press NO@10801M:12M --press NO@11601M:12M --press FUNC@13201M:300M --press SRC@13301M:12M --press DOWN@13701M:12M --press DOWN@13801M:12M --press DOWN@13901M:12M --press DOWN@14001M:12M --press YES@14601M:12M",
"sha256": "ffc8dd5a88091b64bff927060527c34937fc71ec0981dc07a659e3332430ba7a"
"plan": "DTBOOT_END_PNG=end808.png dtboot ba23.syx --every 999G --card card.img --instr 15500M --press NO@9201M:12M --press NO@10001M:12M --press NO@10801M:12M --press NO@11601M:12M --press FUNC@13201M:300M --press SRC@13301M:12M --press DOWN@13701M:12M --press DOWN@13801M:12M --press DOWN@13901M:12M --press DOWN@14001M:12M --press YES@14601M:12M",
"sha256": "aa3ec3ee6113243d11b7b649d022750d8ea40605dad8524a8d7b57fe49c15afc"
},
{
"path": "media/synth-909.png",
"frame": "step12_PUSH_B.png",
"plan": "(the machine-list plan) step 12, after the PUSH_B release",
"sha256": "00a46cc4438151b777c4a179edc4402c32fdb9949ba31bafcb85186ef08a0881"
"sha256": "6c3616713893321e679ba98667cac0a184b139ec73458b6b26c06985fc84bdfe"
}
]
}
Binary file modified sdk/analog-rytm-mkii/modules/analog-bd/media/synth-808.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified sdk/analog-rytm-mkii/modules/analog-bd/media/synth-909.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading