Repository navigation
Octatrack base: DSP hook chains, so several packaged DSP machines share a hook site - #1418
Conversation
…re a hook site (repeat98#1098) dsp-sites.json gives site 5 the kind "chain" with its features in call order. The resident stub calls each packaged member in turn (a dormant member is a lone rts), then replays stock; a packaged engine leaves through the chain's trampoline. Engine arrays follow the ledger (MW_ENGINE_FEATURES = MW_DSP_COUNT), and machine controllers are named by their port's "lease" in machine-ports.json (machine_lease_policy.py replaces the Analog BD-named policy). Regions stay ledger-declared per machine. Analog BD's package code is unchanged. Two-member chain test in test_resident_engines. Replayed from the reviewed prototype (3e70e47d..32bbd838) onto current main; generated files are main's here and regenerated in the following commits. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ked (Analog BD, Output Matrix, Sidechain Compressor); Analog BD's recipe recaptured; build.py pins refreshed in the standalone and candidate recipes Analog BD's machine recipe: imageSha256 6d3a27ab -> 44ac9e07 (the base's link moved) and its build.py and machine-ports.json pins. Play Modes' standalone recipe takes only build.py's new pin (its other pins stay 0.1.1's, as its declared lag needs). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…orts' recipes (POLY8, Quantizer, Synth, VECTOR: images unchanged) and Pattern Sample Locks' host recipe Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks Zac, this is the chain I had in mind, and the code reads well: no hook index moves, no module source changes, and the dormant path costs what it does today. Three things before it can go in:
Once it's refreshed it's ready for a run on a unit before it merges. |
…skipUnless per simulator test Review on repeat98#1418. The core-A fault was the harness's: Analog BD's glue takes its voice block from VBASE + 2 * X:$418 (the voice stock is rendering), which the test never set, so the filled random word sent core A's block outside the interpreter's memory. With X:$418 = 0 core A's working path runs to the stock exit (210 instructions, bit-exact placed vs resident), the 160-instruction LIMIT is gone, and the chain test covers Analog BD on both cores. The chain test had its skipUnless twice and the next test none, so that one errored without the simulator; each now has one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # public/octatrack-modules/analog-bassdrum/0.1.7-experimental.mwrm # sdk/machines/octatrack/base-binding.json # src/engine/assets/octatrack-base-variants.json # src/engine/assets/octatrack-base.elemod # src/engine/assets/octatrack-module-packages.json
…; 0.1.7 relinked to it Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
….2 (the same code as 0.2.1) The base moves, so the base-bound package has to be rebuilt; a declared lag keeps a package as it is (octatrack-module-packages.py), so the lag goes and the USB package is 0.2.2: 0.2.1's code, relinked. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@repeat98 Thanks. All three are pushed (
Ready for a run on a unit whenever you have your MKII to hand. |
|
Thanks Zac, all three are in: one Sidechain as 0.2.2 over USB: yes. The card builder is gone since this morning (#1451, #1453), so there's no card placement left for 0.2.2 to differ in, and the USB package should simply carry the catalogue's version. #1453 landed on One question: twwwy noted on the board that What's left is my run on the MKII (Analog BD keyed, Keep/Undo, removal). I'll take this one first, since it's level with |
# Conflicts: # sdk/machines/octatrack/base-binding.json # src/engine/assets/octatrack-base-variants.json # src/engine/assets/octatrack-base.elemod # src/engine/assets/octatrack-module-packages.json
…ds since 0.1.7 test_resident_engines expected 0.1.6's 1,009 (twwwy, on the board): it fails on main as on this branch wherever the DSP assembler is present; CI has none. The chain does not change the engine. Sidechain Compressor's USB package stays 0.2.2 on the rebuilt base (agreed on repeat98#1418). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@repeat98 Thanks, and twwwy is right. My "44 OK" was out of date: I ran it before merging Analog BD 0.1.7 into the branch and didn't run the simulator tests again after the merge. That was my mistake.
Over to your MKII run. |
|
Thanks Zac, and for setting the record straight on the 1,004 words. The test fix is right. #1492 landed this morning and rebuilt the base again, so the branch conflicts with The red My MKII run comes on that refreshed build. |
# Conflicts: # public/octatrack-modules/analog-bassdrum/0.1.7-experimental.mwrm # public/octatrack-modules/output-matrix/0.1.1-experimental.mwrm # public/octatrack-modules/sidechain-compressor/0.2.2-experimental.mwrm # sdk/machines/octatrack/base-binding.json # sdk/machines/octatrack/module-adapters/controller-policies.json # sdk/machines/octatrack/module-adapters/machine-recipes.json # src/engine/assets/octatrack-base-sources.json # src/engine/assets/octatrack-base-variants.json # src/engine/assets/octatrack-base.elemod # src/engine/assets/octatrack-module-packages.json
…ages relinked; Analog BD's recipe recaptured (cd17acc9) and build.py pins refreshed Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@repeat98 Refreshed ( |
|
Thanks Zac. I refreshed this on today's |
|
@repeat98 Since #1564 the build holds a released base to 1.5 MiB, and today's If so, I'll merge Separately, if you'd rather keep the base small: using a per-chain exit pair read inline instead of |
|
Thanks Zac, you're right: since #1564 and #1557 a base up to 1.5 MiB reaches older units as two updates, and Go ahead: merge One addition while you're rebuilding: please drop |
…hain - Generated files taken from main, then regenerated: base 0.7.6 (c14b4d4c...; browser .bin = build_core.py's, c4e40914...; widest layout 1,321,641 bytes, under 1.5 MiB), base-binding, controller-policies, base sources and variants, base-versions. - Analog BD's recipe recaptured against the new base symbols (image cd17acc9, as on f806213). - build.py / machine-ports.json pins refreshed in the machine, standalone, candidate and reconstruction recipes. - Base-bound packages relinked (requiredBase c14b4d4c); Sidechain Compressor stays 0.2.2 over USB (lag removed, as agreed). octatrack:module-packages --check passes. - dsp_packages.py: main's repeat98#1475 already dropped modulation and spectrum from FX. - test_resident_* in the toolchain image: 43 pass, 1 skipped (needs a native DSP host binary the image lacks). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…es since 0.7.5, 50,100 free Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@repeat98 Refreshed (
Ready for your MKII run. |
…achine voices book the bank's real effects (#1666) (#1642) * Improvement: the Octatrack base skips the stock delay's filter and mix on tracks without a DELAY Stock's delay routine filters and mixes all eight tracks' rings every frame, whatever their FX2. A track whose delay gains have rested at dry only for 16,384 frames now skips both loops; its audio, state and ring bytes stay bit-identical to stock's. Base 0.7.5. Co-Authored-By: Claude <noreply@anthropic.com> * WIP: the delay skip decides from the frame's own data (zero taps, zero filter state, zero send) Not for merge as it stands: on the MKII the gain was within the meter's noise. The committed base assets are still the first design's; regenerate before any use. Co-Authored-By: Claude <noreply@anthropic.com> * WIP: the delay routine leaves out the ring transfers of quiet tracks (three sites) Emulator-proven for bytes only; the transfer order on a unit is unproven. Base assets stale. Co-Authored-By: Claude <noreply@anthropic.com> * Docs: the delay routine's A/B harness, what the unit measured, the changelog figure Co-Authored-By: Claude <noreply@anthropic.com> * Improvement: Octatrack machine voices book the bank's real effects, and give way at a bank load A machine's DSP voice booked every effect slot of its core at the dearest stock effect (DJ EQ, 342), so core 0 had 384 cycles left for voices and core 1 829, whatever the bank used. Voices now book the slots as effect picks already do: each slot at the dearest effect the bank's Parts and the tracks name there. Before the allocator plans a bank or project load, a core whose bank no longer fits beside its voices drops them from its last track down; those tracks render silence with the DSP FULL box until there is room. A pick the bank does not name never takes a voice's room. build_core.py --measure-voices (with --dev and --dsp-loader) builds a development twin that admits voices without a cycle charge, so a voice with no hardware price yet can be measured with the meters (#1542). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Keep the migration record from growing Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * The delay skip treats a ring and filter within -130 dBFS of zero as silence Stock's filter never returns to rest once a delay has been sent to, so the exact-zero test kept every fed track on stock's path. A word within 680 counts of zero (-130 dBFS) now counts as silent (owner, 17 November 2026). The harness gets TOL=n, which lets audio, filter state and ring words differ by up to n and reports the largest difference. Base 0.7.6 (main took 0.7.5). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Docs: the delay skip's comments, README and changelog describe the -130 dBFS floor Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix: the delay harness ends the emulator's peripheral write log, which grew 2 KB a frame Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Octatrack base 0.7.6: regenerated, base-bound packages re-bound npm run octatrack:base -- --stock <OS 1.40C> --beta --write: identity 4b463737, package a0b4c14f, fills deb59031. Output Matrix, CC Map, Recorder Loop Fix and Analog BD relinked with --base-only; Sidechain's held 0.2.1 package builds byte-identical under this base (3024353d), so only its requiredBase moved. octatrack:module-packages -- --check --stock: all 37 identical. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Docs: the delay harness README records the floor build's emulator figures Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Octatrack base 0.7.6: size record (801,696 of 851,712 container bytes, +260) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Docs: the delay harness README warns that ot::Machine logs peripheral writes until told not to Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * The delay skip's silence floor is 2,048 (-120 dBFS) On the MKII, 680 left two of three fed tracks on stock's full path: their filters stuck at -1,404 (stock's default DELAY, also the harness's) and -758/-700. 2,048 covers both (owner, 17 November 2026). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Octatrack base 0.7.6: regenerated with the 2,048 floor (75dfb030) Base-bound packages relinked with --base-only; Sidechain's held 0.2.1 still builds byte-identical (3024353d), so only its requiredBase moved. Size record: 801,760 of 851,712 container bytes, +324 since 0.7.5. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Docs: the delay harness README records the 2,048 build in the harness and on the MKII Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Re-anchor the resident port to the new dsp.c and allocator line dsp.c grew by 27 lines above the resident patch's hunks, which are otherwise unchanged; its pin follows. The key bus price now adds to the voices' charge where the allocator reads it, after the voices made way. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Resident key bus check books the slots as voices do The key bus tap is a per-core charge like a voice's engine: modwerk_dsp_keybus_fits now uses voice_slots, as slot_charge is gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Docs: the delay harness README records the 2,048 build's soaks and a recording on the MKII Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Regenerate the beta base as 0.7.7 (a383e0af) with the voice booking; recipes and packages follow Analog BD's recipe recaptured against the new base's symbols (only imageSha256 moves); the base-bound packages relinked: their requiredBase, and Analog BD's and Output Matrix's bytes. 0.7.6 is taken by #1418. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Record base 0.7.7's size (+272 bytes since 0.7.5) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Relink Sidechain Compressor 0.2.1 (held behind 0.2.2) to base 0.7.7 The write lease it links against moved 12 bytes; its package is the controller the base's new trust row was built from, as on 13 November. lagsBehind stays. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Docs: the delay harness README records soaks on an older project (send cycling, Part changes, FX2 picks) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Octatrack base 0.7.7: regenerated with the delay skip and the voice booking (b3be9a5f) npm run octatrack:base -- --stock <OS 1.40C> --beta --write, then octatrack:module-packages -- --base-only. Sidechain's held 0.2.1 (as #1666 relinked it, 49fec100) builds byte-identical under this base, so only its requiredBase moved. octatrack:module-packages -- --check --stock: all 37 identical. Size: 802,108 of 851,712 container bytes, +672 since 0.7.5. stock:branches: no entry into a site's interior. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Docs: the delay harness README records the skip on the combined 0.7.7 twin Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Docs: a machine on a twin needs its whole package built for the twin, not the controller from rows/ Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com>
Generated files take main's side and are regenerated in the next commits. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e recaptured, build.py and machine-ports.json pins refreshed Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…2 stays the USB package as in this PR; sizes recorded (+168 since 0.7.7, 49,436 free) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Refreshed on today's |
…s 0.7.9 Conflicts: took main's base files and rebuilt (octatrack:base --beta --write: base 0.7.9 f6367148, package 076abb50, fills a27efddc), relinked the base-bound packages with --base-only (bytes unchanged, requiredBase moved), merged octatrack-module-packages.json row by row, kept this branch's empty reconstruction recipe (PSL 0.1.9 drops its route), wrote the size record (805,032 of 851,712 bytes, +2,756 since 0.7.8). The changelog, PSL README and module changelog now say base 0.7.9; TESTING.md notes the tested builds were numbered 0.7.8 and predate repeat98#1418. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…after #1418); build.py and page-script pins refreshed Generated base files take main's side and are regenerated next. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…er-track test (#777) - mm_trig_muted (MODWERK_EVENTS only) asks mm_voice_bind for tracks 7..0; OT and OTFX answer 0. runtime.json subscribes it at order 50. - Source: Zac-Kyoti/octatrack-kyoti-fw 19f9dae (sdk/imports/mute-modes-19f9dae.json). - loader_mute_keep_fixture: on the events base, every frame's ev_trig_muted answer equals the resets Mute Modes dropped (244 asks, 94 non-zero; d2-d7/a2-a6 and the stack kept); 0 with nothing or only the ev_mute_keep provider installed. - events.json / HOOKS.md: Mute Modes is ev_trig_muted's reviewed subscriber. - Not yet: qualification for 0.2.3 (needs the USB run), table-owner declaration and base (after #1418), packages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nit, qualification, package d460c7e2 - Source: Zac-Kyoti/octatrack-kyoti-fw 00897f0 (sdk/imports/mute-modes-00897f0.json). - Hardware: the author's MKI, base flashed from a dev build of the site, a dev twin of base 0.7.5 with 0.2.3 as table owner booted from RAM, the release package installed over USB: every mode, solo, power cycle, removal passed. - media/: the unit's LCD read over USB (png step), PROJECT > SYSTEM and MUTE MODE at OT/OTFX/OTFX-T/DT-T. - Package d460c7e2 (2,922 B); 0.2.2's removed. Table-owner declaration and recipe for it (334e3290...), approval PENDING the owner; the base rebuild follows #1418. - The hooks registry row and the fixture's ev_trig_muted checks move to their own pull request (base files). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@repeat98 The hook-slot PR you cleared on #1098: Phase 1's generic DSP hook slots, built as the per-feature chain you approved there ("the chain is what I meant by hook slots"), with the ledger rule as it is.
dsp-sites.jsongives site 5"kind": "chain"with its"features"in call order. The resident stub calls each enabled member's engine in turn (one longbsreach; a dormant member is a lonerts), then replays stock.mw_engine_exit_of(site, core), generated). A member that doesn't render returns, and the track passes on.MW_ENGINE_FEATURES = MW_DSP_COUNT; the dev view stays 4)."lease"inmachine-ports.json:machine_lease_policy.pyreplaces the Analog BD-named policy, andbuild.pyandbase_bound.pyread it.analog_bd_write_lease.pyis untouched (Analog BD's native observations pin it).dsp_asmsubstitutes labels as text, so a label that prefixes another breaks (hwchk1andhwchk16). Receiver labels are padded to three digits, and the reset cursors are generated by the receiver.mainis at 0.7.7; refreshed on 18 November 2026): identitya2c2edb2…, package7052e20c…; the browser.binequalsbuild_core.py's,614b3cb8…. Its widest layout (TRACKS POST) is 1,322,139 bytes, under the 1.5 MiB Improvement: Octatrack base hooks for project, bank and Part loads and saves, and a base up to 1.5 MiB #1564 allows; packed, +168 bytes since 0.7.7, 49,436 bytes of the flash slot free (base-sizes.json).imageSha25620dd04a7….build.py/machine-ports.jsonpins in the other machine ports (images unchanged), the standalone and candidate recipes, and Pattern Sample Locks' host recipe. Play Modes' recipe takes onlybuild.py's new pin, as its declared lag needs.test_resident_*in the toolchain container, after mergingmainon 16 November: 44 tests (43 pass;test_resident_placement's native-host test skips, as the image has no compiled DSP host), with the real resident engine in the DSP56300 simulator.test_two_packaged_engines_share_a_chain_siteputs a second, made-up member (feature 16) beside Analog BD's: each renders only its own tracks, the stack is balanced at the site (stock SP = 0 at site 5 on both cores,ot_emu --dsp-pcwatch), and a mutated trampoline that skips the pop is caught.scripts/build-modules-isolated.shin the toolchain image from this commit, equal the committed ones (same source tree,69376c58…);octatrack:module-packages -- --checkpasses..binequals the native one, every change sits inside a declared site, and the bootloader's Startup Menu recovery stays available.octatrack:module-packages -- --checkpasses.npm run pr:ready: Ready.d3d71297of base 0.7.8 (a2c2edb2, the same build plus--dev), MKII, OS 1.40C, RAM-booted, 18 November 2026, with Analog BD 0.1.7 bound to the twin (0f74258b). Install and Keep: no crash, stall, freeze or skipped track. Analog BD on T1 (project Tresor Prep, B01, one trig a bar) recorded over USB audio: one 52 Hz hit a bar, decaying over ~200 ms, where FLEX gave the loop (13 onsets in 8 s); the chain renders it. T1 back to FLEX, removal accepted, inventory empty. A 20 s trial without Keep rolled back to the empty set (3df50a78). Main's 0.7.7 twin5412b595placed and picked Analog BD the same way. Not run there: a power cycle with the module kept, MKI, a second packaged machine (comes with BlackPyramids).a2c2edb2itself, MKII, OS 1.40C, 18 November 2026. Updated from flashed 0.7.7 (dbdf7e5d) through the site's own base update (local build of this branch): it went through and the unit restarted from flash on 0.7.8 (its USB-audio-off variant931a91bd) with its kept set. Thena2c2edb2RAM-booted: the published Analog BD 0.1.7, Sidechain Compressor 0.2.2 and Output Matrix 0.1.1 installed and kept one by one (no crash, stall, freeze or skipped track); booted again, the card set came back (3 saved, 3 live); a 20 s trial removal of Output Matrix rolled back with all three still in place. Not run on this build: sound (keys need a development build; the twin recording above is the sound evidence), Sidechain's ducking, a cold power cycle ona2c2edb2.docs/OCTATRACK_PACKAGE_DSP_HOOKS.mddescribed one packaged engine per site and a status from 20 October. It now has the chain and the current status. Changelog:changelog/2026-11-03-octatrack-dsp-hook-chains.md.Related to #1098 and #1064.
🤖 Generated with Claude Code