Skip to content

Mini Verb 0.2.4-experimental: octabam's DSP speed-ups, same output, ~14 % fewer cycles - #2027

Draft
repeat98 wants to merge 16 commits into
mainfrom
module/miniverb-0.2.4-octabam
Draft

repeat98 wants to merge 16 commits into
mainfrom
module/miniverb-0.2.4-octabam

Conversation

@repeat98

@repeat98 repeat98 commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

Mini Verb 0.2.4-experimental (repeat98's module; octabam credited). Same sound, less DSP time: octabam's MINIVERB speed-ups from its DSP audit (Yves Rosius, sambanks/octabam, MIT, Copyright (c) 2026 Sam Banks) on Modwerk's 0.2.3 fork.

What changed

  • 05971e11, af7f4112: every constant delay-tap offset (move #>off,n5) loads right after the access before it, so the AGU's 3-cycle wait for a freshly written n5 overlaps the work between taps. Straight-line code; nothing between the old and new place names n5. AP 113's write at offset 0 is move a,y:(r5).
  • 0a85c45d: #>$XX0000 into a data register is the one-word short immediate (0.75, 0.625, the four 0.5 gains, 127/128 at MIX's and TONE's top, and TONE's 1/16, the last two Modwerk's own code in the same form).
  • 9268e8ed: the clear counter's and RATE's #>$1 are 6-bit immediates.
  • octabam's patch placed 10 of 16 hunks with patch -F0; the input diffusers (Modwerk already keeps y1 for 173 and 449), the clear counter, the 127/128 constants and the duplicate load of line 4's write offset by hand. 0.2.3's source is kept as upstream/miniverb-0.2.3.asm; 0.2.3's TESTING.md moved to evidence/testing-0.2.3.md.
  • Release: version in the manifest, catalogue and package row, the changelog entry, the scan record.

Same output (emulator)

Cost

0.2.3 0.2.4
Cycle scan, dearest (RATE 0.34, min), cycles a sample 698.6 600.4 (-98.2, -14 %)
of them stalls (AGU) 159.3 (96) 71.3 (6)
executed instructions a sample 363.4 362.4
cycle_count.py static loop words = the declared modeled figure 411 402
program words 538 525

The DSP-admission figure. It is declared (octatrack-module-packages.json, cycles/cyclesKind: modeled), and 0.2.3's 411 was exactly cycle_count.py's static loop span. The same measure on this source is 402, so the row now says 402: charged 7/4 = 704 chip cycles (was 720) against the 600 the scan models at the dearest setting. It should not go lower on these numbers: the speed-up saves cycles, not words, and only a chip-cycle (hardware) reading at the dearest setting on the unit could bring the charge down to what it really costs. Keep 411 if you prefer the old margin; nothing else depends on it.

On the unit

Tested on a unit: private build cf610384ad37447fbd9dc5fb59d326edeeafb0fb993f3caf376f3d46f55c5f84 (this source, module:dev --build-only) on a development twin of main's base 13fed04b, the owner's MKII, through the unit queue; the agent's run, not the owner's ears:

  • device:test --soak 120 (on Part 2: Part 1's working copy differed from its saved copy): passed. Self-test with the package installed; FX2 of T1 and T5 admitted in 118 ms; eight tracks at once, five placed and three refused by DSP admission, core peaks 683/678 per mille; 12 of 12 Part switches; 120 s soak, highest core peak 736 per mille; rolled back, inventory unchanged.
  • device:price, in use on T1 FX2 at defaults, same twin and scene: DSP T1-4 +11.7 points (twice) against published 0.2.3's +13.6, about 86 cycles a sample less, in line with the scan's -98 at the dearest setting. At rest: frame +0.0 to +0.1 points (limit 0.2).
  • Not run: steps 1-5 as the runner does them (the approval was missing then; step 4's record is current), step 11 by hand, step 12 (listening, Keep, power cycle: the owner's), the MKI.
  • Put back: the owner session's twin 9138bd29 booted again, empty inventory as found; nothing kept, no Part saved. Its boot took longer than 60 s once but came back. The Part shown after that boot was not checked.
  • Full record in sdk/octatrack/modules/miniverb/TESTING.md.

Release steps (26 Nov 2026)

  • Approval: sdk/approvals/miniverb-build-approval.json now covers 0.2.4-experimental, as proposed above: 0.2.3's waived list and retainedUiVersion, approved by repeat98 on 2026-11-26 ("I approve Mini Verb 0.2.4 as proposed in Mini Verb 0.2.4-experimental: octabam's DSP speed-ups, same output, ~14 % fewer cycles #2027"). sourceSha256 recomputed with moduleNativeSourceSha256 after merging main: still fd169df6…, so the source is the one the owner approved. The declared DSP cost stays 402 (cyclesKind: modeled).
  • Catalogue: modules:generate (module documents).
  • Packages: built in the pinned isolated toolchain image (scripts/build-modules-isolated.sh) and imported (modules:import --development): only Mini Verb's rows moved (525 program words, was 538).
  • USB package: octatrack:module-packages wrote public/octatrack-modules/miniverb/0.2.4-experimental.mwrm (2,718 bytes, SHA-256 cf610384…, byte-identical to the private build the unit runs below); 0.2.3's file is removed as in earlier releases. The full builder ran once the import's one moved input was re-pinned: Tape Echo's and Euclid's standalone recipes now name the new src/engine/assets/dsp-packages.json hash (nothing else in them moved).
  • Release pins: the download guide, the media guide and module-build.test.ts name 0.2.4 (pages and captures unchanged), as 0.2.3's release did; node scripts/cycle-scan.mjs unit --write regenerated the README's unit table (Mini Verb's row now says the unit reading is for 0.2.3).
  • pr:ready -- --draft: everything else green (sdk:check passed); fails only on the two unit items below.

Still open: two unit readings (the unit was not connected for this pass)

  1. Instance curve. Main now refuses an effect release dated from 23 Nov 2026 without a unit-measured instance curve (evidence/frame-cost.json; docs/MODULE_PERFORMANCE.md, "Every release of an effect or a machine measures its instance curve on a unit"). The approval cannot waive a missing curve. So modules:check, module:doctor -- miniverb (its only ✗) and module-doctor.test.mjs fail. At the unit: npm run device:price -- --write --curve T1,T3,T6,T7 --base <id> --scene <text> miniverb, then npm run modules:generate. The record goes in evidence/, which the approval's source hash covers (the packages are not affected), so after that the approval's sourceSha256 moves too.
  2. Module-pool reading. src/engine/elekloader/module-set-memory.test.ts ("prices a package as the loader takes it, as the unit measured") needs at least 10 published packages with a unit reading in docs/verification/2026-11-21-octatrack-module-pool-allocation.json. 0.2.3's package (eea25e6c) was one of exactly 10, so the new package leaves 9. Fix: two rolled-back RAM trials of cf610384 on the unit, recorded in that file as 0.2.3's row was (loader extent expected 16-byte aligned from the 0.2.4 layout: 525 DSP words, was 538).

None of octabam's speed-ups has a unit reading upstream (emulator only): the device:price pair above is, as far as I know, the first unit reading of one of them.

Edge cases

Case Why this change makes it a risk How run Result
Many instances, both cores moved tap loads and a smaller declared cost change what is admitted beside other instances device:test all-at-once pass, eight tracks pass: five placed, three refused by admission, no fault
Part switches while playing every switch re-inits the instance device:test, 12 switches pass
Trig splits and block sizes the reordered loop runs for any frame count identity gate split/, f16/; verify.py all 16 splits pass (emulator)
Payload B, core 1 the same code runs on both cores identity gate B/ (emulator); unit picks on T1 and T5 pass
Sidechain Compressor's key window the ring must still stop at 15,870 words verify.py's guarded renders and its 0.2.2 control pass (emulator)
Install and rollback the package changed device:test trial pass, inventory unchanged
Sound by ear, two instances by ear, Part and project reload, Keep and power cycle only a person at the unit can judge the submitter's stage 12 not run: left to the owner
MKI another model none on this computer not run: no MKI on this computer

Guides: (1) the release procedure does not say that an owner-approved module's update cannot be built or doctored until the owner re-signs its approval, so an agent learns it at modules:generate. Not fixed here (a module release stays free of guide edits); worth a line in docs/MODULE_AUTHOR_UPDATES.md or the update-module skill. (2) device:price labels a published package file (public/octatrack-modules/miniverb/0.2.3-experimental.mwrm) with the checkout's catalogue version: its 0.2.3 run is recorded as "0.2.4-experimental", though the SHA-256 (eea25e6c) is the published 0.2.3. (3) device:test and device:price need MODWERK_DEV_SOCKET/--socket for a serve started with its own socket; the runner sets it, a hand run must. Not fixed here. (4) Nothing before modules:generate says an effect release from 23 November needs a unit-measured instance curve even with the owner's approval (the approval cannot waive a missing curve, only a measured curve's problem): worth the same line in docs/MODULE_AUTHOR_UPDATES.md. Not fixed here.

🤖 Generated with Claude Code

repeat98 and others added 2 commits November 23, 2026 09:47
… immediates, same output

octabam's MINIVERB speed-ups from its DSP audit (Yves Rosius, sambanks/octabam, MIT,
Copyright (c) 2026 Sam Banks) on Modwerk's 0.2.3 fork: 05971e11 and af7f4112 load
each constant tap offset right after the access before it, so the AGU wait for n5
overlaps the work between taps; 0a85c45d short immediates for the #>$XX0000 gains
(and Modwerk's own TONE constants in the same form); 9268e8ed 6-bit #$1. 10 of
octabam's 16 hunks applied with patch -F0, the rest by hand.

Widened identity gate against main's 0.2.3: IDENTICAL, 56/56, no instance-block
difference; verify.py 76/76 (bit-identical to published 0.2.2). Cycle scan at the
dearest setting 698.6 -> 600.4 cycles a sample (stalls 159 -> 71); static loop
words 411 -> 402, now the declared modeled figure. 0.2.3's source kept in
upstream/, its TESTING.md in evidence/.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e agent's unit run

device:test with a 120 s soak passed on an MKII (twin 13fed04b of main, private build
cf610384); device:price in use on T1 FX2: DSP T1-4 +11.7 points against published
0.2.3's +13.6 in the same run. 0.2.3's testing record is in evidence/.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
repeat98 and others added 9 commits November 26, 2026 14:44
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…mported

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…cipes re-pinned to the new DSP package asset

The package is byte-identical to the private build tested on the unit (cf610384).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…0.2.4 (pages unchanged); cycle-scan unit table regenerated

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

# Conflicts:
#	src/engine/assets/module-build.json
repeat98 and others added 2 commits November 26, 2026 21:47
…price --write --curve)

Owner's MKII, development twin 46c30886 of base 0.8.2 (main 48f4a9b), Dev17 C04 (trigs on
steps 1/5/9/13 of T1-T4, T6, T7; stock alone 80.3 % longest frame), picks on C02: first 0,
each 0, rest 0 (adds -1.6, -1.3, -1.3, -0.5: within the readings' scatter); admitted alone on
the empty and the medium pattern, nothing dropped, no stall. Price 0 % of a frame, DSP +12.6
in use. Module pool 3,424 bytes at rest. The evidence moves the native source, so the owner's
approval needs his re-sign.

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

Copy link
Copy Markdown
Owner Author

Mini Verb 0.2.4: the instance curve is measured, so the only thing left is your re-sign of the approval. No player-facing change tonight. The new evidence changes the module's source hash, so the approval you gave no longer covers it.

  • Curve, on your MKII, rolled back: first 0, each 0, rest 0 % of a frame. The readings were within noise (-1.6 to -0.5).
    • Twin 46c30886 of base 0.8.2, main 48f4a9b9c.
    • Dev17 C04: stock alone reads 80.3 %.
    • Admitted alone on the empty and the medium pattern, with nothing dropped and no stall.
  • Price, the same run: 0 % of a frame, DSP +12.6 in use. This replaces 0.2.3's reading.
  • Module pool: 3,424 bytes, in three rolled-back trials. This is the base-0.8 extent; Fix: the module-memory check counts base 0.8's larger module record; pool readings on a 0.8.2 twin #2284 fixed the site's model.
  • Checks: module:doctor fails only on "owner-approved update does not cover this exact native source".
  • Who must act: you. Say yes to the re-sign below, and I write it with this source hash: 8316a480….
The re-sign, ready to commit as sdk/approvals/miniverb-build-approval.json
{
  "kind": "owner-approved-update",
  "id": "miniverb",
  "version": "0.2.4-experimental",
  "approvedBy": "repeat98",
  "approvedOn": "<date of the owner's yes>",
  "waived": [
    "current-build-hardware",
    "chip-worst-case-cycles",
    "complete-memory-bounds",
    "release-documentation"
  ],
  "retainedUiVersion": "0.2.1-experimental",
  "sourceSha256": "8316a4800cf3d222a103c049ba5e6b958903f4b80481fcc82698c0ac57ebc304",
  "ownerStatement": "<the owner's words, e.g. \"I approve Mini Verb 0.2.4 with its measured curve, as in #2027\">",
  "reason": "0.2.3 with octabam's four MINIVERB speed-ups (05971e11, af7f4112, 0a85c45d, 9268e8ed): bit-identical to 0.2.3 under the widened identity gate (56 of 56 settings, instance block included) and to published 0.2.2 in verify.py's 76 checks. OT pages and controls unchanged, so the 0.2.1 captures are retained. Current-build hardware, chip worst-case timing and complete memory bounds stay waived for this exact version only. On the owner's MKII (development twin 46c30886 of base 0.8.2, Dev17 C04 at 80.3 % with stock alone, 26 November 2026): instance curve first 0, each 0, rest 0 % of a frame, admitted alone on the empty and the medium pattern with nothing dropped; price 0 % of a frame, DSP +12.6 in use; module pool 3,424 bytes in rolled-back trials."
}

🤖 Generated with Claude Code

repeat98 and others added 3 commits November 27, 2026 06:51
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…alogue and cycle-scan table regenerated

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

This branch has not been deployed

No deployments
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.

1 participant