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-12-01-rytm-rave-stab-0-2-0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Analog Rytm MKII: SY RAVE (rave-stab) 0.2.0-experimental package — 1 and 2 December 2026

chevyone's SY RAVE (`rave-stab`) 0.2.0-experimental: it goes quiet once its track's AMP has closed, is offered on pads 1 to 8, rings on several tracks together and costs about 5 % of a block while one rings (six together about 15 %). Pinned in `sdk/imports/elekloader-rave-stab-2026-12-01.json` (commit `ce27a7f48`) and recorded in `sdk/imports/rave-stab-0.2.0-2026-12-01.json`.

- **Build:** `scripts/build-elemod-isolated.sh` in `modwerk-source-tools` (image `81b0c4b6…`) from a clean checkout of `e0cbd2272` (source tree `b7358b52…`). Exported with `package-elemod-recipe.mjs`.
- **Package:** `rave-stab-0.2.0-experimental-os1.74.elemod` `ac7cb38a…66a8`, the same bytes in `sdk/imports/packages/rave-stab/` and the vendored catalogue (`npm run elekloader:update -- --overlay`). It replaces an earlier 0.2.0 package (`bfd5e98b…`, never released) that let one SY RAVE play at a time.
- **Checks:** host tests 38 pass (`tools/run_host_test.sh`).
- **On a unit:** the author's MKII, RV16: this package linked as a prebuilt `--elemod` with main's development voices base `7814615b` (image `f8bc9343…`), RAM-booted, nothing flashed. The author's kit (SY RAVE on RS, CP and MT, stock machines elsewhere) built over MIDI and hit in bursts, then the author's own project played: no hang. One hang on RV16 earlier, right after loading that project, before SY RAVE had rendered a block, was not reproduced (module TESTING.md).
7 changes: 4 additions & 3 deletions sdk/analog-rytm-mkii/modules/rave-stab/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Overview

SY RAVE, a six-voice digital chord machine for stabs on the Analog Rytm MKII (OS 1.74), by @chevyone. Version 0.1.0-experimental: a prototype, played by its author on a MKII.
SY RAVE, a six-voice digital chord machine for stabs on the Analog Rytm MKII (OS 1.74), by @chevyone. Version 0.2.0-experimental: a prototype, played by its author on a MKII.

Six band-limited oscillators play a chord. The chord and its voicing are taken at each hit, so a pattern can lock a progression step by step, and the trig's note transposes the whole chord. DET spreads the voices against each other, WAV runs from saw through square to a narrow pulse, and PCH starts the chord off its pitch at the hit and drops or scoops it in, the zap of a rave stab. There is no filter in the machine: the voice's stream goes through the track's own analog filter, AMP and OVR, as Analog BD's does, so the FLTR page and its envelope make the stab's sweep.

Expand Down Expand Up @@ -51,7 +51,7 @@ SYNTH page:

## Usage

The BD, SD and BT tracks' machine lists, in the SY section (FUNC + SRC).
The machine list of any track on pads 1 to 8 (BD, SD, RS/CP, BT, LT, MT/HT), in the SY section (FUNC + SRC). Put it on as many of them as you like (LT, MT or HT leave the stronger analog voices free): each rings on its own until its track's AMP closes.

### Quick tutorial

Expand All @@ -71,7 +71,8 @@ None: SY RAVE is a machine of its own in the machine list. Its CHD and VOI knobs
- The register is not a parameter a lock or the LFO can reach; a sound lock carries it.
- CHD and VOI turn through 0..127 like any knob: about ten clicks a chord and fourteen a voicing. A knob that steps one name a click needs a stepped dial in the base, which it does not have yet.
- STR sits on sound index 11, where stock machines have DEC, and answers its MIDI CC: a sound saved before 0.1.0's STR strums by its old DEC value (127 the widest strum); set STR to 0 for none.
- One voice costs about 6.8 % of the audio block on a MKII (7.95 % at most); three ringing together about a fifth.
- One SY RAVE costs about 5 % of the Rytm's audio block while it rings (4 % as a saw, 6.5 % for a wide chord high up, 8 % at the dearest block); several share the work, so six ringing together cost about 15 % (measured on a MKII). Six held at once beside a full groove, played chromatically while turning knobs, ran smoothly.
- It goes quiet once the track's AMP has closed (its decay or release done, or the AMP idle) and costs nothing until its next trig. With AMP DEC at INF the chord rings, and costs, until the next hit.

## Tests and measurements

