Repository navigation
Midiverb I/II 0.2.0: all 225 programs, the Midiverb II's choruses and flanges with their LFOs - #2247
Merged
Merged
Conversation
…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>
…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>
…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>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
repeat98
marked this pull request as ready for review
November 27, 2026 17:09
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
d554753c, rebuilt from source and byte-identical to the build he tried. On development twined5474c6of 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.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:
test_values.pyon the value map; on the unit the first row reads the same valuesUnit runs today, the procedure's record and the fixes on the way
statsreadings each (TESTING.md has the table and the script).module:devbuilt 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.--measure-pattern 4. modwerk-c4 is opening a Fix for that default.module:qualify --writereplaced 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)
node generate.mjs --mv2 <rom> --firmware 14000 --states FILEi8051.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 throughoutnode generate.mjs --mv1 … --mv2 … --fex …wordMachine, checked for all 225), differ only in the output taps' lowest bit, the ring ending as the exact halves of the original's wordspython3 verify.py --all --lfo FILEdsp_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 itpython3 test_values.pypython3 verify.py --cycles(a-steptracedsp_host),python3 static.py,npm run perf:audit -- check … --stamppython3 stress.pynpm run device:emulator -- --image <twin MAIN.raw> --emulator ~/.cache/modwerk-local/emu-fresh/adapted/ot_emu --dspon twin 46c30886 with package dc15a006media/midiverb-prog.pngis 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, itsemu-cfbuild,build.py): the shared checkout's archives were older than its toolsmodule:doctorandpr:ready(head6831b76c2): 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 untilmodules:generatecan 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
tickunit (the update on the first program sample and every eighth), andshunits move the ring pointer into and out of each window. The update (mvqLFOU, 123 to 221 instructions once every 8 program samples) rewrites the twoshwords 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.mdsends you to the shared~/.cache/modwerk-upstream/octabamand does not offer the private route that worked:npm run upstream:tools -- --dir DIR --for octatrack, thenmake setupand theemu-cfbuild there, thenbuild.py --native DIR/octabam. On this Mac the shared checkout's archives were older than its tools, sobuild.pyfailed 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 backwardbra" (TRAPS.md) cost one rebuild; the update loops back throughjmp (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