Skip to content

Docs: Rytm guide, inline-asm struct operands and the cost of a table voice - #2505

Merged
npp1993 merged 1 commit into
repeat98:mainfrom
chevyone:docs/rytm-voice-asm-note
Dec 2, 2026
Merged

npp1993 merged 1 commit into
repeat98:mainfrom
chevyone:docs/rytm-voice-asm-note

Conversation

@chevyone

@chevyone chevyone commented Dec 1, 2026

Copy link
Copy Markdown
Contributor
  • What was wrong or hard: Building HH ALLOY (HH ALLOY: a 6-bit ROM hi-hat for the Analog Rytm MKII (hh-alloy 0.1.0-experimental) #2420), one build with inline assembly hung a MKII at the first note. It loaded %0, a "+m" struct operand, where it meant the struct's address, so the voice wrote through the struct's first word. The host tests (the C fallback) passed. The Rytm guide warns about saved registers in assembly but not about this operand mistake, and says nothing about what a sample-table voice costs next to a synthesised one.
  • What this changes: One sentence in the "Cost on the unit" item of sdk/machines/analog-rytm-mkii/README.md: take a struct's address from an "r"(&s) operand, and run a new assembly image in rytm-emu first (it stopped on the same image with FAULT vector 4). One more sentence gives the measured cost: a voice played from a short table costs a quarter of a synthesised one (2.3 % against 8.8 % of a block on a MKII).
  • How I checked it: Both facts were observed on the author's MKII and in rytm-emu while building HH ALLOY (its TESTING.md in HH ALLOY: a 6-bit ROM hi-hat for the Analog Rytm MKII (hh-alloy 0.1.0-experimental) #2420). npm run pr:ready passed.
  • What the guides lacked or got wrong, and where I fixed it: the Rytm machine guide lacked these two points; fixed in this pull request.

🤖 Generated with Claude Code

…voice

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Dec 1, 2026
@npp1993
npp1993 merged commit c991545 into repeat98:main Dec 2, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants