Skip to content

Fix: give saved Octatrack effects priority over Sidechain - #1887

Merged
repeat98 merged 11 commits into
base/octatrack-nextfrom
codex/octatrack-saved-fx-priority
Nov 21, 2026
Merged

repeat98 merged 11 commits into
base/octatrack-nextfrom
codex/octatrack-saved-fx-priority

Conversation

@repeat98

@repeat98 repeat98 commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

The reporter for #1875 confirmed that base 0.7.10 cleared the warning on both stock 1.40C and Modwerk projects. This draft for #1840 fixes a separate heavy Part that reproducibly lost seven effects on 0.7.10. Its T5–T8 effects need 4,665 of 4,702 DSP code words. Sidechain and its key bus reserve 710.

What changed

When a stopped project needs that reservation to load its saved effects, wait for Sidechain and the key bus to release it. A short notice explains the pause. Both resume automatically when the Part leaves room.

Two six-module MKII trials exposed a second problem. If FILTER already occupied words 261–701, the remaining memory was split into spans too small for the saved effects. The project loader now checks a trial placement against the full selection. When moving one stock effect will make the whole Part fit, it can move that effect once after ordinary trim and pack attempts. The old binding stays live until the DSP acknowledges the new copy. Background compaction retains its existing USB trial guard.

Verification on the refreshed 0.7.13 base

This branch incorporates the current Octatrack cumulative base and main. The release base identity is 5add931eb7ddcddfda67e9ca184234eb823f4476829a194e4cb0786991ba9584. The base package SHA-256 is d397aaf746b284ed000879c40431b19937b33d80dd7b3bc142e8340a3fc7f341. The browser and native builds produced the same 814,700-byte install image. All 78 previously published base identities were preserved, including shipped 0.7.12.

Eight host tests passed across project-load residency, the controller and the DSP receiver. The browser and frontend MCP package suites passed all 77 tests. The package builder now writes all four digest URLs the site uses for modules rebound at the same version. Each served file matches its manifest SHA-256.

In the MKII emulator, the exact release booted from a virtual card with E-Verb, BBD Delay, Mute Modes, Tuner, MIDI Scenes and Sidechain Compressor. All 16 live and committed effect slots matched on a cold boot into the heavy Part, then on each lighter → heavy → lighter project change. Sidechain yielded on both DSP cores on the heavy load, the pause notice appeared, and it resumed on both lighter loads. All six modules stayed installed. The verifier recorded zero residency failures and zero refusal dialogs.

Full local readiness passed on aedc8be7e. The JavaScript suite passed all 405 test files, and the SDK executed 720 tests. The network-disabled Docker build reproduced the published Octatrack packages, including the base-bound controllers. Two independent builds of the other instrument packages matched byte for byte and reproduced all 71 current source-only release exports.

Tested on a unit: Octatrack MKII, OS 1.40C. Release 5add931eb7ddcddfda67e9ca184234eb823f4476829a194e4cb0786991ba9584 booted in RAM and answered over USB. The two measured project loads ran on its diagnostic build 551f74e3bb1d41eb89b2ce5ba0b32a724c8a7f41cab19db7b4b43a35f0cfbf4a with the six modules listed above.

Both stopped loads passed, one from the SPATIALIZER project and one from the lighter compressor project. Each began with FILTER at word 261. On each heavy load FILTER moved to 4,261, all 16 live effects matched the saved selection, and the first DSP used 4,665 of 4,702 words. There were zero placement refusals, refusal dialogs or automatic rollbacks. Sidechain and the key bus resumed on both cores on each return to the lighter project. Both USB trials were undone successfully. A preliminary warm-up reported CPU above 90% for one second. The two measured loads reported no new stalls or errors.

All three temporary project folders were removed and both saved module-set files matched their original SHA-256 digests. Remounting the original Set and returning to Part Four restored the unnamed A01 pattern, T1 and all four working and stored Parts to their starting checksums. The original production base, module-set identity and both live modules also matched after the final RAM boot. Human listening and Keep/power-cycle persistence remain open.

Verification on the earlier Tracks Post build

