Repository navigation
Improvement: Octatrack base 0.8.5 cumulative draft - #2435
Conversation
… the measured stock nets only what rendered, refusals and hushes explain themselves From the stability review of the field diagnostics (0.8.x, November 2026): - status.c: right after a pattern switch a pick goes by the new pattern's frames only (frame_since_switch); the reading across the switch is left out of played_since and of the kept figure. Until the new pattern has a reading, the reserve decides. - note_stock subtracts only machines that rendered: a hushed track played silence (modwerk_machine_frame_booked_but, modwerk_machine_silent_tracks). Nothing is kept from the frames while the brake holds every machine. - diag.c: DETAIL carries what the last refusal judged (mw_cpu_pick_fig) and its second; a hush's BRAKE record carries its tracks and why (mw_hush_why); the start's own brake makes no record. - Site: describeBrake and the figures in describeDetail; trial-verdict and diagnostics:pull read the hush count as 16 bits. Base version 0.8.5; builds follow in the regeneration. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
base 73282df1ee9b4801…, browser .bin ca678664… (849,256 bytes; 2,472 container bytes free, +788 since 0.8.4). The five base-bound packages take the new requiredBase; their bytes are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ir new effects Stock applies a Part's effects to a track at its next trig, while the new Part's knobs, scenes and crossfader reach the running effect at once. A trigless track ran the old effect on the new one's values (Discord report: DARK REV settings as bitcrush). build_core.py's PART_FOLLOW_EDITS make manager.c's reinit() write the active Part's ids into the live array the tick a playing Part or bank change is seen; reinit() parks any id whose code is not bound, so init still runs first. Machines keep stock's rule. A build edit, so sdk/octabam/platform and the module packages' fingerprint stay. Unit: MKII, dev twin 92bc45bc (0.8.4 + the same code in manager.c), trigless T1/T2/T8, four playing switches A01<->A02: live ids followed each time, dl_part_follow 12, no stalls or loader errors. Before (twin a7612caa): they never followed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ebedc4) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Unit run, 29 November 2026: two of the three changes work; the PATTERN IS BUSY change is too cautious and needs a fix before release. This ran on the owner's MKII, on development twins that were RAM-booted, not on the release build.
Who must act: the owner, to choose the fix for the third item. Not tested yet: the release build, a power cycle with a kept set, and the Part-switch FX fix from the other session. Details
|
… playback starts A stopped bank change leaves trigless tracks on the old bank's effects too, and the first version took the change in while stopped. Unit: dev twin 7571a905, stopped A->C then PLAY and C->A then PLAY: T2 followed each time; playing A01<->A02 as before; no stalls or loader errors. 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>
…ent, and the hush silences the biggest saving first The first version netted a hushed machine at nothing: on the owner's MKII it kept FM Synth and Amiga silent on a pattern where 0.8.4 played both at 103-109 % with no skipped render, because a silent machine still runs its hooks and note work. Measured what each heavy machine costs silenced (Part budget, the hush's render path) against STATIC on the same trigging track: FM Synth 20.0, POLY8 10.2, Amiga 5.4, Grain 4.7, UNGEMACH 4.6, SYNTIZ 2.2 % of a frame. - frame-costs-base.json `paused`, generated into frame-costs.json, sent by the site under the module id with bit 30 flipped (PAUSED_BIT), as prices use bit 31: no wire or battery-RAM change; older bases ignore them. - machine_registry.c paused_cost(): a silent track is booked at that figure, else whole (0.8.4's netting). - status.c hush_pick: silencing a machine saves its cost less its paused cost; the biggest saving goes first, a machine that saves nothing stays. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ix's relinked package (8c048f93) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… window From an independent review of the 0.8.5 change: - Tracks past the Part budget render the same silence as hushed ones (and the paused costs were measured that way): modwerk_machine_silent_tracks includes mw_cpu_refused, and the hush list books them at their paused cost with nothing to save. - A switch since the last reading has no frames of its own yet: the pick goes by the reserve then too, not by the pattern before's frames. - A chain of patterns switching faster than one reading goes by its own frames (two readings across in a row), not by none. - DETAIL bit 4 says so in that window too. - Tests: the silent-track mask, the hush list's paused figures, the Part budget's DETAIL figures (base and decoder), the order of a two-machine hush, the flags a refusal right after a switch and a ladder hush record. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ctatrack-next-stability
base a14144f5c0f3988b…, browser .bin 95a83524… (850,048 bytes; 1,680 container bytes free, +1,580 since 0.8.4), with the Part-switch fix, the paused cost and the review fixes. Base-bound packages take the new requiredBase. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Unit run 2, 29 November 2026: the PATTERN IS BUSY change is fixed and the final head (
Who must act: the owner. Remaining before shipping: the exact release build on the unit (a power cycle with a kept set, a listening pass), and your go. Details
|
…se, before it is sent A new read-only vendor request (0xC1, bRequest 44, wValue entry | how << 8, wLength 24; capability feature bit 14, in_use.h) asks, for one installed module and a removal or a same-module update, what the unit's own admission would refuse as RUNTIME_IN_USE (or RUNTIME_UI_OPEN): the effect's slots in the current Part, a removed contributed machine's Part copies (working and saved, per track), an open page, or a hold with no place to name (a resident controller, a table owner's consumer, a retirement that cannot plan, an unreadable Part copy). The ISR only notes the question and wakes the engine, which answers under the stable lock with the prepare's paused-task context; the host asks again until the reply is no longer PENDING, and BUSY while a transaction, trial, journal or export holds the loader. The answer calls the refusal's own predicates, now shared: dsp.c held_slots (modwerk_dsp_in_use), machine_contributor_held over machine_part_signature_where, table_metadata_held over consumers(), controller_board.c outgoing_held (modwerk_controller_in_use) and machine_admission_runtime.c ui_open; modwerk_machine_holds walks them in the admission's order. Host tests check the answer against the admission in each case. The resident dsp.c patch follows the new line numbers. The base is not regenerated here. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…r Part
On a base with capability feature bit 14 (0.8.5 on), a sync first reads INVENTORY and asks IN USE for
each module it removes or replaces (packageTarget reads the module and removal from the package
header). A finding stops the sync before any session opens, with what to do in the musician's words
("Track 3 runs Tape Echo as its FX2 effect, and this sync removes it. Pick another effect for FX2 on
Track 3, then sync again.", or the Part, its saved copy and track keeping a machine, or an open page).
No capability, BUSY, no answer or a failed read and the sync goes ahead exactly as before; the
post-refusal texts are untouched. OctatrackLink.whereInUse asks outside a sync, the pretend unit
answers request 44 (PENDING once, then its answer), and `npm run device -- inuse` (also a `do` step and
a read for the unit queue) prints each installed module's answer for a removal and an update.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The README says where the request is documented and which vendor numbers are taken; to keep it from growing, two paragraphs of the USB profile section drop history their linked evidence records keep. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…stion; the reply buffer is off the scanned stack Review fixes: the site asks again when the first reply is already ANSWERED (a question asked earlier and never read), and ep0.c keeps the 24-byte reply static so the machine checks' stack scan cannot read stale bytes as a hold. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With IN USE the base packed to 851,872 bytes, 160 more than a flash slot holds. Both units run on the UI task only: part_menu.c from stock's three Part Edit openers and ev_key/ev_enc/ev_tick/ev_draw, midi_generators.c from its four UI sites (events.json ot_midi_generators), its key layers and the UI tick (mw_tick_hook -> mw_ui_tick -> mg_tick). Nothing from ep0, vendor, transfer, manager, status or the frame calls into them, and no caller holds the machine lock or mask. Their one masked stretch is a copy of a table of at most 7 or 16 rows (pm_entries, mg_generators), a loop no longer at -Os than at -O2. SIZE_OPTIMIZED's comment names the rule for them and the units that stay at -O2 (settings, diag, the sample editor, the LFO PMTR table). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…he base with IN USE IN USE and the size-built UI units moved the base symbols Analog BD's package links against (the controller write lease, cue_cfg_clamp, raise_ev_mute_keep), so its image changed and the reviewed recipe refused it. Captured with build.py --capture-stock-recipe against the empty-row build's symbols: only imageSha256 changes (0b8421fe -> 48ba77e8); its stock copies and source pins are the same. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
base ddb56b72d1ac0b60…, browser .bin 16126056… (849,940 bytes; 1,788 container bytes free, +1,472 since 0.8.4), with IN USE and part_menu.c and midi_generators.c built for size. The lease entries moved, so Sidechain 0.2.2, Output Matrix 0.1.1 and Analog BD 0.1.7 are rebound: they differ from a14144f5's packages only in their words for the four base symbols, and their trust rows follow. CC Map, Recorder Loop fix and USB Audio keep their bytes; every base-bound package takes the new requiredBase. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…packages Output Matrix, Analog BD and Sidechain Compressor are a14144f5's packages with only the base symbol words substituted (the controller write lease, cue_cfg_clamp, raise_ev_mute_keep), checked byte for byte, so their active-load readings are rebound to the new digests (resource-indicators.test.ts passes). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ound package Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…lease ddb56b72) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Base 0.8.5, cumulative draft. This starts the next cumulative draft. It has three changes from the stability review of November's field diagnostics, and a fix for effects after a Part change (Discord report, 29 November). Host tests and
pr:readypass. Every change ran on the owner's MKII on development twins of this branch (below), not yet on the exact release build (a14144f5). It stays a draft until the owner says that build is tested.Tested on a unit: base ddb56b72 (release image, RAM boot), MKII, 30 November 2026: boot, card-set restore, IN USE, a Ring SC trial; its development twin ad5835d6 ran
test:procedure -- --base(steps 1-4, 6, 7 by hand twice, 8 soak), and the IN USE and #2456 cases. One skipped DSP frame in the first large-set trial, not repeated in the second; see the record. Not flashed; price step not run (owner).What it means for players:
The same CPU answer every time. Right after a pattern change, a module pick was judged partly by the last four seconds of the pattern before. So the same pick could say CPU FULL and then go through a minute later (a tester hit this with FM Synth on 0.8.2). The pick now goes by the pattern that plays. Until that pattern has a reading of its own (half a second), the reserve decides, as for any pattern not yet played.
PATTERN IS BUSY holds steady. A paused machine is silent, but its code keeps running and still costs frame time: FM Synth about 20 % of a frame, POLY8 10, Amiga 5.4, Grain 4.7, UNGEMACH 4.6, SYNTIZ 2.2 (measured on the owner's MKII). 0.8.4 took a paused machine's whole cost off the measured frames, so it read the pattern lighter than it was, lifted the pause and paused again. 0.8.5 takes off only what the machine costs paused, and pauses first the machine whose pause frees the most (Amiga before FM Synth). Machines without a measured paused cost are counted as in 0.8.4.
Effects follow a Part or Kit change at once. Stock gives a track its new Part's effects only at its next trig, but the new Part's knobs, scenes and crossfader take over immediately. So a track with no trig in the new pattern (a long stem, say) kept running the old effect, played with the new settings: a tester's Dark Reverb settings came out as bitcrush or pitch-shifted noise until they set FX2 to NONE and back. Every track now gets the new Part's effects the moment the Part or bank changes while playing, or when playback starts after a change made while stopped. Machines keep stock's next-trig rule.
Refusals and pauses explain themselves in diagnostics. None of the 340 refusals or 157 pauses in November's field pull can be put down to a cause. A refusal's DETAIL record now carries the measured load, the reserve, the pick's add, the line, and whether the ladder or a measured figure decided. A pause's record carries its tracks and whether the ladder, a USB stream or bypassed effects made it. The start's own brake no longer leaves a false record.
Syncs say up front which track uses a module (Octatrack base 0.8.5: IN USE, where a sync would be refused as in use, before it is sent #2463). The base answers a new read-only USB request, IN USE, with the same checks its "in use" refusal uses. The site then stops a sync before anything is sent and names the track and FX slot, or the Part and track of a machine: "Track 3 runs Tape Echo as its FX2 effect, and this sync removes it… Nothing was sent." November's field data had 83 such refusals on 42 units. To fit the flash slot,
part_menu.candmidi_generators.c(UI task only) are built for size. 0.8.5 is nowddb56b72, 849,924 of 851,712 bytes.Who must act: the owner, for the unit runs below and the decision to ship.
Changes
status.cframe_since_switch()andswitch_readings: the reading across a switch is left out ofplayed_since, ofnowinmeasured_loadand of the kept figure.note_stocknets a silent machine track (hushed, braked or past the Part budget) by its paused cost throughmodwerk_machine_frame_booked_but(modwerk_machine_silent_tracks(), …). The kept figure is not updated while the brake holds every module machine.hush_pickcredits silencing a machine with its cost less its paused cost; the biggest saving goes first, a machine that saves nothing stays.nowis 0 (the reserve decides); a chain switching faster than one reading goes by its own frames.mw_cpu_pick_fig; the hush fillsmw_hush_why.machine_registry.cpaused_cost(): the site'spausedfigure (cost table entry under the module id with bit 30 flipped,PAUSED_BIT, as prices use bit 31), else the whole cost (0.8.4's netting). No wire or battery-RAM change; older bases ignore the entries.modwerk_machine_silent_tracks()(braked and Part-budget tracks, bit 8 while braked),modwerk_machine_frame_booked_but(), andmodwerk_machine_part_machines()with each machine's silent cost.cpu_refusefills the figures too.diag.c/diag.hmachine[2..13]carries the figures and the second of the refusal.brakesis seeded at the first tick, so the start's own brake makes no record.describeBrakeand the figures indescribeDetail;diagnostics:pullandtrial-verdictread the hush count as 16 bits.build_core.pyPART_FOLLOW_EDITS:manager.c'sreinit()getsfollow(), which writes the active Part's FX ids into the live array (0x80000ec4) when a Part or bank change is seen while playing (a change seen while stopped waits for playback).reinit()'s own loop then parks an id whose code isn't bound, so its init runs first. Counterdl_part_follow. A build edit, sosdk/octabam/platformand the module packages' source fingerprint stay as they were. +60 bytes in the container. With everything: basea14144f5, 1,680 bytes free.8c048f93; the direct DSP evidence follows it.frame-costs-base.jsonpaused(six heavy machines), generated intoframe-costs.json;set-package.tsPAUSED_BIT.docs/verification/2026-11-29-octatrack-base-0-8-5.md, two changelog entries and a BaseChangelog entry.Not in this draft (next, each measured first): FM Synth's 17-point price in the Part budget, which refuses a third FM track on 0.8.4; the hush with a USB stream open (×1.65 on the prediction); the ceiling-hold counters; a pick right after STOP, which is judged by the last playing reading; first-instance costs that over-predict heavy patterns (FM Synth and Amiga on a full eight-track pattern: predicted about 126 %, played at 109 % on 0.8.4 with nothing skipped).
Tests
Host:
test_status.cin all three variants (plain,MODWERK_RESIDENT_ON_DEMAND,MODWERK_FX_IDS=128u): a heavy pattern at 115 %, then a switch to one at 80 %: judged at 0 until the new pattern's first reading, then at 80, not 115; a fast chain; the measured stock with a hushed machine at its paused cost; braked, nothing kept; a two-machine hush by saving; the refusal and hush flags.test_machine_registry.c: the paused cost, the silent-track mask (Part budget, brake), the hush list's silent costs, the Part budget's DETAIL figures.set-package.test.ts:pausedentries underPAUSED_BIT, ascending.test_diag.c: the DETAIL figures and second, the hush flags, and no record for the start's brake.test_machine_events.pyandtest_fract_public_registry.py.device-log.test.ts.Unit, stability changes, owner's MKII, Dev17 bank C (trigs placed in the working copy and removed after), modules as timed trials (card set untouched). Results in the comments.
0e8f6825of head6fd801e15(a14144f5's source, built without--stream-channel, which no longer fits a--devtwin): FM Synth on T1 and C01 playing at 104 %, then a switch to empty C02 and Amiga picked on T2 3.0 s later: admitted 3 of 3, no skipped renders. FM Synth and Amiga on C01 for 30 s: both paused at the start, FM Synth back after about 4 s, Amiga paused for the rest, one pause, no skipped render, longest frame 102-107 %.a7612caa(0.8.4) on the same scenes: the switch picks refused 3 of 3; the two machines paused for 4.6 s, then both played at 103-109 % with no skipped render. So 0.8.5 pauses Amiga where 0.8.4 showed it fits: the first-instance costs over-predict this pattern (listed above as next).frame-costs-base.json).Unit, Part-change fix, owner's MKII (dev twins; not yet the exact release build): on twin
a7612caa(0.8.4) live FX ids never followed a playing Part switch on trigless tracks, with or without Kits. On twin7571a905(this branch's source): stopped A→C then PLAY, stopped C→A then PLAY, and playing A01↔A02 all followed (dl_part_follow8); no stall or loader error. Not heard.Local
pr:readyon this Mac: two Zoom tests (zoom-device.test.mjs,zoom-link.test.ts) fail here on cleanorigin/maintoo and pass in CI; not caused by this branch.Edge cases
follow()writes the live FX ids outside stock's trig path7571a905, T1/T2/T8 trigless, four switches, live ids anddl_part_followread over USBa7612caaonly (without the fix): the trig hands over the Part's id, as stocka7612caawithout the fix only (bug reproduced); not repeated with the fix0e8f6825, FM Synth T1, C01 (104 %) to empty C02, Amiga on T2 3 s later, 3 tries; same on 0.8.40e8f6825, FM Synth T1 + Amiga T2, C01 30 s0e8f6825: stopped C→A01 then PLAY, playing A02↔A01Guides:
docs/OCTATRACK_DRIVING.mdsaid a Part's effects reach a track only at its next trig; it now says 0.8.5 hands them over at once (fixed in this PR). The stability part: see below.What the guides lacked
diag.his the record's contract, and it now documents the new fields. No guide said that a paused (hushed) machine still costs frame time, or how much. That is now inmachine_registry.c'spaused_costcomment and inframe-costs-base.json's measured notes.docs/MODULE_PERFORMANCE.mdis at its size limit, so nothing was added there.docs/OCTATRACK_DRIVING.mdsaid a Part's effects reach a track at its next trig while playing; it now says 0.8.5 hands them over at once, and why.IN USE (#2463)
ep0.crequest 44 and feature bit 14, answered on the engine task under the level-4 lock, BUSY during any transaction. The refusal checks are shared with the admission (modwerk_dsp_in_use,machine_contributor_held,machine_part_signature_where,table_metadata_held,modwerk_controller_in_use,ui_open,modwerk_machine_holds).OctatrackLink.load()(bit 14 only), andnpm run device -- inuse.ddb56b72. Analog BD's reviewed recipe was recaptured. Sidechain, Output Matrix and Analog BD were rebound, with only the four moved base symbols changed.ad5835d6, 30 Nov. Nothing in use: free, and the sync went through. Tape Echo on T3 FX2 and FM Synth on Part 2 T5 were both named and stopped before sending. 0 stalls, 0 loader errors. Details are in Octatrack base 0.8.5: IN USE, where a sync would be refused as in use, before it is sent #2463.🤖 Generated with Claude Code