Skip to content

HH ALLOY: a 6-bit ROM hi-hat for the Analog Rytm MKII (hh-alloy 0.1.0-experimental) - #2420

Merged
repeat98 merged 14 commits into
repeat98:mainfrom
chevyone:claude/rytm-hh-alloy-8ef55e
Dec 3, 2026
Merged

repeat98 merged 14 commits into
repeat98:mainfrom
chevyone:claude/rytm-hh-alloy-8ef55e

Conversation

@chevyone

@chevyone chevyone commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

HH ALLOY 0.1.0-experimental: a 6-bit ROM hi-hat for the Analog Rytm MKII, ready for review.

  • What it is: a new machine on the CH/OH voice (slot 41). It is chosen from pads 9 and 10, in the HH section of the machine list.

  • The sound: one original open hat by chevyone, kept at 6 bits and read at 32 kHz. Its controls:

    • DEC: the envelope, from a closed hat up to the whole 500 ms ring.
    • STK: the strike.
    • COL: a colour tilt.
    • TUN: the reading rate.

    The track's own analog filter and AMP follow, as for Analog BD.

  • Musically: the hat the author wanted, by ear on his MKII. Closed and open hats on one track with DEC locks, and CH cuts OH as stock's hats do.

  • Cost: about 2.3 % of the audio block while it rings, 3.1 % at the dearest block (one MKII).

  • The empty knobs: E, F and G have no parameter. In this version they show as unlabelled dials that do nothing. The base change in Improvement: Rytm base: a voice machine's knob with no parameter shows stock's empty box #2402 lets a voice show such knobs as stock's dithered boxes, as CY CLASSIC does. HH ALLOY moves to them in 0.1.1, once that base is in main; it was already tried on the author's unit (HA23 in TESTING.md).

  • Who acts: a maintainer, for this first release.

  • Tested on a unit: the pinned package hh-alloy-0.1.0-experimental-os1.74.elemod (94b25152) as image HA24 (sha256 c541926e), on a voices development base from main (d430033c), RAM-booted on the author's Analog Rytm MKII (OS 1.74, flash DV01). The seven cases pass, beside on HA25 with SY RAVE and SY MONO. The author saved a project and power-cycled the unit, and everything came back. After merging main with the Rytm base-next (Improvement: Analog Rytm MKII cumulative base draft for 0.7.1 #1934), the same package passed all seven cases again on 2 December, as HA26 (sha256 42e6c289, voices development base 7814615b from the merged tree; beside on HA27). Nothing was written to flash.

Edge cases:

Case Why this change makes it a risk How run Result
Beside other digital voices hitting at once SY RAVE (BD) and SY MONO (SD) render through mw_voices in the same audio block hh-alloy-beside on HA25, unit pass: CH −13.2 alone, −12.9 with both, len20 258.5 both, no dip
CH and OH share one voice a closed hat must cut a ringing open one without a click hh-alloy-choke, unit pass: the open hat's tail −80.1 choked against −51.5 alone
A DEC lock ends mid-hit DEC is taken at the hit, so the next step's value must not cut a ringing hat hh-alloy-dec-hold, unit pass: len20 128.0 both ways
Choosing the machine a voice change must not sound on its own hh-alloy-select, unit pass: −79.5 while choosing, one hit after
DEC from shortest to open the VCA over the hit's own fall; DEC 127 leaves it open hh-alloy-decay, unit pass: len20 43 / 127.5 / 257.5 ms; silent after
Velocity extremes the hit's gain and strike follow velocity hh-alloy-velocity, unit pass: −30.5 at 30, −10.0 at 127
The end of the 6-bit table at DEC 127 the table's last values can click host test (32 ms fade in playback, largest step 0.006) and by ear on HA22, unit pass
Project save and power cycle with HH ALLOY on CH and OH, DEC locked on some steps the machine, its knobs and locks must come back by hand by the author on HA24, power cycle, HA24 RAM-booted again pass: both machines, values and locks back (reported by the author)
The saved project opened on a base without the module slot 41 is unknown there the author's flashed DV01 after the power cycle, screen read over the link pass: the CH page shows eight empty boxes, no hang (nothing saved there)
The SYNTH page E, F, G have no parameter in this version hh-alloy-page, unit and rytm-emu pass: TUN DEC STK COL, three unlabelled dials, LEV
Whole-unit load the voice adds work to every audio block the base's slot meter for the voice on HA21 (2.27 % mean, 3.06 % dearest block) not run: the whole block's core_audio_load was not located on this base's build; the voice's own meter was read instead
Details
  • Sound source: the hit in src/ha_rom_table.h is chevyone's own sound. It was made from a synth patch, with no factory sample or recording, and is released under the module's GPL-3.0-or-later. tools/gen_rom.py makes the table from it. The hit keeps its own DC offset: at 6 bits its quiet tail rides on it to the end.
  • Package: built in modwerk-source-tools (81b0c4b6) from 9f82e2bc9, pinned at ec0e084ec, vendored. Record: docs/verification/2026-11-29-rytm-hh-alloy-0-1-0.md. The synth engine of the earlier designs left the folder (Git history keeps it). The package rebuilt from the current tree stays byte for byte the pinned one (package-elemod-recipe.mjs --check).
  • Host tests: tools/rom_test.c has 21 checks, all passing with UBSan.
  • Documentation: a tutorial, hardware captures of the machine list and the SYNTH page (media/capture.json), and an original thumbnail drawn from the module's own sample.
  • The test procedure: npm run test:procedure -- analog-rytm-mkii:hh-alloy --package HA24.syx --link --emu DTBOOT passed steps 1, 3, 5, 6 and 10. Step 7 stopped on the runner's python3 without numpy; its exact command was then run from a virtual environment on the same RAM-booted image (TESTING.md).