Expand Down
55 changes: 55 additions & 0 deletions sdk/analog-rytm-mkii/modules/rave-stab/TESTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,58 @@ Edge cases: the table above, one row a case (or "Edge cases: none, because …")

- On a unit: the register tap, the sound by ear (the developer is playing it), locks, the filter after it, several voices at once, the CPU meter, a project save and a power cycle.
- In rytm-emu: not run.

## 0.2.0-experimental: quiet after the AMP, lighter, on pads 1 to 8 (1 and 2 Dec 2026)

The author reported the unit hanging with SY RAVE loaded beside other modules, and asked for a low-cost version on every pad. 0.1.0 had no envelope of its own and never fell below the base's −102 dB, so every track that had played it rendered on for good, 6.8 % each.

### Host tests

38 checks pass (`tools/run_host_test.sh`), among them:

- The render against 0.1.0's, kept as `tools/ra_ref.c`: WAV 0 to 127 (both sides of 64), STR 0, 40 and 127, every fourth chord, every register, PCH, three hits on different notes, with TUN (to 127, the top note near 4 kHz), WAV and DET moved while it rings: within 498 LSB, −132.7 dB under full scale.
- The AMP gate (`src/ra_gate.c`): a linear fall closes at its estimate (22 blocks); a hold never closes; a one-pole release closes (36 blocks); a new hit reopens it; an idle amp after a hold closes at once; the grace after a hit ignores an idle amp.

### Unit, RV09 to RV13 (1 Dec 2026)

One MKII on OS 1.74, its flash holding DV01. Each build RAM-booted over the link (`rytm_link.py ramboot`); nothing written to the flash. All on the development base's voices variant `d430033c` (main `7e55ba8ac`). The meter is the base's `mw_voice_meter`, slot 39's record; the machine set over MIDI (CC 15 = 39 on the track's channel; SYNTH knobs are CC 16 LEV, 17 TUN, 18 STR, 19 CHD, 20 VOI, 21 DET, 22 WAV, 23 PCH; AMP CC 78 ATK, 79 HLD, 80 DEC) and played with note 36 or 48.

