Skip to content

Tape Echo 0.1.8-experimental: cheaper on the ColdFire, bounded under overload - #1976

Closed
repeat98 wants to merge 6 commits into
mainfrom
module/tapeecho-0.1.8
Closed

repeat98 wants to merge 6 commits into
mainfrom
module/tapeecho-0.1.8

Conversation

@repeat98

@repeat98 repeat98 commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

Tape Echo 0.1.8-experimental (author: repeat98, the owner's module; on top of the 0.1.7 draft #1869, which adds the rest): the same sound with less ColdFire work, and a hold that drops a block of echo instead of piling on when the unit falls behind.

Related to #1869. Needs #1975 first: that check fix lets module:doctor's "dsp registers" and sdk:check read a package whose detours rest.

Why

On the owner's MKII (development twin of base 0.7.14, b36f9c53e, 21 November 2026) one Tape Echo on T1 FX2 beside a big installed set added 11.4 points of frame share (50.7 → 62.1 %, longest frame 134 %), the frame guard skipped 165 renders in about 11 s, and about 3 s into the next PLAY MAIN froze and the unit left USB (no crash or stall record; a power-off is possible). At rest it costs 0.4 points. Its audio runs inside stock's delay routine, which the eDMA interrupt calls once a frame with the mask lowered to IPL 5 (0x40004b0e); the chain's last state is what unmasks the frame interrupt again (0x40004bc2), so time spent there delays the next frame, and the frame guard cannot shed it.

What changes

  • Bit-exact. Not a single sample changes: 0.1.8's te_process equals 0.1.7's in every state, audio and record word over 40 million random blocks (two seeds), and the ColdFire matches the native oracle on the emulator.
  • Other effects' tracks leave the seam hook in assembly (14 instructions, was about 37 through the C entry), and their Tape Echo state is cleared once through a live mask instead of a store on every frame.
  • Steady blocks skip the control half. With the six knob words and the tempo word unchanged and no ramp, glide or fade running, targets, gains, ramp steps, motor and fade logic would repeat themselves; te_block runs only the clocks, the head and the audio. Any change takes the full path again.
  • The per-track entry is assembly (te_cpu_hook), the scratch toggle is the constant stock's delay reset writes, and the settled wet and MIX loops fold the next dry load into a multiply-with-load.
  • Overload hold. Each delay-routine call's first Tape Echo block reads stock's free-running DTIM3 (0xfc07c00c, 132 MHz). A call more than a quarter frame later than one frame after the last (59,863 to 95,781 counts) holds every instance for that block: dry untouched, silence recorded, about 60 instructions and 32 stores, no ring read. It needs nothing from the base. Counters in te_guard (24 bytes before te_states): holds, and late, the longest gap under two frames.
  • Package public/octatrack-modules/tapeecho/0.1.8-experimental.mwrm, 112,328 bytes, SHA-256 d5a0bd7b51103d9f8a97a3f4b5c2300ae09d539e9c97932734de468171174b73, row requiresCapabilities: 2048 (judged rests, base 0.7.11 on, as 0.1.7 needs). The standalone recipe is re-pinned to the new image with no stock-copy spans: the stock-run scans are gone (Improvement: Octatrack base 0.7.5 never removes a module whose window is open, and drops the stock-run scans #1475), so the package carries its own compiled bytes whole. Euclid's recipe re-pins only dsp-packages.json's hash, which Tape Echo's row moved.
  • The module-set test's capable base reports judgedRests, which Tape Echo's row is the first published package to name.
  • Version 0.1.8-experimental, changelog, TESTING.md, VOICING.md, README.

Figures (emulator, executed instructions, not cycles)

Per complete eight-track 16-sample delay routine; Tape Echo's own share is the routine minus the stock part (6,869 with one instance).

Case 0.1.7 0.1.8
One instance, default page (TIME 64, WOW 25, MIX 40) 8,944 (own 2,075, 130 a sample) 8,669 (own 1,800, 113 a sample)
One instance, WOW 44, full wet 8,821 (own 1,952) 8,546 (own 1,677)
Awake on no track 7,900 7,724
Eight settled instances 15,283 14,315
Eight instances, moving FREE TIME 15,539 15,580
Eight instances, all controls reversing in BEAT (stress peak) 22,571 22,586

One instance on the default page executes 147 sixteen-byte code lines a frame (173) and touches about 23 lines of state and tables (30); its 17 uncached ring words are unchanged. While a knob moves every block takes the full path: those peaks are within 1 % of 0.1.7's.

Checks

  • Native signal and voice gates (verify_tapeecho_cpu.py's host half): 39 of 39, every value as 0.1.7.
  • ColdFire probe (tapeecho_cpu_probe.cpp, the repository's emulator against the author's stock 1.40C with the two detours written in, TIME formatter test skipped as it needs octabam's full remix build): reset clears state, keys and clock; steady path equals the full path (1 M blocks); kernels against their oracles; eight instances bit-exact over 3,504 blocks, now with a 1,200-frame phase of standing controls (4,385 ColdFire blocks took the steady path); the overload hold on a frame 1.5 frames late; stock DELAY fallback and the complete frame with modelled DMA. All pass.
  • generate_cpu.py --check, npm run coldfire:isa, octatrack-module-packages.py --check (42 identical), elekloader:check, modules:compat, board check, sdk:check (730 cases; only test_dsp_register_contract.py fails, fixed in Fix: the DSP register contract reads packages whose detours rest #1975).
  • Expected red until the owner signs: modules:check ("owner-approved update does not cover this module version", then the UI-capture version check), so modules:generate cannot run and the generated catalogue stays at 0.1.6 (changelog newer than the catalogue, dsp-package.test.ts, module-qualification.test.ts). module-source.test.mjs and module:doctor's "packages"/"package fingerprint" need the isolated Docker package build (scripts/build-modules-isolated.sh and modules:import); Docker was not running on this computer.

Tested on a unit: not yet. Not tested on a unit: the owner holds the MKII; build d5a0bd7b is for the owner to measure.

Edge cases

Case Why this change makes it a risk How run Result
Frame share, one instance, big set playing the reason for the release guard over 8 s, set G of the 0.7.14 run, T1 FX2, against 0.1.7 not run: unit held by the owner
Holds in normal use a false hold is a 0.36 ms dropout of the echo te_guard holds and late after minutes of playing, small and big set not run: unit
Overload the hold must keep the unit alive where 0.1.7 froze the 0.7.14 freeze scene, then three and six instances not run: unit
Knob turns, BEAT switches, tempo changes a steady block must end the moment a control moves emulator: steady path against the full path and 0.1.7; by ear on a unit pass (emulator, bit-exact); unit not run
Another effect picked on a Tape Echo track, then Tape Echo again the live mask must clear the state when the track leaves probe: decline clears it; unit: T1 to DELAY and back pass (emulator); unit not run
Reset of the stock delay keys and the hold's clock must clear with the states probe: 0xa5-filled state, keys and guard after reset pass (emulator)

Guides

What the guides lacked or got wrong: docs/OCTATRACK_HARDWARE_TRAPS.md ("ColdFire and DSP load") and docs/MODULE_PERFORMANCE.md say effect work in stock's delay routine is never dropped, but not where that routine runs: from the eDMA interrupt with the mask lowered to IPL 5, its chain's end unmasking the frame interrupt, so its time delays the next frame; and that stock's free-running DTIM3 lets a module see lateness without the base. Fixed in #1977 (MODULE_PERFORMANCE.md, "The frame share, not the meter, is where renders drop"); the module release itself carries no guide edit.

🤖 Generated with Claude Code

repeat98 and others added 6 commits November 20, 2026 13:54
…eds base 0.7.11)

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

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

Same samples as 0.1.7 (bit-exact on the emulator and against 0.1.7's te_process
over 40 M random blocks). Other effects' tracks leave the seam hook in assembly
with a live mask instead of a state store each frame; steady blocks (same knob
words and tempo, nothing ramping) skip the control half; the per-track entry
is assembly; the settled wet and MIX loops fold the next dry load. New overload
hold: a delay-routine call more than a quarter frame late (stock's DTIM3) holds
every instance for one block. Package rebuilt, standalone recipe re-pinned.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…Echo's resting detours)

Tape Echo's package row names requiresCapabilities 2048 (docs/OCTATRACK_API.md, Resting),
the first published package to: the fixture of a base that takes them all reports it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@repeat98

Copy link
Copy Markdown
Owner Author

Stage-1 unit run of this exact package (d5a0bd7b…), 22 November 2026: owner's MKII, OS 1.40C, RAM-booted development twin f042e4a3 (base 0.7.14 with frame admission, lane 4ce53dc03). Dev17 C01 at 126 BPM, trigs on T1–T8, Tape Echo alone in the set, one instance on T1 FX2 at its defaults, picked stopped after a play, then 10 s windows:

Frame share Longest frame CPU meter Skips
0.1.7 (e975a8ae…) 45.5 % 98.7 % 71.6 % 0
0.1.8 44.1 % 98.2 % 69.6 % 0

So 1.4 frame points and 2 meter points less per instance, in line with the 13 % instruction cut. Both trials rolled back with a clean verdict. Not run: several instances, set G, the overload hold's counters, listening and a null test against 0.1.7.

@repeat98

Copy link
Copy Markdown
Owner Author

Superseded by Tape Echo 0.1.9 (#2009), released with base 0.8 (#1910). 0.1.9 carries this version's changes (0.1.7's resting detours, 0.1.8's assembly per-track entry and overload hold), so players go from 0.1.6 straight to 0.1.9. Neither version was released.

@repeat98 repeat98 closed this Nov 23, 2026
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