Skip to content

Improvement: npm run device:price measures what a module costs an Octatrack - #1552

Merged
repeat98 merged 8 commits into
mainfrom
improvement/octatrack-module-price-sweep
Nov 14, 2026
Merged

repeat98 merged 8 commits into
mainfrom
improvement/octatrack-module-price-sweep

Conversation

@repeat98

@repeat98 repeat98 commented Nov 14, 2026 •

Copy link
Copy Markdown
Owner
  • What was wrong or hard: What a module costs an Octatrack was read by hand, one module at a time: load it, play, read the guard and the meters, undo. Nobody did it for every module, so a module that costs the frame interrupt time while no track uses it went unnoticed. On 14 November 2026 a pass over the USB packages on the owner's MKII (four FLEX tracks sounding) found FM Synth 0.1.2 adding 19 points of a frame at rest, POLY8 13.5 and Repitch 7.9; the guides said a module at rest costs "about a point".
  • What this changes:
    • npm run device:price -- [--out FILE.json] [--base ID --scene TEXT] [--seconds 8] [--slot T1] ID|FILE.mwrm… (scripts/octatrack-price.mjs). For each USB package, or a .mwrm file not published yet, it reads the frame interrupt's share, the CPU meter and both DSPs before the module, with it installed and used nowhere, and, for an effect, picked on one slot; the slot's own effect is picked back. Every module is a timed trial that is rolled back; nothing is kept.
    • It waits for an upload to end and never cuts one short, and it stops when a trial neither started nor was refused, when a trial did not roll back, or when the slot's effect could not be picked back.
    • Docs: MODULE_PERFORMANCE.md says what a module at rest really costs and why (each separate module line a track's frame touches), in place of "about a point". OCTATRACK_DRIVING.md gets the command's row and three notes for driving a unit after a RAM boot. ADD_A_MODULE.md and DEVELOPER_WORKFLOW.md get one sentence each (below).
    • Not in this change: a machine's price in use (picking a machine is key presses that differ by list), a knob sweep, a release gate on the figures, and the module page's gauges. Base-bound packages are left out: a development twin does not trust them.
  • How I checked it:
    • scripts/octatrack-price.test.mjs: the reading is parsed from a real guard line and stats lines, and the difference is taken per figure.
    • On the owner's MKII (14 November 2026, development twin 0277c5c5 of main, four FLEX tracks sounding): the command ran over the USB packages and over unpublished builds of POLY8, Repitch and FM Synth; its figures are what POLY8 0.3.3-experimental: much less CPU when installed on no track #1549 and FM Synth 0.1.3-experimental: much less CPU when installed on no track #1504 quote. Each trial rolled back and the working Part read byte-equal to before at the end.
    • An earlier version cut Tape Echo's upload at 30 s and left the unit's sync dialog standing at 57 %; recover cleared it. The wait in this version comes from that, and the full pass was rerun with it.
    • npm run pr:ready: Ready on current main.
    • Not run: the command on an MKI, with --slot on a track of T5 to T8, or by anyone but me.
  • What the guides lacked or got wrong, and where I fixed it: four guides, each corrected in this pull request:
    • docs/MODULE_PERFORMANCE.md said a module at rest costs about a point; measured, it was up to 19. Corrected, with the cause.
    • docs/OCTATRACK_DRIVING.md did not say that a unit shows BASE UPDATE for about 25 s after a RAM boot and eats keys meanwhile, that machine list rows differ by installed set, or that REC presses toggle. Added.
    • docs/ADD_A_MODULE.md did not say module:dev --build-only refuses a machine module. Added.
    • docs/DEVELOPER_WORKFLOW.md did not say a fresh worktree needs npm run prepare for the host tests, or that Python run without -B leaves a __pycache__ that fails test_requested_imports.py. Added.

🤖 Generated with Claude Code

@github-actions github-actions Bot added the enhancement New feature or request label Nov 14, 2026
@repeat98
repeat98 merged commit 741ee62 into main Nov 14, 2026
15 of 16 checks passed
@repeat98
repeat98 deleted the improvement/octatrack-module-price-sweep branch November 25, 2026 12:59
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.

1 participant