- RV09 (the AMP gate as SY MONO's, a lighter render, pads 1 to 8): a voice still rendered on at rest, while `ra_amp` read state −1 with record 0/0 on all eight voices at once. Read then as a hold going straight to idle; RV14 (below) shows a hold does not: what set −1 on RV09 was not found. The gate treats −1 as closed after its grace, which the Rytm guide gives only after a choke.
- RV10 (an idle amp closes the gate): blocks a second for slot 39 every 0.25 s after a hit, HLD 0: at DEC 40, 0 after about 0.85 s; at DEC 70, 0 after about 3.4 s; at DEC 127 (INF), rendering on, as it should. Same settings, RV10 7.6 % of a block a voice against 0.1.0 (RV07, booted for the comparison) 8.05 %.
- A probe (RP01, render replaced by a constant): 0.6 % for the base and the module's glue. A second probe (RP02, chosen by DET) split the render: per-block setup 2.8 % (2^x and a divide per note every block), the BLEP's per-sample tests 2.8 %.
- RV11 (a build that let one SY RAVE play at a time, dropped in RV15): the machine on six tracks, AMP DEC INF, each hit in turn: one voice, 7.6 % mean.
- RV13 (steps kept while the pitch holds; between edges a note is a line and a level, only the samples at an edge worked out): mean over 2 s ringing, note 48, LEV 100, STR 0, PCH 64, VOI 0, DET 0 unless given: MIN7 WAV 32 4.89 %; WAV 0 4.03 %; WAV 64 5.01 %; WAV 100 4.55 %; DET 80 4.54 %; EURK 4.64 %; OCT with VOI WIDE 6.45 %; PCH 127 4.56 %; TUN 120 5.88 %. Dearest block since boot 7.87 %. RV12 (the steps kept, and the line only for blocks with no edge) measured 5.85 % for MIN7 WAV 32.
- The author on RV11, a full groove playing, SY RAVE on LT only, played chromatically while turning knobs: the page went slow and the knobs jumped; with LT on its stock machine, fine. On RV13, the same: fine ("Va fino").

| Case | Why this change makes it a risk | How run | Result |
|---|---|---|---|
| A track left on SY RAVE at rest | 0.1.0 rendered for good | meter, blocks a second after a hit at DEC 40 and 70 | pass: 0 within 1 s and 3.4 s (RV10) |
| AMP DEC INF | the gate must not stop a held chord | meter 5 s after a hit at DEC 127 | pass: still rendering (RV10) |
| AMP hold then idle (the author's kit) | no fall record ever sent | read `ra_amp` over the link, then RV10's gate | pass: goes quiet (RV10) |
| SY RAVE on six tracks at once | six ringing at RV11's cost would take half the block | CC 15 on six channels, DEC INF, hits in turn | pass: 14.5 % in all, the link unchanged (RV15) |
| Beside a full groove | the block's spare time is shared | the author by ear, chromatic play and knob turns | pass on RV13 (as reported); RV11 slow |
| Moving TUN, DET, PCH while it rings | the kept steps must follow the pitch | host match test with moves | pass on the host |
| High notes | more edges a block | host match with TUN 127 at +1; meter at TUN 120 | pass: −132.7 dB; 5.88 % |
| Project save and power cycle | the sound's settings and the register in mod storage | the author, RV14 | pass (as reported, below) |

### Unit, RV14 and RV15 (2 Dec 2026), after the review

On main's development voices base `7814615b` (main `74edba5a5`, after the Rytm base 0.7.1 merge, #1934), RAM-booted, nothing written to the flash.

- **RV14 is the pinned package itself:** `link-image.mjs` with the base and `sdk/imports/packages/rave-stab/rave-stab-0.2.0-experimental-os1.74.elemod` (`bfd5e98b…`) as a prebuilt `--elemod`, not the source; image `f73a1d82…`. RV13 had been a local build of the same source.
- **The AMP, slot 39's blocks a second every 0.35 s after a hit on BD (RV14):** HLD 60 with DEC INF, rendering throughout 6 s; DEC INF, throughout 4 s; DEC 100, throughout 10 s; HLD 60 with DEC 60, 0 after 3.8 s; DEC 40, 0 after 1.4 s; DEC 0, 0 within 0.7 s (after HLD 60, 1.4 s). `ra_amp`'s state went 2 (hold) then 3 and stayed 3 after every decay; −1 never showed, nor with a pattern playing and stopped by the author (states 1, 2 and 3 only). The chord rings until the AMP closes. This matches the Rytm guide's note (#2500): state 3 after a decay, −1 only after a choke.
- **A save and power cycle (the author, RV14):** BD and BT held SY RAVE, CHD MAJ, AMP DEC INF, set over MIDI. Saved as a new project, RAVETEST; the Rytm powered off and on (DV01 from the flash), RV14 RAM-booted again, RAVETEST loaded: both tracks SY RAVE, CHD MAJ, DEC INF, a chord on each pad.
- **A takeover by ear (the author, RV14):** the two tracks panned left and right, hit in turn while one rang: no click. The author asked for several to ring together instead of one taking over.
- **RV15 (no takeover, this source):** six tracks (BD, SD, RS, BT, LT, MT) on SY RAVE, DEC INF, hit in turn: 4.0 % with one ringing, 8.5 % with three, 14.5 % with six (2.4 % a voice), the link answering in 16 to 50 ms throughout. Then five minutes of the author's full groove with up to six SY RAVE ringing, played chromatically while turning knobs: the most 14.5 % in all, 9.1 % at the dearest block, the link under 50 ms but once (0.5 s). The author: "solid like a rock".

### Unit, RV16 (2 Dec 2026): the released package and the set that hung

RV16 is the package `ac7cb38a…` (this source, built in the isolated container) as a prebuilt `--elemod` on main's development voices base `7814615b`; image `f8bc9343…`, RAM-booted, nothing flashed.

- **The set that hung on 0.1.0:** no other modules; the author's kit was stock machines but for SY RAVE on tracks 3, 4 and 7 (RS and CP, which share one voice, and MT).
- **First try (the author):** the project loaded, and the unit hung when the author went to play it; the link logger had seen no SY RAVE block before it stopped answering. Power-cycled by the author.
- **Built over MIDI (RV16 again):** SY RAVE on RS, hit; on CP too, both hit in turn; on MT, hit; then 36 hits in a burst over the three: no hang, the unit answering throughout; left 15 minutes with two voices ringing at DEC INF, then DEC 40 closed both within a second.
- **Second try (the author, RV16 again):** the same project loaded step by step (load, select track 3, pad 3, PLAY, pads 3, 4 and 7 over the groove): no hang. The first hang was not reproduced, and its cause is not known.
- **The author, RV16, afterwards:** four tracks on SY RAVE, played: no crash or hang (as reported).

Not tested: rytm-emu.
12 changes: 10 additions & 2 deletions sdk/analog-rytm-mkii/modules/rave-stab/build.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,20 @@
"schemaVersion": 1,
"sources": [
"src/machine.c",
"src/ra_dsp.c"
"src/ra_dsp.c",
"src/ra_gate.c",
"src/amp_follow.s"
],
"defsym": {},
"cflags": [],
"weak": [],
"subscribe": [],
"subscribe": [
{
"event": "ev_amp_record",
"fn": "ra_amp_follow",
"order": 80
}
],
"contribute": [
{
"to": "core_machines",
Expand Down
24 changes: 12 additions & 12 deletions sdk/analog-rytm-mkii/modules/rave-stab/media/capture.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,32 @@
"schemaVersion": 1,
"machine": "analog-rytm-mkii",
"moduleId": "rave-stab",
"moduleVersion": "0.1.0-experimental",
"moduleVersion": "0.2.0-experimental",
"firmware": "1.74",
"capturedAt": "2026-11-28T01:30:00Z",
"imageSha256": "d7697d672a32fb3176ab582ad00127d64a9af2ad4d80c7decf0418a955058c7b",
"build": "Modwerk's linker (scripts/link-image.mjs): the Modwerk base's voices variant 879c6c23 + this folder's SY RAVE 0.1.0-experimental alone, on stock OS 1.74, --version RV07",
"capturedAt": "2026-12-01T21:20:00Z",
"imageSha256": "f14e0133e0e7f0f2203bdf5fe557718ee2594315e1e81dd07a5c9402f37f463e",
"build": "Modwerk's linker (scripts/link-image.mjs): the Modwerk base's voices variant d430033c + this folder's SY RAVE 0.2.0-experimental alone, on stock OS 1.74, --version RV13",
"unit": {
"model": "Analog Rytm MKII",
"method": "RAM-booted over the development base's USB link (rytm_link.py ramboot, image crc de8e3c72); nothing written to the flash",
"method": "RAM-booted over the development base's USB link (rytm_link.py ramboot, image crc eb2a2786); nothing written to the flash",
"screen": "rytm_link.py's 128x64 screen read at 3x, unmodified"
},
"conditions": "The unit's own kit K001 on the SD track, sequencer stopped, GLOBAL > REMOTE CTRL on. Keys and encoders sent over the link (rytm_link.py steps).",
"conditions": "The author's kit with SY RAVE on the MT track, sequencer stopped, GLOBAL > REMOTE CTRL on. Keys and encoders 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 'FUNC+SRC w600 DOWN*26 UP*3 w500 png:machine-list.png' (the SD track; the cursor from SD HARD down past DISABLE, then up to SY RAVE)",
"sha256": "14e3f91306beabcd1fea5c534de10c10dbf6aa1649b2ed1460cf281d7d170660"
"plan": "cd sdk/machines/analog-rytm-mkii/tools; rytm_link.py steps 'SRC w400 FUNC+SRC w600 png:machine-list.png' (the MT track, already on SY RAVE: the cursor opens on it)",
"sha256": "3a41547e844828b20d2fade9929d20169d01ed1b480ca1c5ea892f60bd31ee81"
},
{
"path": "media/synth-page.png",
"plan": "cd sdk/machines/analog-rytm-mkii/tools; rytm_link.py steps 'YES w2800 png:synth-page.png' (right after the machine-list plan)",
"sha256": "21a4887c9775ab29de9c825e600bde5f96be4d698c45941b17b8f45c7cd2f159"
"plan": "cd sdk/machines/analog-rytm-mkii/tools; rytm_link.py steps 'SRC w400 png:synth-page.png' (the MT track's SYNTH page, as the author left its knobs)",
"sha256": "2fbe9e362a7d58a0129b75beaf553110a039ff572196dec752ebb6417b78e20a"
},
{
"path": "media/chord-name.png",
"plan": "cd sdk/machines/analog-rytm-mkii/tools; rytm_link.py steps 'encC+4 w40' forty times, then 'w100 png:chord-name.png' (after a few larger turns had left CHD at 0)",
"sha256": "454ae318bb0e98c61d9bafe735e746262b252007fca945e5024819e5cc933d6c"
"plan": "cd sdk/machines/analog-rytm-mkii/tools; rytm_link.py steps 'NO w500 nudgeC+3 w100 png:chord-name.png' (after the machine-list plan; CHD three steps up from where it was)",
"sha256": "152ccdf84d1ef93b3ee6805eb6ae3e2697a76348d4f6fe2b0216e8d784ae4658"
}
]
}
Binary file modified sdk/analog-rytm-mkii/modules/rave-stab/media/chord-name.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/rave-stab/media/machine-list.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/rave-stab/media/synth-page.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