Skip to content

Midiverb I/II 0.2.0: all 225 programs, the Midiverb II's choruses and flanges with their LFOs - #2247

Merged
repeat98 merged 29 commits into
mainfrom
module/midiverb-all-programs
Nov 27, 2026
Merged

repeat98 merged 29 commits into
mainfrom
module/midiverb-all-programs

Conversation

@repeat98

@repeat98 repeat98 commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Midiverb I/II 0.2.0: all 225 programs, the Midiverb II's choruses and flanges with their LFOs. Tested on the owner's MKII; he said "d554753c is tested". Ready for his merge.

0.1.0 has 174 programs. This makes the engine about a third cheaper, puts back the 31 programs that cost too much, and adds the Midiverb II's 20 chorus and flange programs (50-69) with the LFO sweeps its own controller firmware computes. Every program of the Midiverb, Midiverb II and Midifex is in: 63, 99 and 63.

  • Musically: the Midiverb II's flanges and choruses, from slow triangle sweeps to fast sine wobbles, beside every reverb and effect of the three units. A project saved with 0.1.0 opens on the same program. PROG's range follows BANK, so a whole turn runs from the bank's first program to its last on every bank (63, 102, 63). The owner found PROG ending on MV1's last program with the rest of the throw dead, and called the fix "great" in a trial of this exact package.
  • What works, on the owner's MKII (27 Nov 2026): the shipped package d554753c, rebuilt from source and byte-identical to the build he tried. On development twin ed5474c6 of base 0.8.3, the test procedure's steps 1 to 10 passed (step 5, the emulator, left out): device:test, the 120 s soak, compatibility beside 48 modules. CPU price 2.3 % of a frame in use, 0 at rest. Curve on C04: first 2, each 2. 32 of 32 PROG and BANK cases passed by hand. All five screenshots are new hardware captures of this package.
  • Timing on the chip: the dearest program, Midiverb II Modwerk 2/4: import the existing Digitakt and Digitone mods #69, reads 613 chip cycles a sample on core 1 and 593 on core 0. The package declares 632; the cap is 726.
  • Not like the original: the LFO steps once every 8 samples, the pace the emulator uses; what paces the controller on a real unit is not read. The triggered flanges 50, 53 and 57 sweep on their own.
  • Not run: a 0.1.0 Part reopened on the unit (the value map the edge cases read covers it), MAIN and CUE recorded over USB, MIDI, a large set, project save and reload, a Keep and a power cycle.
  • Who acts: the owner, to merge. The step-1 Fix (Fix: the test procedure runs again for an update of a listed module #2338) is separate and can merge first or after.

Tested on a unit: package d554753cf04f, Octatrack MKII, OS 1.40C, development twin ed5474c6 of base 0.8.3; test:procedure steps 6, 7, 8, 9, 10 and the by-hand PROG/BANK cases; the owner's own stage done: he played it in a RAM trial and said "d554753c is tested" (27 Nov 2026).

Edge cases:

Case Why this change makes it a risk How run Result
PROG 1, 30 and 59 on MV1, MV2, FEX 0.2.0 inserts programs; a 0.1.0 Part must open on the same program knobs on the unit, frame record read back pass: MV1 1, 34, 63; MV2 4, 73, 99; FEX 1, 32, 63, as 0.1.0
MV2 PROG 83-102 the added chorus and flange programs knobs on the unit pass: MV2 50-69 in order
PROG past the end on each bank PROG's range follows BANK 140 detents up on MV2, MV1, FEX pass: stops at 102, 63, 63 on each bank's last program
A Part saved with 0.1.0 opened with 0.2.0 stored values read through the same map test_values.py on the value map; on the unit the first row reads the same values not run: it needs 0.1.0 installed and a SAVE, which agents never do
Two or more instances, both cores each instance streams its own program device:test, all eight tracks at once pass: three a core placed, the fourth refused by admission
Unit runs today, the procedure's record and the fixes on the way
  • Timing: the same program on T1 (core 1) and T5 (core 0) against a NONE baseline, transport stopped, three stats readings each (TESTING.md has the table and the script).
  • module:dev built listed effects from the committed page recipe, which still held 0.1.0's PROG count (59), so PROG stopped at 58. Fixed in Fix Fix: module:dev builds a listed effect's page from its manifest when the committed recipe is stale #2317 (merged); this branch's recipes were regenerated by the isolated build.
  • Base 0.8.3's test procedure measured its curve on C01 by default, a light pattern on Dev17 (35.6 % of a frame with stock alone), and refused it. This run passes --measure-pattern 4. modwerk-c4 is opening a Fix for that default.
  • The runner's step 1 refused every update of a listed module until its qualification record named the new version, which only that run can write. This run used the step-1 Fix's two scripts, uncommitted; the record says so. Fix PR Fix: the test procedure runs again for an update of a listed module #2338.
  • module:qualify --write replaced the declared tutorial steps with the access steps. Restored by hand here; a Fix will follow.
What ran, on which build (26 November 2026, emulator and host only)
Claim Command Result
The LFO model is the firmware node generate.mjs --mv2 <rom> --firmware 14000 --states FILE the Midiverb II's 8031 code, run in i8051.mjs (from #2203), writes exactly the model's program bytes and LFO RAM at every one of 14,000 updates for all 20 programs (a full period of the slowest, program 54, is 13,100); lfoUpdate's state equals the firmware's throughout
The words are the original node generate.mjs --mv1 … --mv2 … --fex … LFO programs run in the ring at their own addresses (they span under 9,000 words): 200,000 samples each, bit-identical to the original's 16K; the streamed words, run as the engine runs them (wordMachine, checked for all 225), differ only in the output taps' lowest bit, the ring ending as the exact halves of the original's words
The engine plays the words python3 verify.py --all --lfo FILE all 225 bit-exact in dsp_host, unsplit and split at frames 1 and 7; the engine's LFO state equals the firmware's after each of 14,000 calls, its program words end as the model's; two planted faults fail it
0.1.0's projects keep their programs python3 test_values.py every PROG value 0.1.0 could store (0-58), in every bank, selects its 0.1.0 program; fails on chart-ordered tables
Cost python3 verify.py --cycles (a -steptrace dsp_host), python3 static.py, npm run perf:audit -- check … --stamp modelled cycles: LFO programs 581.8-595.0, every other at most 576.2 (Midiverb II #10), median 397.2; static 325.1; perf:audit passes, stamped on source 81607ed5
Several instances python3 stress.py eight instances, the dear program Midiverb II #69: pass, worst block per core 1,347.5 and 1,326.4
Screens npm run device:emulator -- --image <twin MAIN.raw> --emulator ~/.cache/modwerk-local/emu-fresh/adapted/ot_emu --dsp on twin 46c30886 with package dc15a006 the package's USB trial ran; media/midiverb-prog.png is 0.2.0's message box ("3 .2S MEDIUM BRIGHT") from the emulator's LCD; the other four screens are 0.1.0's hardware captures, unchanged. The emulator is a fresh private build (npm run upstream:tools -- --dir ~/.cache/modwerk-local/emu-fresh --for octatrack, make setup, its emu-cf build, build.py): the shared checkout's archives were older than its tools

module:doctor and pr:ready (head 6831b76c2): every line that can pass without the unit passes. Left, all from the unit run: the CPU price, the frame cost, the qualification, modules:check (the same price and qualification), "Module changelogs" (the generated catalogue still says 0.1.0 until modules:generate can run), the packages, the USB package and their fingerprint.

How the LFO runs on the DSP: an LFO only moves addresses. Steps 4-47 (49-92) sit w words lower, two reads in each window take their place from the interpolation row; every op stays. So an LFO program starts with a tick unit (the update on the first program sample and every eighth), and sh units move the ring pointer into and out of each window. The update (mvqLFOU, 123 to 221 instructions once every 8 program samples) rewrites the two sh words and the two row reads in the program. State in r7+$1c-$1f, cleared with every new program; signature $4d5607. stress.py's test driver kept its call count in r7+$1e, now an LFO's; it moved to r7+$40.

Commits: 8bb922a (the 31 programs), 01c403a (the LFO programs), 44405a5 (version, release notes), 1d8289c (0.1.0's PROG values kept), 32c6ff8 (performance record), 6831b76 (capture note). Earlier: f6d875e (ladders and fused units), 2e01090 (branchless halving).

What the guides lacked: scripts/octatrack-emulator/README.md sends you to the shared ~/.cache/modwerk-upstream/octabam and does not offer the private route that worked: npm run upstream:tools -- --dir DIR --for octatrack, then make setup and the emu-cf build there, then build.py --native DIR/octabam. On this Mac the shared checkout's archives were older than its tools, so build.py failed at link (ot::Machine::sr()) and the archives failed to build (setIoExtension), and the 14 October adapter's uploads timed out on base 0.8.2. The trap "dsp_asm does not assemble a backward bra" (TRAPS.md) cost one rebuild; the update loops back through jmp (r1) as it says. Also: TEST_PROCEDURE.md had no path for a listed module's update (the step-1 Fix adds one).

🤖 Generated with Claude Code

repeat98 and others added 6 commits November 26, 2026 14:40
…ctions

Every unit now adds the reads before it and then does its operation: each
handler sits behind seven unrolled read pairs and a unit jumps in k pairs
before it, so a run costs no DO, no count word and no dispatch of its own.
A load becomes a read: the step before it clears the accumulator (a c
handler), and frame B clears it after storing the input itself. The
halving mask lives in x0, so its and carries the next handler fetch; STN
complements a1 instead of negating. Frame B copies the last outputs instead
of END swapping them, MIX takes the fade path from a register chosen once a
call and loads the dry in parallel.

Bit-exact: verify.py passes all five cases; on all 225 original programs
each engine equals its model, and the old and new program models agree.
Static worst of the 174 shipped: 395.5 to 283.0 executed a sample; of all
225: 474.5 to 342.0. State signature 4d5606 (the program format changed).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The halving adds its 16-bit LSB to a negative word with the 56300 conditional
ALU execution instead of bpl over an add: one instruction fewer a store and
no branch, about 5 modelled cycles less each (cycle-scan model).

A form the released engine never ran: try it on a unit before shipping it
(a wedge or wrong output there falsifies it; the parent commit is the same
engine with the branch). verify.py passes all five cases; on all 225
original programs the engine equals its model. Static worst of the 174
shipped 283.0 to 266.0, of all 225 342.0 to 316.5.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The checks run on c7ccb314f and cf146e4c7: verify.py, stress.py, all 225
original programs against each engine model and against the released
engine output, static and dsp_host costs, the cycle-scan model. The 31
left out measure 400.8 to 477.6 on the released engine, not 558.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The read-ladder engine makes every non-LFO program fit, so OVER_BUDGET goes:
the stream carries all 63 Midiverb, 63 Midifex and 79 Midiverb II programs
(Midiverb II's 20 chorus and flange programs still to come). The 174 programs
already shipped encode byte for byte as before.

verify.py --all streams every program through the engine, unsplit and split
at frames 1 and 7, bit for bit against the model; --cycles prices a steady
call of each with sdk/cycle-scan's model (a -steptrace dsp_host).

Emulator only: all 205 bit-exact; dearest MV2 #10, 326.5 executed instructions
a sample (dsp_host worst block), 576.2 modelled chip cycles (cap 726), median
383.2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…r LFOs (225 of 225)

The 20 programs 50-69 run on the DSP with the LFOs their 8031 controller
computes. An LFO only moves addresses, so these programs run in the ring at
their own addresses: a tick unit runs the LFO update on the first program
sample and every eighth after (engine.asm mvqLFOU, generate.mjs lfoUpdate),
and sh units move the ring pointer into and out of each LFO's window; the
update rewrites the two sh words and the window's two row reads. State in
r7+$1c-$1f, cleared with each new program; signature $4d5607.

Checks, each from the ROMs on this computer:
- generate.mjs --firmware 14000: the Midiverb II's own firmware (i8051.mjs,
  from the Quadraverb draft) writes exactly the model's program bytes and
  LFO RAM at every update, and lfoUpdate keeps its state.
- generate.mjs: the ring plays what the original's 16K play, bit for bit,
  200,000 samples each; the streamed words (wordMachine, now checked for
  every program) differ only in the output taps' lowest bit.
- verify.py --all: all 225 bit-exact in dsp_host, unsplit and split;
  --lfo: the engine's LFO state equals the firmware's after every one of
  14,000 calls. stress.py passes (its driver's counter moved to r7+$40).

Emulator only. Dearest MV2 #69: 330.4 executed instructions a sample
(dsp_host), 595.0 modelled chip cycles (cap 726).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… after the unit run)

Manifest, README and catalogue at 0.2.0-experimental, and the release notes
for players. Not built: the package and the measured price come after the
unit timing on a twin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@repeat98 repeat98 changed the title Midiverb I/II: a third cheaper engine, so all 225 programs fit (draft) Midiverb I/II 0.2.0: all 225 programs, the Midiverb II's choruses and flanges with their LFOs (draft) Nov 26, 2026
repeat98 and others added 7 commits November 26, 2026 17:15
…s all 225 programs)

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

Owner, 26 Nov 2026: "map old values". 0.1.0 gave each bank's programs in
chart order, less the ones it left out, the PROG values 0-58, and held a
bank's last program past its end. Those values now select the same programs;
the 51 programs 0.1.0 left out take the values after them (PROG 60-63,
Midiverb II 60-102), and the message box shows each program's original
number before its name. stream.h's mv_value is each bank's program for every
value; stream.c reads it.

test_values.py checks every value 0.1.0 could store, in every bank, against
0.1.0's order as released; it fails on the chart-ordered tables. The program
words are unchanged (generate.mjs --write passes its check; verify.py passes).
Release notes: the line about old projects moving is replaced.

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

perf:audit passes and is stamped on this source: static 325.1, measured 330.4
executed instructions a sample (Midiverb II #69, dsp_host), 1.36 times DARK
REV and 1.00 times DJ EQ; stress four a core, 2 s. The declared figure and
chip timing come from the unit run.

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
media/midiverb-prog.png now shows 0.2.0's message box, "3 .2S MEDIUM BRIGHT"
(the program's number on the original, then its name), read from the LCD of a
fresh adapted ot_emu running main twin 46c30886 (base 0.8.2) with package
dc15a006 in a USB trial. Provenance in media/capture.json and the media
entry's otUi; caption and alt follow. The other four screens are 0.1.0's
hardware captures, unchanged in 0.2.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
repeat98 added a commit that referenced this pull request Nov 26, 2026
…ale (#2287)

scripts/octatrack-emulator/README.md: when build.py fails to link on
ot::Machine::sr() or the emu-cf build fails on setIoExtension, build from a
private checkout (upstream:tools --dir DIR --for octatrack, make setup &&
make emu-cf there, build.py --native DIR/octabam). Found making Midiverb
0.2.0's capture (#2247): the 14 October adapter timed out on every upload to
a base 0.8.2 twin; the private build took one.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…kage 1c2e43f6, 632 hardware cycles)

PROG stopped at 58 with the committed page recipe (0.1.0's count 59); the
unit builds use the page derived from the manifest (PROG 102).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
repeat98 and others added 12 commits November 27, 2026 16:01
…s the measured 632 hardware cycles

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…f6, the bytes tested on the unit); standalone recipes re-pinned

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… by one; the curve gate refuses 0.8.3's light medium pattern)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…from the bank's first program to its last

MV1 and Midifex have 63 programs, so PROG 64-102 held the last one and the knob turned with
nothing changing (the owner's MKII, 27 Nov 2026). Each frame the module sets PROG's count in its
page to the active track's bank count; the stager's step is 32768 / count, so the throw is the
same on every bank, and 0.1.0's values keep their programs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s the owner tried)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…0.8.3 twin), qualification record written from it

All ten unit-side steps passed, the curve on C04 (first 2, each 2), 32 of 32 PROG and BANK
cases by hand; CPU price 2.3 % of a frame in use, 0 at rest.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…753c; tutorial steps restored after module:qualify

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@repeat98
repeat98 marked this pull request as ready for review November 27, 2026 17:09
@repeat98 repeat98 closed this Nov 27, 2026
@repeat98 repeat98 reopened this Nov 27, 2026
@repeat98 repeat98 changed the title Midiverb I/II 0.2.0: all 225 programs, the Midiverb II's choruses and flanges with their LFOs (draft) Midiverb I/II 0.2.0: all 225 programs, the Midiverb II's choruses and flanges with their LFOs Nov 27, 2026
@repeat98
repeat98 merged commit a185d1e into main Nov 27, 2026
30 of 41 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.

1 participant