Skip to content

Octatrack base 0.8: playback admission, saved effects, restore outcomes, stock OS fixes and screen capture, with FM Synth 0.1.5 and Tape Echo 0.1.9 - #1910

Merged
repeat98 merged 242 commits into
mainfrom
base/octatrack-next
Nov 23, 2026
Merged

repeat98 merged 242 commits into
mainfrom
base/octatrack-next

Conversation

@repeat98

@repeat98 repeat98 commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

Release state: base 0.8 e1152583 (23 November 2026)

Base 0.8 e11525835106699a237e00e414c268b58128609a6be575a8276bf29a1dd876e7, packed 830,980 of 851,712 container bytes. In it, on top of everything below: the restore outcomes over USB (#2031), the four stock OS fixes (#2032), the Hub's screen capture, FM Synth 0.1.5 (#1928, from main) and Tape Echo 0.1.9 (#2009, merged into this branch). npm run check passes on the branch head.

The owner's decision (23 November): release now and lower the costs afterwards. The owner waived the Keep and the power cycle of the release image, and the listening pass: he cannot be at the unit, and the base ran from RAM through many twins.

On the owner's MKII today (OS 1.40C, project Dev17, bank C, Part 1; nothing kept, nothing saved):

  • The exact release image (octatrack:base --beta --out, e1152583) was started from RAM and came back on USB as e1152583. Tape Echo 0.1.9's release package ran on it as a 20 s trial: no crash, stall, freeze or skipped track, rolled back, inventory empty afterwards.
  • Readiness run on the development twin 678843cc of the same source, with a 24-module set installed as a rolled-back trial (ten effects, six machines, eight utilities), about 20 minutes:
    • no stall, no crash and no dropped render in the whole run, including a change from C02 to the eight-track C01 while playing with modules placed (longest frame 115.8 %);

    • one module picked alone on T1 after the pattern had played 5 s:

      Pattern (stock alone: mean, longest frame) Tape Echo, Euclid, Mini Verb, E-Verb, Air Chorus FM Synth, Amiga, SYNTIZ, Grain, POLY8
      C02 empty (34.5 %, 52 %) 5 of 5 admitted 5 of 5 admitted
      C03 medium (34.3 %, 79.7 %) 5 of 5 0 of 5
      C04 six tracks (36.0 %, 86.5 %) 5 of 5 0 of 5
      C01 eight stacked (40.6 %, 96.2 %) 3 of 5 (Tape Echo and Euclid refused) 0 of 5
    • every admitted pick played 6 s with nothing dropped (Tape Echo on C04: longest frame 105.2 %);

    • an everyday set placed one by one (Tape Echo, Mini Verb, FM Synth, E-Verb, Amiga, Euclid, a second Tape Echo): 4 of 7 on C03, 3 of 7 on C04, then 15 s at 100.6 % and 107.5 % with nothing dropped.

  • Why the machines are refused: the installed set is not free. With the 24 installed and used nowhere, C03 read 40.6 to 46.7 % mean and 86 to 91.5 % longest frame, against 34 % and 74 to 80 % with no modules. Admission judges the longest frame against the 110 % line, so the unused set takes 12 to 14 of the points a medium pattern leaves. By group, on the mean: the ten effects +1.9, the six machines +1.7 (+8 on the longest frame), the eight utilities +2.5. One install of the same set read +12.4 on the mean and a later one +6.5; not explained.
  • So the owner's goal ("on empty and medium projects, refusals are rare, Amiga included", MODULE_PERFORMANCE.md) is not met with a full set installed. Refusals show the CPU FULL box; nothing drops. Lowering the cost at rest is the work after this release.
  • C01 to C04 are all on Part 1 (read from the bank in RAM).
  • FM Synth 0.1.5 on T2 with a trig on every step of C02, against the same trigs on T2's sample (three readings each, sample, FM, sample again): frame interrupt 29.2 % against 31.3 %, +2.1 points; longest frame 57 to 59 % against 59 to 61 %.

Not tested on this build: a Keep and a power cycle of the release image; the card route; #1830 on the release image; USB input; the four stock OS fixes on a unit; the screen capture on the release image; any listening (Tape Echo's hold and rest, FM Synth's GLIDE, HOLD and first note, #2030); sets smaller than 24; the base-bound modules (a twin does not trust them); the MKI.

Open: the private duplex trial package (usb_audio_package.py --usb-input --release, written only beside a release image with --out) refuses its reviewed recipe on this branch; it is not part of the release. #2030 (a silent FM track keeps its cost) stays open.


Octatrack Hub screen capture on draft base 0.8

The new Screen tab reads the LCD on demand over USB. Pop out opens a clean window for OBS. Record video saves a silent clip locally. The preview and recorder share one reader, configurable at 5, 10, 15 or 30 fps. Capture defaults to 15 fps. Static preview frames skip pixel decoding and repaints. Opening the Hub alone sends zero screen requests.

Both the initial public build b2e12cbf and the combined draft e1152583 with #2032 returned 12 frames in the MKII emulator. Each final pixel buffer matched its independent panel capture byte for byte. The browser and native builds produced the same combined OS container (8c7842ff).

On a physical MKII playing C02 with stock FX, development twin 67c87af4 of the initial build delivered 4.92, 9.62, 14.21 and 26.37 USB frames/s at the four settings. Mean CPU was 40.68% with capture off, 40.95% at the 15 fps default and 41.05% at the 30 fps cap. Both DSP readings stayed flat, with zero skipped renders. The page stayed static, so this measures USB delivery. The original build 856cbbcf was restored. The physical run covered the USB transport and playback. End-to-end browser recording from the unit, MKI and saturated projects remain untested.

Edge cases

Case Why this change makes it a risk How run Result
Idle Hub or older base A background reader could use USB before the musician starts Hub tests count screen requests on mount with and without the capability pass
Slow USB with preview, pop-out and recording Multiple readers or a pending transfer could outlive the window Session test delays replies while changing rates, recording and closing pass
Dense polling during playback LCD copies could take time from audio rendering Physical MKII development twin, eleven timed windows at 0, 5, 10, 15 and 30 fps pass
Recording a moving physical LCD The host encoder must preserve visible changes in an exported clip Requires a browser recording from a connected instrument not run: physical comparison measured USB frames and playback counters

The driving guide now documents the screen capability and the default Windows RAM transfer chunk. Screen verification and per-window readings.

0.7.14: main's 0.7.13 and #1947 merged in

Main published 0.7.13 (#1964: the CPU guard counts a machine's measured meter cost), so this draft's base is now 0.7.14. Its changelog notes, the base changelog row and Beat Slicer's "needs base" line say 0.7.14; the dated verification records keep the builds they name.

  • #1947 (twwwy), merged with its commits: Part Edit's one-row popup draws its names, and when the last row goes with the window open, stock's window gets its keys back. Its MKII results apply to its development twin 5b9c4b1e.
  • Main's Octatrack base 0.7.13: the CPU guard charges what a machine really adds #1964 merged in. Both sides changed the CPU guard, combined in machine_registry.c and status.c: the CPU FULL box shows what a pick adds, now its meter cost (reserved[1], its price without one) plus any wake; admission takes the larger of the last full playing window and the current one, with machines picked or removed since the meter last held them on top, never below the newest reading after one left.
  • Release base 0.7.14 7342ecf76c7002e9422e86418bd6049a4201fc0ec1752b19e397eced111fd764. Browser and native builders produced the same OS, ca7e2c52, 821,268 of 851,712 container bytes (30,444 free). The base-bound packages name it; Recorder Loop Fix's base package is rebuilt and published at its digest URL.

Host tests on the merged sources passed: machine registry and Part Edit (test_machine_events.py, 20), the public registry fixture (2), and the elekloader recipe suite with test_status.c (39, 2 skipped). The full npm run check had one failure: Recorder Loop Fix's zero-DSP record still named the old package digest. The rebuilt package 4ba8527a still has zero DSP program words at byte 32, so the record now names it, and npm run check -- --base origin/main --rerun-failed passed. pr:ready still flags the base and Beat Slicer changing together, the known #1165 exception.

Not tested on a unit: 0.7.14 7342ecf7, the combined CPU guard, and #1947's fix on this build.

Guides: nothing was missing for this merge; the performance guide's CPU guard paragraph now describes both sides' changes together.

CPU FULL by the longest frame, stock's room kept, costs with the set, the frame ceiling, late entries (22 November)

The CPU meter judged picks. It let SYNTIZ, Analog BD, FM Synth and Tape Echo in past the point where the frame guard drops renders (24 to 165 dropped each), and it refused Amiga and POLY8 when they fit. A machine pick also showed up to three different CPU figures, against three different lines.

  • One figure. Every pick of a module's machine or effect is judged by the longest frame interrupt of the last four seconds, against a line of 110 % of a frame (owner).
    • Of 32 readings on the owner's MKII, none from 95 to 125 % dropped a render, half from 125 to 130 % did, and every one past 130 %. Module-heavy Parts dropped earlier: on twin 24 a medium pattern dropped 1 render at 112.1 % and 5 at 113.2 % in 15 s, so the owner chose 110 over 115 and 120.
    • The mean doesn't separate these. Analog BD played at a 61.7 % mean with nothing dropped, while eleven installed modules dropped renders at 50.7 %.
    • Stopped, the unit is judged by the larger of what it last played and the newest reading. Picks made since count once. A swap takes off what leaves, from the last four seconds too while playing, so a swap for a lighter module is never refused. Switching to another Part and back restores the kept figure.
    • This fixes 0.7.13's two load bugs. The meter check and its text-only box are gone.
  • Next-instance cost. sdk/machines/octatrack/frame-costs.json holds each module's first (one alone on the Part), each (every further one) and rest (installed, on no track or slot). first and each are fitted from one to four instances on empty tracks of a medium pattern, rest against the same set without the module (device:price --curve, modwerk-bd). Tape Echo: first 9.9, each 3.9, rest 0. A pick is charged its first when no other track or live slot of the Part runs the module.
  • Stock keeps its room, by the pattern that plays (owner). A pick is judged as if the Part played the stock load of the pattern that plays, and of one queued in the same bank, with the Part's modules booked on top, whenever that is more than the unit measures.
    • The bank's busiest pattern was tried first (twin 23). One stacked eight-track pattern then refused all 26 picks in its bank. Owner: judge against the playing pattern, and a later switch to a busier one is for the guard, ceiling and wait to handle.
    • A pattern is judged by N, the most tracks that trig on one step, and T, the tracks that trig at all: reserveBySteps[N] + 2.6 % × (T − N).
    • Once the pattern that plays has played four seconds with its current trigs, its own stock as measured plus a 4 % margin replaces the ladder when it is lower, never under the floor. The margin travels as stock.measuredMargin, and the ladder keeps 8 %. Its stock is the longest frame less what the Part's modules book. On twin 28 a medium pattern with three Tape Echos measured 96 to 97 % against a ladder figure of 108 %, and refused a fourth. A pattern change restarts the four seconds.
    • The ladder, with samples on all eight tracks: 37.1 % for none, 64.2 % for one, then about 5.4 % a track to 101 % for eight. On top come a margin of 8 % (delays waking added 7 % at eight) and a floor of 60 %.
    • Spread trigs read 82.3 % with one trig on every step and 85.1 % with two (twin 7a5b0949). The busiest step alone had reserved 72.2 % and 78 %.
    • Every installed module's rest is booked on top. FM Synth 0.1.4 installed and unused costs 20.3 %, Euclid 2.5 %, the others 0.
    • A pick isn't refused for load it doesn't add (owner): a pick adding 2 % or less is always made. When the installed modules' rest is what leaves no room, CPU FULL says UNUSED MODULES.
    • A machine's first instance on the Part takes a sample's share off: 2.5 % off the measured figure and off a measured stock, on a track that plays a sample; 7 % off the ladder. A further instance is charged whole, plus 2.5 % for its own trig starts on a track that trigs. Readings played since the last pick, or since the modules last changed in any way, count when they are more than the kept figure with the picks on top. A set installed, removed or undone starts the picks' account afresh. On twin 27, Amiga on a medium pattern's sample track added 24.1 against its curve's 26.6, and a second one added 4.3 against its 4. Netting 7 % had admitted that second Amiga, and it dropped 14 renders.
  • A pattern predicted past the ceiling goes without only what it must (owner). When the pattern that plays, or one queued, would pass 122 % with the Part's modules, the Part's module machines go silent from its first frame, dearest first. If it is still over, effects that subscribe ev_frame_deadline bypass dry through the hook's new rest argument, dearest first, until it is under the ceiling. No other effect is touched: modwerk-bd found that Tape Echo's and Euclid's detours have no clean rested state. The screen shows PATTERN IS BUSY with up to two module names for three seconds. The log gets a brake incident with bit 23 set, and trial verdicts note it without failing. It is judged on every UI tick, so it lifts with the next pattern or Part, or when a module is removed.
  • ev_frame_deadline gains rest: unsigned f(uint32_t deadline, unsigned rest). rest is latched for each frame and each subscriber, and every handler runs every frame. Admission charges the effect the same either way. Only development twins and the Tape Echo 0.1.9 draft use the hook.
    • A machine is booked less the sample its track would play (7 %).
    • Owner: refusals should be rare on empty and medium projects; heavy ones may refuse; a little too conservative is fine for now.
  • One window, drawn as DSP FULL is (owner). "NAME NEEDS +x%"; a DSP row for a module that also runs on the DSP; a CPU row whose solid part is what the unit takes now and whose shaded part is the pick, 100 % being the line, never past it; CHANGE ONE FIRST, or PART IS BUSY when the Part's own sound is why. Screens on twin d83e2820: Tape Echo (DSP + CPU), Analog BD (DSP voice + CPU), Amiga (PART IS BUSY).
  • Costs travel with the set. MWMS v2 (loader capability 4096) appends 12-byte entries (module, each, first − each, rest, 0) per mille. The base's own figures follow as pseudo ids 0xfffffff1 to 0xfffffffe: a track's share, the line, the ladder, the margin, the floor and the 2.6 % a track. A later base with cheaper stock gives modules more room with a new measurement and no rebuild. status.c keeps them in battery RAM ('MWER', 0x100f9200 to 0x100f970c). Only development twins ever took v2, and no module package changes.
  • Shedding. The frame guard already wraps only module renders; stock's own FLEX render is never guarded. In an overload, only the module's track drops: POLY8 at a 141 % longest frame dropped 7,609 renders on its own track, and the other tracks and the UI were unaffected.
  • The frame ceiling and the brake. One frame interrupt of about 465 µs (128 %) stopped the DSP exchange for good, at a pattern change with modules placed or in an overload (stalls 49 to 52; stock-only pattern changes peak at 96 %).
    • No module render may end a frame past 122 % (443 µs), whatever the guard's credit, and that includes a DSP voice's ColdFire side.
    • Past the ceiling there's no probe: a held render, including what it cost in step frames, is timed afresh at STOP, at a Part change, or when another machine takes its track.
    • When the frame interrupt still falls two frames behind, the brake silences every module machine track until STOP or a Part change, with a brake incident in the log.
  • Late frame entries (Octatrack base: measure late frame-interrupt entries, with a wait that stays off until a unit has measured it #1510), on in every base. The base measures each frame-interrupt entry and holds one that is 80 to 190 µs late until 190 µs, so the DSP skips a frame instead of stopping (device -- late, late:off on development bases).
    • The window started at 110 µs until stall 56 on twin 24. An entry the stall trace put 138 µs late wasn't held: the base's own clock read it under 110, since the trace is stamped later in the frame. A stall now keeps the last eight entries' lateness by the base's clock ('MWLR', battery RAM 0x100f9710).
    • With the ceiling alone, the switch scene stalled on its first switch. With the ceiling and the wait, it ran 20 of 20.
    • But each held entry is a skipped DSP frame, heard as a full-scale click (9 in 15 s of a busy Part with two Tape Echos). It stays on as a safety net, since a click beats a power-cycle stall.
    • Every base now logs a late incident with the count since boot, at most once in ten minutes, and a trial with one fails.
    • A chain of held entries could keep the frame interrupt at level 5. A body of 283 to 363 µs after a held entry puts the next one in the window again. After 16 in a row the brake ends it. On the unit no more than eight in a row were seen.
  • ev_frame_deadline (owner). At each frame-interrupt entry the base raises the DTCN3 count by which work at level 5 must end for the next entry to land no more than 60 µs late. An effect stores it and holds a block that would run past it. Older bases refuse a package that subscribes to it.
  • Ship conditions for 0.8 (owner).
  • Review fixes. An independent read of the guard and admission code found the step-frame figures never reset and a lighter swap refused while playing. It also found a reading between a booking and its landing counting a fall twice, and the skip count able to wrap. All four are fixed, with host tests.
  • Also: modwerk-bd's boot gap fix. The first gap after boot reads 434 µs.

Unit tests on dev twins of this branch, run by modwerk-bd on the owner's MKII. Nothing was kept.

  • Twin 5 (longest-frame judge, table costs): picks were refused and admitted as predicted. Tape Echo plus Euclid played for 30 s at a longest frame of 107.9 % with no render dropped.
  • Six Tape Echos on a busy Part reached 114.5 % with no render dropped.
  • On twins 9 to 11, with the C04 curves and reserve 88 / line 120: 7 of 11 typical picks admitted on both an empty and a medium Part, no render dropped, the medium Part playing at about 101 %. What's refused is a machine after six effects. Record: docs/verification/2026-11-22-octatrack-base-0-8-admission-run.md.
  • The busy-Part scene, with the reserve following the busiest step (twin 20), went from 29,467 renders dropped to 3,099. Without FM Synth 0.1.4 the same scene played with 0 drops and 0 late entries, and the owner heard no artifacts.
  • The guard share at 800, 900, 950 and 1000 per mille made no difference to drops or the panel (Amiga ×2 and a chorus, twin 20), so it stays at 800.
  • Twin 23, with the bank's busiest pattern, refused every pick in Dev17 bank C, 0 of 26 on empty and medium patterns. Its reserve was 109 % plus 22.8 % at rest. The busy C01 played at 126 % with 77 renders dropped in 15 s, 0 late waits and no stall, likely from FM Synth 0.1.4 at rest.
  • Twin 24 (the playing pattern, near-free picks, UNUSED MODULES): an empty C02 admitted 25 of 26 picks with 0 drops at a 61 % longest frame. A medium C03 admitted about 20 of 26 and dropped renders from 112 %. It stalled (stall 56) when eight picks made on empty C02 then played on stacked C01 with two Tape Echos: frames at 132 %, 21,399 renders dropped, then a 464 µs frame and an entry the wait didn't hold.
  • Twin 25 (the 80 µs window, the lateness record, the 110 % line), three takes of stall 56's scene with FM Synth 0.1.5: no stall, and MWLR all zero. About 10 entries were held in each 15 s, at 130–131.5 % frames, with about 4,400 renders dropped and 5 to 8 full-scale clicks a take. One Tape Echo is enough for it. The scene still fails the owner's "no glitches" bar. Tape Echo 0.1.9 bounds the effect side. Silencing module machines on a pattern predicted past the ceiling is with the owner.
  • Identical takes refused different picks on the empty pattern. The stacked pattern's kept 130 % survived a trial's rollback whenever the next take played under 4 s before its picks. The kept figure now counts only on the pattern it was played on.
  • Twin 25's six everyday sets at line 110 (FM Synth 0.1.5's costs): on an empty pattern 26 of 26 picks admitted, 0 dropped, 62 % longest. On a medium pattern 12 of 26 admitted, 0 dropped, 91 to 109 % longest. The first heavy machine was refused in 4 of 6 sets, which the track-share netting addresses.
  • Twin 27 (this head: the predicted brake, near-free picks always made, the track-share netting), three takes of stall 56's scene: no stall and 0 renders dropped (twin 25: about 4,400). With FM Synth silent, stock C01 plus the effects (one or two Tape Echos, Euclid, Mini Verb, Chorus, E-Verb, Vibrato) still reached 127 %. Each take held 5 to 10 late entries, heard as clicks at 0.79 peak. That is Tape Echo's ColdFire work, which 0.1.9's deadline bound is for. Twin 27's everyday sets: on an empty pattern 26 of 26 picks admitted with 0 drops. On a medium pattern 14 of 26 admitted, and one set dropped 14 renders at 114.2 %, which the 2.5 % netting addresses.
  • Twin 28's first empty-pattern sets were invalid: C02 still held trigs VECTOR's curve had written, which the trial's rollback left. device:price now stops when a module leaves trigs behind. On the cleared C02: an empty pattern admitted 26 of 26 picks, a medium one 13 of 26, 0 renders dropped anywhere, longest frame 109 %.
  • Twin 29 (the measured-stock reserve): an empty pattern admitted 22 of 22 picks with 0 drops at a 38 % longest frame. A medium one admitted 16 of 26 (twin 28: 13), FM Synth 0.1.5 among them. One set dropped 13 renders at 114 %. A second Amiga was admitted because the reserve took a sample's 7 % off its each of 4, but it added 7.4. Only a machine's first instance is netted now.
  • Twin 30 (further machine instances charged whole): the second Amiga was still admitted, and the Part dropped 16 renders at 115.7 %. Its snapshot showed why. The reserve netted 7 % off the first Amiga against the pattern's measured stock, which already held that track's sample, when 2.5 % was right. The kept figure also ignored the 2.5 s of play after the pick. TE ×7: 5 of 7 admitted, 0 dropped.
  • Twin 31 (2.5 % against a measured stock, readings since a pick): an empty pattern admitted 26 of 26 picks and a medium one 14 of 26, with 0 dropped anywhere. But every first heavy machine was refused on the medium pattern (Amiga, SYNTIZ, FM Synth), with the ladder's 8 % margin on a measured stock.
  • Twin 32 (margin 4 on a measured stock, trig starts for a further machine): on the medium pattern only 6 of 26 picks were admitted, 0 dropped. The refusals followed the order of the sets: after a trial's rollback, the readings since the last pick still held the previous set's 110 %. They now restart whenever the modules change, and a set change starts the account afresh. In isolated repeats, the first Amiga, the second refused, and Tape Echo behaved as predicted.
  • Twin 33 (this head), six everyday sets: an empty pattern admitted 26 of 26 picks and a medium one 18 of 26, 0 dropped anywhere, longest frame 106.5 %. The first Amiga and FM Synth on the medium pattern were refused in one set and admitted in another. They land within a point or two of the line, so the readings' scatter decides them. Not yet run on twin 33: the overload scene with Tape Echo 0.1.9, listening, and the final exact-build test (the owner's).

Not tested:

  • Twin 33 and the release build.
  • The table across a power cycle.
  • The card route, which carries no costs, so units that use only the card are charged the fallbacks.
  • MKI.
  • ot_emu.

Guides: MODULE_PERFORMANCE.md described the meter check and a 60 % mean line. It now describes the longest-frame check, first, each and rest, the pattern reserve, the new window, the deadline hook and how to measure a cost (on an empty track; on a sample track a machine replaces that render and reads low). OCTATRACK_DRIVING.md names the late incident. TEST_PROCEDURE.md said every effect pick is refused under ot_emu, which held for the meter only. The elekloader README names the frame window, the table and the reserve, and no longer says a pick charges every quiet delay.

Owned DSP channels no longer close 45 minutes after boot, and the trial's skip count (22 November)

  • Fault (live on main's 0.7.13 too). The CPU meter's DSP reads are legacy PEEKs, about 24 a second a core even stopped. They wrap each core's 16-bit packet sequence about every 45 minutes, and resident_driver.py closed the core's owned job channel on a legacy wrap. The key bus then went down, so Analog BD read as "clashes with another" (RUNTIME_CONFLICT), and the controllers' and engines' owned jobs stopped until a restart. This is the 12 November field report.
  • Fix (f24195c3f). A legacy wrap skips zero, as upstream's transport does, and leaves the channel open. owned_reserve already refuses a job that would span the wrap, and the legacy ACK carries no sequence. test_owned_transfer (mode 5) now checks that the core stays open after a wrap and that the next job starts at sequence 2; the test fails on the old driver.
  • On the owner's MKII. On twin 9203cdf6 (without the fix), a PEEK storm wrapped core 0: owned_closed went from 0000 to 0100 in the same reading, and Analog BD was then refused. On twin 5aa7bdf8 (with the fix), four wraps on core 1 left it 0000, and Analog BD installed.
  • Trial skips by count (fc93a158e, from 849476d5a). diag.c pages the frame guard's live skip count (MWSK) in the log's last page. The trial verdict compares the count before and after, instead of reading ten-minute rate-limited shed records. The first frame's gap is no longer measured from the timer's start.
  • Not yet regenerated: octatrack:base --beta --write runs once with the admission changes.

0.7.14 on a unit: big sets, at-rest cost and the CPU guard (22 November)

Tested on a unit: development twin 9203cdf6 of b36f9c53e, Octatrack MKII, OS 1.40C. It carries the beta flags, with USB Audio linked as USB AUDIO OUT MAIN and no packaged USB Audio, plus trust rows for all five base-bound modules. The scene was Dev17 C01 with trigs on every track. Everything ran as rolled-back trials; nothing was kept. Record with every figure.

  • Big sets install and pass the self-test. 24 modules (all five base-bound ones included) installed in one trial and passed the self-test, 24/24. Eleven- and one-module trials also rolled back to an empty inventory.
  • Installed modules cost the frame while unused, and stock tracks drop renders. 24 modules used nowhere add 18 points of frame share while playing (39.4 % → 57.5 %, longest frame 125 %). The frame guard then skips renders on plain sample tracks. The biggest costs: FM Synth 5.8, Repitch 2.7 (acting through a loop's timestretch), Mute Modes 2.6, POLY8 2.5, Euclid 2.4 (0.1.6 rests). Skips appear at a 51 % mean, because single frames spike past the guard's share.
  • The CPU guard refuses what fits and admits what does not.
    • The second FM Synth was refused at "PLAY 79 % +6 %". That figure counts sleeping delays on top of a kept reading taken while they played, and charges FM Synth its price while five tracks of it lowered the meter.
    • SYNTIZ (+14.5 frame, 24 skips in 8 s) and Analog BD (+7 frame a track, uncharged; three tracks gave 61 skips in 8 s) were admitted.
    • One Tape Echo, admitted, gave 165 skips in 11 s. On the next play the audio froze and the unit left USB; the stall and crash records are still to be read. The same path exists on the live base.
    • The admission fix is being designed with these figures (frame share with a peak check, frame charges for ColdFire effects and DSP voices, prices carried in the set).
  • Smaller findings:
    • POLY8 writes TSTR OFF into the Part and never restores it.
    • A trial's verdict counts skips logged late from an earlier trial.
    • The first gap read after a RAM boot is the boot itself.
    • device-send.py under a time limit left its request running (fixed separately).

Not tested on a unit: Part and bank switches under load, set swaps, Euclid, more than one Tape Echo, listening by a person, release image 7342ecf7, a Keep and a power cycle. The unit left USB before those runs.

Edge cases from this run

Case Why this change makes it a risk How run Result
24 modules, five base-bound, in one trial the set and trust rows on the new link device set + selftest pass: 24/24 intact, rolled back
Installed and used nowhere, playing resting is meant to make this free per module alone and in sets, guard + stats fail: +18.1 frame for 24, stock renders skipped
Second machine picked stopped after playing the combined admission (#1964 + this draft) FM Synth T1–T5, guard figures from RAM fail: refused while five fit (−1.8 meter)
ColdFire-heavy machine and DSP voice the meter check alone judges them SYNTIZ ×1, Analog BD ×3, played fail: admitted, 24 and 61 skips in 8 s
A ColdFire effect beside idle modules module effects are judged by meter + wake only Tape Echo T1 FX2 with set G fail: 165 skips, then frozen audio and the unit off USB
Part bytes after machine picks and removals machines write the Part byte compare with copies taken before POLY8 left T2 TSTR OFF; restored by hand, Part equal after

A shorter saved set keeps its file's length (#1830), and the loader's pool may sit at RUNTIME_POOL_AT

When the base saved a smaller module set over a larger one, store() in modset.c rewrote MODWERK0.SET or MODWERK1.SET in place, and stock's close took the shorter length. The file's new last cluster kept its old FAT link, so the chain ended in clusters marked free, where a later save could write. Now the file keeps its old length, as the core logger already does on hardware (stock_140c.c). The set's header says how much of the file is the set. A set without a shelf is version 1 and reads nothing after the set. A shelf is taken only with the set's own save generation, so a stale shelf left in the longer file is never read.

The shared loader also takes an optional RUNTIME_POOL_AT, for a machine whose base area is too small for the pool. It is prodbysmolec's define from #1842, unchanged, and the Digitone II needs it. Without the define the Octatrack's code is the same. The base was rebuilt because its source hash changed.

The build is now 31f3d28bcd05d58093906abb3e6ef3dccfe23ec82adfca5fd102b83f328ed282. The packed container uses 821,128 of 851,712 bytes, up 36. The base-bound packages were rebuilt against it, and Play Modes stays at 0.1.1 (#764). Related to #1830.

Not tested on a unit: build 31f3d28b still needs exact-build qualification, including a Keep that removes a module and a SAVE PROJECT after it.

Edge cases for the saved-set length

Case Why this change makes it a risk How run Result
A smaller set saved over a larger one The case #1830 found: the chain ends in free clusters ot_emu, unchanged 0.7.13 base: Tuner kept, then removed, then Bar LED kept; the card's FAT chains walked afterwards fail: on the unchanged base, as expected (reproduced): MODWERK1.SET 512 B, chain 10278 → 10279 → free, in both FAT copies
The same on the fixed base The fix must leave a closed chain of the old length Same emulator sequence not run: in six later runs, on both builds and two emulator builds, the emulator never saved the set to the card. The fixed build is unproven in the emulator
Shortening saves in the host model Stock's close takes the length from word 4 runtime_card_shelf.c now models that close Pass. Without the fix it catches 14 shortening saves
A new slot, or a set that grows The kept length must not shrink a growing file or invent one Host shelf test Pass
A longer file read back Bytes after the set must never be taken as the set or its shelf Code read of load() and whole(); saved-set fixture and the volatile-service test Pass: load() reads the header's length, version 1 reads no shelf, and a shelf needs the set's save generation
The Octatrack without RUNTIME_POOL_AT The define must not change the Octatrack's loader Base rebuilt; browser and native builders compared Pass for the two builders: the browser build equals build_core.py's. The define's own effect is not separated from the #1830 fix, which changes the code in the same rebuild. The #else keeps the pool exactly as before
SAVE PROJECT after a shorter Keep, on a unit Hardware is the only proof that stock's FAT leaves the old chain closed Exact-build unit trial not run: the exact build waits for the owner's unit pass

Machine port fingerprints and the new 0.7.13 build

Each machine now hashes its own declaration in machine-ports.json. Scale Quantizer can change its port without invalidating the Analog BD controller trust record. The one-time change to the fingerprint format regenerates the draft trust row and makes the release build b2ffd651aa1b237f86d11ba4b8517bc54487287d3d2cb2af72ecf7c6e2e778ae. Related to #1886.

The browser and native builders produced identical OS images. The isolated compiler reproduced the published Octatrack artifacts. All five base-bound packages retained their bytes and now name the new base. The optional USB input package retained hash 0cb56b0c. The packed container uses 821,092 of 851,712 bytes, up 8,724 from 0.7.12. The Elekloader README now explains which port edits need trust regeneration.

Not tested on a unit: the new build b2ffd651 still needs exact-build qualification. The hardware results below name the earlier builds they cover.

Edge cases for the fingerprint change

Case Why this change makes it a risk How run Result
Quantizer changes its machine port The shared declaration could still invalidate Analog BD’s trust record SDK regression changes a Quantizer source pin and checks both machines’ fingerprints Pass. Quantizer’s fingerprint changes and Analog BD’s stays the same.
Existing base-bound packages The new base identity must accept the existing packages Isolated rebuild, package trust check and required-base check Pass for all five packages.
RAM boot, a Quantizer upgrade and Analog BD playback Users need a working trial and rollback on the new base Exact-build unit trial Not run. The unit was reserved for Grain.

USB input and timed Undo on 0.7.13

The USB and Undo hardware run used build 8cd1320411a62dad70e3248387f8b61655af3ae739f4ebdf0088b3144c88ac24. A beta build with --out produces the optional stock-free USB input package 0cb56b0c269cb2f3b355a3116f00cd951ed060961813486da76f3c3665c03c3f. The public USB Audio module is still 0.3.0-experimental. The adapter credits Bryan Tysinger’s MIT-licensed OctaBam receiver and DSP loop. Pinned source and credit.

Tested on a unit: Octatrack MKII, OS 1.40C. The exact draft ran from RAM and restored its complete starting set checksum on timed Undo. An intervening HELLO had advanced the device sequence from 14 to 15. The fixed host read it before sending ENTER at 16 and ROLLBACK at 17. Both received matching replies. The trace does not identify the other client.

On the matching development build 9ff0c2892385c424, all four panel input modes routed correctly. The Mac recorded 17 min 33.814 s of four-channel duplex audio at 44.1 kHz while T1 ran Vibrato. During that recording the MKII captured A/B and C/D into R1 and R2. All 18,900 frames of each matched the source tones. CoreAudio reported zero callback faults. Device counters added no underruns, overruns or packet errors in the sampled interval. The owner ended the 20-minute target early to give Grain the unit. The original base, both installed modules and the complete set checksum were verified before handoff. Hardware record · Measurements.

Release remains on hold.

What changed

A failed sync could say it stopped during staging and show six USB counters. Those counters cover the whole sync, so they could not identify the failed command or how much of its frame the controller had left to receive.

The upload session now records the attempted command and the byte offset of a CHUNK. Octatrack base 0.7.13 advertises a sequence-specific DIAG read. The site reads it before recovery and shares the remaining byte count only for a matching attempt. The Worker validates the three fields and the private diagnostics summary displays them. Older bases can still report the command and offset.

The base also accepts the two reviewed Mute Modes packages, 0.2.2 and 0.2.3, so an existing installation can load and then upgrade. The machine package builder preserves the shared events a machine raises, including the mute query used by FM Synth. Related to #777 and #1652.

The base now offers ev_audio_frame_prepare before the per-track LFO pass. A module can maintain its musical clock once per audio frame, including before its first note.

Verification

The browser builder and the native builder produced identical OS images. Local PR readiness passed, including 3,229 Vitest tests and 720 SDK cases. The five base-bound packages rebuilt byte-identically. The cases below cover the new firmware, browser, Worker and diagnostics reader.

Hardware evidence for the staging diagnostics build follows.

Tested on a unit: base 6962a3cf, Octatrack MKII on OS 1.40C. During Tape Echo staging the host discarded one acknowledged reply. The site emitted stage / NetworkError / chunk / chunkOffset=4043 / remainingBytes=0. A query using the preceding sequence returned unavailable. Recovery cancelled staging. After returning to the original base, its set hash and inventory matched the pre-test snapshot. A spontaneous mid-frame timeout was not reproduced on the unit.

An earlier cumulative 0.7.13 candidate had configuration 80ef13b8ea3351ea112b925cf4c8a0d4d4437133ba9fc227f39d5be7dff60b94. Its browser and native OS images match. The largest container uses 812,716 of 851,712 bytes. The Octatrack source rebuild matched the committed packages, and 71 exports for other instruments reproduced. The builder now emits repository paths using forward slashes on all hosts.

Tested on a unit: base 80ef13b8, Octatrack MKII, OS 1.40C. Each exact Mute Modes package (0.2.2 and 0.2.3) and FM Synth 0.1.4-experimental.1 ran by itself in a five-second USB trial. Each rollback restored its active identity and inventory. The original RAM image and its empty inventory were restored at the end. Hardware record.

Not tested on a unit: the earlier 0.7.13 release image ae78c478 and its development twin 1d880c5a. The preceding MKII results apply to the earlier builds named above.

The release image loaded the MWREPROB/TARGET fixture in the ColdFire firmware emulator. With the modeled frame timer, the shared dispatcher and the frame exit alternated 219 times stopped and 200 times playing A01. A separate real-loader instruction test installed and rolled back both private FM variants and a counter. The counter saw 1,024 callbacks in 1,024 dispatches and stopped after Undo. Clock, routing, glide and legacy marker tests agree with the published FM routines. These tests do not measure the MKII’s installed-unused CPU cost or qualify older-project audio.

Edge cases

Case Why this change makes it a risk How run Result
First and later chunks, BEGIN and VERIFY The last acknowledged command or progress value could point at the wrong frame. Upload session regression tests Pass
Retries and 16-bit sequence wrap An earlier attempt could supply a plausible byte count. USB transport and link tests Pass
Partial frame, zero bytes remaining, missing sample A stale or absent reading could appear as zero. Native firmware DIAG fixture with the 120-byte frame and 56 remaining, completion and a mismatched sequence Pass
Older base, reset, no new prime, stalled DIAG read Optional diagnostics must preserve sync recovery. Link regression tests for the original counters, extension negotiation and read deadlines Pass
Private or out-of-range fields Reports need to stay bounded and interpretable. Worker validation and storage tests, including zero offset and zero remaining Pass
Existing Mute Modes 0.2.2 and upgrade to 0.2.3 A changed declaration could strand a saved package. Installed and rolled back both exact packages on the same emulated base Pass in emulator
FM Synth alone and beside Mute Modes 0.2.3 The query must allow standalone playback and suppress the right trigs in a pair. Assembled engine tests, emulated USB and audio in DT-T and OTFX-T Pass in emulator
MKII installation and rollback on the cumulative candidate Two reviewed Mute Modes packages must each load. Individual exact-package trials, followed by rollback and identity and inventory comparisons. Pass for 0.2.2, 0.2.3 and standalone FM.
Combined set on a cardless MKII Hardware audio checks require both modules active. The exact pair was refused during set verification on the production and development builds. Physical DT-T/OTFX-T mute and STOP checks, a card-backed upgrade, an all-package trial and soak remain open.
Transport stopped and playing before any FM voice The first note needs the existing sequencer clock. Counted the new dispatcher and an independent frame exit on a loaded virtual project. 219/219 stopped, 200/200 playing.
Removing the last frame subscriber A stale callback could run after Undo. Installed a counter in the emulated loader, restored the empty set, then dispatched 32 more frames. Counter stayed unchanged.

Guides

The USB section in docs/OCTATRACK_HARDWARE_TRAPS.md documents how to request the byte count for one submission, and how to distinguish zero from an unavailable reading.

The same guide explains how to retain both package identities across a table-owner upgrade.

The Octatrack hook reference is generated from the new event declaration.

Playback CPU admission

The CPU guard now carries the last full playing measurement across STOP and the next PLAY. After eight new playing readings it can admit a lighter pattern again. CPU FULL identifies the track and shows the load used for the decision, the extra CPU the pick reserves, and the 85% limit. The frame-share display uses the same restart window. Stock effects and NONE remain available.

The playback-only release candidate was 1ddf1a75. The native and browser OS images match. The host check covers the seventh and eighth readings, an effect's wake margin and a second refusal while the first dialog is open. The ColdFire emulator ran both release images with a recent reading of 62% and a saved playing reading of 90%. The preceding image admitted a module effect on restart. The candidate refused it, displayed PLAY 90% and LIMIT 85%, and accepted it at 70%. Both FX and machine dialogs were rendered at 128 × 64. Build and edge cases.

Not tested on a unit: release image 1ddf1a75. The combined-candidate MKII measurements follow below.

Guides: the performance guide and the base README now describe which playing window the guard uses after a restart and what the CPU FULL values mean.

Combined 0.7.13 candidate

This draft now includes all four feeder branches with their original commits and authors. The combined release configuration is 74533ff5a9efe6b46d669be60006afa663a410ae0478aaa81191ca0495b7afcb. The full development twin is d096301a and the minimal development build is 05d6d6d8.

Source Included in the combined build Evidence
#1861 The minimal developer base links without the resident stock hooks. Both full and minimal configurations linked. Lasl00's earlier MKII results are in the source PR.
#1870 Optional Part Edit rows can hide themselves or PART. Removing the last module that hides PART restores the stock action. Host cases exercise row removal, the one-row popup and the stock fallback. The Kits interaction still needs the MKII.
#1887 A stopped project can reclaim DSP memory from Sidechain for saved effects. Controller and receiver tests exercised relocation and refusal. The earlier two project loads and USB audio capture are in the source PR.
#1165 Beat Slicer 0.1.68 and the sample editor share SNAP alignment and FUNC+AED grid-action cycling. The package remains 195d2b46. twwwy's MKII SNAP, shortcut, listening and Undo results apply to development twin 54cab594. Repeat the musician-facing cases on the combined build before release.

The browser and native builders produced the same 819,896-byte OS, SHA-256 08d8433b2ab223edc1de41b0f5347f5a28f717ba8e95791edca3e0087013c28f. The packed container has 31,832 bytes free. All five base-bound packages and the USB Audio manifest name the combined release. The shipped 0.7.11 and 0.7.12 release identities are preserved.

In the combined release emulator the 85% admission limit rejected the synthetic 90% restart, allowed the 70% case and kept stock NONE available. Both refusal screens rendered. The 29 focused host regressions passed. Rebinding Analog BD, Output Matrix and Sidechain changed only the two write-lease function addresses in the module binaries. Their gauges retain the hardware readings from the original test scene. Combined test record.

The full local check passed (3,656 app tests and 725 SDK cases). The isolated builders reproduced the Octatrack packages, all five base-bound packages and 71 exports for other instruments. Readiness flags the base and Beat Slicer changing together. The owner’s scoped approval for #1165 covers that pairing.

Tested on a unit: combined 0.7.13 development build d096301a, Octatrack MKII, A01 Part 1, empty module inventory. Mean CPU was 35.0% stopped, 45.6% playing and 45.7% after STOP and PLAY. The DSP cores averaged 39.3% and 38.0% in playback. The longest observed frame was 66.6% on restart, with zero skipped renders or new errors or stalls. Playback ended stopped on A01. Original release 254c5a75, its saved and live module counts (2/2), whole-set hash, Screen Off and USB Audio were verified after restoration.

Not tested on a unit: combined release image 74533ff5. The selected-pattern run used its full development build. Exact-release overload, the combined SNAP and Part Edit interactions, and the large-set soak are still open.

🤖 Generated with Claude Code

twwwy and others added 30 commits November 2, 2026 21:11
Regenerated the beta base with npm run octatrack:base -- --beta --write.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
npm run octatrack:module-packages -- --base-only --stock OS.bin: only
requiredBase and Recorder Loop Fix's linked bytes moved.

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

# Conflicts:
#	sdk/machines/octatrack/base-binding.json
#	src/engine/assets/octatrack-base-variants.json
#	src/engine/assets/octatrack-base.elemod
#	src/engine/assets/octatrack-module-packages.json
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	public/octatrack-modules/recorder-loop-fix/0.1.0-experimental.mwrm
#	sdk/machines/octatrack/base-binding.json
#	src/engine/assets/octatrack-base-fills.json
#	src/engine/assets/octatrack-base-variants.json
#	src/engine/assets/octatrack-base.elemod
#	src/engine/assets/octatrack-module-packages.json
…ging main

octatrack:base --beta --write, then octatrack:module-packages --base-only.
Only requiredBase and Recorder Loop Fix's linked bytes moved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Generated base files taken from main and rebuilt in the next commit; build_core.py keeps both the sample editor's enc and shortcut subscriptions and the Part Edit menu's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…es re-bound, size recorded

build_core.py gets back the PR's sample_editor_snap.h and the enc and shortcut subscriptions beside the Part Edit menu.
Beat Slicer's test backends name the new read_pair field (0: no reader).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…base change ships on its own

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… counts as module work

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…k/drafts counts as module work"

This reverts commit 28f2394.
…se; the base change ships on its own"

This reverts commit faea9ca.
…-api

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

A layout whose configuration hash ended in bytes that, with the zeros after it,
matched stock was stored as a stock reference, and baseIdentity refused the
package (base 0.7.10's tracks layout).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
….1.68 ported onto it

Base ba1e864b, rebuilt on the cumulative 0.7.10 and current main. Beat Slicer
0.1.68 (package 195d2b46) from sdk/drafts/beat-slicer/zero-cross, using the
base's modwerk_sample_editor.h. Not yet tested on a unit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
machine_registry.c counts every machine assignment into
modwerk_machine_assigned, which only controller_board.c defined, and only
a base with --resident-stock-hooks links that file. A minimal development
base (site events and table owners) stopped at the core link on an
unresolved import. The registry now defines the counter when
MODWERK_RESIDENT_ON_DEMAND is off; the beta base compiles the same code
and only its identity moves with the source. A test compiles the registry
both ways and checks the symbol is defined exactly once, and the
elekloader README says how to build such a development base.

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
repeat98 and others added 19 commits November 23, 2026 11:30
…h base 0.8's features

The CPU caution now also reads a module's evidence/frame-cost.json when it was
measured on the released version, so Tape Echo 0.1.9 keeps High CPU from its
0.1.9 curve (11.5 points for the first copy, 4.1 each further) rather than
0.1.6's stacked-limit record. The module-set-limit and frontend MCP test bases
gain judgedRests (2048) and frameCosts (4096), which 0.1.9 requires.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	sdk/machines/octatrack/module-adapters/machine-recipes.json
…ixes and FM Synth 0.1.5

Regenerated after #2031, #2032 and main (FM Synth 0.1.5, #1928) came in: base 0.8
420a753f, packed 830,896 of 851,712 container bytes. FM Synth's machine recipe takes
main's 0.1.5 image; every recipe's source pins are recomputed from the merged
builders; Analog BD keeps the base's recaptured image.

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

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

Past 100 % the frame guard drops renders, so the reading is the overload, not the
module's cost: FM Synth 0.1.5's first pick read 107.9 % (#2030).

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

# Conflicts:
#	docs/verification/2026-11-21-octatrack-direct-dsp-code.json
#	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
#	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
…omes, the stock OS fixes and FM Synth 0.1.5

Base 0.8 e1152583, packed 830,980 of 851,712 container bytes. Base-bound packages
relinked; Recorder Loop Fix's zero-DSP record points at its package (still zero
DSP words).

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

# Conflicts:
#	src/engine/assets/module-build.json
…se 0.8 e1152583

Compiled in the pinned image (modwerk-source-tools 1b15c3c0) from the clean merge
commit 81eda9f and imported with modules:import --development; every package is
unchanged, only the build provenance moves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… 0.8's judged rests and frame costs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@repeat98 repeat98 changed the title Improvement: Octatrack base 0.8 cumulative draft for playback, saved effects and editor controls Octatrack base 0.8: playback admission, saved effects, restore outcomes, stock OS fixes and screen capture, with FM Synth 0.1.5 and Tape Echo 0.1.9 Nov 23, 2026
@repeat98
repeat98 marked this pull request as ready for review November 23, 2026 12:58
@repeat98
repeat98 merged commit b5864cc into main Nov 23, 2026
16 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants