Skip to content

Octatrack base 0.8.3: CPU back from the Part read, USB Audio streams in the CPU limit, no USB DISK freeze, and four more - #2246

Merged
repeat98 merged 91 commits into
mainfrom
base/octatrack-next
Nov 27, 2026
Merged

repeat98 merged 91 commits into
mainfrom
base/octatrack-next

Conversation

@repeat98

@repeat98 repeat98 commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Octatrack base 0.8.3, the cumulative draft after 0.8.2 (#2079): seven changes, base 5af431bd. The release image booted on the owner's MKII on 27 November, and the base test procedure passed on a development twin of the same code. USB Audio 0.4.2, live since today, moves onto it. Only the owner marks this ready and ships it.

Tested on a unit: base 5af431bd release image and development twin ed5474c6 of the same code, owner's MKII, OS 1.40C, macOS; test:procedure -- --base steps 1-4 and 8-10, step 7 by hand in halves; nothing kept.

Builds (OS 1.40C, pinned m68k toolchain): base 5af431bd3e42d93c…, browser .bin cf4fef8f637d8336… (837,908 bytes; 13,820 container bytes free). Every change sits inside a declared site; the bootloader copy is identical. Base-bound packages are bound to it with their bytes unchanged. Record: docs/verification/2026-11-26-octatrack-base-0-8-3.md.

Edge cases

Case Why this change makes it a risk How run Result
A damaged Part above 3 at power-up #2174 reads SRAM, which stock copies before its clamp stock 1.40C disassembly; 0.8.2's mw_boot_restore copies again after the checks pass by reading: SRAM Part ≤ 3 when the restore returns (record)
A Part switch while playing the unmasked SRAM/CS1 pair's one-instruction window Laslo's MKII, 0.8.2 twin, Parts 1-2-3-2-1-2-3-4-1 playing pass: nothing skipped in 1,003,642 frames
Busy, empty and stopped frames the Part read runs 16 times a frame emulator A/B 11,025 frames (DSP writes equal); MKII A/B/A pass: one point less
A card file unreadable at start, then a Keep #2109's DAMAGED path and double write host: 328 power cuts, nine read errors pass; not run on a unit (can't be made on hardware)
Two Euclid tracks, different TYPE #2228's names per track host test pass; unit not run
UI and frame cost of #2228's three draw hooks they run on every draw of those pages not run not run: needs the unit
Journal host tests including fxpage.c #2228's host hooks test_runtime_journal, test_recipe pass after stubs (7, 41)
Base-bound packages a regenerated base can move their link addresses octatrack:module-packages --base-only pass: bytes unchanged
A pick while 16 channels stream (#2251) the stretched reserve must refuse what breaks up, and say why MKII twin 6590dcdf, SYNTIZ on T3 of an empty pattern, macOS recording pass: CPU FULL, NEEDS +30 %, USB AUDIO STREAM
The same pick with the stream closed the stream's room must come back same, after the recording ended pass: picked
A DAW starting on a Part that no longer fits the brake must pause machines, named UNGEMACH and SYNTIZ on the Part, pattern started while streaming pass: notice USB AUDIO STREAM / SYNTIZ, UNGEMACH played on
The stream's stretch the factor must match the unit guard readings, stream on and off, twins 1 and 2 1.19 to 1.76 with 16 ch, 1.43 with 2; 1.65 chosen; the difference between boots is not explained
The release image (27 Nov) what players flash RAM-booted 5af431bd from the flashed 0.8.2 on the owner's MKII pass: booted, stayed on USB; USB Audio 0.4.2 and RINGMOD SC trials rolled back
An MKI, 20 channels not run pending
A host addresses the unit and never configures it the watchdog must re-offer it emulator, twin 764b6e71, scripted host pass: re-offered within 8 s
A host configures the unit the watchdog must leave a working link alone same, address then SET_CONFIGURATION pass: no re-offer in 15 s
USB Audio installs and layout changes on the unit where USB died four times twins 764b6e71/853a9af2 with the change: 3 RAM boots, 12 USB Audio trials installed and rolled back, 2 layout changes pass: no loss, no usb incident (so no false re-offer; a heal not yet seen)
A stream booked by its width (#2251) one ×1.65 over-books Main + Cue (×1.26 after USB Audio 0.4.2's cut) and under-books 16 CH (×1.86) host: test_status.c, test_usb_function.c, set-package.test.ts pass; inert until stock.streamByWidth holds measured figures (their unit turn moved to the morning)
A USB reset while a USB DISK reply is primed stock's sender spun on the stale slot forever (a freeze) twin 9cf5c4a8: 30 layout changes, installs with PLAY, rollbacks pass: no freeze, slots never left ACTIVE (one freeze in ~25 before the fix)
A host port reset meeting the base's own reconnect the unit can drop off USB ~120 install-PLAY-rollback cycles through a hub on four twins fail, shipped as known: about 1 in 30, USB lost until a power cycle
The base test procedure (27 Nov) every package beside the base twin ed5474c6 (35a5231) steps 1-4, 8-10 pass; step 7 in halves without RINGMOD SC (twin build; the release image admits it)
A set's publication the 10 s budget the 41 packages' second half and a six-package set, 17 runs on twin and release image open: 3 cut at 10 s right after a rollback or recover, 14 published (2.8 s / 7.1 s); not reproduced

What the guides lacked or got wrong: the test tools around USB Audio's own reconnect and the price step (#2303, #2306, #2307, all merged); the base procedure's large set holds RINGMOD SC, which twins without controller rows refuse (named in the record, as in 0.8.1 and 0.8.2).

🤖 Generated with Claude Code

repeat98 and others added 30 commits November 23, 2026 10:40
… and check its objects

build_stub.py compiled stub.c and slots.c in one gcc call at -Os without
m68k_codegen.FLAGS and without m68k_codegen.check, the guard every other
ColdFire C compile of the base has had since #603. It now compiles each
source to an object with the flag, checks the C objects with
check_mcf54455 (the check build_core.py runs on the base's C), and links
them as before. The stub's code changes from 900 to 890 bytes;
check_stub.py passes all six slot states on it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nly when they change

A recording track runs stock's recorder control-record update (0x4000432c) about 1.5 times a frame, with six writes
into slow CS1 memory, and in steady recording [r+300] and [r+308] already hold what it computes. The base replaces the
routine with stock's arithmetic and writes, storing those two only when they differ from the values it reads, read
under stock's own interrupt mask so CS1 ends as stock leaves it. Idea and hardware figures: Bryan T.

rec-harness/ runs stock's routine and the base's side by side on the emulator: 1,000,000 random calls, every
register, the CS1 records, the 44-byte records and the stack equal stock's; CS1 writes a call 4.49 -> 3.02.
Not yet measured on a unit: the 0.8.1 twin's RAM boot did not come back on USB (#1985).

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

Merging #2028 changes build_stub.py, which the base records, so the release
base is regenerated: identity c5791ec9 (was 6852c1ff), stub_body.c 5be076c9
(was 89b61a6d), MAIN 12 bytes smaller, base-bound packages relinked with
unchanged bytes. Not run on a unit: only a two-slot conversion writes the
stub and only a cold start runs it.

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

diag.c's CPU record gave only every track refused since the start, while its machine
list is the Part's at the moment of the record, so a pass could not tell whose price
caused a refusal. cpu_refuse now bumps a per-track counter (its only writer); diag.c
compares them with its own copy and puts the tracks that moved in bits 16-23, the
count in the low 16 bits, every track since the start in the top byte as before. The
pull names each such track's machine signature; older records print as before.

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

dsp.c's admission knew which live slot runs the effect it refuses RUNTIME_IN_USE but
only returned the code. It now keeps that slot (1-8 FX1 of T1-T8, 9-16 FX2), cleared
at each admission, and the self-test record carries it above the refusal (bits 16-23;
the record keeps its 96 bytes). The site reads it and says "Track 6 runs Tape Echo as
its FX2 effect in the current Part." Older bases leave the bits 0 and keep the old hint.

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

Release base ada74e3d (was c5791ec9), browser = native .bin 5c7e9eba, container 200
bytes larger. The resident port's dsp.c hunks move 6 lines and its pin follows;
base-bound packages relinked with unchanged bytes. Not run on a unit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	src/components/BaseChangelog.tsx
#	src/dev/octatrack-link-fake.ts
#	src/engine/elekloader/octatrack-link.test.ts
#	src/engine/elekloader/octatrack-link.ts
The merge brought main's USB Audio 0.4.0, bound to 0.8.1 (eb667962). Base-bound
packages follow the cumulative base: requiredBase ada74e3d, package bytes unchanged.

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…n's refusal

Analog BD's and Output Matrix's controllers refuse RUNTIME_IN_USE too, without dsp.c's
admission, so a slot an earlier sync's admission left could name an unrelated track.
The self-test record now carries the slot only while the loader's refusal is that
admission's (RUNTIME_CHECK_DSP, set with each refusal and reset at every prepare), and
the admission no longer clears it. Clearing it in boot.c's prepare instead would move
the base's write-lease entries and need Analog BD's reviewed recipe recaptured.

Rebuilt: base 2f4d5955 (was ada74e3d), browser = native .bin 4e056c4c, resident dsp.c
hunks re-pinned, base-bound packages relinked with unchanged bytes. Not run on a unit.

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

status.c's frame admission counts a CPU refusal without moving that track's counter,
so diag.c's CPU record named no recent track for the commonest refusal: on a twin a
POLY8 pick refused on T3 logged 0x04000001 (since-boot T3, recent 0). It now moves
mw_cpu_track_refusals[slot] too; diag.c's comment names both writers.

Rebuilt: base 8f179f5e (was 2f4d5955), browser = native .bin b5336893, base-bound
packages relinked with unchanged bytes. Not run on a unit.

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

A development twin of 6663f66 (58babe99): a POLY8 pick refused on T3 now names T3 in the
CPU record's recent tracks (0x04040001; the build before the fix left it 0), and two
whole sets of 18 and 20 packages ran 30 s each and rolled back with no fault. The unit
came back on its flashed 0.8.1 with its nine modules. An in-use refusal, the soak and the
price were not run.

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

Mute Modes 0.2.4 rests while MUTE MODE is OT (ev_in_use, runtime.json "rests"); 0.2.3
cost 0.9 points of the frame interrupt at rest. table_declarations.validate read a
site's rest bit (RUNTIME_SITE_RESTS, 0x80) as length, so no base admitted it. The
validator now reads the bit on the owner's own detours and refuses it on the table
pointer and count sites, which must hold while the module rests. 0.2.4 (7542f10c,
declaration 64253fe3) joins 0.2.2 and 0.2.3 as a reviewed table owner (owner, 25 Nov).

Rebuilt: base 910e6625 (was 8f179f5e), browser = native .bin f6e46d06, base-bound
packages relinked with unchanged bytes. On a unit: 0.8.1 dev twin with the same change,
0.2.4 at rest +0.0 (0.2.3 +0.9). Waking on a MUTE MODE switch not run yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Installed modules nobody uses cost every UI tick in the base, not in themselves (an
emulated twin, instructions a tick): the overload prediction read each trig-mask byte
once per step (512 uncached reads), searched the cost table for every installed module,
and walked the module table for each ev_frame_deadline row; each installed effect made
the handle map's 420 us whole check run more often; and the rest poll stepped through
all 32 positions for one asking module.

Now: the trig masks are read once and counted in bit planes; the rest booking, the
deadline rows' handles and the map's handles are kept until what they depend on
changes; the map's whole check runs once a second by DTIM3; the rest poll judges only
the asking positions. Nothing installed: 12,793 -> 4,147 instructions a tick; Mini Verb
15,673 -> 6,599; Tape Echo 17,647 -> 6,701 (before the rest-poll change). Host tests
for the bit-plane count, the caches' invalidation and the timed check.

Rebuilt: base fad2c729 (was 910e6625), browser = native .bin 1520e947, base-bound
packages relinked (Recorder Loop Fix 0.1.0 6b568782). Not run on a unit.

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

182d7d1 relinked Recorder Loop Fix 0.1.0 to the rebuilt base (6b568782, still
zero DSP words) but left its direct-DSP record on the 0.8.1 package (b39bfa9f),
so resource-indicators.test.ts failed on the draft.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
After a module effect is picked in FX1 or FX2 SETUP the base shows the memory
box for 1.5 s, and status.c took NO as well as YES while it showed. The
musician's NO back to the effect's page only closed the box and left the
knobs on SETUP, where a module without setup parameters has none: the effect
looked stuck until the page was left and entered again (Midiverb on the
owner's MKII). The owner's rule of 14 October was 'YES only closes it; any
other key goes on to stock'; #640's merge of the dialog key paths took NO
too. Now NO on that box closes it and goes on to stock; the other dialogs
still take it.

test_status.c covers it and fails without the change. On the owner's MKII a
twin of 8b26f3492 plus this change reached the FX2 page with one NO and PROG
moved at once. Rebuilt: base 1306e125 (was fad2c729); base-bound packages
relinked with unchanged bytes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mw_knob_step restaged a module page's turned knob in its record, but the page's
input layer still held the previous page's staging (a stock effect's 0..127
knobs) and the panel copies it into the record before each turn. Every detent
found the old step again, restaged and cleared the remainder, so a select
moved only on quick turns until the page was entered again (Midiverb's PROG on
the owner's MKII: ten slow detents left it at 0; FX1 -> FX2 put it right). The
knob's definition in the layer (22 B: slot, 0, then the record) is now staged
as its record, when it names the main pages' knob routine.

knob_step_fixture case E: staged, the remainder kept on the next turn, a
scene's definition and a stock page's layer untouched; fails without the change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A page opened from PROJ > MODWERK (SETTINGS, MODULES, STATUS, MODULE COST,
MISSING) closed PROJ menu on the next tick, so NO and the arrows that close
the page left the player on the track screen (a tester, 25 November 2026).
Now the menu stays open under the page: NO, and LEFT or RIGHT (every arrow
on STATUS), close the page back to the menu with its cursor on the row
that opened it. YES on a page that closes still closes the menu; any other
key goes on to stock menu, so PROJ closes it. SELF TEST is unchanged.

test_status.c covers each page and fails without the change. Not rebuilt:
the base and its size record wait for the cumulative regeneration.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Stock keeps two state rows per track recorder and selects one with
0x80004f18. A recording started again while it records moves to the
other row, and STOP clears only that one: the row it left keeps state 2
with nothing recording behind it until the track records again. The
base read any nonzero row as recording, so modwerk_machine_stopped()
stayed false and every sync was refused as unsafe at enter ("Stop
playback or finish recording") on a stopped unit until a power cycle.
boot.c's STOP press was skipped for the same reason.

modwerk_machine_recorder_busy() now reads the selected row and accepts
only idle or that retained 2 in the other one, as the sample editor and
Amiga already do. modwerk_machine_busy() names what refuses a change
(recorder, transport, track byte, journal, with the track); the
self-test reply carries it in the refusal word's top byte, and the site
records it on an unsafe sync_failed (busy) and names the recorder's
track in its notice.

Host tests: test_runtime.c (the emulator's row sequence), the link
test with the fake unit's busy byte, the diagnostics field validation.

Refs #2211, #1596, #2216.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On twin c6e64b77: T1's recorder started, started again while it
recorded, then STOP left bank A at state 2 with bank B selected and
idle. The twin admitted a trial with that state and refused enter as
unsafe during a live recording, with busy 1.

Refs #2211, #2216.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…, and a refused COMPRESSOR pick says why

With Sidechain installed but no track on COMPRESSOR, its engine and the key bus
are not placed, and the allocator put big blocks (E-Verb, Resonator) into the
top words they take. Picking COMPRESSOR then had to copy that code below them;
with two big effects on a core there was often no free run for the copy, so the
claim was refused for memory and COMPRESSOR stayed stock with no KEY page and
no message, until an effect came off (#2189).

Big blocks now go under a soft ceiling first (the capacity less the words held
controllers' engines will still claim); a core that does not fit so is placed
as before. Packing keeps to the same ceiling. A COMPRESSOR pick refused for
memory shows SIDECHAIN PAUSED / DSP MEMORY. Host modes 76 and 77; on an MKII
dev twin the repro (E-Verb @3110, Resonator @1599, stock page) became E-Verb
@2400, Resonator @889, Sidechain active and the KEY page shown. Base not
regenerated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…checks fix a value

At power-up stock restores the current bank from its battery-backed copy
(0x40025770, called from main's init at 0x4001fb78). Before it copies the
bank in, it runs its checks on the project settings, the arrangements, both
copies of each Part and the bank's 16 patterns, and a single value any of
them has to fix refuses the whole bank: every Part and pattern of it then
reads as stock's empty defaults, while the saved copy on the card still holds
the song. When the saved copy holds the value, each RELOAD brings it back and
the next power-up refuses the bank again. A tester's project came up empty at
every start after a save (#2201): the first record after each of those
starts shows the current Part with no machines, as a refused restore leaves
it, and the tempo kept from the battery copy.

The base now runs those checks itself first, in stock's order, keeping their
fixes as a file load of the same bank keeps them (the same validators), and
then calls stock's restore, which finds nothing left to refuse. A battery
copy with more than 64 fixes, more like one the battery lost than a stray
value, is still refused as stock refuses it. Each start that fixed anything
logs a RESTORE incident (diag.h): the count per stage, the first record that
needed a fix and the result, so the value behind it can be traced.

ot_emu, two-process power cycle on the beta base (--cs1-in, --no-post): one
byte out of range in the battery copy's working Part 1 left the current bank
as stock's defaults on the base without this change (restore refused at the
Part check), and came back whole with it; the same for a pattern; a clean
copy restores as before. test_diag.c covers the order, the UI state taken
again after a settings fix, the 64-fix limit and the RESTORE record.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The tests for a set over the module pool used a tester's real set, which was over the
pool only because of MIDI Scenes 0.3.0 (282 kB); with 0.3.1 (127 kB) it fits and both
tests failed though the check is unchanged. They now grow three published packages to
the most a package may declare (over a third of the pool each) in a catalogue built
from the published manifest, so the set is over the pool whatever any module weighs.
Both behaviours stay covered: refused before the first write naming its largest
modules, and modules already on the unit counted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
repeat98 and others added 7 commits November 27, 2026 08:59
The owner's MKII froze with the screen and USB dead and the audio running
(27 November 2026, a USB Audio install a minute after a rollback): freeze PC
0x4001cc30 at level 4, stock's USB DISK reply sender spinning inside the USB
interrupt until its next transfer descriptor (slots 4-15 at 0x46c95000) goes
inactive. The base always offers mass storage, so a host probes it after every
reconnect; a reset that came while a reply was primed left that slot ACTIVE for
good (stock's own ring reset clears 4-14 only), and when the ring came round to
it the interrupt never returned.

ep0.c's bus-reset hook now flushes EP1's transmit side (bounded) and clears the
token of every send slot (usb_stock_sends.h; host test test_usb_stock_sends.c).
Every reconnect the base makes ends in the host's bus reset, so this covers
installs, removals, profile changes, the attach watchdog and a pulled cable.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
base 88698afcaf9bca89…, browser .bin f39567debdf46834… (836,540 bytes; 15,188 container
bytes free). The record has the freeze's cause, the fix's unit run on twin 9cf5c4a8 and
the rollback loss that remains open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rames stop (#2290)

The frame interrupt watches FRINDEX. When the host's start-of-frame packets stand still
for 3 s while the base expects a host (heard in the last 10 s, configured, or its own
reconnect under way; never with a RAM boot armed), it keeps the controller's OTGSC,
PORTSC1, USBCMD, DEVICEADDR and FRINDEX, usb_function.c's state, timer, off_ticks,
reset_seen and retried, the attach watchdog's off, tries, detached and fresh,
usbmidi_up and the busy flags at 3, 4, 5 and 6 s in battery RAM ("MWUG", 0x100f9758).
It also keeps how far the UI tick, ep0_tick and the reconnect tick moved in those 3 s.
The tick adds it as a USB_GONE incident (kind 15), or the next start does; once an
episode, at most four a boot. The site, `device do diaglog` and diagnostics:pull
decode it in one line.

Host: test_diag.c (samples, early end, nobody expected, four a boot, next start),
device-log.test.ts, test_recipe host tests, the Model:Cycles layout test, battery RAM.
Beta base compiles (MAIN 1,353,772 bytes; packed 837,872, 13,840 free); the committed
.elemod is not regenerated here.

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

Owner's MKII, 27 November 2026, twin 4dd69450 (dc9d156 + the USB_GONE record): an
install whose reconnect waited out the patience was forced; 0.3 s after the unit left the
bus the Mac's hub reset the port ("reset did not enable port"), the unit came back half a
second after leaving, in the middle of the host's reset retries, and its controller took no
reset after that (USB_GONE at 3-6 s: attached, enabled, address 4, back on the bus). macOS
gave up ("persistent enumeration failures"); neither the watchdog's re-offers nor a cable
replug brought it back, only a power cycle.

A forced detach now stays off for ten seconds (UF_DOWN_LONG), longer than the host's
reset retries, so the hub sees a clean disconnect. The attach check retries when no reset
came within three seconds even when the port reads attached (CCS does not tell), off for
ten seconds as well; a resetting or suspended port is still left alone. Host tests updated.

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

Owner's MKII, 27 November 2026, behind a USB 2.0 hub: a host reset that met the base's
own reconnect left the port stuck in two ways, both with no frames from the host:
attached and enabled with the old address and no reset taken (twin 4dd69450), or held in
reset, PORTSC1.PR for seconds (twin ed5474c6). Neither the pull-up off and on, the attach
watchdog nor a cable replug brought it back; a power cycle did.

Three seconds after the unit comes back, no new frame for half a second (FRINDEX) on a
powered, unsuspended bus now resets the controller (USBCMD.RST), sets the transceiver up
as the bootloader does (ULPI in PORTSC1, a wake through the viewport, bounded waits),
runs stock's reset and start, and stays off ten seconds before attaching once more. Host
tests: the stuck cases recover, a suspended port and an unpowered bus are left alone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…stood, shipped as known

base 5af431bd3e42d93c…, browser .bin cf4fef8f637d8336… (837,908 bytes; 13,820 container
bytes free). The record has the drop's two sides (the Mac's kernel log, the usb_gone
record), the forced-reconnect fix's unit run and what stays open; the changelog names
the known issue for musicians.

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

Lasl00 commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

At-rest cost of 24 installed, unused modules on base 0.8.3 (Laslo's MKII, measurement only)

  • What 24 idle modules cost now: +2.5 points of frame interrupt while playing (29.9 % → 32.4 %), longest frame 71.0 % → 75.8 %. Stopped it is +2.4 points (30.2 % → 32.6 %), longest frame 39.5 % → 50.9 %. On 17 Nov (base 0.7.7) the same pattern showed +17–20 points playing (40 % → 57–60 %) and a longest frame of 123 %. No skipped renders, no stall, no crash, and no frame near 100 % in any window.
  • Which modules still cost at rest: not named. The whole set is under the ~3-point line, so I did not run the halving (12 / 6 / 3). The 2.4–2.5 points are the set as a whole.
  • What it means musically: installing a full set no longer eats a meaningful share of the frame. On this pattern, about seven-eighths of the 17 Nov at-rest cost is gone.
  • Not measured:
    • POLY8 (paused, left out).
    • USB Audio: not in the USB package catalogue, so it is not in the set.
    • The base-bound packages (Analog BD, Sidechain, Output Matrix, CC Map, Recorder Loop Fix): the twin has no controller rows.
    • Any module in use.
    • Audio by ear.
    • A second playing reading of the 24-set. That run's first health read after PLAY got no USB answer for 25 s. The unit kept ticking with no new stall, crash, late entry or skipped render; the silence was on the host link, which the trial shared. By the stop rules I did not retry it.
  • Set composition differs from 17 Nov: I don't have the 17 Nov list. This set is the 23 non-POLY8 packages of the 19 Nov dispatch record plus FM Synth 0.1.5 (the largest at-rest cost on record, 19.1 points on 14 Nov). So the comparison with 17 Nov is set against set, not module for module.
  • Who must act: nobody. The owner picks follow-ups.
State (pattern playing or stopped) CPU meter % (mean of 10) Frame interrupt mean % Longest frame % Module UI ticks µs (profile:5)
Empty, stopped, before the first play 34.7 23.1 30.9 111.3
Empty, playing 41.9 29.9 71.0 115.6
24 installed, stopped 44.5 32.6 50.2 164.6
24 installed, playing 44.9 32.4 75.8 163.4
Empty again, stopped 41.8 30.2 39.5 118.1
Empty again, playing 42.0 29.9 69.8 111.8
24 again, stopped 44.5 32.6 50.9 166.0
24 again, playing not taken (link silent 25 s, see above)

The first empty stopped reading (23.1 %) was taken before the pattern had ever played. After a play the stopped frame sits about 7 points higher (30.2 %), which the 20 Nov record also saw. So the stopped comparison uses the "empty again" row.

  • Twin: development twin ed5474c6bb66607d96f0ab1f95cb0a473755a124151dcb6c9926fd0bb820d56d of base/octatrack-next at bc6824a15 (Octatrack base 0.8.3: CPU back from the Part read, USB Audio streams in the CPU limit, no USB DISK freeze, and four more #2246). build_core.py with the beta flags (no controller rows), plus --dev. RAM-booted over USB, not flashed.
  • Unit: MKII on OS 1.40C. Flashed base 24e480c4… with its 14 kept modules untouched: trials only, no Keep.
  • Pattern: an untouched bank (P) of a test project, pattern P01, 120 BPM. Its Part 1 is stock defaults (all four Parts' working copy equals the saved copy, before and after). Eight STATIC tracks, no samples, trigs on steps 1/5/9/13 of all eight tracks (grid-recorded, removed afterwards).
  • Method: each state is ten 1-second windows, each with a stats reading, a guard window and a health read, then profile:5 and a last guard. "Frame interrupt mean" is weighted by frames, about 50,000 frames a state. Each 24-set was one npm run device -- set … --seconds 110|90 trial, rolled back. Both verdicts: no crash, stall, freeze or skipped track. The inventory was empty again after each.
  • Unit time: about 15 minutes.
The 24 packages (catalogue id, version, sha256 prefix)

lofi2 0.1.1 a2ab2732, previewvol 0.1.2 9fd95d9a, apply-scene 0.2.0 236231aa, repitch 0.2.1 4b927846, quantizer 0.1.5 092a8a13, playmodes 0.2.1 5656b2cd, mute-modes 0.2.4 7542f10c, quantize-live-rec-toggle 0.1.1 297f79ef, direct-jump-kyoti 0.2.0 ed3ba88a, dejavu 0.1.0 95079643, arp-key-locks 0.1.0 907a03cf, beat-slicer 0.1.68 195d2b46, temp-save 0.1.1 a389aa93, slow-lfo 0.1.0 3505194e, bar-led 0.1.0 de7f9cae, tiempos 0.1.0 0b54a734, syntiz 0.1.1 c3a97ecc, track-solo 0.2.5 5ac64b5e, pattern-sample-locks 0.1.9 6fea272e, amiga 0.3.0 acae3fef, midi-scenes 0.3.1 17f934ff, tuner 0.1.0 05fef397, butter-fingers 0.1.0 c470e87a, synth (FM Synth) 0.1.5 791e26c5. All 24 fit the pool together (197,012 bytes); nothing was dropped.

Raw readings: CPU meter %, frame interrupt %, longest frame % per 1-second window
empty stopped (before first play)
  cpu    34.7 34.6 34.7 34.7 34.8 34.7 34.6 34.8 34.6 34.7
  frame  23.0 23.1 23.1 23.0 23.0 23.1 23.1 23.1 23.1 23.1
  max    30.9 30.4 30.5 30.7 30.5 30.7 30.6 30.6 30.6 30.7
  profile: whole chain 188.5, runtime 4.4, USB 18.9, dsp 46.0, loader manager 44.0, status 36.0, controllers 24.1, crash 2.9, diagnostics 12.3, module UI ticks 111.3, MIDI generators 3.7; frame transfer 2.0
empty playing
  cpu    39.8 42.4 42.2 39.8 42.2 42.0 42.7 42.3 42.4 42.8
  frame  29.2 30.3 30.3 29.3 30.3 30.3 29.5 30.0 30.3 29.9
  max    69.8 68.6 67.6 70.0 70.9 67.6 71.0 69.1 66.9 70.0
  profile: whole chain 251.6, runtime 2.9, USB 21.7, dsp 59.5, loader manager 89.9, status 45.2, controllers 21.4, crash 1.9, diagnostics 9.2, module UI ticks 115.6, MIDI generators 3.3; frame transfer 2.1
24 stopped
  cpu    44.6 44.5 44.6 44.6 44.7 44.5 44.5 44.4 44.5 44.6
  frame  32.7 32.6 32.6 32.7 32.7 32.7 32.7 32.6 32.6 32.7
  max    49.7 49.7 49.5 49.8 49.6 49.7 49.7 49.6 50.0 49.9   (50.2 in the profile window)
  profile: whole chain 252.8, runtime 51.7, USB 49.6, dsp 37.9, loader manager 45.8, status 40.5, controllers 19.9, crash 1.7, diagnostics 5.7, module UI ticks 164.6, MIDI generators 4.2; frame transfer 2.1
24 playing
  cpu    43.0 45.1 45.1 45.1 45.0 45.1 45.3 45.0 45.1 45.2
  frame  31.7 32.9 32.8 31.7 32.8 32.9 32.0 32.6 32.9 32.2
  max    75.8 70.5 72.8 75.5 70.0 72.4 75.8 68.8 71.0 74.8
  profile: whole chain 245.7, runtime 49.0, USB 48.6, dsp 35.2, loader manager 45.3, status 43.4, controllers 16.5, crash 1.8, diagnostics 5.9, module UI ticks 163.4, MIDI generators 4.2; frame transfer 2.1
empty again stopped
  cpu    41.8 41.7 41.8 41.7 41.6 41.8 41.8 41.8 41.8 41.8
  frame  30.2 30.2 30.2 30.2 30.1 30.1 30.2 30.2 30.2 30.2
  max    39.2 39.3 39.5 39.4 39.2 39.2 38.9 39.2 39.1 39.4
  profile: whole chain 246.2, runtime 3.8, USB 22.5, dsp 65.9, loader manager 78.8, status 46.5, controllers 21.0, crash 1.4, diagnostics 6.4, module UI ticks 118.1, MIDI generators 3.0; frame transfer 2.1
empty again playing
  cpu    41.6 42.2 42.2 41.7 42.3 42.4 41.7 42.1 42.2 41.6
  frame  29.2 30.3 30.3 29.3 30.3 30.3 29.4 30.1 30.3 29.7
  max    69.4 65.5 67.7 68.4 65.1 66.8 69.6 64.9 66.3 69.3
  profile: whole chain 249.5, runtime 4.4, USB 23.3, dsp 65.7, loader manager 79.4, status 45.8, controllers 20.2, crash 2.9, diagnostics 7.8, module UI ticks 111.8, MIDI generators 3.9; frame transfer 2.1
24 again stopped
  cpu    44.5 44.5 44.6 44.5 44.4 44.4 44.6 44.5 44.5 44.6
  frame  32.6 32.7 32.7 32.7 32.6 32.6 32.7 32.7 32.7 32.7
  max    49.9 49.2 49.8 49.3 50.4 49.8 50.9 49.6 50.1 49.5
  profile: whole chain 244.0, runtime 50.1, USB 50.5, dsp 33.6, loader manager 44.2, status 38.4, controllers 16.9, crash 2.2, diagnostics 8.0, module UI ticks 166.0, MIDI generators 3.6; frame transfer 2.1
24 again playing
  not taken: no answer to `health` for 25 s after PLAY; transport found stopped afterwards; health then: stalls 0, errors 0, crash 0, stall record count unchanged (1, an older record);
  diaglog: 0 renders skipped since the start, 0 late frame entries; the trial's own per-second reads kept ticking at 60/s through it

Skipped renders: 0 in every window. Profile µs are per UI tick. With the set installed, "runtime" (about 4 → 50 µs) and "USB" (about 20 → 50 µs) rise beside "module UI ticks" (about 115 → 165 µs); the USB part may be the trial session's own per-second polling.

🤖 Generated with Claude Code

repeat98 and others added 2 commits November 27, 2026 13:49
…moves onto 0.8.3

The base is unchanged (5af431bd); USB Audio 0.4.2's package (c2597a32) now names 0.8.3 as its base, as every earlier
version moved with its base.

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

Copy link
Copy Markdown
Contributor

Proposal for this draft: a shared TRIG LED overlay service (from the CLYPS draft #1997), plus an early bank-load finding

This adds to the three sequencer services I proposed above. It is a contract proposal only: no module source, firmware, video or recordings, and nothing measured on hardware yet.

Why. Performance modules want to show state on the 16 TRIG LEDs: which clips or rows are available, waiting or playing. Today the only way is to patch the stock LED path, and Track Solo already does that for the TRACK row. A base service lets several modules share the panel instead of each patching the same site.

Proposed service: ot_panel_led_overlay (name only, index yours)

  • What it does: a module fills 16 cells for the TRIG row. The base applies them to the transmitted row, after the existing stock filters, and never writes the stock on/blink bitmaps. Each cell is "leave stock", or colour (red, green or both), blink (stock phase) and level 0–15. No new colours or levels beyond what the panel already does.
  • Ownership: one owner per row per transmission. A module claims the row only while its own screen is showing. CLYPS, for example, claims it only while Clip View or the Panorama is visible and not under a stock popup.
  • Priority: subscribers are asked in priority order (0–255, higher first; ties go to the first registered). The first one that claims the row owns that transmission. The base records conflicts in diagnostics.
  • Restoring stock LEDs: the base keeps no overlay state. When the owner returns "not mine", is removed, or its screen closes, the next transmission is plain stock again. A misbehaving module cannot leave wrong LEDs for more than one transmission.
  • Cost (estimate, not a hardware measurement): one indirect call and 16 bytes per TRIG-row transmission, nothing in the audio path or the sequencer callbacks. To be measured in the emulator profile and then on a unit.
  • Who else could use it: step and euclidean sequencers (length, accents), clip or row launchers, page and mode selectors, visual metronomes. Track Solo could later move its TRACK-row filter onto the same contract.

Dependencies and limits

  • The TRIG LED ids, the stock trig colour and the transmission rate still have to be measured with the emulator's panel decoder before any code.
  • Separating the LED rows does not make CLYPS compatible with Track Solo: both still own the TRACK keys, so CLYPS keeps declaring Track Solo incompatible.
  • Nothing has been built against the base yet. I'd rather agree on the interface first, then rebuild the branch base once, together with the other services.

Early finding on bank loads (Codex lab, emulator only, not qualified)
On the pinned MKII emulator, the stock bank reader returns a signed result: +1 for an intact bank B, −51 for a truncated one. The display showed bank B in both cases, and the existing project-end path also carries the result. That suggests a load-outcome notification (start, outcome, effective bank, and a project/bank token) would let modules keep their state across loads instead of giving up on it. A separate note with the details will follow.

Question. Could we compare the interface shapes concretely, rather than just the numbering?

  • Is a priority-ordered fill callback at row-transmit time the right shape for you, or would you prefer a declared claim, like ev_audio_seq_source's exclusive owner?
  • Should the load outcome be one event carrying the result and token, or a pair of begin/end events?

I'm happy to adapt both before anything is written.

@repeat98

Copy link
Copy Markdown
Owner Author

Thanks, this is a clear proposal, and agreeing on the shapes before anyone rebuilds is the right order.

Numbers for this draft: 63 is the Quadraverb program-area table, 64-66 are your three sequencer services (please renumber your commit once), then #2261 and #2271 in the order they become ready. The LED overlay and the load event get the next free numbers when they are built, so nothing above moves again.

TRIG LED overlay: yes in principle, as a base service. Make the claim declared, like the exclusive owner of the audio sequence source: a module says it owns the TRIG row only while its own screen is showing, and the base fills the row from that one owner at transmit time. Leave out the priority order for now. Two modules that both want the row while their screens are open should say so in their compatibility claims, not win silently. Keep "leave stock" per cell and "no overlay state in the base" exactly as you wrote. Measure the LED ids and rate in the emulator first, then the cost on a unit, before it goes into the draft.

Load outcome: one event that carries the result, the effective bank and the token. It is simpler for modules and uses one index. Please post the details note when it is ready.

Send both as commits for this draft once your three services build on the settled numbers.

repeat98 and others added 2 commits November 27, 2026 15:36
…e release image booted

Steps 1-4 and 8-10 passed; step 7 ran in halves without RINGMOD SC (a twin without controller rows; the release
image admits it). Three set publications were cut at 10 s and not reproduced in 14 runs: recorded as open. The
release image booted on the owner's MKII and ran USB Audio 0.4.2 and RINGMOD SC as trials.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@repeat98 repeat98 changed the title Improvement: Octatrack base 0.8.3 cumulative draft Octatrack base 0.8.3: CPU back from the Part read, USB Audio streams in the CPU limit, no USB DISK freeze, and four more Nov 27, 2026
@repeat98
repeat98 marked this pull request as ready for review November 27, 2026 14:52
@repeat98
repeat98 merged commit 80ea1e5 into main Nov 27, 2026
28 checks passed
repeat98 added a commit that referenced this pull request Nov 27, 2026
0.8.3 shipped as #2246 (squash 80ea1e5); the next base's work continues here.
@ilia-murzinov

Copy link
Copy Markdown
Contributor

Proposal for CX OSC and FM Synth shared engine sites

The compatibility check reports 23 findings at 22 unique addresses. One finding at 0x4003ae40 is duplicated because both patches claim the same instruction span.

I propose a base-owned synth-engine interface rather than 22 independent first-subscriber-wins take hooks. A take hook works when one machine owns the current track. It does not cover the global STOP path, where every installed engine must clear its own voices, or the MIDI note gates, where the base must combine eligible tracks from every installed synth machine on a channel.

The interface would add an ot_synth_engines table. Each record identifies its Part signature and carries this module's own callbacks. The base routes track-scoped sites to the record matching that track's signature, calls every record at global STOP, and unions the engine-owned track masks before the existing per-track MIDI note hooks run. FM Synth and CX OSC keep separate state and subscribe through their own records. A later FM-style machine can contribute another record.

The base should reuse ot_machines for the sites its existing descriptor already models, adding table-owned sites for renderer selection at 0x4000d514, playback page resolution at 0x40031ece, and slot assignment at 0x400795ba. Their existing descriptor callbacks are the machine-specific entry points.

The new engine interface needs these stock sites and responsibilities:

Address Base dispatch responsibility
0x40003ca4 Read the selected engine's LFO 3 depth for the standalone LFO calculation.
0x4000d03e Read the selected engine's LFO 3 depth in the audio frame builder.
0x40031e62 Select the selected engine's LFO page descriptor.
0x4000b51a Apply the selected engine's AMP release state for this track.
0x4000b2c8 Notify every contributed engine that stock STOP cleared the global stop word.
0x4000c634 Rewrite this track's START command before the frame is packed.
0x4000685c Clear the selected engine's voice state when stock kills this track's voice.
0x4000e452 Union synth-owned tracks for an out-of-range MIDI note-on channel, then continue through stock routing.
0x4000de10 Apply the same track-mask rule to MIDI note-off so releases reach the same tracks.
0x400625e0 Translate this track's live-recorded note into the selected engine's PTCH value.
0x4006262a Translate the note recorded while a trig is held.
0x40051fce Apply FUNC+UP/DOWN octave edits to the selected engine's held-trig state.
0x40059d56 Stage the selected engine's AMP SETUP page-2 descriptor.
0x4003685a Supply that descriptor's names and formatters to the drawer.
0x400368ac Supply its widget-enable values during the first drawer pass.
0x40036946 Supply its name-enable values during the second drawer pass.
0x4003ae40 Select the engine's AMP page-2 knob handler for this track.
0x4003af0a Keep the stock live lane clear for the engine's LEG slot.
0x40022686 Record the selected engine's file-browser choice without changing stock selection behavior.

Each owned site still needs its exact 1.40C length, guard hash, stock fallback and context in events.json; the base build must verify those against the user's OS. No stock bytes belong in the proposal or repository.

Migration is explicit: until both module packages use the base interface, the exact remaining site pairs stay pending-migration with the corresponding interface entry. Once both packages contribute records, remove those exceptions and their detours. I will not change FM Synth's source without Tim Hastie's approval; its adapter can be updated after he approves the migration.

ilia-murzinov added a commit to ilia-murzinov/modwerk that referenced this pull request Nov 28, 2026
Use neutral ev_hook_reserved_63..68 per repeat98#2246 slot map, add base changelog,
document STOP/MIDI take behaviour when synth and cx-osc coexist, regenerate
events outputs.
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.

4 participants