What the guides lacked or got wrong: two notes for the Rytm machine guide, in their own Docs: pull request. First, inline assembly must take a struct's address from an "r"(&s) operand, not move its "+m" operand into an address register; that hung a unit, and rytm-emu caught it first. Second, a voice played from a short sample table cost a quarter of a synthesised one. The module release itself carries no guide edit.

  • Changing a module someone else wrote: not applicable, chevyone is the author.
  • I read the guide for its category in docs/module-guides/ (and sequencing.md if it acts in time), and TESTING.md lists what I did not test. An effect module holds one effect.
  • Source and media are mine or properly licensed, with authors and full licence texts kept. Nothing comes from Elektron firmware: no extracted code or tables, upgrade files or factory content, and nothing is modelled on another current Elektron product.
  • Screenshots are real captures of the current module UI. Hardware results are what a named person saw on this exact build; emulator results are labelled as emulator results.

🤖 Generated with Claude Code

chevyone and others added 5 commits November 28, 2026 20:02
…-experimental)

One original hit by chevyone, kept at 6 bits and read at 32 kHz through an
envelope, a strike and a colour tilt, on the CH/OH voice (machine slot 41).
About 2.3 % of the audio block while it rings, measured on a MKII (HA21);
the end of the hit fades in playback, heard without a click on HA22.

The synth engine of the earlier designs (ha_dsp.c) stays for reference and
builds with -DHA_SYNTH. Host tests for both, six cases for the new page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…unit with the base of repeat98#2402

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ed source build

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

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

repeat98 commented Dec 1, 2026

Copy link
Copy Markdown
Owner

HH ALLOY is built the way a Rytm voice should be. It adds its machine through the base's tables (core_machines, mw_voices, mw_machine_sections) and patches no stock site. Slot 41 is free on main, and it doesn't wait on #2402. Moving from the synth design to the ROM cut the cost from about 10 % to 2.3 %, which is a good trade. You've listed what's left (the builder pin, a thumbnail, the six cases, pr:ready). Here is what the checks and a first release still need on top of that:

  1. Test the package that ships. The unit runs so far are HA21 to HA23, built with link-image. The pinned hh-alloy-0.1.0-experimental-os1.74.elemod (94b25152…) hasn't run on a unit yet. Please run npm run test:procedure -- hh-alloy on that package, then the six cases. Two more cases matter for this change:
    • Beside another digital voice playing at the same time, for example SY MONO or SY RAVE on BD while HH ALLOY plays on CH. Both run through mw_voices in the same audio block.
    • A project save and a power cycle with HH ALLOY on CH and OH, and DEC locks on a few steps.
  2. The edge-case table in the description. The description check is red because the description has no "Edge cases" line. Under that line, add | Case | Why this change makes it a risk | How run | Result | with one row per case. A case not run yet says why.
  3. Documentation for modules:check. It stops at "require complete documentation, tutorial and capture provenance". Add tests.documentation to the manifest: a short tutorial, screenshots of the machine list and the SYNTH page, and a capture record. Rave Stab's manifest is a good model, and rytm-emu captures are fine for screens.
  4. Ship only the ROM voice. The synth engine kept for reference (src/ha_dsp.c, ha_dsp.h, tools/host_test.c and the HA_SYNTH branches in machine.c) doesn't build into this release, and Git history already keeps it. Please take it out, so the folder holds only what plays.

Then merge main, run npm run pr:ready and mark the draft ready. No device reviewer is assigned to the Rytm yet, so a maintainer reviews this first release.


Generated by Claude Code

chevyone and others added 6 commits December 1, 2026 12:09
… guide on inline-asm operands

The synth engine of the earlier designs (ha_dsp.c, host_test.c, the HA_SYNTH branches)
leaves the folder; the package built from it stays byte for byte the pinned one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nd SY MONO, save and power cycle), captures and documentation

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… in its own Docs pull request)

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

npp1993 commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator

Thanks, this covers everything from the last review. The pinned package, the seven cases, beside SY RAVE/SY MONO and the save/power cycle all look good, and CI is green. One thing before I approve: main has moved on by about 250 commits, including the Rytm base-next (#1934), which changes the base's voice.c dial records and adds the lean engine. Could you merge main, run npm run pr:ready, run the hh-alloy cases once more on a voices dev base built from the merged tree, and add one line to TESTING.md naming that image? Small optional fix: tools/gen_rom.py:9 says "8 bits" where the table is 6.

chevyone and others added 3 commits December 2, 2026 07:03
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s dev base after base-next (review)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@repeat98
repeat98 merged commit 5d29aca into repeat98:main Dec 3, 2026
15 of 16 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.

3 participants