Skip to content

Octatrack base 0.7.7: skip the delay transfers of quiet tracks, and machine voices book the bank's real effects (#1666) - #1642

Merged
repeat98 merged 36 commits into
mainfrom
improvement/octatrack-delay-idle-skip
Nov 17, 2026
Merged

repeat98 merged 36 commits into
mainfrom
improvement/octatrack-delay-idle-skip

Conversation

@repeat98

@repeat98 repeat98 commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

Octatrack base 0.7.7, identity b3be9a5f, ships two changes in one base (owner, 17 November):

  1. This PR: the base leaves out the stock delay routine's ring transfers, filter and mix for tracks whose delay has nothing to play.
  2. Improvement: Octatrack machine voices book the bank's real effects, base 0.7.7 #1666, merged in unchanged: a machine's DSP voice books each effect slot at what the bank's Parts use there, not at the dearest stock effect, and gives way at a bank load. Its description has the details. Merging this PR brings Improvement: Octatrack machine voices book the bank's real effects, base 0.7.7 #1666's commits to main.

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_read0 at 0x4000332a, mw_delay_read at 0x400035ba, mw_delay_idle at 0x4000362a) and 25 words of state (mw_delay, status.c):

  • A frame counts as quiet when its read brought silence in both taps into a silent filter, with the send's gain at zero. Silence is every word within 2,048 counts of zero (-120.4 dBFS), not zero itself (see below). 16,384 quiet frames in a row mean the whole ring is silent.
  • From then on the track's read is not started, the seam applies only the dry gain (in the routine's own EMAC mode, with stock's ramp) and jumps past the ring write.
  • A send that opens on such a frame gets zero taps and runs stock's own path.
  • A call that did not pass the seam (a module taking stock's seam at 0x4000361a, as Tape Echo does) starts the count again. Tape Echo's site ends where the new seam starts; catalogue_overlaps passes.

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.

  • A first floor of 680 (-130 dBFS) left two of three fed tracks on the unit on stock's path: their filters stuck at -1,404 (stock's resting point at the default DELAY settings; the harness finds the same value) and -758/-700.
  • So the floor is 2,048 (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 new TOL=n lets audio, filter state and ring words differ by up to n and reports the largest difference; everything else must still match exactly.

3,000,000 frames floor 680 floor 2,048
result PASS (TOL=680) PASS (TOL=2048)
largest audio difference -137.3 dBFS -134.4 dBFS
largest filter state difference -131.9 dBFS -123.3 dBFS
largest ring difference -138.7 dBFS -129.2 dBFS
eDMA transfers a frame (stock 32.0; exact-zero build 23.4) 14.8 14.0

NODELAY=1 (300,000 frames, no DELAY ever fed): no word differs.

MKII (dev unit, --dev twins 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.

CPU meter 680 twin 0f487c37 2,048 twin 745efb59
before, stopped 37.8–38.0 % 37.6–37.8 %
every send open, playing 48.2–51.7 % 47.7–52.2 %
sends shut, playing (settled within about 7 s) 42.5–43.7 % 40.3–41.4 %
after, stopped 38.8–39.0 % 36.3–36.5 %
fed tracks that went quiet 1 of 3 3 of 3
  • Tape Echo 0.1.6 as a USB trial on T1 (with trigs): ran while playing (meter about 50 %); its sound was not listened to. Back to DELAY, T1's filter restarted at zero; 37.3–37.4 % stopped with Tape Echo still installed. The trial rolled back by itself; no new crash or stall record.
  • Soaks on the 2,048 twin, playing: 32 cycles in 10 minutes of opening the sends of all or a random subset of tracks and shutting them (meter 42.1–48.2 % open, 39.9–41.7 % shut), then 30 minutes with every send shut (40.5–41.9 %). About an hour since the boot, no new stall or crash record.
  • An older project of the owner's (all four Parts FILTER and DELAY, few tracks with a sample): the same send cycling (32 cycles, 40.8–46.9 % open, 39.0–39.9 % shut), 20 Part changes in 10 minutes, and 54 FX2 picks on random tracks while playing (DELAY, SPRING, DARK and PLATE REV, CHORUS, NONE; 19 DELAY picks fed for 2–5 s), every pick running within 120 ms. No new stall or crash record, about 90 minutes after the boot.
  • A track recorder (T1) recording while T1–T3's sends opened and shut: nothing new recorded; T1's filter settled inside the floor (-1,179).
  • An older stall record (frames stopped 26 minutes into some boot, FX2 NONE on T1) is on the unit; it has no boot number. The 680 twin's one restart today followed a power blip on the shared supply, with no crash record.
  • Exact-zero build, 16 November (an earlier twin): 44.9 → 18.6 µs a call with all tracks quiet; meter 41.2 → 33.8 % stopped; USB recordings bit-identical on echoing and dry tracks, after FX2 DELAY to NONE and back, and within the last few bits when a send opened from the quiet state.

The 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):

result
delay skip 9 cycles in 3 minutes of opening and shutting the sends: 40.3–45.7 % open, 39.8–40.4 % shut, as on the 2,048 twin
#1666: voices on core 0 beside a light bank (FILTER on every track, CHORUS on T6) T5 and T6 took Analog BD (before #1666, core 0 had no room for one); T7 and T8 were refused with the DSP FULL box (+23 %, DSP 116 %)
#1666 test 1: playing with those voices a minute, no new stall or crash; core 0 58–61 %, core 1 46 %, CPU meter 58 %; sound not listened to
a heavy stock effect picked beside the voices DARK REV on T8 refused with DSP FULL (+8 %, 101 %); the voices kept playing, no stall
#1666 test 2: a bank change to a heavier bank that drops voices not run: every live pick is checked, so a bank naming the voices and effects too heavy for them can't be built from the panel (it needs a Part paste or a project made elsewhere); #1666's host tests cover it
#1666 test 3: the timing of a dropped voice against the new bank's effects not run (needs test 2 and an audio recording)

A twin's rows/analog-bassdrum-work package 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, as check_engine_price expects. 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, then octatrack: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 its requiredBase moved. 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): PRREADY

Not done

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-work package is the controller alone, and the base refuses its pick without a box. Added to docs/OCTATRACK_DRIVING.md beside 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's Machine logs every peripheral write until endPeripheralWriteLog() 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

repeat98 and others added 4 commits November 16, 2026 21:48
…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>
@github-actions github-actions Bot added the enhancement New feature or request label Nov 16, 2026
repeat98 and others added 25 commits November 17, 2026 08:32
….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>
repeat98 and others added 7 commits November 17, 2026 11:40
…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 repeat98 changed the title Improvement: the Octatrack base skips the delay memory transfers of quiet tracks Octatrack base 0.7.7: skip the delay transfers of quiet tracks, and machine voices book the bank's real effects (#1666) Nov 17, 2026
@repeat98
repeat98 marked this pull request as ready for review November 17, 2026 13:01
@repeat98
repeat98 enabled auto-merge (squash) November 17, 2026 13:01
@repeat98
repeat98 merged commit 46b979d into main Nov 17, 2026
26 checks passed
@repeat98
repeat98 deleted the improvement/octatrack-delay-idle-skip branch November 17, 2026 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant