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
8 changes: 8 additions & 0 deletions docs/verification/2026-11-29-rytm-hh-alloy-0-1-0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Analog Rytm MKII: HH ALLOY (hh-alloy) 0.1.0-experimental package — 29 November 2026

chevyone's HH ALLOY (`hh-alloy`) 0.1.0-experimental, a 6-bit ROM hi-hat on slot 41 (the CH/OH voice), gets its first source-only OS 1.74 package. It is pinned in `sdk/imports/elekloader-hh-alloy-2026-11-29.json` (commit `ec0e084ec`) and recorded in `sdk/imports/hh-alloy-0.1.0-2026-11-29.json`.

- **Build:** `scripts/build-elemod-isolated.sh` in `modwerk-source-tools` (image `81b0c4b6…`) from a clean checkout of `9f82e2bc9`, the source the package commit carries (recipe sha256 `aca3b235…`, source tree `e1ec2a5a…`). Exported with `package-elemod-recipe.mjs`.
- **Package:** `hh-alloy-0.1.0-experimental-os1.74.elemod` `94b25152…4214`, the same bytes in `sdk/imports/packages/hh-alloy/` and the vendored catalogue (`npm run elekloader:update -- --overlay`).
- **Checks:** host tests pass (`tools/run_host_test.sh`: the voice's 21 checks and the kept synth engine's); `module:doctor` green.
- **On a unit:** the author's MKII, HA21 and HA22 (this voice on the development voices base `879c6c23`, RAM-booted, nothing flashed): one voice's CPU (2.27 % of a block mean, 3.06 % at the dearest block) and the author's listening (module TESTING.md). This package has not run alone on a unit.
674 changes: 674 additions & 0 deletions sdk/analog-rytm-mkii/modules/hh-alloy/LICENSE

Large diffs are not rendered by default.

65 changes: 65 additions & 0 deletions sdk/analog-rytm-mkii/modules/hh-alloy/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# HH Alloy

## Overview

HH ALLOY, a digital hi-hat for the Analog Rytm MKII (OS 1.74), by @chevyone. Version 0.1.0-experimental.

One open hat, played from a small sample ROM: chevyone's own hit, 500 ms, mono, kept at 6 bits and read at 32 kHz, the depth and fixed hat clock of the early-80s drum machines' hat ROMs. The quantisation and the reading's images give it the grain of those machines. An envelope shapes it from a closed hat to the whole ring, the strike's first milliseconds and the colour can be pushed, and the voice's stream then goes through the track's own analog filter, AMP and OVR, as Analog BD's does. It costs about 2.3 % of the audio block while it rings (3.1 % at its dearest block), measured on a MKII.

## Controls

| A TUN | B DEC | C STK | D COL |
| --- | --- | --- | --- |
| **E** – | **F** – | **G** – | **H LEV** |

- **TUN**, Tune: the ROM's reading rate, centred at 64 (32 kHz), 3/8 of a semitone a step over ±0.625 octave. Faster is higher and shorter, slower lower and longer: at 127 the hit lasts about 324 ms, at 0 about 771 ms.
- **DEC**, Decay: the envelope over the hit's own ring. 127 leaves it open: the hit sounds as recorded, all 500 ms. Lower closes it: it holds for a twentieth of its fall (at most 20 ms), then falls 60 dB in 132 ms at 0 up to 1.5 s at 126, evenly on a log scale.
- **STK**, Strike: the hit's first 6 ms. 64 as recorded, 127 up to twice as loud, 0 down to nothing.
- **COL**, Colour: a tilt around 2 kHz. 64 as recorded, 0 darker, 127 brighter.
- **LEV**, Level: the voice's level into the filter, as every Rytm machine has.
- E, F and G have no parameter. The page still draws their dials, unlabelled; turning them does nothing.

**Velocity** plays the hit louder (127 at full, 100 at 82 %, 30 at 37 %) and with more strike (STK up 1 for every 2 of velocity over 100, down below).

**Locks and turns.** DEC, STK and the velocity are taken when the hit starts and hold for the hit: a step locked to a long DEC rings out even when the next step goes back to a short one, so closed and open hats alternate on one track. TUN and COL follow a turn or a lock while the hit rings, gliding over about 5 ms.

## Usage

The CH and OH tracks' machine lists, in the HH section (FUNC + SRC). CH and OH share one voice, as on stock, so a closed hat on CH cuts an open one on OH: the new hit starts from where the old one's level is, without a click. Only that voice runs HH ALLOY, so at most one rings at a time.

### Quick tutorial

1. Select the CH track, press FUNC + SRC, choose HH ALLOY in the HH section and press YES. Play the pad: the whole open hat.
2. Put a trig on every 16th step and turn DEC down to 20 for a closed hat.
3. Lock DEC to 127 on steps 3, 7, 11 and 15 (hold the trig, turn B): open hats between the closed ones, on one track.
4. Turn STK up for a harder stick, COL down for a darker hat, TUN down for a lower, longer one.
5. Choose HH ALLOY on the OH track too: a closed hat on CH cuts the open one on OH, as stock's hats do.

### Changes to stock flows

None: HH ALLOY is a machine of its own in the machine list. Choosing another machine, kits, sound locks and saving work as for a stock machine.

## Compatibility and limitations

- Built for OS 1.74 on the Modwerk base's digital voices (the voices variant; send-bus when the set also holds a send effect). It takes machine slot 41 and nothing else: no stock site, no key gesture.
- The CH/OH voice only: not CY or CB.
- E, F and G show unlabelled dials that do nothing: the base draws a dial for each of a machine's eight knobs, and the hidden slot 41 has a stock record for each. Showing them as stock's empty boxes needs a change in the base.
- The hit keeps its own DC offset (about 4 % of full scale): at 6 bits its quiet tail rides on it and rings to the end; taken out, the tail rounded to silence from 430 ms.
- Memory: about 18.7 KB of the shared module area (the 16 KB ROM most of it).

## Tests and measurements

Host tests of the voice (`tools/rom_test.c`); on a MKII the pinned package passes the seven cases (beside SY RAVE and SY MONO too), a project save and a power cycle, and the CPU: [TESTING.md](TESTING.md).

## Authorship and licences

Original work by chevyone, GPL-3.0-or-later ([LICENSE](LICENSE)). The hit in `src/ha_rom_table.h` is chevyone's own sound, made from a synth patch with no factory sample or recording, and released with the module under the same licence; `tools/gen_rom.py` turns the recording into the table. The build carries no Elektron code or tables and no instrument's samples.

## Screens and audio

Captured on a MKII running HA24 (the pinned package alone on a development base, RAM-booted), the screen read over USB ([capture.json](media/capture.json)):

- ![HH ALLOY in the machine list](media/machine-list.png) HH ALLOY in the HH section of the CH track's machine list (FUNC + SRC).
- ![HH ALLOY's SYNTH page](media/synth-page.png) The SYNTH page.

No audio yet.
61 changes: 61 additions & 0 deletions sdk/analog-rytm-mkii/modules/hh-alloy/TESTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# HH Alloy testing

Record only what was observed, on a named build.

## Host tests (0.1.0-experimental, 28 Nov 2026)

`tools/run_host_test.sh` builds the voice (`src/ha_rom.c`, `tools/rom_test.c`) for the host with dsp.h's EMAC model and UBSan and runs it; on this macOS it needs `HA_CFLAGS="-isysroot …/MacOSX26.5.sdk"`. All 21 checks passed:

- The table: 16,000 samples at 32 kHz (500 ms), every one a 6-bit value. TUN 64 reads 2/3 of a table sample an output sample (32 kHz); TUN 0 and 127 move it −750 and +738 cents.
- DEC 127 follows the table's own fall (the gain moves 0.58 dB from 100 to 400 ms) and the hit ends with the table at 497 ms. The last 32 ms step at most 0.006 a sample against a 0.68 peak: no click at the end. DEC 0 is under −90 dB after 300 ms; DEC 64 rings 68 dB louder than DEC 0 from 200 to 300 ms. A DEC change after the hit leaves its tail as it was.
- STK 127's first 4 ms are 4.3 dB over STK 64's, STK 0's first 2 ms 14.6 dB under; after 10 ms STK changes nothing. COL 0, 64 and 127 brighten it in order. Velocity 127 is 8.6 dB over velocity 30.
- The defaults at velocity 127 peak at 0.68; every knob at its ends peaks at 0.70 and never wraps. The mean is 0.011: the hit's own DC, kept (README). TUN 127 ends at 325 ms, TUN 0 at 766 ms. A retrigger starts no louder than the ringing hit.

## Test procedure: hh-alloy 0.1.0-experimental, 2026-12-01 (the pinned package)

Build: revision `c2e582ffa`, image `HA24` SHA-256 `c541926e4e29f3167e666d73470bc606567d8190f049bc836f3546579e655f27`: the pinned package `hh-alloy-0.1.0-experimental-os1.74.elemod` (`94b25152`) alone on a voices development base built from main (`d430033c`), linked by `scripts/link-image.mjs` from the package, not from source. `HA25` SHA-256 `6551fab2cd650d38e40e6e83f55fa4b41a32845a6b5fd7664ff6e091b46780d3`: the same with the pinned SY RAVE and SY MONO packages, the same store layout.

`npm run test:procedure -- analog-rytm-mkii:hh-alloy --package HA24.syx --link --emu DTBOOT`: steps 1 (module:doctor), 3, 5 (rytm-emu: the page case; the six sound cases are the unit's), 6 and 10 (ident: the flashed DV01 unchanged) passed. Step 7 stopped before its first case because the runner's `python3` had no numpy; the same command, `rytm_test.py unit cases/hh-alloy --label DV01 --image HA24.syx --allow-state-change`, then ran from the agent's virtual environment on the image the procedure had RAM-booted. Steps 2, 4, 8 and 9 have no Rytm tool yet; step 9's whole-unit load was not measured (the slot meter gave 2.27 % for this voice on HA21).

Cases on the developer's MKII (OS 1.74, flash DV01, a scratch project; CH output over USB, dBFS):

| Case | Result |
| --- | --- |
| page | pass: TUN DEC STK COL, three unlabelled dials, LEV (reference re-recorded: the stored one was HA01's page) |
| select | pass: −79.5 while choosing, then one hit at −13.0 |
| decay | pass: `len20` 43 / 127.5 / 257.5 ms at DEC 0 / 90 / 127; −80.7 after a short hit |
| dec-hold | pass: `len20` 128.0 with DEC set to 0 50 ms into a DEC 90 hit, 128.0 left at 90 |
| choke | pass: the open hat's tail 400 ms in −80.1 when a CH hit came 150 ms in, −51.5 alone (the case now checks the tail by 25 dB; the first design's `len20` test cannot tell a choke for this hit, which falls 20 dB in 258 ms on its own) |
| velocity | pass: −30.5 at 30, −10.0 at 127 |
| beside (HA25) | pass: SY RAVE on BD and SY MONO on SD (their pages read on the unit) hit with HH ALLOY on CH: CH −13.2 alone, −12.9 with both, `len20` 258.5 both times, no dip |

After merging main with the Rytm base-next (#1934), 2 Dec 2026: `HA26` SHA-256 `42e6c289d87e717f5cbd5b49cb283f941a8591f7ce11b19f1f801aaed8c1d0f7`, the same pinned package on a voices development base built from the merged tree (`5dcbcf6f5`, dev base `7814615b`), RAM-booted on the same MKII: page, select, decay, dec-hold, choke and velocity pass (CH −12.95 dBFS, `len20` 43 / 127.5 / 257.5 ms at DEC 0 / 90 / 127, choked tail −79.9 against −51.7). `HA27` SHA-256 `2fa69e3c4e1054ade9f0d38e8783f6dbcde16425ad7e02b0de0a595327d3e4d9`, HA26 with the pinned SY RAVE and SY MONO: `beside` passes (CH −12.96 alone and with both, no dip).

By hand, the developer on the unit with HA24 (reported): HH ALLOY on CH and OH, knob values set on both and DEC locked on steps 5 (CH) and 11 (OH); the project saved, the unit power-cycled (it came up on the flashed DV01, where the agent's capture showed the CH track's eight knobs as stock's empty boxes: the base without the module shows nothing and does not hang); HA24 RAM-booted again and the project loaded: "todo vuelve", both machines, their values and the locks.

## Builds

On the development base's voices variant (`879c6c23`), linked by `scripts/link-image.mjs` on stock OS 1.74, store layout 0x92b7e214:

- `HA21`: the ROM voice as a prototype beside the synth engine of the earlier designs (`-DHA_ROM`), sha256 `123d5e153b6f068981b6438e58bad3d94758dc847b7cddccf434e99b4820aa4a`.
- `HA22`: this version, sha256 `42906dbb2e872144cab4609c6f0ef89e5d4bbc258ad9d4f0cb6e16736276a884`, ramSpare 86,528 B against 105,256 B for the base alone (18,728 B for the module). HA22 adds to HA21 the fade of the table's end in playback, the single type and the unlabelled E, F and G; its voice is the same.

## rytm-emu (2ac0f1f, 28 Nov 2026)

HA22, two scratch cases (not in the repository): HH ALLOY chosen on CH, notes with DEC, STK, COL and TUN at their ends, then the link still answers and slot 41's meter counted blocks: pass. The SYNTH page reads TUN DEC STK COL above, three unlabelled dials and LEV below. The six cases in `sdk/machines/analog-rytm-mkii/tools/cases/hh-alloy/` need a unit (sound): not run.

## Unit (28 Nov 2026)

One MKII on OS 1.74, its flash holding the development base SC02; every build RAM-booted over the link (`rytm_link.py ramboot`), nothing written to the flash.

- `HA21`, the base's `mw_voice_meter` for slot 41, the developer's pattern on pad 10 (OH), 10 s: 2.27 % of the audio block mean over 9,429 blocks (the voice rang 63 % of the time), the dearest block since boot 3.06 %. By ear, the developer: "the best hat I've ever heard"; with DEC at 127 the end of the hit clicked.
- `HA22`, by ear, the developer: no click at the end with DEC at 127.
- `HA23` (29 Nov 2026): HA22's voice with E, F and G marked as having no parameter (`MW_VOICE_NONE`, names 0), linked on a voices development base built from the base change in repeat98/modwerk#2402 (`7a0920789`, dev base `3168fcf2`), sha256 `00342a00c3e18cf3ff96550fdac9b10de85309b67c134a5652311fc6f6ef89a3`. The developer, on the unit: HH ALLOY opens on pads 9 and 10, and E, F and G show stock's dithered boxes, as on CY CLASSIC. In rytm-emu the same image passed that base's `knob-none` case (CCs, turns and a lock on E, F and G change nothing; TUN takes all three). This version keeps the unlabelled dials until that base is in `main`.

The design before this one, the synth engine (twelve sine partials and three noise bands, HA06 to HA20 on the same unit and day), measured 8.8 to 10.6 % mean and 13 to 15 % at the dearest block, and the whole unit at 81.2 % mean against 68.5 % with stock's OH CLASSIC on the same pattern (`core_audio_load`, HA17); that cost is why the hit became a ROM. The synth engine left the folder before this release; Git history keeps it.

A lesson for C or assembly in a voice: HA16, with inline assembly that loaded `%0` (a `"+m"` operand: the struct's first word) where it meant `%1` (its address), hung the unit at the first note; a power cycle brought SC02 back. rytm-emu gave `FAULT vector 4` on the same image and passed the corrected one (HA18), whose assembly then matched its C on every block (3,718 blocks, 0 differing words). Run a new image in rytm-emu before the unit.

## Not tested

- The whole unit's load with this voice (`core_audio_load`), a Part or kit reload while it rings, the analog filter after the voice by ear, a soak.
61 changes: 61 additions & 0 deletions sdk/analog-rytm-mkii/modules/hh-alloy/build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"schemaVersion": 1,
"sources": [
"src/machine.c",
"src/ha_rom.c"
],
"defsym": {},
"cflags": [],
"weak": [],
"subscribe": [],
"contribute": [
{
"to": "core_machines",
"order": 50,
"data": "00000000",
"relocs": [
[
0,
"abs32",
"sym:hh_alloy_machine",
0
]
]
},
{
"to": "mw_voices",
"order": 50,
"data": "00000000",
"relocs": [
[
0,
"abs32",
"sym:hh_alloy_voice",
0
]
]
},
{
"to": "mw_machine_sections",
"order": 50,
"data": "29070000",
"relocs": []
}
],
"collections": {},
"copied": [],
"regions": [],
"claims": [
"machine:41",
"ui:SYNTH page of the HH ALLOY machine"
],
"requires": [],
"derive": null,
"releases": {
"1.74": {
"defsym": {},
"cflags": [],
"sites": []
}
}
}
7 changes: 7 additions & 0 deletions sdk/analog-rytm-mkii/modules/hh-alloy/media/LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Rytm UI documentation captures

The Modwerk contributor (chevyone) dedicates their original capture contribution to the public domain under CC0-1.0. This declaration covers the act of capture and accompanying original captions, not the depicted firmware interface.

Elektron retains rights in its underlying interface and firmware. Module interface additions retain their author's terms in [../LICENSE](../LICENSE). No firmware, extracted stock code, raw memory/framebuffer data, card images or audio samples are included. The images are unmodified firmware-rendered pixels at integer scale.

Manifest identifier: `LicenseRef-Rytm-UI-Documentation`. Capture identity and inputs: [capture.json](capture.json).
28 changes: 28 additions & 0 deletions sdk/analog-rytm-mkii/modules/hh-alloy/media/capture.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"schemaVersion": 1,
"machine": "analog-rytm-mkii",
"moduleId": "hh-alloy",
"moduleVersion": "0.1.0-experimental",
"firmware": "1.74",
"capturedAt": "2026-12-01T12:30:00Z",
"imageSha256": "c541926e4e29f3167e666d73470bc606567d8190f049bc836f3546579e655f27",
"build": "Modwerk's linker (scripts/link-image.mjs): the Modwerk base's voices variant d430033c (development, from main) + the pinned package sdk/imports/packages/hh-alloy/hh-alloy-0.1.0-experimental-os1.74.elemod alone, on stock OS 1.74, --version HA24",
"unit": {
"model": "Analog Rytm MKII",
"method": "RAM-booted over the development base's USB link (rytm_link.py ramboot, image crc 2c40ec48); nothing written to the flash",
"screen": "rytm_link.py's 128x64 screen read at 3x, unmodified"
},
"conditions": "A scratch project's kit 1, HH ALLOY on the CH track, sequencer stopped, GLOBAL > REMOTE CTRL on. Keys sent over the link (rytm_link.py steps).",
"captures": [
{
"path": "media/machine-list.png",
"plan": "cd sdk/machines/analog-rytm-mkii/tools; rytm_link.py steps 'w3000 +TRK CH -TRK w300 FUNC+SRC w700 png:machine-list.png' (the CH track; the list opens on the machine it plays)",
"sha256": "19f272aa26e0dd0cb6607a0647fb47cf5485d49ecfffad6365dcbdd2f21ac83f"
},
{
"path": "media/synth-page.png",
"plan": "cd sdk/machines/analog-rytm-mkii/tools; rytm_link.py steps 'NO w600 SRC w2800 png:synth-page.png' (right after the machine-list plan)",
"sha256": "0b9bbfb4c72daf0fc6335790c339641e1b82ce4c07cff2598e44544073a57197"
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading