Repository navigation
Octatrack base 0.7.7: skip the delay transfers of quiet tracks, and machine voices book the bank's real effects (#1666) - #1642
Merged
Conversation
…x 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>
…o 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>
…(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>
…angelog figure Co-Authored-By: Claude <noreply@anthropic.com>
….7.6 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nd 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>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ilence 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>
…30 dBFS floor Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…h grew 2 KB a frame Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
…ures Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…, +260) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… writes until told not to Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
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>
… and on the MKII Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
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>
…recording on the MKII Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…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>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
…d cycling, Part changes, FX2 picks) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… base 0.7.7 Generated base files taken from #1666 until the regeneration with both changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ooking (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>
… twin Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… not the controller from rows/ Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
repeat98
marked this pull request as ready for review
November 17, 2026 13:01
repeat98
enabled auto-merge (squash)
November 17, 2026 13:01
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.
Octatrack base 0.7.7, identity
b3be9a5f, ships two changes in one base (owner, 17 November):0.7.6 is left to #1418, which claims it.
The delay skip
Stock's delay routine (
0x400031a0) reads two taps of every track's delay ring over the eDMA, filters them, mixes them with the track's audio and writes 128 bytes back, for all eight tracks every frame, whatever the track's FX2. On an MKII that is 44.9 µs of every 362.8 µs frame, about 43 µs of it the transfers and the waits on them.Three base sites in that routine (
status.s:mw_delay_read0at0x4000332a,mw_delay_readat0x400035ba,mw_delay_idleat0x4000362a) and 25 words of state (mw_delay,status.c):0x4000361a, as Tape Echo does) starts the count again. Tape Echo's site ends where the new seam starts;catalogue_overlapspasses.The silence floor (owner's call, 17 November)
Stock's delay never returns to exact zero once it has been sent to: its filter state sticks at a few hundred counts and, with feedback, the ring keeps about one 24-bit step, which stock adds to the track for good. With an exact-zero test such a track never counted as quiet again.
DELAY_FLOOR, -120.4 dBFS of the 32-bit sample words, 8 steps of 24 bits). Once a delay has been fed, the skip is no longer bit-identical: it drops a residue below -120 dBFS. A delay that was never fed stays bit-identical. A filter stuck further out keeps stock's path.Evidence
Emulator (
sdk/machines/octatrack/elekloader/delay-harness/: the whole stock routine against the patched one on random audio, knobs and FX2 changes, with a stand-in for Tape Echo's seam). Its newTOL=nlets audio, filter state and ring words differ by up to n and reports the largest difference; everything else must still match exactly.TOL=680)TOL=2048)NODELAY=1(300,000 frames, no DELAY ever fed): no word differs.MKII (dev unit,
--devtwins RAM-booted, nothing flashed, 17 November). Part 2, FILTER and DELAY on every track, trigs on T1–T3. Steps: SEND up on all eight and play, close every send while playing, then stop.0f487c37745efb59The combined base 0.7.7 on the MKII (twin
5412b595, the older project above, Analog BD 0.1.7 built for the twin as a 15-minute USB trial):A twin's
rows/analog-bassdrum-workpackage is the controller alone (7,016 bytes): with no DSP engine its machine has no price, and the base refuses the pick without a box, ascheck_engine_priceexpects. Testing a machine on a twin needs the full package bound to the twin.Checks
npm run octatrack:base -- --stock <OS 1.40C> --beta --write, thenoctatrack:module-packages -- --base-only. Output Matrix, CC Map, Recorder Loop Fix and Analog BD relinked. Sidechain's held 0.2.1, as Improvement: Octatrack machine voices book the bank's real effects, base 0.7.7 #1666 relinked it (49fec100), builds byte-identical under this base, so only itsrequiredBasemoved.octatrack:module-packages -- --check --stock: all 37 identical. Size: 802,108 of 851,712 container bytes, +672 since 0.7.5.npm run stock:branches -- --stock <OS>: 419 code sites, 0 entries into a site's interior.npm run pr:ready(one test worker): PRREADYNot done
docs/OCTATRACK_HARDWARE_TRAPS.md; that file is 57 KB, over the 40 KB limit, so it needs room made first (its own pull request).What the guides lacked
Nothing said that a machine on a twin needs its full package built for that twin: the twin build's own
rows/analog-bassdrum-workpackage is the controller alone, and the base refuses its pick without a box. Added todocs/OCTATRACK_DRIVING.mdbeside how to listen to a machine on a twin.Nothing said what the delay routine costs on a unit or that its time is its transfers; the harness README records that, the delay-time hysteresis (8 samples, by the direction TIME was reached from) and the residue.
ot_emu'sMachinelogs every peripheral write untilendPeripheralWriteLog()is called. The harness never called it, so it grew 2 KB a frame; a 3M-frame run reached 3.9 GB and was OOM-killed. Fixed in the harness, written into its README.The timing code used for the 16 November µs figures (a return-address swap at the routine's entry) is not on the branch.
🤖 Generated with Claude Code