Tested on a unit: Octatrack MKII, OS 1.40C, Tracks Post development build c207fd174e2f266ac5f8264fca27a5c6e73254760c021cd2a388395577ad3cd2. The same front-panel steps on the prior instrumented build refused both loads with no outstanding engine reservation. With this fix, both passed with zero allocator refusals, refusal dialogs or rollbacks. A 7.012-second USB playback capture carried signal on track 5, with zero new DSP stalls or errors.

The exact Tracks Post release candidate 0ff172ff also booted in RAM on the MKII and answered the USB status request. Both trials were undone, all three scratch projects were removed, and the starting project, pattern, working and saved Parts, firmware identity and ten-module inventory matched.

All seven USB layouts passed browser/native rebuild comparisons. The exact Tracks Post release restored the six modules on cold boot in the MKII emulator and loaded all 16 effects on cold boot and on the lighter → heavy → lighter project changes with zero refusals. Sidechain resumed both times the lighter Part loaded.

In a separate virtual USB trial on build c207fd17, the effect chooser placed FILTER at word 261 behind SPATIALIZER. The heavy load moved FILTER to 4,261 and all 16 slots matched, reproducing the corrected MKII result. Returning to the lighter Part restored all 16 slots and re-enabled Sidechain. Both transitions recorded zero allocator failures and zero refusal dialogs. At teardown, the virtual USB controller reported needs-recovery on Undo. Both physical MKII trials rolled back successfully. The cause of the virtual Undo result is unverified.

The local readiness check passed on commit 9a83816c6. The clean, network-disabled toolchain rebuilt the Octatrack packages, verified the published base-bound bytes and reproduced all 70 current source-only release exports.

The host controller and receiver tests cover a rejected upload, transport starting during a copy, a queued pattern change, an unsettled USB session and module-owned code. Software stages 1–4 of the base test procedure passed for default package 630052d87bea9ab7c38ef653183e1c1d41280564d69bbb9cbc6d914c40d0a00d, including 861 module pairs. Human listening and Keep/power-cycle persistence remain open for base qualification.

Edge cases

Case Why this change makes it a risk How run Result
Load heavy Part from SPATIALIZER scratch project FILTER at 261 divides the free code span Six-module MKII USB trial FILTER moved to 4,261. All 16 live and committed FX matched.
Load heavy Part from lighter compressor project Sidechain initially reserves 710 words on each core and FILTER remains at 261 Fresh six-module MKII USB trial Sidechain released both reservations. The move recovered the selection, all 16 matched, and 37 words remained.
Load lighter project again A high FILTER placement could block Sidechain's readmission MKII USB trial All 16 FX matched. Sidechain and the key bus resumed on both cores.
DSP refuses the copy or transport starts mid-move The source may still be executing Host loader + receiver, checked every frame Old binding stays live until a complete replacement is acknowledged. A rejected write leaves the old placement intact.
Already-fits Part, oversized Part, or move outside a settled stopped project Unnecessary interruption Host controller and receiver The existing paths handle these cases.

Guides: nothing. The new controller/receiver regression exercises the real relocation transaction. The project selections, hardware placements, release identities and restoration checks are in the verification record.

@repeat98

Copy link
Copy Markdown
Owner Author

I checked 9a83816c against the current base/octatrack-next. The target now contains 0.7.12, and Git reports 11 conflicting files, including the receiver’s status.c, the base version history and the generated packages.

Please carry the relocation change onto the current cumulative base, preserve the shipped 0.7.12 identity, and regenerate the packages from the resolved source. The two heavy-project runs are good comparisons for the rebuilt package. Please record its identity alongside the saved FX and Sidechain readings when loading the heavy project and switching back.

repeat98 and others added 4 commits November 21, 2026 08:16
…finish-saved-fx-1887

# Conflicts:
#	public/octatrack-modules/recorder-loop-fix/0.1.0-experimental.mwrm
#	sdk/machines/octatrack/base-binding.json
#	sdk/machines/octatrack/base-sizes.json
#	sdk/machines/octatrack/base-versions.json
#	sdk/machines/octatrack/elekloader/status.c
#	sdk/machines/octatrack/module-adapters/controller-policies.json
#	src/engine/assets/octatrack-base-fills.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
@repeat98
repeat98 merged commit 13e4f30 into base/octatrack-next Nov 21, 2026
28 checks passed
@repeat98
repeat98 deleted the codex/octatrack-saved-fx-priority branch November 25, 2026 12:58
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