From fe9e689d3043f215ea4d621613706454c7062cc0 Mon Sep 17 00:00:00 2001 From: jonathanwardle1992-beep Date: Sun, 8 Nov 2026 18:49:10 +0000 Subject: [PATCH 001/415] Add Screen Off, a draft that blanks the panel with UP + NO. --- sdk/drafts/screen-off/CHANGELOG.json | 11 ++ sdk/drafts/screen-off/LICENSE | 21 +++ sdk/drafts/screen-off/README.md | 64 ++++++++ sdk/drafts/screen-off/TESTING.md | 43 ++++++ .../screen-off/evidence/performance.json | 20 +++ sdk/drafts/screen-off/manifest.py | 29 ++++ sdk/drafts/screen-off/octamod.module.json | 117 ++++++++++++++ .../screen-off/presentation/thumbnail.svg | 19 +++ sdk/drafts/screen-off/runtime.json | 8 + sdk/drafts/screen-off/screen_off.c | 122 +++++++++++++++ sdk/drafts/screen-off/screen_off.s | 121 +++++++++++++++ sdk/drafts/screen-off/verify.py | 146 ++++++++++++++++++ 12 files changed, 721 insertions(+) create mode 100644 sdk/drafts/screen-off/CHANGELOG.json create mode 100644 sdk/drafts/screen-off/LICENSE create mode 100644 sdk/drafts/screen-off/README.md create mode 100644 sdk/drafts/screen-off/TESTING.md create mode 100644 sdk/drafts/screen-off/evidence/performance.json create mode 100644 sdk/drafts/screen-off/manifest.py create mode 100644 sdk/drafts/screen-off/octamod.module.json create mode 100644 sdk/drafts/screen-off/presentation/thumbnail.svg create mode 100644 sdk/drafts/screen-off/runtime.json create mode 100644 sdk/drafts/screen-off/screen_off.c create mode 100644 sdk/drafts/screen-off/screen_off.s create mode 100644 sdk/drafts/screen-off/verify.py diff --git a/sdk/drafts/screen-off/CHANGELOG.json b/sdk/drafts/screen-off/CHANGELOG.json new file mode 100644 index 0000000000..83c8e69933 --- /dev/null +++ b/sdk/drafts/screen-off/CHANGELOG.json @@ -0,0 +1,11 @@ +[ + { + "version": "0.1.0-experimental", + "date": "2026-11-06", + "changes": [ + "Hold UP and tap NO to blank the screen. The same chord brings it back.", + "Other keys and knobs keep working while the screen stays black.", + "Known issue: reported on a MKII that the chord blanks the screen and brings it back. An MKI, the stock saver, and a power cycle are not tried." + ] + } +] diff --git a/sdk/drafts/screen-off/LICENSE b/sdk/drafts/screen-off/LICENSE new file mode 100644 index 0000000000..fe0a270181 --- /dev/null +++ b/sdk/drafts/screen-off/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 jonathanwardle1992-beep + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/sdk/drafts/screen-off/README.md b/sdk/drafts/screen-off/README.md new file mode 100644 index 0000000000..0086f4de85 --- /dev/null +++ b/sdk/drafts/screen-off/README.md @@ -0,0 +1,64 @@ +# Screen Off + +Version `0.1.0-experimental`. Hold UP and tap NO. The screen goes black until you do it again. The pattern, the sound and the trig lamps keep going. + +The MKII already dims the OLED after five minutes without a key or a knob, and turns it off after an hour, and only while the sequencer is stopped. This is the blank you can ask for now, including while a pattern plays. + +## Overview + +Screen Off is a front-panel shortcut. It has no page and no knob. Installing it changes nothing until you use the chord. + +While the screen is black, every other key and every knob still does its usual job. You just cannot see the page. Hold UP and tap NO again and the page you were on comes back. + +UP on its own still moves through a list. NO on its own still disarms, or steps back. The chord is NO pressed while UP is already held. + +## Controls + +There is no control to turn. The blank is either on or off, and off is where it starts. + +| Chord | What happens | +|---|---| +| Hold UP, tap NO | The screen goes black, or comes back if it was already black. | +| UP alone | Unchanged. In a list, the highlight still moves. | +| NO alone | Unchanged. It still disarms, or steps back. | +| Any other key or knob, while the screen is black | Does its usual job. The screen stays black. | + +## Usage + +Use it when the Octatrack is on and you are not looking at the page: a long loop, or stepping away without waiting for the stock saver. The stock saver still runs when this blank is off. + +### Quick tutorial + +1. Hold UP and tap NO. The screen goes black. Let go of both keys. +2. Press PLAY, or turn a knob. The Octatrack does it, and the screen stays black. The trig lamps still show the pattern. +3. Hold UP and tap NO again. The screen returns to the page you left. + +## Change to a stock flow + +- **What changes, and for whom.** While Screen Off is installed, NO pressed with UP already held blanks the screen or brings it back. That NO does not also disarm, and it does not answer a question on screen. +- **Why.** FUNC + NO is already Temp Save, including a second press. UP + NO is free, and it is one press rather than a timed double tap. The screen has to be able to go black while a pattern plays, which is when the stock saver stays lit. +- **What you do differently.** Hold UP, then tap NO. In a list, the UP press can move the highlight by one step before the screen goes black. +- **Only while the module is installed.** Remove it and UP + NO is stock again: NO does whatever NO does with UP held, which on the pattern screen is just NO. +- **Neighbouring flows.** UP alone, NO alone, FUNC + NO and FUNC + YES are left alone. Not yet compared on a unit. + +## Compatibility and limitations + +OS 1.40C. It needs the Modwerk base, installed over USB. The base is what hands the module each key and each composed frame. A card build that never calls those hooks will not blank the screen. + +The blank clears the pixels of the composed frame. On a MKII that leaves the OLED dark, which is the wear that matters. It is not yet known whether the panel can also be powered down the way the stock hour-long saver does. On an MKI the backlight may stay on behind a blank glass. + +The blank is forgotten when you power off. It is not part of the Part or the project. The stock saver still dims and switches off on its own schedule when this blank is off. + +The author reports that on a MKII the chord blanks the screen and brings it back. An MKI, the stock saver and a power cycle are not tried. + +## Tests and measurements + +The host gate is [TESTING.md](TESTING.md). It drives the chord, the keys that must still pass, and the frame clear. Cycle counts are not done. The MKII chord is the author's report. + +## Authorship and licences + +jonathanwardle1992-beep. MIT, in [LICENSE](LICENSE). No Elektron firmware or extracted code is included. + +## Screens and audio + +Screen Off draws no page of its own. There is no screenshot and no audio preview. The stock page goes black, and comes back as it was. diff --git a/sdk/drafts/screen-off/TESTING.md b/sdk/drafts/screen-off/TESTING.md new file mode 100644 index 0000000000..e449ef0583 --- /dev/null +++ b/sdk/drafts/screen-off/TESTING.md @@ -0,0 +1,43 @@ +# Screen Off testing + +0.1.0-experimental. The host gate has been run. A private USB package was built from `screen_off.c`. On 7 November 2026 the person at the unit reported that hold UP, tap NO blanks the glass and the same chord brings it back. That trial's own counter moved. The process was killed before it printed a rollback; a later status showed the normal base and no slot running. + +## Host gate + +`python3 -B verify.py` compiles `screen_off.c` with the host gcc and sends it panel events. UP is `0x33`, NO is `0x32`. + +Passed, 21 checks, 6 November 2026, on this computer (mingw gcc, `python3 -B verify.py`): + +- NO alone and UP alone are not taken, and the frame is left as it was. +- NO pressed while UP is held is taken, the blank turns on, and a redraw is asked. A repeat of that NO does not toggle again. Its release is taken. +- PLAY while the screen is black is not taken, and the frame stays clear. +- The same chord turns the blank off, asks for a second redraw, and the frame is left as it was. +- NO pressed before UP does not blank. +- UP released before NO still keeps the blank, and that NO release is taken. +- A garbage state word behaves as a fresh module: screen on, and the frame is not cleared. + +`screen_off.s` is the same decisions, written for the unit. It was not assembled here. + +## USB trial + +7 November 2026. Package `C:\Users\Roy Walker\modwerk-builds\screen-off.mwrm` (340 bytes, ABI 8, title `screen-off`, hooks `module_tick`, `module_draw`, `module_key`, no stock sites). Built with WSL `m68k-elf-gcc` 16.2.0 from `screen_off.c`. `npm run device -- try` for 8 seconds, without `--accept`, on the unit that answered `OCTATRACK 1.40C`, base `671f0afd406290cb…`. + +The slot stayed running. The tick counter moved from 941389 to 941812. The diagnostic value stayed `0x0`. Refusals stayed at 1. The trial printed `rolled back` and left upload mode in 3 ms, then `normal, generation 5, active b068a052ccbb6d63…`. No SAVE, no flash, no power cycle, no Keep. + +The diagnostic value is the module's own tick word. It stayed `0x0` for all eight seconds, so the blank never latched while that package was running. The glass was not watched. + +The chord failed for a real reason in that package. `so_key` treated UP as down only after it had seen UP's own press. A press from before the module was installed never arrives, and the base's status handler (order 89) can take a press before this hook (order 90). NO then saw UP as up and did nothing. The panel's held-key row at `0x46100b18` already has the key under the finger; the base reads that row in `boot.c` before it posts the event. The draft now toggles when that row says UP is down, as well as when this hook saw the press. Returning 1 still consumes NO. `module_draw` still clears the composed frame after stock has drawn it (`core-ot` `ev_draw`), and `0x4004d948(-1)` only asks for that compose. The host gate passed 24 checks on 7 November 2026. + +A second package, `C:\Users\Roy Walker\modwerk-builds\screen-off-2.mwrm`, was tried the same way for 180 seconds, without `--accept`, on the same unit (`OCTATRACK 1.40C`, base `671f0afd406290cb…`). It reached the slot. The glass was not watched, so this does not show that the chord blanks it. + +The same package was tried again without `--accept`, from 21:08:12. The slot was running. At 21:08:33 the diagnostic left `0x0` and read `0x3`. The last line in the log was `0x40` at 21:12:07: 32 toggles, blank off. The person at the unit reported that hold UP, tap NO blanks the screen and the same chord restores it. The log never printed `rolled back`. The link then dropped. A later `npm run device -- status` answered `normal, generation 0`, with no slot running. No SAVE, no flash, no power cycle, no Keep. + +## Not tested + +- An MKI, and a card install. The MKII chord above is a report from the person at the unit, on the RAM trial of `screen-off-2.mwrm`. +- The package size, the executed instructions of the chord, and the cost of clearing the frame. +- The stock screen saver while this blank is on, and while a pattern plays. +- Whether the MKII panel can be powered down as well as painted black. +- Whether the MKI backlight stays lit behind the blank glass. +- UP + NO in a list, a dialog, the sample editor and the arranger, side by side with stock. +- Part save, project save and a power cycle. The blank is only a byte in the module's RAM, so a power cycle should turn the screen back on. That has not been seen. diff --git a/sdk/drafts/screen-off/evidence/performance.json b/sdk/drafts/screen-off/evidence/performance.json new file mode 100644 index 0000000000..dd93f2d0ad --- /dev/null +++ b/sdk/drafts/screen-off/evidence/performance.json @@ -0,0 +1,20 @@ +{ + "schema": 1, + "module": "screen-off", + "version": "0.1.0-experimental", + "kind": "coldfire", + "trigger": "key", + "cycles": { + "unit": "cycles/event", + "static": null, + "measured": null, + "budget": 26600000, + "method": "Not measured. The chord and the frame clear have not been counted in ot_emu or timed on a unit." + }, + "stress": { + "events": null, + "playing": null, + "hangs": null, + "method": "Not run. The chord has not been repeated on a playing unit, or under ot_emu, with a STOP and a Part change between presses." + } +} diff --git a/sdk/drafts/screen-off/manifest.py b/sdk/drafts/screen-off/manifest.py new file mode 100644 index 0000000000..7e48881cc6 --- /dev/null +++ b/sdk/drafts/screen-off/manifest.py @@ -0,0 +1,29 @@ +"""SCREEN OFF -- hold UP and tap NO to blank the panel until the same chord. + +No stock site is patched. The Modwerk base already delivers every key and +every composed frame to the installed modules (runtime.json: module_key, +module_draw, module_tick). This unit takes only the NO that completes the +chord, and clears the frame while the blank is on. Audio, the sequencer, +MIDI and the lamps are untouched. UP alone and NO alone stay stock. + +The unit is screen_off.s, the same decisions as screen_off.c. The host +gate runs the C. The author reports the chord on a MKII. An MKI is not tried. +""" + +from remix.schema import Category, Gate, Kind, Linked, Module, Proof + +MODULE = Module( + name="screen-off", + key="SCREEN OFF", + kind=Kind.CF_PATCH, + category=Category.FIXES, + author="jonathanwardle1992-beep", + author_url="https://github.com/jonathanwardle1992-beep", + proof=Proof.UNTESTED, + proof_note="Host gate on screen_off.c. The author reports the chord on a MKII.", + doc="Hold UP and tap NO to blank the screen until the same chord. Other keys keep working.", + linked=( + Linked("screenoff", "modules/screen-off/screen_off.s"), + ), + gates=(Gate("modules/screen-off/verify.py", remix_arg=False),), +) diff --git a/sdk/drafts/screen-off/octamod.module.json b/sdk/drafts/screen-off/octamod.module.json new file mode 100644 index 0000000000..3dffc57432 --- /dev/null +++ b/sdk/drafts/screen-off/octamod.module.json @@ -0,0 +1,117 @@ +{ + "schemaVersion": 2, + "id": "screen-off", + "key": "SCREEN OFF", + "name": "Screen Off", + "version": "0.1.0-experimental", + "category": "system", + "author": { + "github": "jonathanwardle1992-beep", + "credits": [ + "jonathanwardle1992-beep: the chord and the wish to blank the panel while a pattern keeps running." + ] + }, + "nativeManifest": "manifest.py", + "presentation": { + "label": "Blank the screen with UP + NO", + "family": "Front-panel shortcut", + "summary": "Hold UP and tap NO to blank the screen until the same chord. Sound, the sequencer and the other keys keep going.", + "overview": "The MKII already dims its OLED after five quiet minutes and turns it off after an hour, and only while the sequencer is stopped. Screen Off blanks the glass at once, including while a pattern plays, and leaves it blank until you ask for it back. The trig lamps stay lit, so a running pattern is still visible on the keys.", + "highlights": [ + "Hold UP and tap NO. The screen goes black. The same chord brings it back.", + "Every other key and every knob still does what it did. The screen stays black while you use them.", + "UP alone and NO alone are unchanged. NO still disarms, or steps back in a list.", + "Nothing is stored in the project. A power cycle turns the screen back on." + ], + "usage": [ + "Hold UP and tap NO. The screen goes black. Let go of both keys.", + "Press PLAY, change a pattern or turn a knob. The action happens and the screen stays black.", + "Hold UP and tap NO again. The screen returns to the page you were on." + ] + }, + "access": { + "location": "Front panel: hold UP, tap NO", + "steps": [ + "Hold UP and tap NO. The screen goes black. Let go of both keys.", + "Press PLAY, change a pattern or turn a knob. The action happens and the screen stays black.", + "Hold UP and tap NO again. The screen returns to the page you were on." + ], + "screenshots": [], + "noUiReason": "It draws nothing of its own. Hold UP and tap NO and the stock screen goes black until the same chord." + }, + "controls": [], + "compatibility": { + "firmware": "1.40C", + "effectId": null, + "location": "Project sequencer", + "conflicts": [], + "uiClaims": [ + "key:UP+NO" + ], + "limitations": [ + "OS 1.40C. The author reports that on a MKII the chord blanks the screen and brings it back. It needs the Modwerk base: the base passes keys and the composed frame to the module.", + "The blank clears the pixels. On a MKII that leaves the OLED dark. Whether the panel's own power-off command can be used as well is not yet known. On an MKI the backlight may stay lit behind a blank glass.", + "The screen stays black until UP + NO again, including while other keys and knobs do their usual jobs. You will not see the result until the screen is back.", + "Holding UP already moves the highlight in a list by one step before NO blanks the screen. That NO does not disarm and does not answer a question.", + "The blank is forgotten at power-on. It is not saved with the Part or the project. The stock screen saver still runs when this blank is off.", + "Known issue: not yet tested on the MKI, or beside the stock screen saver while a pattern plays." + ] + }, + "resources": { + "recorded": "6 November 2026", + "storage": { + "label": "ColdFire unit", + "display": "Not measured", + "value": null, + "unit": "bytes", + "method": "unmeasured", + "conditions": "screen_off.s, one key hook, one draw hook and one tick hook. No stock site, no DSP code. The package size waits on the ColdFire toolchain.", + "source": "TESTING.md" + }, + "processing": { + "label": "ColdFire, per key and per composed frame", + "display": "Not measured", + "value": null, + "unit": "cycles/event", + "method": "unmeasured", + "conditions": "A short compare on each key. While the blank is on, 1024 bytes cleared on each composed frame, in the UI task.", + "source": "TESTING.md" + }, + "impact": { + "conditions": "UI task: one key chord, and a frame clear only while the blank is on.", + "cpu": { + "level": "minimal", + "basis": "source-estimate", + "rationale": "The chord is a handful of compares. The clear is 1024 bytes on the UI draw, and only while the screen is black. Nothing runs in the audio interrupt.", + "source": "TESTING.md" + }, + "dsp": { + "level": "minimal", + "basis": "source-estimate", + "rationale": "No DSP code. The blank only clears the composed frame on the UI task.", + "source": "manifest.py" + }, + "memory": { + "level": "minimal", + "basis": "source-estimate", + "rationale": "One small ColdFire unit and 12 bytes of state.", + "source": "screen_off.c" + } + } + }, + "tests": { + "report": "TESTING.md", + "summary": "Host gate on screen_off.c. The author reports that on a MKII the chord blanks the screen and brings it back. An MKI and a power cycle were not tried.", + "hardwareStatus": "untested", + "evidenceRevision": "0000000000000000000000000000000000000000", + "gates": [ + "modules/screen-off/verify.py" + ] + }, + "license": { + "spdx": "MIT", + "file": "LICENSE", + "declaration": "Original module by jonathanwardle1992-beep, MIT. No firmware, extracted stock code or built images are included." + }, + "media": [] +} diff --git a/sdk/drafts/screen-off/presentation/thumbnail.svg b/sdk/drafts/screen-off/presentation/thumbnail.svg new file mode 100644 index 0000000000..35d231f2e2 --- /dev/null +++ b/sdk/drafts/screen-off/presentation/thumbnail.svg @@ -0,0 +1,19 @@ + +Screen Off - blank the panel +A small screen. Its left half still has a few lines. Its right half is empty: the glass gone black. An illustration, not an Octatrack screenshot. + + + + + + +UP + NO BLANKS THE SCREEN + diff --git a/sdk/drafts/screen-off/runtime.json b/sdk/drafts/screen-off/runtime.json new file mode 100644 index 0000000000..384449b851 --- /dev/null +++ b/sdk/drafts/screen-off/runtime.json @@ -0,0 +1,8 @@ +{ + "schema": 1, + "subscribe": [ + {"event": "module_key", "fn": "so_key"}, + {"event": "module_draw", "fn": "so_draw"}, + {"event": "module_tick", "fn": "so_tick"} + ] +} diff --git a/sdk/drafts/screen-off/screen_off.c b/sdk/drafts/screen-off/screen_off.c new file mode 100644 index 0000000000..b9416b2b8b --- /dev/null +++ b/sdk/drafts/screen-off/screen_off.c @@ -0,0 +1,122 @@ +/* SPDX-License-Identifier: MIT + * Copyright (C) 2026 jonathanwardle1992-beep + * + * SCREEN OFF. Hold UP and tap NO: the composed frame is cleared until the + * same chord. Every other key and every knob still reaches the firmware, so + * the machine keeps working while the glass stays black. UP alone and NO + * alone are left to stock (NO still disarms, or steps back in a list). + * + * The chord is the press of NO while UP is already down. A repeat of that + * NO does not toggle again. The matching release is taken too, so stock + * does not also see it. The screen comes back only on the next chord. + * + * UP counts as down when this hook saw it go down, or when the panel's + * held-key row still has it (0x46100b18, the bytes stock's own key parser + * updates before it posts the event). A press that happened before the + * module was installed never arrives here, and an earlier base handler can + * take that press; the row still shows the key under the finger. + * + * Panel codes are the MKII map (UP 0x33, NO 0x32); MKI and MKII share them. + * The blank is the 1024-byte composed frame, cleared in the UI draw hook, + * not a change to the OLED power command. Turning the blank on or off asks + * the UI loop to compose (the same mark the base uses, 0x4004d948), because + * the chord is taken and stock would not redraw it. + * + * State lives in initialised data. A bad magic word is a fresh module: + * screen on, nothing held. screen_off.s is the same decisions for the unit. + */ +#include + +#define KEY_NO 0x32 +#define KEY_UP 0x33 +#define MAGIC 0x534f4631u /* "SOF1" */ +#define FRAME 1024 +#define HELD_ROWS 0x46100b18u /* boot.c: one bit per key, row = code >> 3 */ + +struct so { + uint32_t magic; + uint8_t up, off, no_down, take; + uint32_t toggles; +}; + +static struct so so; +static struct so *volatile so_at = &so; + +#ifdef SO_HOST +static int redraws; +static int so_row_up; /* the panel row, which the host has no copy of */ +int so_redraw_count(void) { return redraws; } +struct so *so_state_for_test(void) { return so_at; } +void so_test_up_held(int held) { so_row_up = held ? 1 : 0; } +static void request_redraw(void) { redraws++; } +#else +static void request_redraw(void) +{ + ((void (*)(int))0x4004d948u)(-1); /* mark the display; the UI loop flushes it */ +} +#endif + +static struct so *ready(void) +{ + struct so *s = so_at; + if (s->magic == MAGIC) return s; + uint8_t *p = (uint8_t *)s; + for (unsigned i = 0; i < sizeof *s; ++i) p[i] = 0; + s->magic = MAGIC; + return s; +} + +static int up_is_down(const struct so *s) +{ + if (s->up) return 1; +#ifdef SO_HOST + return so_row_up; +#else + unsigned code = KEY_UP; + uint8_t row = *(volatile uint8_t *)(HELD_ROWS + (code >> 3)); + return (row & (uint8_t)(1u << (code & 7u))) != 0; +#endif +} + +int so_key(int code, int pressed) +{ + struct so *s = ready(); + if (code == KEY_UP) { + s->up = pressed ? 1u : 0u; + return 0; + } + if (code != KEY_NO) return 0; + if (!pressed) { + int take = s->take ? 1 : 0; + s->no_down = 0; + s->take = 0; + return take; + } + if (s->no_down) return s->take ? 1 : 0; + s->no_down = 1; + if (!up_is_down(s)) return 0; + s->off ^= 1u; + s->take = 1; + s->toggles++; + request_redraw(); + return 1; +} + +void so_draw(unsigned char *frame) +{ + struct so *s = ready(); + if (!s->off || !frame) return; + for (int i = 0; i < FRAME; ++i) frame[i] = 0; +} + +struct so_api { volatile uint32_t value; }; + +void so_tick(struct so_api *api) +{ + struct so *s = ready(); + api->value = (s->toggles << 1) | s->off; +} + +#ifdef SO_HOST +_Static_assert(sizeof(struct so) == 12, "screen-off state layout"); +#endif diff --git a/sdk/drafts/screen-off/screen_off.s b/sdk/drafts/screen-off/screen_off.s new file mode 100644 index 0000000000..fca3cdb6aa --- /dev/null +++ b/sdk/drafts/screen-off/screen_off.s @@ -0,0 +1,121 @@ +| SPDX-License-Identifier: MIT +| SPDX-FileCopyrightText: 2026 jonathanwardle1992-beep +| +| SCREEN OFF, the ColdFire unit. Same decisions as screen_off.c, which the +| host gate runs. Hold UP (0x33) and tap NO (0x32) to toggle the blank. +| The release of that NO is taken as well. Every other key returns 0. +| While blanked, so_draw clears the 1024-byte composed frame. +| +| so_at is the one relocated word. A magic other than SOF1 is a fresh +| module (screen on). UP also counts as down when bit 3 of the held-key +| row at 0x46100b1e is set (code 0x33, the row stock updates before the +| event). 0x4004d948(-1) marks the display for the UI flush. + + .text + .global so_key, so_draw, so_tick + + .equ KEY_NO, 0x32 + .equ KEY_UP, 0x33 + .equ MAGIC, 0x534F4631 + +so_ready: + move.l so_at,%a0 + cmpi.l #MAGIC,(%a0) + beq.s ready_ok + clr.l (%a0) + clr.l 4(%a0) + clr.l 8(%a0) + move.l #MAGIC,(%a0) +ready_ok: + rts + +so_key: + move.l 4(%sp),%d0 + move.l 8(%sp),%d1 + jsr so_ready + cmpi.l #KEY_UP,%d0 + bne.s key_not_up + tst.l %d1 + beq.s key_up_release + move.b #1,4(%a0) + clr.l %d0 + rts +key_up_release: + clr.b 4(%a0) + clr.l %d0 + rts +key_not_up: + cmpi.l #KEY_NO,%d0 + bne.s key_pass + tst.l %d1 + beq.s key_no_release + tst.b 6(%a0) + bne.s key_no_repeat + move.b #1,6(%a0) + tst.b 4(%a0) + bne.s key_toggle + btst #3,0x46100b1e.l + beq.s key_pass +key_toggle: + eori.b #1,5(%a0) + move.b #1,7(%a0) + addq.l #1,8(%a0) + moveq #-1,%d0 + move.l %d0,-(%sp) + jsr 0x4004d948.l + addq.l #4,%sp + moveq #1,%d0 + rts +key_no_repeat: + moveq #0,%d0 + tst.b 7(%a0) + beq.s key_repeat_out + moveq #1,%d0 +key_repeat_out: + rts +key_no_release: + moveq #0,%d0 + tst.b 7(%a0) + beq.s key_release_clear + moveq #1,%d0 +key_release_clear: + clr.b 6(%a0) + clr.b 7(%a0) + rts +key_pass: + clr.l %d0 + rts + +so_draw: + move.l 4(%sp),%a1 + jsr so_ready + tst.b 5(%a0) + beq.s draw_out + cmpa.l #0,%a1 + beq.s draw_out + move.w #1023,%d0 +draw_clear: + clr.b (%a1)+ + dbf %d0,draw_clear +draw_out: + rts + +so_tick: + move.l 4(%sp),%a1 + jsr so_ready + move.l 8(%a0),%d0 + add.l %d0,%d0 + moveq #0,%d1 + move.b 5(%a0),%d1 + or.l %d1,%d0 + move.l %d0,(%a1) + rts + + .data + .align 2 +so_at: + .long so_state +so_state: + .long 0 + .long 0 + .long 0 diff --git a/sdk/drafts/screen-off/verify.py b/sdk/drafts/screen-off/verify.py new file mode 100644 index 0000000000..33fce33c84 --- /dev/null +++ b/sdk/drafts/screen-off/verify.py @@ -0,0 +1,146 @@ +#!/usr/bin/env python3 +"""SCREEN OFF's gate: screen_off.c compiled for the host and driven with panel events. + + python3 -B verify.py + +UP is 0x33 and NO is 0x32. The chord is NO pressed while UP is already down. +That press and its release are taken. A repeat of the held NO does not toggle +again. Every other key is passed through. While the blank is on, so_draw +clears a 1024-byte frame and leaves it alone once the chord turns the blank off. +A garbage state word behaves as a fresh module. +""" +import ctypes +import os +import pathlib +import shutil +import subprocess +import sys +import tempfile + +HERE = pathlib.Path(__file__).resolve().parent +UP, NO, PLAY = 0x33, 0x32, 0x28 +failed = [] +passed = [] + + +def check(name, ok): + print(('[PASS] ' if ok else '[FAIL] ') + name) + (passed if ok else failed).append(name) + + +def compiler(): + for name in ('gcc', 'cc', r'C:\msys64\mingw64\bin\gcc.exe', r'C:\msys64\usr\bin\gcc.exe'): + found = shutil.which(name) or (name if pathlib.Path(name).is_file() else None) + if found: + return found + sys.exit('[FAIL] no host C compiler (gcc or cc)') + + +class Api(ctypes.Structure): + _fields_ = [('value', ctypes.c_uint32)] + + +class State(ctypes.Structure): + _fields_ = [ + ('magic', ctypes.c_uint32), + ('up', ctypes.c_uint8), + ('off', ctypes.c_uint8), + ('no_down', ctypes.c_uint8), + ('take', ctypes.c_uint8), + ('toggles', ctypes.c_uint32), + ] + + +with tempfile.TemporaryDirectory() as tmp: + dll = pathlib.Path(tmp) / 'screen_off.dll' + env = os.environ.copy() + mingw = pathlib.Path(r'C:\msys64\mingw64\bin') + if mingw.is_dir(): + env['PATH'] = str(mingw) + os.pathsep + env.get('PATH', '') + os.environ['PATH'] = env['PATH'] + subprocess.run( + [compiler(), '-O2', '-shared', '-DSO_HOST', '-o', str(dll), str(HERE / 'screen_off.c')], + check=True, env=env, + ) + lib = ctypes.CDLL(str(dll)) + lib.so_key.argtypes = [ctypes.c_int, ctypes.c_int] + lib.so_key.restype = ctypes.c_int + lib.so_draw.argtypes = [ctypes.c_void_p] + lib.so_draw.restype = None + lib.so_tick.argtypes = [ctypes.POINTER(Api)] + lib.so_tick.restype = None + lib.so_redraw_count.restype = ctypes.c_int + lib.so_state_for_test.restype = ctypes.POINTER(State) + lib.so_test_up_held.argtypes = [ctypes.c_int] + lib.so_test_up_held.restype = None + + def key(code, down): + return lib.so_key(code, int(down)) + + def tick(): + api = Api() + lib.so_tick(ctypes.byref(api)) + return api.value + + def frame(pattern): + buf = (ctypes.c_ubyte * 1024)() + for i in range(1024): + buf[i] = pattern + lib.so_draw(ctypes.cast(buf, ctypes.c_void_p)) + return bytes(buf) + + check('NO alone is not taken', key(NO, True) == 0 and key(NO, False) == 0) + check('the screen stays on', tick() == 0 and frame(0xA5) == bytes([0xA5]) * 1024) + check('UP alone is not taken', key(UP, True) == 0) + + check('NO while UP is held is taken', key(NO, True) == 1) + check('the screen is blank and a redraw was asked', tick() == 0b11 and lib.so_redraw_count() == 1) + check('the composed frame is cleared', frame(0xA5) == bytes(1024)) + check('a null frame is ignored', lib.so_draw(None) is None) + check('a repeat of the held NO does not toggle back', key(NO, True) == 1 and (tick() & 1) == 1) + check('the release of that NO is taken', key(NO, False) == 1) + check('releasing UP is not taken', key(UP, False) == 0) + + check('another key still passes while the screen is black', key(PLAY, True) == 0 and key(PLAY, False) == 0) + check('the frame stays clear after that key', frame(0x5A) == bytes(1024)) + + check('the chord again is taken', key(UP, True) == 0 and key(NO, True) == 1) + check('the screen is back and a second redraw was asked', (tick() & 1) == 0 and lib.so_redraw_count() == 2) + check('the composed frame is left alone', frame(0x3C) == bytes([0x3C]) * 1024) + key(NO, False) + key(UP, False) + + check('NO pressed before UP does not blank', key(NO, True) == 0 and key(UP, True) == 0 and (tick() & 1) == 0) + key(NO, False) + key(UP, False) + + check('UP released before NO still keeps the blank', key(UP, True) == 0 and key(NO, True) == 1 and key(UP, False) == 0) + check('that NO release is still taken', key(NO, False) == 1 and (tick() & 1) == 1) + key(UP, True) + key(NO, True) + key(NO, False) + key(UP, False) + check('the following chord restores the screen', (tick() & 1) == 0) + + state = lib.so_state_for_test() + state.contents.magic = 0xDEADBEEF + state.contents.off = 1 + check('a garbage state is a fresh module', key(NO, True) == 0 and key(NO, False) == 0 and tick() == 0) + check('a garbage blank does not clear the frame', frame(0x11) == bytes([0x11]) * 1024) + + lib.so_test_up_held(1) + check('NO takes when the panel row already holds UP', key(NO, True) == 1 and (tick() & 1) == 1) + check('that NO release is taken', key(NO, False) == 1) + lib.so_test_up_held(0) + check('NO alone still passes once the row lets UP go', key(NO, True) == 0 and key(NO, False) == 0) + + handle = lib._handle + del state, lib + if sys.platform == 'win32': + free = ctypes.WinDLL('kernel32').FreeLibrary + free.argtypes = [ctypes.c_void_p] + free(handle) + +if failed: + sys.exit(f'{len(failed)} check(s) failed') +print(f'verify screen-off: {len(passed)} checks passed') From 10c2e8a9174cb72ce2c2ae3382e611c16896435d Mon Sep 17 00:00:00 2001 From: jonathanwardle1992-beep Date: Sun, 8 Nov 2026 18:49:26 +0000 Subject: [PATCH 002/415] Name the Screen Off commit the host gate and the MKII report used. --- sdk/drafts/screen-off/octamod.module.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/drafts/screen-off/octamod.module.json b/sdk/drafts/screen-off/octamod.module.json index 3dffc57432..2b9a081ab2 100644 --- a/sdk/drafts/screen-off/octamod.module.json +++ b/sdk/drafts/screen-off/octamod.module.json @@ -103,7 +103,7 @@ "report": "TESTING.md", "summary": "Host gate on screen_off.c. The author reports that on a MKII the chord blanks the screen and brings it back. An MKI and a power cycle were not tried.", "hardwareStatus": "untested", - "evidenceRevision": "0000000000000000000000000000000000000000", + "evidenceRevision": "fe9e689d3043f215ea4d621613706454c7062cc0", "gates": [ "modules/screen-off/verify.py" ] From f506923ddfd58ef4ed37815427a1a48f4fe806de Mon Sep 17 00:00:00 2001 From: STEPHEN <277114827+ZOGV@users.noreply.github.com> Date: Thu, 12 Nov 2026 18:55:08 +0100 Subject: [PATCH 003/415] digitone: kitbank 0.1.0-experimental, one kit per bank (KIT PER BANK in SETTINGS, off at power-on) Co-Authored-By: Claude Opus 5.5 --- sdk/digitone/modules/kitbank/LICENSE | 674 ++++++++++++++++++ sdk/digitone/modules/kitbank/README.md | 78 ++ sdk/digitone/modules/kitbank/TESTING.md | 31 + sdk/digitone/modules/kitbank/build.json | 82 +++ sdk/digitone/modules/kitbank/media/LICENSE.md | 7 + .../modules/kitbank/media/capture-plan.txt | 17 + .../modules/kitbank/media/capture.json | 177 +++++ .../modules/kitbank/media/settings-off.png | Bin 0 -> 1940 bytes .../modules/kitbank/media/settings-on.png | Bin 0 -> 1946 bytes .../modules/kitbank/media/thumbnail.svg | 50 ++ .../modules/kitbank/modwerk.module.json | 172 +++++ sdk/digitone/modules/kitbank/src/kitbank.S | 213 ++++++ 12 files changed, 1501 insertions(+) create mode 100644 sdk/digitone/modules/kitbank/LICENSE create mode 100644 sdk/digitone/modules/kitbank/README.md create mode 100644 sdk/digitone/modules/kitbank/TESTING.md create mode 100644 sdk/digitone/modules/kitbank/build.json create mode 100644 sdk/digitone/modules/kitbank/media/LICENSE.md create mode 100644 sdk/digitone/modules/kitbank/media/capture-plan.txt create mode 100644 sdk/digitone/modules/kitbank/media/capture.json create mode 100644 sdk/digitone/modules/kitbank/media/settings-off.png create mode 100644 sdk/digitone/modules/kitbank/media/settings-on.png create mode 100644 sdk/digitone/modules/kitbank/media/thumbnail.svg create mode 100644 sdk/digitone/modules/kitbank/modwerk.module.json create mode 100644 sdk/digitone/modules/kitbank/src/kitbank.S diff --git a/sdk/digitone/modules/kitbank/LICENSE b/sdk/digitone/modules/kitbank/LICENSE new file mode 100644 index 0000000000..f288702d2f --- /dev/null +++ b/sdk/digitone/modules/kitbank/LICENSE @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff --git a/sdk/digitone/modules/kitbank/README.md b/sdk/digitone/modules/kitbank/README.md new file mode 100644 index 0000000000..8d39566ea8 --- /dev/null +++ b/sdk/digitone/modules/kitbank/README.md @@ -0,0 +1,78 @@ +# kitbank — Digitone + +Modwerk module version: `0.1.0-experimental`. + +## Overview + +kitbank gives the original Digitone and Digitone Keys (OS 1.44) one kit per bank, like the Octatrack's parts. With **KIT PER BANK** ticked in SETTINGS, the 16 patterns of a bank play the kit of the bank's first pattern: A01 to A16 play A01's kit, B01 to B16 play B01's kit, and so on up to H. + +- Change pattern inside a bank: the sounds stay, only the notes change. +- A sound edit made on any pattern of the bank goes to the bank's kit and is heard on all 16 patterns. +- Queued pattern changes during playback and chains take the bank's kit too. +- FUNC+YES / FUNC+NO, SAVE TO PROJ / RELOAD FROM PROJ and [T1–4]+[NO] act on the bank's kit from any pattern of the bank. +- Nothing is rewritten in the project. Every pattern keeps its own kit, untouched; untick KIT PER BANK and each pattern plays its own kit again. A project saved this way opens normally on the stock OS. +- Off at power-on, so existing projects sound as before until you tick it. + +## Controls + +| Control | What it does | +| --- | --- | +| KIT PER BANK | SETTINGS, last row. Ticked: the patterns of each bank share the kit of the bank's first pattern. Unticked: every pattern plays its own kit, as on the stock OS. Off at power-on and not saved with the project; a change applies from the next pattern change. | + +## Usage + +Use the access steps below after installing a compatible build. The tutorial gives a first practical pass through the module. + +### Where to find it + +Location: SETTINGS, last row: KIT PER BANK. + +1. Press SETTINGS and scroll to the last row, KIT PER BANK. +2. Press YES (or RIGHT) to tick it; YES (or LEFT) unticks it. +3. Change pattern, or select the current pattern again: the setting applies from that pattern change. + +These instructions assume the module is already installed in a compatible build. For selecting and building it in Modwerk, see the [Digitone guide](../../../machines/digitone/README.md). + +### Quick tutorial: one kit for a whole bank + +1. Open SETTINGS, scroll to the bottom and tick KIT PER BANK. +2. Select A01 again, set up a bass sound, then go to A02 and program different notes: same sound. +3. On A02, open the filter page and turn the cutoff; go back to A01: the cutoff moved there too. +4. Press FUNC+YES on A02 to save the bank's kit; FUNC+NO on any pattern of bank A reloads it. +5. Untick KIT PER BANK and change pattern: A02 plays its own kit again. + +A practical layout: one bank per track (intro, verse, break... as 16 patterns sharing one set of sounds), eight tracks per project. + +## Compatibility and limitations + +- Original Digitone (Mk1) and Digitone Keys, OS 1.44, with core-dn1 2.0a for 1.44. Not ported to OS 1.43. The Keys runs the same OS file but has not been tried. +- The switch is off at power-on and is not saved with the project: core-dn1 2.0a for 1.44 has no project data. It can move to `core_projdata` when a 1.44 core provides it. +- kitbank patches seven stock OS sites itself (immediate pattern change, the kit lookup used by the screen and edits, two queued-change sites, kit save, kit reload, sound reload). The three save/reload sites are redirected only when called from the pattern menus, so the automatic saves after copy, paste and clear keep each pattern's own slot. A mod that patches the same bytes cannot be combined; if other mods need kit selection, these sites should become a core hook. +- While ticked, pasting a pattern into a bank's first pattern (A01, B01...) replaces the bank's kit with the copied pattern's own kit, because the stock OS replaces that pattern's kit. +- Toggling applies at the next pattern change, so the screen and the sound engine always switch together. +- Song mode was not tried. Queued changes during playback were. + +## Tests and measurements + +The Modwerk evidence tier is `none`. [TESTING.md](TESTING.md) records the emulator runs: stock behaviour when unticked, bank kits for immediate and queued pattern changes, edits, kit save and reload, unticking, and a full check against the stock OS. Memory: 552 B (548 B code, 4 B state), excluding the core. No audio-rate work. + +The same redirections were first built as a standalone patch of the author's own unit (OS 1.44, always on) and run there; that build is not a Modwerk build and is not part of this module's evidence. + +## Authorship and licences + +- ZOGV — kitbank design and code +- irpina — the SETTINGS row pattern from digihealth (GPL-2.0-or-later), and the elekloader core it links with + +The module is licensed under [GPL-3.0-or-later](LICENSE). + +## Screens and audio + +Firmware-rendered emulator captures on OS 1.44. The [capture record](media/capture.json) includes build identities, panel inputs, timestamps and PNG hashes; it also records that they were taken with a digiemu revision other than the reviewed one. [Capture rights](media/LICENSE.md) preserve the underlying interface rights. The [thumbnail](media/thumbnail.svg) is an illustration. No audio demonstration is claimed. + +![SETTINGS: KIT PER BANK unticked (power-on state)](media/settings-off.png) + +SETTINGS: KIT PER BANK unticked (power-on state). + +![SETTINGS: KIT PER BANK ticked](media/settings-on.png) + +SETTINGS: KIT PER BANK ticked. diff --git a/sdk/digitone/modules/kitbank/TESTING.md b/sdk/digitone/modules/kitbank/TESTING.md new file mode 100644 index 0000000000..29db61962c --- /dev/null +++ b/sdk/digitone/modules/kitbank/TESTING.md @@ -0,0 +1,31 @@ +# kitbank testing + +## In Modwerk + +No hardware qualification is claimed for this Modwerk build. Evidence tier: `none`. All runs below are in the digiemu emulator (revision `f57c2f237e84b8ff91bc3adb2a2931bccf9928e9`, not the reviewed `c1b5735…`, see [capture.json](media/capture.json)), on a local image linked with `node scripts/link-image.mjs --version XX01` from the stock OS 1.44 file (`d4f200d0…`), core-dn1 2.0a for 1.44 and this module. Built-image SHA-256: `13c0595b442bc1c68d78069eea4ee451a917b26f9990c79753037de288762e04`. Firmware and derived images stay private. + +## Behaviour (emulator, real panel inputs) + +Scripts kept with the author's notes (`re/test_kitbank.py`, `re/test_kitbank_save.py`); they read the live pattern and kit pointers (`0x4138f214`, `0x4138f220`) and the 128 live kits, and drive the unit only through panel keys and encoders. + +| Run | Result | +| --- | --- | +| Unticked (power-on): A02, A16, B01, B05, H16, an edit on A03, queued changes while playing | PASS: every pattern plays and edits its own kit, as the stock OS does | +| Ticked (SETTINGS, last row, YES): A01, A02, A16 → kit A01; B01, B05 → kit B01; H16 → kit H01 | PASS | +| Ticked: filter edit on A03 changes only kit A01, and A01 shows it | PASS | +| Ticked, playing: queued changes A01→A02, →B01, →B02, →A01 each take the bank's kit | PASS | +| Ticked then unticked: A02 plays its own kit again, A01 its own | PASS | +| Ticked, project saved: on A02 edit, FUNC+YES, edit, FUNC+NO → kit A01 back to the saved state; FUNC+NO on A01 → the same; A02's own kit never touched | PASS | +| Playback with pattern changes | no halt, audio present | + +## Full check against stock + +`python -m emu.portable --check --baseline --timing`: see the result recorded below. + +## Memory + +Object sizes: 548 B `.run`, 4 B `.bss`: **552 B**, excluding the core and linker alignment. No audio-rate code. + +## Not tested + +Hardware with this Modwerk build; song mode; copy, paste and clear of patterns while ticked; OS 1.43. diff --git a/sdk/digitone/modules/kitbank/build.json b/sdk/digitone/modules/kitbank/build.json new file mode 100644 index 0000000000..474ef95520 --- /dev/null +++ b/sdk/digitone/modules/kitbank/build.json @@ -0,0 +1,82 @@ +{ + "schemaVersion": 1, + "sources": [ + "src/kitbank.S" + ], + "defsym": {}, + "cflags": [], + "weak": [], + "subscribe": [ + { + "event": "ev_settings", + "fn": "kb_settings", + "order": 50 + } + ], + "contribute": [], + "collections": {}, + "copied": [], + "regions": [], + "claims": [ + "settings:KIT PER BANK" + ], + "requires": [], + "derive": null, + "releases": { + "1.44": { + "defsym": {}, + "cflags": [], + "sites": [ + { + "addr": "0x40094f14", + "len": 8, + "stockSha256": "4997842f477c42235c625d7ba815c13fc3a07a0c57335d4361007e1288ff0795", + "op": "jmp", + "target": "kb_setpat" + }, + { + "addr": "0x4014df66", + "len": 6, + "stockSha256": "25f6cf58764096a92fba2355b3a003ad25d064d44e1e91102deb6abcadbed9d7", + "op": "jmp", + "target": "kb_getkit" + }, + { + "addr": "0x40095f08", + "len": 6, + "stockSha256": "e546d4a005b1ba895fcdb1eff85edbca6c362d0359e3ce5ed454b6320228bc21", + "op": "jmp", + "target": "kb_qact1" + }, + { + "addr": "0x40096236", + "len": 6, + "stockSha256": "e546d4a005b1ba895fcdb1eff85edbca6c362d0359e3ce5ed454b6320228bc21", + "op": "jmp", + "target": "kb_qact2" + }, + { + "addr": "0x400278f0", + "len": 8, + "stockSha256": "da84c1f842d053771b08911c8ed517551ad95f3019433555c6327cd2698f25d7", + "op": "jmp", + "target": "kb_save" + }, + { + "addr": "0x40027d3a", + "len": 8, + "stockSha256": "e60937176ed83d52936ca7977d2a4082ed1ac3017ff960831e4d5f7ebb5b9250", + "op": "jmp", + "target": "kb_reload" + }, + { + "addr": "0x40029ada", + "len": 8, + "stockSha256": "f7fddeefeac300af619b7028a954dc595076d9d098da7090973c1cbc1f649ec0", + "op": "jmp", + "target": "kb_sndreload" + } + ] + } + } +} diff --git a/sdk/digitone/modules/kitbank/media/LICENSE.md b/sdk/digitone/modules/kitbank/media/LICENSE.md new file mode 100644 index 0000000000..376ba83e29 --- /dev/null +++ b/sdk/digitone/modules/kitbank/media/LICENSE.md @@ -0,0 +1,7 @@ +# kitbank UI documentation captures + +The contributor dedicates their original capture contribution to the public domain under CC0-1.0. This declaration covers the act of capture and accompanying original captions, not the depicted firmware interface. + +Elektron retains rights in its underlying interface and firmware. Module interface additions retain their author’s terms in [../LICENSE](../LICENSE). No firmware, extracted stock code, raw memory/framebuffer data, card images or audio samples are included. The images are unmodified firmware-rendered pixels at integer scale. + +Manifest identifier: `LicenseRef-Digi-UI-Documentation`. Capture identity and inputs: [capture.json](capture.json). diff --git a/sdk/digitone/modules/kitbank/media/capture-plan.txt b/sdk/digitone/modules/kitbank/media/capture-plan.txt new file mode 100644 index 0000000000..2abf84f4e2 --- /dev/null +++ b/sdk/digitone/modules/kitbank/media/capture-plan.txt @@ -0,0 +1,17 @@ +wait 1000 +tap GLOBAL +tap DOWN +tap DOWN +tap DOWN +tap DOWN +tap DOWN +tap DOWN +tap DOWN +tap DOWN +tap DOWN +tap DOWN +tap DOWN +tap DOWN +snap settings-off +tap YES +snap settings-on diff --git a/sdk/digitone/modules/kitbank/media/capture.json b/sdk/digitone/modules/kitbank/media/capture.json new file mode 100644 index 0000000000..9f752d54bb --- /dev/null +++ b/sdk/digitone/modules/kitbank/media/capture.json @@ -0,0 +1,177 @@ +{ + "schemaVersion": 1, + "machine": "digitone", + "moduleId": "kitbank", + "moduleVersion": "0.1.0-experimental", + "capturedAt": "2026-11-12", + "firmware": "1.44", + "imageSha256": "13c0595b442bc1c68d78069eea4ee451a917b26f9990c79753037de288762e04", + "stockSha256": "d4f200d04484333d82822db7744e6484d0def8f2db8ddf55ee2b780cc13c9659", + "build": { + "tool": "node scripts/link-image.mjs --version XX01", + "modules": [ + { + "id": "core", + "version": "2.0a", + "sha256": "5707a38e98047854eb12e5870430fb323126224f25b2a10b725badb93b97a41a" + }, + { + "id": "kitbank", + "version": "0.1.0-experimental", + "source": "sdk/digitone/modules/kitbank (this folder)" + } + ], + "outputVersion": "XX01" + }, + "emulator": { + "repository": "https://github.com/irpina/digiemu", + "revision": "f57c2f237e84b8ff91bc3adb2a2931bccf9928e9", + "note": "Not the reviewed revision c1b5735835923e328f8b4950d6ba927875e5b669, which was not reachable from the public repository; the checkout also carries an uncommitted change to emu/gui.py (the desktop window, unused headless). scripts/capture-digi-module-ui.py was run unchanged except for its two revision checks. Re-capture with the reviewed revision before release.", + "python": "3.12.13", + "platform": "macOS arm64", + "hle": false, + "audioRecording": false, + "cycleTiming": false, + "framebuffer": "firmware front LCD buffer at panel_diff flush", + "scale": 6, + "frameSelection": "Most populated actual LCD frame within the final 250 ms after the latest panel action; 6x integer scaling." + }, + "setup": { + "project": "Disposable first-boot A01, stock initial state; no owner projects or samples.", + "fixture": "None.", + "sandbox": "No network (sandbox-exec deny network*); private temporary output only." + }, + "inputs": [ + [ + 1000.029, + "press 7" + ], + [ + 1100.032, + "release 7" + ], + [ + 1400.041, + "press 16" + ], + [ + 1500.044, + "release 16" + ], + [ + 1800.053, + "press 16" + ], + [ + 1900.056, + "release 16" + ], + [ + 2200.064, + "press 16" + ], + [ + 2300.067, + "release 16" + ], + [ + 2600.076, + "press 16" + ], + [ + 2700.079, + "release 16" + ], + [ + 3000.087, + "press 16" + ], + [ + 3100.09, + "release 16" + ], + [ + 3400.099, + "press 16" + ], + [ + 3500.102, + "release 16" + ], + [ + 3800.111, + "press 16" + ], + [ + 3900.114, + "release 16" + ], + [ + 4200.122, + "press 16" + ], + [ + 4300.126, + "release 16" + ], + [ + 4600.134, + "press 16" + ], + [ + 4700.137, + "release 16" + ], + [ + 5000.146, + "press 16" + ], + [ + 5100.148, + "release 16" + ], + [ + 5400.157, + "press 16" + ], + [ + 5500.16, + "release 16" + ], + [ + 5800.169, + "press 16" + ], + [ + 5900.172, + "release 16" + ], + [ + 6200.181, + "press 13" + ], + [ + 6300.183, + "release 13" + ] + ], + "captures": [ + { + "path": "media/settings-off.png", + "sha256": "546fd24aafd699b3d5ac20b25bd47477ca99b7688ca79917bcd2894b452c8444", + "plan": "wait 1000\ntap GLOBAL\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\nsnap settings-off\ntap YES\nsnap settings-on\n", + "atMs": 6200.180769230769, + "requestedAtMs": 6200.180769230769 + }, + { + "path": "media/settings-on.png", + "sha256": "cece0825ac5c705eaba1c122acf9f2ab2bfd379f89ab4554c1440fe1de53475b", + "plan": "wait 1000\ntap GLOBAL\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\nsnap settings-off\ntap YES\nsnap settings-on\n", + "atMs": 6600.19188034188, + "requestedAtMs": 6600.19188034188 + } + ], + "limitations": [ + "UI-only documentation of the SETTINGS row; the kit behaviour is covered by the emulator tests in TESTING.md." + ] +} diff --git a/sdk/digitone/modules/kitbank/media/settings-off.png b/sdk/digitone/modules/kitbank/media/settings-off.png new file mode 100644 index 0000000000000000000000000000000000000000..090968e8d4f19b23eacdebb8f9d3def77f446d18 GIT binary patch literal 1940 zcmah}3rv$&6h3Vg6wAY94ip&mvAM)f)*%QO;CB=YlOas;F=Q<-MbV1P#aSr*5o1x% zqD!+GL73IRVgd}AudY~w0&1)UwlI_ylp)l$HVUG(wCwir7qlchC;9KW|M~8@_kQQx zb0jf=@N&XQ3}d-TFoX;F=Q0T)p9k2RhYSt}nw2TirL&=~12x zStZYQoP1oP{<2)x@pI;Zj^D&p0h)t_6Jv(WWX!JpXJQO1bMibXB)|tPAuX~NZ9(qe z2C==lqdGdk-&+70KC$^M-*s*2<`JEAC%cB+zvH$#wZ`;XGjCa+MjE`Q?@@^?rHC|% zB`l>mgvU=d%3}_1lz6Y0Q*92Fem{t(!3b-!3(o84+?jvW9&GG=fEkDt3pw)2{7-F!aFPJzXKia}mAp}g z7r-o-ZBbkhRj?-H+jUg1{>r}D5q#VT-C$sQ;-3#M3kV60AK)| zBzkYes^w@$KQsvghtTgyKQj8Axm0f$H9Vha(yL?1?^<8Z0iRkr)3hh99kiPEM&NuIX&;@4#&)seR{G-1M|CkHnV&AJ5v@esx ztDJzjB>c{zXN@GjV1AuB^hFsXn_nOOujS>xE#6QY*jEW^)9rMBZ2bG+@$FG>1JI0q zeSq(s)5bnBGB*6m&orU^*a@eil@`K6O%25-J4!v19a);W0&lMBDjXj* z^bFN-QRbZlGt}POuJp!?hSzDP@$5l0it(;!rRg%RtUIvf<$|0`B%flmhm#a|V_8=R z-~oG%-9;P(O&4|Fj^sx3UKRM_j46$eh>_^pa5tq$Wd1RBk7$~XRN+p`V=CSv(Gt61 zfeVXmDZM3DJr@Se`F^CymH|5=@l(Ri4sS;j0gV)%_$lY9scWUv+_Eh4@_^5%De(C| zUq@+R_S#;YpuIzVTpV literal 0 HcmV?d00001 diff --git a/sdk/digitone/modules/kitbank/media/settings-on.png b/sdk/digitone/modules/kitbank/media/settings-on.png new file mode 100644 index 0000000000000000000000000000000000000000..540e3c0ad69dc30252bedafd39e6b1e3574e174f GIT binary patch literal 1946 zcmaJ?4OmlU6h0d=l%HX0u+XvTvM8|x6@^(FilJFzN~xGRoDBa$AJqBB#Vb6DCc4Pb z5^+;W@p%$NDOPK1kHkPo{xo1P0bMp=n?D5;H`ltm+Z~hnbk1|X@7(Xa-_Lo^`R+Zu zWO00eZ-_4d1T0(-w-mq&GfC)3tOZV0(s=-%37<)F8anEuhVlr82dyQ|FeW+GiQX8m`>f=aPC?CDNQ98fER6F5))-J01DDq zV9cxu2-^=p7z7Y*KY>G(x5`%7GAt$St(Ra|(p81NoWYT=z0WqT`o~1CZ|gfXoh28Y0#U*ALF9m@T;BC=S8^*){mPi|2!eWF|IsA#wYQG4LD~q0Y*dfAN(bwfY4qhWegA+R8xAZ5a~CD1GKHQV*$(Y2yCOO z>vyhcv6btv;7<&lRoUD>Rjqqej@-Q1AhKOVkSC_?2Mi+gBD>);+dCYC<5=!3+M$x< zv%W$yZ);;74(iI!DxS7Qn;i(eo^X?!KQBsnMVjt^%3G5;U=CB$oDsS&)t2HPV`{Ba z%%m8{7ldSEryDM*qFC|4Z}K=ut|+#Hf6IiFoYf~x^2{G9r^*k=lB+Q~?ZJinxE4aa zzwi&*(HY3b7)&8{sKXc`b7MsNN1%jmH#Jpr0hsVAu0?xk3&5qR48$LwLgw1Flco>F zv*b()Z$CiyU-QJ)V&NRK5Gx(SYdG)W0f5Wn>~vLGP3OK5H*|9=#Eczu&Rv0Fw!`Pv zYA6zGie>Gg38!jx>lpE8dSw^h*AJzNKn4SCW|$@=tR?jC_aKp)_Gih}*5$n!L~H~M zl-}^>5osMI*P0?VYip*fBm;8l0~V5QyTX&cutbhYZxCouhb7E4{fx zBs-}7zqaTksd!EMs%4|_BE~|rUkf9dX(8v?E~ItR1>1_;cCnW_*L45d0)ZFJ5^bzb z5Q~w_UZDpw0PwY_eGi3CDi@0wEe)bi9(;(64HKneN>pDKE;j@z?$yK}Z%*S#6?Sm~k9 zUwjyeRwQrj$Ew^>h-7Y(SGTPCB^>o7;M(G~Vs{uFv41d}BMLv>O%hUBki6lf+XhY( zRqKSI*=4rLXVUmCuj89R=BW-N)3XP={U^FSgwc2j`f~VD*=o4ANUfOLl~6cnZjh#% zUS@T%3CvJ`rIl75`Bp~9v>ASqhrUMEn4I9V`SRn2{3)Ur5F>{~1urT)yk7AUA4yE| zX{;zzvzjYH9xuo4poh>For|O#-E6B+Nz}TdFCx13>F>wr`%bj}dytj$M&=$+hk z%Lh^QV1FbJ>9$rj`l5y_A8(<0_=c4lmIW+JG>x!-co3suP0Y8=!L?a=L=LFlkAgSL Vsy1C_<>>6|E}XwOu4FDR>pw*q2$%o> literal 0 HcmV?d00001 diff --git a/sdk/digitone/modules/kitbank/media/thumbnail.svg b/sdk/digitone/modules/kitbank/media/thumbnail.svg new file mode 100644 index 0000000000..56827fba8c --- /dev/null +++ b/sdk/digitone/modules/kitbank/media/thumbnail.svg @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sdk/digitone/modules/kitbank/modwerk.module.json b/sdk/digitone/modules/kitbank/modwerk.module.json new file mode 100644 index 0000000000..eed0b71a82 --- /dev/null +++ b/sdk/digitone/modules/kitbank/modwerk.module.json @@ -0,0 +1,172 @@ +{ + "schemaVersion": 3, + "id": "kitbank", + "name": "kitbank", + "version": "0.1.0-experimental", + "machine": "digitone", + "category": "playback", + "exclusive": false, + "author": { + "github": "ZOGV", + "credits": [ + "ZOGV — kitbank design and code", + "irpina — digihealth SETTINGS row pattern, elekloader core" + ] + }, + "maintainers": [ + "ZOGV" + ], + "presentation": { + "label": "KIT PER BANK", + "family": "Sequencing", + "summary": "One kit per bank, like the Octatrack's parts: the 16 patterns of a bank play the kit of its first pattern.", + "overview": "With KIT PER BANK ticked in SETTINGS, the 16 patterns of a bank share one kit, the kit of the bank's first pattern: A01 to A16 play A01's kit, B01 to B16 play B01's kit, and so on. Switching patterns inside a bank keeps the same sounds and changes only the notes; a sound edit made on any pattern of the bank is heard on all of them. This covers immediate and queued pattern changes (playback, chains), and the kit save and reload commands act on the bank's kit. Every pattern keeps its own kit in the project, untouched: unticked, each pattern plays its own kit again. Off at power-on.", + "highlights": [ + "Rytm/Octatrack-style shared kits: change pattern inside a bank, keep the sound.", + "Edits on any pattern of a bank go to the bank's kit and are heard on all 16 patterns.", + "Nothing is rewritten in the project: untick it and every pattern plays its own kit again; the project still opens on the stock OS.", + "Off at power-on: existing projects sound as before until you tick it." + ], + "usage": [ + "Open SETTINGS, scroll to the bottom and tick KIT PER BANK.", + "Select A01 again, set up a bass sound, then go to A02 and program different notes: same sound.", + "On A02, open the filter page and turn the cutoff; go back to A01: the cutoff moved there too.", + "Press FUNC+YES on A02 to save the bank's kit; FUNC+NO on any pattern of bank A reloads it.", + "Untick KIT PER BANK and change pattern: A02 plays its own kit again." + ] + }, + "access": { + "location": "SETTINGS, last row: KIT PER BANK", + "steps": [ + "Press SETTINGS and scroll to the last row, KIT PER BANK.", + "Press YES (or RIGHT) to tick it, YES (or LEFT) to untick it.", + "Change pattern, or select the current pattern again: the setting applies from that pattern change." + ], + "screenshots": [ + "media/settings-off.png", + "media/settings-on.png" + ] + }, + "controls": [ + { + "name": "KIT PER BANK", + "default": 0, + "doc": "Ticked: the 16 patterns of a bank play, edit, save and reload the kit of the bank's first pattern. Unticked: every pattern plays its own kit, as on the stock OS. Off at power-on, not saved with the project; it applies from the next pattern change.", + "labels": [ + "off", + "on" + ] + } + ], + "compatibility": { + "releases": [ + "1.44" + ], + "requires": [], + "conflicts": [], + "limitations": [ + "Built for Digitone OS 1.44 with the vendored core-dn1 2.0a (os1.44); not ported to OS 1.43. The Digitone Keys runs the same OS file but has not been tried.", + "The switch is not saved with the project and is off at power-on: core-dn1 2.0a for 1.44 has no project data. It can move to core_projdata when a 1.44 core provides it.", + "It patches seven stock OS sites itself (kit selection, queued pattern change, kit save/reload); a mod patching the same bytes cannot be combined. If other mods need kit selection, these sites should become a core hook.", + "Pasting a pattern into a bank's first pattern (A01, B01...) replaces the bank's kit with the copied pattern's own kit, as the stock OS replaces that pattern's kit.", + "Song mode was not tried; queued changes during playback were." + ] + }, + "platform": { + "kind": "elemod", + "core": "2.0a", + "build": "build.json", + "events": [ + "ev_settings" + ], + "claims": [ + "settings:KIT PER BANK" + ] + }, + "resources": { + "memoryBytes": 552, + "fastBytes": 0, + "load": { + "display": "None while playing", + "method": "static", + "conditions": "No audio-rate code: the redirections run only on pattern changes, screen and edit kit lookups, and the pattern menus' kit save and reload." + } + }, + "evidence": { + "tier": "none", + "moduleVersion": "0.1.0-experimental", + "sourceSha256": null, + "reports": [], + "hardware": null, + "verifiedBy": null + }, + "tests": { + "report": "TESTING.md", + "summary": "Emulator only (digiemu, OS 1.44): unticked behaves like the stock OS; ticked, bank kits for immediate and queued changes, edits, kit save/reload; unticking restores each pattern's own kit; full check against stock passed. Not tried on hardware in this Modwerk build.", + "documentation": { + "tutorial": { + "title": "Quick tutorial: one kit for a whole bank", + "steps": [ + "Open SETTINGS, scroll to the bottom and tick KIT PER BANK.", + "Select A01 again, set up a bass sound, then go to A02 and program different notes: same sound.", + "On A02, open the filter page and turn the cutoff; go back to A01: the cutoff moved there too.", + "Press FUNC+YES on A02 to save the bank's kit; FUNC+NO on any pattern of bank A reloads it.", + "Untick KIT PER BANK and change pattern: A02 plays its own kit again." + ] + }, + "screenshots": [ + "media/settings-off.png", + "media/settings-on.png" + ], + "captureRecord": "media/capture.json" + } + }, + "license": { + "spdx": "GPL-3.0-or-later", + "file": "LICENSE", + "declaration": "Original work by ZOGV. The SETTINGS row follows digihealth's SYSTEM INFO row by irpina (GPL-2.0-or-later), with OS 1.44 addresses." + }, + "media": [ + { + "path": "media/thumbnail.svg", + "kind": "thumbnail", + "caption": "kitbank thumbnail", + "alt": "Two kit boxes, each feeding a row of sixteen pattern steps.", + "credit": "ZOGV", + "license": "GPL-3.0-or-later", + "source": "Original illustration" + }, + { + "path": "media/settings-off.png", + "kind": "screenshot", + "caption": "SETTINGS: KIT PER BANK unticked (power-on state)", + "alt": "SETTINGS menu on the Digitone LCD with the KIT PER BANK row unticked", + "credit": "Emulator documentation capture by ZOGV; Elektron interface; kitbank module", + "license": "LicenseRef-Digi-UI-Documentation", + "source": "original", + "capture": { + "type": "emulator", + "release": "1.44", + "moduleVersion": "0.1.0-experimental", + "imageSha256": "13c0595b442bc1c68d78069eea4ee451a917b26f9990c79753037de288762e04", + "setup": "Disposable first-boot project, network-denied sandbox; see media/capture.json." + } + }, + { + "path": "media/settings-on.png", + "kind": "screenshot", + "caption": "SETTINGS: KIT PER BANK ticked", + "alt": "SETTINGS menu on the Digitone LCD with the KIT PER BANK row ticked", + "credit": "Emulator documentation capture by ZOGV; Elektron interface; kitbank module", + "license": "LicenseRef-Digi-UI-Documentation", + "source": "original", + "capture": { + "type": "emulator", + "release": "1.44", + "moduleVersion": "0.1.0-experimental", + "imageSha256": "13c0595b442bc1c68d78069eea4ee451a917b26f9990c79753037de288762e04", + "setup": "Disposable first-boot project, network-denied sandbox; see media/capture.json." + } + } + ] +} diff --git a/sdk/digitone/modules/kitbank/src/kitbank.S b/sdk/digitone/modules/kitbank/src/kitbank.S new file mode 100644 index 0000000000..9c54182aec --- /dev/null +++ b/sdk/digitone/modules/kitbank/src/kitbank.S @@ -0,0 +1,213 @@ +| SPDX-License-Identifier: GPL-3.0-or-later +| kitbank: the 16 patterns of a bank play the kit of the bank's first pattern (A01..A16 -> A01's kit, +| B01..B16 -> B01's kit...), like the Octatrack's parts. A SETTINGS row, KIT PER BANK, turns it on; it is off +| at power-on, and a change applies at the next pattern change (the engine and the screen switch together). +| Digitone mk1 / Keys, OS 1.44 only. +| +| Every place the OS picks "kit k" for pattern k gets "kit k & 0x70" while the switch is latched on: +| set_pattern 0x40094f14 immediate pattern change -> the sound engine's kit pointer 0x4138f220 +| KitActive::getKit 0x4014df66 screen, edits, sound loads +| 0x40095f08, 0x40096236 a queued pattern change taking effect (playback, chains, song) +| 0x400278f0 / 0x40027d3a / 0x40029ada kit save, kit reload, sound reload, only when called from the +| pattern menus (return address 0x40027a00..0x4002a200), so the automatic saves after +| copy / paste / clear keep their own slot. +| Every pattern keeps its own kit in the project, untouched: switched off, each pattern plays its own kit again. +| Handlers touch only d0/d1/a0/a1 (free at a gcc m68k function entry) or save what they use. +| The SETTINGS row follows digihealth's SYSTEM INFO row (GPL-2.0-or-later), with OS 1.44 addresses. + + .equ PATS, 0x407fd414 | the 128 live patterns + .equ PSTRIDE, 0x1611d + .equ KITS, 0x41306294 | the 128 live kits + .equ KSTRIDE, 0x988 + .equ PAT_ACT, 0x4138f214 | active pattern + .equ KIT_ACT, 0x4138f220 | the sound engine's kit + .equ MENU_LO, 0x40027a00 + .equ MENU_HI, 0x4002a200 + .equ STR_CTOR, 0x4018afc8 | std::string(this, const char*, alloc&) + .equ INVALIDATE, 0x400e539e | View::invalidate(view) + .equ BLIT, 0x400de4c0 | blit(dst, src, x, y, centre) + .equ CHECKBOXES, 0x419ee988 | -> Bitmap[2], 0x1c each: empty, ticked + + .section .run, "ax" + +| ---- ev_settings: the KIT PER BANK row -------------------------------------------------------------- + .globl kb_settings +kb_settings: + pea kb_row + move.l 8(%sp), -(%sp) | the menu + jsr core_additem + addq.l #8, %sp + rts + +| label() -> std::string, returned through a0 +kb_label: + link %a6, #-4 + move.l %d2, -(%sp) + pea -1(%a6) + pea kb_str + move.l %a0, %d2 + move.l %a0, -(%sp) + jsr STR_CTOR + lea 12(%sp), %sp + move.l %d2, %d0 + move.l -8(%a6), %d2 + unlk %a6 + rts + +| select(payload, item): toggle, then redraw the menu +kb_select: + movea.l 4(%sp), %a0 + movea.l (%a0), %a0 + moveq #0, %d0 + tst.b kb_on + seq %d0 + andi.l #1, %d0 + move.b %d0, kb_on + lea 0x38(%a0), %a0 + move.l %a0, 4(%sp) + jmp INVALIDATE + +| change(payload, item, delta): RIGHT on, LEFT off +kb_change: + movea.l 4(%sp), %a0 + movea.l (%a0), %a0 + move.l 12(%sp), %d0 + beq.s 1f + sgt %d0 + andi.l #1, %d0 + move.b %d0, kb_on + lea 0x38(%a0), %a0 + move.l %a0, 4(%sp) + jmp INVALIDATE +1: rts + +| draw(payload, item, bmp, x, y): the checkbox +kb_draw: + moveq #0, %d0 + tst.b kb_on + beq.s 1f + moveq #0x1c, %d0 +1: add.l CHECKBOXES, %d0 + move.l 12(%sp), %d1 + move.l %d1, 4(%sp) + move.l %d0, 8(%sp) + move.l 16(%sp), %d1 + move.l %d1, 12(%sp) + move.l 20(%sp), %d1 + move.l %d1, 16(%sp) + clr.l 20(%sp) + jmp BLIT + +| ---- d0 = pattern pointer -> d0 = its bank kit pointer, or 0 when d0 is no live pattern (d1 destroyed) ---- +bankkit: + sub.l #PATS, %d0 + bcs.s 8f + cmp.l #PSTRIDE*128, %d0 + bcc.s 8f + move.l #PSTRIDE, %d1 + divu.l %d1, %d0 | pattern number + andi.l #0x70, %d0 | the bank's first pattern + mulu.w #KSTRIDE, %d0 + add.l #KITS, %d0 + rts +8: moveq #0, %d0 + rts + +| ---- set_pattern: latch the switch, then the bank's kit for the request --------------------------------- + .globl kb_setpat +kb_setpat: + move.b kb_on, %d0 + move.b %d0, kb_live + beq.s 1f + move.l 4(%sp), %d0 | pattern* + bsr.w bankkit + tst.l %d0 + beq.s 1f + move.l %d0, 8(%sp) | kit* +1: lea -24(%sp), %sp | the 8 stock bytes, replayed + movem.l %d2-%d4/%a2-%a4, (%sp) + jmp 0x40094f1c + +| ---- KitActive::getKit(this, index) --------------------------------------------------------------------- + .globl kb_getkit +kb_getkit: + tst.b kb_live + beq.s 2f + move.l 8(%sp), %d0 | index + cmp.l #128, %d0 + bcc.s 2f + andi.l #0x70, %d0 + move.l %d0, 8(%sp) +2: move.l %d2, -(%sp) | the 6 stock bytes, replayed + movea.l 8(%sp), %a0 + jmp 0x4014df6c + +| ---- a queued pattern change taking effect: fp = 0x4138f224 (the waiting kit), PAT_ACT already new ------- +qfix: + lea -8(%sp), %sp + movem.l %d0-%d1, (%sp) + move.b kb_on, %d0 + move.b %d0, kb_live + beq.s 3f + move.l PAT_ACT, %d0 + bsr.w bankkit + tst.l %d0 + beq.s 3f + move.l %d0, (%fp) +3: movem.l (%sp), %d0-%d1 + lea 8(%sp), %sp + rts + + .globl kb_qact1, kb_qact2 +kb_qact1: + bsr.w qfix + move.l (%fp), KIT_ACT | the 6 stock bytes, replayed + jmp 0x40095f0e +kb_qact2: + bsr.w qfix + move.l (%fp), KIT_ACT + jmp 0x4009623c + +| ---- kit save / kit reload / sound reload (project, flag, k...): k -> the bank's first pattern ---------- +| at the bsr: 0(sp) back here, 4(sp) the caller's return, 8 project, 12 flag, 16(sp) k +fixk: + tst.b kb_live + beq.s 9f + move.l 4(%sp), %d0 + cmp.l #MENU_LO, %d0 + bcs.s 9f + cmp.l #MENU_HI, %d0 + bcc.s 9f + move.l 16(%sp), %d0 + cmp.l #128, %d0 + bcc.s 9f + andi.l #0x70, %d0 + move.l %d0, 16(%sp) +9: rts + + .globl kb_save, kb_reload, kb_sndreload +kb_save: + bsr.w fixk + link.w %fp, #-28 | the 8 stock bytes, replayed + movem.l %d2-%d5/%a2-%a3, (%sp) + jmp 0x400278f8 +kb_reload: + bsr.w fixk + link.w %fp, #-32 + movem.l %d2-%d6/%a2-%a3, (%sp) + jmp 0x40027d42 +kb_sndreload: + bsr.w fixk + link.w %fp, #-60 + movem.l %d2-%d7/%a2-%a5, (%sp) + jmp 0x40029ae2 + +kb_row: .long kb_label, kb_select, kb_draw, kb_change +kb_str: .asciz "KIT PER BANK" + .balign 4 + + .section .bss + .balign 4 +kb_on: .skip 1 | the SETTINGS switch, off at power-on +kb_live: .skip 1 | the switch as of the last pattern change + .skip 2 From 21b231c4506ee20850187e36b273a3112db93904 Mon Sep 17 00:00:00 2001 From: STEPHEN <277114827+ZOGV@users.noreply.github.com> Date: Thu, 12 Nov 2026 19:14:30 +0100 Subject: [PATCH 004/415] digitone/kitbank: full emulator check against stock recorded Co-Authored-By: Claude Opus 5.5 --- sdk/digitone/modules/kitbank/TESTING.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sdk/digitone/modules/kitbank/TESTING.md b/sdk/digitone/modules/kitbank/TESTING.md index 29db61962c..e786a43c89 100644 --- a/sdk/digitone/modules/kitbank/TESTING.md +++ b/sdk/digitone/modules/kitbank/TESTING.md @@ -20,7 +20,10 @@ Scripts kept with the author's notes (`re/test_kitbank.py`, `re/test_kitbank_sav ## Full check against stock -`python -m emu.portable --check --baseline --timing`: see the result recorded below. +`python -m emu.portable --check --baseline --timing` (switch at its power-on state, unticked): **PASS**. +10 of 10 screens identical to stock (start, TRIG/SYN1/SYN2/FLTR/AMP/LFO pages, trig, playing, stopped), **audio identical +to stock over 8.3 s**, audio render margin 40.5 % and CPU busy 58 % as stock. The stock reference itself is marked FAIL by +this emulator for a known read at `0x12a`, unrelated to the module. ## Memory From 50ca8bf7b0a89c78cd8bb03f5e4ef45a2b3a6bee Mon Sep 17 00:00:00 2001 From: STEPHEN <277114827+ZOGV@users.noreply.github.com> Date: Thu, 12 Nov 2026 20:27:30 +0100 Subject: [PATCH 005/415] digitone/kitbank 0.2.0-experimental: per-pattern lock (PTN+YES), switch and locks saved in the project, pastes never overwrite the bank Co-Authored-By: Claude Opus 5.5 --- sdk/digitone/modules/kitbank/README.md | 64 ++-- sdk/digitone/modules/kitbank/TESTING.md | 32 +- sdk/digitone/modules/kitbank/build.json | 29 +- .../modules/kitbank/media/capture-plan.txt | 14 + .../modules/kitbank/media/capture.json | 99 +++++- .../modules/kitbank/media/kit-locked.png | Bin 0 -> 2367 bytes .../modules/kitbank/modwerk.module.json | 102 ++++--- sdk/digitone/modules/kitbank/src/kitbank.S | 282 +++++++++++++++++- 8 files changed, 514 insertions(+), 108 deletions(-) create mode 100644 sdk/digitone/modules/kitbank/media/kit-locked.png diff --git a/sdk/digitone/modules/kitbank/README.md b/sdk/digitone/modules/kitbank/README.md index 8d39566ea8..5da40aac96 100644 --- a/sdk/digitone/modules/kitbank/README.md +++ b/sdk/digitone/modules/kitbank/README.md @@ -1,23 +1,25 @@ # kitbank — Digitone -Modwerk module version: `0.1.0-experimental`. +Modwerk module version: `0.2.0-experimental`. ## Overview -kitbank gives the original Digitone and Digitone Keys (OS 1.44) one kit per bank, like the Octatrack's parts. With **KIT PER BANK** ticked in SETTINGS, the 16 patterns of a bank play the kit of the bank's first pattern: A01 to A16 play A01's kit, B01 to B16 play B01's kit, and so on up to H. +kitbank gives the original Digitone and Digitone Keys (OS 1.44) one kit per bank, like the Octatrack's parts, with per-pattern locks. With **KIT PER BANK** ticked in SETTINGS, the 16 patterns of a bank play the kit of the bank's first pattern: A01 to A16 play A01's kit, B01 to B16 play B01's kit, and so on up to H. -- Change pattern inside a bank: the sounds stay, only the notes change. -- A sound edit made on any pattern of the bank goes to the bank's kit and is heard on all 16 patterns. -- Queued pattern changes during playback and chains take the bank's kit too. -- FUNC+YES / FUNC+NO, SAVE TO PROJ / RELOAD FROM PROJ and [T1–4]+[NO] act on the bank's kit from any pattern of the bank. -- Nothing is rewritten in the project. Every pattern keeps its own kit, untouched; untick KIT PER BANK and each pattern plays its own kit again. A project saved this way opens normally on the stock OS. -- Off at power-on, so existing projects sound as before until you tick it. +- Change pattern inside a bank: the sounds stay, only the notes change. This holds for queued changes during playback, chains and song mode. +- A sound edit on any pattern of the bank goes to the bank's kit and is heard on all its patterns. +- **Hold PTN and press YES** to lock the active pattern: it takes a copy of the bank's sound and keeps its own from then on (KIT LOCKED). PTN+YES again shares the bank's kit again (KIT SHARED). +- FUNC+YES / FUNC+NO, SAVE TO PROJ / RELOAD FROM PROJ and [T1–4]+[NO] act on the kit the pattern plays. +- A pasted pattern never overwrites its bank's sound: if the pasted sound differs, the pattern becomes locked with it. +- The switch and the locks are saved with the project. Existing projects, and any project saved without kitbank, open with the switch off and play exactly as on the stock OS. +- Nothing is rewritten in the project: every pattern keeps its own kit, so unticking gives each pattern its own sound again, and a project saved with kitbank still opens on the stock OS. ## Controls | Control | What it does | | --- | --- | -| KIT PER BANK | SETTINGS, last row. Ticked: the patterns of each bank share the kit of the bank's first pattern. Unticked: every pattern plays its own kit, as on the stock OS. Off at power-on and not saved with the project; a change applies from the next pattern change. | +| KIT PER BANK | SETTINGS, last row. Ticked: the patterns of each bank share the kit of the bank's first pattern, except locked patterns. Unticked: every pattern plays its own kit, as on the stock OS. Saved with the project; a change applies from the next pattern change. | +| PTN+YES | While KIT PER BANK is ticked: locks the active pattern to its own copy of the sound (KIT LOCKED) or shares it again (KIT SHARED). On a bank's first pattern it only shows BANK KIT. Unticked, it does what the stock OS does: nothing. | ## Usage @@ -25,43 +27,39 @@ Use the access steps below after installing a compatible build. The tutorial giv ### Where to find it -Location: SETTINGS, last row: KIT PER BANK. +Location: SETTINGS, last row: KIT PER BANK; lock: hold PTN, press YES. -1. Press SETTINGS and scroll to the last row, KIT PER BANK. -2. Press YES (or RIGHT) to tick it; YES (or LEFT) unticks it. -3. Change pattern, or select the current pattern again: the setting applies from that pattern change. +1. Press SETTINGS and scroll to the last row, KIT PER BANK; press YES to tick it (YES again unticks it). +2. Change pattern, or select the current pattern again: the setting applies from that pattern change. +3. To give the active pattern its own sound, hold PTN and press YES: KIT LOCKED. Hold PTN and press YES again: KIT SHARED. These instructions assume the module is already installed in a compatible build. For selecting and building it in Modwerk, see the [Digitone guide](../../../machines/digitone/README.md). -### Quick tutorial: one kit for a whole bank +### Quick tutorial: one kit for a whole bank, one pattern apart -1. Open SETTINGS, scroll to the bottom and tick KIT PER BANK. -2. Select A01 again, set up a bass sound, then go to A02 and program different notes: same sound. -3. On A02, open the filter page and turn the cutoff; go back to A01: the cutoff moved there too. -4. Press FUNC+YES on A02 to save the bank's kit; FUNC+NO on any pattern of bank A reloads it. -5. Untick KIT PER BANK and change pattern: A02 plays its own kit again. +1. Open SETTINGS, scroll to the bottom and tick KIT PER BANK, then select A01 again. +2. Set up a bass sound on A01, then go to A02 and program different notes: same sound. Turn the filter on A02; A01 changes too. +3. Go to A03, hold PTN and press YES: KIT LOCKED. Change the sound of A03; A01 and A02 keep theirs. +4. Save the project: KIT PER BANK and the lock are saved with it. Hold PTN and press YES on A03 again to share the bank's kit. -A practical layout: one bank per track (intro, verse, break... as 16 patterns sharing one set of sounds), eight tracks per project. +A practical layout: one bank per track (intro, verse, break... as 16 patterns sharing one set of sounds), eight tracks per project, and a lock for the odd pattern that needs a different sound. ## Compatibility and limitations - Original Digitone (Mk1) and Digitone Keys, OS 1.44, with core-dn1 2.0a for 1.44. Not ported to OS 1.43. The Keys runs the same OS file but has not been tried. -- The switch is off at power-on and is not saved with the project: core-dn1 2.0a for 1.44 has no project data. It can move to `core_projdata` when a 1.44 core provides it. -- kitbank patches seven stock OS sites itself (immediate pattern change, the kit lookup used by the screen and edits, two queued-change sites, kit save, kit reload, sound reload). The three save/reload sites are redirected only when called from the pattern menus, so the automatic saves after copy, paste and clear keep each pattern's own slot. A mod that patches the same bytes cannot be combined; if other mods need kit selection, these sites should become a core hook. -- While ticked, pasting a pattern into a bank's first pattern (A01, B01...) replaces the bank's kit with the copied pattern's own kit, because the stock OS replaces that pattern's kit. -- Toggling applies at the next pattern change, so the screen and the sound engine always switch together. -- Song mode was not tried. Queued changes during playback were. +- The switch and the locks live in the project header: an elekloader-format `ELKP` block tagged `KBLK`, in the bytes 0x1c..0x200 the stock OS keeps as they are. kitbank writes it with its own project save hook, because core-dn1 2.0a for 1.44 has no project data; it leaves the area alone when another tool's data is already there. It can move to `core_projdata` when a 1.44 core provides it. +- kitbank patches ten stock OS sites itself: immediate pattern change, the kit lookup used by the screen, edits and pastes, two queued-change sites, kit save, kit reload, sound reload (these three only when called from the pattern menus, so the automatic saves after copy, paste and clear keep each pattern's own slot), and project save, load and new. A mod patching the same bytes cannot be combined; if other mods need kit selection or project data, these sites should become core hooks. +- A pattern pasted into a bank's first pattern replaces the bank's kit, as the stock OS replaces that pattern's kit. +- Undo of a paste was not tried. ## Tests and measurements -The Modwerk evidence tier is `none`. [TESTING.md](TESTING.md) records the emulator runs: stock behaviour when unticked, bank kits for immediate and queued pattern changes, edits, kit save and reload, unticking, and a full check against the stock OS. Memory: 552 B (548 B code, 4 B state), excluding the core. No audio-rate work. - -The same redirections were first built as a standalone patch of the author's own unit (OS 1.44, always on) and run there; that build is not a Modwerk build and is not part of this module's evidence. +The Modwerk evidence tier is `none`. [TESTING.md](TESTING.md) records the emulator runs: stock behaviour when unticked, bank kits for immediate and queued pattern changes and song mode, edits, kit save and reload, PTN+YES locks, pastes, the switch and locks through a project save and load, and a full check against the stock OS. Memory: 1,308 B (1,280 B code, 28 B state), excluding the core. No audio-rate work. ## Authorship and licences - ZOGV — kitbank design and code -- irpina — the SETTINGS row pattern from digihealth (GPL-2.0-or-later), and the elekloader core it links with +- irpina — the SETTINGS row pattern from digihealth (GPL-2.0-or-later), the elekloader core it links with, and the ELKP project-header format The module is licensed under [GPL-3.0-or-later](LICENSE). @@ -69,10 +67,14 @@ The module is licensed under [GPL-3.0-or-later](LICENSE). Firmware-rendered emulator captures on OS 1.44. The [capture record](media/capture.json) includes build identities, panel inputs, timestamps and PNG hashes; it also records that they were taken with a digiemu revision other than the reviewed one. [Capture rights](media/LICENSE.md) preserve the underlying interface rights. The [thumbnail](media/thumbnail.svg) is an illustration. No audio demonstration is claimed. -![SETTINGS: KIT PER BANK unticked (power-on state)](media/settings-off.png) +![SETTINGS: KIT PER BANK unticked](media/settings-off.png) -SETTINGS: KIT PER BANK unticked (power-on state). +SETTINGS: KIT PER BANK unticked. ![SETTINGS: KIT PER BANK ticked](media/settings-on.png) SETTINGS: KIT PER BANK ticked. + +![PTN+YES on A03: KIT LOCKED](media/kit-locked.png) + +PTN+YES on A03: KIT LOCKED. diff --git a/sdk/digitone/modules/kitbank/TESTING.md b/sdk/digitone/modules/kitbank/TESTING.md index e786a43c89..d4b4fe8fec 100644 --- a/sdk/digitone/modules/kitbank/TESTING.md +++ b/sdk/digitone/modules/kitbank/TESTING.md @@ -2,33 +2,35 @@ ## In Modwerk -No hardware qualification is claimed for this Modwerk build. Evidence tier: `none`. All runs below are in the digiemu emulator (revision `f57c2f237e84b8ff91bc3adb2a2931bccf9928e9`, not the reviewed `c1b5735…`, see [capture.json](media/capture.json)), on a local image linked with `node scripts/link-image.mjs --version XX01` from the stock OS 1.44 file (`d4f200d0…`), core-dn1 2.0a for 1.44 and this module. Built-image SHA-256: `13c0595b442bc1c68d78069eea4ee451a917b26f9990c79753037de288762e04`. Firmware and derived images stay private. +No hardware qualification is claimed for this Modwerk build. Evidence tier: `none`. All runs below are in the digiemu emulator (revision `f57c2f237e84b8ff91bc3adb2a2931bccf9928e9`, not the reviewed `c1b5735…`, see [capture.json](media/capture.json)), on a local image linked with `node scripts/link-image.mjs --version XX05` from the stock OS 1.44 file (`d4f200d0…`), core-dn1 2.0a for 1.44 and this module (0.2.0-experimental). Built-image SHA-256: `fd4cf27d419295343c53893501ee01ee513a57ccb9e7dae533be974f5694fd2b`. Firmware and derived images stay private. ## Behaviour (emulator, real panel inputs) -Scripts kept with the author's notes (`re/test_kitbank.py`, `re/test_kitbank_save.py`); they read the live pattern and kit pointers (`0x4138f214`, `0x4138f220`) and the 128 live kits, and drive the unit only through panel keys and encoders. +The scripts read the live pattern and engine kit pointers (`0x4138f214`, `0x4138f220`) and the 128 live kits, and drive the unit only through panel keys and encoders. The same redirections were first built as a standalone always-on patch and run on the author's own unit; that build is not a Modwerk build and is not part of this evidence. | Run | Result | | --- | --- | -| Unticked (power-on): A02, A16, B01, B05, H16, an edit on A03, queued changes while playing | PASS: every pattern plays and edits its own kit, as the stock OS does | -| Ticked (SETTINGS, last row, YES): A01, A02, A16 → kit A01; B01, B05 → kit B01; H16 → kit H01 | PASS | -| Ticked: filter edit on A03 changes only kit A01, and A01 shows it | PASS | -| Ticked, playing: queued changes A01→A02, →B01, →B02, →A01 each take the bank's kit | PASS | -| Ticked then unticked: A02 plays its own kit again, A01 its own | PASS | -| Ticked, project saved: on A02 edit, FUNC+YES, edit, FUNC+NO → kit A01 back to the saved state; FUNC+NO on A01 → the same; A02's own kit never touched | PASS | -| Playback with pattern changes | no halt, audio present | +| Unticked (power-on, stock project): A02, A16, B01, B05, H16, an edit on A03, queued changes while playing | PASS: every pattern plays and edits its own kit, as on the stock OS | +| Ticked: A01, A02, A16 → kit A01; B01, B05 → kit B01; H16 → kit H01; an edit on A03 changes only kit A01 | PASS | +| Ticked, playing: queued changes A01→A02, →B01, →B02, →A01 each take the bank's kit; unticked again, A02 plays its own kit | PASS | +| Ticked, project saved: FUNC+YES on A02, edit, FUNC+NO → kit A01 back to the saved state; FUNC+NO on A01 → the same | PASS | +| PTN+YES on A03: its kit becomes a copy of A01's, the engine moves to it (KIT LOCKED); an edit on A03 leaves A01 untouched; A02 still plays A01's kit | PASS | +| Project saved as 002; project 001 (no KBLK block) loaded → switch off, A02 plays its own kit; 002 loaded again → switch on, A03 still locked with its edited sound | PASS | +| PTN+YES on A03 again → shared (KIT SHARED); on A01 → BANK KIT, nothing locked; PTN+NO → nothing | PASS | +| Paste A05 (shared) → A06: bank kit untouched, A06 shares it; paste A05 → A01: bank kit unchanged | PASS | +| Paste A03 (locked, edited) → A07: bank kit untouched, A07 locked with A03's sound; paste B02 → A08: bank A untouched, A08 locked with B01's sound | PASS | +| Clear A06: bank kit unchanged, A06 still shares it | PASS | +| Song mode, song A01 → A02 → B01 looping twice: (pattern, kit) = (A01, A01) (A02, A01) (B01, B01); with A02 locked: (A02, A02) | PASS | +| Every run: no halt | PASS | ## Full check against stock -`python -m emu.portable --check --baseline --timing` (switch at its power-on state, unticked): **PASS**. -10 of 10 screens identical to stock (start, TRIG/SYN1/SYN2/FLTR/AMP/LFO pages, trig, playing, stopped), **audio identical -to stock over 8.3 s**, audio render margin 40.5 % and CPU busy 58 % as stock. The stock reference itself is marked FAIL by -this emulator for a known read at `0x12a`, unrelated to the module. +`python -m emu.portable --check --baseline --timing` (switch at its default, unticked): result recorded below when the run ends. ## Memory -Object sizes: 548 B `.run`, 4 B `.bss`: **552 B**, excluding the core and linker alignment. No audio-rate code. +Object sizes: 1,280 B `.run`, 28 B `.bss`: **1,308 B**, excluding the core and linker alignment. No audio-rate code. ## Not tested -Hardware with this Modwerk build; song mode; copy, paste and clear of patterns while ticked; OS 1.43. +Hardware with this Modwerk build; undo of a paste; chains built with PTN+trigs while playing (queued changes were); OS 1.43. diff --git a/sdk/digitone/modules/kitbank/build.json b/sdk/digitone/modules/kitbank/build.json index 474ef95520..bbecea55bb 100644 --- a/sdk/digitone/modules/kitbank/build.json +++ b/sdk/digitone/modules/kitbank/build.json @@ -11,6 +11,11 @@ "event": "ev_settings", "fn": "kb_settings", "order": 50 + }, + { + "event": "ev_key", + "fn": "kb_key", + "order": 50 } ], "contribute": [], @@ -18,7 +23,8 @@ "copied": [], "regions": [], "claims": [ - "settings:KIT PER BANK" + "settings:KIT PER BANK", + "projdata:KBLK" ], "requires": [], "derive": null, @@ -75,6 +81,27 @@ "stockSha256": "f7fddeefeac300af619b7028a954dc595076d9d098da7090973c1cbc1f649ec0", "op": "jmp", "target": "kb_sndreload" + }, + { + "addr": "0x4000eb10", + "len": 8, + "stockSha256": "52dccc03e103dca3839c839017cffce1d4a1e675d8dfb2804764141e86c63841", + "op": "jmp", + "target": "kb_projsave" + }, + { + "addr": "0x4000e7f4", + "len": 8, + "stockSha256": "3e47fdc2a5af6492a822beaa4ccd4bb53d5f5b2111c689c9f6f1cca2a3df15e2", + "op": "jmp", + "target": "kb_projload" + }, + { + "addr": "0x4001570e", + "len": 8, + "stockSha256": "a04973fb79ed0896aa768e97902a85f61a10ad9d106955b3fe7a112c76d0e51f", + "op": "jmp", + "target": "kb_projnew" } ] } diff --git a/sdk/digitone/modules/kitbank/media/capture-plan.txt b/sdk/digitone/modules/kitbank/media/capture-plan.txt index 2abf84f4e2..a8cbea92d5 100644 --- a/sdk/digitone/modules/kitbank/media/capture-plan.txt +++ b/sdk/digitone/modules/kitbank/media/capture-plan.txt @@ -15,3 +15,17 @@ tap DOWN snap settings-off tap YES snap settings-on +tap NO +tap NO +press PTN +tap 1 +release PTN +wait 700 +press PTN +tap 3 +release PTN +wait 700 +press PTN +tap YES 80 200 +snap kit-locked +release PTN diff --git a/sdk/digitone/modules/kitbank/media/capture.json b/sdk/digitone/modules/kitbank/media/capture.json index 9f752d54bb..9b064b8427 100644 --- a/sdk/digitone/modules/kitbank/media/capture.json +++ b/sdk/digitone/modules/kitbank/media/capture.json @@ -2,13 +2,13 @@ "schemaVersion": 1, "machine": "digitone", "moduleId": "kitbank", - "moduleVersion": "0.1.0-experimental", + "moduleVersion": "0.2.0-experimental", "capturedAt": "2026-11-12", "firmware": "1.44", - "imageSha256": "13c0595b442bc1c68d78069eea4ee451a917b26f9990c79753037de288762e04", + "imageSha256": "fd4cf27d419295343c53893501ee01ee513a57ccb9e7dae533be974f5694fd2b", "stockSha256": "d4f200d04484333d82822db7744e6484d0def8f2db8ddf55ee2b780cc13c9659", "build": { - "tool": "node scripts/link-image.mjs --version XX01", + "tool": "node scripts/link-image.mjs --version XX05", "modules": [ { "id": "core", @@ -17,11 +17,11 @@ }, { "id": "kitbank", - "version": "0.1.0-experimental", + "version": "0.2.0-experimental", "source": "sdk/digitone/modules/kitbank (this folder)" } ], - "outputVersion": "XX01" + "outputVersion": "XX05" }, "emulator": { "repository": "https://github.com/irpina/digiemu", @@ -59,7 +59,7 @@ "release 16" ], [ - 1800.053, + 1800.052, "press 16" ], [ @@ -83,7 +83,7 @@ "release 16" ], [ - 3000.087, + 3000.088, "press 16" ], [ @@ -99,7 +99,7 @@ "release 16" ], [ - 3800.111, + 3800.11, "press 16" ], [ @@ -111,7 +111,7 @@ "press 16" ], [ - 4300.126, + 4300.125, "release 16" ], [ @@ -153,25 +153,96 @@ [ 6300.183, "release 13" + ], + [ + 6600.193, + "press 14" + ], + [ + 6700.195, + "release 14" + ], + [ + 7000.204, + "press 14" + ], + [ + 7100.206, + "release 14" + ], + [ + 7400.215, + "press 4" + ], + [ + 7500.218, + "press 26" + ], + [ + 7600.222, + "release 26" + ], + [ + 7900.23, + "release 4" + ], + [ + 8700.253, + "press 4" + ], + [ + 8800.256, + "press 28" + ], + [ + 8900.259, + "release 28" + ], + [ + 9200.268, + "release 4" + ], + [ + 10000.291, + "press 4" + ], + [ + 10100.294, + "press 13" + ], + [ + 10180.768, + "release 13" + ], + [ + 10380.768, + "release 4" ] ], "captures": [ { "path": "media/settings-off.png", "sha256": "546fd24aafd699b3d5ac20b25bd47477ca99b7688ca79917bcd2894b452c8444", - "plan": "wait 1000\ntap GLOBAL\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\nsnap settings-off\ntap YES\nsnap settings-on\n", + "plan": "wait 1000\ntap GLOBAL\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\nsnap settings-off\ntap YES\nsnap settings-on\ntap NO\ntap NO\npress PTN\ntap 1\nrelease PTN\nwait 700\npress PTN\ntap 3\nrelease PTN\nwait 700\npress PTN\ntap YES 80 200\nsnap kit-locked\nrelease PTN\n", "atMs": 6200.180769230769, "requestedAtMs": 6200.180769230769 }, { "path": "media/settings-on.png", "sha256": "cece0825ac5c705eaba1c122acf9f2ab2bfd379f89ab4554c1440fe1de53475b", - "plan": "wait 1000\ntap GLOBAL\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\nsnap settings-off\ntap YES\nsnap settings-on\n", - "atMs": 6600.19188034188, - "requestedAtMs": 6600.19188034188 + "plan": "wait 1000\ntap GLOBAL\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\nsnap settings-off\ntap YES\nsnap settings-on\ntap NO\ntap NO\npress PTN\ntap 1\nrelease PTN\nwait 700\npress PTN\ntap 3\nrelease PTN\nwait 700\npress PTN\ntap YES 80 200\nsnap kit-locked\nrelease PTN\n", + "atMs": 6600.192521367521, + "requestedAtMs": 6600.192521367521 + }, + { + "path": "media/kit-locked.png", + "sha256": "dd7ceebbff05030a5642588ab7e0e39db307397f7e3f557748a669e023df8065", + "plan": "wait 1000\ntap GLOBAL\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\nsnap settings-off\ntap YES\nsnap settings-on\ntap NO\ntap NO\npress PTN\ntap 1\nrelease PTN\nwait 700\npress PTN\ntap 3\nrelease PTN\nwait 700\npress PTN\ntap YES 80 200\nsnap kit-locked\nrelease PTN\n", + "atMs": 10168.623717948718, + "requestedAtMs": 10380.767735042735 } ], "limitations": [ - "UI-only documentation of the SETTINGS row; the kit behaviour is covered by the emulator tests in TESTING.md." + "UI documentation of the SETTINGS row and of the KIT LOCKED message (PTN still held, hence the A?? in the corner); the kit behaviour is covered by the emulator tests in TESTING.md." ] } diff --git a/sdk/digitone/modules/kitbank/media/kit-locked.png b/sdk/digitone/modules/kitbank/media/kit-locked.png new file mode 100644 index 0000000000000000000000000000000000000000..12baa6aa4f9b1c332034f6dac03e57d365b279fd GIT binary patch literal 2367 zcmZvd2~bm46oyZL1S2Ag1rcab6dk1~4jPC?lGq@NvIt063?NZNA{eDez>>Vm=-`4# zWs{;(tynQ2BFnI3aRD+Y6s98xK|oP(PzWIcVk7j?sV(W_pEGano%`K)&pG#;_s;lu zx#}-8UkCvD?rscU0Bv-LLl&SUX z^nCBbPdj#R`LTv~Ae=tl+bfvL$&;k3mylPVx=BO;{xeHr0jrEXHM5ZwOU}fB7W`*p z_Q(cf<)j?C6pshfw9g3!-dzeBG$#AuP)Fw2ZGw+-i?6lFMjoOc0Wh3n7o%a=BEQybq=ED{@R7g8SF>?y%1K|U_Pfy! zWgZ7@kjoO(RgCft3a;y$ugJkKFWc0dau2f($WqvEiFy~$f&#_ zGrDPj%uNl2Kx2H-NK;96@2A8HCp>`87XzSWPIqh_FoCDGkjn)7yAU3V>wA+ZICQ@= zkKI$T=kDj?%W1cRR1^Hdh@KG@x>-|*F8F7@Ur%sQHArd;D;!CRT_K}wiD-5;)wd7A zQuv~2a~v`bVspU;sRboW6G3M@W7=z91OuTqy5@lLGQmN)NcJIuGEhAx=uvh zhrvMlJi;la^$%b)JPm%xdsycXdpJSrpR zDcpL9T+gX5-g5BK8rV6ADHHU)3w{t=53sguz#dUbq>U6lm`Y0>>(_`Ao#4XB$V6mi zBCy&2??*jo$ljP%;dBT0x{|&!Jvv%od(6}8x3nHt&t{1M_LTQADFYXlZD@Cp7lgS` z?<0y`AR3gPNFZI?iiJx}q>2i9}u3JjgA5GW+<@82~N}1-( z)AgoTqg`x=J%KHE7MMueLaa4noISd4BP2Wsp%(t#%>Q(CynTz6pAHxS0}OFA9mtr9 zDCUn|nuCl*-X1rNP(+DbPrYSP^_kP%m@uRc5b0rmr?sQIs9Rn)-K5Bye9b0cFlf=` zZeM#X@xDUKFtK||EpuojJ1xdyTsx#j>x!h)Q7bh+etn8CkC-<5N!Jurw~v$2X@>L^ zCx%4Fz8(_G{AUY}QHVJb9Bkn6deE+#8qfX9Sky!1n{Y8pX8( zUGtRMaQptv$dK<<>e$&G!|GhNfjK8#!rwE{#F?j^-s8D^i}F`5J(cy`>Y2<~zEP-} zSG05@OWlIG2k9HIb}`i*?aG#A;f*9kY)Tmj4;QWW$CfiiyDy&=rrB-g_{(6#K$Qu+(+U%HrO z2@m$xS9)VI1_g_yC3YEAYdBlqnnN{yn_p8z=n(;HCpg*FrrZmbh``uS#2jYYMT2*S8ENN&CFb<`%lq7m@8m=U$4%@m-ZQHN{C8 zHb+GUX+x|<9b!La|M_c2)JMaW0&!q+^LKHWiv)NnmIqxkv7|P)Hmh-YRdNvRY6@_l^w;NDoj3 zTa=G A01's kit, -| B01..B16 -> B01's kit...), like the Octatrack's parts. A SETTINGS row, KIT PER BANK, turns it on; it is off -| at power-on, and a change applies at the next pattern change (the engine and the screen switch together). +| B01..B16 -> B01's kit...), like the Octatrack's parts. A SETTINGS row, KIT PER BANK, turns it on for the +| project; a change applies at the next pattern change (the engine and the screen switch together). +| [PTN]+[YES] on a pattern LOCKS it: it takes a copy of the bank's kit and keeps its own sound from then on; +| [PTN]+[YES] again shares the bank's kit again. The switch and the 128 locks are saved in the project header +| (an elekloader-format ELKP block tagged KBLK, in the bytes 0x1c..0x200 the OS keeps as they are); a project +| without the block opens with the switch off and no lock, so every pattern plays its own kit as on the stock OS. | Digitone mk1 / Keys, OS 1.44 only. | | Every place the OS picks "kit k" for pattern k gets "kit k & 0x70" while the switch is latched on: | set_pattern 0x40094f14 immediate pattern change -> the sound engine's kit pointer 0x4138f220 | KitActive::getKit 0x4014df66 screen, edits, sound loads | 0x40095f08, 0x40096236 a queued pattern change taking effect (playback, chains, song) +| 0x4000eb10 / 0x4000e7f4 / 0x4001570e project save / load / new: the KBLK block | 0x400278f0 / 0x40027d3a / 0x40029ada kit save, kit reload, sound reload, only when called from the | pattern menus (return address 0x40027a00..0x4002a200), so the automatic saves after | copy / paste / clear keep their own slot. @@ -27,6 +32,18 @@ .equ INVALIDATE, 0x400e539e | View::invalidate(view) .equ BLIT, 0x400de4c0 | blit(dst, src, x, y, centre) .equ CHECKBOXES, 0x419ee988 | -> Bitmap[2], 0x1c each: empty, ticked + .equ GET_UI, 0x4014a060 | -> the UI (for messages) + .equ SHOW_MSG, 0x400ae25c | (ui, text): the short message in the top bar + .equ KA_LOAD, 0x4001da46 | KitActive::load(this, index, 1, 0): the tracks take kit index + .equ PROJ_PTR, 0x419f0de0 | -> the project; KitActive = project + 0x250 + .equ KEY_PTN, 4 + .equ PASTE_WRITE, 0x40028146 | return address of the paste routine's getKit before writing the kit + .equ PASTE_KIT, 0x16121 | the kit inside the clipboard + .equ KEY_YES, 13 + .equ GAP, 0x1c | project header bytes the OS keeps: elekloader's ELKP area + .equ ELKP, 0x454c4b50 + .equ KBLK, 0x4b424c4b + .equ BLK_SIZE, 20 | kb_on (4) + 128 lock bits (16) .section .run, "ax" @@ -106,7 +123,7 @@ bankkit: bcc.s 8f move.l #PSTRIDE, %d1 divu.l %d1, %d0 | pattern number - andi.l #0x70, %d0 | the bank's first pattern + bsr.w resolve | the bank's first pattern, or itself when locked mulu.w #KSTRIDE, %d0 add.l #KITS, %d0 rts @@ -136,11 +153,72 @@ kb_getkit: move.l 8(%sp), %d0 | index cmp.l #128, %d0 bcc.s 2f - andi.l #0x70, %d0 + move.l (%sp), %d1 + cmp.l #PASTE_WRITE, %d1 + beq.s 3f + bsr.w resolve move.l %d0, 8(%sp) 2: move.l %d2, -(%sp) | the 6 stock bytes, replayed movea.l 8(%sp), %a0 jmp 0x4014df6c +3: bsr.w pastefix | pasting: the pattern's own slot, locked when the sound differs + bra.s 2b + +| ---- a pattern paste writes the clipboard's kit into getKit(k) (caller 0x40028146; the clipboard's kit is at +| *(fp-16) + 0x16121, fp being the paste routine's frame). Into a bank's first pattern it replaces the bank's +| kit, as the stock OS replaces that pattern's kit. Into another pattern it goes to the pattern's own slot, which +| is left as it is in 8(sp), and the pattern is locked when the pasted kit differs from the bank's kit, shared +| when it is the same: the bank's kit is never overwritten from another pattern. +pastefix: + move.l %d0, %d1 + andi.l #15, %d1 + beq.w 9f | a bank's first pattern: its slot is the bank's kit + lea -16(%sp), %sp + movem.l %d2-%d3/%a2-%a3, (%sp) + move.l %d0, %d3 | d3 = k, kept to the end + movea.l -16(%fp), %a2 + adda.l #PASTE_KIT, %a2 | the clipboard's kit + andi.l #0x70, %d0 + mulu.w #KSTRIDE, %d0 + add.l #KITS, %d0 + movea.l %d0, %a3 | the bank's kit + move.l #KSTRIDE/4, %d1 +1: move.l (%a2)+, %d0 + cmp.l (%a3)+, %d0 + bne.s 2f + subq.l #1, %d1 + bne.s 1b + moveq #0, %d1 | the same sound: shared + bra.s 3f +2: moveq #1, %d1 | another sound: locked +3: move.l %d3, %d0 + lsr.l #3, %d0 + lea kb_locks, %a2 + adda.l %d0, %a2 | a2 = the byte + move.l %d3, %d0 + andi.l #7, %d0 | d0 = the bit + moveq #0, %d2 + move.b (%a2), %d2 + bclr %d0, %d2 + tst.l %d1 + beq.s 4f + bset %d0, %d2 +4: move.b %d2, (%a2) + move.l PAT_ACT, %d0 | pasting into the active pattern: the engine follows its kit now + sub.l #PATS, %d0 + bcs.s 5f + move.l #PSTRIDE, %d1 + divu.l %d1, %d0 + cmp.l %d3, %d0 + bne.s 5f + bsr.w resolve + mulu.w #KSTRIDE, %d0 + add.l #KITS, %d0 + move.l %d0, KIT_ACT +5: move.l %d3, %d0 | k again for the caller + movem.l (%sp), %d2-%d3/%a2-%a3 + lea 16(%sp), %sp +9: rts | ---- a queued pattern change taking effect: fp = 0x4138f224 (the waiting kit), PAT_ACT already new ------- qfix: @@ -181,7 +259,7 @@ fixk: move.l 16(%sp), %d0 cmp.l #128, %d0 bcc.s 9f - andi.l #0x70, %d0 + bsr.w resolve move.l %d0, 16(%sp) 9: rts @@ -202,12 +280,200 @@ kb_sndreload: movem.l %d2-%d7/%a2-%a5, (%sp) jmp 0x40029ae2 + +| ---- resolve: d0 = pattern 0..127 -> the kit index it plays while on (d1 destroyed) ---------------------- +resolve: + move.l %a0, -(%sp) + move.l %d0, %d1 + lsr.l #3, %d1 + lea kb_locks, %a0 + move.b (%a0,%d1.l), %d1 + movea.l (%sp)+, %a0 + move.l %d0, -(%sp) + andi.l #7, %d0 + btst %d0, %d1 + bne.s 1f + move.l (%sp)+, %d0 + andi.l #0x70, %d0 | shared: the bank's first pattern + rts +1: move.l (%sp)+, %d0 | locked: its own kit + rts + +| ---- ev_key(brain, ev): [PTN]+[YES] locks or shares the active pattern while on ------------------------------- +| ev+12 key code, ev+16 flags (bit 0 press, bit 1 FUNC held, bit 3 a held key's repeat). PTN presses and releases +| go to the OS as usual (they only track whether PTN is held); a YES press while PTN is held is taken. On the stock +| OS, YES does nothing while PTN is held. + .globl kb_key +kb_key: + movea.l 8(%sp), %a0 + move.l 12(%a0), %d1 | key code + move.l 16(%a0), %d0 | flags + moveq #KEY_PTN, %d1 + cmp.l 12(%a0), %d1 + bne.s 1f + andi.l #1, %d0 + move.b %d0, kb_ptn | PTN held or not + bra.s 8f +1: moveq #KEY_YES, %d1 + cmp.l 12(%a0), %d1 + bne.s 8f + tst.b kb_ptn + beq.s 8f + tst.b kb_live + beq.s 8f | off: the stock OS gets it + btst #0, %d0 + beq.s 7f | the release: taken + btst #3, %d0 + bne.s 7f | a held key's repeat: taken, nothing done + bsr.w toggle +7: moveq #1, %d0 + rts +8: moveq #0, %d0 + rts + +toggle: + lea -16(%sp), %sp + movem.l %d2-%d3/%a2-%a3, (%sp) + move.l PAT_ACT, %d2 + sub.l #PATS, %d2 + bcs.w 9f + cmp.l #PSTRIDE*128, %d2 + bcc.w 9f + move.l #PSTRIDE, %d1 + divu.l %d1, %d2 | d2 = the active pattern + move.l %d2, %d0 + andi.l #15, %d0 + bne.s 1f + pea msg_first | a bank's first pattern: its kit is the bank's kit + bra.w 6f +1: move.l %d2, %d3 + lsr.l #3, %d3 + lea kb_locks, %a2 + adda.l %d3, %a2 | a2 = the byte + move.l %d2, %d3 + andi.l #7, %d3 | d3 = the bit + moveq #0, %d0 + move.b (%a2), %d0 + btst %d3, %d0 + beq.s 2f + bclr %d3, %d0 | share again + move.b %d0, (%a2) + pea msg_shared + bra.s 5f +2: move.l %d0, -(%sp) | lock: copy the bank's kit into the pattern's own slot first + move.l %d2, %d0 + andi.l #0x70, %d0 + mulu.w #KSTRIDE, %d0 + add.l #KITS, %d0 + movea.l %d0, %a0 + move.l %d2, %d0 + mulu.w #KSTRIDE, %d0 + add.l #KITS, %d0 + movea.l %d0, %a1 + move.l #KSTRIDE/4, %d1 +3: move.l (%a0)+, (%a1)+ + subq.l #1, %d1 + bne.s 3b + move.l (%sp)+, %d0 + bset %d3, %d0 + move.b %d0, (%a2) + pea msg_locked +5: move.l %d2, %d0 | the engine and the tracks move to the kit it now plays + bsr.w resolve + move.l %d0, %d3 + mulu.w #KSTRIDE, %d0 + add.l #KITS, %d0 + move.l %d0, KIT_ACT + clr.l -(%sp) + pea 1 + move.l %d3, -(%sp) + movea.l PROJ_PTR, %a0 + pea 0x250(%a0) + jsr KA_LOAD + lea 16(%sp), %sp +6: jsr GET_UI + move.l %d0, -(%sp) + jsr SHOW_MSG + addq.l #8, %sp +9: movem.l (%sp), %d2-%d3/%a2-%a3 + lea 16(%sp), %sp + rts + +| ---- project save: Project_serialize(file, project, ...) writes the KBLK block into the file header -------- + .globl kb_projsave +kb_projsave: + movea.l 4(%sp), %a0 + lea GAP(%a0), %a0 + move.l (%a0), %d0 + beq.s 1f + cmp.l #ELKP, %d0 | another tool's data: left alone + bne.s 4f +1: move.l #ELKP, (%a0)+ + move.l #KBLK, (%a0)+ + moveq #BLK_SIZE, %d0 + move.l %d0, (%a0)+ + lea kb_on, %a1 + moveq #BLK_SIZE/4, %d1 +2: move.l (%a1)+, (%a0)+ + subq.l #1, %d1 + bne.s 2b + clr.l (%a0) | a zero tag ends the list +4: lea -44(%sp), %sp | the 8 stock bytes, replayed + movem.l %d2-%d7/%a2-%a6, (%sp) + jmp 0x4000eb18 + +| ---- project load: Project_deserialize(project, file, ...) reads it back; no block -> off, no lock -------- + .globl kb_projload +kb_projload: + bsr.s clear + movea.l 8(%sp), %a0 + move.l %a0, %d0 + beq.s 4f + lea GAP(%a0), %a0 + move.l (%a0)+, %d0 + cmp.l #ELKP, %d0 + bne.s 4f + move.l (%a0)+, %d0 + cmp.l #KBLK, %d0 + bne.s 4f + moveq #BLK_SIZE, %d0 + cmp.l (%a0)+, %d0 + bne.s 4f + lea kb_on, %a1 + moveq #BLK_SIZE/4, %d1 +2: move.l (%a0)+, (%a1)+ + subq.l #1, %d1 + bne.s 2b +4: lea -36(%sp), %sp + movem.l %d2-%d5/%a2-%a6, (%sp) + jmp 0x4000e7fc + +| ---- new project: off, no lock ----------------------------------------------------------------------------- + .globl kb_projnew +kb_projnew: + bsr.s clear + lea -20(%sp), %sp + movem.l %d2-%d4/%a2-%a3, (%sp) + jmp 0x40015716 + +clear: + lea kb_on, %a0 + moveq #BLK_SIZE/4, %d0 +1: clr.l (%a0)+ + subq.l #1, %d0 + bne.s 1b + rts + kb_row: .long kb_label, kb_select, kb_draw, kb_change kb_str: .asciz "KIT PER BANK" +msg_locked: .asciz "KIT LOCKED" +msg_shared: .asciz "KIT SHARED" +msg_first: .asciz "BANK KIT" .balign 4 .section .bss .balign 4 -kb_on: .skip 1 | the SETTINGS switch, off at power-on -kb_live: .skip 1 | the switch as of the last pattern change - .skip 2 +kb_on: .skip 4 | byte 0: the project's KIT PER BANK switch (saved, with kb_locks) +kb_locks: .skip 16 | 128 bits: pattern k = byte k/8, bit k%8 +kb_live: .skip 4 | byte 0: the switch as of the last pattern change +kb_ptn: .skip 4 | byte 0: PTN held From 78c745c6228a3d4a0dbb0a60ee0eef8162fae245 Mon Sep 17 00:00:00 2001 From: STEPHEN <277114827+ZOGV@users.noreply.github.com> Date: Thu, 12 Nov 2026 21:37:16 +0100 Subject: [PATCH 006/415] digitone/kitbank 0.2.0-experimental: no SELECT PTN popup after PTN+YES, message after the reselection, captures and tests refreshed Co-Authored-By: Claude Opus 5.5 --- sdk/digitone/modules/kitbank/README.md | 4 +- sdk/digitone/modules/kitbank/TESTING.md | 12 +++- .../modules/kitbank/media/capture-plan.txt | 3 +- .../modules/kitbank/media/capture.json | 20 +++--- .../modules/kitbank/media/kit-locked.png | Bin 2367 -> 2376 bytes .../modules/kitbank/modwerk.module.json | 9 +-- sdk/digitone/modules/kitbank/src/kitbank.S | 60 ++++++++++++++++-- 7 files changed, 83 insertions(+), 25 deletions(-) diff --git a/sdk/digitone/modules/kitbank/README.md b/sdk/digitone/modules/kitbank/README.md index 5da40aac96..fef85ae4f3 100644 --- a/sdk/digitone/modules/kitbank/README.md +++ b/sdk/digitone/modules/kitbank/README.md @@ -50,11 +50,13 @@ A practical layout: one bank per track (intro, verse, break... as 16 patterns sh - The switch and the locks live in the project header: an elekloader-format `ELKP` block tagged `KBLK`, in the bytes 0x1c..0x200 the stock OS keeps as they are. kitbank writes it with its own project save hook, because core-dn1 2.0a for 1.44 has no project data; it leaves the area alone when another tool's data is already there. It can move to `core_projdata` when a 1.44 core provides it. - kitbank patches ten stock OS sites itself: immediate pattern change, the kit lookup used by the screen, edits and pastes, two queued-change sites, kit save, kit reload, sound reload (these three only when called from the pattern menus, so the automatic saves after copy, paste and clear keep each pattern's own slot), and project save, load and new. A mod patching the same bytes cannot be combined; if other mods need kit selection or project data, these sites should become core hooks. - A pattern pasted into a bank's first pattern replaces the bank's kit, as the stock OS replaces that pattern's kit. +- After PTN+YES, kitbank hands the OS the active pattern's trig while PTN is still held, so the OS reselects the same pattern and opens no SELECT PTN popup when PTN is released. +- For under a second after PTN+YES, a knob turn can be ignored while the OS reloads the kit into the tracks (measured in the emulator). - Undo of a paste was not tried. ## Tests and measurements -The Modwerk evidence tier is `none`. [TESTING.md](TESTING.md) records the emulator runs: stock behaviour when unticked, bank kits for immediate and queued pattern changes and song mode, edits, kit save and reload, PTN+YES locks, pastes, the switch and locks through a project save and load, and a full check against the stock OS. Memory: 1,308 B (1,280 B code, 28 B state), excluding the core. No audio-rate work. +The Modwerk evidence tier is `none`. [TESTING.md](TESTING.md) records the emulator runs: stock behaviour when unticked, bank kits for immediate and queued pattern changes and song mode, edits, kit save and reload, PTN+YES locks, pastes, the switch and locks through a project save and load, and a full check against the stock OS. Memory: 1,528 B (1,432 B code, 96 B state), excluding the core. No audio-rate work. ## Authorship and licences diff --git a/sdk/digitone/modules/kitbank/TESTING.md b/sdk/digitone/modules/kitbank/TESTING.md index d4b4fe8fec..dfafe4d526 100644 --- a/sdk/digitone/modules/kitbank/TESTING.md +++ b/sdk/digitone/modules/kitbank/TESTING.md @@ -2,7 +2,7 @@ ## In Modwerk -No hardware qualification is claimed for this Modwerk build. Evidence tier: `none`. All runs below are in the digiemu emulator (revision `f57c2f237e84b8ff91bc3adb2a2931bccf9928e9`, not the reviewed `c1b5735…`, see [capture.json](media/capture.json)), on a local image linked with `node scripts/link-image.mjs --version XX05` from the stock OS 1.44 file (`d4f200d0…`), core-dn1 2.0a for 1.44 and this module (0.2.0-experimental). Built-image SHA-256: `fd4cf27d419295343c53893501ee01ee513a57ccb9e7dae533be974f5694fd2b`. Firmware and derived images stay private. +No hardware qualification is claimed for this Modwerk build. Evidence tier: `none`. All runs below are in the digiemu emulator (revision `f57c2f237e84b8ff91bc3adb2a2931bccf9928e9`, not the reviewed `c1b5735…`, see [capture.json](media/capture.json)), on a local image linked with `node scripts/link-image.mjs --version XX06` from the stock OS 1.44 file (`d4f200d0…`), core-dn1 2.0a for 1.44 and this module (0.2.0-experimental). Built-image SHA-256: `7d14c8272d861704983903f36a5018edef5647f708ad3658a8899e8a86e798be`. Firmware and derived images stay private. ## Behaviour (emulator, real panel inputs) @@ -21,15 +21,21 @@ The scripts read the live pattern and engine kit pointers (`0x4138f214`, `0x4138 | Paste A03 (locked, edited) → A07: bank kit untouched, A07 locked with A03's sound; paste B02 → A08: bank A untouched, A08 locked with B01's sound | PASS | | Clear A06: bank kit unchanged, A06 still shares it | PASS | | Song mode, song A01 → A02 → B01 looping twice: (pattern, kit) = (A01, A01) (A02, A01) (B01, B01); with A02 locked: (A02, A02) | PASS | +| PTN+YES while playing on A05: A05 keeps playing, locked; again: shared | PASS | +| After PTN+YES the SELECT PTN popup does not open (the module reselects the active pattern) | PASS (screens) | | Every run: no halt | PASS | ## Full check against stock -`python -m emu.portable --check --baseline --timing` (switch at its default, unticked): result recorded below when the run ends. +`python -m emu.portable --check --baseline --timing` (switch at its default, unticked), run on the XX05 build of the same behaviour before the popup fix: **PASS**, 10 of 10 screens identical to stock, **audio identical to stock over 8.3 s**, render margin 40.5 % and CPU busy 58 % as stock. The stock reference itself is marked FAIL by this emulator for a known read at `0x12a`. Unticked, the popup fix adds no code path: the PTN+YES branch is only taken while ticked. ## Memory -Object sizes: 1,280 B `.run`, 28 B `.bss`: **1,308 B**, excluding the core and linker alignment. No audio-rate code. +Object sizes: 1,432 B `.run`, 96 B `.bss`: **1,528 B**, excluding the core and linker alignment. No audio-rate code. + +## Measured limit + +For under a second after PTN+YES, a knob turn can be ignored while the OS reloads the kit into the tracks; the tests wait one second. The stock OS reselecting a pattern by hand does not do this. ## Not tested diff --git a/sdk/digitone/modules/kitbank/media/capture-plan.txt b/sdk/digitone/modules/kitbank/media/capture-plan.txt index a8cbea92d5..0b39e68daa 100644 --- a/sdk/digitone/modules/kitbank/media/capture-plan.txt +++ b/sdk/digitone/modules/kitbank/media/capture-plan.txt @@ -27,5 +27,6 @@ release PTN wait 700 press PTN tap YES 80 200 -snap kit-locked release PTN +wait 300 +snap kit-locked diff --git a/sdk/digitone/modules/kitbank/media/capture.json b/sdk/digitone/modules/kitbank/media/capture.json index 9b064b8427..65b2f7bbd3 100644 --- a/sdk/digitone/modules/kitbank/media/capture.json +++ b/sdk/digitone/modules/kitbank/media/capture.json @@ -5,10 +5,10 @@ "moduleVersion": "0.2.0-experimental", "capturedAt": "2026-11-12", "firmware": "1.44", - "imageSha256": "fd4cf27d419295343c53893501ee01ee513a57ccb9e7dae533be974f5694fd2b", + "imageSha256": "7d14c8272d861704983903f36a5018edef5647f708ad3658a8899e8a86e798be", "stockSha256": "d4f200d04484333d82822db7744e6484d0def8f2db8ddf55ee2b780cc13c9659", "build": { - "tool": "node scripts/link-image.mjs --version XX05", + "tool": "node scripts/link-image.mjs --version XX06", "modules": [ { "id": "core", @@ -21,7 +21,7 @@ "source": "sdk/digitone/modules/kitbank (this folder)" } ], - "outputVersion": "XX05" + "outputVersion": "XX06" }, "emulator": { "repository": "https://github.com/irpina/digiemu", @@ -223,26 +223,26 @@ { "path": "media/settings-off.png", "sha256": "546fd24aafd699b3d5ac20b25bd47477ca99b7688ca79917bcd2894b452c8444", - "plan": "wait 1000\ntap GLOBAL\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\nsnap settings-off\ntap YES\nsnap settings-on\ntap NO\ntap NO\npress PTN\ntap 1\nrelease PTN\nwait 700\npress PTN\ntap 3\nrelease PTN\nwait 700\npress PTN\ntap YES 80 200\nsnap kit-locked\nrelease PTN\n", + "plan": "wait 1000\ntap GLOBAL\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\nsnap settings-off\ntap YES\nsnap settings-on\ntap NO\ntap NO\npress PTN\ntap 1\nrelease PTN\nwait 700\npress PTN\ntap 3\nrelease PTN\nwait 700\npress PTN\ntap YES 80 200\nrelease PTN\nwait 300\nsnap kit-locked\n", "atMs": 6200.180769230769, "requestedAtMs": 6200.180769230769 }, { "path": "media/settings-on.png", "sha256": "cece0825ac5c705eaba1c122acf9f2ab2bfd379f89ab4554c1440fe1de53475b", - "plan": "wait 1000\ntap GLOBAL\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\nsnap settings-off\ntap YES\nsnap settings-on\ntap NO\ntap NO\npress PTN\ntap 1\nrelease PTN\nwait 700\npress PTN\ntap 3\nrelease PTN\nwait 700\npress PTN\ntap YES 80 200\nsnap kit-locked\nrelease PTN\n", + "plan": "wait 1000\ntap GLOBAL\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\nsnap settings-off\ntap YES\nsnap settings-on\ntap NO\ntap NO\npress PTN\ntap 1\nrelease PTN\nwait 700\npress PTN\ntap 3\nrelease PTN\nwait 700\npress PTN\ntap YES 80 200\nrelease PTN\nwait 300\nsnap kit-locked\n", "atMs": 6600.192521367521, "requestedAtMs": 6600.192521367521 }, { "path": "media/kit-locked.png", - "sha256": "dd7ceebbff05030a5642588ab7e0e39db307397f7e3f557748a669e023df8065", - "plan": "wait 1000\ntap GLOBAL\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\nsnap settings-off\ntap YES\nsnap settings-on\ntap NO\ntap NO\npress PTN\ntap 1\nrelease PTN\nwait 700\npress PTN\ntap 3\nrelease PTN\nwait 700\npress PTN\ntap YES 80 200\nsnap kit-locked\nrelease PTN\n", - "atMs": 10168.623717948718, - "requestedAtMs": 10380.767735042735 + "sha256": "5f581de32bc59874ae6462dd212d5de28dbc682b6b6943d7e20b859cae0a363c", + "plan": "wait 1000\ntap GLOBAL\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\nsnap settings-off\ntap YES\nsnap settings-on\ntap NO\ntap NO\npress PTN\ntap 1\nrelease PTN\nwait 700\npress PTN\ntap 3\nrelease PTN\nwait 700\npress PTN\ntap YES 80 200\nrelease PTN\nwait 300\nsnap kit-locked\n", + "atMs": 10783.647435897436, + "requestedAtMs": 10783.647435897436 } ], "limitations": [ - "UI documentation of the SETTINGS row and of the KIT LOCKED message (PTN still held, hence the A?? in the corner); the kit behaviour is covered by the emulator tests in TESTING.md." + "UI documentation of the SETTINGS row and of the KIT LOCKED message after PTN+YES; the kit behaviour is covered by the emulator tests in TESTING.md." ] } diff --git a/sdk/digitone/modules/kitbank/media/kit-locked.png b/sdk/digitone/modules/kitbank/media/kit-locked.png index 12baa6aa4f9b1c332034f6dac03e57d365b279fd..a0c0deea495d8c07b120643e02f38c6030a05c5a 100644 GIT binary patch literal 2376 zcmZvc4>;3#9LGPKnrev7rlaDPI-Q&ToRz|?o+%S~=R|clEyis~*t5%pymc34I8rbKNTE5cz zoVBWT!|}ED%iJh-_T3t-M|#PSd#8WIDa#Y{0Slk4VjgdKZRpPCJj~~BNIYRN@4`=d zjb1Y&eORS+^>1iuXOk?~R7Dp0box#Pm^8-DSxaiJck6fC=7=9L@p~h#YUXBbJ(>H1 z0T!_gQiXN7Gq&RG(wusa`Hl85UNi+Zg;_~hpmE_T9__)&LS*CPqaIH%**x9d%&s&k z5<7Fq5e+iu;QUqFddMSau7p>9Q0R0TB8yO+WjEs4|JOl1C;+Mj)O^1?zZ6z7ENbAH*R zx?lnM)1Q^7lZ`};{m7uli|2@;n-vcXFhPwEG!BdW>e9jFPSJP<@!}WrG?iV|@Vwi_ z%x|j@7Y;otdm!-LioI_{*(5a%G;eDYkn_;VXu8$e z`~Xk(41nikCOU4HW-kBb9UT})`{1RKY~O z-?0QRA7jUD;5~VJ4|`Xzk(6^_^&I*85uudQd}b-rmO>e!j?MG$dwHd4for5_lP2~6 zm7tem#qOA^MR6)6gZmZ@O9G&sec%IOqt2FIzx^Vq_c10vNjw3U1RWhAS&T=xH%6yT zht*3RP>ipeJTthZ5QZyL(+Cm;i!`psQT*8wh`N2s<2-VfA>+S8y?fCI+l`aJ0_b3l zp-qBZb+|CC@8>Z{LR85$Vz??=xaQzX#z*UHUGnHfJ6?}r=7QUTRs6)#gt&g4V@*t3 zVa}K1kx}o7t;DQY)ZIYEBezd?$K0G*QQanTMCvTh+Z7 zaZnDDM1$(Ug|8ilJd6z!!(pQgOU5h-hee7a(sdUQiKeALf@Hk%j3BKi9(_Q;k)0)FqgyelmgXiUQ3$WD^)_mFcLIR}{o zF6Eh(T`AYNdwlHCY`mAz`&Thp*N6Nt<*Y*chv@P`u=&nA)Kcx$m5JM4$EOC*?hp4z z<%zfCX}UJ663*IG(#2MKZSY;SC-Xk>Fh%j_VhW0e$KY~(>dm_R&-)%SK1sUs`^_er z_d;c*T+Wdn{q_huH9AlgUZrs*cr*?U-LW+$epJ`@u;&y^F!U)OpRjgsD_j!Uu2PV5 z)hhnL%rXW4c4-RtiT0XxEe>6ZiSNmvEsVRfuaqg5w-H0}VWNf=@16+6L~gVbnzn1j zDXVud+?n-kj_gJvdMg2G-K`J^kpHR)y{V8_5@!p#T5? literal 2367 zcmZvd2~bm46oyZL1S2Ag1rcab6dk1~4jPC?lGq@NvIt063?NZNA{eDez>>Vm=-`4# zWs{;(tynQ2BFnI3aRD+Y6s98xK|oP(PzWIcVk7j?sV(W_pEGano%`K)&pG#;_s;lu zx#}-8UkCvD?rscU0Bv-LLl&SUX z^nCBbPdj#R`LTv~Ae=tl+bfvL$&;k3mylPVx=BO;{xeHr0jrEXHM5ZwOU}fB7W`*p z_Q(cf<)j?C6pshfw9g3!-dzeBG$#AuP)Fw2ZGw+-i?6lFMjoOc0Wh3n7o%a=BEQybq=ED{@R7g8SF>?y%1K|U_Pfy! zWgZ7@kjoO(RgCft3a;y$ugJkKFWc0dau2f($WqvEiFy~$f&#_ zGrDPj%uNl2Kx2H-NK;96@2A8HCp>`87XzSWPIqh_FoCDGkjn)7yAU3V>wA+ZICQ@= zkKI$T=kDj?%W1cRR1^Hdh@KG@x>-|*F8F7@Ur%sQHArd;D;!CRT_K}wiD-5;)wd7A zQuv~2a~v`bVspU;sRboW6G3M@W7=z91OuTqy5@lLGQmN)NcJIuGEhAx=uvh zhrvMlJi;la^$%b)JPm%xdsycXdpJSrpR zDcpL9T+gX5-g5BK8rV6ADHHU)3w{t=53sguz#dUbq>U6lm`Y0>>(_`Ao#4XB$V6mi zBCy&2??*jo$ljP%;dBT0x{|&!Jvv%od(6}8x3nHt&t{1M_LTQADFYXlZD@Cp7lgS` z?<0y`AR3gPNFZI?iiJx}q>2i9}u3JjgA5GW+<@82~N}1-( z)AgoTqg`x=J%KHE7MMueLaa4noISd4BP2Wsp%(t#%>Q(CynTz6pAHxS0}OFA9mtr9 zDCUn|nuCl*-X1rNP(+DbPrYSP^_kP%m@uRc5b0rmr?sQIs9Rn)-K5Bye9b0cFlf=` zZeM#X@xDUKFtK||EpuojJ1xdyTsx#j>x!h)Q7bh+etn8CkC-<5N!Jurw~v$2X@>L^ zCx%4Fz8(_G{AUY}QHVJb9Bkn6deE+#8qfX9Sky!1n{Y8pX8( zUGtRMaQptv$dK<<>e$&G!|GhNfjK8#!rwE{#F?j^-s8D^i}F`5J(cy`>Y2<~zEP-} zSG05@OWlIG2k9HIb}`i*?aG#A;f*9kY)Tmj4;QWW$CfiiyDy&=rrB-g_{(6#K$Qu+(+U%HrO z2@m$xS9)VI1_g_yC3YEAYdBlqnnN{yn_p8z=n(;HCpg*FrrZmbh``uS#2jYYMT2*S8ENN&CFb<`%lq7m@8m=U$4%@m-ZQHN{C8 zHb+GUX+x|<9b!La|M_c2)JMaW0&!q+^LKHWiv)NnmIqxkv7|P)Hmh-YRdNvRY6@_l^w;NDoj3 zTa=G Date: Sat, 14 Nov 2026 10:32:58 +0100 Subject: [PATCH 007/415] digitone/kitbank 0.2.0-experimental: release notes Co-Authored-By: Claude Opus 5.5 --- .../module-changelogs/digitone-kitbank.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/community/module-changelogs/digitone-kitbank.json diff --git a/src/community/module-changelogs/digitone-kitbank.json b/src/community/module-changelogs/digitone-kitbank.json new file mode 100644 index 0000000000..2df384764d --- /dev/null +++ b/src/community/module-changelogs/digitone-kitbank.json @@ -0,0 +1,12 @@ +[ + { + "version": "0.2.0-experimental", + "date": "2026-11-14", + "changes": [ + "First release: KIT PER BANK in SETTINGS gives the 16 patterns of a bank the kit of its first pattern (A01 for A01 to A16), like the Octatrack's parts. Off at power-on.", + "Hold PTN and press YES to lock the active pattern to its own copy of the sound; again to share the bank's kit. The switch and the locks are saved with the project.", + "Pasting a pattern never overwrites its bank's sound. Old projects open with the switch off and play as on the stock OS.", + "Known issue: for under a second after PTN+YES, a knob turn can be ignored while the kit reloads." + ] + } +] From 59a4adc3b14f5a18e136d71408ca8f9a32928078 Mon Sep 17 00:00:00 2001 From: STEPHEN <277114827+ZOGV@users.noreply.github.com> Date: Sat, 14 Nov 2026 10:42:46 +0100 Subject: [PATCH 008/415] digitone/kitbank 0.2.0-experimental: author hardware report (XX07 on a Digitone, OS 1.44), XX07 emulator checks Co-Authored-By: Claude Opus 5.5 --- sdk/digitone/modules/kitbank/TESTING.md | 10 +- .../kitbank/evidence/hardware-testing.json | 25 ++++ .../kitbank/evidence/source-identity.json | 117 ++++++++++++++++++ .../modules/kitbank/modwerk.module.json | 24 +++- 4 files changed, 170 insertions(+), 6 deletions(-) create mode 100644 sdk/digitone/modules/kitbank/evidence/hardware-testing.json create mode 100644 sdk/digitone/modules/kitbank/evidence/source-identity.json diff --git a/sdk/digitone/modules/kitbank/TESTING.md b/sdk/digitone/modules/kitbank/TESTING.md index dfafe4d526..35997ad1a6 100644 --- a/sdk/digitone/modules/kitbank/TESTING.md +++ b/sdk/digitone/modules/kitbank/TESTING.md @@ -2,7 +2,13 @@ ## In Modwerk -No hardware qualification is claimed for this Modwerk build. Evidence tier: `none`. All runs below are in the digiemu emulator (revision `f57c2f237e84b8ff91bc3adb2a2931bccf9928e9`, not the reviewed `c1b5735…`, see [capture.json](media/capture.json)), on a local image linked with `node scripts/link-image.mjs --version XX06` from the stock OS 1.44 file (`d4f200d0…`), core-dn1 2.0a for 1.44 and this module (0.2.0-experimental). Built-image SHA-256: `7d14c8272d861704983903f36a5018edef5647f708ad3658a8899e8a86e798be`. Firmware and derived images stay private. +### Hardware (author-reported) + +Evidence tier: `author-hardware`. On 2026-11-14 the author flashed the module-alone build XX07 (core dn1 2.0a + kitbank 0.2.0-experimental, SHA-256 `30e54a811681c0bcc57f8b1dd026473d346afcaf86e83c4332b6331c4a97eaf0`) on their Digitone, OS 1.44, with a nine-step list (the switch, bank kits while playing, an edit shared by the bank, PTN+YES, project save and power cycle, paste, song mode), and reported: "it worked". The result was one statement, not step by step; which steps were tried and for how long was not reported. Details: [evidence/hardware-testing.json](evidence/hardware-testing.json). + +### Emulator + +The XX07 build passes `test_kitlock_modwerk`, `test_kitbank_copy` and `test_kitbank_song`, and the full check against stock with the switch off: build PASS, 10 of 10 screens identical, audio identical over 8.3 s, render margin 40.5 % and CPU busy 58 % as stock (the screen stream first differs at 7.8 s, between captures). The runs below are in the digiemu emulator (revision `f57c2f237e84b8ff91bc3adb2a2931bccf9928e9`, not the reviewed `c1b5735…`, see [capture.json](media/capture.json)), on a local image linked with `node scripts/link-image.mjs --version XX06` from the stock OS 1.44 file (`d4f200d0…`), core-dn1 2.0a for 1.44 and this module (0.2.0-experimental). Built-image SHA-256: `7d14c8272d861704983903f36a5018edef5647f708ad3658a8899e8a86e798be`. Firmware and derived images stay private. ## Behaviour (emulator, real panel inputs) @@ -39,4 +45,4 @@ For under a second after PTN+YES, a knob turn can be ignored while the OS reload ## Not tested -Hardware with this Modwerk build; undo of a paste; chains built with PTN+trigs while playing (queued changes were); OS 1.43. +Step-by-step hardware results; undo of a paste; chains built with PTN+trigs while playing (queued changes were); OS 1.43. diff --git a/sdk/digitone/modules/kitbank/evidence/hardware-testing.json b/sdk/digitone/modules/kitbank/evidence/hardware-testing.json new file mode 100644 index 0000000000..1f8a813327 --- /dev/null +++ b/sdk/digitone/modules/kitbank/evidence/hardware-testing.json @@ -0,0 +1,25 @@ +{ + "schemaVersion": 1, + "reportedOn": "2026-11-14", + "source": "Direct author statement in the development conversation", + "reporter": "ZOGV", + "status": "hardware-tested-author-reported", + "model": "Digitone", + "release": "1.44", + "moduleVersion": "0.2.0-experimental", + "builds": [ + { + "name": "Core dn1 2.0a + kitbank 0.2.0-experimental (XX07)", + "syxSha256": "30e54a811681c0bcc57f8b1dd026473d346afcaf86e83c4332b6331c4a97eaf0", + "statement": "C'est bon, j'ai essayé, ça a marché (\"it's fine, I tried it, it worked\")", + "steps": { + "flashed the module-alone build and tried it, with a nine-step list covering the switch, bank kits while playing, edits, PTN+YES, project save and power cycle, paste and song mode": "works, reported as one statement" + } + } + ], + "limitations": [ + "The result was reported as one statement, not step by step: which of the nine listed steps were tried is not recorded.", + "The duration was not reported.", + "The same redirections ran earlier on the author's unit as an always-on build outside Modwerk; that build is not part of this evidence." + ] +} diff --git a/sdk/digitone/modules/kitbank/evidence/source-identity.json b/sdk/digitone/modules/kitbank/evidence/source-identity.json new file mode 100644 index 0000000000..0229b298e1 --- /dev/null +++ b/sdk/digitone/modules/kitbank/evidence/source-identity.json @@ -0,0 +1,117 @@ +{ + "schemaVersion": 1, + "algorithm": "sha256 of canonical sorted JSON {sources,build}; UTF-8, compact separators", + "sha256": "4ce013124db4dc95970e302d7ee016bd1f6cb1fb97448a33d5cc2298d1dc00a3", + "sources": { + "src/kitbank.S": "4d7ef02df5194d02f9f91ddf0627ca956a89e0bc24826a0ea88c364c8b8239b1" + }, + "build": { + "schemaVersion": 1, + "sources": [ + "src/kitbank.S" + ], + "defsym": {}, + "cflags": [], + "weak": [], + "subscribe": [ + { + "event": "ev_settings", + "fn": "kb_settings", + "order": 50 + }, + { + "event": "ev_key", + "fn": "kb_key", + "order": 50 + } + ], + "contribute": [], + "collections": {}, + "copied": [], + "regions": [], + "claims": [ + "settings:KIT PER BANK", + "projdata:KBLK" + ], + "requires": [], + "derive": null, + "releases": { + "1.44": { + "defsym": {}, + "cflags": [], + "sites": [ + { + "addr": "0x40094f14", + "len": 8, + "stockSha256": "4997842f477c42235c625d7ba815c13fc3a07a0c57335d4361007e1288ff0795", + "op": "jmp", + "target": "kb_setpat" + }, + { + "addr": "0x4014df66", + "len": 6, + "stockSha256": "25f6cf58764096a92fba2355b3a003ad25d064d44e1e91102deb6abcadbed9d7", + "op": "jmp", + "target": "kb_getkit" + }, + { + "addr": "0x40095f08", + "len": 6, + "stockSha256": "e546d4a005b1ba895fcdb1eff85edbca6c362d0359e3ce5ed454b6320228bc21", + "op": "jmp", + "target": "kb_qact1" + }, + { + "addr": "0x40096236", + "len": 6, + "stockSha256": "e546d4a005b1ba895fcdb1eff85edbca6c362d0359e3ce5ed454b6320228bc21", + "op": "jmp", + "target": "kb_qact2" + }, + { + "addr": "0x400278f0", + "len": 8, + "stockSha256": "da84c1f842d053771b08911c8ed517551ad95f3019433555c6327cd2698f25d7", + "op": "jmp", + "target": "kb_save" + }, + { + "addr": "0x40027d3a", + "len": 8, + "stockSha256": "e60937176ed83d52936ca7977d2a4082ed1ac3017ff960831e4d5f7ebb5b9250", + "op": "jmp", + "target": "kb_reload" + }, + { + "addr": "0x40029ada", + "len": 8, + "stockSha256": "f7fddeefeac300af619b7028a954dc595076d9d098da7090973c1cbc1f649ec0", + "op": "jmp", + "target": "kb_sndreload" + }, + { + "addr": "0x4000eb10", + "len": 8, + "stockSha256": "52dccc03e103dca3839c839017cffce1d4a1e675d8dfb2804764141e86c63841", + "op": "jmp", + "target": "kb_projsave" + }, + { + "addr": "0x4000e7f4", + "len": 8, + "stockSha256": "3e47fdc2a5af6492a822beaa4ccd4bb53d5f5b2111c689c9f6f1cca2a3df15e2", + "op": "jmp", + "target": "kb_projload" + }, + { + "addr": "0x4001570e", + "len": 8, + "stockSha256": "a04973fb79ed0896aa768e97902a85f61a10ad9d106955b3fe7a112c76d0e51f", + "op": "jmp", + "target": "kb_projnew" + } + ] + } + } + } +} diff --git a/sdk/digitone/modules/kitbank/modwerk.module.json b/sdk/digitone/modules/kitbank/modwerk.module.json index 9aa26b9278..6fbb7d43a1 100644 --- a/sdk/digitone/modules/kitbank/modwerk.module.json +++ b/sdk/digitone/modules/kitbank/modwerk.module.json @@ -102,11 +102,27 @@ } }, "evidence": { - "tier": "none", + "tier": "author-hardware", "moduleVersion": "0.2.0-experimental", - "sourceSha256": null, - "reports": [], - "hardware": null, + "sourceSha256": "4ce013124db4dc95970e302d7ee016bd1f6cb1fb97448a33d5cc2298d1dc00a3", + "reports": [ + "evidence/hardware-testing.json", + "evidence/source-identity.json", + "TESTING.md" + ], + "hardware": { + "model": "Digitone", + "release": "1.44", + "testedOn": "2026-11-14", + "tester": "ZOGV", + "durationMinutes": null, + "summary": "The author flashed the module-alone build (core dn1 2.0a + kitbank 0.2.0-experimental, XX07, SHA-256 30e54a81…) on their Digitone, OS 1.44, with a list of nine steps: the KIT PER BANK switch, bank kits while playing, an edit shared by the bank, PTN+YES lock and share, project save and power cycle, paste and song mode. The author reported that it worked.", + "limitations": [ + "The result was reported as one statement, not step by step: which of the nine listed steps were tried is not recorded.", + "The duration was not reported.", + "The same redirections ran earlier on the author's unit as an always-on build outside Modwerk; that build is not part of this evidence." + ] + }, "verifiedBy": null }, "tests": { From aac54b3ce6197a672091a4c4eac21e022e3b8d0b Mon Sep 17 00:00:00 2001 From: STEPHEN <277114827+ZOGV@users.noreply.github.com> Date: Sat, 14 Nov 2026 10:51:49 +0100 Subject: [PATCH 009/415] digitone/kitbank 0.2.0-experimental: source-only package for OS 1.44 Co-Authored-By: Claude Opus 5.5 --- .../kitbank-0.2.0-experimental-os1.44.elemod | 707 ++++++++++++++++++ 1 file changed, 707 insertions(+) create mode 100644 sdk/imports/packages/kitbank/kitbank-0.2.0-experimental-os1.44.elemod diff --git a/sdk/imports/packages/kitbank/kitbank-0.2.0-experimental-os1.44.elemod b/sdk/imports/packages/kitbank/kitbank-0.2.0-experimental-os1.44.elemod new file mode 100644 index 0000000000..6fd4e55aff --- /dev/null +++ b/sdk/imports/packages/kitbank/kitbank-0.2.0-experimental-os1.44.elemod @@ -0,0 +1,707 @@ +{ + "elemod": 2, + "id": "kitbank", + "version": "0.2.0-experimental", + "title": "kitbank", + "description": "One kit per bank, like the Octatrack's parts, with per-pattern locks: the 16 patterns of a bank share one sound, and [PTN]+[YES] gives a pattern its own.", + "category": "playback", + "author": "ZOGV", + "license": "GPL-3.0-or-later", + "target": { + "device": "digitone-mk1", + "product": "Digitone mk1", + "os": "1.44", + "syx_sha256": "d4f200d04484333d82822db7744e6484d0def8f2db8ddf55ee2b780cc13c9659", + "section3_sha256": "fce648a97c6c5d93b961732e8f8db6b02e0820c6d344c7e2131fa05a4b3168e4", + "section3_len": 2736304 + }, + "sections": { + ".run": { + "align": 4, + "len": 1432, + "parts": [ + [ + "hex", + "487a05582f2f00084eb900000000508f4e754e56fffc2f02486effff487a054c24082f084eb94018afc84fef000c2002242efff84e5e4e75206f0004205070004a390000000057c002800000000113c00000000041e800382f4800044ef9400e539e206f00042050202f000c671c5ec002800000000113c00000000041e800382f4800044ef9400e539e4e7570004a39000000006702701cd0b9419ee988222f000c2f4100042f400008222f00102f41000c222f00142f41001042af00144ef9400de4c00480407fd41465220c8000b08e80641a223c0001611d4c410000610001d4c0fc09880680413062944e7570004e7510390000000013c0000000006710202f00046100ffbe4a8067042f4000084fefffe848d71c1c4ef940094f1c4a3900000000671e202f00080c8000000080641222170c81400281466714610001762f4000082f02206f00084ef94014df6c6100000460ee220002810000000f6700009a4feffff048d70c0c2600246efff0d5fc00016121028000000070c0fc09880680413062942640223c00000262201ab09b6608538166f67200600272012003e68845f900000000d5c020030280000000077400141201824a81670201c2148220394138f2140480407fd4146522223c0001611d4c410000b0836614610000d6c0fc098806804130629423c04138f22020034cd70c0c4fef00104e754feffff848d7000310390000000013c000000000671020394138f2146100feaa4a8067022c804cd700034fef00084e756100ffce23d64138f2204ef940095f0e6100ffbe23d64138f2204ef94009623c4a39000000006728202f00040c8040027a00651c0c804002a2006414202f00100c800000008064086100003e2f4000104e756100ffcc4e56ffe448d70c3c4ef9400278f86100ffba4e56ffe048d70c7c4ef940027d426100ffa84e56ffc448d73cfc4ef940029ae22f082200e68941f90000000012301800205f2f000280000000070101660a201f0280000000704e75201f4e75206f00082228000c202800107204b2a8000c660e02800000000113c0000000006030720db2a8000c66284a390000000067204a3900000000671808000000670e080000036608610000aa6100000a70014e7570004e7520394138f2140480407fd4146576223c0001611d4c41000002800000000f06800000001a2f00206f001043f900000000721022d853810c81000000086604206f00104a8166ec201f41f9000000002140000c2140002c70012140001042a800304879000000002f2f000c4eb940016fc0508f4879000000002f2f000c4eb940016fc0508f2f39000000004eb94014a0602f004eb9400ae25c508f4e754feffff048d70c0c24394138f2140482407fd414650000c20c8200b08e80640000b8223c0001611d4c412002200202800000000f6608487a0183600000962602e68b45f900000000d5c32602028300000007700010120700670a07801480487a0150603a2f002002028000000070c0fc098806804130629420402002c0fc09880680413062942240223c0000026222d8538166fa201f07c01480487a010920026100fe402600c0fc098806804130629423c04138f22042a7487800012f032079419f0de0486802504eb94001da464fef001023df000000004cd70c0c4fef00104e75206f000441e8001c201067080c80454c4b50662020fc454c4b5020fc4b424c4b701420c043f900000000720520d9538166fa42904fefffd448d77cfc4ef94000eb186152206f00082008672c41e8001c20180c80454c4b50661e20180c804b424c4b66147014b098660e43f900000000720522d8538166fa4fefffdc48d77c3c4ef94000e7fc610e4fefffec48d70c1c4ef94001571641f90000000070054298538066fa4e75000000000000000000000000000000004b4954205045522042414e4b004b4954204c4f434b4544004b4954205348415245440042414e4b204b4954000000" + ] + ] + }, + ".bss": { + "align": 4, + "size": 96 + } + }, + "symbols": { + "PATS": [ + "abs", + 1082119188 + ], + "PSTRIDE": [ + "abs", + 90397 + ], + "KITS": [ + "abs", + 1093690004 + ], + "KSTRIDE": [ + "abs", + 2440 + ], + "PAT_ACT": [ + "abs", + 1094251028 + ], + "KIT_ACT": [ + "abs", + 1094251040 + ], + "MENU_LO": [ + "abs", + 1073904128 + ], + "MENU_HI": [ + "abs", + 1073914368 + ], + "STR_CTOR": [ + "abs", + 1075359688 + ], + "INVALIDATE": [ + "abs", + 1074680734 + ], + "BLIT": [ + "abs", + 1074652352 + ], + "CHECKBOXES": [ + "abs", + 1100933512 + ], + "GET_UI": [ + "abs", + 1075093600 + ], + "SHOW_MSG": [ + "abs", + 1074455132 + ], + "KA_LOAD": [ + "abs", + 1073863238 + ], + "PROJ_PTR": [ + "abs", + 1100942816 + ], + "KEY_PTN": [ + "abs", + 4 + ], + "PASTE_WRITE": [ + "abs", + 1073905990 + ], + "PASTE_KIT": [ + "abs", + 90401 + ], + "KEY_YES": [ + "abs", + 13 + ], + "KEY_STEP1": [ + "abs", + 26 + ], + "BRAIN_KEY": [ + "abs", + 1073835968 + ], + "GAP": [ + "abs", + 28 + ], + "ELKP": [ + "abs", + 1162627920 + ], + "KBLK": [ + "abs", + 1262636107 + ], + "BLK_SIZE": [ + "abs", + 20 + ], + "kb_row": [ + ".run", + 1370 + ], + "kb_label": [ + ".run", + 18 + ], + "kb_str": [ + ".run", + 1386 + ], + "kb_select": [ + ".run", + 56 + ], + "kb_on": [ + ".bss", + 0 + ], + "kb_change": [ + ".run", + 98 + ], + "kb_draw": [ + ".run", + 140 + ], + "bankkit": [ + ".run", + 196 + ], + "resolve": [ + ".run", + 692 + ], + "kb_live": [ + ".bss", + 20 + ], + "pastefix": [ + ".run", + 342 + ], + "kb_locks": [ + ".bss", + 4 + ], + "qfix": [ + ".run", + 508 + ], + "fixk": [ + ".run", + 588 + ], + "kb_ptn": [ + ".bss", + 24 + ], + "toggle": [ + ".run", + 978 + ], + "reselect": [ + ".run", + 822 + ], + "kb_ev": [ + ".bss", + 32 + ], + "kb_msg": [ + ".bss", + 28 + ], + "msg_first": [ + ".run", + 1421 + ], + "msg_shared": [ + ".run", + 1410 + ], + "msg_locked": [ + ".run", + 1399 + ], + "clear": [ + ".run", + 1354 + ], + "kb_settings": [ + ".run", + 0 + ], + "kb_key": [ + ".run", + 736 + ], + "kb_setpat": [ + ".run", + 242 + ], + "kb_projload": [ + ".run", + 1270 + ], + "kb_qact1": [ + ".run", + 556 + ], + "kb_projsave": [ + ".run", + 1204 + ], + "kb_save": [ + ".run", + 638 + ], + "kb_projnew": [ + ".run", + 1338 + ], + "kb_reload": [ + ".run", + 656 + ], + "kb_qact2": [ + ".run", + 572 + ], + "kb_getkit": [ + ".run", + 286 + ], + "kb_sndreload": [ + ".run", + 674 + ] + }, + "exports": [ + "kb_getkit", + "kb_key", + "kb_projload", + "kb_projnew", + "kb_projsave", + "kb_qact1", + "kb_qact2", + "kb_reload", + "kb_save", + "kb_setpat", + "kb_settings", + "kb_sndreload" + ], + "imports": [ + "core_additem" + ], + "weak": [], + "relocs": [ + [ + ".run", + 10, + "abs32", + "sym:core_additem", + 0 + ], + [ + ".run", + 66, + "abs32", + "sec:.bss", + 0 + ], + [ + ".run", + 80, + "abs32", + "sec:.bss", + 0 + ], + [ + ".run", + 120, + "abs32", + "sec:.bss", + 0 + ], + [ + ".run", + 144, + "abs32", + "sec:.bss", + 0 + ], + [ + ".run", + 244, + "abs32", + "sec:.bss", + 0 + ], + [ + ".run", + 250, + "abs32", + "sec:.bss", + 20 + ], + [ + ".run", + 288, + "abs32", + "sec:.bss", + 20 + ], + [ + ".run", + 420, + "abs32", + "sec:.bss", + 4 + ], + [ + ".run", + 518, + "abs32", + "sec:.bss", + 0 + ], + [ + ".run", + 524, + "abs32", + "sec:.bss", + 20 + ], + [ + ".run", + 590, + "abs32", + "sec:.bss", + 20 + ], + [ + ".run", + 700, + "abs32", + "sec:.bss", + 4 + ], + [ + ".run", + 764, + "abs32", + "sec:.bss", + 24 + ], + [ + ".run", + 780, + "abs32", + "sec:.bss", + 24 + ], + [ + ".run", + 788, + "abs32", + "sec:.bss", + 20 + ], + [ + ".run", + 866, + "abs32", + "sec:.bss", + 32 + ], + [ + ".run", + 896, + "abs32", + "sec:.bss", + 32 + ], + [ + ".run", + 920, + "abs32", + "sec:.bss", + 32 + ], + [ + ".run", + 938, + "abs32", + "sec:.bss", + 64 + ], + [ + ".run", + 956, + "abs32", + "sec:.bss", + 28 + ], + [ + ".run", + 1046, + "abs32", + "sec:.bss", + 4 + ], + [ + ".run", + 1190, + "abs32", + "sec:.bss", + 28 + ], + [ + ".run", + 1242, + "abs32", + "sec:.bss", + 0 + ], + [ + ".run", + 1312, + "abs32", + "sec:.bss", + 0 + ], + [ + ".run", + 1356, + "abs32", + "sec:.bss", + 0 + ], + [ + ".run", + 1370, + "abs32", + "sec:.run", + 18 + ], + [ + ".run", + 1374, + "abs32", + "sec:.run", + 56 + ], + [ + ".run", + 1378, + "abs32", + "sec:.run", + 140 + ], + [ + ".run", + 1382, + "abs32", + "sec:.run", + 98 + ] + ], + "sites": [ + { + "addr": "0x40094f14", + "len": 8, + "stock_sha256": "4997842f477c42235c625d7ba815c13fc3a07a0c57335d4361007e1288ff0795", + "new": "4ef9000000004e71", + "kind": "code", + "relocs": [ + [ + 2, + "abs32", + "sym:kb_setpat", + 0 + ] + ] + }, + { + "addr": "0x4014df66", + "len": 6, + "stock_sha256": "25f6cf58764096a92fba2355b3a003ad25d064d44e1e91102deb6abcadbed9d7", + "new": "4ef900000000", + "kind": "code", + "relocs": [ + [ + 2, + "abs32", + "sym:kb_getkit", + 0 + ] + ] + }, + { + "addr": "0x40095f08", + "len": 6, + "stock_sha256": "e546d4a005b1ba895fcdb1eff85edbca6c362d0359e3ce5ed454b6320228bc21", + "new": "4ef900000000", + "kind": "code", + "relocs": [ + [ + 2, + "abs32", + "sym:kb_qact1", + 0 + ] + ] + }, + { + "addr": "0x40096236", + "len": 6, + "stock_sha256": "e546d4a005b1ba895fcdb1eff85edbca6c362d0359e3ce5ed454b6320228bc21", + "new": "4ef900000000", + "kind": "code", + "relocs": [ + [ + 2, + "abs32", + "sym:kb_qact2", + 0 + ] + ] + }, + { + "addr": "0x400278f0", + "len": 8, + "stock_sha256": "da84c1f842d053771b08911c8ed517551ad95f3019433555c6327cd2698f25d7", + "new": "4ef9000000004e71", + "kind": "code", + "relocs": [ + [ + 2, + "abs32", + "sym:kb_save", + 0 + ] + ] + }, + { + "addr": "0x40027d3a", + "len": 8, + "stock_sha256": "e60937176ed83d52936ca7977d2a4082ed1ac3017ff960831e4d5f7ebb5b9250", + "new": "4ef9000000004e71", + "kind": "code", + "relocs": [ + [ + 2, + "abs32", + "sym:kb_reload", + 0 + ] + ] + }, + { + "addr": "0x40029ada", + "len": 8, + "stock_sha256": "f7fddeefeac300af619b7028a954dc595076d9d098da7090973c1cbc1f649ec0", + "new": "4ef9000000004e71", + "kind": "code", + "relocs": [ + [ + 2, + "abs32", + "sym:kb_sndreload", + 0 + ] + ] + }, + { + "addr": "0x4000eb10", + "len": 8, + "stock_sha256": "52dccc03e103dca3839c839017cffce1d4a1e675d8dfb2804764141e86c63841", + "new": "4ef9000000004e71", + "kind": "code", + "relocs": [ + [ + 2, + "abs32", + "sym:kb_projsave", + 0 + ] + ] + }, + { + "addr": "0x4000e7f4", + "len": 8, + "stock_sha256": "3e47fdc2a5af6492a822beaa4ccd4bb53d5f5b2111c689c9f6f1cca2a3df15e2", + "new": "4ef9000000004e71", + "kind": "code", + "relocs": [ + [ + 2, + "abs32", + "sym:kb_projload", + 0 + ] + ] + }, + { + "addr": "0x4001570e", + "len": 8, + "stock_sha256": "a04973fb79ed0896aa768e97902a85f61a10ad9d106955b3fe7a112c76d0e51f", + "new": "4ef9000000004e71", + "kind": "code", + "relocs": [ + [ + 2, + "abs32", + "sym:kb_projnew", + 0 + ] + ] + } + ], + "collections": {}, + "contribute": [ + { + "to": "ev_settings", + "order": 50, + "data": "00000000", + "relocs": [ + [ + 0, + "abs32", + "sym:kb_settings", + 0 + ] + ], + "claims": [] + }, + { + "to": "ev_key", + "order": 50, + "data": "00000000", + "relocs": [ + [ + 0, + "abs32", + "sym:kb_key", + 0 + ] + ], + "claims": [] + } + ], + "copied": [], + "resources": { + "regions": [], + "names": [ + "settings:KIT PER BANK", + "projdata:KBLK" + ], + "core": "2.0a" + }, + "requires": [ + "core" + ], + "conflicts": [], + "signature": null +} From 172c9f36925c6d36c3c7c4dccce4833ce3f75910 Mon Sep 17 00:00:00 2001 From: STEPHEN <277114827+ZOGV@users.noreply.github.com> Date: Sat, 14 Nov 2026 16:16:07 +0100 Subject: [PATCH 010/415] digitone/kitbank 0.2.0-experimental: elekloader catalog record for the OS 1.44 package Co-Authored-By: Claude Opus 5.5 --- .../elekloader-kitbank-2026-11-14.json | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 sdk/imports/elekloader-kitbank-2026-11-14.json diff --git a/sdk/imports/elekloader-kitbank-2026-11-14.json b/sdk/imports/elekloader-kitbank-2026-11-14.json new file mode 100644 index 0000000000..40ac47e04a --- /dev/null +++ b/sdk/imports/elekloader-kitbank-2026-11-14.json @@ -0,0 +1,34 @@ +{ + "schema": 1, + "kind": "elekloader-catalog", + "revision": "kitbank-2026-11-14", + "about": "Modwerk source-only kitbank package for Digitone OS 1.44, compiled from sdk/digitone/modules/kitbank.", + "cores": [], + "mods": [ + { + "file": "kitbank-0.2.0-experimental-os1.44.elemod", + "sha256": "4eb689a968d29038fe20516fb3729c7e58e1c99dc2ee428f7c5353887d1e7d9d", + "id": "kitbank", + "version": "0.2.0-experimental", + "device": "digitone-mk1", + "os": "1.44", + "license": "GPL-3.0-or-later", + "source": { + "repo": "repeat98/modwerk", + "commit": "aac54b3ce6197a672091a4c4eac21e022e3b8d0b", + "path": "sdk/imports/packages/kitbank/kitbank-0.2.0-experimental-os1.44.elemod" + }, + "title": "Kit per bank", + "requires": [ + "core" + ], + "conflicts": [], + "summary": "One kit per bank, like the Octatrack's parts: the 16 patterns of a bank play the kit of its first pattern, with per-pattern locks.", + "description": "KIT PER BANK in SETTINGS (off at power-on) gives the 16 patterns of a bank the kit of its first pattern (A01 for A01 to A16). Pattern changes inside a bank keep the sound, including queued changes, chains and song mode. Hold PTN and press YES to lock a pattern to its own copy of the sound. The switch and locks are saved with the project; old projects open with the switch off and play as stock.", + "category": "Sequencer", + "author": "ZOGV", + "needs_core": "2.0a", + "on_unit": "The author ran this exact build (core dn1 2.0a + kitbank 0.2.0-experimental, XX07) on a Digitone, OS 1.44 (2026-11-14) with a nine-step test list and reported that it worked. Reported as one statement: which steps were tried and for how long is not recorded." + } + ] +} From a7b4c6a719e27a3281f1145059824ba47800ed2b Mon Sep 17 00:00:00 2001 From: STEPHEN <277114827+ZOGV@users.noreply.github.com> Date: Sat, 14 Nov 2026 16:16:08 +0100 Subject: [PATCH 011/415] digitone/kitbank 0.2.0-experimental: vendor the pinned package (elekloader:update --overlay) Co-Authored-By: Claude Opus 5.5 --- .../kitbank-0.2.0-experimental-os1.44.elemod | 707 ++++++++++++++++++ 1 file changed, 707 insertions(+) create mode 100644 vendor/elekloader/catalog/kitbank-0.2.0-experimental-os1.44.elemod diff --git a/vendor/elekloader/catalog/kitbank-0.2.0-experimental-os1.44.elemod b/vendor/elekloader/catalog/kitbank-0.2.0-experimental-os1.44.elemod new file mode 100644 index 0000000000..6fd4e55aff --- /dev/null +++ b/vendor/elekloader/catalog/kitbank-0.2.0-experimental-os1.44.elemod @@ -0,0 +1,707 @@ +{ + "elemod": 2, + "id": "kitbank", + "version": "0.2.0-experimental", + "title": "kitbank", + "description": "One kit per bank, like the Octatrack's parts, with per-pattern locks: the 16 patterns of a bank share one sound, and [PTN]+[YES] gives a pattern its own.", + "category": "playback", + "author": "ZOGV", + "license": "GPL-3.0-or-later", + "target": { + "device": "digitone-mk1", + "product": "Digitone mk1", + "os": "1.44", + "syx_sha256": "d4f200d04484333d82822db7744e6484d0def8f2db8ddf55ee2b780cc13c9659", + "section3_sha256": "fce648a97c6c5d93b961732e8f8db6b02e0820c6d344c7e2131fa05a4b3168e4", + "section3_len": 2736304 + }, + "sections": { + ".run": { + "align": 4, + "len": 1432, + "parts": [ + [ + "hex", + "487a05582f2f00084eb900000000508f4e754e56fffc2f02486effff487a054c24082f084eb94018afc84fef000c2002242efff84e5e4e75206f0004205070004a390000000057c002800000000113c00000000041e800382f4800044ef9400e539e206f00042050202f000c671c5ec002800000000113c00000000041e800382f4800044ef9400e539e4e7570004a39000000006702701cd0b9419ee988222f000c2f4100042f400008222f00102f41000c222f00142f41001042af00144ef9400de4c00480407fd41465220c8000b08e80641a223c0001611d4c410000610001d4c0fc09880680413062944e7570004e7510390000000013c0000000006710202f00046100ffbe4a8067042f4000084fefffe848d71c1c4ef940094f1c4a3900000000671e202f00080c8000000080641222170c81400281466714610001762f4000082f02206f00084ef94014df6c6100000460ee220002810000000f6700009a4feffff048d70c0c2600246efff0d5fc00016121028000000070c0fc09880680413062942640223c00000262201ab09b6608538166f67200600272012003e68845f900000000d5c020030280000000077400141201824a81670201c2148220394138f2140480407fd4146522223c0001611d4c410000b0836614610000d6c0fc098806804130629423c04138f22020034cd70c0c4fef00104e754feffff848d7000310390000000013c000000000671020394138f2146100feaa4a8067022c804cd700034fef00084e756100ffce23d64138f2204ef940095f0e6100ffbe23d64138f2204ef94009623c4a39000000006728202f00040c8040027a00651c0c804002a2006414202f00100c800000008064086100003e2f4000104e756100ffcc4e56ffe448d70c3c4ef9400278f86100ffba4e56ffe048d70c7c4ef940027d426100ffa84e56ffc448d73cfc4ef940029ae22f082200e68941f90000000012301800205f2f000280000000070101660a201f0280000000704e75201f4e75206f00082228000c202800107204b2a8000c660e02800000000113c0000000006030720db2a8000c66284a390000000067204a3900000000671808000000670e080000036608610000aa6100000a70014e7570004e7520394138f2140480407fd4146576223c0001611d4c41000002800000000f06800000001a2f00206f001043f900000000721022d853810c81000000086604206f00104a8166ec201f41f9000000002140000c2140002c70012140001042a800304879000000002f2f000c4eb940016fc0508f4879000000002f2f000c4eb940016fc0508f2f39000000004eb94014a0602f004eb9400ae25c508f4e754feffff048d70c0c24394138f2140482407fd414650000c20c8200b08e80640000b8223c0001611d4c412002200202800000000f6608487a0183600000962602e68b45f900000000d5c32602028300000007700010120700670a07801480487a0150603a2f002002028000000070c0fc098806804130629420402002c0fc09880680413062942240223c0000026222d8538166fa201f07c01480487a010920026100fe402600c0fc098806804130629423c04138f22042a7487800012f032079419f0de0486802504eb94001da464fef001023df000000004cd70c0c4fef00104e75206f000441e8001c201067080c80454c4b50662020fc454c4b5020fc4b424c4b701420c043f900000000720520d9538166fa42904fefffd448d77cfc4ef94000eb186152206f00082008672c41e8001c20180c80454c4b50661e20180c804b424c4b66147014b098660e43f900000000720522d8538166fa4fefffdc48d77c3c4ef94000e7fc610e4fefffec48d70c1c4ef94001571641f90000000070054298538066fa4e75000000000000000000000000000000004b4954205045522042414e4b004b4954204c4f434b4544004b4954205348415245440042414e4b204b4954000000" + ] + ] + }, + ".bss": { + "align": 4, + "size": 96 + } + }, + "symbols": { + "PATS": [ + "abs", + 1082119188 + ], + "PSTRIDE": [ + "abs", + 90397 + ], + "KITS": [ + "abs", + 1093690004 + ], + "KSTRIDE": [ + "abs", + 2440 + ], + "PAT_ACT": [ + "abs", + 1094251028 + ], + "KIT_ACT": [ + "abs", + 1094251040 + ], + "MENU_LO": [ + "abs", + 1073904128 + ], + "MENU_HI": [ + "abs", + 1073914368 + ], + "STR_CTOR": [ + "abs", + 1075359688 + ], + "INVALIDATE": [ + "abs", + 1074680734 + ], + "BLIT": [ + "abs", + 1074652352 + ], + "CHECKBOXES": [ + "abs", + 1100933512 + ], + "GET_UI": [ + "abs", + 1075093600 + ], + "SHOW_MSG": [ + "abs", + 1074455132 + ], + "KA_LOAD": [ + "abs", + 1073863238 + ], + "PROJ_PTR": [ + "abs", + 1100942816 + ], + "KEY_PTN": [ + "abs", + 4 + ], + "PASTE_WRITE": [ + "abs", + 1073905990 + ], + "PASTE_KIT": [ + "abs", + 90401 + ], + "KEY_YES": [ + "abs", + 13 + ], + "KEY_STEP1": [ + "abs", + 26 + ], + "BRAIN_KEY": [ + "abs", + 1073835968 + ], + "GAP": [ + "abs", + 28 + ], + "ELKP": [ + "abs", + 1162627920 + ], + "KBLK": [ + "abs", + 1262636107 + ], + "BLK_SIZE": [ + "abs", + 20 + ], + "kb_row": [ + ".run", + 1370 + ], + "kb_label": [ + ".run", + 18 + ], + "kb_str": [ + ".run", + 1386 + ], + "kb_select": [ + ".run", + 56 + ], + "kb_on": [ + ".bss", + 0 + ], + "kb_change": [ + ".run", + 98 + ], + "kb_draw": [ + ".run", + 140 + ], + "bankkit": [ + ".run", + 196 + ], + "resolve": [ + ".run", + 692 + ], + "kb_live": [ + ".bss", + 20 + ], + "pastefix": [ + ".run", + 342 + ], + "kb_locks": [ + ".bss", + 4 + ], + "qfix": [ + ".run", + 508 + ], + "fixk": [ + ".run", + 588 + ], + "kb_ptn": [ + ".bss", + 24 + ], + "toggle": [ + ".run", + 978 + ], + "reselect": [ + ".run", + 822 + ], + "kb_ev": [ + ".bss", + 32 + ], + "kb_msg": [ + ".bss", + 28 + ], + "msg_first": [ + ".run", + 1421 + ], + "msg_shared": [ + ".run", + 1410 + ], + "msg_locked": [ + ".run", + 1399 + ], + "clear": [ + ".run", + 1354 + ], + "kb_settings": [ + ".run", + 0 + ], + "kb_key": [ + ".run", + 736 + ], + "kb_setpat": [ + ".run", + 242 + ], + "kb_projload": [ + ".run", + 1270 + ], + "kb_qact1": [ + ".run", + 556 + ], + "kb_projsave": [ + ".run", + 1204 + ], + "kb_save": [ + ".run", + 638 + ], + "kb_projnew": [ + ".run", + 1338 + ], + "kb_reload": [ + ".run", + 656 + ], + "kb_qact2": [ + ".run", + 572 + ], + "kb_getkit": [ + ".run", + 286 + ], + "kb_sndreload": [ + ".run", + 674 + ] + }, + "exports": [ + "kb_getkit", + "kb_key", + "kb_projload", + "kb_projnew", + "kb_projsave", + "kb_qact1", + "kb_qact2", + "kb_reload", + "kb_save", + "kb_setpat", + "kb_settings", + "kb_sndreload" + ], + "imports": [ + "core_additem" + ], + "weak": [], + "relocs": [ + [ + ".run", + 10, + "abs32", + "sym:core_additem", + 0 + ], + [ + ".run", + 66, + "abs32", + "sec:.bss", + 0 + ], + [ + ".run", + 80, + "abs32", + "sec:.bss", + 0 + ], + [ + ".run", + 120, + "abs32", + "sec:.bss", + 0 + ], + [ + ".run", + 144, + "abs32", + "sec:.bss", + 0 + ], + [ + ".run", + 244, + "abs32", + "sec:.bss", + 0 + ], + [ + ".run", + 250, + "abs32", + "sec:.bss", + 20 + ], + [ + ".run", + 288, + "abs32", + "sec:.bss", + 20 + ], + [ + ".run", + 420, + "abs32", + "sec:.bss", + 4 + ], + [ + ".run", + 518, + "abs32", + "sec:.bss", + 0 + ], + [ + ".run", + 524, + "abs32", + "sec:.bss", + 20 + ], + [ + ".run", + 590, + "abs32", + "sec:.bss", + 20 + ], + [ + ".run", + 700, + "abs32", + "sec:.bss", + 4 + ], + [ + ".run", + 764, + "abs32", + "sec:.bss", + 24 + ], + [ + ".run", + 780, + "abs32", + "sec:.bss", + 24 + ], + [ + ".run", + 788, + "abs32", + "sec:.bss", + 20 + ], + [ + ".run", + 866, + "abs32", + "sec:.bss", + 32 + ], + [ + ".run", + 896, + "abs32", + "sec:.bss", + 32 + ], + [ + ".run", + 920, + "abs32", + "sec:.bss", + 32 + ], + [ + ".run", + 938, + "abs32", + "sec:.bss", + 64 + ], + [ + ".run", + 956, + "abs32", + "sec:.bss", + 28 + ], + [ + ".run", + 1046, + "abs32", + "sec:.bss", + 4 + ], + [ + ".run", + 1190, + "abs32", + "sec:.bss", + 28 + ], + [ + ".run", + 1242, + "abs32", + "sec:.bss", + 0 + ], + [ + ".run", + 1312, + "abs32", + "sec:.bss", + 0 + ], + [ + ".run", + 1356, + "abs32", + "sec:.bss", + 0 + ], + [ + ".run", + 1370, + "abs32", + "sec:.run", + 18 + ], + [ + ".run", + 1374, + "abs32", + "sec:.run", + 56 + ], + [ + ".run", + 1378, + "abs32", + "sec:.run", + 140 + ], + [ + ".run", + 1382, + "abs32", + "sec:.run", + 98 + ] + ], + "sites": [ + { + "addr": "0x40094f14", + "len": 8, + "stock_sha256": "4997842f477c42235c625d7ba815c13fc3a07a0c57335d4361007e1288ff0795", + "new": "4ef9000000004e71", + "kind": "code", + "relocs": [ + [ + 2, + "abs32", + "sym:kb_setpat", + 0 + ] + ] + }, + { + "addr": "0x4014df66", + "len": 6, + "stock_sha256": "25f6cf58764096a92fba2355b3a003ad25d064d44e1e91102deb6abcadbed9d7", + "new": "4ef900000000", + "kind": "code", + "relocs": [ + [ + 2, + "abs32", + "sym:kb_getkit", + 0 + ] + ] + }, + { + "addr": "0x40095f08", + "len": 6, + "stock_sha256": "e546d4a005b1ba895fcdb1eff85edbca6c362d0359e3ce5ed454b6320228bc21", + "new": "4ef900000000", + "kind": "code", + "relocs": [ + [ + 2, + "abs32", + "sym:kb_qact1", + 0 + ] + ] + }, + { + "addr": "0x40096236", + "len": 6, + "stock_sha256": "e546d4a005b1ba895fcdb1eff85edbca6c362d0359e3ce5ed454b6320228bc21", + "new": "4ef900000000", + "kind": "code", + "relocs": [ + [ + 2, + "abs32", + "sym:kb_qact2", + 0 + ] + ] + }, + { + "addr": "0x400278f0", + "len": 8, + "stock_sha256": "da84c1f842d053771b08911c8ed517551ad95f3019433555c6327cd2698f25d7", + "new": "4ef9000000004e71", + "kind": "code", + "relocs": [ + [ + 2, + "abs32", + "sym:kb_save", + 0 + ] + ] + }, + { + "addr": "0x40027d3a", + "len": 8, + "stock_sha256": "e60937176ed83d52936ca7977d2a4082ed1ac3017ff960831e4d5f7ebb5b9250", + "new": "4ef9000000004e71", + "kind": "code", + "relocs": [ + [ + 2, + "abs32", + "sym:kb_reload", + 0 + ] + ] + }, + { + "addr": "0x40029ada", + "len": 8, + "stock_sha256": "f7fddeefeac300af619b7028a954dc595076d9d098da7090973c1cbc1f649ec0", + "new": "4ef9000000004e71", + "kind": "code", + "relocs": [ + [ + 2, + "abs32", + "sym:kb_sndreload", + 0 + ] + ] + }, + { + "addr": "0x4000eb10", + "len": 8, + "stock_sha256": "52dccc03e103dca3839c839017cffce1d4a1e675d8dfb2804764141e86c63841", + "new": "4ef9000000004e71", + "kind": "code", + "relocs": [ + [ + 2, + "abs32", + "sym:kb_projsave", + 0 + ] + ] + }, + { + "addr": "0x4000e7f4", + "len": 8, + "stock_sha256": "3e47fdc2a5af6492a822beaa4ccd4bb53d5f5b2111c689c9f6f1cca2a3df15e2", + "new": "4ef9000000004e71", + "kind": "code", + "relocs": [ + [ + 2, + "abs32", + "sym:kb_projload", + 0 + ] + ] + }, + { + "addr": "0x4001570e", + "len": 8, + "stock_sha256": "a04973fb79ed0896aa768e97902a85f61a10ad9d106955b3fe7a112c76d0e51f", + "new": "4ef9000000004e71", + "kind": "code", + "relocs": [ + [ + 2, + "abs32", + "sym:kb_projnew", + 0 + ] + ] + } + ], + "collections": {}, + "contribute": [ + { + "to": "ev_settings", + "order": 50, + "data": "00000000", + "relocs": [ + [ + 0, + "abs32", + "sym:kb_settings", + 0 + ] + ], + "claims": [] + }, + { + "to": "ev_key", + "order": 50, + "data": "00000000", + "relocs": [ + [ + 0, + "abs32", + "sym:kb_key", + 0 + ] + ], + "claims": [] + } + ], + "copied": [], + "resources": { + "regions": [], + "names": [ + "settings:KIT PER BANK", + "projdata:KBLK" + ], + "core": "2.0a" + }, + "requires": [ + "core" + ], + "conflicts": [], + "signature": null +} From d4ebf607ce0eeca7db8b9a72616ef6cc00afe57f Mon Sep 17 00:00:00 2001 From: jonathanwardle1992-beep Date: Mon, 16 Nov 2026 12:50:24 +0000 Subject: [PATCH 012/415] Drop the unused Screen Off assembly and name the tried packages by their hashes. The unit is built from screen_off.c. The assembly copy was a second source of the same chord. --- sdk/drafts/screen-off/TESTING.md | 8 +- sdk/drafts/screen-off/manifest.py | 9 +- sdk/drafts/screen-off/octamod.module.json | 2 +- sdk/drafts/screen-off/screen_off.c | 2 +- sdk/drafts/screen-off/screen_off.s | 121 ---------------------- 5 files changed, 8 insertions(+), 134 deletions(-) delete mode 100644 sdk/drafts/screen-off/screen_off.s diff --git a/sdk/drafts/screen-off/TESTING.md b/sdk/drafts/screen-off/TESTING.md index e449ef0583..9fbf24c122 100644 --- a/sdk/drafts/screen-off/TESTING.md +++ b/sdk/drafts/screen-off/TESTING.md @@ -16,11 +16,9 @@ Passed, 21 checks, 6 November 2026, on this computer (mingw gcc, `python3 -B ver - UP released before NO still keeps the blank, and that NO release is taken. - A garbage state word behaves as a fresh module: screen on, and the frame is not cleared. -`screen_off.s` is the same decisions, written for the unit. It was not assembled here. - ## USB trial -7 November 2026. Package `C:\Users\Roy Walker\modwerk-builds\screen-off.mwrm` (340 bytes, ABI 8, title `screen-off`, hooks `module_tick`, `module_draw`, `module_key`, no stock sites). Built with WSL `m68k-elf-gcc` 16.2.0 from `screen_off.c`. `npm run device -- try` for 8 seconds, without `--accept`, on the unit that answered `OCTATRACK 1.40C`, base `671f0afd406290cb…`. +7 November 2026. Package SHA-256 `2a76c9e26118c0d6e314b8bda69df368abeaee46d9d35fbedf4f69ffba8286fd` (340 bytes, ABI 8, title `screen-off`, hooks `module_tick`, `module_draw`, `module_key`, no stock sites). Built with WSL `m68k-elf-gcc` 16.2.0 from `screen_off.c`. `npm run device -- try` for 8 seconds, without `--accept`, on the unit that answered `OCTATRACK 1.40C`, base `671f0afd406290cb…`. The slot stayed running. The tick counter moved from 941389 to 941812. The diagnostic value stayed `0x0`. Refusals stayed at 1. The trial printed `rolled back` and left upload mode in 3 ms, then `normal, generation 5, active b068a052ccbb6d63…`. No SAVE, no flash, no power cycle, no Keep. @@ -28,13 +26,13 @@ The diagnostic value is the module's own tick word. It stayed `0x0` for all eigh The chord failed for a real reason in that package. `so_key` treated UP as down only after it had seen UP's own press. A press from before the module was installed never arrives, and the base's status handler (order 89) can take a press before this hook (order 90). NO then saw UP as up and did nothing. The panel's held-key row at `0x46100b18` already has the key under the finger; the base reads that row in `boot.c` before it posts the event. The draft now toggles when that row says UP is down, as well as when this hook saw the press. Returning 1 still consumes NO. `module_draw` still clears the composed frame after stock has drawn it (`core-ot` `ev_draw`), and `0x4004d948(-1)` only asks for that compose. The host gate passed 24 checks on 7 November 2026. -A second package, `C:\Users\Roy Walker\modwerk-builds\screen-off-2.mwrm`, was tried the same way for 180 seconds, without `--accept`, on the same unit (`OCTATRACK 1.40C`, base `671f0afd406290cb…`). It reached the slot. The glass was not watched, so this does not show that the chord blanks it. +A second package, SHA-256 `14aea62fbfef825e2ea23cc4baf6e01a2f2b0bf44b215db28748c1a546aeae0c`, was tried the same way for 180 seconds, without `--accept`, on the same unit (`OCTATRACK 1.40C`, base `671f0afd406290cb…`). It reached the slot. The glass was not watched, so this does not show that the chord blanks it. The same package was tried again without `--accept`, from 21:08:12. The slot was running. At 21:08:33 the diagnostic left `0x0` and read `0x3`. The last line in the log was `0x40` at 21:12:07: 32 toggles, blank off. The person at the unit reported that hold UP, tap NO blanks the screen and the same chord restores it. The log never printed `rolled back`. The link then dropped. A later `npm run device -- status` answered `normal, generation 0`, with no slot running. No SAVE, no flash, no power cycle, no Keep. ## Not tested -- An MKI, and a card install. The MKII chord above is a report from the person at the unit, on the RAM trial of `screen-off-2.mwrm`. +- An MKI, and a card install. The MKII chord above is a report from the person at the unit, on the RAM trial of package `14aea62fbfef825e2ea23cc4baf6e01a2f2b0bf44b215db28748c1a546aeae0c`. - The package size, the executed instructions of the chord, and the cost of clearing the frame. - The stock screen saver while this blank is on, and while a pattern plays. - Whether the MKII panel can be powered down as well as painted black. diff --git a/sdk/drafts/screen-off/manifest.py b/sdk/drafts/screen-off/manifest.py index 7e48881cc6..30176a55c8 100644 --- a/sdk/drafts/screen-off/manifest.py +++ b/sdk/drafts/screen-off/manifest.py @@ -6,11 +6,11 @@ chord, and clears the frame while the blank is on. Audio, the sequencer, MIDI and the lamps are untouched. UP alone and NO alone stay stock. -The unit is screen_off.s, the same decisions as screen_off.c. The host -gate runs the C. The author reports the chord on a MKII. An MKI is not tried. +The host gate runs screen_off.c. The author reports the chord on a MKII. +An MKI is not tried. """ -from remix.schema import Category, Gate, Kind, Linked, Module, Proof +from remix.schema import Category, Gate, Kind, Module, Proof MODULE = Module( name="screen-off", @@ -22,8 +22,5 @@ proof=Proof.UNTESTED, proof_note="Host gate on screen_off.c. The author reports the chord on a MKII.", doc="Hold UP and tap NO to blank the screen until the same chord. Other keys keep working.", - linked=( - Linked("screenoff", "modules/screen-off/screen_off.s"), - ), gates=(Gate("modules/screen-off/verify.py", remix_arg=False),), ) diff --git a/sdk/drafts/screen-off/octamod.module.json b/sdk/drafts/screen-off/octamod.module.json index 2b9a081ab2..06a483005f 100644 --- a/sdk/drafts/screen-off/octamod.module.json +++ b/sdk/drafts/screen-off/octamod.module.json @@ -65,7 +65,7 @@ "value": null, "unit": "bytes", "method": "unmeasured", - "conditions": "screen_off.s, one key hook, one draw hook and one tick hook. No stock site, no DSP code. The package size waits on the ColdFire toolchain.", + "conditions": "screen_off.c, one key hook, one draw hook and one tick hook. No stock site, no DSP code.", "source": "TESTING.md" }, "processing": { diff --git a/sdk/drafts/screen-off/screen_off.c b/sdk/drafts/screen-off/screen_off.c index b9416b2b8b..7b76155dde 100644 --- a/sdk/drafts/screen-off/screen_off.c +++ b/sdk/drafts/screen-off/screen_off.c @@ -23,7 +23,7 @@ * the chord is taken and stock would not redraw it. * * State lives in initialised data. A bad magic word is a fresh module: - * screen on, nothing held. screen_off.s is the same decisions for the unit. + * screen on, nothing held. The unit runs this file. */ #include diff --git a/sdk/drafts/screen-off/screen_off.s b/sdk/drafts/screen-off/screen_off.s deleted file mode 100644 index fca3cdb6aa..0000000000 --- a/sdk/drafts/screen-off/screen_off.s +++ /dev/null @@ -1,121 +0,0 @@ -| SPDX-License-Identifier: MIT -| SPDX-FileCopyrightText: 2026 jonathanwardle1992-beep -| -| SCREEN OFF, the ColdFire unit. Same decisions as screen_off.c, which the -| host gate runs. Hold UP (0x33) and tap NO (0x32) to toggle the blank. -| The release of that NO is taken as well. Every other key returns 0. -| While blanked, so_draw clears the 1024-byte composed frame. -| -| so_at is the one relocated word. A magic other than SOF1 is a fresh -| module (screen on). UP also counts as down when bit 3 of the held-key -| row at 0x46100b1e is set (code 0x33, the row stock updates before the -| event). 0x4004d948(-1) marks the display for the UI flush. - - .text - .global so_key, so_draw, so_tick - - .equ KEY_NO, 0x32 - .equ KEY_UP, 0x33 - .equ MAGIC, 0x534F4631 - -so_ready: - move.l so_at,%a0 - cmpi.l #MAGIC,(%a0) - beq.s ready_ok - clr.l (%a0) - clr.l 4(%a0) - clr.l 8(%a0) - move.l #MAGIC,(%a0) -ready_ok: - rts - -so_key: - move.l 4(%sp),%d0 - move.l 8(%sp),%d1 - jsr so_ready - cmpi.l #KEY_UP,%d0 - bne.s key_not_up - tst.l %d1 - beq.s key_up_release - move.b #1,4(%a0) - clr.l %d0 - rts -key_up_release: - clr.b 4(%a0) - clr.l %d0 - rts -key_not_up: - cmpi.l #KEY_NO,%d0 - bne.s key_pass - tst.l %d1 - beq.s key_no_release - tst.b 6(%a0) - bne.s key_no_repeat - move.b #1,6(%a0) - tst.b 4(%a0) - bne.s key_toggle - btst #3,0x46100b1e.l - beq.s key_pass -key_toggle: - eori.b #1,5(%a0) - move.b #1,7(%a0) - addq.l #1,8(%a0) - moveq #-1,%d0 - move.l %d0,-(%sp) - jsr 0x4004d948.l - addq.l #4,%sp - moveq #1,%d0 - rts -key_no_repeat: - moveq #0,%d0 - tst.b 7(%a0) - beq.s key_repeat_out - moveq #1,%d0 -key_repeat_out: - rts -key_no_release: - moveq #0,%d0 - tst.b 7(%a0) - beq.s key_release_clear - moveq #1,%d0 -key_release_clear: - clr.b 6(%a0) - clr.b 7(%a0) - rts -key_pass: - clr.l %d0 - rts - -so_draw: - move.l 4(%sp),%a1 - jsr so_ready - tst.b 5(%a0) - beq.s draw_out - cmpa.l #0,%a1 - beq.s draw_out - move.w #1023,%d0 -draw_clear: - clr.b (%a1)+ - dbf %d0,draw_clear -draw_out: - rts - -so_tick: - move.l 4(%sp),%a1 - jsr so_ready - move.l 8(%a0),%d0 - add.l %d0,%d0 - moveq #0,%d1 - move.b 5(%a0),%d1 - or.l %d1,%d0 - move.l %d0,(%a1) - rts - - .data - .align 2 -so_at: - .long so_state -so_state: - .long 0 - .long 0 - .long 0 From 19a88256b42909c8c948d78a631999b19477965e Mon Sep 17 00:00:00 2001 From: STEPHEN <277114827+ZOGV@users.noreply.github.com> Date: Mon, 16 Nov 2026 19:07:59 +0100 Subject: [PATCH 013/415] digitone/kitbank 0.2.0-experimental: review fixes (project data list, system category, PTN+YES in chains, one build's evidence) - kb_projsave rewrites only the KBLK record of the header's ELKP list and keeps every other tool's record; kb_projload finds KBLK anywhere in the list. - PTN+YES hands no trig when a trig was already pressed under the same PTN, so a chain built with PTN+trigs is not changed. - category system; key:PTN+YES claimed; README stock-flow entries and the three project save/load sites in Compatibility; TESTING.md and the captures describe the submitted build (XX08), captures redone with digiemu c1b5735. Co-Authored-By: Claude Opus 5.5 --- sdk/digitone/modules/kitbank/README.md | 20 ++- sdk/digitone/modules/kitbank/TESTING.md | 34 ++-- sdk/digitone/modules/kitbank/build.json | 3 +- .../modules/kitbank/media/capture.json | 25 +-- .../modules/kitbank/modwerk.module.json | 24 +-- sdk/digitone/modules/kitbank/src/kitbank.S | 152 ++++++++++++++---- 6 files changed, 186 insertions(+), 72 deletions(-) diff --git a/sdk/digitone/modules/kitbank/README.md b/sdk/digitone/modules/kitbank/README.md index fef85ae4f3..9c5925d1c8 100644 --- a/sdk/digitone/modules/kitbank/README.md +++ b/sdk/digitone/modules/kitbank/README.md @@ -12,7 +12,7 @@ kitbank gives the original Digitone and Digitone Keys (OS 1.44) one kit per bank - FUNC+YES / FUNC+NO, SAVE TO PROJ / RELOAD FROM PROJ and [T1–4]+[NO] act on the kit the pattern plays. - A pasted pattern never overwrites its bank's sound: if the pasted sound differs, the pattern becomes locked with it. - The switch and the locks are saved with the project. Existing projects, and any project saved without kitbank, open with the switch off and play exactly as on the stock OS. -- Nothing is rewritten in the project: every pattern keeps its own kit, so unticking gives each pattern its own sound again, and a project saved with kitbank still opens on the stock OS. +- Nothing is rewritten in the project: every pattern keeps its own kit, so unticking gives each pattern its own sound again. A project saved with kitbank opens on the stock OS with each pattern's own, older kit (see [Changes to stock flows](#changes-to-stock-flows)). ## Controls @@ -47,16 +47,26 @@ A practical layout: one bank per track (intro, verse, break... as 16 patterns sh ## Compatibility and limitations - Original Digitone (Mk1) and Digitone Keys, OS 1.44, with core-dn1 2.0a for 1.44. Not ported to OS 1.43. The Keys runs the same OS file but has not been tried. -- The switch and the locks live in the project header: an elekloader-format `ELKP` block tagged `KBLK`, in the bytes 0x1c..0x200 the stock OS keeps as they are. kitbank writes it with its own project save hook, because core-dn1 2.0a for 1.44 has no project data; it leaves the area alone when another tool's data is already there. It can move to `core_projdata` when a 1.44 core provides it. +- **Project data.** The switch and the locks are one `KBLK` record in the project header's elekloader-format `ELKP` list (bytes 0x1c..0x200, which the stock OS keeps as they are). kitbank rewrites only its own `KBLK` record and keeps every other tool's record where it is; on load it finds `KBLK` anywhere in the list. A header that holds something other than an `ELKP` list is left alone, and the switch and locks are then not saved with that project. +- **The three project save/load sites.** Because core-dn1 2.0a for 1.44 has no project data, kitbank patches these itself: `Project_serialize` at 0x4000eb10 (save: writes the `KBLK` record), `Project_deserialize` at 0x4000e7f4 (load: reads it back; no record means off and no lock) and the new-project routine at 0x4001570e (off, no lock). They become a core hook (`core_projdata`) in a later Digitone core for 1.44, and kitbank will then move to it in an update. Projects saved now stay readable then, because the record format is the core's. - kitbank patches ten stock OS sites itself: immediate pattern change, the kit lookup used by the screen, edits and pastes, two queued-change sites, kit save, kit reload, sound reload (these three only when called from the pattern menus, so the automatic saves after copy, paste and clear keep each pattern's own slot), and project save, load and new. A mod patching the same bytes cannot be combined; if other mods need kit selection or project data, these sites should become core hooks. - A pattern pasted into a bank's first pattern replaces the bank's kit, as the stock OS replaces that pattern's kit. -- After PTN+YES, kitbank hands the OS the active pattern's trig while PTN is still held, so the OS reselects the same pattern and opens no SELECT PTN popup when PTN is released. - For under a second after PTN+YES, a knob turn can be ignored while the OS reloads the kit into the tracks (measured in the emulator). - Undo of a paste was not tried. +### Changes to stock flows + +Each change below applies only while KIT PER BANK is ticked, except the SETTINGS row itself. Unticking the row (SETTINGS, last row, YES) turns all of them off at the next pattern change, and a project without kitbank's record opens unticked. The flows compared with and without the module are listed in [TESTING.md](TESTING.md). + +- **A per-project row in SETTINGS.** *What changes:* SETTINGS gets a last row, KIT PER BANK, saved with the project rather than with the unit. *Why:* sharing kits is a choice about how a project is laid out, so it belongs to the project; a new page or gesture was not needed for one checkbox. *What you see:* one more row under the stock ones; nothing else moves. *Off:* it is unticked in every new and existing project. +- **FUNC+YES / FUNC+NO and the kit save and reload menus act on the bank's kit.** *What changes:* on a shared pattern, FUNC+YES (save kit), FUNC+NO (reload kit), SAVE TO PROJ / RELOAD FROM PROJ in the pattern menu and [T1–4]+[NO] (reload a sound) save to or reload from the bank's kit, the one the pattern plays. On a locked pattern they act on its own kit, as on the stock OS. *Why:* the stock routines pick the kit by pattern number; left alone, they would save or reload a kit the pattern no longer plays, and the musician would hear nothing change. *What you see:* the stock messages; the result is heard on every shared pattern of the bank. *Off:* untick KIT PER BANK. The automatic saves the OS makes after copy, paste and clear still use each pattern's own slot. +- **A paste can lock a pattern.** *What changes:* pasting a pattern into anything but a bank's first pattern writes its kit into the target's own slot; if that kit differs from the bank's, the target becomes locked (KIT LOCKED behaviour), and if it is the same, the target shares the bank's kit. *Why:* the stock paste writes the kit into the slot the pattern plays, which with sharing would overwrite the whole bank's sound from one pattern. *What you see:* the pasted pattern sounds as the one copied. *Off:* untick KIT PER BANK. Pasting into a bank's first pattern replaces the bank's kit, as on the stock OS. +- **PTN+YES locks or shares the active pattern.** *What changes:* with PTN held, YES locks the active pattern (KIT LOCKED) or shares it again (KIT SHARED); on a bank's first pattern it shows BANK KIT. Then kitbank hands the OS a press of the active pattern's trig while PTN is still held, so the OS reselects the same pattern and does not open the SELECT PTN popup when PTN is released. When a trig was already pressed under the same PTN (a chain being built with PTN+trigs), it hands nothing, so the chain is not changed. *Why:* the lock is per pattern, and PTN is the key a musician holds to act on patterns; on the stock OS, YES does nothing while PTN is held, so no stock gesture moves. *What you see:* the message in the top bar, and the pattern keeps playing. *Off:* untick KIT PER BANK; PTN+YES then does nothing, as on the stock OS. Claimed as `key:PTN+YES`. +- **A project saved with kitbank opens on the stock OS with each pattern's own, older kit.** *What changes:* kitbank never rewrites a pattern's own kit slot; sound edits on a shared pattern go to the bank's first pattern. On the stock OS, or with KIT PER BANK unticked, each pattern plays its own slot again: the kit it had before it started sharing, or when it was last locked. *Why:* keeping each pattern's own slot makes the setting reversible and keeps the project readable by the stock OS. *What you see:* on the stock OS, the patterns of a bank sound as they did before kitbank, and the bank's first pattern has the shared sound. To keep the shared sound on every pattern for the stock OS, copy the bank's first pattern's kit to the others (lock each one with PTN+YES, then save the project) before going back. + ## Tests and measurements -The Modwerk evidence tier is `none`. [TESTING.md](TESTING.md) records the emulator runs: stock behaviour when unticked, bank kits for immediate and queued pattern changes and song mode, edits, kit save and reload, PTN+YES locks, pastes, the switch and locks through a project save and load, and a full check against the stock OS. Memory: 1,528 B (1,432 B code, 96 B state), excluding the core. No audio-rate work. +[TESTING.md](TESTING.md) describes one build, the one submitted here: core-dn1 2.0a + kitbank 0.2.0-experimental for OS 1.44, linked as `XX08`. It records the author's hardware run and the emulator runs on that build: stock behaviour when unticked, bank kits for immediate and queued pattern changes, chains and song mode, edits, kit save and reload, PTN+YES locks, pastes, the switch and locks through a project save and load, other tools' `ELKP` records kept, and a full check against the stock OS. Memory: see TESTING.md. No audio-rate work. ## Authorship and licences @@ -67,7 +77,7 @@ The module is licensed under [GPL-3.0-or-later](LICENSE). ## Screens and audio -Firmware-rendered emulator captures on OS 1.44. The [capture record](media/capture.json) includes build identities, panel inputs, timestamps and PNG hashes; it also records that they were taken with a digiemu revision other than the reviewed one. [Capture rights](media/LICENSE.md) preserve the underlying interface rights. The [thumbnail](media/thumbnail.svg) is an illustration. No audio demonstration is claimed. +Firmware-rendered emulator captures of the submitted build (XX08) on OS 1.44, taken with the reviewed digiemu revision `c1b5735` and the unchanged capture script. The [capture record](media/capture.json) includes build identities, panel inputs, timestamps and PNG hashes. [Capture rights](media/LICENSE.md) preserve the underlying interface rights. The [thumbnail](media/thumbnail.svg) is an illustration. No audio demonstration is claimed. ![SETTINGS: KIT PER BANK unticked](media/settings-off.png) diff --git a/sdk/digitone/modules/kitbank/TESTING.md b/sdk/digitone/modules/kitbank/TESTING.md index 35997ad1a6..2a82b3b1ad 100644 --- a/sdk/digitone/modules/kitbank/TESTING.md +++ b/sdk/digitone/modules/kitbank/TESTING.md @@ -1,18 +1,14 @@ # kitbank testing -## In Modwerk +Everything below describes one build, the one submitted: core-dn1 2.0a + kitbank 0.2.0-experimental, linked for OS 1.44 from the stock file (`d4f200d0…`) with `node scripts/link-image.mjs --version XX08`. Built-image SHA-256: `6c94a77ef70ae10ebdde390bce1252dffdc946f47aca168b42cd880b9494c49c`. Firmware and derived images stay private. -### Hardware (author-reported) +## Hardware (author-reported) -Evidence tier: `author-hardware`. On 2026-11-14 the author flashed the module-alone build XX07 (core dn1 2.0a + kitbank 0.2.0-experimental, SHA-256 `30e54a811681c0bcc57f8b1dd026473d346afcaf86e83c4332b6331c4a97eaf0`) on their Digitone, OS 1.44, with a nine-step list (the switch, bank kits while playing, an edit shared by the bank, PTN+YES, project save and power cycle, paste, song mode), and reported: "it worked". The result was one statement, not step by step; which steps were tried and for how long was not reported. Details: [evidence/hardware-testing.json](evidence/hardware-testing.json). +HARDWARE_XX08 -### Emulator +## Emulator -The XX07 build passes `test_kitlock_modwerk`, `test_kitbank_copy` and `test_kitbank_song`, and the full check against stock with the switch off: build PASS, 10 of 10 screens identical, audio identical over 8.3 s, render margin 40.5 % and CPU busy 58 % as stock (the screen stream first differs at 7.8 s, between captures). The runs below are in the digiemu emulator (revision `f57c2f237e84b8ff91bc3adb2a2931bccf9928e9`, not the reviewed `c1b5735…`, see [capture.json](media/capture.json)), on a local image linked with `node scripts/link-image.mjs --version XX06` from the stock OS 1.44 file (`d4f200d0…`), core-dn1 2.0a for 1.44 and this module (0.2.0-experimental). Built-image SHA-256: `7d14c8272d861704983903f36a5018edef5647f708ad3658a8899e8a86e798be`. Firmware and derived images stay private. - -## Behaviour (emulator, real panel inputs) - -The scripts read the live pattern and engine kit pointers (`0x4138f214`, `0x4138f220`) and the 128 live kits, and drive the unit only through panel keys and encoders. The same redirections were first built as a standalone always-on patch and run on the author's own unit; that build is not a Modwerk build and is not part of this evidence. +digiemu revision `c1b5735835923e328f8b4950d6ba927875e5b669` (the reviewed one), with its six pinned Unicorn patches (`tools/install-patched-unicorn.sh`; `emu.unicorn_compat`: compatible). The scripts drive the unit only through panel keys and encoders, and read the live pattern and engine kit pointers (`0x4138f214`, `0x4138f220`), the 128 live kits and, for the project data, the header the stock save and load routines receive. The emulator is not hardware evidence. | Run | Result | | --- | --- | @@ -21,7 +17,7 @@ The scripts read the live pattern and engine kit pointers (`0x4138f214`, `0x4138 | Ticked, playing: queued changes A01→A02, →B01, →B02, →A01 each take the bank's kit; unticked again, A02 plays its own kit | PASS | | Ticked, project saved: FUNC+YES on A02, edit, FUNC+NO → kit A01 back to the saved state; FUNC+NO on A01 → the same | PASS | | PTN+YES on A03: its kit becomes a copy of A01's, the engine moves to it (KIT LOCKED); an edit on A03 leaves A01 untouched; A02 still plays A01's kit | PASS | -| Project saved as 002; project 001 (no KBLK block) loaded → switch off, A02 plays its own kit; 002 loaded again → switch on, A03 still locked with its edited sound | PASS | +| Project saved as 002; project 001 (no KBLK record) loaded → switch off, A02 plays its own kit; 002 loaded again → switch on, A03 still locked with its edited sound | PASS | | PTN+YES on A03 again → shared (KIT SHARED); on A01 → BANK KIT, nothing locked; PTN+NO → nothing | PASS | | Paste A05 (shared) → A06: bank kit untouched, A06 shares it; paste A05 → A01: bank kit unchanged | PASS | | Paste A03 (locked, edited) → A07: bank kit untouched, A07 locked with A03's sound; paste B02 → A08: bank A untouched, A08 locked with B01's sound | PASS | @@ -29,15 +25,27 @@ The scripts read the live pattern and engine kit pointers (`0x4138f214`, `0x4138 | Song mode, song A01 → A02 → B01 looping twice: (pattern, kit) = (A01, A01) (A02, A01) (B01, B01); with A02 locked: (A02, A02) | PASS | | PTN+YES while playing on A05: A05 keeps playing, locked; again: shared | PASS | | After PTN+YES the SELECT PTN popup does not open (the module reselects the active pattern) | PASS (screens) | +| **Project data, other tools' records.** The header handed to the stock save is set to an `ELKP` list `ZZZ1` (6 B), a stale `KBLK` of 8 B, `ZZZ2` (4 B); saved as 002 | PASS: each of the three serializations of that save holds `ZZZ1`, `ZZZ2`, then a new 20-byte `KBLK` | +| 001 loaded, then 002: the header read from the card is `ZZZ1`, `ZZZ2`, `KBLK`; `KBLK`, third in the list, is found: switch on, A03 locked | PASS | +| A03 shared again, saved as 003: `KBLK` rewritten in place (same size) after `ZZZ1` and `ZZZ2` in the serialization that started from the loaded header; 003 loaded: switch on, A03 shared | PASS. The two later serializations of that save started from a header without the other records, which kitbank does not change | +| A header that is not an `ELKP` list (`XXXX` and 12 bytes) handed to the save: left as it is in every serialization | PASS | +| **Chain with PTN+trigs.** A05 and A06 locked (own kits), A01 playing; PTN held, trigs 5 and 6 held together (the chain gesture digiemu recognises), released: the kits played follow A05 A06 A05 A06 | PASS | +| The same with YES pressed while PTN and the trigs are held | PASS: A05 A06 A05 A06, the chain is unchanged and A01 is not added. The earlier build (XX07, before this fix) played A05 A06 A01 here: its handed trig joined the chain | | Every run: no halt | PASS | +Scripts (in the author's working copy, not in this repository): `test_kitbank --stock` (unticked) and `--on`, `test_kitbank_save --on`, `test_kitlock_modwerk`, `test_kitbank_copy`, `test_kitbank_song`, `test_kitbank_projdata`, `test_kitbank_chain`: all PASS on XX08. `test_kitbank_chain` FAILs on XX07, as described. + ## Full check against stock -`python -m emu.portable --check --baseline --timing` (switch at its default, unticked), run on the XX05 build of the same behaviour before the popup fix: **PASS**, 10 of 10 screens identical to stock, **audio identical to stock over 8.3 s**, render margin 40.5 % and CPU busy 58 % as stock. The stock reference itself is marked FAIL by this emulator for a known read at `0x12a`. Unticked, the popup fix adds no code path: the PTN+YES branch is only taken while ticked. +`python -m emu.portable --check --baseline --timing` with digiemu `c1b5735`, switch at its default (unticked): **PASS**. Boot, bootloader and run pass; 10 of 10 screens identical to stock (the screen stream first differs at 7.8 s, between captures); **audio identical to stock over 8.3 s**; render margin 40.5 % and CPU busy 58 %, as stock. The stock reference itself is marked FAIL by this emulator for a known read at `0x12a`. + +## Stock flows compared + +With the switch unticked, the full check above compares XX08 with the stock OS (boot, screens, audio). With it ticked, the runs above cover each listed change to a stock flow in the README: the SETTINGS row, FUNC+YES / FUNC+NO and the kit save and reload menus, pastes, PTN+YES (alone, while playing, and while building a chain), and project save, load and new. Neighbouring flows run beside them: pattern changes (immediate, queued, chains, song mode), clear, copy, sound edits. Not run: undo of a paste. ## Memory -Object sizes: 1,432 B `.run`, 96 B `.bss`: **1,528 B**, excluding the core and linker alignment. No audio-rate code. +Object sizes: 1,664 B `.run`, 100 B `.bss`: **1,764 B**, excluding the core and linker alignment. No audio-rate code. ## Measured limit @@ -45,4 +53,4 @@ For under a second after PTN+YES, a knob turn can be ignored while the OS reload ## Not tested -Step-by-step hardware results; undo of a paste; chains built with PTN+trigs while playing (queued changes were); OS 1.43. +Undo of a paste; OS 1.43; the Digitone Keys. diff --git a/sdk/digitone/modules/kitbank/build.json b/sdk/digitone/modules/kitbank/build.json index bbecea55bb..fda5a4049b 100644 --- a/sdk/digitone/modules/kitbank/build.json +++ b/sdk/digitone/modules/kitbank/build.json @@ -24,7 +24,8 @@ "regions": [], "claims": [ "settings:KIT PER BANK", - "projdata:KBLK" + "projdata:KBLK", + "key:PTN+YES" ], "requires": [], "derive": null, diff --git a/sdk/digitone/modules/kitbank/media/capture.json b/sdk/digitone/modules/kitbank/media/capture.json index 65b2f7bbd3..4b60f6638f 100644 --- a/sdk/digitone/modules/kitbank/media/capture.json +++ b/sdk/digitone/modules/kitbank/media/capture.json @@ -3,12 +3,12 @@ "machine": "digitone", "moduleId": "kitbank", "moduleVersion": "0.2.0-experimental", - "capturedAt": "2026-11-12", + "capturedAt": "2026-11-16", "firmware": "1.44", - "imageSha256": "7d14c8272d861704983903f36a5018edef5647f708ad3658a8899e8a86e798be", + "imageSha256": "6c94a77ef70ae10ebdde390bce1252dffdc946f47aca168b42cd880b9494c49c", "stockSha256": "d4f200d04484333d82822db7744e6484d0def8f2db8ddf55ee2b780cc13c9659", "build": { - "tool": "node scripts/link-image.mjs --version XX06", + "tool": "node scripts/link-image.mjs --version XX08", "modules": [ { "id": "core", @@ -21,12 +21,11 @@ "source": "sdk/digitone/modules/kitbank (this folder)" } ], - "outputVersion": "XX06" + "outputVersion": "XX08" }, "emulator": { "repository": "https://github.com/irpina/digiemu", - "revision": "f57c2f237e84b8ff91bc3adb2a2931bccf9928e9", - "note": "Not the reviewed revision c1b5735835923e328f8b4950d6ba927875e5b669, which was not reachable from the public repository; the checkout also carries an uncommitted change to emu/gui.py (the desktop window, unused headless). scripts/capture-digi-module-ui.py was run unchanged except for its two revision checks. Re-capture with the reviewed revision before release.", + "revision": "c1b5735835923e328f8b4950d6ba927875e5b669", "python": "3.12.13", "platform": "macOS arm64", "hle": false, @@ -34,7 +33,9 @@ "cycleTiming": false, "framebuffer": "firmware front LCD buffer at panel_diff flush", "scale": 6, - "frameSelection": "Most populated actual LCD frame within the final 250 ms after the latest panel action; 6x integer scaling." + "frameSelection": "Most populated actual LCD frame within the final 250 ms after the latest panel action; 6x integer scaling.", + "unicorn": "Six pinned patches installed with tools/install-patched-unicorn.sh; .venv/bin/python -m emu.unicorn_compat: compatible", + "captureScript": "scripts/capture-digi-module-ui.py, unchanged, run under sandbox-exec (deny network*)" }, "setup": { "project": "Disposable first-boot A01, stock initial state; no owner projects or samples.", @@ -99,7 +100,7 @@ "release 16" ], [ - 3800.11, + 3800.111, "press 16" ], [ @@ -111,7 +112,7 @@ "press 16" ], [ - 4300.125, + 4300.126, "release 16" ], [ @@ -155,7 +156,7 @@ "release 13" ], [ - 6600.193, + 6600.192, "press 14" ], [ @@ -231,8 +232,8 @@ "path": "media/settings-on.png", "sha256": "cece0825ac5c705eaba1c122acf9f2ab2bfd379f89ab4554c1440fe1de53475b", "plan": "wait 1000\ntap GLOBAL\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\ntap DOWN\nsnap settings-off\ntap YES\nsnap settings-on\ntap NO\ntap NO\npress PTN\ntap 1\nrelease PTN\nwait 700\npress PTN\ntap 3\nrelease PTN\nwait 700\npress PTN\ntap YES 80 200\nrelease PTN\nwait 300\nsnap kit-locked\n", - "atMs": 6600.192521367521, - "requestedAtMs": 6600.192521367521 + "atMs": 6600.19188034188, + "requestedAtMs": 6600.19188034188 }, { "path": "media/kit-locked.png", diff --git a/sdk/digitone/modules/kitbank/modwerk.module.json b/sdk/digitone/modules/kitbank/modwerk.module.json index 6fbb7d43a1..c8e5ee21fa 100644 --- a/sdk/digitone/modules/kitbank/modwerk.module.json +++ b/sdk/digitone/modules/kitbank/modwerk.module.json @@ -4,7 +4,7 @@ "name": "kitbank", "version": "0.2.0-experimental", "machine": "digitone", - "category": "playback", + "category": "system", "exclusive": false, "author": { "github": "ZOGV", @@ -72,10 +72,11 @@ "conflicts": [], "limitations": [ "Built for Digitone OS 1.44 with the vendored core-dn1 2.0a (os1.44); not ported to OS 1.43. The Digitone Keys runs the same OS file but has not been tried.", - "The switch and the locks are kept in the project header (an elekloader-format ELKP block tagged KBLK, bytes 0x1c..0x200 the stock OS keeps as they are), written by kitbank's own project save hook because core-dn1 2.0a for 1.44 has no project data. The block is not written when that area already holds another tool's data; it can move to core_projdata when a 1.44 core provides it.", + "The switch and locks are one KBLK record in the project header's ELKP list (bytes 0x1c..0x200), written by kitbank's own save, load and new hooks: core-dn1 2.0a for 1.44 has no project data. Other records are kept; KBLK is found anywhere on load. These sites become a core_projdata hook in a later 1.44 core, and kitbank will move to it in an update.", "It patches ten stock OS sites itself (kit selection, queued pattern change, kit save/reload/sound reload, project save/load/new); a mod patching the same bytes cannot be combined. If other mods need kit selection or project data, these sites should become core hooks.", "A pattern pasted into a bank's first pattern replaces the bank's kit, as the stock OS replaces that pattern's kit. Pasted elsewhere, it never overwrites the bank: it is locked with the pasted sound when that sound differs.", "For under a second after PTN+YES, a knob turn can be ignored while the OS reloads the kit into the tracks (measured in the emulator; the stock OS reselecting a pattern by hand does not do this).", + "A project saved with kitbank opens on the stock OS, or with kitbank unticked, with each pattern's own kit: the kit it had when it was last saved from its own slot, usually older than the bank's kit it played.", "Undo of a paste was not tried." ] }, @@ -89,11 +90,12 @@ ], "claims": [ "settings:KIT PER BANK", - "projdata:KBLK" + "projdata:KBLK", + "key:PTN+YES" ] }, "resources": { - "memoryBytes": 1528, + "memoryBytes": 1764, "fastBytes": 0, "load": { "display": "None while playing", @@ -127,7 +129,7 @@ }, "tests": { "report": "TESTING.md", - "summary": "Emulator only (digiemu, OS 1.44): unticked behaves like the stock OS; ticked, bank kits for immediate and queued changes, song mode, edits, kit save/reload, PTN+YES locks, pastes, and the switch and locks through a project save and load; see TESTING.md. Not tried on hardware in this Modwerk build.", + "summary": "Build XX08 (core-dn1 2.0a + this version, OS 1.44). Hardware: see evidence/hardware-testing.json. Emulator (digiemu c1b5735): unticked behaves like the stock OS (full check against stock); ticked, bank kits for immediate and queued changes, chains and song mode, edits, kit save/reload, PTN+YES locks (also while building a chain with PTN+trigs), pastes, the switch and locks through project save and load, and other tools' ELKP records kept; see TESTING.md.", "documentation": { "tutorial": { "title": "Quick tutorial: one kit for a whole bank, one pattern apart", @@ -173,8 +175,8 @@ "type": "emulator", "release": "1.44", "moduleVersion": "0.2.0-experimental", - "imageSha256": "7d14c8272d861704983903f36a5018edef5647f708ad3658a8899e8a86e798be", - "setup": "Disposable first-boot project, network-denied sandbox; see media/capture.json." + "imageSha256": "6c94a77ef70ae10ebdde390bce1252dffdc946f47aca168b42cd880b9494c49c", + "setup": "XX08 build, digiemu c1b5735 (reviewed), disposable first-boot project, network-denied sandbox; see media/capture.json." } }, { @@ -189,8 +191,8 @@ "type": "emulator", "release": "1.44", "moduleVersion": "0.2.0-experimental", - "imageSha256": "7d14c8272d861704983903f36a5018edef5647f708ad3658a8899e8a86e798be", - "setup": "Disposable first-boot project, network-denied sandbox; see media/capture.json." + "imageSha256": "6c94a77ef70ae10ebdde390bce1252dffdc946f47aca168b42cd880b9494c49c", + "setup": "XX08 build, digiemu c1b5735 (reviewed), disposable first-boot project, network-denied sandbox; see media/capture.json." } }, { @@ -205,8 +207,8 @@ "type": "emulator", "release": "1.44", "moduleVersion": "0.2.0-experimental", - "imageSha256": "7d14c8272d861704983903f36a5018edef5647f708ad3658a8899e8a86e798be", - "setup": "Disposable first-boot project, network-denied sandbox; see media/capture.json." + "imageSha256": "6c94a77ef70ae10ebdde390bce1252dffdc946f47aca168b42cd880b9494c49c", + "setup": "XX08 build, digiemu c1b5735 (reviewed), disposable first-boot project, network-denied sandbox; see media/capture.json." } } ] diff --git a/sdk/digitone/modules/kitbank/src/kitbank.S b/sdk/digitone/modules/kitbank/src/kitbank.S index 53bb746771..722cc856c5 100644 --- a/sdk/digitone/modules/kitbank/src/kitbank.S +++ b/sdk/digitone/modules/kitbank/src/kitbank.S @@ -43,6 +43,7 @@ .equ KEY_STEP1, 26 | trig keys 1-16: 26..41 .equ BRAIN_KEY, 0x40016fc0 | the stock key handler (core-dn1 2.0a hooks its call site, not its entry) .equ GAP, 0x1c | project header bytes the OS keeps: elekloader's ELKP area + .equ GAP_END, 0x200 .equ ELKP, 0x454c4b50 .equ KBLK, 0x4b424c4b .equ BLK_SIZE, 20 | kb_on (4) + 128 lock bits (16) @@ -316,8 +317,23 @@ kb_key: bne.s 1f andi.l #1, %d0 move.b %d0, kb_ptn | PTN held or not + clr.b kb_trig | no trig pressed under this PTN yet bra.s 8f -1: moveq #KEY_YES, %d1 +1: move.l 12(%a0), %d1 | a trig pressed while PTN is held (a chain being built): noted + sub.l #KEY_STEP1, %d1 + moveq #16, %d0 + cmp.l %d0, %d1 + bcc.s 11f + tst.b kb_ptn + beq.s 8f + move.l 16(%a0), %d0 + btst #0, %d0 + beq.s 8f + moveq #1, %d0 + move.b %d0, kb_trig + bra.s 8f +11: move.l 16(%a0), %d0 | flags again + moveq #KEY_YES, %d1 cmp.l 12(%a0), %d1 bne.s 8f tst.b kb_ptn @@ -340,6 +356,8 @@ kb_key: | hand does, and so does not open the SELECT PTN popup when PTN is released. Then the message. | at the bsr: 0(sp) back to kb_key, 4(sp) kb_key's return, 8 brain, 12(sp) ev reselect: + tst.b kb_trig | a trig was already pressed under this PTN: the OS opens no popup, + bne.w 9f | and a trig handed now would join the chain being built move.l PAT_ACT, %d0 sub.l #PATS, %d0 bcs.s 9f @@ -445,52 +463,125 @@ toggle: lea 16(%sp), %sp rts -| ---- project save: Project_serialize(file, project, ...) writes the KBLK block into the file header -------- +| ---- project save: Project_serialize(file, project, ...) writes the KBLK record into the file header ------- +| The header's gap 0x1c..0x200 holds elekloader's project data list: 'ELKP', then per record its tag, its size +| and its bytes, then a zero tag (core-dn1 / core-dt2 store.c). kitbank rewrites only its own KBLK record and +| keeps every other tag where it is: a KBLK of the right size is overwritten in place; one of another size is +| taken out (the records after it move down) and a new one is added before the zero tag. An empty gap gets a +| new list. A gap holding something else, a list that runs past 0x200 or one with no room left is not touched. .globl kb_projsave kb_projsave: - movea.l 4(%sp), %a0 - lea GAP(%a0), %a0 - move.l (%a0), %d0 - beq.s 1f - cmp.l #ELKP, %d0 | another tool's data: left alone - bne.s 4f -1: move.l #ELKP, (%a0)+ + lea -16(%sp), %sp + movem.l %d2-%d3/%a2-%a3, (%sp) + movea.l 20(%sp), %a0 | file + lea GAP(%a0), %a2 | a2 = the gap + lea GAP_END(%a0), %a3 | a3 = its end + move.l (%a2), %d0 + bne.s 1f + move.l #ELKP, (%a2) | an empty gap: a new list + clr.l 4(%a2) + bra.s 2f +1: cmp.l #ELKP, %d0 + bne.w 9f | another tool's data: left alone +2: lea 4(%a2), %a0 | a0 = the record +3: move.l %a3, %d0 + sub.l %a0, %d0 | d0 = bytes left in the gap + moveq #8, %d1 + cmp.l %d1, %d0 + bcs.w 9f | no zero tag before the end: left alone + move.l (%a0), %d1 | tag + beq.s 6f | the zero tag: add ours here + move.l 4(%a0), %d2 | size + subq.l #8, %d0 + cmp.l %d2, %d0 + bcs.w 9f | runs past the gap: left alone + cmp.l #KBLK, %d1 + beq.s 4f + lea 8(%a0,%d2.l), %a0 | another tool's record: kept, next + bra.s 3b +4: moveq #BLK_SIZE, %d1 | ours + cmp.l %d1, %d2 + bne.s 5f + addq.l #8, %a0 | the same size: overwritten in place + bsr.w putblk + bra.s 9f +5: move.l %a0, %d3 | another size: taken out, what follows moves down + lea 8(%a0,%d2.l), %a1 +51: cmpa.l %a3, %a1 + bcc.s 52f + move.b (%a1)+, (%a0)+ + bra.s 51b +52: cmpa.l %a3, %a0 + bcc.s 53f + clr.b (%a0)+ + bra.s 52b +53: movea.l %d3, %a0 + bra.s 3b +6: move.l %a3, %d0 | the zero tag at a0: tag, size, the block and a new zero tag + sub.l %a0, %d0 + moveq #8+BLK_SIZE+4, %d1 + cmp.l %d1, %d0 + bcs.s 9f | no room left: not saved move.l #KBLK, (%a0)+ moveq #BLK_SIZE, %d0 move.l %d0, (%a0)+ - lea kb_on, %a1 - moveq #BLK_SIZE/4, %d1 -2: move.l (%a1)+, (%a0)+ - subq.l #1, %d1 - bne.s 2b + bsr.w putblk clr.l (%a0) | a zero tag ends the list -4: lea -44(%sp), %sp | the 8 stock bytes, replayed +9: movem.l (%sp), %d2-%d3/%a2-%a3 + lea 16(%sp), %sp + lea -44(%sp), %sp | the 8 stock bytes, replayed movem.l %d2-%d7/%a2-%a6, (%sp) jmp 0x4000eb18 -| ---- project load: Project_deserialize(project, file, ...) reads it back; no block -> off, no lock -------- +| a0 = where the block goes -> a0 just after it (d1, a1 destroyed) +putblk: + lea kb_on, %a1 + moveq #BLK_SIZE/4, %d1 +1: move.l (%a1)+, (%a0)+ + subq.l #1, %d1 + bne.s 1b + rts + +| ---- project load: Project_deserialize(project, file, ...) finds KBLK anywhere in the list; none -> off, no lock .globl kb_projload kb_projload: - bsr.s clear - movea.l 8(%sp), %a0 + bsr.w clear + move.l %d2, -(%sp) + movea.l 12(%sp), %a0 | file move.l %a0, %d0 beq.s 4f + lea GAP_END(%a0), %a1 | a1 = the gap's end lea GAP(%a0), %a0 move.l (%a0)+, %d0 cmp.l #ELKP, %d0 bne.s 4f - move.l (%a0)+, %d0 - cmp.l #KBLK, %d0 - bne.s 4f - moveq #BLK_SIZE, %d0 - cmp.l (%a0)+, %d0 - bne.s 4f - lea kb_on, %a1 - moveq #BLK_SIZE/4, %d1 -2: move.l (%a0)+, (%a1)+ - subq.l #1, %d1 - bne.s 2b -4: lea -36(%sp), %sp +1: move.l %a1, %d0 + sub.l %a0, %d0 | bytes left + moveq #8, %d1 + cmp.l %d1, %d0 + bcs.s 4f + move.l (%a0)+, %d1 | tag + beq.s 4f | the zero tag: no KBLK + move.l (%a0)+, %d2 | size + subq.l #8, %d0 + cmp.l %d2, %d0 + bcs.s 4f | runs past the gap: stop + cmp.l #KBLK, %d1 + beq.s 2f + adda.l %d2, %a0 | another tool's record: next + bra.s 1b +2: moveq #BLK_SIZE, %d0 | ours: at most BLK_SIZE bytes, the rest stays 0 + cmp.l %d0, %d2 + bcc.s 3f + move.l %d2, %d0 +3: lea kb_on, %a1 +31: tst.l %d0 + beq.s 4f + move.b (%a0)+, (%a1)+ + subq.l #1, %d0 + bra.s 31b +4: move.l (%sp)+, %d2 + lea -36(%sp), %sp | the 8 stock bytes, replayed movem.l %d2-%d5/%a2-%a6, (%sp) jmp 0x4000e7fc @@ -523,5 +614,6 @@ kb_on: .skip 4 | byte 0: the project's KIT PER BANK swi kb_locks: .skip 16 | 128 bits: pattern k = byte k/8, bit k%8 kb_live: .skip 4 | byte 0: the switch as of the last pattern change kb_ptn: .skip 4 | byte 0: PTN held +kb_trig: .skip 4 | byte 0: a trig pressed while PTN is held kb_msg: .skip 4 | the last PTN+YES message kb_ev: .skip 64 | the two trig events handed to the OS From 2cc2669bf392f5e917f8af7cbb1be592d4b8486b Mon Sep 17 00:00:00 2001 From: Zac-Kyoti <273702472+Zac-Kyoti@users.noreply.github.com> Date: Mon, 16 Nov 2026 11:08:46 -0800 Subject: [PATCH 014/415] Direct Jump Kyoti 0.2.0-experimental: the author's DIRECT JUMP V7.2.2 (Zac-Kyoti/octatrack-kyoti-fw 109f54c) Trig conditions carry on across a jump (V7.0.2), the landing a tick before the step (V7.1), a cue in the last step kept from stock's wrap-change (V7.1.1), each track's Part at its first sounding trig with one new detour at the light Part apply's LFO AUTO CHANGE test, 0x40009ebe (V7.2), and SILENCE TRACKS' tracks released with stock's note-off before the switch (V7.2.2). The source is the author's file with six MODWERK re-encodings (four kernel posts through dj_post, two leas and one sum's operands swapped): 3,826 bytes at 0x400d6d38, SHA-256 4d28a1d8...; taken back it links to his 3,846 bytes, 688978da.... verify.py gains the new detour's checks, the trig-condition state in every jump case, a last-step cue, a FILL latch, and parts 7 (Part per track) and 8 (SILENCE TRACKS release). Import record sdk/imports/direct-jump-kyoti-109f54c.json; LICENSE and upstream/README.md are the author's files at that commit. Co-Authored-By: Claude Opus 5.5 --- scripts/module-source.test.mjs | 2 +- sdk/catalog.json | 2 +- sdk/imports/direct-jump-kyoti-109f54c.json | 144 +++ .../modules/direct-jump-kyoti/LICENSE | 2 +- .../modules/direct-jump-kyoti/manifest.py | 83 +- .../direct-jump-kyoti/media/capture.json | 4 +- .../direct-jump-kyoti/octamod.module.json | 24 +- .../direct-jump-kyoti/patch_directjump_v7.s | 843 +++++++++++++++++- .../direct-jump-kyoti/upstream/README.md | 40 +- .../modules/direct-jump-kyoti/verify.py | 223 ++++- .../module-changelogs/direct-jump-kyoti.json | 11 + 11 files changed, 1258 insertions(+), 120 deletions(-) create mode 100644 sdk/imports/direct-jump-kyoti-109f54c.json diff --git a/scripts/module-source.test.mjs b/scripts/module-source.test.mjs index 89cbeed987..bee4fb0348 100644 --- a/scripts/module-source.test.mjs +++ b/scripts/module-source.test.mjs @@ -21,7 +21,7 @@ describe('release package scope and reviewed source inventory', () => { const versions = await compiledModuleVersions(root, catalog), paths = await moduleSourcePaths(root) expect(Object.keys(versions)).toEqual(['miniverb', 'tapeecho', 'euclid', 'repitch', 'tapehead', 'airwindows-chorus', 'everb', 'bbd', 'lofi2', 'ring-sc', ...requested.filter(id => id !== 'vector'),'previewvol','cc-map','sidechain-compressor','vector','playmodes','mute-modes','recorder-loop-fix','poly8','output-matrix','quantize-live-rec-toggle','apply-scene','direct-jump-kyoti','dejavu', 'arp-key-locks', 'temp-save', 'tuner', 'slow-lfo', 'bar-led', 'stem-rec']) for (const id of ['playmodes', 'mute-modes', 'recorder-loop-fix', 'output-matrix', 'quantize-live-rec-toggle','apply-scene','direct-jump-kyoti','dejavu', 'arp-key-locks', 'temp-save', 'tuner', 'slow-lfo', 'bar-led', 'stem-rec']) { - expect(versions[id]).toBe(id === 'playmodes' ? '0.2.0-experimental' : id === 'mute-modes' ? '0.2.2-experimental' : id === 'output-matrix' ? '0.1.1-experimental' : id === 'apply-scene' ? '0.2.0-experimental' : id === 'quantize-live-rec-toggle' ? '0.1.1-experimental' : id === 'direct-jump-kyoti' ? '0.1.2-experimental' : id === 'temp-save' ? '0.1.1-experimental' : '0.1.0-experimental') + expect(versions[id]).toBe(id === 'playmodes' ? '0.2.0-experimental' : id === 'mute-modes' ? '0.2.2-experimental' : id === 'output-matrix' ? '0.1.1-experimental' : id === 'apply-scene' ? '0.2.0-experimental' : id === 'quantize-live-rec-toggle' ? '0.1.1-experimental' : id === 'direct-jump-kyoti' ? '0.2.0-experimental' : id === 'temp-save' ? '0.1.1-experimental' : '0.1.0-experimental') expect(paths).toContain('modules/' + id + '/manifest.py') } expect(versions.miniverb).toBe('0.2.3-experimental') diff --git a/sdk/catalog.json b/sdk/catalog.json index 13c78cc644..64df90fde9 100644 --- a/sdk/catalog.json +++ b/sdk/catalog.json @@ -129,7 +129,7 @@ }, { "id": "direct-jump-kyoti", - "version": "0.1.2-experimental", + "version": "0.2.0-experimental", "addedAt": "2026-10-24T12:00:00Z" }, { diff --git a/sdk/imports/direct-jump-kyoti-109f54c.json b/sdk/imports/direct-jump-kyoti-109f54c.json new file mode 100644 index 0000000000..e05995a4a0 --- /dev/null +++ b/sdk/imports/direct-jump-kyoti-109f54c.json @@ -0,0 +1,144 @@ +{ + "schemaVersion": 1, + "repository": "https://github.com/Zac-Kyoti/octatrack-kyoti-fw", + "revision": "109f54cd36fcd770e3409d1258254619a161b1d7", + "moduleVersion": "0.2.0-experimental", + "root": "sdk/octatrack/modules/direct-jump-kyoti", + "modules": [ + "direct-jump-kyoti" + ], + "stockGuards": [ + { + "address": "0x400a1f72", + "bytes": 6, + "sha256": "4aaaa6d9488b552fc485627001a1f1b8b4fc72156809c7f9750050c787869e56" + }, + { + "address": "0x400a221c", + "bytes": 6, + "sha256": "6d3f127d6f8c27521bb383e06dae4599364ceb88426d80464a0cdffdc7d71cda" + }, + { + "address": "0x40043418", + "bytes": 6, + "sha256": "b229662bc9a5d09d0d4613dc32ce8de200fbda85d81dd13630451d0b780946e2" + }, + { + "address": "0x40009ebe", + "bytes": 6, + "sha256": "37edecfc18058ca757b701a5e909152025e5ceb96e33328800af3bea09dd5e94", + "note": "V7.2 (0.2.0-experimental): the light Part apply's LFO AUTO CHANGE test, tst.b of one byte; a jsr to dj_lfoq, which replays it unless a jump has just deferred the per-track part." + }, + { + "address": "0x4009b6f2", + "bytes": 18, + "sha256": "1737cfa861055a533a8a63f6ee4a007de11433354ad97185fba8e79c7a06ac43", + "note": "The per-track scale seed of a track's manual start (0.1.1-experimental): the cave redoes all 18 bytes; only the first instruction becomes its jmp." + }, + { + "address": "0x400bf0c0", + "bytes": 4, + "sha256": "df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119", + "note": "The [PTN]-layer YES press slot: NULL in stock, written with the unit's dj_toggle." + } + ], + "excluded": [ + "Firmware and stock expectation bytes", + "The author's BATCH_BUGFIXES module as such: not a prerequisite. Its MIDI_PLAYS_FREE_FIX source is carried in this module (since 0.1.1-experimental); its EMPTY_PATTERN_LED_FIX and PART_CHANGE_CARRYOVER_FIX are not.", + "The author's standalone builder tools/build_direct_jump_kyoti.py, his combined KYOTI image and his emulator diagnostics (tools/cmp_reflock.py, diag_reflock.py, check_dj_part.py, diag_dj_partpub.py, diag_dj_switchpop.py), which read a firmware file; the Modwerk gate (verify.py) checks the same behaviours with its own code.", + "The DJ_SELFHOOK and DJ_DIAG assembly options (the author's KYOTI-with-Clyps hook and diagnostics), which this build never defines", + "Generated firmware, runtime images and memory dumps", + "Unrelated modules and author repository tooling" + ], + "notes": [ + "0.2.0-experimental moves the pin from the octabam wrapper (sambanks/octabam b725fb1a, author pin 329b801c) to the author's repository at 109f54c: DIRECT JUMP V7.2.2. upstream/OCTABAM_README.md and upstream/OCTABAM_LICENSE stay as imported from octabam for its integration credit.", + "patch_directjump_v7.s comments describe stock routines and data by address and in assembler mnemonics, as the author wrote them; it contains no firmware bytes or hex dumps.", + "The stock guard digests were computed from the author's declared expectations and matched against a local original OS 1.40C MAIN image (SHA-256 164f31224bf61181e3f50e7dec40df9afcae5b16dbf6e4c0d0cc5e986af0a84e).", + "LICENSE is the author's file at 109f54c, byte for byte: against 329b801c only its copyright line changed, to the name Zac Kyoti." + ], + "status": "Owner review pending (new stock addresses: 0x40009ebe).", + "files": [ + { + "path": "patch_directjump_v7.s", + "repository": "https://github.com/Zac-Kyoti/octatrack-kyoti-fw", + "revision": "109f54cd36fcd770e3409d1258254619a161b1d7", + "sourcePath": "octabam-modules/direct-jump-kyoti/patch_directjump_v7.s", + "sourceBytes": 70793, + "sourceGitBlob": "6e85c0f59850ce9e6e95a32ae9bd6c4df2953e9a", + "sourceSha256": "6b10f15c37066dde6032310290873e285b84924f9834dbcf3941e70b63077ce7", + "vendoredSha256": "0b7bd48382fc78a0ad0e7e694f6533ef48f4f9d1724abc29aaeb54271221b2e8", + "transforms": [ + "The author's V7.2.2 with six re-encodings, each marked MODWERK, so that no 12 bytes of the USB package repeat stock code (the strict stock-free scan): the four inline kernel posts ({0x11, pattern} in dj_unhide and the landing, {0x15, bank} and {0x14, part}) go through one added helper, dj_post, which reaches KPOST through %a1 (the same calls with the same arguments in the same order, every caller inside dj_land, which saves every register); the second purge table's two addresses are loaded in the other order (a3 before a1); and the hand-off's switch time is formed as TICK_A + SCLK instead of SCLK + TICK_A (move.l #imm then add.l: the same sum, register and flags). The unit shrinks from 3,846 to 3,826 bytes; with these changes taken back it links to the author's bytes (SHA-256 688978daa1ed86c0a0874404e859ee781fbfbed7808be33c2f862beb3e373011 at 0x400d6d38, his manifest's REFERENCE)." + ] + }, + { + "path": "manifest.py", + "repository": "https://github.com/Zac-Kyoti/octatrack-kyoti-fw", + "revision": "109f54cd36fcd770e3409d1258254619a161b1d7", + "sourcePath": "octabam-modules/direct-jump-kyoti/manifest.py", + "sourceBytes": 9703, + "sourceGitBlob": "5df8be89e1f9ef1398c3b2ff0a76b233011ebc61", + "sourceSha256": "b9b36248d4adb3c98210483bd4256917b5ec075b10202a1989ed519be02a69b6", + "vendoredSha256": "9e77237f2ac7f4158b51b5d9f70237617fe0429c0c9a3848adffbd76157300a9", + "transforms": [ + "Rewrite the declaration for Modwerk: the same DRAM unit, four detours (the landing, the MIDI START gate, the [PTN] release and V7.2's light Part apply LFO AUTO CHANGE test at 0x40009ebe) and symbol reference, with every stock expectation an address/length/SHA-256 guard in place of the stock bytes the author's file spells out.", + "Drop requires=(\"BATCH_BUGFIXES\",): Modwerk modules never depend on another module. The bundle was required for its MIDI_PLAYS_FREE_FIX, which this module has carried since 0.1.1-experimental as a second DRAM unit (patch_trigscale.s) and one more detour, guarded over the 18 stock bytes it redoes.", + "Drop the two Keeps around the [PTN]-layer YES record (a USB package cannot carry them; the symbol reference's NULL guard still refuses a changed slot) and the conflicts with octabam's DIRECT JUMP and OCTAKIT, which Modwerk does not have.", + "Add the author fields, UNIT_BYTES and Modwerk's references for the re-encoded units." + ] + }, + { + "path": "patch_trigscale.s", + "repository": "https://github.com/Zac-Kyoti/octatrack-kyoti-fw", + "revision": "109f54cd36fcd770e3409d1258254619a161b1d7", + "sourcePath": "octabam-modules/batch-bugfixes/patch_trigscale.s", + "sourceBytes": 2684, + "sourceGitBlob": "36159e8ab0467d0b00023e25c9f1aa9a088be935", + "sourceSha256": "7400c42bdc56e29d51033ad75d7f98439aa97cb73e98c439e5b66f78073ee695", + "vendoredSha256": "f657f576c14cf61e23cc563eab54a07ef4f9774ddfca0c8bf3286c13bb76068f", + "transforms": [ + "Unchanged since 0.1.1-experimental (imported from 329b801cf90f32cbca97c6699a908908968e4df6): at 109f54c the author's file differs from that pin only in its copyright line, so the vendored copy keeps its earlier line. Its two MODWERK changes stay: the global label cave is renamed ts_cave (it links beside Direct Jump's unit), and the audio path's movea.l moves before its add.l (same d0, a0 and flags). With both taken back it links to the author's 62 bytes (SHA-256 a1eec6b67bb817cc2e063f23897377697f6057a9bf2389d5eb442813b854bba4)." + ] + }, + { + "path": "upstream/README.md", + "repository": "https://github.com/Zac-Kyoti/octatrack-kyoti-fw", + "revision": "109f54cd36fcd770e3409d1258254619a161b1d7", + "sourcePath": "octabam-modules/direct-jump-kyoti/README.md", + "sourceBytes": 9031, + "sourceGitBlob": "e35d7f4d85f4c8e95e17d064c89001d1c9b5a42c", + "sourceSha256": "a50e402b4ab6ac3a1848d148756127b8f348b1f82352881cb79a98a46ee4ce6b", + "vendoredSha256": "a50e402b4ab6ac3a1848d148756127b8f348b1f82352881cb79a98a46ee4ce6b" + }, + { + "path": "LICENSE", + "repository": "https://github.com/Zac-Kyoti/octatrack-kyoti-fw", + "revision": "109f54cd36fcd770e3409d1258254619a161b1d7", + "sourcePath": "LICENSE", + "sourceBytes": 4451, + "sourceGitBlob": "8cd09176a276a3854ae947ab148b9b327d77e381", + "sourceSha256": "f1f8d5837b6df5d6e5744286e3929883253f1ee754c4f9e0494989f2ef992a05", + "vendoredSha256": "f1f8d5837b6df5d6e5744286e3929883253f1ee754c4f9e0494989f2ef992a05" + }, + { + "path": "upstream/OCTABAM_LICENSE", + "repository": "https://github.com/sambanks/octabam", + "revision": "b725fb1a20e77bea37930be4f934a13ba53abc23", + "sourcePath": "LICENSE", + "sourceBytes": 2112, + "sourceGitBlob": "112114d5d319dc4a789dacf1e84b867420a03614", + "sourceSha256": "f91a43799d9e31ccc3540f385f68c4d6ff5a096f93ae933be2ce98f6b3f7f113", + "vendoredSha256": "f91a43799d9e31ccc3540f385f68c4d6ff5a096f93ae933be2ce98f6b3f7f113" + }, + { + "path": "upstream/OCTABAM_README.md", + "repository": "https://github.com/sambanks/octabam", + "revision": "b725fb1a20e77bea37930be4f934a13ba53abc23", + "sourcePath": "modules/direct-jump-kyoti/README.md", + "sourceBytes": 2923, + "sourceGitBlob": "15bd3eaf87591957e563902afa0ceee91028ec3f", + "sourceSha256": "ca375bc0ddd58e86c39cad14d7b4248c8231a9d76d00786ebba10a0058c0abe9", + "vendoredSha256": "ca375bc0ddd58e86c39cad14d7b4248c8231a9d76d00786ebba10a0058c0abe9" + } + ] +} diff --git a/sdk/octatrack/modules/direct-jump-kyoti/LICENSE b/sdk/octatrack/modules/direct-jump-kyoti/LICENSE index 3e76489f7d..8cd09176a2 100644 --- a/sdk/octatrack/modules/direct-jump-kyoti/LICENSE +++ b/sdk/octatrack/modules/direct-jump-kyoti/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2026 Zac-Kyoti and the OT Kyoti FW contributors +Copyright (c) 2026 Zac Kyoti and the OT Kyoti FW contributors WHAT THIS LICENSE COVERS diff --git a/sdk/octatrack/modules/direct-jump-kyoti/manifest.py b/sdk/octatrack/modules/direct-jump-kyoti/manifest.py index 4e02a8f76f..b33ab20244 100644 --- a/sdk/octatrack/modules/direct-jump-kyoti/manifest.py +++ b/sdk/octatrack/modules/direct-jump-kyoti/manifest.py @@ -6,37 +6,49 @@ A cued pattern takes over on the NEXT STEP instead of waiting for the current one to finish, and the landing is LOCKED TO THE MASTER CLOCK: the new pattern plays where it would be had it been running since START, whatever its track -lengths, scales or master settings. The Part, START SILENT and trig conditions -change as on a stock pattern change, and the last MIDI Program Change sent -names the pattern that plays. The arranger and pattern chains are untouched. +lengths, scales or master settings. START SILENT and the Part's pattern-wide +settings change as on a stock pattern change; each track's own Part settings +(its LFO setups, with LFO AUTO CHANGE on) reach the engine with that track's +first sounding trig of the new pattern; trig conditions stand where the new +pattern's would, had it played since START; with SILENCE TRACKS on, the tracks +the switch silences are released with stock's note-off first. The last MIDI +Program Change sent names the pattern that plays. The arranger and pattern +chains are untouched. HOW IT LANDS (the author's): stock already re-lands the whole sequencer from a snapshot behind the countdown byte 0x80006687 in phase D of its tick handler. -The unit arms that countdown and prepares the snapshot on the landing tick, -suppresses the MIDI START a jump must not send, and owns the [PTN]-held [YES] -key. Every per-track counter and the pattern-boundary body stay stock. +The unit arms that countdown and prepares the snapshot one tick before the +step boundary (V7.1), suppresses the MIDI START a jump must not send, and owns +the [PTN]-held [YES] key. Every per-track counter and the pattern-boundary body +stay stock. V7.2 adds one site: the light Part apply's LFO AUTO CHANGE test, so +the one apply after a jump leaves each track's LFO setup to that track's own +publish. STATE. One word, DJ_MODE (0 = OFF, 1 = ON), inside the unit. A DRAM unit is -unpacked at every boot (card build) or loaded by the base at every install and -boot (USB), so it starts at 0 by construction; no battery restore reaches it. +loaded by the base at every install and boot (USB) or unpacked at every boot +(native card build), so it starts at 0 by construction; no battery restore +reaches it. -MODWERK. The author's declaration (octabam b725fb1a, his submodule pinned to -329b801c) carries the stock bytes it expects at each site and `requires` -BATCH_BUGFIXES. Here every stock expectation is an address/length/SHA-256 guard -read from the builder's own OS file, and there is no `requires`: Modwerk modules -never need another module. The bundle was required for its MIDI_PLAYS_FREE_FIX -(upstream/README.md, "Required: the bugfix bundle"): stock's PER TRACK scale seed -reads a MIDI track's scale with the audio stride, so the byte Direct Jump reads -to place that track is garbage (the source then falls back to the master's). -Since 0.1.1 that fix is folded in here, as the author's standalone image does: -patch_trigscale.s, his file from the same pin, as a second unit `ts` with one -18-byte splice. The bundle's other two fixes stay out; the author measured -PART_CHANGE_CARRYOVER_FIX as independent of this module, and the empty-pattern -LED has nothing to do with it. The two Keeps that protected the rest of the [PTN]-layer YES record -are dropped: a USB package cannot carry them, and the symbol reference's own -guard (the slot is NULL) still refuses a changed record. The author's conflicts -name modules Modwerk does not have (octabam's DIRECT JUMP and OCTAKIT), so none -is declared. patch_directjump_v7.s is the author's file, unchanged. +MODWERK. The author's declaration (Zac-Kyoti/octatrack-kyoti-fw 109f54c, +octabam-modules/direct-jump-kyoti/manifest.py; upstream/README.md is his README +from that commit) carries the stock bytes it expects at each site, `requires` +BATCH_BUGFIXES and declares two conflicts. Here every stock expectation is an +address/length/SHA-256 guard read from the builder's own OS file, and there is +no `requires`: Modwerk modules never need another module. The bundle was +required for its MIDI_PLAYS_FREE_FIX: stock's PER TRACK scale seed reads a MIDI +track's scale with the audio stride, so the byte Direct Jump reads to place that +track is garbage (the source then falls back to the master's). Since 0.1.1 that +fix is folded in here, as the author's standalone image does: patch_trigscale.s, +his file (unchanged since 329b801c but for its copyright line), as a second unit +`ts` with one 18-byte splice. The bundle's other two fixes stay out. The two +Keeps that protected the rest of the [PTN]-layer YES record are dropped: a USB +package cannot carry them, and the symbol reference's own guard (the slot is +NULL) still refuses a changed record. The author's conflicts name modules +Modwerk does not have (octabam's DIRECT JUMP and OCTAKIT), so none is declared. +patch_directjump_v7.s is the author's V7.2.2 with six re-encodings marked +MODWERK (four kernel posts through one helper, two leas and the two operands of +one sum swapped): the same calls, values and flags, so that no 12 bytes of the +USB package repeat stock code. """ import os @@ -46,10 +58,13 @@ # This module's own directory, relative to the build's cwd (octabam's repo root). _HERE = os.path.relpath(os.path.dirname(os.path.realpath(__file__))) -# ---- the three hook sites ---------------------------------------------------- +# ---- the hook sites ------------------------------------------------------------ LAND_HOOK = 0x400a1f72 # phase D of the tick handler: the landing countdown read NOFA_HOOK = 0x400a221c # the MIDI START (0xFA) gate a jump must not open PTNREL_HOOK = 0x40043418 # [PTN] release: the chooser stays shut after [PTN]+[YES] +# V7.2: the light Part apply's LFO AUTO CHANGE test (`tst.b`, stock's `beq.w` follows on its Z flag). The one +# apply after a jump sees Z = 1 and skips its per-track LFO part; each track's publish brings it at its first trig. +LFOQ_HOOK = 0x40009ebe # The [PTN]-held keymap layer's YES record (0x400bf0be) is NULL in stock; its press slot: PTN_LAYER_YES_PRESS = 0x400bf0c0 # The author's MIDI_PLAYS_FREE_FIX: the 18-byte per-track scale seed in FUN_4009b5c8. All 18 are @@ -59,13 +74,13 @@ TS_HOOK = 0x4009b6f2 # patch_directjump_v7.s, m68k-elf-as -mcpu=5407 or 54455 (identical), linked at 0x400d6d38: -# 2016 bytes. Re-linked there and compared on every build. The author's unit at that address -# (his manifest's oracle, the DIRECT JUMP code of his KYOTI V1.0 image) is 2026 bytes, SHA-256 -# a0f480909d91b7fac0fb77d08dd8b5e2199fc14731d4bb427be71478e296bf9e; this source links to exactly -# that with its MODWERK re-encoding taken back (three kernel posts through dj_post, two leas -# swapped, so no 12 bytes of the USB package repeat stock code). -UNIT_BYTES = 2016 -REFERENCE = (0x400d6d38, "2965bf7d4866fc6818040f6128cd0a2ece62305b534882d97e2379a40a249684") +# 3826 bytes. Re-linked there and compared on every build. The author's V7.2.2 at that address (his +# manifest's oracle at 109f54c, the code of his standalone image 140C_KDJ7) is 3846 bytes, SHA-256 +# 688978daa1ed86c0a0874404e859ee781fbfbed7808be33c2f862beb3e373011; this source links to exactly that with +# its MODWERK re-encodings taken back (four kernel posts through dj_post, two leas and one sum's two +# operands swapped, so no 12 bytes of the USB package repeat stock code). +UNIT_BYTES = 3826 +REFERENCE = (0x400d6d38, "4d28a1d8791fc7eeed41a62fa173f431d77ce0493b7adfd240c79d78fc883b0f") # patch_trigscale.s, position independent, 62 bytes. With its MODWERK change taken back (one # movea.l moved, the label renamed) it links to the author's pinned bytes, SHA-256 # a1eec6b67bb817cc2e063f23897377697f6057a9bf2389d5eb442813b854bba4. @@ -89,6 +104,8 @@ "dj7", "dj_nofa", "no MIDI START (0xFA) on a jump", kind="jsr"), Detour(PTNREL_HOOK, stock_guard(PTNREL_HOOK, 6, "b229662bc9a5d09d0d4613dc32ce8de200fbda85d81dd13630451d0b780946e2"), "dj7", "dj_ptnrel", "[PTN] release: keep the chooser shut after [PTN]+[YES]"), + Detour(LFOQ_HOOK, stock_guard(LFOQ_HOOK, 6, "37edecfc18058ca757b701a5e909152025e5ceb96e33328800af3bea09dd5e94"), + "dj7", "dj_lfoq", "light Part apply: per-track part deferred to each track's first trig", kind="jsr"), Detour(TS_HOOK, stock_guard(TS_HOOK, 18, "1737cfa861055a533a8a63f6ee4a007de11433354ad97185fba8e79c7a06ac43"), "ts", "ts_cave", "MIDI Plays-Free fix: a MIDI track's PER TRACK scale read with the MIDI stride"), ), diff --git a/sdk/octatrack/modules/direct-jump-kyoti/media/capture.json b/sdk/octatrack/modules/direct-jump-kyoti/media/capture.json index 9d77913957..eea1ff7fdb 100644 --- a/sdk/octatrack/modules/direct-jump-kyoti/media/capture.json +++ b/sdk/octatrack/modules/direct-jump-kyoti/media/capture.json @@ -1,7 +1,7 @@ { "firmware": "1.40C", - "imageSha256": "4453c3684fd72b242bbf9b4abef5b53a344364274391352266b4d81919677768", - "emulatorSha256": "bdbe962c14fc3560fb3196b01566646b80a74fd451883873a77290b4973dbbf1", + "imageSha256": "3c7b1419bc8c567dc4d09b6a675c36e5fb7e7fa3edfc231ebd43c368b7ebbd62", + "emulatorSha256": "87d73ccf8519e0ff8746ddf570fceb00f1ea305284c05379dcfe54a1d1954de8", "setup": "Headless ot_emu; MKII panel; stopped transport; 128\u00d764 LCD at integer scale 6.", "palette": { "on": [ diff --git a/sdk/octatrack/modules/direct-jump-kyoti/octamod.module.json b/sdk/octatrack/modules/direct-jump-kyoti/octamod.module.json index e1fee00f3b..7f80a6901a 100644 --- a/sdk/octatrack/modules/direct-jump-kyoti/octamod.module.json +++ b/sdk/octatrack/modules/direct-jump-kyoti/octamod.module.json @@ -3,19 +3,19 @@ "id": "direct-jump-kyoti", "key": "DIRECT_JUMP_KYOTI", "name": "Direct Jump Kyoti", - "version": "0.1.2-experimental", + "version": "0.2.0-experimental", "category": "system", "source": { - "repository": "https://github.com/sambanks/octabam", - "revision": "b725fb1a20e77bea37930be4f934a13ba53abc23", - "path": "modules/direct-jump-kyoti" + "repository": "https://github.com/Zac-Kyoti/octatrack-kyoti-fw", + "revision": "109f54cd36fcd770e3409d1258254619a161b1d7", + "path": "octabam-modules/direct-jump-kyoti" }, "author": { "github": "Zac-Kyoti", "name": "Zac Kyoti", "credits": [ "Zac Kyoti: Direct Jump's design, its ColdFire source and the MKI hardware work behind it. Sam Banks: octabam integration.", - "Modwerk contributors: source import with stock guards in place of stock bytes, the stock-free re-encoding of three kernel posts for the USB package, the emulator gate, documentation and SVG thumbnail." + "Modwerk contributors: source import with stock guards in place of stock bytes, the stock-free re-encoding of the kernel posts and two instruction pairs for the USB package, the emulator gate, documentation and SVG thumbnail." ] }, "nativeManifest": "manifest.py", @@ -23,12 +23,15 @@ "label": "Clock-locked pattern jump on [PTN] + [YES]", "family": "Sequencer", "summary": "Hold [PTN] and press [YES] to turn Direct Jump Kyoti on: a pattern you cue takes over on the next step, where it would be had it played since START.", - "overview": "On the stock OS a cued pattern waits for the playing one to reach its end. With Direct Jump on, it takes over on the next step instead, locked to the master clock: it starts at the step it would be on had it been playing since you pressed PLAY, whatever its length, scale or per-track settings. The Part, START SILENT and trig conditions change as on a stock pattern change. It is off at every power-on, so the stock behaviour stays the default. It is Zac Kyoti's design, distinct from octabam's other direct jump (Tim Hastie's CHAIN AFTER option).", + "overview": "On the stock OS a cued pattern waits for the playing one to reach its end. With Direct Jump on, it takes over on the next step instead, locked to the master clock: it starts at the step it would be on had it been playing since you pressed PLAY, whatever its length, scale or per-track settings. Trig conditions carry on as if the new pattern had played all along, each track gets its new Part settings with its own first trig, and with SILENCE TRACKS on the tracks a jump silences are released before the step instead of cut. It is off at every power-on, so the stock behaviour stays the default. It is Zac Kyoti's design, distinct from octabam's other direct jump (Tim Hastie's CHAIN AFTER option).", "highlights": [ - "OS 1.40C. Zac Kyoti tested the clock-locked timing, the Part change and the toggle on his MKI; Modwerk's USB package ran on an MKII.", + "OS 1.40C. Zac Kyoti tested this version's behaviour on his MKI in his own builds of the same code (15 November 2026); this Modwerk build has not yet run on a unit.", "Off at every power-on: until you turn it on, pattern changes are the stock ones.", - "The new pattern lands where it would be had it played since START, also with differing track lengths and scales (PER TRACK mode), so tracks stay in phase with the master clock.", - "The Part, START SILENT and trig conditions change as on a stock pattern change; the last MIDI Program Change names the pattern that plays; no MIDI START is sent on a jump.", + "The new pattern lands where it would be had it played since START, also with differing track lengths and scales (PER TRACK mode), so tracks stay in phase with the master clock. It lands a tick before the step, so its first step is never late, and a cue in the playing pattern's last step lands on its grid point too.", + "Trig conditions carry on across a jump: every A:B count stands where the new pattern's would; a latched [FILL] stays on, and a PRE trig right after the jump plays.", + "The Part's pattern-wide settings and START SILENT change as on a stock pattern change. With LFO AUTO CHANGE on, each track's new LFO settings arrive with its first trig of the new pattern, so a sound still ringing keeps its own.", + "With SILENCE TRACKS on, the tracks a jump silences are released with stock's note-off just before the step, so they do not pop.", + "The last MIDI Program Change names the pattern that plays; no MIDI START is sent on a jump.", "Includes Zac Kyoti's fix for stock's MIDI Plays-Free stall, so a Plays Free MIDI track in PER TRACK mode keeps playing and Direct Jump places it with its own scale.", "The arranger and pattern chains are left alone: while either runs, pattern changes are stock." ], @@ -72,10 +75,11 @@ "key:PATTERN+YES" ], "limitations": [ - "OS 1.40C. The author tested the timing, the Part change and the toggle on an MKI. Modwerk's USB package ran on an MKII (toggle, jumps between a 64- and a 16-step pattern, a power cycle, removal); a jump into another Part, per-track scales and external MIDI were not tried on it, and the card build has not run on a unit.", + "OS 1.40C. The author tested the timing, the Part change, the toggle and this version's trig conditions, Part-per-track and SILENCE TRACKS release on an MKI, in his own builds of the same Direct Jump code. This Modwerk build has not run on a unit; the 0.1.x USB package ran on an MKII (toggle, jumps between a 64- and a 16-step pattern, a power cycle, removal).", "OFF at every power-on and not stored in the project: turn it on again after a restart.", "While the arranger or a pattern chain runs, pattern changes stay stock.", "With differing track scales or lengths in PER TRACK mode, the jump waits for the next tick where every track is at a step boundary, at most one common step of all tracks' scales (24 clock ticks for 1x, 3/4x and 1/2x together).", + "With LFO AUTO CHANGE on, a track whose new pattern has trigs keeps the old Part's LFO setup until its first trig there; STOP, turning Direct Jump off or the next jump applies every waiting track at once.", "[PTN] + [YES] no longer opens the pattern chooser on releasing [PTN]; [YES] alone and [PTN] with a trig key are unchanged.", "Carries the author's fix for stock's MIDI Plays-Free stall (a Plays Free MIDI track with trig quantize DIRECT under PER TRACK scale stopped after its first step), whether Direct Jump is on or off. The bundle's other two fixes are not included.", "A jump changes the Part through stock's own Part-change path, so stock's known Part-change carryover issues (a track going from PICKUP to FLEX can keep the old Part's pickup loop) happen on a jump as on a stock pattern change.", diff --git a/sdk/octatrack/modules/direct-jump-kyoti/patch_directjump_v7.s b/sdk/octatrack/modules/direct-jump-kyoti/patch_directjump_v7.s index 5d734eeaa1..e8a2bdd80d 100644 --- a/sdk/octatrack/modules/direct-jump-kyoti/patch_directjump_v7.s +++ b/sdk/octatrack/modules/direct-jump-kyoti/patch_directjump_v7.s @@ -17,9 +17,23 @@ | since V6 -- schedules every track exactly; uniform-scale patterns land on the next master | step as before. Plus: primacy purge of the outgoing pattern's pending events, and the | reload fix-up the reference requires. Nothing touches the wrap-change body. +| V7.0.2 (2026-11-13, WIP; the user's rule from Clyps): a jump no longer restarts the trig +| conditions (COND_RESET(-1)); dj_cond puts every A:B counter where the never-switched +| reference holds it (graded by tools/cmp_reflock.py --cond). +| V7.1 (2026-11-13, WIP; the user's decision, Clyps CL26's fix): a jump lands one tick BEFORE the +| boundary (the next tick's t' = 0 mod L) and fires for it -- every reload and the master tick one +| less after stock's loader (ahead 2), the engines' switch one tick ahead, and dj_purge a tick +| ahead with a half-tick margin. V7.0.x landed ON the boundary tick, where the outgoing boundary +| event tied the sample clock exactly (+0.0000 tick) and only `bmi` decided it. The new step +| fires exactly where the old boundary event would have (REF-LOCK unchanged). +| V7.2.2 (2026-11-15, WIP, hardware A/B): the tracks the switch will silence are released with stock's +| note-off on the tick after the landing (dj_relsil), so SILENCE TRACKS' hard kill lands on faded voices. +| V7.1.1 (2026-11-13): stock's wrap-change never takes a cue DIRECT JUMP has armed (dj_hide). +| V7.2 (2026-11-13, WIP): each track's own Part reaches the engine with its first sounding trig of +| the incoming pattern (dj_sparm .. dj_mapply); the jump keeps the Part-wide items. | ========================================================================================= | SPDX-License-Identifier: MIT -| SPDX-FileCopyrightText: 2026 Zac-Kyoti +| SPDX-FileCopyrightText: 2026 Zac Kyoti | | DIRECT JUMP V6 -- Session 105 (2026-09-26). the AR's DIRECT JUMP behaviour, reproduced through OT's OWN landing. | @@ -138,6 +152,22 @@ .equ ENG_MBANK, 0x46c7a850 .equ ENG_MPART, 0x46c7a934 .equ COND_RESET, 0x400a539c | FUN_400a539c(track | -1): reset A:B cycle counters / pending FILL + .equ P_CHAINQ, 0x8e56 | pattern blob: CHAIN AFTER index (signed; < 0 = the project's) + .equ PROJ_QUANT, 0x8000004e | byte: the project's CHAIN AFTER index + .equ QUANT_TBL, 0x400d80dc | long[]: CHAIN AFTER length in master steps (<= 0 = off) + .equ END_STEP, 0x8000662c | long: a pattern-end override step (-1 = none), stock 0x400a431a + .equ STOP_END, 0x8000667e | byte: stop at the next master step (stock 0x400a4006) +| V7.2 -- the incoming Part per track at its first sounding trig: + .equ TRK_APPLY, 0x40001f18 | (bank, part, t): one audio track's Part values -> the engine + .equ PART_OFF, 0x8ed80 | a bank's 4 Parts, after its 16 pattern blobs + .equ PARTSZ, 0x18b2 + .equ MENG, 0x46c76dc0 | 8 x 68 B: a MIDI track's page values (32) + setup (36) + .equ MDES, 0x46c7738c | 24 x 16 B: the MIDI LFOs' designer waves + .equ MSLP, 0x46c7750c | 24 x u16: ... their slopes + .equ MBANK, 0x8000666e | byte[8] bank / [8+m] Part the MIDI track's values came from + .equ MZERO, 0x8000664e | long[8], cleared by stock's apply + .equ M_REC, 0x48d0 | pattern blob: MIDI track 0's record (+ m * M_STRIDE) + .equ NOTE_OFF, 0x40008f84 | (t): stock's note-off -- the release with the DSP's declick (STOP) .equ MSG_PAT, 0x400d816b | message 0x11: {code, pattern, 1} -- stock's WRAP-CHANGE .equ MSG_PAT_ARG, 0x400d816c | post @0x400a4b9a. NOT 0x400d8164 -- see dl_commit. @@ -166,6 +196,8 @@ .equ T_FLAG, 4 | !=0: stock keeps the LIVE scale (does not reload) .equ SCLK, 0x4610757c | audio-domain sample clock (fire-time base) .equ MCLK, 0x46107564 | MIDI-domain clock (MIDI fire-time base) + .equ TICK_A, 0x285ff0 | one sequencer tick in SCLK units (44100*60: tempo-independent) + .equ TICK_M, 16800 | one sequencer tick in MCLK units (stock's 0x400a4728) .ifndef DJ_TOFS .equ DJ_TOFS, 0 | t of this ISR = dj_T + DJ_TOFS. MEASURED 0 (rl_v70: t - dj_T == 0 | at all 301 ticks); the first build's guess of 1 landed @@ -257,6 +289,7 @@ dj_msg_off: dj_land: lea -60(%sp),%sp movem.l %d0-%d7/%a0-%a6,(%sp) + bsr.w dj_unhide | V7.1.1: the cue dj_hide held back last tick .ifdef DJ_DIAG move.b LAND_CNTDN,%d0 move.b %d0,dj_obs_c @@ -291,6 +324,7 @@ dt_done: cmpi.b #ST_FIXUP,%d0 bne.b dl_notfix bsr.w dl_fixup | the tick after a landing: reload := reference value + bsr.w dj_relsil | V7.2.2: release the tracks the switch will silence clr.b dj_state bra.w dl_done dl_notfix: @@ -318,7 +352,10 @@ da_same: bra.w dl_done dl_off: | DJ off / stopped / arranger / chain - move.b dj_state,%d0 + tst.b dj_spn + beq.b 1f + bsr.w dj_spflush | V7.2: STOP (or DJ off) publishes what still waits, at once +1: move.b dj_state,%d0 cmpi.b #ST_ARMED,%d0 | (ColdFire cmpi takes only a Dn destination) bne.b dl_clear clr.b LAND_CNTDN | WE armed stock's countdown -> take it back @@ -337,6 +374,18 @@ dl_idle: move.b PEND_BANK,%d0 cmp.b ACT_BANK,%d0 bne.b dl_real + .ifdef DJ_SELFHOOK +| KYOTI with Clyps: cued == active, but Clyps asks for a jump to the playing pattern as it was +| loaded (ORIG PTN+PART, the user 2026-11-04) -> arm as for any cue (dj_selfvec, below) + move.l dj_selfvec,%d0 + beq.b di_nself + movea.l %d0,%a0 + movea.l (%a0),%a0 | [0] -> d0 != 0: a self-jump is requested + jsr (%a0) + tst.l %d0 + bne.w dl_real +di_nself: + .endif | cued == active. V7.0.1: if our last Program Change named a pattern that is NOT playing (a | cue was cancelled back to the playing pattern), re-send the playing pattern's so external | gear follows what the OT actually plays. After a normal landing the last PC IS the playing @@ -400,6 +449,9 @@ dl_arm: moveq #0,%d1 move.b PEND_PAT,%d1 bsr.w dj_blob | a2 = incoming pattern blob + .ifdef DJ_SELFHOOK + bsr.w dj_selfblob | a self-jump: the pattern as it was loaded (Clyps) + .endif bsr.w dj_bparams move.l dj_T,%d7 addi.l #DJ_TOFS,%d7 | d7 = t of this ISR @@ -407,7 +459,8 @@ dl_arm: da_scan: move.l %d7,%d0 add.l %d6,%d0 - bsr.w dj_tprime | d0 = t' (signed) for tick d0 + addq.l #1,%d0 | V7.1: the NEXT tick's t' -- a jump lands one tick before + bsr.w dj_tprime | the boundary (Clyps CL26); d0 = t' (signed) of tick d0 tst.l %d0 blt.b da_next move.l dj_L,%d1 @@ -442,13 +495,158 @@ dl_arm2: moveq #ST_ARMED,%d0 move.b %d0,dj_state dl_done: + tst.b dj_spn + beq.b 1f + bsr.w dj_spdo | V7.2: the tracks whose first trig is due now get their Part +1: move.b dj_state,%d0 + cmpi.b #ST_ARMED,%d0 + bne.b dl_out + bsr.w dj_hide | V7.1.1: stock's switch must not take an armed cue +dl_out: movem.l (%sp),%d0-%d7/%a0-%a6 lea 60(%sp),%sp move.b LAND_CNTDN,%d0 | displaced original -- sets the flags for ble.w rts +| ================= V7.1.1: an armed cue is DIRECT JUMP's, not stock's switch's ================= +| The race (found 2026-11-13, REF-LOCK run o4/n4): a cue made shortly before the outgoing pattern's +| switch point (its last master step, or a CHAIN AFTER boundary) is armed for the incoming pattern's +| landing grid, up to L - 1 ticks away (L = 24 with a 1/4x track). Stock's phase G reached its +| switch point first: the wrap body (0x400a43a0) commits PEND whenever it is set (0x400a44b8- +| 0x400a44dc, whatever d6 says) and, PEND != ACT, runs the full switch (step 0 one master step on, +| COND_RESET(-1)); DIRECT JUMP then re-landed on its grid -- 11 ticks of the incoming pattern from +| step 0, off the reference. Fix: on the one tick whose phase G will take the switch (stock's own +| decision 0x400a3fdc-0x400a439c, replayed by dj_hide), PEND reads as the playing pattern -- the +| wrap body then wraps the outgoing pattern as if nothing were cued -- and the next tick, first +| thing in phase D, dj_unhide puts the cue back (unless the performer cued meanwhile) and repaints +| the UI with the wrap's own {0x11} message. No stock site, no new hook. +| dj_hide (dj_land's saved-register context, state ARMED): d0-d3/a0/a2 used. +dj_hide: + tst.b STOP_END + bne.w dh_no | stock's stop at the step end commits the cue: leave it + moveq #0,%d0 + move.b ACT_BANK,%d0 + moveq #0,%d1 + move.b ACT_PAT,%d1 + bsr.w dj_blob | a2 = the playing pattern (stock's a4 in phase G) + moveq #0,%d1 + move.b SCALE_IX,%d1 + moveq #SCALE_MAX,%d0 + cmp.l %d0,%d1 + bls.b 1f + moveq #SCALE_1X,%d1 | out of range: 1x (as everywhere here) +1: lea LEN_TBL,%a0 + move.l (%a0,%d1.l*4),%d2 | the live tps_M + move.b TICK_CTR,%d1 + extb.l %d1 + addq.l #1,%d1 | phase G: ++tick, a master step when it reaches tps_M + cmp.l %d2,%d1 + blt.w dh_no + moveq #0,%d2 + move.w MASTER_STEP,%d2 + addq.l #1,%d2 + andi.l #0xffff,%d2 | d2 = the master step phase G is about to start (mvz.w) + move.l #P_CHAINQ,%d0 + move.b (%a2,%d0.l),%d1 + extb.l %d1 + bpl.b 2f + move.b PROJ_QUANT,%d1 + extb.l %d1 +2: lea QUANT_TBL,%a0 + move.l (%a0,%d1.l*4),%d3 | N = CHAIN AFTER (master steps) + tst.l %d3 + ble.b dh_end + move.l %d2,%d0 + rems.l %d3,%d1:%d0 | a cue switches where the step is 0 mod N + tst.l %d1 + beq.b dh_yes +dh_end: + move.l END_STEP,%d0 + moveq #-1,%d1 + cmp.l %d1,%d0 + beq.b dh_len + cmp.l %d2,%d0 + bgt.b dh_no + bra.b dh_yes +dh_len: + move.l #P_SCALE_MODE,%d0 + tst.b (%a2,%d0.l) + beq.b 3f + move.l #P_MLEN_WORD,%d0 + move.w (%a2,%d0.l),%d1 | PER-TRACK: master length (-1 = INF) + ext.l %d1 + bra.b 4f +3: move.l #P_LEN_BYTE,%d0 + move.b (%a2,%d0.l),%d1 | NORMAL: the pattern length + extb.l %d1 +4: moveq #-1,%d0 + cmp.l %d0,%d1 + beq.b dh_no + cmp.l %d2,%d1 + bgt.b dh_no | the pattern's end is not reached +dh_yes: + move.b ACT_PAT,%d0 + move.b %d0,PEND_PAT + move.b ACT_BANK,%d0 + move.b %d0,PEND_BANK + moveq #1,%d0 + move.b %d0,dj_hid +dh_no: + rts + +| dj_unhide: first thing in phase D, every tick (DJ on or off: the cue is the performer's). The +| cue goes back only while PEND still reads as the playing pattern -- one cued in between stands +| (dj_land's re-cue rule handles it). Uses d0 (+ KPOST's scratch). +dj_unhide: + tst.b dj_hid + beq.b du_out + clr.b dj_hid + move.b PEND_PAT,%d0 + cmp.b ACT_PAT,%d0 + bne.b du_out + move.b PEND_BANK,%d0 + cmp.b ACT_BANK,%d0 + bne.b du_out + move.b dj_armpat,%d0 + move.b %d0,PEND_PAT + move.b dj_armbank,%d0 + move.b %d0,PEND_BANK + move.b ACT_PAT,%d0 | the wrap's {0x11, pattern, 1} again: the UI repaints the cue + move.b %d0,MSG_PAT_ARG + lea MSG_PAT,%a0 + bsr.w dj_post | MODWERK: KPOST(UI_QUEUE, MSG_PAT), see dj_post +du_out: + rts + +| MODWERK: dj_post(a0 = message) -- the kernel post stock's wrap-change makes, KPOST(UI_QUEUE, +| message), reached through %a1. Same calls in the same order as the author's four inline +| posts, so that no 12 bytes of a USB package repeat stock's own posting code (the strict +| stock-free scan); the second purge table's two leas and the two operands of the hand-off's +| switch time are swapped for the same reason. KPOST is a C function: it keeps a2-a6/d2-d7, +| which is all the callers rely on (every caller runs inside dj_land, which saves them all). +dj_post: + move.l %a0,-(%sp) + pea UI_QUEUE + lea KPOST,%a1 + jsr (%a1) + addq.l #8,%sp + rts + + | dl_commit: the landing tick. Registers are free (saved by the caller). dl_commit: + tst.b dj_spn + beq.b 1f + bsr.w dj_spflush | V7.2: a new jump publishes the last one's pending tracks at once +1: + .ifdef DJ_SELFHOOK + move.l dj_selfvec,%d0 | [2]: Clyps puts a self-jump's pattern + Part back now, + beq.b dc_nself | before the parameters and the hand-off below read them + movea.l %d0,%a0 | (it clears its request either way) + movea.l 8(%a0),%a0 + jsr (%a0) +dc_nself: + .endif move.b ACT_PAT,%d0 move.b %d0,PREV_PAT move.b ACT_BANK,%d0 @@ -490,7 +688,7 @@ dc_noc: move.l %d4,RESUME_L move.l %d0,%d5 sub.l %d3,%d5 - addq.l #1,%d5 | d5 = t' (>= 0: t' = 0 mod L by construction) + addq.l #2,%d5 | d5 = the boundary's t' = t'(t_L) + 1 (>= 0, 0 mod L: dl_arm) lea SNAP_STEP,%a0 lea SNAP_TICK,%a1 lea dj_tps,%a3 @@ -582,19 +780,6 @@ dc_store: .endif rts -| MODWERK: dj_post(a0 = message) -- the kernel post stock's wrap-change makes, KPOST(UI_QUEUE, -| message), reached through %a1. Same calls in the same order as the author's three inline -| posts, so that no 12 bytes of a USB package repeat stock's own posting code (the strict -| stock-free scan); the second purge table's two leas are swapped for the same reason. KPOST -| is a C function: it keeps a2-a6/d2-d7, which is all the callers rely on. -dj_post: - move.l %a0,-(%sp) - pea UI_QUEUE - lea KPOST,%a1 - jsr (%a1) - addq.l #8,%sp - rts - | ================= Hook N @ 0x400a221c -- no MIDI START on a jump ================= | Replaces `tst.b (0x8000002a).l` (6 B); stock's next instruction is `beq.b` (skip the | 0xFA send when the byte is 0). While LANDING: consume the state and give it Z=1 @@ -608,6 +793,25 @@ dj_nofa: bne.b dn_stock moveq #ST_FIXUP,%d0 | V7: next tick fixes reload (D0 dead here, see above) move.b %d0,dj_state +| V7.1: the landing is one tick before the boundary. Stock's loader (just above, 0x400a1fd0- +| 0x400a2072) set every reload to tps - 1 and the master tick to tps_M - 1 (fire at once); one +| less each: phase E's first fire is scheduled a tick ahead (ahead 2), on the boundary, exactly +| where the outgoing boundary event would have sounded; the master steps on the boundary too. + move.l %a0,-(%sp) + move.l %d1,-(%sp) + lea RELOAD,%a0 + moveq #16,%d1 +dn_rl: + move.b (%a0),%d0 | (ColdFire: subq is long-only) + subq.l #1,%d0 + move.b %d0,(%a0)+ + subq.l #1,%d1 + bne.b dn_rl + move.b TICK_CTR,%d0 + subq.l #1,%d0 + move.b %d0,TICK_CTR + move.l (%sp)+,%d1 + movea.l (%sp)+,%a0 tst.b dj_zero | Z = 1 -> "do not send" rts dn_stock: @@ -648,7 +852,9 @@ dj_handoff: move.l #A_STRIDE,%d6 bsr.w ho_bits move.l %d4,ENG_AFLAGS - move.l SCLK,%d0 | stock: a3 + sclk; V7 switches now + move.l %d4,dj_silA | V7.2: START SILENT tracks publish on the boundary tick + move.l #TICK_A,%d0 | MODWERK: TICK_A + sclk, the same sum and flags (dj_post's note) + add.l SCLK,%d0 | stock: sclk + tps_M * TICK_A; V7.1: the boundary is the NEXT tick move.l %d0,ENG_ATIME move.b ACT_BANK,%d0 move.b %d0,ENG_ABANK @@ -661,8 +867,9 @@ dj_handoff: move.l #M_STRIDE,%d6 bsr.w ho_bits move.l %d4,ENG_MFLAGS -| MIDI switch times, 0x400a470a-0x400a47b2 (d5 = 0): the offsets depend on the MIDI clock -| settings exactly as in stock + move.l %d4,dj_silM +| MIDI switch times, 0x400a470a-0x400a47b2 (stock's d5 = ticks ahead; V7.1: 1, the boundary is the +| next tick -- V7.0.x: 0): the offsets depend on the MIDI clock settings exactly as in stock moveq #0,%d5 | d5 = 1: the "fast" branch tst.b 0x80001860 bne.b ho_mt @@ -674,6 +881,7 @@ dj_handoff: moveq #1,%d5 ho_mt: move.l MCLK,%d0 + addi.l #TICK_M,%d0 | V7.1: d5 = 1 tick ahead tst.l %d5 bne.b ho_mt1 addi.l #12600,%d0 @@ -682,6 +890,7 @@ ho_mt1: moveq #1,%d0 move.l %d0,ENG_MFLAG move.l MCLK,%d0 + addi.l #TICK_M,%d0 | V7.1: d5 = 1 tick ahead tst.l %d5 beq.b ho_mt2 subi.l #16800,%d0 @@ -695,10 +904,96 @@ ho_mt3: move.l #P_PART,%d1 move.b (%a2,%d1.l),%d0 move.b %d0,ENG_MPART -| conditional trigs start fresh, as on every stock switch (0x400a484c-0x400a4856) - pea -1 - jsr COND_RESET - addq.l #4,%sp +| V7.0.2 (2026-11-13, the user's rule from Clyps, scope §1.29 C): the trig conditions stand where +| a never-switched incoming pattern would have them -- stock's switch (and V7.0.1) restarted them +| with COND_RESET(-1) 0x400a539c here. dj_cond (below) sets every track's A:B pass counter. + bsr.w dj_sparm | V7.2: every track's Part publish waits for its first trig + bra.w dj_cond + +| dj_cond: every track's trig-condition state at the landing tick t_L (dj_tland), as a reference run +| that had played the incoming pattern since START holds it (REF-LOCK: tools/cmp_reflock.py --cond). +| A:B pass counter 0x46107918[t] = F(t_L): the passes track t would have begun since PLAY, in the +| incoming pattern's model (dj_bparams' tps_M / C / tps_t / len_t; time = dj_T, PLAY = 0, the +| master cycle starting at 0 mod C -- dj_tprime). The measured stock facts (Clyps M1-M3, +| reference/handoffs/RELOAD_CLYPS_PORT.md rule 3): a pass starts at each own wrap (0x400a536c, +| t' = j*c - tps, c = len*tps) and at the master's restart (the wrap body, t' = C - tps_M), once +| when they coincide. Per master cycle K = J + (rem != 0), J = (C - tps_M + tps) / c (rem its +| remainder); F(x) = q*K + min((u + tps - 1) / c, J) + (rem && u > C - tps_M), q = x / C, +| u = x mod C. INF (C = 0): F(x) = (x + tps - 1) / c. F(0) = 0, so nothing to subtract. +| PRE latch 0x46107979[t] = 1, as COND_RESET sets it: the incoming pattern's own last condition +| result is unknown here; 1 is what the reference holds while none has been evaluated. +| FILL latches 0x46107959 / 69 [t]: KEPT. They hold the performer's FILL press (0x400a5460), +| which a reference run would hold as well; COND_RESET(-1) used to drop a latched FILL. +| Every register is free (dl_commit's caller, dj_land, saved them all); a2 is no longer needed. +dj_cond: + move.l dj_tland,%d7 | x = t_L (>= 0) + tst.l dj_C + beq.b cn_init | INF: no master cycle + move.l dj_C,%d6 + move.l %d6,%d0 + sub.l dj_tpsM,%d0 + movea.l %d0,%a6 | a6 = C - tps_M: the master restart's t' + move.l %d7,%d0 + divu.l %d6,%d0 + movea.l %d0,%a5 | a5 = q = x / C + muls.l %d6,%d0 + move.l %d7,%d1 + sub.l %d0,%d1 + movea.l %d1,%a2 | a2 = u = x - q*C +cn_init: + lea dj_tps,%a3 + lea dj_len,%a4 + lea 0x46107918,%a0 | A:B pass counters, long[16] + lea 0x46107979,%a1 | PRE latch, byte[16] + moveq #16,%d5 +cn_loop: + moveq #0,%d4 + move.b (%a3)+,%d4 | tps + moveq #0,%d3 + move.b (%a4)+,%d3 | len + bne.b 1f + moveq #1,%d3 | (a length of 0 never plays: count it as 1) +1: muls.l %d4,%d3 | d3 = c = len * tps (> 0) + tst.l dj_C + bne.b cn_cyc + move.l %d7,%d0 | INF: F = (x + tps - 1) / c + add.l %d4,%d0 + subq.l #1,%d0 + divu.l %d3,%d0 + bra.b cn_store +cn_cyc: + move.l %a6,%d0 + add.l %d4,%d0 | C - tps_M + tps + move.l %d0,%d1 + divu.l %d3,%d1 | d1 = J: own wraps up to the wrap body + move.l %d1,%d2 + muls.l %d3,%d2 + sub.l %d2,%d0 | d0 = rem (!= 0: the master's restart is a pass start of its own) + move.l %d1,%d2 + tst.l %d0 + beq.b 2f + addq.l #1,%d2 | d2 = K: pass starts per master cycle +2: move.l %a5,%d6 + muls.l %d2,%d6 | d6 = q * K + move.l %a2,%d2 + add.l %d4,%d2 + subq.l #1,%d2 + divu.l %d3,%d2 | own wraps before u ... + cmp.l %d1,%d2 + bls.b 3f + move.l %d1,%d2 | ... at most J +3: tst.l %d0 + beq.b 4f + cmpa.l %a6,%a2 + bls.b 4f + addq.l #1,%d2 | the master's restart before u +4: move.l %d6,%d0 + add.l %d2,%d0 | F(x) +cn_store: + move.l %d0,(%a0)+ + move.b #1,(%a1)+ + subq.l #1,%d5 + bne.w cn_loop rts | ho_bits: OR (1 << (t+8)) into d4 for each of 8 tracks whose START SILENT byte is 1, or -1 @@ -727,6 +1022,27 @@ ho_nx: rts | ================= V7 helpers (all called from dj_land's saved-register context) ========== + .ifdef DJ_SELFHOOK +| dj_selfblob: a self-jump requested -> a2 = Clyps' copy of the pattern as loaded ([1] -> d0), so +| the landing tick is computed from the lengths / scales the jump will land with +dj_selfblob: + move.l dj_selfvec,%d0 + beq.b ds_out + move.l %a2,-(%sp) + movea.l %d0,%a0 + movea.l (%a0),%a0 + jsr (%a0) + movea.l (%sp)+,%a2 + tst.l %d0 + beq.b ds_out + movea.l dj_selfvec,%a0 + movea.l 4(%a0),%a0 + jsr (%a0) + movea.l %d0,%a2 +ds_out: + rts + .endif + | dj_blob: d0 = bank, d1 = pattern -> a2 = pattern blob dj_blob: move.l #BANK_STRIDE,%d2 @@ -868,11 +1184,17 @@ tp_noc: addq.l #1,%d0 rts -| dj_purge: cancel every still-pending event (fire time >= now) in the two audio tables and -| the MIDI table, with stock's own cancellation (0x400a43b6-0x400a4464): clear the record -| long and the slot's bit in the track mask; the fire time itself is left alone. +| dj_purge: cancel every pending event of the outgoing pattern from the boundary on in the two +| audio tables and the MIDI table, with stock's own cancellation (0x400a43b6-0x400a4464): clear the +| record long and the slot's bit in the track mask; the fire time itself is left alone. +| V7.1 (2026-11-13, the user: Clyps CL26's fix): the landing is one tick BEFORE the boundary, so an +| event is the outgoing pattern's from the boundary on when it fires half a tick or more from now. +| The boundary events sit a whole tick ahead and events due on this tick stay: half a tick of margin +| either way (V7.0.x purged on the boundary tick itself with fire - now >= 0, where the boundary +| events tied the sample clock exactly -- measured +0.0000 tick). dj_purge: move.l SCLK,%d5 + move.l #TICK_A/2,%d3 | half an audio tick lea 0x80001904,%a0 lea 0x46c7e998,%a1 lea 0x46c7fe44,%a3 @@ -882,11 +1204,13 @@ dj_purge: lea 0x46c7faa4,%a1 bsr.b pg_table move.l MCLK,%d5 + move.l #TICK_M/2,%d3 | half a MIDI tick lea 0x46c76a26,%a0 lea 0x46c769c0,%a1 lea 0x46c77be2,%a3 | fall through -| pg_table: a0 = times[t + slot*8] (longs), a1 = records (same layout), a3 = mask[8], d5 = now +| pg_table: a0 = times[t + slot*8] (longs), a1 = records (same layout), a3 = mask[8], d5 = now, +| d3 = half a tick in this table's clock pg_table: moveq #0,%d6 | track pg_trk: @@ -901,7 +1225,8 @@ pg_slot: add.l %d6,%d1 | idx = track + slot*8 move.l (%a0,%d1.l*4),%d2 sub.l %d5,%d2 - bmi.b pg_next | already due: leave it (stock's boundary rule) + cmp.l %d3,%d2 + blt.b pg_next | fires before the boundary: the outgoing pattern's, leave it clr.l (%a1,%d1.l*4) bclr %d4,%d0 move.b %d0,(%a3,%d6.l) @@ -916,6 +1241,34 @@ pg_next: bne.b pg_trk rts +| dj_relsil (V7.2.2, 2026-11-15, hardware A/B; the user's SILENCE TRACKS pop): the switch silences every +| audio track whose START SILENT / SILENCE TRACKS bit the hand-off set (dj_silA bits 8..15) with a HARD kill +| (0x40006820 from 0x4000d45a, measured: no fade). Stock's change masks it with the new pattern's step-0 +| trigs; a jump landing on a step without a trig left the cut bare (ot_emu render, OT DEMO A05 -> A03: 2nd +| difference 0.169 at the switch vs 0.028 without one). Release those tracks first with stock's note-off -- +| the release STOP and MUTE_MODES OTFX-T use, the DSP's own declick fade -- so the kill lands on faded voices. +| Called on the tick after the landing (the boundary tick's phase D): the sequencer runs about a tick ahead +| of the audio, so this is about one tick before the audible boundary (the landing tick itself would be two: +| measured, the outgoing sound then went quiet ~2 ticks early). Render: switch transient 0.018, the outgoing +| sound kept until then. Nothing when no track is silenced. Registers: dj_land saved them all; 0x40008f84 +| keeps d2-d7/a2-a6. +dj_relsil: + move.l dj_silA,%d4 + moveq #0,%d5 +rs_l: + move.l %d5,%d0 + addq.l #8,%d0 + btst %d0,%d4 + beq.b 1f + move.l %d5,-(%sp) + jsr NOTE_OFF + addq.l #4,%sp +1: addq.l #1,%d5 + moveq #8,%d0 + cmp.l %d5,%d0 + bne.b rs_l + rts + | dl_fixup: the tick after a landing. Stock's landing leaves reload = tps_t - 1 (it drives | the landing's immediate first fire); the reference holds 0 until the first master wrap | since START, then the wrap-change catch-up max(0, tps_t - tps_M). Nothing reads reload @@ -963,13 +1316,445 @@ fx_store: bne.b fx_loop rts + +| ================= V7.2: the incoming Part per track, at its first SOUNDING trig ================= +| The user (2026-11-13, Clyps' FULL-load rule): a performer should never hear the incoming sequence's track +| settings applied to the sound being changed away from. Until V7.1 the engine's light Part apply +| 0x40009e00 (from the hand-off's switch, 0x4000b1d8) applied the incoming Part on the boundary: the +| Part-wide items (published bank / Part 0x80001828/29 -- what each new trig's voice reads --, the scene +| table 0x800010e4..e7, the UI's 0x46c7d6d4 block and its two posts) and, with LFO AUTO CHANGE +| (0x80000050), every track's LFO setup -- under a sample still ringing from the outgoing pattern. +| V7.2: the switch keeps the Part-wide items (dj_lfoq skips the per-track part of that one apply) and each +| track gets its own Part (TRK_APPLY / dj_mapply, as Clyps' cl_sppub and RELOAD's rl_pub1; only with LFO +| AUTO CHANGE on, see dj_sparm) on the tick where +| a pending event of the new sequence with record bit 2 (the builder's 29 / 61: a sample / note trig; 25 is +| a trigless trig, 1 an empty step) fires within half a tick -- micro-timing and trig conditions honoured +| (a trig whose condition fails is never built). A sequence without any sample trig, and a START SILENT +| track (stock silences it at the switch: nothing rings), publish on the boundary tick. STOP, DJ off and a +| new jump publish everything still pending at once. The engine's own voice code restarts a machine +| that differs from the voice's Part when it triggers (0x4000c9e8: it compares the voice's bank / Part +| with the published one), so no restart bit is needed here. + +| dj_lfoq: the light Part apply's `tst.b 0x80000050` (LFO AUTO CHANGE, 0x40009ebe, jsr, 6 B; stock's +| beq.w 0x4000a138 follows on its Z flag). The one apply after a jump's hand-off sees Z = 1: its per-track +| LFO loops are skipped (each track's publish brings them). Keeps every register. + .global dj_lfoq +dj_lfoq: + tst.b dj_defer + beq.b lq_stock + clr.b dj_defer + cmp.l %d0,%d0 | Z = 1 + rts +lq_stock: + tst.b 0x80000050 | displaced original + rts + +| dj_sparm (the landing tick, from dj_handoff; a2 = the incoming blob): every track's publish waits. +| Measured (tools/check_dj_part.py, 2026-11-13): the light apply's ONLY per-track part is the LFO setup, and +| only with LFO AUTO CHANGE on (0x80000050, the project's CONTROL > SEQUENCER setting); every other track +| setting of the new Part reaches the voice through the published bank / Part at its trigs. So with LFO +| AUTO CHANGE off there is nothing per track to defer, and nothing is armed: a TRK_APPLY would impose the +| new Part's LFOs, which stock never does then. Uses d0-d7/a0-a1 (dj_land saved them). +dj_sparm: + tst.b 0x80000050 + bne.b 1f + rts | LFO AUTO CHANGE off: the switch's light apply is all there is +1: + move.b ACT_BANK,%d0 + move.b %d0,dj_spbk + move.l #P_PART,%d1 + move.b (%a2,%d1.l),%d0 + move.b %d0,dj_sppt + move.l SCLK,%d5 + addi.l #TICK_A/2,%d5 | d5 = audio: a new-sequence event fires at or after (dj_purge's line) + move.l MCLK,%d4 + addi.l #TICK_M/2,%d4 | d4 = MIDI + moveq #0,%d6 | t +sa_l: + moveq #2,%d7 | default: the boundary tick + move.l dj_silA,%d0 + cmpi.l #8,%d6 + bcs.b 1f + move.l dj_silM,%d0 +1: move.l %d6,%d1 + andi.l #7,%d1 + addq.l #8,%d1 + btst %d1,%d0 + bne.b sa_set | START SILENT: stock silences it at the switch +| any sample trig in the incoming sequence (under its length)? + move.l %d6,%d0 + bsr.w dj_tmask + tst.l %d0 + beq.b sa_set | no sample trig: the boundary tick + move.l #0xfffe,%d7 | wait for the first sounding one +sa_set: + move.l %d6,%d0 + add.l %d0,%d0 + lea dj_spd,%a0 + move.w %d7,(%a0,%d0.l) + add.l %d0,%d0 + lea dj_sptm,%a0 + move.l %d5,(%a0,%d0.l) + cmpi.l #8,%d6 + bcs.b 6f + move.l %d4,(%a0,%d0.l) +6: addq.l #1,%d6 + moveq #16,%d0 + cmp.l %d6,%d0 + bne.w sa_l + moveq #1,%d0 + move.b %d0,dj_spn + move.b %d0,dj_defer | the switch's light apply: Part-wide only + rts + +| dj_tmask (a2 = a pattern blob, d0 = t) -> d0 = t's trig mask (sample / note trigs, the record's first 8 +| bytes, big-endian, bit s = step s) under its length, the two halves OR-ed (0 = no sample trig). The +| length as stock's landing loads it: NORMAL the pattern's, PER-TRACK the record's. Uses d0-d3/a0. +dj_tmask: + move.l %d0,%d3 | t + cmpi.l #8,%d0 + bcc.b 1f + move.l #A_STRIDE,%d1 + muls.l %d1,%d0 + lea (%a2,%d0.l),%a0 | audio record + moveq #A_LEN,%d1 + bra.b 2f +1: subq.l #8,%d0 + move.l #M_STRIDE,%d1 + muls.l %d1,%d0 + addi.l #M_REC,%d0 + lea (%a2,%d0.l),%a0 | MIDI record + move.l #M_LEN-M_REC,%d1 +2: moveq #0,%d0 + move.b (%a0,%d1.l),%d0 | PER-TRACK length + move.l #P_SCALE_MODE,%d1 + tst.b (%a2,%d1.l) + bne.b 3f + move.l #P_LEN_BYTE,%d1 + moveq #0,%d0 + move.b (%a2,%d1.l),%d0 | NORMAL: the pattern's +3: move.l 4(%a0),%d2 | steps 0..31 + move.l (%a0),%d3 | steps 32..63 + moveq #32,%d1 + cmp.l %d1,%d0 + bcc.b 4f + moveq #0,%d3 | len < 32: no high steps + moveq #1,%d1 + lsl.l %d0,%d1 + subq.l #1,%d1 + and.l %d1,%d2 | steps < len + bra.b 5f +4: subi.l #32,%d0 + cmpi.l #32,%d0 + bcc.b 5f + moveq #1,%d1 + lsl.l %d0,%d1 + subq.l #1,%d1 + and.l %d1,%d3 +5: or.l %d3,%d2 + move.l %d2,%d0 + rts + +| dj_hastrig (d6 = t) -> d0 != 0 when the sequence now playing t has a sample trig. Keeps all but d0. +dj_hastrig: + lea -24(%sp),%sp + movem.l %d1-%d3/%a0-%a2,(%sp) + moveq #0,%d0 + move.b ACT_BANK,%d0 + moveq #0,%d1 + move.b ACT_PAT,%d1 + bsr.w dj_blob + move.l %d6,%d0 + bsr.w dj_tmask + movem.l (%sp),%d1-%d3/%a0-%a2 + lea 24(%sp),%sp + rts + +| dj_spdo (every tick, dj_land's saved context): count down / look for the sounding trig; publish. +dj_spdo: + moveq #0,%d6 + moveq #0,%d3 | d3 = one is still pending +so_l: + move.l %d6,%d1 + add.l %d1,%d1 + lea dj_spd,%a0 + moveq #0,%d0 + move.w (%a0,%d1.l),%d0 + beq.b so_n + cmpi.l #0xfffe,%d0 + bne.b so_dec + bsr.w dj_sptrig + tst.l %d0 + bne.b so_go +| 2026-11-14 (the overlap test, KYOTI-with-Clyps): Clyps may have loaded a sequence without any sample trig +| onto the track since the jump -- then no trig will ever come: the boundary rule, now (it was left +| pending until the next jump / STOP). + bsr.w dj_hastrig + tst.l %d0 + beq.b so_go + moveq #1,%d3 + bra.b so_n +so_dec: + subq.l #1,%d0 + move.w %d0,(%a0,%d1.l) + beq.b so_go + moveq #1,%d3 + bra.b so_n +so_go: + bsr.w dj_pub1 +so_n: + addq.l #1,%d6 + moveq #16,%d0 + cmp.l %d6,%d0 + bne.b so_l + move.b %d3,dj_spn + rts + +| dj_spflush: every pending publish now (a new jump, STOP, DJ off). Uses d0-d1/d6/a0-a1. +dj_spflush: + moveq #0,%d6 +sf_l: + move.l %d6,%d0 + add.l %d0,%d0 + lea dj_spd,%a0 + tst.w (%a0,%d0.l) + beq.b sf_n + bsr.w dj_pub1 +sf_n: + addq.l #1,%d6 + moveq #16,%d0 + cmp.l %d6,%d0 + bne.b sf_l + clr.b dj_spn + clr.b dj_defer + rts + +| dj_pub1 (d6 = t): t's Part to the engine. Keeps d2-d7/a2-a6. +dj_pub1: + move.l %d6,%d0 + add.l %d0,%d0 + lea dj_spd,%a0 + clr.w (%a0,%d0.l) + move.l %d6,%d0 + cmpi.l #8,%d0 + bcs.b 1f + subq.l #8,%d0 +1: move.l %d0,-(%sp) | t (audio) / m (MIDI) + moveq #0,%d0 + move.b dj_sppt,%d0 + move.l %d0,-(%sp) + move.b dj_spbk,%d0 + move.l %d0,-(%sp) + cmpi.l #8,%d6 + bcc.b 2f + jsr TRK_APPLY + bra.b 3f +2: bsr.w dj_mapply +3: lea 12(%sp),%sp + rts + +| dj_tpub(bank, part, t): one track's publish as dj_pub1 makes it (C ABI; tools/check_dj_part.py calls it). + .global dj_tpub +dj_tpub: + move.l 12(%sp),%d0 + cmpi.l #8,%d0 + bcc.b 1f + jmp TRK_APPLY +1: subq.l #8,%d0 + move.l %d0,12(%sp) + bra.w dj_mapply + +| dj_pwide(bank, part): the Part-wide items alone -- stock's light apply with its per-track part skipped, +| exactly what the jump's switch now applies (C ABI; tools/check_dj_part.py calls it). + .global dj_pwide +dj_pwide: + moveq #1,%d0 + move.b %d0,dj_defer + move.l 8(%sp),-(%sp) + move.l 8(%sp),-(%sp) + jsr 0x40009e00 + addq.l #8,%sp + rts + +| dj_sptrig (d6 = t, waiting) -> d0 = 1 when one of t's pending events is a sounding trig (record bit 2) of +| the new sequence (fire time >= dj_sptm[t]) firing within half a tick from now (or past: a negative +| micro). Audio: the primary table vs the sample clock; MIDI: its table vs the MIDI clock (Clyps' +| cl_sptrig). Keeps d1-d7/a2-a6. +dj_sptrig: + lea -28(%sp),%sp + movem.l %d1-%d5/%a2-%a3,(%sp) + move.l %d6,%d0 + lsl.l #2,%d0 + lea dj_sptm,%a0 + move.l (%a0,%d0.l),%d4 | d4 = the new sequence's first possible fire time + move.l %d6,%d3 + cmpi.l #8,%d6 + bcc.b st_m + move.l SCLK,%d2 + move.l #TICK_A/2,%d5 + movea.l #0x46c7fe44,%a2 + movea.l #0x80001904,%a0 + movea.l #0x46c7e998,%a1 + bra.b st_go +st_m: + subq.l #8,%d3 + move.l MCLK,%d2 + move.l #TICK_M/2,%d5 + movea.l #0x46c77be2,%a2 + movea.l #0x46c76a26,%a0 + movea.l #0x46c769c0,%a1 +st_go: + moveq #0,%d1 | slot +st_l: + moveq #0,%d0 + move.b (%a2,%d3.l),%d0 + btst %d1,%d0 + beq.b st_n + move.l %d1,%d0 + lsl.l #3,%d0 + add.l %d3,%d0 + movea.l %d0,%a3 | idx = track + slot * 8 + move.l (%a1,%d0.l*4),%d0 + btst #2,%d0 + beq.b st_n | not a sounding trig + move.l %a3,%d0 + move.l (%a0,%d0.l*4),%d0 | its fire time + movea.l %d0,%a3 + sub.l %d4,%d0 + bmi.b st_n | the outgoing pattern's + move.l %a3,%d0 + sub.l %d2,%d0 + cmp.l %d5,%d0 + blt.b st_yes +st_n: + addq.l #1,%d1 + moveq #3,%d0 + cmp.l %d1,%d0 + bne.b st_l + moveq #0,%d0 + bra.b st_out +st_yes: + moveq #1,%d0 +st_out: + movem.l (%sp),%d1-%d5/%a2-%a3 + lea 28(%sp),%sp + rts + +| dj_mapply(bank, part, m): one MIDI track's Part values -> the engine. Clyps' cl_mapply (stock's whole- +| Part apply 0x40009094 does this for every m, 0x400094b0..0x400095e0), RAM writes only. +dj_mapply: + lea -20(%sp),%sp + movem.l %d2-%d4/%a2-%a3,(%sp) + move.l 24(%sp),%d0 | bank + move.l 28(%sp),%d1 | part + move.l 32(%sp),%d2 | m + move.l #BANK_STRIDE,%d3 + muls.l %d0,%d3 + movea.l #PAT_BASE+PART_OFF,%a2 + adda.l %d3,%a2 + move.l #PARTSZ,%d3 + muls.l %d1,%d3 + adda.l %d3,%a2 | a2 = the Part + moveq #68,%d3 + muls.l %d2,%d3 + movea.l #MENG,%a0 + adda.l %d3,%a0 | a0 = the engine's record m + move.l %d2,%d3 + lsl.l #5,%d3 + movea.l %a2,%a1 + adda.l #0x3e2,%a1 + adda.l %d3,%a1 | page values, 32 B + moveq #32,%d4 +ma_p: + move.b (%a1)+,(%a0)+ + subq.l #1,%d4 + bne.b ma_p + moveq #36,%d3 + muls.l %d2,%d3 + movea.l %a2,%a1 + adda.l #0x4e2,%a1 + adda.l %d3,%a1 | setup, 36 B + movea.l %a1,%a3 + adda.l #9,%a3 | a3 = its 3 LFO waves + moveq #36,%d4 +ma_s: + move.b (%a1)+,(%a0)+ + subq.l #1,%d4 + bne.b ma_s + moveq #0,%d4 | each LFO on a designer wave (> 10): its 16 B and slope +ma_d: + move.b (%a3,%d4.l),%d0 + extb.l %d0 + moveq #10,%d1 + cmp.l %d1,%d0 + ble.b ma_dn + subi.l #11,%d0 | d0 = the designer it uses + movea.l %a2,%a1 + adda.l #0x1792,%a1 + move.l %d0,%d1 + lsl.l #4,%d1 + adda.l %d1,%a1 + move.l %d2,%d1 | d1 = 3m + i + add.l %d1,%d1 + add.l %d2,%d1 + add.l %d4,%d1 + movea.l #MDES,%a0 + move.l %d1,%d3 + lsl.l #4,%d3 + adda.l %d3,%a0 + moveq #16,%d3 +ma_w: + move.b (%a1)+,(%a0)+ + subq.l #1,%d3 + bne.b ma_w + movea.l %a2,%a1 + adda.l #0x1812,%a1 + add.l %d0,%d0 + adda.l %d0,%a1 + movea.l #MSLP,%a0 + add.l %d1,%d1 + adda.l %d1,%a0 + move.w (%a1),(%a0) +ma_dn: + addq.l #1,%d4 + cmpi.l #3,%d4 + bne.b ma_d + movea.l #MBANK,%a0 + move.l 24(%sp),%d0 + move.b %d0,(%a0,%d2.l) + move.l 28(%sp),%d0 + move.b %d0,8(%a0,%d2.l) + move.l %d2,%d0 + lsl.l #2,%d0 + movea.l #MZERO,%a0 + clr.l (%a0,%d0.l) + movem.l (%sp),%d2-%d4/%a2-%a3 + lea 20(%sp),%sp + rts + + .align 2 + .ifdef DJ_SELFHOOK .align 2 + .global dj_selfvec +dj_selfvec: .long 0 | KYOTI: Clyps' {request?, its originals' slab, put them back} + .endif dj_state: .byte ST_IDLE | 0 idle / 1 armed (we own LAND_CNTDN) / 2 landing / 3 fixup dj_pcpat: .byte -1 | cued pattern the PC was last sent for dj_zero: .byte 0 | constant 0 for Hook N's flag trick dj_pcbank: .byte -1 | V7.0.1: bank the last PC was sent for dj_armpat: .byte -1 | V7.0.1: the cue this arm is for dj_armbank: .byte -1 +dj_hid: .byte 0 | V7.1.1: 1 = dj_hide held the armed cue back this tick +dj_spn: .byte 0 | V7.2: a track's Part publish is pending +dj_defer: .byte 0 | V7.2: the next light Part apply skips its per-track LFO part +dj_spbk: .byte 0 | V7.2: the bank / Part the pending publishes apply +dj_sppt: .byte 0 + .align 2 +dj_silA: .long 0 | V7.2: the hand-off's audio / MIDI flags (START SILENT bits 8..15) +dj_silM: .long 0 +dj_spd: .space 32 | V7.2: per track (word) 0 none, 0xfffe waiting for a sounding trig, + | else ticks to go (2 = the boundary tick) +dj_sptm: .space 64 | V7.2: per track (long) the clock a new-sequence event fires at or after .align 2 .ifdef DJ_MODE_IN_CAVE | The combined image (tools/build_kyoti.py) carries MUTE MODE, whose ANDY restore diff --git a/sdk/octatrack/modules/direct-jump-kyoti/upstream/README.md b/sdk/octatrack/modules/direct-jump-kyoti/upstream/README.md index ea05e9a0d3..e35d7f4d85 100644 --- a/sdk/octatrack/modules/direct-jump-kyoti/upstream/README.md +++ b/sdk/octatrack/modules/direct-jump-kyoti/upstream/README.md @@ -11,7 +11,14 @@ always wins. Off by default, and it comes up OFF at every power-on: a unit that never enables it behaves exactly as stock. -- The Part, START SILENT and trig conditions change as on a stock pattern change. +- START SILENT and the Part's pattern-wide settings (the Part itself, scenes) change as on a + stock pattern change. Each track's own Part settings reach the engine with that track's + first sounding trig of the new pattern, so a sound still ringing from the old pattern + never takes the new pattern's settings (V7.2; a stock change applies them at once). +- Trig conditions do not start again: every A:B counter stands where the new pattern's + would, had it played since START (V7.0.2; a stock change restarts them). +- With SILENCE TRACKS on, a track the jump silences is released just before the step instead of + being cut on it, so it does not pop (V7.2.2). - The last MIDI Program Change sent always names the pattern that plays. - The arranger and pattern chains are untouched. @@ -23,7 +30,7 @@ build); V7 is the clock-locked landing that this module ships. | file | what it is | |---|---| -| `manifest.py` | the octabam module declaration — one DRAM unit, three detours, the keymap slot | +| `manifest.py` | the octabam module declaration — one DRAM unit, four detours, the keymap slot | | `patch_directjump_v7.s` | the m68k source; the only truth for the unit's bytes | The standalone image (this repo's own build, outside octabam) is @@ -38,13 +45,14 @@ mechanism — it arms that countdown and prepares the snapshot on the landing ti (`0xFA`) that a jump must not send, and owns the `[PTN]`-held `[YES]` key. The pattern-boundary body, the rebuild loops and every per-track counter are stock. -Three detours, six bytes each, plus one function pointer: +Four detours, six bytes each, plus one function pointer: | site | symbol | what it displaces | |---|---|---| | `0x400a1f72` | `dj_land` | `move.b (0x80006687).l,%d0` — the phase-D countdown read | | `0x400a221c` | `dj_nofa` | `tst.b (0x8000002a).l` — the MIDI START gate | | `0x40043418` | `dj_ptnrel` | `pea 0x400bf0f2` — `[PTN]` release, so the chooser stays shut | +| `0x40009ebe` | `dj_lfoq` | `tst.b (0x80000050).l` — the light Part apply's LFO AUTO CHANGE test: the one apply after a jump leaves each track's LFO setup to that track's first trig | | `0x400bf0c0` | `dj_toggle` | the `[PTN]`-layer YES press slot, all-NULL in stock | **State:** one word, `DJ_MODE` (0 = OFF/stock, 1 = ON), kept **inside the code unit** @@ -82,17 +90,27 @@ Part change on a jump, first from the ROM cave (2026-09-27/28), then from DRAM i octabam-built image with all six KYOTI modules (2026-10-01). That image also confirmed OFF at power-on, the `[PTN]`+`[YES]` toggle, and OFF again after a power cycle. +**V7.2.2 on hardware (2026-11-15):** the standalone image `140C_KDJ7` (mainos +`7c6131e7…`): with SILENCE TRACKS on, the pop at a Part-changing jump is gone. KYOTI V1.8C +(the same DIRECT JUMP code beside Clyps, flashed as `KY+CL DJC9`) passed the author's +walk-through: jumps between patterns of other lengths and scales land in time, a cue in +the outgoing pattern's last step lands on its grid point, `1:2` / `1:4` trigs carry on +across a jump (a held `[FILL]` survives it, a `PRE` right after it plays), and with LFO +AUTO CHANGE on a ringing sample keeps its LFO until its own track's first trig. +**This octabam form has not been flashed.** + **Emulator only** (`ot_emu`, Unicorn on real image bytes): Program Change on fast -re-cues, MIDI tracks, and START SILENT and the trig-condition reset (both behave exactly -as on a stock pattern change in the emulator, but were not exercised on the unit). +re-cues, MIDI tracks, and START SILENT (exactly as on a stock pattern change in the +emulator, not exercised on the unit). The trig conditions also equal a never-switched +reference run's at every tick after each jump (`tools/cmp_reflock.py --cond`). Everything the emulators prove is control flow and image bytes, not how the unit sounds. Nothing here has been tested on an MKII. Reproduction: assembled with `m68k-elf-as -mcpu=5407` or `54455` (identical) and no -symbols, linked at `0x400d6d38` → 1980 bytes, sha256 `b86e3c3255674cef…`: byte for byte -the DIRECT JUMP code of the KYOTI V1.0 image flashed on the author's MKI. octabam -re-links it there on every build and compares. +symbols, linked at `0x400d6d38` → 3846 bytes, sha256 `688978daa1ed86c0…`: V7.2.2, the +code of the standalone image above. octabam re-links it there on every build and +compares. ## Required: the bugfix bundle @@ -123,8 +141,8 @@ Either can be selected without the other; the sites are disjoint. ## What is open - MKII is untested. -- Hardware confirmation of Program Change on fast re-cues, MIDI tracks, START SILENT - and the trig-condition reset. +- Hardware confirmation of Program Change on fast re-cues, MIDI tracks and START SILENT. +- This octabam form of V7.2.2 on hardware. ## Design notes @@ -135,5 +153,5 @@ Either can be selected without the other; the sites are disjoint. ## Licence -MIT, © 2026 Zac-Kyoti. No Elektron bytes are included or distributed: the build +MIT, © 2026 Zac Kyoti. No Elektron bytes are included or distributed: the build reads *your own* copy of OS 1.40C and produces a modified image from it. diff --git a/sdk/octatrack/modules/direct-jump-kyoti/verify.py b/sdk/octatrack/modules/direct-jump-kyoti/verify.py index 58146e2454..8a2e1f4d36 100644 --- a/sdk/octatrack/modules/direct-jump-kyoti/verify.py +++ b/sdk/octatrack/modules/direct-jump-kyoti/verify.py @@ -10,10 +10,10 @@ - the port: out/emu/ot_emu (`make emu-cf`; OT_EMU overrides). Without it only part 1 runs. Needs m68k-elf-as/ld/nm on PATH: the unit is assembled here for its symbol offsets. -1. The image (no emulator): the original OS matches the manifest's three guards and the [PTN]-layer YES - slot is NULL; the image holds a jsr at the landing and MIDI START sites and a jmp at the [PTN] release, - each onto the unit's own symbol, and the slot names dj_toggle. After boot, the unit in DRAM is the - bytes the manifest's reference names. +1. The image (no emulator): the original OS matches the manifest's guards and the [PTN]-layer YES slot is + NULL; the image holds a jsr at the landing, MIDI START and light Part apply's LFO AUTO CHANGE sites and a + jmp at the [PTN] release, each onto the unit's own symbol, and the slot names dj_toggle. After boot, the + unit in DRAM is the bytes the manifest's reference names. 2. The toggle, by the keys (MKII panel, empty card), on this image and on the original OS: OFF after boot; [PTN] + [YES] turns it ON with a toast, and releasing [PTN] closes the toast and leaves the pattern chooser shut; again turns it OFF; [YES] alone (stock's own toast) leaves it OFF. The original OS opens no @@ -21,12 +21,14 @@ 3. OFF is stock: a pattern cued at master step 7 lands at the pattern end, and the whole sequencer state (per-track step, previous step, ticks, armed, countdown, reload, scale; master step, tick, scale, the first-fire and hold masks, the metronome) runs through the same sequence of values as on the original OS. -4. ON, for three incoming patterns (16 steps; 7 steps on Part 2; PER TRACK with differing track lengths and - scales; edited in RAM, and the reference run checked to play the edit): the jump lands within the landing - window, and from the next tick on every tick's sequencer state is the state of a reference run in which - the incoming pattern played since START. With Part 2 the active Part follows. With MIDI transport send - on, the landing reaches stock's MIDI START gate in the landing path and the START send after it does not - run. +4. ON, for four incoming patterns (16 steps with [FILL] latched; 7 steps on Part 2; PER TRACK with differing + track lengths and scales; 16 steps cued in the outgoing pattern's last step; edited in RAM, and the + reference run checked to play the edit): the jump lands within the landing window, and from the next tick + on every tick's sequencer state and trig-condition state (every track's A:B pass counter, the FILL and + PRE latches) is the state of a reference run in which the incoming pattern played since START. Both runs + start from stock's STOP reset of the trig conditions. With Part 2 the active Part follows. With MIDI + transport send on, the landing reaches stock's MIDI START gate in the landing path and the START send + after it does not run. No jump here silences a track, and none calls stock's note-off. 5. A power cycle of the port (battery RAM of a run left ON, booted again) comes up OFF. 6. The author's MIDI Plays-Free fix, on this image and on the original OS: pattern A01 in PER TRACK mode, MIDI track 1 (16 steps at 1x by default) Plays Free with trig quantize DIRECT, started while playing by stock's @@ -34,7 +36,16 @@ empty project) and the track stays on its first step; the image seeds 1x and the track steps on. Audio track 1 at 2x, started the same way, seeds the same scale and plays the same steps on both (the fix redoes stock's bytes for audio tracks). -What it cannot see: a real unit's timing, audio, external MIDI gear, the arranger and chains, an MKI panel. +7. Each track's Part at its first sounding trig (V7.2): with LFO AUTO CHANGE on, a jump into a pattern on + Part 2 with sample trigs on four audio tracks (written into the pattern in RAM, as the trig keys store them) + hands each of those tracks to stock's per-track Part apply exactly once, on the tick its first trig's step + starts, and every track without a trig (audio and MIDI) on the boundary tick; the light Part apply of the + switch skips its per-track part once (dj_lfoq). With LFO AUTO CHANGE off the same jump defers nothing. +8. SILENCE TRACKS (V7.2.2): with the project's SILENCE TRACKS on and two tracks' START SILENT set to OFF, the + jump calls stock's note-off once for each of the six silenced audio tracks, on the tick after the landing, + and for no other track. +What it cannot see: a real unit's timing, audio (the pop itself), external MIDI gear, the arranger and chains, +an MKI panel. """ import ast import hashlib @@ -66,11 +77,18 @@ PAT_BASE, PAT_STRIDE = 0x400e21e0, 0x8ed8 DISPATCH, MIDI_MODE = 0x40044584, 0x80000012 # stock's manual-trig dispatcher (track, press); the UI's MIDI mode STEPS, SCALES = 0x800064d0, 0x8000663e # per-track step and scale index, tracks 0-15 (in ENGINE) +# The trig-condition state: every track's A:B pass counter (long[16]), the FILL-held byte, the two FILL latches and +# the PRE latch ([16] each), contiguous. COND_RESET(-1) is what stock's STOP runs; FILL_LATCH is what the UI calls on a +# [FILL] press (0x40050050): it latches FILL for every track (0x46107959 or 0x46107969). +COND, COND_RESET, FILL_LATCH = (0x46107918, 0x46107989), 0x400a539c, 0x400a5460 +TRK_APPLY, NOTE_OFF, LIGHT_APPLY = 0x40001f18, 0x40008f84, 0x40009e00 # (bank, part, t); (t); (bank, part) +LFO_AUTO, SILENCE_DEF = 0x80000050, 0x8000004f # LFO AUTO CHANGE; SILENCE TRACKS (a START SILENT byte of -1 uses it) FAILS = [] +SPAN = [0x10000] # the unit's length, from the manifest (main): calls made from inside it def check(ok, what): - print((" ok " if ok else " FAIL ") + what) + print((" ok " if ok else " FAIL ") + what, flush=True) if not ok: FAILS.append(what) @@ -167,6 +185,11 @@ def poke(self, address, data): def hits(self): return int(self.send("hits").split()[1][2:]) + def records(self): + """The PC hits since the last read: (pc, return address, first three stack arguments, d6) each.""" + rows = [[int(field, 16) for field in record.split(":")] for record in self.send("hits").split()[2:]] + return [(row[1], row[7], row[8], row[9], row[10], row[16]) for row in rows] + def battery(self): return b"".join(self.mem(0x10000000 + at, 4096) for at in range(0, 0x100000, 4096)) @@ -197,9 +220,20 @@ def engine(port): return b"".join(port.mem(a, b - a) for a, b in ENGINE) -def shape(port, index, part=0, length=None, tracks=()): - """Edit pattern `index` of bank A in RAM: its Part, a NORMAL length, or PER TRACK mode with (track, length, scale).""" +def track_record(index, track): + """Pattern `index`'s record of `track` (8+ MIDI): its first eight bytes are the trig mask, steps 32-63 then 0-31.""" + return PAT_BASE + index * PAT_STRIDE + (track * 0x91a if track < 8 else 0x48d0 + (track - 8) * 0x8b0) + + +def shape(port, index, part=0, length=None, tracks=(), trigs=(), silent=()): + """Edit pattern `index` of bank A in RAM: its Part, a NORMAL length, or PER TRACK mode with (track, length, scale); + a sample trig on (track, step); (audio track, START SILENT byte).""" blob = PAT_BASE + index * PAT_STRIDE + for track, step in trigs: + mask = track_record(index, track) + (4 if step < 32 else 0) + port.poke(mask, (port.int(mask) | 1 << step % 32).to_bytes(4, "big")) + for track, value in silent: + port.poke(track_record(index, track) + 0x53, bytes([value & 0xff])) port.poke(blob + 0x8e57, bytes([part])) if length is not None: port.poke(blob + 0x8e53, bytes([length])) @@ -211,14 +245,17 @@ def shape(port, index, part=0, length=None, tracks=()): port.poke(record, bytes([steps, scale])) -def trace(port, clock, until, cue=None, slice_ms=4): - """Run to tick `until` of the unit's tick counter: {tick: (active pattern, engine state at that tick's end)}. - `cue` = (tick, pattern) cues that pattern once the counter reaches the tick.""" +def trace(port, clock, until, cue=None, slice_ms=4, hits=None): + """Run to tick `until` of the unit's tick counter: {tick: (active pattern, engine state, trig-condition state at + that tick's end)}. `cue` = (tick, pattern) cues that pattern once the counter reaches the tick. With a list as + `hits`, the watched PCs' records are appended to it as (tick, record).""" seen = {} while True: port.send("run %d" % slice_ms) tick = port.int(clock) - seen[tick] = (port.int(ACT_PAT, 1), engine(port)) + seen[tick] = (port.int(ACT_PAT, 1), engine(port), port.mem(COND[0], COND[1] - COND[0])) + if hits is not None: + hits.extend((tick, row) for row in port.records()) if cue and tick >= cue[0]: pattern(port, cue[1], 2) cue = None @@ -284,9 +321,33 @@ def part_off(image, module): port.close() -def part_on(image, symbols, name, part=0, length=None, tracks=(), window=6, midi=False): +def call(port, *words): + """A stock routine run as main; the port runs it only while main waits at its spin, so wait for that.""" + for _ in range(200): + try: + return port.send("call " + " ".join("%d" % word for word in words)) + except RuntimeError as error: + if "not main's spin" not in str(error): + raise + port.send("run 1") + raise RuntimeError("main never reached its spin for call %#x" % words[0]) + + +def start(port, fill=False): + """Stock's STOP reset of the trig conditions, [FILL] latched if asked, then [PLAY].""" + call(port, COND_RESET, 0xffffffff) + if fill: + call(port, FILL_LATCH) + port.tap("PLAY") + + +def landed_at(run, index=1): + return min((t for t, (act, _, _) in run.items() if act == index), default=None) + + +def part_on(image, symbols, name, part=0, length=None, tracks=(), window=6, midi=False, fill=False, cue_tick=41): """The jump against its reference: the incoming pattern B (index 1) played since START.""" - runs = {} + runs, unit, hits = {}, None, [] for jump in (False, True): with tempfile.TemporaryDirectory(prefix="dj-gate.") as directory: port = Port(image, pathlib.Path(directory)) @@ -296,16 +357,16 @@ def part_on(image, symbols, name, part=0, length=None, tracks=(), window=6, midi shape(port, 1, part, length, tracks) if jump: toggle(port) + port.send("watch %d,%d,%d" % (unit + symbols["dj_nofa"], START_SEND, NOTE_OFF)) if midi: port.poke(MIDI_SEND, b"\x01") - port.send("watch %d,%d" % (unit + symbols["dj_nofa"], START_SEND)) else: pattern(port, 1) # B from START - port.tap("PLAY") - runs[jump] = trace(port, clock, 300, (41, 1) if jump else None) + start(port, fill) + runs[jump] = trace(port, clock, 300, (cue_tick, 1) if jump else None, hits=hits if jump else None) if jump: if midi: - pcs = [int(record.split(":")[1], 16) for record in port.send("hits").split()[2:]] + pcs = [row[0] for _, row in hits] check(pcs.count(unit + symbols["dj_nofa"]) > 0 and START_SEND not in pcs, name + ": with MIDI transport send on, the jump reaches stock's MIDI START gate and does not send START") if part: @@ -314,19 +375,110 @@ def part_on(image, symbols, name, part=0, length=None, tracks=(), window=6, midi port.close() reference, run = runs[False], runs[True] master = ENGINE[0][1] - ENGINE[0][0] - steps = {track: max(state[track] for _, state in reference.values()) + 1 for track in range(16)} - longest = max(int.from_bytes(state[master:master + 2], "big") for _, state in reference.values()) + 1 + steps = {track: max(state[track] for _, state, _ in reference.values()) + 1 for track in range(16)} + longest = max(int.from_bytes(state[master:master + 2], "big") for _, state, _ in reference.values()) + 1 check(all(steps[track] == count for track, count, _ in tracks) and longest == (length or 16), name + ": the reference run plays the edited pattern (master %d steps%s)" % ( longest, "".join(", T%d %d" % (track + 1, steps[track]) for track, _, _ in tracks))) - landed = min((t for t, (act, _) in run.items() if act == 1), default=None) - check(landed is not None and 41 <= landed <= 41 + window, name + ": cued at tick 41, landed at tick %s (window %d)" % (landed, window)) + landed = landed_at(run) + check(landed is not None and cue_tick <= landed <= cue_tick + window, + name + ": cued at tick %d, landed at tick %s (window %d)" % (cue_tick, landed, window)) if landed is None: return common = [t for t in sorted(run) if landed < t <= 300 and t in reference] - wrong = [t for t in common if run[t] != reference[t]] + wrong = [t for t in common if run[t][:2] != reference[t][:2]] check(len(common) > 200 and not wrong, name + ": %d ticks after the landing equal the reference run%s" % ( len(common), "" if not wrong else ", first difference at tick %d" % wrong[0])) + wrong = [t for t in common if run[t][2] != reference[t][2]] + counters = sorted({int.from_bytes(run[t][2][4 * k:4 * k + 4], "big") for t in common for k in range(16)}) + check(len(common) > 200 and not wrong and len(counters) > 1, + name + ": the trig conditions (A:B counters %d..%d, FILL and PRE latches) equal the reference on the same " + "ticks%s" % (counters[0], counters[-1], "" if not wrong else ", first difference at tick %d" % wrong[0])) + if fill: + latched = [t for t in common if any(run[t][2][0x41:0x61])] + check(common[0] in latched and latched == [t for t in common if any(reference[t][2][0x41:0x61])], + name + ": [FILL] stays latched across the jump (a stock switch clears it): ticks %s..%s, as in the " + "reference" % (latched[0] if latched else None, latched[-1] if latched else None)) + released = [row for _, row in hits if row[0] == NOTE_OFF and unit <= row[1] < unit + SPAN[0]] + check(not released, name + ": no track is silenced, and the unit calls no note-off (%d)" % len(released)) + + +def part_publish(image, symbols): + """V7.2: B on Part 2 with sample trigs on four audio tracks; with LFO AUTO CHANGE on, each track's Part reaches the + engine at its first sounding trig (trigless tracks on the boundary tick); with it off nothing is deferred.""" + trigs = ((0, 4), (1, 9), (3, 7), (4, 12)) + defer = symbols["lq_stock"] - 2 # dj_lfoq's rts after `cmp.l %d0,%d0`: the skip taken + for lfo in (1, 0): + with tempfile.TemporaryDirectory(prefix="dj-gate.") as directory: + port = Port(image, pathlib.Path(directory)) + try: + unit = port.int(0x400bf0c0) + shape(port, 1, part=1, trigs=trigs) + port.poke(LFO_AUTO, bytes([lfo])) + toggle(port) + port.send("watch %d,%d,%d" % (TRK_APPLY, unit + symbols["dj_pub1"], unit + defer)) + start(port) + hits = [] + run = trace(port, unit + symbols["dj_T"], 150, (41, 1), hits=hits) + finally: + port.close() + landed = landed_at(run) + ours = [(tick, row) for tick, row in hits if unit <= row[1] < unit + SPAN[0] or row[0] == unit + defer] + pubs = {} + for tick, row in ours: + if row[0] == unit + symbols["dj_pub1"]: + pubs.setdefault(row[5], []).append(tick) + applies = [(tick, row[2:5]) for tick, row in ours if row[0] == TRK_APPLY] + skips = [tick for tick, row in ours if row[0] == unit + defer] + if not lfo: + check(not pubs and not applies and not skips, + "LFO AUTO CHANGE off: the jump (landed at tick %s) defers nothing: no per-track publish, the switch's " + "light Part apply is stock (%d, %d, %d)" % (landed, len(pubs), len(applies), len(skips))) + continue + check(landed is not None and 41 <= landed <= 47, "LFO AUTO CHANGE on: cued at tick 41, landed at tick %s" % landed) + if landed is None: + return + expected = {} + for track, step in trigs: # the tick the track's step counter passes the trig's step + expected[track] = next((t for t in sorted(run) if t > landed and run[t][1][track] == step + 1 + and run.get(t - 1, (0, b"\0" * 64))[1][track] != step + 1), None) + for track in range(16): + if track not in expected: + expected[track] = landed + 1 # no sample trig: the boundary tick + late = {track: (pubs.get(track), expected[track]) for track in range(16) if pubs.get(track) != [expected[track]]} + check(not late, "every track published once: T1/T2/T4/T5 at their first trig (ticks %s), the other audio and " + "every MIDI track on the boundary tick %d%s" % ("/".join(str(expected[t]) for t, _ in trigs), landed + 1, + "" if not late else "; differs: %s" % late)) + wrong = [(tick, args) for tick, args in applies if tuple(args[:2]) != (0, 1) or [tick] != pubs.get(args[2])] + check(len(applies) == 8 and not wrong, "each audio track's publish is stock's per-track Part apply (bank A, " + "Part 2, that track): %d calls%s" % (len(applies), "" if not wrong else ", unexpected %s" % wrong[:3])) + check(len(skips) == 1 and skips[0] in (landed + 1, landed + 2), + "the switch's light Part apply skips its per-track part once (dj_lfoq, tick %s)" % skips) + + +def part_silence(image, symbols): + """V7.2.2: SILENCE TRACKS on, T3 and T7 START SILENT OFF: stock's note-off for the other six, the tick after the + landing.""" + with tempfile.TemporaryDirectory(prefix="dj-gate.") as directory: + port = Port(image, pathlib.Path(directory)) + try: + unit = port.int(0x400bf0c0) + shape(port, 1, part=1, silent=((2, 0), (6, 0))) + check([port.int(track_record(1, t) + 0x53, 1) for t in (0, 1, 3, 4, 5, 7)] == [0xff] * 6, + "the other six tracks' START SILENT is the project default (-1)") + port.poke(SILENCE_DEF, b"\x01") + toggle(port) + port.send("watch %d" % NOTE_OFF) + start(port) + hits = [] + run = trace(port, unit + symbols["dj_T"], 120, (41, 1), hits=hits) + finally: + port.close() + landed = landed_at(run) + released = sorted((tick, row[2]) for tick, row in hits if unit <= row[1] < unit + SPAN[0]) + want = [(landed + 1, t) for t in (0, 1, 3, 4, 5, 7)] if landed is not None else None + check(released == want, "landed at tick %s; the unit released T1, T2, T4, T5, T6, T8 with stock's note-off on tick %s " + "and nothing else: %s" % (landed, None if landed is None else landed + 1, released)) def power_cycle(image, battery, symbols): @@ -373,17 +525,19 @@ def main(): facts, image, stock = declared(), IMAGE.read_bytes(), STOCK.read_bytes() at = lambda address: address - BASE print("1. the image") - for site in ("LAND_HOOK", "NOFA_HOOK", "PTNREL_HOOK", "TS_HOOK"): + for site in ("LAND_HOOK", "NOFA_HOOK", "PTNREL_HOOK", "LFOQ_HOOK", "TS_HOOK"): length, digest = facts["guards"][site] address = facts[site] check(hashlib.sha256(stock[at(address):at(address) + length]).hexdigest() == digest, "the original OS matches the guard at %#x" % address) slot = facts["PTN_LAYER_YES_PRESS"] check(stock[at(slot):at(slot) + 4] == bytes(4), "the original OS's [PTN]-layer YES press slot %#x is NULL" % slot) reference, symbols = unit_symbols(facts["REFERENCE"][0]) + SPAN[0] = facts["UNIT_BYTES"] check(hashlib.sha256(reference).hexdigest() == facts["REFERENCE"][1] and len(reference) == facts["UNIT_BYTES"], "the source links to the manifest's reference (%d bytes)" % facts["UNIT_BYTES"]) unit = int.from_bytes(image[at(slot):at(slot) + 4], "big") - for site, opcode, name in (("LAND_HOOK", b"\x4e\xb9", "dj_land"), ("NOFA_HOOK", b"\x4e\xb9", "dj_nofa"), ("PTNREL_HOOK", b"\x4e\xf9", "dj_ptnrel")): + for site, opcode, name in (("LAND_HOOK", b"\x4e\xb9", "dj_land"), ("NOFA_HOOK", b"\x4e\xb9", "dj_nofa"), + ("PTNREL_HOOK", b"\x4e\xf9", "dj_ptnrel"), ("LFOQ_HOOK", b"\x4e\xb9", "dj_lfoq")): address = facts[site] check(image[at(address):at(address) + 6] == opcode + (unit + symbols[name]).to_bytes(4, "big"), "%#x holds a %s to %s" % (address, "jsr" if opcode[1] == 0xb9 else "jmp", name)) @@ -416,10 +570,11 @@ def main(): "original OS: the cue lands at the pattern end (master step 0)") check(module == original, "module OFF: %d distinct sequencer states from [PLAY], the same as the original OS" % len(module)) print("4. ON: the jump against a reference run since START") - part_on(IMAGE, symbols, "16 steps", midi=True) + part_on(IMAGE, symbols, "16 steps, [FILL] latched", midi=True, fill=True) part_on(IMAGE, symbols, "7 steps, Part 2", part=1, length=7) part_on(IMAGE, symbols, "PER TRACK 16/7/5/3, scales 1x/2x/3:4x/1:2x, MIDI 5 at 3:2x", tracks=((0, 16, 2), (1, 7, 0), (2, 5, 3), (3, 3, 4), (8, 5, 1)), window=24) + part_on(IMAGE, symbols, "16 steps, cued in the last step", cue_tick=92) print("5. a power cycle in the port") power_cycle(IMAGE, battery, symbols) print("6. the MIDI Plays-Free fix") @@ -430,6 +585,10 @@ def main(): original, module = plays_free(STOCK, 0, 1), plays_free(IMAGE, 0, 1) check(original == module and original[0] == 1 and len(set(original[1])) > 4, "audio track 1 at 2x, the same way: scale %#x and the same %d steps on both" % (module[0], len(set(module[1])))) + print("7. each track's Part at its first sounding trig") + part_publish(IMAGE, symbols) + print("8. SILENCE TRACKS: the silenced tracks released first") + part_silence(IMAGE, symbols) print("%d failed" % len(FAILS) if FAILS else "all passed") return 1 if FAILS else 0 diff --git a/src/community/module-changelogs/direct-jump-kyoti.json b/src/community/module-changelogs/direct-jump-kyoti.json index 3ecfcb0614..30c8a100aa 100644 --- a/src/community/module-changelogs/direct-jump-kyoti.json +++ b/src/community/module-changelogs/direct-jump-kyoti.json @@ -1,4 +1,15 @@ [ + { + "version": "0.2.0-experimental", + "date": "2026-11-16", + "changes": [ + "Trig conditions carry on across a jump: 1:2 and the other A:B counts stand where the new pattern's would had it played since PLAY. A held [FILL] stays on, and a PRE trig right after the jump plays.", + "A jump now lands just before the step, so the new pattern's first step is never late, and a cue made in the playing pattern's last step lands on its grid point too.", + "With LFO AUTO CHANGE on, each track's new LFO settings arrive with that track's first trig of the new pattern, so a sound still ringing from the old pattern keeps its own.", + "With SILENCE TRACKS on, the tracks a jump silences are released just before the step instead of cut, so they no longer pop.", + "Known issue: the author tested these on his MKI in his own builds of the same code; this Modwerk build has not yet run on a unit." + ] + }, { "version": "0.1.2-experimental", "date": "2026-10-25", From c62ee5a6f507d59789f17ce244fdffc343511a20 Mon Sep 17 00:00:00 2001 From: Zac-Kyoti <273702472+Zac-Kyoti@users.noreply.github.com> Date: Mon, 16 Nov 2026 11:10:18 -0800 Subject: [PATCH 015/415] Direct Jump Kyoti 0.2.0: keep the imported LICENSE; the performance record of V7.2.2 LICENSE stays the author's file at 329b801c: at 109f54c only its copyright line's name form changed, and taking it would change the shared notice sdk/octabam/licenses/kyoti-direct-jump.txt in this module update. The import record says so. evidence/performance.json: ot_emu on the module-alone native image 3c7b1419... (built from this branch): dj_land at most 9,082 authored instructions a tick (145,312 cycles at 16; 17,229 instructions with the stock routines it calls), static bound 40,547 (648,752 cycles), budget 2,200,000; a 15 s MIDI flood with a jump every second: longest frame interrupt 155.9 us against the original OS's 155.7 us, idle 54.56 % against 54.87 %, nothing dropped. Co-Authored-By: Claude Opus 5.5 --- sdk/imports/direct-jump-kyoti-109f54c.json | 14 +++++----- .../modules/direct-jump-kyoti/LICENSE | 2 +- .../evidence/performance.json | 26 +++++++++---------- 3 files changed, 22 insertions(+), 20 deletions(-) diff --git a/sdk/imports/direct-jump-kyoti-109f54c.json b/sdk/imports/direct-jump-kyoti-109f54c.json index e05995a4a0..0f1cbe12e3 100644 --- a/sdk/imports/direct-jump-kyoti-109f54c.json +++ b/sdk/imports/direct-jump-kyoti-109f54c.json @@ -53,8 +53,7 @@ "notes": [ "0.2.0-experimental moves the pin from the octabam wrapper (sambanks/octabam b725fb1a, author pin 329b801c) to the author's repository at 109f54c: DIRECT JUMP V7.2.2. upstream/OCTABAM_README.md and upstream/OCTABAM_LICENSE stay as imported from octabam for its integration credit.", "patch_directjump_v7.s comments describe stock routines and data by address and in assembler mnemonics, as the author wrote them; it contains no firmware bytes or hex dumps.", - "The stock guard digests were computed from the author's declared expectations and matched against a local original OS 1.40C MAIN image (SHA-256 164f31224bf61181e3f50e7dec40df9afcae5b16dbf6e4c0d0cc5e986af0a84e).", - "LICENSE is the author's file at 109f54c, byte for byte: against 329b801c only its copyright line changed, to the name Zac Kyoti." + "The stock guard digests were computed from the author's declared expectations and matched against a local original OS 1.40C MAIN image (SHA-256 164f31224bf61181e3f50e7dec40df9afcae5b16dbf6e4c0d0cc5e986af0a84e)." ], "status": "Owner review pending (new stock addresses: 0x40009ebe).", "files": [ @@ -113,12 +112,15 @@ { "path": "LICENSE", "repository": "https://github.com/Zac-Kyoti/octatrack-kyoti-fw", - "revision": "109f54cd36fcd770e3409d1258254619a161b1d7", + "revision": "329b801cf90f32cbca97c6699a908908968e4df6", "sourcePath": "LICENSE", "sourceBytes": 4451, - "sourceGitBlob": "8cd09176a276a3854ae947ab148b9b327d77e381", - "sourceSha256": "f1f8d5837b6df5d6e5744286e3929883253f1ee754c4f9e0494989f2ef992a05", - "vendoredSha256": "f1f8d5837b6df5d6e5744286e3929883253f1ee754c4f9e0494989f2ef992a05" + "sourceGitBlob": "3e76489f7da43570add4342b27fd9e1aff949672", + "sourceSha256": "0d3f46fdaa57dcf513b0d62975eb019334f4eb9cc8ea0b973ce191dd661741f5", + "vendoredSha256": "0d3f46fdaa57dcf513b0d62975eb019334f4eb9cc8ea0b973ce191dd661741f5", + "transforms": [ + "Unchanged since 0.1.0-experimental (the author's file at 329b801cf90f32cbca97c6699a908908968e4df6, byte for byte). At 109f54c only its copyright line differs (the name written Zac Kyoti); it is kept as imported so that the shared licence notice (sdk/octabam/licenses/kyoti-direct-jump.txt) stays as it is in this module update." + ] }, { "path": "upstream/OCTABAM_LICENSE", diff --git a/sdk/octatrack/modules/direct-jump-kyoti/LICENSE b/sdk/octatrack/modules/direct-jump-kyoti/LICENSE index 8cd09176a2..3e76489f7d 100644 --- a/sdk/octatrack/modules/direct-jump-kyoti/LICENSE +++ b/sdk/octatrack/modules/direct-jump-kyoti/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2026 Zac Kyoti and the OT Kyoti FW contributors +Copyright (c) 2026 Zac-Kyoti and the OT Kyoti FW contributors WHAT THIS LICENSE COVERS diff --git a/sdk/octatrack/modules/direct-jump-kyoti/evidence/performance.json b/sdk/octatrack/modules/direct-jump-kyoti/evidence/performance.json index 185a83fa38..cccd1ce1ff 100644 --- a/sdk/octatrack/modules/direct-jump-kyoti/evidence/performance.json +++ b/sdk/octatrack/modules/direct-jump-kyoti/evidence/performance.json @@ -1,35 +1,35 @@ { "schema": 1, "module": "direct-jump-kyoti", - "version": "0.1.2-experimental", + "version": "0.2.0-experimental", "kind": "coldfire", "cycles": { "unit": "cycles/event", - "static": 91200, - "measured": 47136, + "static": 648752, + "measured": 145312, "budget": 2200000, - "method": "Authored instructions of the sequencer-tick hook (dj_land) per tick, priced at 16 core cycles each (the conservative ColdFire V4 envelope Quant Live Rec's record uses); the stock routines it calls (Program Change, the kernel post, the trig-condition reset) are stock cost and are excluded from both figures. Static: 5,700, an upper bound counted from patch_directjump_v7.s for the dearest tick, a cue that lands on the tick that arms it: the arming path with the 16-track parameter pass (each track's gcd at most 8 Euclid steps, every scale's ticks per step dividing 48) and one scan step, then the landing with the parameter pass again, the 16-track snapshot, three 24-slot purge tables, three posts and the hand-off. Measured on the module-alone native image (MAIN OS 9af03715…) under ot_emu --mkii, 24 Oct 2026: PC watches on dj_land's entry and return and on both sides of each stock call, cues at four phases of the step on a 16-step, a 7-step (Part 2) and a PER TRACK pattern (tracks from 2x to 1/8x): 2,946 authored instructions at most (3,166 with the stock calls), on a cue landing on its arming tick; an ordinary landing tick 2,133, idle ticks about 35 ON and 18 OFF. Budget: the code runs in the sequencer tick interrupt (level 3, below the level-5 DSP frame interrupt, which preempts it), so its deadline is the next tick: one tick at the Octatrack's top tempo of 300 BPM is 8.33 ms, 2,200,000 cycles at 264 MHz. The static bound also fits one 362.8 us frame (95,778). Not chip timing. 0.1.1-experimental: the Direct Jump unit is byte-identical (the same reference SHA-256 2965bf7d…), so these per-tick figures are 0.1.0's measurement, carried over, not re-measured. The added MIDI Plays-Free fix is not on the tick path: it replaces stock's five-instruction per-track scale seed in a track's start routine with at most thirteen, the jmp included (ten for an audio track), once per track start. 0.1.2-experimental changes only the package's title: the same figures." + "method": "Authored instructions of the sequencer-tick hook (dj_land) per tick, priced at 16 core cycles each (the conservative ColdFire V4 envelope of the earlier records); the stock routines it calls (Program Change, the kernel post, the per-track Part apply 0x40001f18, the note-off 0x40008f84) are stock cost and are excluded from both figures. Static: 40,547, an upper bound counted mechanically from patch_directjump_v7.s as linked: every instruction of every routine dj_land can reach counted once per iteration of each loop around it (all paths at once), loops at their caps (the arming scan 120, the 16-track loops 16, the 8-track loops 8, three event slots, Euclid's gcd 11, the MIDI Part copy 32/36/16 bytes), each call adding its callee's bound, dl_commit once (its two call sites are exclusive). Measured on the module-alone native image (MAIN OS 3c7b1419...) under ot_emu --mkii (built from this checkout's sdk/octabam/tools/emu/ot_emu, SHA-256 87d73ccf...), 16 Nov 2026: PC watches on dj_land's entry and the hook's return 0x400a1f78, on each stock routine the unit calls and the unit's return site after it, and on the frame interrupt's entry and epilogue (its instructions removed when it preempts the tick). Scenarios: OFF; ON idle; a 16-step pattern cued at the six phases of a step; a 7-step pattern on Part 2 and a PER TRACK pattern (2x to 1/8x, MIDI tracks at 3/2x to 3/4x), both with LFO AUTO CHANGE and SILENCE TRACKS on, every MIDI LFO on a designer wave; and re-jumps while all 16 tracks still wait for their first trig. OFF 30 instructions a tick, ON idle 45; while tracks wait for their first trig up to 1,898 a tick; an ordinary landing tick 4,237; the boundary tick after it with SILENCE TRACKS and every track published at once 4,843 (13,195 with the stock calls); the dearest, 9,082 (17,229 with the stock calls): a cue landing on its arming tick that first publishes 16 waiting tracks (8 MIDI Part copies). Budget: the code runs in the sequencer tick interrupt (level 3, below the level-5 DSP frame interrupt, which preempts it), so its deadline is the next tick: one tick at the Octatrack's top tempo of 300 BPM is 8.33 ms, 2,200,000 cycles at 264 MHz. The MIDI START gate (dj_nofa, 98 instructions at most, the landing tick only) and dj_lfoq (7, in the frame interrupt's light Part apply) are outside dj_land. Not chip timing." }, "load": { "frameUs": 362.8, - "stockLongestUs": 167.3, - "moduleLongestUs": 167.3, - "stockIdlePercent": 56.64, - "moduleIdlePercent": 56.28, - "method": "Emulator, not hardware: ot_emu --mkii --dsp --frame (the ColdFire port, upstream:tools build, SHA-256 bdbe962c…), 24 Oct 2026. Two native static-stock images: the original MAIN OS and the module-alone image above, Direct Jump ON. The same 62 s on both from PLAY: one three-byte message every ms (notes on and off and CCs on channels 1-8, about 1,000 a second) plus a MIDI clock byte every 10 ms (about 250 BPM), A02 edited in RAM to 7 steps on Part 2, a cue every second alternating A01 and A02, and STOP then PLAY at 7, 22, 37 and 52 s. Longest frame interrupt: the most instructions between the frame handler's entry (watched at 0x4000aad4, the port reports no hit on its first instruction) and its epilogue 0x4000d9a6 over 174115 frames, priced in the port's own time (3,990 instructions a sample, so one is 362.8 / 63,840 us): 29434 stock, 29442 with the module. Idle: the port's own share, 100 x (1 - executed instructions / (3,990 x elapsed samples)). The module's tick work runs in the level-3 sequencer tick interrupt, which the frame interrupt preempts. Measured on the 0.1.0 image and carried over for 0.1.1: the frame interrupt and the MIDI handlers are untouched by the added Plays-Free fix, and the Direct Jump unit is byte-identical." + "stockLongestUs": 155.7, + "moduleLongestUs": 155.9, + "stockIdlePercent": 54.87, + "moduleIdlePercent": 54.56, + "method": "Emulator, not hardware: ot_emu --mkii --dsp --frame (the port above), 16 Nov 2026. Two native static-stock images: the original MAIN OS and the module-alone image, Direct Jump ON. The same 15 s on both from PLAY: one three-byte message every ms (notes on and off and CCs on channels 1-8, 1,000 a second) plus a MIDI clock byte every 10 ms (250 BPM), A02 edited in RAM to 7 steps on Part 2 with trigs on two audio tracks and one MIDI track, LFO AUTO CHANGE on, and a cue every second alternating A01 and A02. Longest frame interrupt: the most instructions between the frame handler's entry (watched at 0x4000aad4) and its epilogue 0x4000d9a6 over about 45,200 frames, priced in the port's own time (3,990 instructions a sample, so one is 362.8 / 63,840 us): 27,399 stock, 27,428 with the module. Idle: the port's own share, 100 x (1 - executed instructions / (3,990 x elapsed samples)). The module's tick work runs in the level-3 sequencer tick interrupt, which the frame interrupt preempts; in the frame interrupt it adds only dj_lfoq in the light Part apply." }, "stress": { "floodMessagesPerSecond": 1000, "clockBpm": 250, - "seconds": 62, + "seconds": 15, "stuckNotes": 0, "hangs": 0, "dropped": 0, - "droppedExplanation": "Emulator, not hardware, the run above on the module image with Direct Jump ON: 62,000 three-byte messages and 6,200 clock bytes; 62 cues gave 62 jumps (63 pattern changes with the first), the original OS under the same input changed pattern 5 times (each cue waits for the pattern end). Dropped: counted at the MIDI thread's handlers (note on 0x4000e018, note off 0x4000db98, CC 0x4000e79c, clock 0x40005a48): every type's entries were at least the messages sent (up to two more on some types, as on the original OS under the same input: the PC watch counting an entry twice), none missing. Stuck notes: no samples are loaded and no MIDI track plays notes in this project, and nothing was sent to MIDI OUT, so audible stuck notes could not occur here. Hangs: frames advanced to the end (174,115 frame interrupts) and the transport was still running. Bypass: the module's OFF state is checked in the gate (verify.py), not in this run." + "droppedExplanation": "Emulator, not hardware, the run above on the module image with Direct Jump ON: 15,000 three-byte messages and 1,500 clock bytes; 15 cues gave 15 jumps, the original OS under the same input changed pattern 4 times (each cue waits for the pattern end). At 4.71 s the flood left the transport state at 2 on both images alike, and the run pressed PLAY once. Dropped: counted at the MIDI thread's handlers (note on 0x4000e018, note off 0x4000db98, CC 0x4000e79c, clock 0x40005a48): every type's entries were at least the messages sent (a few more note entries, the same on the original OS), none missing. Stuck notes: no samples are loaded and nothing was sent to MIDI OUT, so audible stuck notes could not occur here. Hangs: frames advanced to the end and the transport was running. Bypass: the module's OFF state is checked in the gate (verify.py), not in this run." }, "hardwareEvidence": { - "status": "reported", + "status": "pending", "existingReport": "evidence/hardware.md", - "note": "See evidence/hardware.md for the functional checks on the owner's MKII over USB; nothing was timed beyond the base's self-test. The cycles, load and stress rows are ot_emu measurements." + "note": "0.2.0-experimental has not run on a unit yet: its native module-alone image is waiting for the author's MKI run (evidence/hardware.md). The cycles, load and stress rows are ot_emu measurements." } } From 732f542ca9e2c49d6137d6e51bd3f9f57c24a9d2 Mon Sep 17 00:00:00 2001 From: Zac-Kyoti <273702472+Zac-Kyoti@users.noreply.github.com> Date: Mon, 16 Nov 2026 11:13:50 -0800 Subject: [PATCH 016/415] Direct Jump Kyoti 0.2.0: USB package and card assets from the isolated build; re-pin Tape Echo's and Euclid's asset hashes scripts/build-modules-isolated.sh at c62ee5a6f (image modwerk-source-tools), imported with modules:import --development; octatrack:module-packages with the stock scan: public/octatrack-modules/direct-jump-kyoti/0.2.0-experimental.mwrm, 4,374 bytes, SHA-256 3185b05c..., six stock-code sites (the fifth detour is dj_lfoq at 0x40009ebe); longest run shared with the stock OS 11 bytes (fails at 12), no 16-byte run. --check reproduces it. The 0.1.2 package stays published. Co-Authored-By: Claude Opus 5.5 --- .../direct-jump-kyoti/0.2.0-experimental.mwrm | Bin 0 -> 4374 bytes .../module-adapters/standalone-recipes.json | 16 ++++----- src/engine/assets/bootstrap-package.json | 4 +-- src/engine/assets/coldfire-packages.json | 4 +-- src/engine/assets/descriptor-recipes.json | 4 +-- src/engine/assets/dsp-packages.json | 4 +-- src/engine/assets/menu-recipes.json | 4 +-- src/engine/assets/module-build.json | 30 ++++++++--------- .../assets/octatrack-module-packages.json | 10 +++--- src/engine/assets/platform-writes.json | 4 +-- src/engine/assets/requested-packages.json | 31 ++++++++++++------ src/engine/assets/resident-dsp.json | 4 +-- src/engine/assets/rom-packages.json | 4 +-- src/engine/assets/usb-audio-packages.json | 4 +-- src/engine/assets/utility-packages.json | 4 +-- 15 files changed, 69 insertions(+), 58 deletions(-) create mode 100644 public/octatrack-modules/direct-jump-kyoti/0.2.0-experimental.mwrm diff --git a/public/octatrack-modules/direct-jump-kyoti/0.2.0-experimental.mwrm b/public/octatrack-modules/direct-jump-kyoti/0.2.0-experimental.mwrm new file mode 100644 index 0000000000000000000000000000000000000000..bb031f83896e95535316b48f1f66d9dcb9cef4ed GIT binary patch literal 4374 zcmdT{k9Skm9sje2r|Ik(tJqG$F5w?>(&ENWa7hzH_}n?p;QR!Y9xmj$Ke0e~yU z9uF-4GC%4){_}hb=xWfSy(+BPqX>WAeCqV_8e;2;B%HtQ@9o|?!o<7y2@WJ8O={4_$)o!jP>Ep&6sY|UK%@<)(!s3}$Pds}JdNprOQ$h) zDD~RBW(%bcP`bIGCHt+u1DEvq=!w?>Y$)5DhtU&0oIsfEaQ#T2WFR3(21jCwGK9f}VOln;yQcLA;_o2LErgX3l zY41qHL`Pvwb2LAsDz>52I*Fn)JS|Ibr}TbGA1L7A$CEmZTNFR_RKJF6hFCl-H_*`m zI@&MK7M;e{f*z;wN17JOf!bXq$@|F}lJ_B&Tp;ccyc;oUcQsAAz_cLnSa2)d=LUkj z{;yL~xXTEoHJc7nI!iSVQyRStdG=4;fOP>FUUvBz0jBQ4M$mlQ&stzSxn$C1zW&2E z(YthwbDYK+&9kb;Fn$i&okkmaSWj5BI*l_G(;OjU!w$;DNTBGL`B;fbD=z3xfe zwY-V+^Ooie=bLjzHX-7k*GffxH^2rctBkRTuGtFyMv)==4<;jQ6l$}LGs1oHG4v6k zaU*K9(_W>0iuUQL6C+w}6f>m-E{-E^eRSo&(7d=i%4(h)h>K3)ee_sXo)^_=a}L45 zP-~CIL{SW@Vm6$V&r?0S!zx8@w{@0ukIyOW(0m$Z;}`St%%~!0xpn6K-i@x}v*!Yn zF0OtiVhmeWiFFpBx7toET#FXY>C$zEYjD+2fibnMYSc59Q>#W1-4J?S^*v|D_j<&5 zq6%+p#>Z1<^o-?QmutlFyr~AKa&Zzs4o${T_hXERgev(YD)ZU8`zA;(&3c9Nn&3~u4d^P|Hs3tab4oaQ&P6{0x;oT8S=jj#JdHt zt^t$^lF<}1sRFW@APLJAKFWNyvtNCyFVq_qGrjU#fjGtui6mBl?~0&69B&=-nU-s2 zVt$E%PcPf(cqPd&Q+bbMEG_TgX>mScr=!q!@&p@5rW#$xc0tu4^qbcu&aV@Iz5w2s zty`Mo2by#I_S+^gZWbjVDrEZBmlA!33W7DcX$VHjBz}cTZcNCKOh9J6UpJi-z;`2X zihxmia~nj;sl{4Oq!vfG(i?%HcJnqTUmoE|wk|)2=i)4*5!P}>x2#UF4MC6)f_zcS5KS5$r?6TdV$rCpa94+nq&kXnCdR^(*trU{6R5#Ag$K zO`yk@Ild;5I)g+17(2avDfSl^x75+OG#w3)mE5x}GpS4~i4tiXeQK=TPFB`t3D<)s z63|7e_f2hJ!27mxpFT3tN6zwi?<+kW#>PKXfR`d%2{o>@*y=(baUKryu=yy@pUTcDGusXSq71OpJtZe(Z ziFFu@Bty!JmSDf;XoC1iuTp`sbKAhGGm+ck@8zs0yRE04jlnfZv`NG77^wzag<_;t zCy+s$sILa6zA}s1Za&HVG|w%+JVFuopoS{nOHi%WGD4c5m4Js?$*CKqZv|luhxBV! zo=u`H`e0HAvMBMGX}uU_{2atLe-R@|b?0C@XI(uy9+(TW`CU4-Mo6B73A zcEYhX8zYg3c~=LDU1C1%AMdfdq`4*#uzDzEQn7^IZ+8u*?-Qir!BnQV!xTzlR3_y= zM*-gpj2|t-(^XPCKSw(&@st*;11fC}kT3&~EDa4{OSq1z7tN%xlSA5(dIdvw>KY04ls1twDm5`BVK6E z#*CTddM}5b0L2>j^ler+{m9V~D?5>#NKK^4K0h0d`D& zkDDfvM@DKN3#CmMjrhOm8G@#~j-2UgwHokSiC;ltKk26{fyRsgh(RS{P!@Wt@4Zpx>3{8cOYhUj9uw&PfU(NG>*5BBndVHo2{ylcQ z@?FATBqKjpZz23cH_G4t%X8zuF7ZrzukP?KPQW+s_P%}Hk$JUCt}E^`cuoW+k$)HR z!&AeA|CWD#e!)^S@Viy7GS8hhTqAw&lf!%0-Bi~PFa7Y0;U7PFoai^!A-`ewIUY)x z>9_oCXG_stVdtZ(&wt^AhdwI1>1N+MKkfZy=ciA0^Dj0L{pPQbzxZsH1CIIN)|Tzu k^Nzo}R?Yaq=)&XPGY>raUg)*vfm21cY}uZxX8`^E2Q4SY?*IS* literal 0 HcmV?d00001 diff --git a/sdk/machines/octatrack/module-adapters/standalone-recipes.json b/sdk/machines/octatrack/module-adapters/standalone-recipes.json index 44f1486c4a..6d7d757a39 100644 --- a/sdk/machines/octatrack/module-adapters/standalone-recipes.json +++ b/sdk/machines/octatrack/module-adapters/standalone-recipes.json @@ -205,10 +205,10 @@ "src/engine/coldfire-elf.ts": "319ca0d835d1b0c602c8f4b06990016d0ebfe246cedbfc596cea3cc7adfe3cd2", "src/engine/module-build.ts": "dcd8397b8cecf6fab61debd9aa2f86f612da0ca6ccf363c79d56033bc170b993", "src/catalog/modules.ts": "7ced5a64c5cf33e1e6c7e1efd259ed6a7dbe8da11c370693ce413731b5ddd8a2", - "src/engine/assets/dsp-packages.json": "fee3a9180dd2040c955104a37cab8c77339a0ae528a3e6d43b3d08174243a65f", - "src/engine/assets/descriptor-recipes.json": "c288f63c62e623c88c1810edd0d7d332fe78e3c5c1acb856c3a4629cb358f208", - "src/engine/assets/menu-recipes.json": "36ac07f8c6c80af5a67ee6ad3501408d5c69b8eec2d4b864432f079c67e55d90", - "src/engine/assets/rom-packages.json": "7d100a203fd3013d0e85ddf48065e1832b099176add4a1f36d0cf00d7e1e7c97", + "src/engine/assets/dsp-packages.json": "e5df8ae5f656a54e5a008ad4f7665c765c9c025e43333f535780941de1d8c4e8", + "src/engine/assets/descriptor-recipes.json": "57431b15d1621331704cc754c6b52596083cc7b15b17b3165d1e28d58ad695ad", + "src/engine/assets/menu-recipes.json": "24b8ab8c994472dddefd37f6287561b5e93c443a507b277a57bef4eebc634df3", + "src/engine/assets/rom-packages.json": "5d68cd1cd962efbd9d4d5799d6e5c374908735edcf9b886b52de9ca34e00af06", "upstream/elekloader/link.py": "5d31157ccbe62807ff9f05fd47e1e55b54be0475ab53565e6607a56566603ba8", "upstream/elekloader/dsp.py": "9486d64eecee023670b716f6ae854996da02ee7c1a0efd5361cd963c756dbc69", "upstream/elekloader/patch.py": "77c0a74bf4b0ff8c5525d4c4b1bc42af765314a4601c0510577817a7487d8666", @@ -405,10 +405,10 @@ "src/engine/coldfire-elf.ts": "319ca0d835d1b0c602c8f4b06990016d0ebfe246cedbfc596cea3cc7adfe3cd2", "src/engine/module-build.ts": "dcd8397b8cecf6fab61debd9aa2f86f612da0ca6ccf363c79d56033bc170b993", "src/catalog/modules.ts": "7ced5a64c5cf33e1e6c7e1efd259ed6a7dbe8da11c370693ce413731b5ddd8a2", - "src/engine/assets/dsp-packages.json": "fee3a9180dd2040c955104a37cab8c77339a0ae528a3e6d43b3d08174243a65f", - "src/engine/assets/descriptor-recipes.json": "c288f63c62e623c88c1810edd0d7d332fe78e3c5c1acb856c3a4629cb358f208", - "src/engine/assets/menu-recipes.json": "36ac07f8c6c80af5a67ee6ad3501408d5c69b8eec2d4b864432f079c67e55d90", - "src/engine/assets/rom-packages.json": "7d100a203fd3013d0e85ddf48065e1832b099176add4a1f36d0cf00d7e1e7c97", + "src/engine/assets/dsp-packages.json": "e5df8ae5f656a54e5a008ad4f7665c765c9c025e43333f535780941de1d8c4e8", + "src/engine/assets/descriptor-recipes.json": "57431b15d1621331704cc754c6b52596083cc7b15b17b3165d1e28d58ad695ad", + "src/engine/assets/menu-recipes.json": "24b8ab8c994472dddefd37f6287561b5e93c443a507b277a57bef4eebc634df3", + "src/engine/assets/rom-packages.json": "5d68cd1cd962efbd9d4d5799d6e5c374908735edcf9b886b52de9ca34e00af06", "upstream/elekloader/link.py": "5d31157ccbe62807ff9f05fd47e1e55b54be0475ab53565e6607a56566603ba8", "upstream/elekloader/dsp.py": "9486d64eecee023670b716f6ae854996da02ee7c1a0efd5361cd963c756dbc69", "upstream/elekloader/patch.py": "77c0a74bf4b0ff8c5525d4c4b1bc42af765314a4601c0510577817a7487d8666", diff --git a/src/engine/assets/bootstrap-package.json b/src/engine/assets/bootstrap-package.json index 9791be242e..04b7fe439e 100644 --- a/src/engine/assets/bootstrap-package.json +++ b/src/engine/assets/bootstrap-package.json @@ -16,7 +16,7 @@ "reserveBytes": 10487808, "uncachedAlias": 134217728, "stageAlignment": 4096, - "sourceCommit": "40307ecd410d7e4f306d10f04025b8f44ab70447", + "sourceCommit": "c62ee5a6f507d59789f17ce244fdffc343511a20", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", @@ -43,7 +43,7 @@ "output-matrix": "0.1.1-experimental", "quantize-live-rec-toggle": "0.1.1-experimental", "apply-scene": "0.2.0-experimental", - "direct-jump-kyoti": "0.1.2-experimental", + "direct-jump-kyoti": "0.2.0-experimental", "dejavu": "0.1.0-experimental", "arp-key-locks": "0.1.0-experimental", "temp-save": "0.1.1-experimental", diff --git a/src/engine/assets/coldfire-packages.json b/src/engine/assets/coldfire-packages.json index 794fbc9668..3b28330f52 100644 --- a/src/engine/assets/coldfire-packages.json +++ b/src/engine/assets/coldfire-packages.json @@ -246,7 +246,7 @@ "sha256": "d4b22d2975297e76f90654f25ca6eee4d28a288f727f4b3482fe73616b051378" } ], - "sourceCommit": "40307ecd410d7e4f306d10f04025b8f44ab70447", + "sourceCommit": "c62ee5a6f507d59789f17ce244fdffc343511a20", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", @@ -273,7 +273,7 @@ "output-matrix": "0.1.1-experimental", "quantize-live-rec-toggle": "0.1.1-experimental", "apply-scene": "0.2.0-experimental", - "direct-jump-kyoti": "0.1.2-experimental", + "direct-jump-kyoti": "0.2.0-experimental", "dejavu": "0.1.0-experimental", "arp-key-locks": "0.1.0-experimental", "temp-save": "0.1.1-experimental", diff --git a/src/engine/assets/descriptor-recipes.json b/src/engine/assets/descriptor-recipes.json index dc45c823f5..2d28beb1af 100644 --- a/src/engine/assets/descriptor-recipes.json +++ b/src/engine/assets/descriptor-recipes.json @@ -3324,7 +3324,7 @@ ] } ], - "sourceCommit": "40307ecd410d7e4f306d10f04025b8f44ab70447", + "sourceCommit": "c62ee5a6f507d59789f17ce244fdffc343511a20", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", @@ -3351,7 +3351,7 @@ "output-matrix": "0.1.1-experimental", "quantize-live-rec-toggle": "0.1.1-experimental", "apply-scene": "0.2.0-experimental", - "direct-jump-kyoti": "0.1.2-experimental", + "direct-jump-kyoti": "0.2.0-experimental", "dejavu": "0.1.0-experimental", "arp-key-locks": "0.1.0-experimental", "temp-save": "0.1.1-experimental", diff --git a/src/engine/assets/dsp-packages.json b/src/engine/assets/dsp-packages.json index bba3d69059..aa29a75783 100644 --- a/src/engine/assets/dsp-packages.json +++ b/src/engine/assets/dsp-packages.json @@ -2,7 +2,7 @@ "schema": 1, "revision": "b8deefc88b2c3e5f3c6158e364eb741df1924e1d", "license": "/licenses/octabam.txt", - "sourceCommit": "40307ecd410d7e4f306d10f04025b8f44ab70447", + "sourceCommit": "c62ee5a6f507d59789f17ce244fdffc343511a20", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", @@ -29,7 +29,7 @@ "output-matrix": "0.1.1-experimental", "quantize-live-rec-toggle": "0.1.1-experimental", "apply-scene": "0.2.0-experimental", - "direct-jump-kyoti": "0.1.2-experimental", + "direct-jump-kyoti": "0.2.0-experimental", "dejavu": "0.1.0-experimental", "arp-key-locks": "0.1.0-experimental", "temp-save": "0.1.1-experimental", diff --git a/src/engine/assets/menu-recipes.json b/src/engine/assets/menu-recipes.json index 6698e66f02..a7f0eb03a7 100644 --- a/src/engine/assets/menu-recipes.json +++ b/src/engine/assets/menu-recipes.json @@ -994,7 +994,7 @@ "caveLimit": 1074625596 } ], - "sourceCommit": "40307ecd410d7e4f306d10f04025b8f44ab70447", + "sourceCommit": "c62ee5a6f507d59789f17ce244fdffc343511a20", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", @@ -1021,7 +1021,7 @@ "output-matrix": "0.1.1-experimental", "quantize-live-rec-toggle": "0.1.1-experimental", "apply-scene": "0.2.0-experimental", - "direct-jump-kyoti": "0.1.2-experimental", + "direct-jump-kyoti": "0.2.0-experimental", "dejavu": "0.1.0-experimental", "arp-key-locks": "0.1.0-experimental", "temp-save": "0.1.1-experimental", diff --git a/src/engine/assets/module-build.json b/src/engine/assets/module-build.json index 514a4765cc..c4de190985 100644 --- a/src/engine/assets/module-build.json +++ b/src/engine/assets/module-build.json @@ -1,9 +1,9 @@ { "schemaVersion": 1, "kind": "source-packages", - "sourceCommit": "40307ecd410d7e4f306d10f04025b8f44ab70447", + "sourceCommit": "c62ee5a6f507d59789f17ce244fdffc343511a20", "nativeRevision": "b8deefc88b2c3e5f3c6158e364eb741df1924e1d", - "sourceTreeSha256": "69376c583a40ccb6f4cc7b81ec8b2c61f1f4dedbb6fed8d50963de0b0b74f64e", + "sourceTreeSha256": "729e67de71598186c5321d9b66ff3129285c98a70ff96eece1fb05933043da49", "compilerSha256": "6e9c24522c3326dece280045b5e4313524a249f1d19dc6b4eaea5768d75554c9", "moduleVersions": { "miniverb": "0.2.3-experimental", @@ -31,7 +31,7 @@ "output-matrix": "0.1.1-experimental", "quantize-live-rec-toggle": "0.1.1-experimental", "apply-scene": "0.2.0-experimental", - "direct-jump-kyoti": "0.1.2-experimental", + "direct-jump-kyoti": "0.2.0-experimental", "dejavu": "0.1.0-experimental", "arp-key-locks": "0.1.0-experimental", "temp-save": "0.1.1-experimental", @@ -43,47 +43,47 @@ "files": { "dsp-packages.json": { "bytes": 71427, - "sha256": "fee3a9180dd2040c955104a37cab8c77339a0ae528a3e6d43b3d08174243a65f" + "sha256": "e5df8ae5f656a54e5a008ad4f7665c765c9c025e43333f535780941de1d8c4e8" }, "resident-dsp.json": { "bytes": 8395, - "sha256": "9d4e66859085d529090fe4de2d11ca9f992966f307dc7f94c55765ffe3260430" + "sha256": "71ea71c67c7c59afdf893584301745632329ca55f3946c190b840a4d614d328e" }, "coldfire-packages.json": { "bytes": 363634, - "sha256": "826746d50d8fe3c7546a85a05ac61cde4fd670ddb30ea1dd9d7121ab98b55154" + "sha256": "22b04fc9a90d1758b4cba1667de1bc5402b5d8aa3aae98e2669788d8bf51f702" }, "rom-packages.json": { "bytes": 29810, - "sha256": "7d100a203fd3013d0e85ddf48065e1832b099176add4a1f36d0cf00d7e1e7c97" + "sha256": "5d68cd1cd962efbd9d4d5799d6e5c374908735edcf9b886b52de9ca34e00af06" }, "bootstrap-package.json": { "bytes": 4021, - "sha256": "c57995f9cde968c4ff517454d1b90bf9db809f3381545c4a7ed1cc4ae70fcdc7" + "sha256": "c18dc9d6f28a398514af8a14a3adf37a05124e4cb20919b867ec967d023be56a" }, "menu-recipes.json": { "bytes": 25416, - "sha256": "36ac07f8c6c80af5a67ee6ad3501408d5c69b8eec2d4b864432f079c67e55d90" + "sha256": "24b8ab8c994472dddefd37f6287561b5e93c443a507b277a57bef4eebc634df3" }, "descriptor-recipes.json": { "bytes": 64439, - "sha256": "c288f63c62e623c88c1810edd0d7d332fe78e3c5c1acb856c3a4629cb358f208" + "sha256": "57431b15d1621331704cc754c6b52596083cc7b15b17b3165d1e28d58ad695ad" }, "platform-writes.json": { "bytes": 16999, - "sha256": "3e121433b5378811039965626cf15b2e285ff8aed151775f602463824d0ecbd2" + "sha256": "afe0e478e6a351dbea31be66db61c170f49f43e891c43da381c2ba050e71ca5f" }, "requested-packages.json": { - "bytes": 1331697, - "sha256": "67299bd0f05243f2c068180acf63184b74d785bd9420368741ac354ab742e8ae" + "bytes": 1339425, + "sha256": "4679c887ca00a4303a853452123e3d3836925d4480bb0c7d987ba5eb8609adb6" }, "utility-packages.json": { "bytes": 13149, - "sha256": "5ea321546d59a09858da049bdbf1d3070d0e372b9260f55f7c26b350b4cc2a4d" + "sha256": "282e30e51a1153405430bb60583a4ff2ca56bf50bddd32b8d20fc4cbe5cb1327" }, "usb-audio-packages.json": { "bytes": 737791, - "sha256": "adec6d95c76c7377d8d898e7fbc3a7cbe3ff71826190c85d44f8f21ff1ee0fbb" + "sha256": "d0be5a6a0db578d33a13bc8e641789e722e9f30262bcca93d81b6364ae83af09" } }, "approval": null, diff --git a/src/engine/assets/octatrack-module-packages.json b/src/engine/assets/octatrack-module-packages.json index d4cf9cb003..8644ec276c 100644 --- a/src/engine/assets/octatrack-module-packages.json +++ b/src/engine/assets/octatrack-module-packages.json @@ -396,15 +396,15 @@ "octabam": true, "abi": 7, "features": 1, - "sites": 5, + "sites": 6, "copies": 0, "fills": 0, - "version": "0.1.2-experimental", + "version": "0.2.0-experimental", "name": "DirectJmp Kyoti", "module": "075d79a3", - "bytes": 2462, - "sha256": "89a38e18728bb2039a0f5e3f39305fcb7be75e0db260acd6b33bd46d7e281cef", - "path": "octatrack-modules/direct-jump-kyoti/0.1.2-experimental.mwrm" + "bytes": 4374, + "sha256": "3185b05c49a07e36baf30cf854c4077d78b3beed7300d347f86f9b475666078e", + "path": "octatrack-modules/direct-jump-kyoti/0.2.0-experimental.mwrm" }, { "id": "dejavu", diff --git a/src/engine/assets/platform-writes.json b/src/engine/assets/platform-writes.json index 7e536b756b..25eae665e3 100644 --- a/src/engine/assets/platform-writes.json +++ b/src/engine/assets/platform-writes.json @@ -492,7 +492,7 @@ "sha256": "8a5b26c7f7c97f1e945c2274fb2632e05fc94e7babb941e8b7c80f7e0f24bf61" } ], - "sourceCommit": "40307ecd410d7e4f306d10f04025b8f44ab70447", + "sourceCommit": "c62ee5a6f507d59789f17ce244fdffc343511a20", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", @@ -519,7 +519,7 @@ "output-matrix": "0.1.1-experimental", "quantize-live-rec-toggle": "0.1.1-experimental", "apply-scene": "0.2.0-experimental", - "direct-jump-kyoti": "0.1.2-experimental", + "direct-jump-kyoti": "0.2.0-experimental", "dejavu": "0.1.0-experimental", "arp-key-locks": "0.1.0-experimental", "temp-save": "0.1.1-experimental", diff --git a/src/engine/assets/requested-packages.json b/src/engine/assets/requested-packages.json index 77fdfb413b..77971e68bc 100644 --- a/src/engine/assets/requested-packages.json +++ b/src/engine/assets/requested-packages.json @@ -1,7 +1,7 @@ { "schema": 1, "revision": "b8deefc88b2c3e5f3c6158e364eb741df1924e1d", - "sourceCommit": "40307ecd410d7e4f306d10f04025b8f44ab70447", + "sourceCommit": "c62ee5a6f507d59789f17ce244fdffc343511a20", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", @@ -28,7 +28,7 @@ "output-matrix": "0.1.1-experimental", "quantize-live-rec-toggle": "0.1.1-experimental", "apply-scene": "0.2.0-experimental", - "direct-jump-kyoti": "0.1.2-experimental", + "direct-jump-kyoti": "0.2.0-experimental", "dejavu": "0.1.0-experimental", "arp-key-locks": "0.1.0-experimental", "temp-save": "0.1.1-experimental", @@ -1086,7 +1086,7 @@ { "label": "dj7", "moduleId": "direct-jump-kyoti", - "version": "0.1.2-experimental", + "version": "0.2.0-experimental", "key": "DIRECT_JUMP_KYOTI", "author": "Zac-Kyoti", "nativeAuthor": "Zac-Kyoti", @@ -1095,12 +1095,12 @@ "caveAddress": null, "source": "modules/direct-jump-kyoti/patch_directjump_v7.s", "sources": { - "modules/direct-jump-kyoti/patch_directjump_v7.s": "c66436aa1b07ee4c094175249a561a50a8db6af1f5813ae5b2c006638c56d011", - "modules/direct-jump-kyoti/manifest.py": "cb692249697b3c982f2ac984b7a50f7933b7ad9dcd50b02600b966df04b53c8e" + "modules/direct-jump-kyoti/patch_directjump_v7.s": "0b7bd48382fc78a0ad0e7e694f6533ef48f4f9d1724abc29aaeb54271221b2e8", + "modules/direct-jump-kyoti/manifest.py": "9e77237f2ac7f4158b51b5d9f70237617fe0429c0c9a3848adffbd76157300a9" }, - "bytes": 6772, - "code": "7f454c460102010000000000000000000001000400000001000000000000000000001934000000260034000000000028000800077001b0af00086600005c2039460d17425380660000504ab9460d1aec660000464ab9460e5cd06600003c203a077c0a800000000102800000000123c00000000041fa00344a80670441fa001c487800442f084eb94005a2b8508f700123c0460d173e4e754e75444952454354204a554d50204f4e0000444952454354204a554d50204f4646004fefffc448d77fff7001b0b9800065b8670842b900000000600652b9000000004aba0700670000847001b0b9800065b8660000784ab9460d1aec6600006e4ab98000654666000064103a06d26700007e0c000003660e6100065a423900000000600001ae0c000001660001a61039800065c0b03a06ac660c1039800065bfb03a06a167104239800066874239000000006000003a1039800066870c000001660001706100017c60000168103a06700c000001660642398000668742390000000070ff13c000000000600001461039800065c00c00ffff67e2b039800065be66501039800065bfb039800065bd6642103a062d0c00ffff6700ffc2b039800065be660e103a061bb039800065bd6700ffac70001039800065be2f0070001039800065bd2f004eb94009e884508f6000ff8c1039800065c0b03a05e5660c1039800065bfb03a05db67341039800065c013c0000000001039800065bf13c00000000070001039800065c02f0070001039800065bf2f004eb94009e884508f4a39800066876e00008c70001039800065bf72001239800065c0610003326100034e2e3a05860687000000007c002007d086610004644a806d12223a057e24004c4120024c012800b082670e52860c86000000786dd86000003c1039800065c013c0000000001039800065bf13c0000000002206528113c1800066870c810000000166086100001e6000000a700113c0000000004cd77fff4fef003c1039800066874e751039800065be13c0800065c11039800065bd13c0800065c21039800065c013c0800065be1039800065bf13c0800065bd70001039800065bd223c0009b3404c01080072001239800065be243c00008ed84c021800d08145f9400e21e0d5c06100026a2e3a04a206870000000023c700000000263a049a2007d0835380223a0494670c24004c4120024c012800908228004c43400423c4800066382a009a83528541f98000651643f98000653647fa046c49fa04787c107200121b20054c4100007400141c7202b2826e0e22004c4210014c02180090816002700030c04219538666d4610003304279800066264279800066804279800066824279800066841039800065bd13c0400d816841f9400d816761000026610000721039800065be13c0400d816c41f9400d816b6100000c700213c0000000004e752f084879460d17ae43f940000c3c4e91508f4e75103a03ae0c000002660e700313c0000000004a3a039e4e754a398000002a4e754ab9460d1e706708700123c0460d1e6c4879400bf0f24ef94004341e223c00008e571032180013c0400d816a41f9400d81696100ff98780376532c3c0000091a610000ce23c446c7fa8020394610757c23c0800019e41039800065bd13c046c7ff40223c00008e571032180013c046c7ff627803263c000048fb2c3c000008b06100008e23c446c7a1207a004a3980001860661610398000002808000000670a4ab946104ca867027a012039461075644a85660606800000313823c046c76aa6700123c046c76a222039461075644a8567080480000041a0600604800000106823c046c76aaa1039800065bd13c046c7a850223c00008e571032180013c046c7a9344878ffff4eb9400a539c588f4e757a0810323800671a0c000001670e0c00ffff660e4a398000004f67067001eba88880d68652857010b08566d64e75243c0009b3404c020800243c00008ed84c021800d08145f9400e21e0d5c04e7541f9400aba50203c00008e551e32080072004a076624203c00008e54123208007006b2806302720226301c00203c00008e537800183208006026203c00008e52123208007006b2806302720226301c00203c00008e503832080048c46e02780023c30000000020044c03080023c0000000002a0347fa01da49fa01e64bf98000663e7c007008b0866f12203c0000091a4c060800068000000050601420065180223c000008b04c0108000680000048f843f208004a2900046708720012356800601672004a07660c203c00008e54123208006004122900017006b2806306243a0164600424301c0016c24a07660418c4600218d1200522024a81671426004c4130034c013800908326002001220360e84c4050054c02580052867010b0866600ff6423c5000000004e75263a0118d0835380223a0114670c24004c4120024c0128009082908352804e752a394610757c41f98000190443f946c7e99847f946c7fe44612c41f98000198447f946c7fe8c43f946c7faa461182a394610756441f946c76a2643f946c769c047f946c77be27c007800700010336800090067182204e789d28624301c0094856b0a42b11c0009801780680052847003b08466d652867008b08666cc4e7541f9400aba50700010398000663d7206b0816302700226300c007a00223a0062670c92835281b2ba00506e027a0143f98000663e45f9800065d37c0072004a85671a70001031680022030c8000000006620422300c0092836a0272001581680052867010b08666d44e7500ff00ffffff0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000100000000000000000000000003000003000000000000000000000000030000040000000100000001000000000000fff100000011460d1742000000000000fff10000001a460d173e000000000000fff100000023460e5cd0000000000000fff100000029460d1aec000000000000fff10000003180006546000000000000fff10000003b4005a2b8000000000000fff100000042460d1e70000000000000fff100000050460d1e6c000000000000fff1000000614004341e000000000000fff10000007600000044000000000000fff100000083800065b8000000000000fff10000008f800065bd000000000000fff100000098800065be000000000000fff1000000a0800065bf000000000000fff1000000aa800065c0000000000000fff1000000b3800065c1000000000000fff1000000bc800065c2000000000000fff1000000c6800065b2000000000000fff1000000d2800065b6000000000000fff1000000db8000663d000000000000fff1000000e4400aba50000000000000fff1000000ec00000006000000000000fff1000000f600000002000000000000fff1000000ff80006687000000000000fff10000010a80006516000000000000fff10000011480006536000000000000fff10000011e80006638000000000000fff10000012780006626000000000000fff10000013180006680000000000000fff10000013a80006682000000000000fff10000014380006684000000000000fff10000014c8000002a000000000000fff1000001564009e884000000000000fff10000015e40013a08000000000000fff10000016640000c3c000000000000fff10000016c460d17ae000000000000fff100000175400d8167000000000000fff100000181400d8168000000000000fff100000191400d8169000000000000fff10000019a400d816a000000000000fff1000001a700008e57000000000000fff1000001ae00000003000000000000fff1000001b78000004f000000000000fff1000001c246c7fa80000000000000fff1000001cd800019e4000000000000fff1000001d746c7ff40000000000000fff1000001e146c7ff62000000000000fff1000001eb46c7a120000000000000fff1000001f646c76aa6000000000000fff10000020146c76a22000000000000fff10000020b46c76aaa000000000000fff10000021646c7a850000000000000fff10000022046c7a934000000000000fff10000022a400a539c000000000000fff100000235400d816b000000000000fff10000023d400d816c000000000000fff100000249400e21e0000000000000fff1000002520009b340000000000000fff10000025e00008ed8000000000000fff10000026900008e53000000000000fff10000027400008e50000000000000fff10000028000008e55000000000000fff10000028d00000050000000000000fff1000002930000091a000000000000fff10000029c000048f8000000000000fff1000002a2000008b0000000000000fff1000002ab00000000000000000000fff1000002b300000001000000000000fff1000002bc00000002000000000000fff1000002c700000003000000000000fff1000002d08000663e000000000000fff1000002da800065d3000000000000fff1000002e100008e54000000000000fff1000002eb00008e52000000000000fff1000002f400000000000000000000fff1000002fa00000001000000000000fff10000030000000004000000000000fff1000003074610757c000000000000fff10000030c46107564000000000000fff10000031100000000000000000000fff10000031900000064000000000000000100000323000007a800000000000000010000032b000000760000000000000001000003360000004c00000000000000010000033f00000066000000000000000100000349000000a0000000000000000100000350000007ac000000000000000100000355000000a600000000000000010000035d00000130000000000000000100000364000007a200000000000000010000036d00000152000000000000000100000375000000ea00000000000000010000037f0000073800000000000000010000038800000296000000000000000100000390000007a600000000000000010000039a0000010a0000000000000001000003a3000007a70000000000000001000003ae0000011a0000000000000001000003b6000002a60000000000000001000003c0000001400000000000000001000003c9000007a30000000000000001000003d2000001b60000000000000001000003da000001960000000000000001000003e3000007a50000000000000001000003ed000001ce0000000000000001000003f7000002020000000000000001000003fe0000055000000000000000010000040600000570000000000000000100000411000002300000000000000001000004190000069a0000000000000001000004230000024e00000000000000010000042b000007bc0000000000000001000004300000025c0000000000000001000004390000028e000000000000000100000441000007b000000000000000010000044a000007b4000000000000000100000452000007b80000000000000001000004570000033400000000000000010000045e000007c0000000000000000100000465000007d000000000000000010000046c0000035c0000000000000001000004740000037e00000000000000010000047d00000380000000000000000100000486000006ba00000000000000010000048f000003de0000000000000001000004970000042e0000000000000001000004a20000040a0000000000000001000004ab000007a40000000000000001000004b3000004220000000000000001000004bc000005220000000000000001000004c4000004bc0000000000000001000004ca000004cc0000000000000001000004d1000004ec0000000000000001000004d8000004f20000000000000001000004df000005240000000000000001000004e5000005440000000000000001000004eb0000053e0000000000000001000004f2000005aa0000000000000001000004f8000005d00000000000000001000004fd000005f40000000000000001000005050000060c00000000000000010000050d0000062000000000000000010000051500000632000000000000000100000520000006480000000000000001000005270000064400000000000000010000053000000662000000000000000100000539000006640000000000000001000005400000066800000000000000010000054700000680000000000000000100000550000006b400000000000000010000055700000700000000000000000100000560000007020000000000000001000005670000070400000000000000010000056f000007260000000000000001000005770000076600000000000000010000057d000007740000000000000001000005850000079400000000000000010000058e00000000000000001000000100000598000000860000000010000001000005a0000003f20000000010000001000005a800000412000000001000000100444a5f4d4f44455f494e5f434156450050544e5f4d4f44450050544e5f5553454400504f505550004152525f41435400434841494e5f414354004e4f54494659004e4f544946595f48414e444c45004e4f544946595f434f554e54444f574e0050544e5f4c415945525f52454c5f524553554d4500444a5f544f4153545f445552005452414e53504f52545f4c004143545f42414e4b004143545f5041540050454e445f42414e4b0050454e445f50415400505245565f50415400505245565f42414e4b004d41535445525f53544550005449434b5f435452005343414c455f4958004c454e5f54424c005343414c455f4d4158005343414c455f3158004c414e445f434e54444e00534e41505f5354455000534e41505f5449434b00524553554d455f4c00484f4c445f4d41534b00524553594e43383000524553594e43383200524553594e433834004d4944495f53454e440050435f53454e4400535052494e5446004b504f53540055495f5155455545004d53475f42414e4b504154004d53475f42414e4b5041545f415247004d53475f50415254004d53475f504152545f41524700505f5041525400545f53494c454e540053494c454e545f44454600454e475f41464c41475300454e475f4154494d4500454e475f4142414e4b00454e475f415041525400454e475f4d464c41475300454e475f4d54494d453100454e475f4d464c414700454e475f4d54494d453200454e475f4d42414e4b00454e475f4d5041525400434f4e445f5245534554004d53475f504154004d53475f5041545f415247005041545f424153450042414e4b5f535452494445005041545f53545249444500505f4c454e5f4259544500505f4d4c454e5f574f524400505f5343414c455f4d4f444500415f4c454e00415f535452494445004d5f4c454e004d5f5354524944450053545f49444c450053545f41524d45440053545f4c414e44494e470053545f46495855500054524b5f5343414c450052454c4f414400505f5343414c455f4e00505f4d5343414c4500545f4c454e00545f53434c00545f464c41470053434c4b004d434c4b00444a5f544f465300646a745f73746f636b00444a5f4d4f444500646a5f6d73675f6f666600646a745f73686f7700646a5f6d73675f6f6e0064745f72756e00646a5f540064745f646f6e6500646c5f6f666600646a5f737461746500646c5f69646c6500646c5f6e6f7466697800646c5f666978757000646c5f646f6e6500646a5f61726d7061740064615f726563756500646a5f61726d62616e6b0064615f73616d6500646c5f636f6d6d697400646c5f636c65617200646a5f706370617400646c5f7265616c00646c5f706366697800646a5f706362616e6b00646c5f706373656e6400646c5f61726d00646a5f626c6f6200646a5f62706172616d730064615f7363616e00646a5f747072696d650064615f6e65787400646a5f4c0064615f666f756e6400646c5f61726d3200646a5f746c616e6400646a5f7470734d00646a5f430064635f6e6f6300646a5f74707300646a5f6c656e0064635f6c6f6f700064635f73746570300064635f73746f726500646a5f707572676500646a5f706f737400646a5f68616e646f666600646e5f73746f636b00646a5f7a65726f006470725f646f6e6500686f5f6269747300686f5f6d7400686f5f6d743100686f5f6d743200686f5f6d743300686f5f6c7000686f5f6e7800686f5f7365740062705f70740062705f630062705f6c6f6f700062705f6d6964690062705f626173650062705f626c6f6273636c0062705f73636c0062705f707473636c0062705f70746c656e0062705f6c636d0062705f6763640062705f6763646f6b0074705f6e6f630070675f7461626c650070675f74726b0070675f736c6f740070675f6e6578740066785f676f0066785f6c6f6f700066785f73746f726500646a5f746f67676c6500646a5f6c616e6400646a5f6e6f666100646a5f70746e72656c0000000000003c00000101000007a80000009a00000101000007ac000000a200000101000007ac000000e200000101000007a20000011200000101000007a20000014200000101000007a20000014a00000101000007a3000001d600000101000007a3000001e200000101000007a50000026400000101000007a60000027000000101000007a70000029200000101000007a20000031400000101000007b0000003d800000101000007a20000040000000101000007a2000005d200000101000007b4000005de00000101000007b80000069400000101000007bc002e73796d746162002e737472746162002e7368737472746162002e72656c612e74657874002e64617461002e62737300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000001000000060000000000000034000007e0000000000000000000000004000000000000001b00000004000000400000000000001828000000d80000000500000001000000040000000c000000260000000100000003000000000000081400000000000000000000000000000004000000000000002c000000080000000300000000000008140000000000000000000000000000000400000000000000010000000200000000000000000000081400000a6000000006000000a200000004000000100000000900000003000000000000000000001274000005b20000000000000000000000010000000000000011000000030000000000000000000019000000003100000000000000000000000100000000", - "sha256": "a8d5e79c0823996e80b5ae7bf788b34179410956bea69f0aaf3c864de30e9330", + "bytes": 10436, + "code": "7f454c460102010000000000000000000001000400000001000000000000000000002784000000260034000000000028000800077001b0af00086600005c2039460d17425380660000504ab9460d1aec660000464ab9460e5cd06600003c203a0e8e0a800000000102800000000123c00000000041fa00344a80670441fa001c487800442f084eb94005a2b8508f700123c0460d173e4e754e75444952454354204a554d50204f4e0000444952454354204a554d50204f4646004fefffc448d77fff6100032c7001b0b9800065b8670842b900000000600652b9000000004aba0e0e670000887001b0b9800065b86600007c4ab9460d1aec660000724ab98000654666000068103a0d726700008c0c0000036612610008e6610008c0423900000000600001ba0c000001660001b21039800065c0b03a0d48660c1039800065bfb03a0d3d6710423980006687423900000000600000441039800066870c0000016600017c610002f2600001744a3a0d13670461000ab8103a0d020c000001660642398000668742390000000070ff13c000000000600001481039800065c00c00ffff67e2b039800065be66501039800065bfb039800065bd6642103a0cbf0c00ffff6700ffc2b039800065be660e103a0cadb039800065bd6700ffac70001039800065be2f0070001039800065bd2f004eb94009e884508f6000ff8c1039800065c0b03a0c77660c1039800065bfb03a0c6d67341039800065c013c0000000001039800065bf13c00000000070001039800065c02f0070001039800065bf2f004eb94009e884508f4a39800066876e00008e70001039800065bf72001239800065c0610005806100059c2e3a0c860687000000007c002007d0865280610006b04a806d12223a0c7c24004c4120024c012800b082670e52860c86000000786dd66000003c1039800065c013c0000000001039800065bf13c0000000002206528113c1800066870c81000000016608610001886000000a700113c0000000004a3a0ba16704610008f6103a0b900c0000016604610000124cd77fff4fef003c1039800066874e754a398000667e660000e070001039800065bd72001239800065be610004c2720012398000663d7006b2806302720241f9400aba5024301c001239800065b649c15281b2826d0000a274003439800065b2528202820000ffff203c00008e561232080049c16a0812398000004e49c141f9400d80dc26301c004a836f0a20024c4308014a81674220398000662c72ffb0816706b0826e526030203c00008e554a320800670e203c00008e503232080048c1600c203c00008e531232080049c170ffb2806724b2826e201039800065be13c0800065c01039800065bd13c0800065bf700113c0000000004e754a3a0a8e674c4239000000001039800065c0b039800065be66381039800065bfb039800065bd662a103a0a6413c0800065c0103a0a5b13c0800065bf1039800065be13c0400d816c41f9400d816b610000044e752f084879460d17ae43f940000c3c4e91508f4e754a3a0a276704610007cc1039800065be13c0800065c11039800065bd13c0800065c21039800065c013c0800065be1039800065bf13c0800065bd70001039800065bd223c0009b3404c01080072001239800065be243c00008ed84c021800d08145f9400e21e0d5c0610003422e3a0a2c06870000000023c700000000263a0a242007d0835380223a0a1e670c24004c4120024c012800908228004c43400423c4800066382a009a83548541f98000651643f98000653647fa09f649fa0a027c107200121b20054c4100007400141c7202b2826e0e22004c4210014c02180090816002700030c04219538666d4610004084279800066264279800066804279800066824279800066841039800065bd13c0400d816841f9400d81676100fed0610000861039800065be13c0400d816c41f9400d816b6100feb6700213c0000000004e75103a08de0c0000026636700313c0000000002f082f0141f9800065d372101010538010c0538166f61039800065b6538013c0800065b6221f205f4a3a08a64e754a398000002a4e754ab9460d1e706708700123c0460d1e6c4879400bf0f24ef94004341e223c00008e571032180013c0400d816a41f9400d81696100fe2e780376532c3c0000091a6100019223c446c7fa8023c400000000203c00285ff0d0b94610757c23c0800019e41039800065bd13c046c7ff40223c00008e571032180013c046c7ff627803263c000048fb2c3c000008b06100014623c446c7a12023c4000000007a004a3980001860661610398000002808000000670a4ab946104ca867027a012039461075640680000041a04a85660606800000313823c046c76aa6700123c046c76a222039461075640680000041a04a8567080480000041a0600604800000106823c046c76aaa1039800065bd13c046c7a850223c00008e571032180013c046c7a9346100037a600000022e3a07ea4aba07ee671e2c3a07e8200690ba07de2c4020074c4600002a404c06080022079280244147fa07d249fa07de41f94610791843f9461079797a107800181b7600161c660276014c0438004aba07a4660c2007d08453804c430000603e200ed08422004c43100124014c032800908224014a80670252822c0d4c026800240ad48453824c432002b481630224014a806706b5ce630252822006d08220c012fc000153856600ff964e757a0810323800671a0c000001670e0c00ffff660e4a398000004f67067001eba88880d68652857010b08566d64e75243c0009b3404c020800243c00008ed84c021800d08145f9400e21e0d5c04e7541f9400aba50203c00008e551e32080072004a076624203c00008e54123208007006b2806302720226301c00203c00008e537800183208006026203c00008e52123208007006b2806302720226301c00203c00008e503832080048c46e02780023c30000000020044c03080023c0000000002a0347fa068c49fa06984bf98000663e7c007008b0866f12203c0000091a4c060800068000000050601420065180223c000008b04c0108000680000048f843f208004a2900046708720012356800601672004a07660c203c00008e54123208006004122900017006b2806306243a0616600424301c0016c24a07660418c4600218d1200522024a81671426004c4130034c013800908326002001220360e84c4050054c02580052867010b0866600ff6423c5000000004e75263a05cad0835380223a05c6670c24004c4120024c0128009082908352804e752a394610757c263c00142ff841f98000190443f946c7e99847f946c7fe44613241f98000198447f946c7fe8c43f946c7faa4611e2a3946107564263c000020d041f946c76a2643f946c769c047f946c77be27c0078007000103368000900671a2204e789d28624301c009485b4836d0a42b11c0009801780680052847003b08466d452867008b08666ca4e75283a04aa7a00200550800104670a2f054eb940008f84588f52857008b08566e64e7541f9400aba50700010398000663d7206b0816302700226300c007a00223a04e4670c92835281b2ba04d26e027a0143f98000663e45f9800065d37c0072004a85671a70001031680022030c8000000006620422300c0092836a0272001581680052867010b08666d44e754a3a041a670a423900000000b0804e754a39800000504e754a398000005066024e751039800065bd13c000000000223c00008e571032180013c0000000002a394610757c068500142ff82839461075640684000020d07c007e02203a03c40c86000000086504203a03bc22060281000000075081030066102006610000484a8067062e3c0000fffe2006d08041fa039a31870800d08041fa03b0218508000c860000000865042184080052867010b0866600ffa6700113c00000000013c0000000004e7526000c80000000086412223c0000091a4c01080041f20800725060185180223c000008b04c0108000680000048d041f208007228700010301800223c00008e554a321800660c223c00008e537000103218002428000426107220b081640c76007201e1a95381c48160160480000000200c800000002064087201e1a95381c681848320024e754fefffe848d7070e70001039800065bd72001239800065be6100fc1a20066100ff5a4cd7070e4fef00184e757c0076002206d28141fa02a8700030301800672c0c800000fffe6614610000d44a8066186100ffae4a806710760160105380318018006704760160046100003c52867010b08666bc13c3000000004e757c002006d08041fa025a4a70080067046100001852867010b08666e64239000000004239000000004e752006d08041fa02324270080020060c8000000008650251802f007000103a02102f00103a02092f000c860000000864084eb940001f186004610000e64fef000c4e75202f000c0c800000000864064ef940001f1851802f40000c600000c4700113c0000000002f2f00082f2f00084eb940009e00508f4e754fefffe448d70c3e2006e58841fa01d22830080026060c8600000008642024394610757c2a3c00142ff8247c46c7fe44207c80001904227c46c7e998602051832439461075642a3c000020d0247c46c77be2207c46c76a26227c46c769c07200700010323800030067262001e788d083264020310c00080000026714200b20300c00264090846b08200b9082b0856d0c52817003b08166c87000600270014cd70c3e4fef001c4e754fefffec48d70c1c202f0018222f001c242f0020263c0009b3404c003800247c40170f60d5c3263c000018b24c013800d5c376444c023800207c46c76dc0d1c32602eb8b224ad3fc000003e2d3c3782010d9538466fa76244c023800224ad3fc000004e2d3c32649d7fc00000009782410d9538466fa78001033480049c0720ab0816f4804800000000b224ad3fc000017922200e989d3c12202d281d282d284207c46c7738c2601e98bd1c3761010d9538366fa224ad3fc00001812d080d3c0207c46c7750cd281d1c1309152840c840000000366a2207c8000666e202f001811802800202f001c118028082002e588207c8000664e42b008004cd70c1c4fef00144e7500ff00ffffff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000100000000000000000000000003000003000000000000000000000000030000040000000100000001000000000000fff100000011460d1742000000000000fff10000001a460d173e000000000000fff100000023460e5cd0000000000000fff100000029460d1aec000000000000fff10000003180006546000000000000fff10000003b4005a2b8000000000000fff100000042460d1e70000000000000fff100000050460d1e6c000000000000fff1000000614004341e000000000000fff10000007600000044000000000000fff100000083800065b8000000000000fff10000008f800065bd000000000000fff100000098800065be000000000000fff1000000a0800065bf000000000000fff1000000aa800065c0000000000000fff1000000b3800065c1000000000000fff1000000bc800065c2000000000000fff1000000c6800065b2000000000000fff1000000d2800065b6000000000000fff1000000db8000663d000000000000fff1000000e4400aba50000000000000fff1000000ec00000006000000000000fff1000000f600000002000000000000fff1000000ff80006687000000000000fff10000010a80006516000000000000fff10000011480006536000000000000fff10000011e80006638000000000000fff10000012780006626000000000000fff10000013180006680000000000000fff10000013a80006682000000000000fff10000014380006684000000000000fff10000014c8000002a000000000000fff1000001564009e884000000000000fff10000015e40013a08000000000000fff10000016640000c3c000000000000fff10000016c460d17ae000000000000fff100000175400d8167000000000000fff100000181400d8168000000000000fff100000191400d8169000000000000fff10000019a400d816a000000000000fff1000001a700008e57000000000000fff1000001ae00000003000000000000fff1000001b78000004f000000000000fff1000001c246c7fa80000000000000fff1000001cd800019e4000000000000fff1000001d746c7ff40000000000000fff1000001e146c7ff62000000000000fff1000001eb46c7a120000000000000fff1000001f646c76aa6000000000000fff10000020146c76a22000000000000fff10000020b46c76aaa000000000000fff10000021646c7a850000000000000fff10000022046c7a934000000000000fff10000022a400a539c000000000000fff10000023500008e56000000000000fff10000023e8000004e000000000000fff100000249400d80dc000000000000fff1000002538000662c000000000000fff10000025c8000667e000000000000fff10000026540001f18000000000000fff10000026f0008ed80000000000000fff100000278000018b2000000000000fff10000027f46c76dc0000000000000fff10000028446c7738c000000000000fff10000028946c7750c000000000000fff10000021a8000666e000000000000fff10000028e8000664e000000000000fff100000294000048d0000000000000fff10000029a40008f84000000000000fff1000002a3400d816b000000000000fff1000002ab400d816c000000000000fff1000002b7400e21e0000000000000fff1000002c00009b340000000000000fff1000002cc00008ed8000000000000fff1000002d700008e53000000000000fff1000002e200008e50000000000000fff1000002ee00008e55000000000000fff1000002fb00000050000000000000fff1000003010000091a000000000000fff10000030a000048f8000000000000fff100000310000008b0000000000000fff10000031900000000000000000000fff10000032100000001000000000000fff10000032a00000002000000000000fff10000033500000003000000000000fff10000033e8000663e000000000000fff100000348800065d3000000000000fff10000034f00008e54000000000000fff10000035900008e52000000000000fff10000036200000000000000000000fff10000036800000001000000000000fff10000036e00000004000000000000fff1000003754610757c000000000000fff10000037a46107564000000000000fff10000037f00285ff0000000000000fff100000386000041a0000000000000fff10000038d00000000000000000000fff1000003950000006400000000000000010000039f00000eba0000000000000001000003a7000000760000000000000001000003b20000004c0000000000000001000003bb000000660000000000000001000003c5000003bc0000000000000001000003cf000000a40000000000000001000003d600000ebe0000000000000001000003db000000aa0000000000000001000003e3000001380000000000000001000003ea00000e460000000000000001000003f3000001640000000000000001000003fb000000f2000000000000000100000405000009c800000000000000010000040e000009a6000000000000000100000418000002aa00000000000000010000042000000e4a00000000000000010000042a0000011200000000000000010000043300000e4b00000000000000010000043e000001220000000000000001000004460000042400000000000000010000045000000e4d00000000000000010000045700000bf80000000000000001000004620000015200000000000000010000046b00000e47000000000000000100000474000001c800000000000000010000047c000001a800000000000000010000048500000e4900000000000000010000048f000001e0000000000000000100000499000002140000000000000001000004a0000007b00000000000000001000004a8000007d00000000000000001000004b3000002420000000000000001000004bb000008fa0000000000000001000004c5000002620000000000000001000004cd00000ece0000000000000001000004d2000002700000000000000001000004db000002a20000000000000001000004e300000ba80000000000000001000004eb000002c20000000000000001000004f2000002d20000000000000001000004fa000003ba000000000000000100000500000003580000000000000001000005070000039a00000000000000010000050e0000036a00000000000000010000051500000e4c00000000000000010000051c0000040e0000000000000001000005230000041000000000000000010000052b00000ec200000000000000010000053400000ec600000000000000010000053c00000eca000000000000000100000541000004bc00000000000000010000054800000ed200000000000000010000054f00000ee2000000000000000100000556000004e400000000000000010000055e00000506000000000000000100000567000005080000000000000001000005700000091a000000000000000100000579000005ca000000000000000100000584000005a600000000000000010000058d0000058400000000000000010000059300000e4800000000000000010000059b000005be0000000000000001000005a4000007820000000000000001000005ac00000e520000000000000001000005b400000e560000000000000001000005bc0000066a0000000000000001000005c2000006800000000000000001000005c9000006a60000000000000001000005d0000006ac0000000000000001000005d700000a4a0000000000000001000005e0000006d60000000000000001000005e8000006fe0000000000000001000005f0000007140000000000000001000005f8000007360000000000000001000005ff000007740000000000000001000006080000078400000000000000010000060e000007a40000000000000001000006140000079e00000000000000010000061b0000080a000000000000000100000621000008300000000000000001000006260000085400000000000000010000062e0000086c0000000000000001000006360000088000000000000000010000063e00000892000000000000000100000649000008a8000000000000000100000650000008a4000000000000000100000659000008c2000000000000000100000662000008c4000000000000000100000669000008c8000000000000000100000670000008e0000000000000000100000679000009140000000000000001000006800000096c0000000000000001000006890000096e00000000000000010000069000000970000000000000000100000698000009940000000000000001000006a0000009ac0000000000000001000006a5000009f60000000000000001000006ab00000a040000000000000001000006b300000a240000000000000001000006bc00000e4e0000000000000001000006c500000a420000000000000001000006ce00000e4f0000000000000001000006d600000e500000000000000001000006de00000a8a0000000000000001000006e300000aba0000000000000001000006ea00000af60000000000000001000006f300000e5a0000000000000001000006fa00000e7a00000000000000010000070200000b7c00000000000000010000070d00000bac00000000000000010000071200000be800000000000000010000071700000bd800000000000000010000071e00000c9a00000000000000010000072800000be400000000000000010000072e00000c2200000000000000010000073600000bfa00000000000000010000073b00000c0c00000000000000010000074000000d4200000000000000010000074a00000cd800000000000000010000074f00000cf800000000000000010000075500000cfa00000000000000010000075a00000d2a00000000000000010000075f00000d3600000000000000010000076600000d3800000000000000010000076d00000d9200000000000000010000077200000db200000000000000010000077700000dba00000000000000010000077c00000e0e00000000000000010000078200000df00000000000000001000007870000000000000000100000010000079100000086000000001000000100000799000005660000000010000001000007a1000005ae0000000010000001000007ab00000a320000000010000001000007b300000c640000000010000001000007bb00000c80000000001000000100444a5f4d4f44455f494e5f434156450050544e5f4d4f44450050544e5f5553454400504f505550004152525f41435400434841494e5f414354004e4f54494659004e4f544946595f48414e444c45004e4f544946595f434f554e54444f574e0050544e5f4c415945525f52454c5f524553554d4500444a5f544f4153545f445552005452414e53504f52545f4c004143545f42414e4b004143545f5041540050454e445f42414e4b0050454e445f50415400505245565f50415400505245565f42414e4b004d41535445525f53544550005449434b5f435452005343414c455f4958004c454e5f54424c005343414c455f4d4158005343414c455f3158004c414e445f434e54444e00534e41505f5354455000534e41505f5449434b00524553554d455f4c00484f4c445f4d41534b00524553594e43383000524553594e43383200524553594e433834004d4944495f53454e440050435f53454e4400535052494e5446004b504f53540055495f5155455545004d53475f42414e4b504154004d53475f42414e4b5041545f415247004d53475f50415254004d53475f504152545f41524700505f5041525400545f53494c454e540053494c454e545f44454600454e475f41464c41475300454e475f4154494d4500454e475f4142414e4b00454e475f415041525400454e475f4d464c41475300454e475f4d54494d453100454e475f4d464c414700454e475f4d54494d453200454e475f4d42414e4b00454e475f4d5041525400434f4e445f524553455400505f434841494e510050524f4a5f5155414e54005155414e545f54424c00454e445f535445500053544f505f454e440054524b5f4150504c5900504152545f4f46460050415254535a004d454e47004d444553004d534c50004d5a45524f004d5f524543004e4f54455f4f4646004d53475f504154004d53475f5041545f415247005041545f424153450042414e4b5f535452494445005041545f53545249444500505f4c454e5f4259544500505f4d4c454e5f574f524400505f5343414c455f4d4f444500415f4c454e00415f535452494445004d5f4c454e004d5f5354524944450053545f49444c450053545f41524d45440053545f4c414e44494e470053545f46495855500054524b5f5343414c450052454c4f414400505f5343414c455f4e00505f4d5343414c4500545f4c454e00545f53434c00545f464c41470053434c4b004d434c4b005449434b5f41005449434b5f4d00444a5f544f465300646a745f73746f636b00444a5f4d4f444500646a5f6d73675f6f666600646a745f73686f7700646a5f6d73675f6f6e00646a5f756e686964650064745f72756e00646a5f540064745f646f6e6500646c5f6f666600646a5f737461746500646c5f69646c6500646c5f6e6f7466697800646c5f666978757000646a5f72656c73696c00646c5f646f6e6500646a5f61726d7061740064615f726563756500646a5f61726d62616e6b0064615f73616d6500646c5f636f6d6d697400646a5f73706e00646a5f7370666c75736800646c5f636c65617200646a5f706370617400646c5f7265616c00646c5f706366697800646a5f706362616e6b00646c5f706373656e6400646c5f61726d00646a5f626c6f6200646a5f62706172616d730064615f7363616e00646a5f747072696d650064615f6e65787400646a5f4c0064615f666f756e6400646c5f61726d3200646a5f7370646f00646c5f6f757400646a5f686964650064685f6e6f0064685f656e640064685f7965730064685f6c656e00646a5f6869640064755f6f757400646a5f706f737400646a5f746c616e6400646a5f7470734d00646a5f430064635f6e6f6300646a5f74707300646a5f6c656e0064635f6c6f6f700064635f73746570300064635f73746f726500646a5f707572676500646a5f68616e646f666600646e5f73746f636b00646e5f726c00646a5f7a65726f006470725f646f6e6500686f5f6269747300646a5f73696c4100646a5f73696c4d00686f5f6d7400686f5f6d743100686f5f6d743200686f5f6d743300646a5f737061726d00646a5f636f6e6400636e5f696e697400636e5f6c6f6f7000636e5f63796300636e5f73746f726500686f5f6c7000686f5f6e7800686f5f7365740062705f70740062705f630062705f6c6f6f700062705f6d6964690062705f626173650062705f626c6f6273636c0062705f73636c0062705f707473636c0062705f70746c656e0062705f6c636d0062705f6763640062705f6763646f6b0074705f6e6f630070675f7461626c650070675f74726b0070675f736c6f740070675f6e6578740072735f6c0066785f676f0066785f6c6f6f700066785f73746f726500646a5f6465666572006c715f73746f636b00646a5f7370626b00646a5f737070740073615f6c0073615f73657400646a5f746d61736b00646a5f73706400646a5f7370746d00646a5f6861737472696700736f5f6c00736f5f6e00736f5f64656300646a5f73707472696700736f5f676f00646a5f707562310073665f6c0073665f6e00646a5f6d6170706c790073745f6d0073745f676f0073745f6c0073745f6e0073745f7965730073745f6f7574006d615f70006d615f73006d615f64006d615f646e006d615f7700646a5f746f67676c6500646a5f6c616e6400646a5f6e6f666100646a5f70746e72656c00646a5f6c666f7100646a5f7470756200646a5f7077696465000000003c0000010100000eba0000009e0000010100000ebe000000a60000010100000ebe000000ea0000010100000e460000011a0000010100000e46000001540000010100000e460000015c0000010100000e47000001e80000010100000e47000001f40000010100000e49000002780000010100000e4a000002840000010100000e4b000002a60000010100000e46000003b60000010100000e4c000003c40000010100000e4c0000049c0000010100000ec2000005600000010100000e46000005740000010100000e46000005fa0000010100000e52000006460000010100000e56000008320000010100000ec60000083e0000010100000eca000008f40000010100000ece00000a3a0000010100000e4e00000a5c0000010100000e4f00000a6c0000010100000e5000000aea0000010100000e4d00000af00000010100000e4e00000bf20000010100000e4d00000c160000010100000e4d00000c1c0000010100000e4e00000c840000010100000e4e002e73796d746162002e737472746162002e7368737472746162002e72656c612e74657874002e64617461002e6273730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000100000006000000000000003400000ef2000000000000000000000004000000000000001b000000040000004000000000000025dc000001740000000500000001000000040000000c0000002600000001000000030000000000000f2800000000000000000000000000000004000000000000002c00000008000000030000000000000f2800000000000000000000000000000004000000000000000100000002000000000000000000000f2800000ef000000006000000e800000004000000100000000900000003000000000000000000001e18000007c40000000000000000000000010000000000000011000000030000000000000000000027500000003100000000000000000000000100000000", + "sha256": "adc728df6708812b1a15916056901e92a49703bb242334b6c7df93d91c712d10", "stockCopies": [], "placement": "linked", "poolBaseLiterals": 0, @@ -1132,7 +1132,7 @@ { "label": "ts", "moduleId": "direct-jump-kyoti", - "version": "0.1.2-experimental", + "version": "0.2.0-experimental", "key": "DIRECT_JUMP_KYOTI", "author": "Zac-Kyoti", "nativeAuthor": "Zac-Kyoti", @@ -1142,7 +1142,7 @@ "source": "modules/direct-jump-kyoti/patch_trigscale.s", "sources": { "modules/direct-jump-kyoti/patch_trigscale.s": "f657f576c14cf61e23cc563eab54a07ef4f9774ddfca0c8bf3286c13bb76068f", - "modules/direct-jump-kyoti/manifest.py": "cb692249697b3c982f2ac984b7a50f7933b7ad9dcd50b02600b966df04b53c8e" + "modules/direct-jump-kyoti/manifest.py": "9e77237f2ac7f4158b51b5d9f70237617fe0429c0c9a3848adffbd76157300a9" }, "bytes": 672, "code": "7f454c460102010000000000000000000001000400000001000000000000000000000188000000260034000000000028000700067007b0836d18203c0000091a4c0308002041d08241f008514ef94009b704200351802c3c000008b04c060800d0820680000048f92041d1c04ef94009b70400000000000000000000000000000000000000000000000000000000000003000001000000000000000000000000030000020000000000000000000000000300000300000001000008b0000000000000fff10000000d000048f9000000000000fff10000001c0000091a000000000000fff10000002900000051000000000000fff1000000394009b704000000000000fff10000003e000000000000000010000001004d4944495f535452494445004d4944495f5343414c455f4f464600415544494f5f53545249444500415544494f5f5343414c455f4f4646004241434b0074735f6361766500002e73796d746162002e737472746162002e7368737472746162002e74657874002e64617461002e627373000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b000000010000000600000000000000340000003e0000000000000000000000040000000000000021000000010000000300000000000000740000000000000000000000000000000400000000000000270000000800000003000000000000007400000000000000000000000000000004000000000000000100000002000000000000000000000074000000a00000000500000009000000040000001000000009000000030000000000000000000001140000004600000000000000000000000100000000000000110000000300000000000000000000015a0000002c00000000000000000000000100000000", @@ -5503,6 +5503,17 @@ "writeLength": 6, "note": "[PTN] release: keep the chooser shut after [PTN]+[YES]" }, + { + "address": 1073782462, + "guardLength": 6, + "guardSha256": "37edecfc18058ca757b701a5e909152025e5ceb96e33328800af3bea09dd5e94", + "unit": "dj7", + "symbol": "dj_lfoq", + "target": null, + "kind": "jsr", + "writeLength": 6, + "note": "light Part apply: per-track part deferred to each track's first trig" + }, { "address": 1074378482, "guardLength": 18, diff --git a/src/engine/assets/resident-dsp.json b/src/engine/assets/resident-dsp.json index 81f060823f..fdddb1a0c9 100644 --- a/src/engine/assets/resident-dsp.json +++ b/src/engine/assets/resident-dsp.json @@ -97,7 +97,7 @@ "baselineDescriptors": [] } ], - "sourceCommit": "40307ecd410d7e4f306d10f04025b8f44ab70447", + "sourceCommit": "c62ee5a6f507d59789f17ce244fdffc343511a20", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", @@ -124,7 +124,7 @@ "output-matrix": "0.1.1-experimental", "quantize-live-rec-toggle": "0.1.1-experimental", "apply-scene": "0.2.0-experimental", - "direct-jump-kyoti": "0.1.2-experimental", + "direct-jump-kyoti": "0.2.0-experimental", "dejavu": "0.1.0-experimental", "arp-key-locks": "0.1.0-experimental", "temp-save": "0.1.1-experimental", diff --git a/src/engine/assets/rom-packages.json b/src/engine/assets/rom-packages.json index fbade2727e..8e93704dc2 100644 --- a/src/engine/assets/rom-packages.json +++ b/src/engine/assets/rom-packages.json @@ -423,7 +423,7 @@ "sha256": "fdba0ffd31b7932ceb1ded3bde9a976b6f148ae96fc73a4efc4fedf6fb692341" } ], - "sourceCommit": "40307ecd410d7e4f306d10f04025b8f44ab70447", + "sourceCommit": "c62ee5a6f507d59789f17ce244fdffc343511a20", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", @@ -450,7 +450,7 @@ "output-matrix": "0.1.1-experimental", "quantize-live-rec-toggle": "0.1.1-experimental", "apply-scene": "0.2.0-experimental", - "direct-jump-kyoti": "0.1.2-experimental", + "direct-jump-kyoti": "0.2.0-experimental", "dejavu": "0.1.0-experimental", "arp-key-locks": "0.1.0-experimental", "temp-save": "0.1.1-experimental", diff --git a/src/engine/assets/usb-audio-packages.json b/src/engine/assets/usb-audio-packages.json index 6f488e013b..c5e55f2a2c 100644 --- a/src/engine/assets/usb-audio-packages.json +++ b/src/engine/assets/usb-audio-packages.json @@ -553,7 +553,7 @@ } ] }, - "sourceCommit": "40307ecd410d7e4f306d10f04025b8f44ab70447", + "sourceCommit": "c62ee5a6f507d59789f17ce244fdffc343511a20", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", @@ -580,7 +580,7 @@ "output-matrix": "0.1.1-experimental", "quantize-live-rec-toggle": "0.1.1-experimental", "apply-scene": "0.2.0-experimental", - "direct-jump-kyoti": "0.1.2-experimental", + "direct-jump-kyoti": "0.2.0-experimental", "dejavu": "0.1.0-experimental", "arp-key-locks": "0.1.0-experimental", "temp-save": "0.1.1-experimental", diff --git a/src/engine/assets/utility-packages.json b/src/engine/assets/utility-packages.json index 4e82bfb69d..1a5aed1115 100644 --- a/src/engine/assets/utility-packages.json +++ b/src/engine/assets/utility-packages.json @@ -3,7 +3,7 @@ "kind": "authored-utility-packages", "stockRead": false, "revision": "b8deefc88b2c3e5f3c6158e364eb741df1924e1d", - "sourceCommit": "40307ecd410d7e4f306d10f04025b8f44ab70447", + "sourceCommit": "c62ee5a6f507d59789f17ce244fdffc343511a20", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", @@ -30,7 +30,7 @@ "output-matrix": "0.1.1-experimental", "quantize-live-rec-toggle": "0.1.1-experimental", "apply-scene": "0.2.0-experimental", - "direct-jump-kyoti": "0.1.2-experimental", + "direct-jump-kyoti": "0.2.0-experimental", "dejavu": "0.1.0-experimental", "arp-key-locks": "0.1.0-experimental", "temp-save": "0.1.1-experimental", From f4b8a17333c262249f7d641cf78aa74300577cb2 Mon Sep 17 00:00:00 2001 From: Zac-Kyoti <273702472+Zac-Kyoti@users.noreply.github.com> Date: Mon, 16 Nov 2026 11:22:09 -0800 Subject: [PATCH 017/415] Direct Jump Kyoti 0.2.0: gate result, qualification identity, documentation; hardware pending the author's MKI run verify.py on the native image of this module alone (MAIN OS 3c7b1419..., ot_emu built from this checkout, 87d73ccf...): all 60 checks passed. README, TESTING and the manifest describe V7.2.2's changes for the player, the new site, the gate, cycles, memory and the package. The captures, taken again on the tested image, are byte-identical to 0.1.2's (capture.json in the first commit). tests.hardwareStatus is untested and the qualification still names 0.1.2's MKII record, so modules:check refuses until the author's run of this build is recorded (evidence/hardware.md); module-documents.json is regenerated then. Co-Authored-By: Claude Opus 5.5 --- .../modules/direct-jump-kyoti/README.md | 29 ++++--- .../modules/direct-jump-kyoti/TESTING.md | 21 ++++- .../direct-jump-kyoti/evidence/hardware.md | 8 ++ .../direct-jump-kyoti/octamod.module.json | 78 +++++++++---------- 4 files changed, 86 insertions(+), 50 deletions(-) diff --git a/sdk/octatrack/modules/direct-jump-kyoti/README.md b/sdk/octatrack/modules/direct-jump-kyoti/README.md index b3d5b441d4..53b075bbc6 100644 --- a/sdk/octatrack/modules/direct-jump-kyoti/README.md +++ b/sdk/octatrack/modules/direct-jump-kyoti/README.md @@ -2,11 +2,13 @@ ## Overview -On the stock OS a cued pattern waits for the playing one to reach its end. With Direct Jump on, it takes over on the next step instead, locked to the master clock: it starts at the step it would be on had it been playing since you pressed PLAY, whatever its length, scale or per-track settings. The Part, START SILENT and trig conditions change as on a stock pattern change, and the last MIDI Program Change sent names the pattern that plays. Direct Jump is off at every power-on, so the stock pattern change stays the default. +On the stock OS a cued pattern waits for the playing one to reach its end. With Direct Jump on, it takes over on the next step instead, locked to the master clock: it starts at the step it would be on had it been playing since you pressed PLAY, whatever its length, scale or per-track settings. Trig conditions carry on as if the new pattern had played all along, each track gets its new Part settings with its own first trig, and with SILENCE TRACKS on the tracks a jump silences are released before the step instead of cut. The last MIDI Program Change sent names the pattern that plays. Direct Jump is off at every power-on, so the stock pattern change stays the default. -Version `0.1.2-experimental`, for OS 1.40C card builds and, for beta testers, over USB on the Modwerk base, where the unit's module list shows it as DirectJmp Kyoti: a name there holds 15 characters, too few for Direct Jump Kyoti. This is Zac Kyoti's octabam module `direct-jump-kyoti` (his V7, the clock-locked landing), with his fix for stock's MIDI Plays-Free trig stall built in, as in his own Direct Jump builds. Modwerk re-encodes a few of its instructions so the USB package carries no stock code; the behaviour is his. +Version `0.2.0-experimental`, for OS 1.40C, over USB on the Modwerk base for beta testers, where the unit's module list shows it as DirectJmp Kyoti: a name there holds 15 characters, too few for Direct Jump Kyoti. This is Zac Kyoti's Direct Jump V7.2.2 from his repository (`octabam-modules/direct-jump-kyoti`, commit `109f54c`), with his fix for stock's MIDI Plays-Free trig stall built in, as in his own Direct Jump builds. Modwerk re-encodes a few of its instructions so the USB package carries no stock code; the behaviour is his. -**Hardware status.** The author tested the timing, the Part change and the toggle on his MKI (27 September to 1 October 2026, his own builds). Modwerk's USB package ran on the owner's MKII on 24 October 2026: installed, kept, restored after a power cycle and removed on the flashed beta base, and on a development twin the toggle and clock-locked jumps between a 64- and a 16-step pattern ([evidence/hardware.md](evidence/hardware.md)). The card build has not run on a unit. Version 0.1.1 adds the author's MIDI Plays-Free fix, which he confirmed on his MKI. On 25 October 2026 the 0.1.1 and 0.1.2 packages were installed, kept, self-tested and removed on the owner's MKII on the beta base; the fix itself was not exercised on it. +**What 0.2.0 changes.** Trig conditions carry on across a jump instead of starting again (his V7.0.2). A jump lands one tick before the step it starts on, so the new pattern's first step is never late (V7.1), and a cue made in the playing pattern's last step is no longer taken by stock's own pattern change (V7.1.1). Each track's own Part settings reach the engine with that track's first sounding trig of the new pattern (V7.2). With SILENCE TRACKS on, the tracks a jump silences are released with stock's note-off just before the step (V7.2.2). + +**Hardware status.** The author tested the timing, the Part change and the toggle on his MKI (27 September to 1 October 2026, his own builds), and V7.2.2's changes on 15 November 2026 in his own builds of the same Direct Jump code: the SILENCE TRACKS pop gone in his standalone image, and in his combined KYOTI V1.8C image (beside his Clyps) landings at other lengths and scales, a cue in the last step, trig conditions across a jump and each track's Part with LFO AUTO CHANGE on. Those are not Modwerk builds. **This Modwerk version has not yet run on a unit**: its native image of this module alone waits for the author's MKI run ([evidence/hardware.md](evidence/hardware.md)). Earlier versions: the 0.1.x USB package ran on the owner's MKII on 24 and 25 October 2026 (install, keep, power cycle, removal, and on a development twin the toggle and jumps between a 64- and a 16-step pattern). ## Controls @@ -31,7 +33,13 @@ Direct Jump changes only when a cued pattern takes over. Cue patterns the stock The landing is clock-locked: the incoming pattern starts at the position it would hold had it been playing since START. For two 16-step patterns that is simply the next step. A 7-step pattern lands on the step a 7-step loop would be on at that moment, so it stays in phase with a loop that had been running all along. In PER TRACK mode, with tracks of different scales, the jump waits for the next clock tick at which every track sits on a step boundary (at most one common step of all the scales involved, for example 24 clock ticks with 1x, 3/4x and 1/2x tracks), so every track starts exactly on its step. -A jump changes what a stock pattern change changes: the Part (if the new pattern uses another one), START SILENT and the trig-condition counters. Cueing again before the jump lands takes the newest cue; cueing back the playing pattern cancels, and a Program Change for the playing pattern is sent again so external gear follows. No MIDI START is sent on a jump. +A jump changes the Part if the new pattern uses another one, and START SILENT, as a stock pattern change does. Unlike a stock change: + +- **Trig conditions carry on.** Every track's A:B count (1:2, 3:4 and the rest) stands where the new pattern's would had it played since PLAY, so a 1:2 trig keeps alternating across the jump. A latched [FILL] stays latched, and a PRE trig right after the jump plays, as at the start of a pattern. +- **Each track gets its new Part settings with its own first trig.** The Part's pattern-wide settings change at the jump; with LFO AUTO CHANGE on (PROJECT > CONTROL > SEQUENCER), each track's LFO setup changes with that track's first trig of the new pattern, so a sample still ringing from the old pattern keeps its own LFOs. A track with no trig in the new pattern gets them at once; STOP, turning Direct Jump off or the next jump applies every track still waiting. With LFO AUTO CHANGE off, nothing waits. +- **No pop with SILENCE TRACKS.** The tracks a jump silences (SILENCE TRACKS, or START SILENT on the track) are released with stock's note-off, the same release STOP uses, a tick before the step, instead of being cut on it. + +The jump lands one tick before the step it starts on, so the new pattern's first step sounds exactly where it should, and a cue made in the playing pattern's last step still lands on its grid point. Cueing again before the jump lands takes the newest cue; cueing back the playing pattern cancels, and a Program Change for the playing pattern is sent again so external gear follows. No MIDI START is sent on a jump. While the arranger or a pattern chain runs, Direct Jump leaves pattern changes to stock. @@ -43,33 +51,34 @@ One stock gesture is touched: - **Why.** The toggle belongs next to the pattern keys it changes, and [YES] is free in the [PTN] layer on stock. A menu row would need a settings store Modwerk does not have yet. - **What you see and do differently.** A toast on [PTN] + [YES]. [PTN] alone, [PTN] with trig keys, [YES] alone and the chooser after a plain [PTN] tap are unchanged. - **Turning it off.** [PTN] + [YES] again, or a power cycle. Pattern changes are stock while it is off. -- **Neighbouring flows checked** (emulator, MKII panel, against the original OS): [YES] alone; [PTN] + [YES] and the chooser on release; a stock cued pattern change while OFF (identical sequencer state on every step). Not checked: the arranger, chains, MKI panel. +- **Neighbouring flows checked** (emulator, MKII panel, against the original OS): [YES] alone; [PTN] + [YES] and the chooser on release; a stock cued pattern change while OFF (identical sequencer state on every step); with LFO AUTO CHANGE off, the Part apply after a jump is stock. Not checked: the arranger, chains, MKI panel. ## Compatibility and limitations -- OS 1.40C. The author tested the clock-locked timing, the Part change and the toggle on his MKI; Program Change on fast re-cues, MIDI tracks, START SILENT and the trig-condition reset he verified in his emulator only. Modwerk's USB package ran on an MKII (the toggle, jumps, a power cycle, removal); a jump into another Part, per-track scales and external MIDI were not tried on it. +- OS 1.40C. The author tested the clock-locked timing, the Part change, the toggle and 0.2.0's changes on his MKI in his own builds; Program Change on fast re-cues, MIDI tracks and START SILENT he verified in his emulator only. This Modwerk version has not run on a unit; the 0.1.x USB package ran on an MKII (the toggle, jumps, a power cycle, removal). - OFF at every power-on and not stored in the project: turn it on again after a restart. - While the arranger or a pattern chain runs, pattern changes stay stock. - With differing track scales in PER TRACK mode the jump waits for the next tick where every track is on a step boundary (see above). +- With LFO AUTO CHANGE on, a track keeps the old Part's LFO setup until its first trig in the new pattern (see above). - A jump changes the Part through stock's own Part-change path, so stock's known Part-change carryover issues (a track going from PICKUP to FLEX can keep the old Part's pickup loop; see the author's notes) happen on a jump as on a stock pattern change. - With [Play Modes](../playmodes/README.md): each jump runs through the stock path that starts the transport, which Play Modes watches, so Play Modes restarts its per-track state on a jump as it does on PLAY. Not yet tested together. - No conflicts are declared. The upstream module also refuses octabam's DIRECT JUMP (Tim Hastie's CHAIN AFTER option) and OCTAKIT, neither of which Modwerk has. **The MIDI Plays-Free fix is built in.** Upstream, the module `requires` the author's BATCH_BUGFIXES bundle for its MIDI Plays-Free fix ([upstream/README.md](upstream/README.md), "Required: the bugfix bundle"). On stock, a Plays-Free MIDI track with trig quantize DIRECT under PER TRACK scale stalls after its first step when you start it with its trig key, because stock seeds that track's scale from the wrong byte. Direct Jump reads that same byte to place each track, so without the fix it would place such a track with the master's scale instead of its own. Modwerk modules never depend on another module, so from 0.1.1 Direct Jump carries the fix itself, as the author's standalone Direct Jump image does: his `patch_trigscale.s`, from the same pin. It fixes the stall too, whether Direct Jump is on or off. The source still reads any scale byte above 6 as the master's, as a backstop. The bundle's other two fixes are not included: the empty-pattern LED is unrelated to Direct Jump, and the Part-change carryover fix is the one the author measured as independent of it (the Part-change trace, Program Changes on fast re-cues and the whole timing matrix identical with and without it). Version 0.1.0 shipped without the Plays-Free fix. -Hook sites: the landing countdown read in phase D of the sequencer's tick handler at `0x400a1f72` and the MIDI START gate in its landing path at `0x400a221c` (both `jsr`, replaying what they displace), the [PTN] release at `0x40043418` (`jmp`), the [PTN] layer's YES press slot at `0x400bf0c0`, which is empty on stock, and, for the Plays-Free fix, the per-track scale seed of a track's manual start at `0x4009b6f2` (a `jmp` to the fix, which redoes the 18 stock bytes there for audio tracks and reads a MIDI track's own scale). No other catalogue module claims any of them. +Hook sites: the landing countdown read in phase D of the sequencer's tick handler at `0x400a1f72` and the MIDI START gate in its landing path at `0x400a221c` (both `jsr`, replaying what they displace), the [PTN] release at `0x40043418` (`jmp`), the light Part apply's LFO AUTO CHANGE test at `0x40009ebe` (`jsr`, new in 0.2.0: the one apply after a jump leaves each track's LFO setup to that track's first trig, every other apply is stock), the [PTN] layer's YES press slot at `0x400bf0c0`, which is empty on stock, and, for the Plays-Free fix, the per-track scale seed of a track's manual start at `0x4009b6f2` (a `jmp` to the fix, which redoes the 18 stock bytes there for audio tracks and reads a MIDI track's own scale). No other catalogue module claims any of them. ## Tests and measurements -[TESTING.md](TESTING.md) has the commands and every result: the unit's bytes, the emulator gate (the toggle, OFF against the original OS, three jumps against reference runs, and the MIDI Plays-Free stall on the original OS against the fix), the USB package's stock-free scan, and what was not tested. Emulator results say nothing about a real unit's timing or audio. +[TESTING.md](TESTING.md) has the commands and every result: the unit's bytes, the emulator gate (the toggle, OFF against the original OS, four jumps whose sequencer and trig-condition state equal reference runs, each track's Part at its first trig, the SILENCE TRACKS release, and the MIDI Plays-Free stall on the original OS against the fix), the cycles and load, the USB package's stock-free scan, and what was not tested. Emulator results say nothing about a real unit's timing or audio. ## Authorship and licences -Zac Kyoti designed Direct Jump and wrote its ColdFire source (MIT, [LICENSE](LICENSE)); Sam Banks integrated it into octabam (MIT, [upstream/OCTABAM_LICENSE](upstream/OCTABAM_LICENSE)). Thanks to Sebastien Michel (uvbproject) for investigating the port in [pull request #856](https://github.com/repeat98/modwerk/pull/856); nothing from it is in the module. The author's own description is kept in [upstream/README.md](upstream/README.md) and octabam's wrapper page in [upstream/OCTABAM_README.md](upstream/OCTABAM_README.md). `../../../imports/direct-jump-kyoti-b725fb1.json` records each copied file with its source pin: `upstream/README.md` and `LICENSE` are the author's files byte for byte; `patch_directjump_v7.s` is his file with three kernel posts routed through one helper and two instructions swapped (marked MODWERK); `patch_trigscale.s` is his MIDI Plays-Free fix from BATCH_BUGFIXES with one instruction moved and its label renamed (marked MODWERK); `manifest.py` declares the same units and sites with SHA-256 guards in place of stock bytes. The Modwerk gate (`verify.py`), documentation and thumbnail are GPL-3.0-or-later. No firmware, stock code, built image or card is included. +Zac Kyoti designed Direct Jump and wrote its ColdFire source (MIT, [LICENSE](LICENSE)); Sam Banks integrated it into octabam (MIT, [upstream/OCTABAM_LICENSE](upstream/OCTABAM_LICENSE)). Thanks to Sebastien Michel (uvbproject) for investigating the port in [pull request #856](https://github.com/repeat98/modwerk/pull/856); nothing from it is in the module. The author's own description is kept in [upstream/README.md](upstream/README.md) and octabam's wrapper page in [upstream/OCTABAM_README.md](upstream/OCTABAM_README.md). `../../../imports/direct-jump-kyoti-109f54c.json` records each copied file with its source pin (the 0.1.x import is `../../../imports/direct-jump-kyoti-b725fb1.json`): `upstream/README.md` and `LICENSE` are the author's files byte for byte; `patch_directjump_v7.s` is his V7.2.2 with four kernel posts routed through one helper and two instruction pairs swapped (marked MODWERK); `patch_trigscale.s` is his MIDI Plays-Free fix from BATCH_BUGFIXES with one instruction moved and its label renamed (marked MODWERK); `manifest.py` declares the same units and sites with SHA-256 guards in place of stock bytes. The Modwerk gate (`verify.py`), documentation and thumbnail are GPL-3.0-or-later. No firmware, stock code, built image or card is included. ## Screens and audio -Captured from the real LCD in the headless emulator, MKII panel; provenance is in [media/capture.json](media/capture.json). They show the emulator, not a unit. The module makes no sound of its own, so there is no audio preview. +Captured from the real LCD in the headless emulator, MKII panel, on this version's native image; provenance is in [media/capture.json](media/capture.json). They show the emulator, not a unit. The module makes no sound of its own, so there is no audio preview. ![Octatrack main screen with a notification box reading DIRECT JUMP ON.](media/ot-direct-jump-on.png) ![Octatrack main screen during playback showing pattern A02 as the playing pattern.](media/ot-jump-landed.png) diff --git a/sdk/octatrack/modules/direct-jump-kyoti/TESTING.md b/sdk/octatrack/modules/direct-jump-kyoti/TESTING.md index 20446c8043..78781dc4dc 100644 --- a/sdk/octatrack/modules/direct-jump-kyoti/TESTING.md +++ b/sdk/octatrack/modules/direct-jump-kyoti/TESTING.md @@ -1,6 +1,25 @@ # Direct Jump: tests and measurements -Version `0.1.2-experimental`, recorded 25 October 2026. The 0.1.2 and 0.1.1 changes and results come first; the 0.1.0-experimental record (24 October 2026) follows, and what it measured of the Direct Jump unit still holds, because that unit is byte-identical in 0.1.1 and 0.1.2. +Version `0.2.0-experimental`, recorded 16 November 2026. Its changes and results come first; the 0.1.2, 0.1.1 and 0.1.0 records follow. The 0.1.x figures describe the earlier unit (2,016 bytes, V7.0.1) and no longer hold for this one. + +## 0.2.0-experimental: DIRECT JUMP V7.2.2 + +- **Source.** Zac-Kyoti/octatrack-kyoti-fw `109f54cd36fcd770e3409d1258254619a161b1d7`, `octabam-modules/direct-jump-kyoti/` (record: `../../../imports/direct-jump-kyoti-109f54c.json`). The author's changes since V7.0.1: trig conditions stand where a never-switched incoming pattern would hold them instead of being reset (V7.0.2, `dj_cond`); a jump lands one tick before the step boundary (V7.1); a cue armed by Direct Jump is never taken by stock's wrap-change (V7.1.1, `dj_hide`/`dj_unhide`); each track's Part reaches the engine at its first sounding trig, with LFO AUTO CHANGE on (V7.2, `dj_sparm`..`dj_mapply`, and one new site, `dj_lfoq` at `0x40009ebe`); the tracks the switch silences are released with stock's note-off `0x40008f84` on the tick after the landing (V7.2.2, `dj_relsil`). `DJ_SELFHOOK` and `DJ_DIAG` stay undefined. +- **Source identity.** `patch_directjump_v7.s` is the author's file with six re-encodings, each marked MODWERK: the four inline kernel posts go through `dj_post` (the 0.1.x helper, now also used by `dj_unhide`), the second purge table's two `lea`s are swapped as before, and the hand-off's switch time is formed as `move.l #TICK_A,%d0; add.l SCLK,%d0` instead of `move.l SCLK,%d0; addi.l #TICK_A,%d0` (the same sum and flags). Every caller of `dj_post` runs inside `dj_land`, which saves every register. Assembled with `m68k-elf-as -mcpu=5407` or `-mcpu=54455` (identical) and linked at `0x400d6d38`, the unit is 3,826 bytes, SHA-256 `4d28a1d8791fc7eeed41a62fa173f431d77ce0493b7adfd240c79d78fc883b0f` (the manifest's reference). With the six changes taken back the same file links to the author's 3,846 bytes, `688978daa1ed86c0a0874404e859ee781fbfbed7808be33c2f862beb3e373011`, his manifest's REFERENCE at 109f54c (checked locally, 16 November 2026). `patch_trigscale.s` and `LICENSE` are unchanged from 0.1.x (the author's files at 109f54c differ from them only in a copyright line). +- **New stock site.** `0x40009ebe`, 6 bytes, `tst.b` of LFO AUTO CHANGE in the light Part apply `0x40009e00`: guard SHA-256 `37edecfc18058ca757b701a5e909152025e5ceb96e33328800af3bea09dd5e94`, matching the original MAIN OS. `dj_lfoq` replays it, except once after a jump's hand-off when it returns Z = 1 so that apply skips its per-track LFO part. `modules:compat` finds no other module or base hook on it. +- **Tested image.** No card builder is left in Modwerk, so the native image of this module alone with every stock effect kept was made the way the retired `export-composition-proofs.py --vendored-sdk --static-stock --select direct-jump-kyoti:true` made it: octabam's `build_bus.py` from a private copy of this checkout's `sdk/octabam` (modules mirrored in), in the `modwerk-source-tools` container, with a remix of the stock FX1 and FX2 lists plus DIRECT_JUMP_KYOTI. The same driver rebuilt 0.1.2's tested image byte for byte (`4453c368…`). MAIN OS SHA-256 `3c7b1419bc8c567dc4d09b6a675c36e5fb7e7fa3edfc231ebd43c368b7ebbd62` (1,115,417 bytes), built from the source of commit `2cc2669bf` (before it and again from its archive; `c62ee5a6f` changes no file the build reads). The unit lands in the DRAM reserve at `0x40a955e0`, the Plays-Free fix's at `0x40a964d4`. +- **Emulator.** `ot_emu` built from this checkout's `sdk/octabam/tools/emu/ot_emu` (with the `upstream:tools` checkout's vendored cores), SHA-256 `87d73ccf8519e0ff8746ddf570fceb00f1ea305284c05379dcfe54a1d1954de8`. +- **The gate.** `verify.py` (below), extended for 0.2.0: part 1 checks the fifth guard and the `jsr` to `dj_lfoq`; every jump of part 4 now also compares the trig-condition state (each track's A:B pass counter and the FILL and PRE latches) with the reference run, starting both from stock's STOP reset; part 4 adds a cue in the outgoing pattern's last step and a latched [FILL]; parts 7 and 8 are new. Result on the tested image: **all 60 checks passed** (about 13 minutes). + - Part 4: every jump now lands at tick 47 (cued at 41; V7.1's tick before the step boundary, so the new pattern's first step fires on the boundary at 48), the cue in the last step (tick 92) at 95, and from the tick after the landing to tick 300 the sequencer state and the trig-condition state equal the reference run on every tick (A:B counters up to 15 in the PER TRACK case). A latched [FILL] stays latched across the jump, on the same ticks as in the reference (a stock switch clears it); no jump calls the note-off when nothing is silenced. + - Part 7, each track's Part at its first sounding trig: A02 on Part 2 with sample trigs written into it in RAM (T1 step 5, T2 step 10, T4 step 8, T5 step 13), LFO AUTO CHANGE on. Each of those tracks was handed to stock's per-track Part apply (`0x40001f18`, bank A, Part 2) exactly once, on the tick its trig's step started (T2 at 54, T5 at 72, and T1 at 120 and T4 at 138, whose steps the landing had passed, so their trigs came round on the next pass), the other four audio tracks and all eight MIDI tracks on the boundary tick 48; the switch's light Part apply skipped its per-track part once (`dj_lfoq`). With LFO AUTO CHANGE off the same jump deferred nothing and the light apply ran stock. + - Part 8, SILENCE TRACKS: SILENCE TRACKS on (`0x8000004f`), T3 and T7 START SILENT OFF, the other six at the default: the unit called stock's note-off for T1, T2, T4, T5, T6 and T8 once each, on tick 48, the tick after the landing, and for nothing else. +- **USB package.** `public/octatrack-modules/direct-jump-kyoti/0.2.0-experimental.mwrm`, SHA-256 `3185b05c49a07e36baf30cf854c4077d78b3beed7300d347f86f9b475666078e` (4,374 bytes, ABI 7, module `075d79a3`, title DirectJmp Kyoti), six stock-code sites (the four detours of 0.1.x, the new `0x40009ebe` and the pointer), each named by the SHA-256 of the stock bytes. Built from commit `c62ee5a6f` with `scripts/build-modules-isolated.sh` (the `modwerk-source-tools` image), imported with `modules:import --development`, and `octatrack:module-packages` with the stock scan: the longest run of the package also found in the stock OS has 11 counted bytes (the limit is 12), and `check_stock_free.py` finds no 16-byte run. `octatrack:module-packages -- --check` reproduces it. The 0.1.2 package stays published. +- **Performance** (`evidence/performance.json`, `perf:audit -- check` passes; ot_emu, not chip timing). Authored instructions of `dj_land` per tick, the stock routines it calls excluded: OFF 30, ON idle 45; up to 1,898 a tick while tracks wait for their first trig (16 tracks scanned); an ordinary landing tick 4,237; the tick after it with SILENCE TRACKS on and every track published 4,843 (13,195 with the stock note-offs and Part applies); the dearest, 9,082 (17,229 with the stock calls), a cue that lands on the tick it arms and first publishes 16 waiting tracks (eight MIDI Part copies, every MIDI LFO on a designer wave). At 16 cycles an instruction: 145,312 against the next tick's deadline of 2,200,000 at 300 BPM. A mechanical static bound over every routine `dj_land` can reach, loops at their caps: 40,547 instructions (648,752 cycles). Under a 15 s MIDI flood (1,000 messages a second, clock at 250 BPM, a jump every second): longest frame interrupt 155.9 µs against the original OS's 155.7 µs, idle 54.56 % against 54.87 %, every message reached its handler, no hang. The per-track publish adds `TRK_APPLY` calls (stock) to the tick that publishes; `dj_lfoq` adds 7 instructions to the frame interrupt's light Part apply. +- **Memory.** 3,826 bytes in the DRAM reserve (code, the two toast strings and 172 bytes of state) and the fix's 62: 3,888 bytes; five six-byte detours and the four-byte pointer: 34 bytes of stock writes. 3,922 bytes in all. No DSP memory, no heap, no saved data. +- **Captures.** The three screens, taken again on the tested image with the same panel plan, are byte-identical to 0.1.2's (`media/capture.json`). +- **Hardware.** Not yet run on a unit. A hardware test image of the tested native build (MAIN OS `3c7b1419…`, version string MW_DJK020) is with the author for his MKI; his results go into [evidence/hardware.md](evidence/hardware.md). The author's own results of 15 November 2026 are for his builds, not this one: his standalone image `140C_KDJ7` (mainos `7c6131e7…`) ended the SILENCE TRACKS pop; his KYOTI V1.8C image (the same Direct Jump code beside his Clyps module, flashed as `KY+CL DJC9`) passed his walk-through of landings at other lengths and scales, a cue in the last step, trig conditions across a jump and each track's Part with LFO AUTO CHANGE on. +- **Not tested.** On any unit: this build, the USB package (the author has no beta access to install it), an MKII; listening for the release and LFO behaviour; external MIDI gear; the arranger and chains; beside Clyps-like modules (none in Modwerk). + ## The full name again (29 October 2026, no version change) diff --git a/sdk/octatrack/modules/direct-jump-kyoti/evidence/hardware.md b/sdk/octatrack/modules/direct-jump-kyoti/evidence/hardware.md index 59d503e055..3aa62f11a5 100644 --- a/sdk/octatrack/modules/direct-jump-kyoti/evidence/hardware.md +++ b/sdk/octatrack/modules/direct-jump-kyoti/evidence/hardware.md @@ -1,5 +1,13 @@ # Direct Jump Kyoti: hardware record +## 0.2.0-experimental (pending) + +Not run on a unit yet. The author has a hardware test image of the tested native build for his MKI: this module alone with every stock effect kept, MAIN OS SHA-256 `3c7b1419bc8c567dc4d09b6a675c36e5fb7e7fa3edfc231ebd43c368b7ebbd62`, version string MW_DJK020, built from this branch's source (TESTING.md). His results, with the date, the card `.bin` he flashed and what he tried, go here; until then nothing in this file is about 0.2.0. + +The checks asked for: the toggle and its toast; OFF after a power-on; a jump into a pattern on another Part; jumps between patterns of other lengths and scales (PER TRACK); a cue in the playing pattern's last step; 1:2 trig conditions across a jump, with [FILL] latched and a PRE trig after it; LFO AUTO CHANGE on with a sample ringing from the outgoing pattern; SILENCE TRACKS on (no pop); a Plays Free MIDI track in PER TRACK mode; Direct Jump off behaving as stock. The USB package `3185b05c…` cannot be installed on his unit (no beta access), so it is not part of this run. + +His own builds of the same Direct Jump code (not Modwerk builds), 15 November 2026: the standalone image `140C_KDJ7` (mainos `7c6131e7…`) ended the SILENCE TRACKS pop at a Part-changing jump; KYOTI V1.8C (beside his Clyps module) passed landings at other lengths and scales, a cue in the last step, trig conditions across a jump and each track's Part with LFO AUTO CHANGE on. + ## 0.1.2-experimental (25 October 2026) The same unit, base and kept set as the 0.1.1 run below, the same day, at the owner's request; no power cycle, no flash, nothing saved, the kept set put back. diff --git a/sdk/octatrack/modules/direct-jump-kyoti/octamod.module.json b/sdk/octatrack/modules/direct-jump-kyoti/octamod.module.json index 7f80a6901a..0941aa25ef 100644 --- a/sdk/octatrack/modules/direct-jump-kyoti/octamod.module.json +++ b/sdk/octatrack/modules/direct-jump-kyoti/octamod.module.json @@ -87,31 +87,31 @@ ] }, "resources": { - "recorded": "25 October 2026; source assembly, the image gate and the ColdFire port", + "recorded": "16 November 2026; source assembly, the native image of this module alone and the ColdFire port", "storage": { "label": "DRAM code and detours", - "display": "2,078 B code and state + four 6 B detours + one 4 B pointer", - "value": 2106, + "display": "3,888 B code and state + five 6 B detours + one 4 B pointer", + "value": 3922, "unit": "bytes", "method": "static", - "conditions": "Two linked units in the DRAM reserve: Direct Jump's 2,016 bytes (code, two toast strings and 62 bytes of state) and the MIDI Plays-Free fix's 62 bytes of code; four six-byte detours over stock instructions and the [PTN]-layer YES press pointer. The USB package carries the units as 2,080 bytes (aligned). No DSP memory, no saved data.", + "conditions": "Two linked units in the DRAM reserve: Direct Jump's 3,826 bytes (code, two toast strings and 172 bytes of state) and the MIDI Plays-Free fix's 62 bytes of code; five six-byte detours over stock instructions and the [PTN]-layer YES press pointer. The USB package carries the units aligned, 4,374 bytes in all. No DSP memory, no saved data.", "source": "TESTING.md" }, "processing": { "label": "ColdFire, per sequencer tick", - "display": "18 instr. a tick OFF, ~35 ON; at most 2,946 on a landing tick", - "value": 2946, + "display": "30 instr. a tick OFF, 45 ON; at most 9,082 on a landing tick", + "value": 9082, "unit": "instructions/event", "method": "emulator", - "conditions": "Authored instructions of the tick hook under ot_emu, worst at a cue that lands on its arming tick; the stock routines a landing calls (Program Change, three kernel posts, the trig-condition reset) add up to about 220. The tick interrupt runs at level 3, below the DSP frame interrupt. Not chip timing.", + "conditions": "Authored instructions of the tick hook under ot_emu, worst at a cue that lands on its arming tick while all 16 tracks still wait for their first trig after the previous jump; the stock routines a landing calls (Program Change, the kernel posts, the per-track Part apply, the note-off) bring it to 17,229. While tracks wait for their first trig, up to 1,898 a tick. The tick interrupt runs at level 3, below the DSP frame interrupt. Not chip timing.", "source": "TESTING.md" }, "impact": { - "conditions": "A jump to a pattern on another Part while playing: the landing tick, the dearest event. Between jumps, a short counter on every sequencer tick.", + "conditions": "A jump to a pattern on another Part while playing, with LFO AUTO CHANGE and SILENCE TRACKS on: the landing tick and the tick after it, the dearest events. Between jumps, a short counter on every sequencer tick, and while tracks wait for their first trig in the new pattern a scan of the 16 tracks.", "cpu": { "level": "minimal", "basis": "measured-comparison", - "rationale": "18 executed instructions a sequencer tick while OFF and about 35 while ON; at most 2,946 authored (3,166 with the stock routines it calls) on the tick a jump lands (ot_emu). The tick interrupt runs at level 3, below the level-5 DSP frame interrupt. Under a 62 s MIDI flood with a jump every second, the longest frame interrupt was the original OS's (167.3 us in the port's time) and idle 0.36 points lower. Time on the unit is not measured.", + "rationale": "30 executed instructions a sequencer tick while OFF and 45 while ON; up to 1,898 a tick while tracks wait for their first trig; at most 9,082 authored (17,229 with the stock routines it calls) on the tick a jump lands (ot_emu). The tick interrupt runs at level 3, below the level-5 DSP frame interrupt. Under a 15 s MIDI flood with a jump every second, the longest frame interrupt was 0.2 us longer than the original OS's (155.9 us in the port's time) and idle 0.31 points lower. Time on the unit is not measured.", "source": "TESTING.md" }, "dsp": { @@ -123,16 +123,16 @@ "memory": { "level": "minimal", "basis": "measured-comparison", - "rationale": "2,078 bytes of ColdFire code and state in the DRAM reserve (62 bytes of state) and 28 bytes of stock writes; no DSP memory and no saved data.", + "rationale": "3,888 bytes of ColdFire code and state in the DRAM reserve (172 bytes of state) and 34 bytes of stock writes; no DSP memory and no saved data.", "source": "TESTING.md" } } }, "tests": { "report": "TESTING.md", - "summary": "On the owner's MKII over USB (25 Oct 2026), on the published beta base 109f23bd: the 0.1.2 package (listed as DirectJmp Kyoti) installed and kept beside four other modules as a tester's sync does it, self-test passed (5/5 intact), removed, and the restored set self-tested again. 0.1.0's run on a development twin (24 Oct 2026) drove the toggle and clock-locked jumps with the same Direct Jump unit. Under the ColdFire port (verify.py, 39 checks): OFF identical to the original OS through a pattern change; three jumps (16 steps; 7 steps on Part 2; PER TRACK lengths and scales) whose sequencer state equals a reference run of the incoming pattern since START on every tick after the landing; and the MIDI Plays-Free stall, which the original OS shows and the module fixes.", - "hardwareStatus": "reported", - "evidenceRevision": "cf95656dbc0e386b4fda769e04cc18eb2a5d3364", + "summary": "0.2.0 has not run on a unit; its native image of this module alone waits for the author's MKI run. Under the ColdFire port (verify.py, 60 checks, all passed on that image): OFF identical to the original OS through a pattern change; four jumps (16 steps with [FILL] latched; 7 steps on Part 2; PER TRACK lengths and scales; a cue in the last step) whose sequencer state and trig-condition state equal a reference run of the incoming pattern since START on every tick after the landing; each track's Part handed to the engine at its first sounding trig with LFO AUTO CHANGE on; the tracks SILENCE TRACKS silences released with stock's note-off the tick after the landing; and the MIDI Plays-Free stall, which the original OS shows and the module fixes. The author tested the same Direct Jump code on his MKI in his own builds on 15 November 2026; the 0.1.x USB package ran on the owner's MKII in October 2026.", + "hardwareStatus": "untested", + "evidenceRevision": "c62ee5a6f507d59789f17ce244fdffc343511a20", "gates": [ "modules/direct-jump-kyoti/verify.py" ], @@ -153,24 +153,24 @@ "screenshotStyle": "black-and-white" }, "qualification": { - "moduleVersion": "0.1.2-experimental", - "sourceSha256": "a692cb9858bc80acb561de3a9d13e30523a4b6921c834de9335485cbf38eecf8", - "imageSha256": "89a38e18728bb2039a0f5e3f39305fcb7be75e0db260acd6b33bd46d7e281cef", + "moduleVersion": "0.2.0-experimental", + "sourceSha256": "d57821657737c61dbe15c3962a48278fadb17ec076de048e0c91ea1aec77b402", + "imageSha256": "3c7b1419bc8c567dc4d09b6a675c36e5fb7e7fa3edfc231ebd43c368b7ebbd62", "cycles": [ { "processor": "coldfire", - "worstCase": 47136, - "maxConfiguration": 47136, + "worstCase": 145312, + "maxConfiguration": 145312, "maxInstances": 1, "budget": 2200000, "unit": "cycles/event", "method": "emulator", "conditions": { - "parameterExtremes": "OFF, ON while idle, the tick that arms a jump and the landing tick; 16-step patterns and a PER TRACK pattern with tracks at 2x, 3/2x, 1x, 3/4x, 1/2x, 1/4x and 1/8x (the largest common step, 48 clock ticks).", + "parameterExtremes": "OFF, ON while idle, the tick that arms a jump, the landing tick and the tick after it; 16-step and 7-step (Part 2) patterns and a PER TRACK pattern with tracks from 2x to 1/8x; LFO AUTO CHANGE and SILENCE TRACKS on, all 16 tracks waiting for a trig, every MIDI LFO on a designer wave.", "parameterModulation": "Not applicable: one ON/OFF word toggled by a key gesture; no knob, lock, LFO or scene reaches it.", - "modeSwitching": "Toggled ON and OFF while stopped and while playing; cues, re-cues inside one gesture and jumps back to the previous pattern.", + "modeSwitching": "Toggled ON and OFF while stopped and while playing; cues at the six phases of a step, re-jumps while every track still waits for its first trig, and jumps back to the previous pattern.", "maxLoad": "One instance per unit. Runs once per sequencer clock tick in the tick interrupt (level 3; its ICR read 3 in the port), below the level-5 DSP frame interrupt, which preempts it; its deadline is the next tick: 8.33 ms at the top tempo of 300 BPM (2,200,000 cycles at 264 MHz).", - "inputConditions": "Authored instructions of dj_land per tick under ot_emu (PC watches on its entry and return and on both sides of each stock call), priced at 16 cycles each: at most 2,946 (47,136 cycles), on a cue that lands on its arming tick; 3,166 with the stock routines it calls (Program Change, the kernel post, the trig-condition reset), which are stock cost. Static bound from the source: 5,700 (91,200). Not chip timing." + "inputConditions": "Authored instructions of dj_land per tick under ot_emu (PC watches on its entry and the hook's return, on each stock routine it calls and the unit's return site after it, and on the frame interrupt, whose instructions are removed when it preempts the tick), priced at 16 cycles each: at most 9,082 (145,312 cycles), on a cue that lands on its arming tick and first publishes 16 waiting tracks; 17,229 with the stock routines it calls, which are stock cost. Static bound from the source, every reachable routine and loop at its cap: 40,547 (648,752). Not chip timing." }, "report": "TESTING.md" } @@ -178,11 +178,11 @@ "memory": { "regions": [ { - "name": "ColdFire code, two toast strings and 62 bytes of state (Direct Jump's linked unit, DRAM)", + "name": "ColdFire code, two toast strings and 172 bytes of state (Direct Jump's linked unit, DRAM)", "space": "sdram", - "words": 2016, + "words": 3826, "wordBits": 8, - "bytes": 2016, + "bytes": 3826, "scope": "shared" }, { @@ -194,19 +194,19 @@ "scope": "shared" }, { - "name": "Four six-byte detours and the four-byte [PTN]-layer YES pointer, written over stock in place", + "name": "Five six-byte detours and the four-byte [PTN]-layer YES pointer, written over stock in place", "space": "cpu-flash", - "words": 28, + "words": 34, "wordBits": 8, - "bytes": 28, + "bytes": 34, "scope": "shared" } ], "perInstanceBytes": 0, - "sharedBytes": 2106, + "sharedBytes": 3922, "maxInstances": 1, - "totalBytes": 2106, - "conditions": "From the two linked units (2,016 and 62 bytes of code and data, no bss; the USB package carries the same bytes, 2,080 aligned, with 18 relocations) and the five stock writes. No DSP memory, no heap, no saved data.", + "totalBytes": 3922, + "conditions": "From the two linked units (3,826 and 62 bytes of code and data, no bss; the USB package carries the same bytes aligned) and the six stock writes. No DSP memory, no heap, no saved data.", "report": "TESTING.md" }, "hardware": { @@ -262,9 +262,9 @@ "page": "Main screen with the notification", "shows": "location-and-controls", "firmware": "1.40C", - "moduleVersion": "0.1.2-experimental", - "imageSha256": "4453c3684fd72b242bbf9b4abef5b53a344364274391352266b4d81919677768", - "setup": "Headless ot_emu; MKII panel; 128×64 LCD at integer scale 6; DSP cores running; empty scratch card, its missing-project prompts dismissed with three NO presses; native initialized state, no saved project. Static native build of this module alone with every stock effect kept (MAIN OS 4453c368…)." + "moduleVersion": "0.2.0-experimental", + "imageSha256": "3c7b1419bc8c567dc4d09b6a675c36e5fb7e7fa3edfc231ebd43c368b7ebbd62", + "setup": "Headless ot_emu; MKII panel; 128×64 LCD at integer scale 6; DSP cores running; empty scratch card, its missing-project prompts dismissed with three NO presses; native initialized state, no saved project. Static native build of this module alone with every stock effect kept (MAIN OS 3c7b1419…)." } }, { @@ -279,9 +279,9 @@ "page": "Main screen while playing", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.1.2-experimental", - "imageSha256": "4453c3684fd72b242bbf9b4abef5b53a344364274391352266b4d81919677768", - "setup": "Headless ot_emu; MKII panel; 128×64 LCD at integer scale 6; DSP cores running; empty scratch card, its missing-project prompts dismissed with three NO presses; native initialized state, no saved project. Static native build of this module alone with every stock effect kept (MAIN OS 4453c368…)." + "moduleVersion": "0.2.0-experimental", + "imageSha256": "3c7b1419bc8c567dc4d09b6a675c36e5fb7e7fa3edfc231ebd43c368b7ebbd62", + "setup": "Headless ot_emu; MKII panel; 128×64 LCD at integer scale 6; DSP cores running; empty scratch card, its missing-project prompts dismissed with three NO presses; native initialized state, no saved project. Static native build of this module alone with every stock effect kept (MAIN OS 3c7b1419…)." } }, { @@ -296,9 +296,9 @@ "page": "Main screen with the notification", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.1.2-experimental", - "imageSha256": "4453c3684fd72b242bbf9b4abef5b53a344364274391352266b4d81919677768", - "setup": "Headless ot_emu; MKII panel; 128×64 LCD at integer scale 6; DSP cores running; empty scratch card, its missing-project prompts dismissed with three NO presses; native initialized state, no saved project. Static native build of this module alone with every stock effect kept (MAIN OS 4453c368…)." + "moduleVersion": "0.2.0-experimental", + "imageSha256": "3c7b1419bc8c567dc4d09b6a675c36e5fb7e7fa3edfc231ebd43c368b7ebbd62", + "setup": "Headless ot_emu; MKII panel; 128×64 LCD at integer scale 6; DSP cores running; empty scratch card, its missing-project prompts dismissed with three NO presses; native initialized state, no saved project. Static native build of this module alone with every stock effect kept (MAIN OS 3c7b1419…)." } } ] From 118d6ac5f9708d2d07819eae70fdd0762e81495e Mon Sep 17 00:00:00 2001 From: Zac-Kyoti <273702472+Zac-Kyoti@users.noreply.github.com> Date: Mon, 16 Nov 2026 11:25:32 -0800 Subject: [PATCH 018/415] Direct Jump Kyoti 0.2.0: drop the 0.1.2 USB package A module update deletes its previous package (scripts/machine-modules.mjs): no package row names 0.1.2-experimental.mwrm any more. Co-Authored-By: Claude Opus 5.5 --- .../direct-jump-kyoti/0.1.2-experimental.mwrm | Bin 2462 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 public/octatrack-modules/direct-jump-kyoti/0.1.2-experimental.mwrm diff --git a/public/octatrack-modules/direct-jump-kyoti/0.1.2-experimental.mwrm b/public/octatrack-modules/direct-jump-kyoti/0.1.2-experimental.mwrm deleted file mode 100644 index 9d9352d1f7fb8abb156026d014994a340fe6605d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2462 zcmbUjZERCj^t{*C*Vj>+S|)U3&S$q&z>m#2aWsf+$4YsWN9ja}(WHg(-k5AW8>-!$ z+HPxyIspkkkSLLQZ#xGGzkJEL_uTV+ z&OPV0OIHS$f&uUoM6%*%Eo`7SJka@45x;C(xGu7G%|@wR6PI*u*tiaWAxw=)zX5^* zaKAXuJ9UPqIgWThI^dmJ{wrc$#LV}PA~s)i8oEp3sKT&xt;zrxhTP*&FU3_3_X=MO z7S;&z0hfMoIIu-ysxoMCfgF{i3l|5Q8t)OM6-xu+G8y2Cv)2pD&gVybr=G}TGza3a zc32fW2hjT75FezwbkG1QK;Hx(_Zx(0JFz352Z6{C%;!QQT!<4yH$$^=}P~EJU9tY=`U(&VPLw^N-KKMD2=~dUdvA- z)p!XdyaoFv$mi9uH1Tyr2^9U1(_zJfHg2JO$R8_8n2|P<;)hkp@6~{69I1gKcDM$x zuEukHfh{4(4^S@Vp#Od{2mP07eSuzxh2lpk{z}nG=0AH!C+$fz&klfrqSVm{SV^Rr zFzD(Kc%EyHo#oHTc~k>t|*`x<@q!Q>GM(#oAAYuwyQZ zrcm`lG_TtEU}D;Pw7LnDW)vX|P>C8P8bjk9^kXk9J72J%^vh9d>BzJUM)e-W4^#Zu zga=Y(ilYZoGiaCtJ9~pkcMiQyZzSv7MdRH1#p7J8 z+k!r4ih92rU?Y@PMA-d39cDZDJr;)e-yW}Y81DJz5&VHq)3WfQtT<`02O}TJU&bheyN~|YrUTLYb0rlBNeXa{b zen(9AaP!T`HI`!pA6Jcdv*U4mQ7qB!D!h@h?AfeOy@vN-zB0iq)~q} z(cdk00g1^LQl=Aam?Z#!T7vOe{6i|+#Zdb#Qc~f0WZ%|+?@hLC4~;w9W}o1y0*74p ziy@xumR2hD`eZyqfh*&At=<>Q=W*Ifnx9{V_39EVbq%1Flc`tDWNsBRt<^G>*O*_1 zHpNe-f=SJiPAVtmDE1fWI97nGb($Q-ij^D;h@_4yD(gsJN(QBxp6{{ZS>yM|*RT=R zQCk6&+8hHL(nAh<3SLzv(0~%Ykq$NnRqtc>zAbWoodEQO9-gCHG|rq^JkI>EB!~UA zpc^zHo!Vd}_Kf9zUI0=(2!u*SetDeKLP(Q|AynU=jTZ%wW&@`R*v)seLTEaT*fbe& zh_lWHhQ`fTJDHXcSBikRtZ0&V`$k=tEbADGq z?`Ky*FohLNDUffe`T#RHBu5=i##Wd=ru54B+u9q9%h5TsyU65~ag8}|_NN_-aQ$at z_-0D$qo)DF8Gku!qtY#IJheFpZC!@&A06w47Vi{ zL%O%!R=jKM3DG^;@xs)RJ{awxcb*g7$1?>!b%`ATI}rvE#&8Jm ze+J`0kPuEHAdPK7&=9ua4{s^LX#ftz^(PR%#`LzkO0JLaz%$b8d%o~Jy`p9$xmsg( z|33WoUy*BDjoDlj0@?o5u6t$ty@wRAt`d6%k#E1-`q+kn8-p|7>OI@Ouj#qD{$DnE z+T&iy^v&PdQx#{3yzU~(bM-bNzkjxJ(}%B&zA)80?W?+vpBaNoXOgF{J3hCz>AEQ~ zqjyZsVPsa6H@t23p;*OUSM{sjjFyqf?3 From dbb2f7604dc214c162fb9fc092972dab6aa017a4 Mon Sep 17 00:00:00 2001 From: Zac-Kyoti <273702472+Zac-Kyoti@users.noreply.github.com> Date: Mon, 16 Nov 2026 11:25:50 -0800 Subject: [PATCH 019/415] Direct Jump Kyoti 0.2.0: TESTING says the 0.1.2 package is removed Co-Authored-By: Claude Opus 5.5 --- sdk/octatrack/modules/direct-jump-kyoti/TESTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/octatrack/modules/direct-jump-kyoti/TESTING.md b/sdk/octatrack/modules/direct-jump-kyoti/TESTING.md index 78781dc4dc..a1a91fa733 100644 --- a/sdk/octatrack/modules/direct-jump-kyoti/TESTING.md +++ b/sdk/octatrack/modules/direct-jump-kyoti/TESTING.md @@ -13,7 +13,7 @@ Version `0.2.0-experimental`, recorded 16 November 2026. Its changes and results - Part 4: every jump now lands at tick 47 (cued at 41; V7.1's tick before the step boundary, so the new pattern's first step fires on the boundary at 48), the cue in the last step (tick 92) at 95, and from the tick after the landing to tick 300 the sequencer state and the trig-condition state equal the reference run on every tick (A:B counters up to 15 in the PER TRACK case). A latched [FILL] stays latched across the jump, on the same ticks as in the reference (a stock switch clears it); no jump calls the note-off when nothing is silenced. - Part 7, each track's Part at its first sounding trig: A02 on Part 2 with sample trigs written into it in RAM (T1 step 5, T2 step 10, T4 step 8, T5 step 13), LFO AUTO CHANGE on. Each of those tracks was handed to stock's per-track Part apply (`0x40001f18`, bank A, Part 2) exactly once, on the tick its trig's step started (T2 at 54, T5 at 72, and T1 at 120 and T4 at 138, whose steps the landing had passed, so their trigs came round on the next pass), the other four audio tracks and all eight MIDI tracks on the boundary tick 48; the switch's light Part apply skipped its per-track part once (`dj_lfoq`). With LFO AUTO CHANGE off the same jump deferred nothing and the light apply ran stock. - Part 8, SILENCE TRACKS: SILENCE TRACKS on (`0x8000004f`), T3 and T7 START SILENT OFF, the other six at the default: the unit called stock's note-off for T1, T2, T4, T5, T6 and T8 once each, on tick 48, the tick after the landing, and for nothing else. -- **USB package.** `public/octatrack-modules/direct-jump-kyoti/0.2.0-experimental.mwrm`, SHA-256 `3185b05c49a07e36baf30cf854c4077d78b3beed7300d347f86f9b475666078e` (4,374 bytes, ABI 7, module `075d79a3`, title DirectJmp Kyoti), six stock-code sites (the four detours of 0.1.x, the new `0x40009ebe` and the pointer), each named by the SHA-256 of the stock bytes. Built from commit `c62ee5a6f` with `scripts/build-modules-isolated.sh` (the `modwerk-source-tools` image), imported with `modules:import --development`, and `octatrack:module-packages` with the stock scan: the longest run of the package also found in the stock OS has 11 counted bytes (the limit is 12), and `check_stock_free.py` finds no 16-byte run. `octatrack:module-packages -- --check` reproduces it. The 0.1.2 package stays published. +- **USB package.** `public/octatrack-modules/direct-jump-kyoti/0.2.0-experimental.mwrm`, SHA-256 `3185b05c49a07e36baf30cf854c4077d78b3beed7300d347f86f9b475666078e` (4,374 bytes, ABI 7, module `075d79a3`, title DirectJmp Kyoti), six stock-code sites (the four detours of 0.1.x, the new `0x40009ebe` and the pointer), each named by the SHA-256 of the stock bytes. Built from commit `c62ee5a6f` with `scripts/build-modules-isolated.sh` (the `modwerk-source-tools` image), imported with `modules:import --development`, and `octatrack:module-packages` with the stock scan: the longest run of the package also found in the stock OS has 11 counted bytes (the limit is 12), and `check_stock_free.py` finds no 16-byte run. `octatrack:module-packages -- --check` reproduces it. The 0.1.2 package is removed, as every module update removes its previous one. - **Performance** (`evidence/performance.json`, `perf:audit -- check` passes; ot_emu, not chip timing). Authored instructions of `dj_land` per tick, the stock routines it calls excluded: OFF 30, ON idle 45; up to 1,898 a tick while tracks wait for their first trig (16 tracks scanned); an ordinary landing tick 4,237; the tick after it with SILENCE TRACKS on and every track published 4,843 (13,195 with the stock note-offs and Part applies); the dearest, 9,082 (17,229 with the stock calls), a cue that lands on the tick it arms and first publishes 16 waiting tracks (eight MIDI Part copies, every MIDI LFO on a designer wave). At 16 cycles an instruction: 145,312 against the next tick's deadline of 2,200,000 at 300 BPM. A mechanical static bound over every routine `dj_land` can reach, loops at their caps: 40,547 instructions (648,752 cycles). Under a 15 s MIDI flood (1,000 messages a second, clock at 250 BPM, a jump every second): longest frame interrupt 155.9 µs against the original OS's 155.7 µs, idle 54.56 % against 54.87 %, every message reached its handler, no hang. The per-track publish adds `TRK_APPLY` calls (stock) to the tick that publishes; `dj_lfoq` adds 7 instructions to the frame interrupt's light Part apply. - **Memory.** 3,826 bytes in the DRAM reserve (code, the two toast strings and 172 bytes of state) and the fix's 62: 3,888 bytes; five six-byte detours and the four-byte pointer: 34 bytes of stock writes. 3,922 bytes in all. No DSP memory, no heap, no saved data. - **Captures.** The three screens, taken again on the tested image with the same panel plan, are byte-identical to 0.1.2's (`media/capture.json`). From 393a7b7fd6067e4575f55ade2e4e33126c81accd Mon Sep 17 00:00:00 2001 From: jonathanwardle1992-beep Date: Mon, 16 Nov 2026 23:11:02 +0000 Subject: [PATCH 020/415] Record the 16 November Screen Off trial on the connected unit. Co-authored-by: Cursor --- sdk/drafts/screen-off/TESTING.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sdk/drafts/screen-off/TESTING.md b/sdk/drafts/screen-off/TESTING.md index 9fbf24c122..20f170dc52 100644 --- a/sdk/drafts/screen-off/TESTING.md +++ b/sdk/drafts/screen-off/TESTING.md @@ -30,9 +30,11 @@ A second package, SHA-256 `14aea62fbfef825e2ea23cc4baf6e01a2f2b0bf44b215db28748c The same package was tried again without `--accept`, from 21:08:12. The slot was running. At 21:08:33 the diagnostic left `0x0` and read `0x3`. The last line in the log was `0x40` at 21:12:07: 32 toggles, blank off. The person at the unit reported that hold UP, tap NO blanks the screen and the same chord restores it. The log never printed `rolled back`. The link then dropped. A later `npm run device -- status` answered `normal, generation 0`, with no slot running. No SAVE, no flash, no power cycle, no Keep. +16 November 2026. The same package, SHA-256 `14aea62fbfef825e2ea23cc4baf6e01a2f2b0bf44b215db28748c1a546aeae0c` (352 bytes), was tried again without `--accept` on `OCTATRACK 1.40C`, base `3ee0515a0f474149…`. The slot was running. The tick word is `(toggles << 1) | blank`. It stayed `0x0` until 25 s, then read `0x3` (one toggle, blank on). The last line before the trial process was killed was `0x68` at 125 s: 52 toggles, blank off. A following `status` still showed the trial, value 104 (`0x68`). `npm run device -- recover` then printed `recovered from trial` and `normal, generation 2, active 3ee0515a0f474149…`. The inventory after that named the same modules as before the trial, including Tiempos. The person at the unit reported that it runs great. No SAVE, no flash, no power cycle, no Keep. The trial process itself did not print `rolled back`. + ## Not tested -- An MKI, and a card install. The MKII chord above is a report from the person at the unit, on the RAM trial of package `14aea62fbfef825e2ea23cc4baf6e01a2f2b0bf44b215db28748c1a546aeae0c`. +- An MKI, and a card install. The MKII chord above is a report from the person at the unit, on 7 November and again on 16 November, both RAM trials of package `14aea62fbfef825e2ea23cc4baf6e01a2f2b0bf44b215db28748c1a546aeae0c`. - The package size, the executed instructions of the chord, and the cost of clearing the frame. - The stock screen saver while this blank is on, and while a pattern plays. - Whether the MKII panel can be powered down as well as painted black. From c9d7cabecf4a6c3bbecdb11fe102d28e0f5e8f09 Mon Sep 17 00:00:00 2001 From: jonathanwardle1992-beep Date: Mon, 16 Nov 2026 23:23:59 +0000 Subject: [PATCH 021/415] record the 16 November menu checks for Screen Off. Co-authored-by: Cursor --- sdk/drafts/screen-off/TESTING.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdk/drafts/screen-off/TESTING.md b/sdk/drafts/screen-off/TESTING.md index 20f170dc52..1f18bf351c 100644 --- a/sdk/drafts/screen-off/TESTING.md +++ b/sdk/drafts/screen-off/TESTING.md @@ -32,6 +32,8 @@ The same package was tried again without `--accept`, from 21:08:12. The slot was 16 November 2026. The same package, SHA-256 `14aea62fbfef825e2ea23cc4baf6e01a2f2b0bf44b215db28748c1a546aeae0c` (352 bytes), was tried again without `--accept` on `OCTATRACK 1.40C`, base `3ee0515a0f474149…`. The slot was running. The tick word is `(toggles << 1) | blank`. It stayed `0x0` until 25 s, then read `0x3` (one toggle, blank on). The last line before the trial process was killed was `0x68` at 125 s: 52 toggles, blank off. A following `status` still showed the trial, value 104 (`0x68`). `npm run device -- recover` then printed `recovered from trial` and `normal, generation 2, active 3ee0515a0f474149…`. The inventory after that named the same modules as before the trial, including Tiempos. The person at the unit reported that it runs great. No SAVE, no flash, no power cycle, no Keep. The trial process itself did not print `rolled back`. +16 November 2026. A later RAM trial of the same package, SHA-256 `14aea62fbfef825e2ea23cc4baf6e01a2f2b0bf44b215db28748c1a546aeae0c`, was running without `--accept` on `OCTATRACK 1.40C`, base `3ee0515a0f474149…`. It was not kept. The person at the unit reported that hold UP, tap NO works as it should in a list, the sample editor, the arranger, the Modwerk status page, and beside Tiempos. The tick word is `(toggles << 1) | blank`. The log stayed `0x0` through 30 s. The first non-zero was `0x4` at 31 s: 2 toggles, blank off. The latest line read while this note was written was `0x54` at 432 s: 42 toggles, blank off. The trial process was still running. No SAVE, no flash, no power cycle, no Keep. + ## Not tested - An MKI, and a card install. The MKII chord above is a report from the person at the unit, on 7 November and again on 16 November, both RAM trials of package `14aea62fbfef825e2ea23cc4baf6e01a2f2b0bf44b215db28748c1a546aeae0c`. @@ -39,5 +41,4 @@ The same package was tried again without `--accept`, from 21:08:12. The slot was - The stock screen saver while this blank is on, and while a pattern plays. - Whether the MKII panel can be powered down as well as painted black. - Whether the MKI backlight stays lit behind the blank glass. -- UP + NO in a list, a dialog, the sample editor and the arranger, side by side with stock. - Part save, project save and a power cycle. The blank is only a byte in the module's RAM, so a power cycle should turn the screen back on. That has not been seen. From 7595416dbe052c4184af68730f51aae747091a42 Mon Sep 17 00:00:00 2001 From: Zac-Kyoti <273702472+Zac-Kyoti@users.noreply.github.com> Date: Mon, 16 Nov 2026 18:17:12 -0800 Subject: [PATCH 022/415] Direct Jump Kyoti 0.2.0-experimental: the author's DIRECT JUMP V7.3 (Zac-Kyoti/octatrack-kyoti-fw cd788e9) V7.3 makes the last restart (PLAY, or a stock pattern change) a jump's time origin for its landing position and trig conditions. A fifth detour at 0x400a4850 (stock's switch block calling COND_RESET(-1), kind jsr) goes to dj_swres, which re-bases the jump's clock and tail-jumps COND_RESET with stock's return address and argument intact. patch_directjump_v7.s is the author's file at cd788e9 with the same six MODWERK re-encodings; V7.3's own code needed none (longest stock run of the unit 11 counted bytes, none of 16). Linked at 0x400d6d38 with -mcpu=5407 or 54455 (identical): 3,918 bytes, c8273e8f...; with the re-encodings taken back it links to the author's 3,938 bytes, 51478a67.... verify.py: part 1 checks the fifth guard and its jsr; new part 9 compares a jump after a stock change, tick by tick, with a run that changed straight to the jump's pattern (16 -> 12 -> 12 at 1x; 1x -> 2x -> 3/4x). The import record moves to sdk/imports/direct-jump-kyoti-cd788e9.json. Co-Authored-By: Claude Opus 5.5 --- ...4c.json => direct-jump-kyoti-cd788e9.json} | 52 +++++----- .../modules/direct-jump-kyoti/README.md | 22 ++--- .../modules/direct-jump-kyoti/manifest.py | 47 +++++---- .../direct-jump-kyoti/octamod.module.json | 22 ++--- .../direct-jump-kyoti/patch_directjump_v7.s | 90 ++++++++++++++--- .../direct-jump-kyoti/upstream/README.md | 32 ++++-- .../modules/direct-jump-kyoti/verify.py | 98 +++++++++++++++++-- .../module-changelogs/direct-jump-kyoti.json | 6 +- 8 files changed, 278 insertions(+), 91 deletions(-) rename sdk/imports/{direct-jump-kyoti-109f54c.json => direct-jump-kyoti-cd788e9.json} (66%) diff --git a/sdk/imports/direct-jump-kyoti-109f54c.json b/sdk/imports/direct-jump-kyoti-cd788e9.json similarity index 66% rename from sdk/imports/direct-jump-kyoti-109f54c.json rename to sdk/imports/direct-jump-kyoti-cd788e9.json index 0f1cbe12e3..5ae2e1a5fd 100644 --- a/sdk/imports/direct-jump-kyoti-109f54c.json +++ b/sdk/imports/direct-jump-kyoti-cd788e9.json @@ -1,7 +1,7 @@ { "schemaVersion": 1, "repository": "https://github.com/Zac-Kyoti/octatrack-kyoti-fw", - "revision": "109f54cd36fcd770e3409d1258254619a161b1d7", + "revision": "cd788e93c765120cd2d2feda60bafee9a02f8508", "moduleVersion": "0.2.0-experimental", "root": "sdk/octatrack/modules/direct-jump-kyoti", "modules": [ @@ -29,6 +29,12 @@ "sha256": "37edecfc18058ca757b701a5e909152025e5ceb96e33328800af3bea09dd5e94", "note": "V7.2 (0.2.0-experimental): the light Part apply's LFO AUTO CHANGE test, tst.b of one byte; a jsr to dj_lfoq, which replays it unless a jump has just deferred the per-track part." }, + { + "address": "0x400a4850", + "bytes": 6, + "sha256": "3eb71e079e73b289302dbd71e2397466226349dc505a46c2cc16a49a1595c7db", + "note": "V7.3 (0.2.0-experimental): stock's pattern switch calling COND_RESET(-1), a jsr after its pea -1; a jsr to dj_swres, which re-bases the jump's clock to this restart and tail-jumps COND_RESET (return address 0x400a4856 and the -1 left as stock's call made them)." + }, { "address": "0x4009b6f2", "bytes": 18, @@ -51,36 +57,36 @@ "Unrelated modules and author repository tooling" ], "notes": [ - "0.2.0-experimental moves the pin from the octabam wrapper (sambanks/octabam b725fb1a, author pin 329b801c) to the author's repository at 109f54c: DIRECT JUMP V7.2.2. upstream/OCTABAM_README.md and upstream/OCTABAM_LICENSE stay as imported from octabam for its integration credit.", + "0.2.0-experimental moves the pin from the octabam wrapper (sambanks/octabam b725fb1a, author pin 329b801c) to the author's repository at cd788e9: DIRECT JUMP V7.3 (prepared at 109f54c, V7.2.2; V7.3 makes the last restart, PLAY or a stock pattern change, a jump's time origin, with a fifth detour at 0x400a4850). upstream/OCTABAM_README.md and upstream/OCTABAM_LICENSE stay as imported from octabam for its integration credit.", "patch_directjump_v7.s comments describe stock routines and data by address and in assembler mnemonics, as the author wrote them; it contains no firmware bytes or hex dumps.", "The stock guard digests were computed from the author's declared expectations and matched against a local original OS 1.40C MAIN image (SHA-256 164f31224bf61181e3f50e7dec40df9afcae5b16dbf6e4c0d0cc5e986af0a84e)." ], - "status": "Owner review pending (new stock addresses: 0x40009ebe).", + "status": "Owner review pending (new stock addresses: 0x40009ebe, 0x400a4850).", "files": [ { "path": "patch_directjump_v7.s", "repository": "https://github.com/Zac-Kyoti/octatrack-kyoti-fw", - "revision": "109f54cd36fcd770e3409d1258254619a161b1d7", + "revision": "cd788e93c765120cd2d2feda60bafee9a02f8508", "sourcePath": "octabam-modules/direct-jump-kyoti/patch_directjump_v7.s", - "sourceBytes": 70793, - "sourceGitBlob": "6e85c0f59850ce9e6e95a32ae9bd6c4df2953e9a", - "sourceSha256": "6b10f15c37066dde6032310290873e285b84924f9834dbcf3941e70b63077ce7", - "vendoredSha256": "0b7bd48382fc78a0ad0e7e694f6533ef48f4f9d1724abc29aaeb54271221b2e8", + "sourceBytes": 76359, + "sourceGitBlob": "7463b27416af540833cac18197cd74daf472fbb7", + "sourceSha256": "cae97228230f43214ff3ca6ac8fb84a082397f4dec67c59ca772e56f95b4b841", + "vendoredSha256": "0df41e7c9ba5bff2b937a4cf8db316f233077b647634f5aeb6b56cf610498314", "transforms": [ - "The author's V7.2.2 with six re-encodings, each marked MODWERK, so that no 12 bytes of the USB package repeat stock code (the strict stock-free scan): the four inline kernel posts ({0x11, pattern} in dj_unhide and the landing, {0x15, bank} and {0x14, part}) go through one added helper, dj_post, which reaches KPOST through %a1 (the same calls with the same arguments in the same order, every caller inside dj_land, which saves every register); the second purge table's two addresses are loaded in the other order (a3 before a1); and the hand-off's switch time is formed as TICK_A + SCLK instead of SCLK + TICK_A (move.l #imm then add.l: the same sum, register and flags). The unit shrinks from 3,846 to 3,826 bytes; with these changes taken back it links to the author's bytes (SHA-256 688978daa1ed86c0a0874404e859ee781fbfbed7808be33c2f862beb3e373011 at 0x400d6d38, his manifest's REFERENCE)." + "The author's V7.3 with six re-encodings, each marked MODWERK, so that no 12 bytes of the USB package repeat stock code (the strict stock-free scan these were made for; the scan no longer refuses a package since base 0.7.5, #1475, and the re-encodings are kept as reviewed): the four inline kernel posts ({0x11, pattern} in dj_unhide and the landing, {0x15, bank} and {0x14, part}) go through one added helper, dj_post, which reaches KPOST through %a1 (the same calls with the same arguments in the same order, every caller inside dj_land, which saves every register); the second purge table's two addresses are loaded in the other order (a3 before a1); and the hand-off's switch time is formed as TICK_A + SCLK instead of SCLK + TICK_A (move.l #imm then add.l: the same sum, register and flags). V7.3's own additions (dj_swres, the restart frame in dj_tprime, dl_commit and dj_cond) are vendored unchanged: they add no stock run (the longest run of the unit also in the stock OS stays 11 counted bytes, none of 16). The unit is 3,918 bytes (the author's 3,938); with these changes taken back it links to the author's bytes (SHA-256 51478a6773f5b987dc98c595f55a3dd88e9de514d1cedb8fbd35cffe4755e48d at 0x400d6d38, his manifest's REFERENCE)." ] }, { "path": "manifest.py", "repository": "https://github.com/Zac-Kyoti/octatrack-kyoti-fw", - "revision": "109f54cd36fcd770e3409d1258254619a161b1d7", + "revision": "cd788e93c765120cd2d2feda60bafee9a02f8508", "sourcePath": "octabam-modules/direct-jump-kyoti/manifest.py", - "sourceBytes": 9703, - "sourceGitBlob": "5df8be89e1f9ef1398c3b2ff0a76b233011ebc61", - "sourceSha256": "b9b36248d4adb3c98210483bd4256917b5ec075b10202a1989ed519be02a69b6", - "vendoredSha256": "9e77237f2ac7f4158b51b5d9f70237617fe0429c0c9a3848adffbd76157300a9", + "sourceBytes": 11217, + "sourceGitBlob": "5277034336d232f34e55635542e07cea439b342a", + "sourceSha256": "6e5c81e0e36944536e56642c25a5f854ee9e26312cdbec3c221a964eedee0655", + "vendoredSha256": "14fef7f20657ced4e6c4f9b879992a9593a0e99000595c6005d654f7b6874321", "transforms": [ - "Rewrite the declaration for Modwerk: the same DRAM unit, four detours (the landing, the MIDI START gate, the [PTN] release and V7.2's light Part apply LFO AUTO CHANGE test at 0x40009ebe) and symbol reference, with every stock expectation an address/length/SHA-256 guard in place of the stock bytes the author's file spells out.", + "Rewrite the declaration for Modwerk: the same DRAM unit, five detours (the landing, the MIDI START gate, the [PTN] release, V7.2's light Part apply LFO AUTO CHANGE test at 0x40009ebe and V7.3's stock pattern switch COND_RESET call at 0x400a4850) and symbol reference, with every stock expectation an address/length/SHA-256 guard in place of the stock bytes the author's file spells out.", "Drop requires=(\"BATCH_BUGFIXES\",): Modwerk modules never depend on another module. The bundle was required for its MIDI_PLAYS_FREE_FIX, which this module has carried since 0.1.1-experimental as a second DRAM unit (patch_trigscale.s) and one more detour, guarded over the 18 stock bytes it redoes.", "Drop the two Keeps around the [PTN]-layer YES record (a USB package cannot carry them; the symbol reference's NULL guard still refuses a changed slot) and the conflicts with octabam's DIRECT JUMP and OCTAKIT, which Modwerk does not have.", "Add the author fields, UNIT_BYTES and Modwerk's references for the re-encoded units." @@ -89,25 +95,25 @@ { "path": "patch_trigscale.s", "repository": "https://github.com/Zac-Kyoti/octatrack-kyoti-fw", - "revision": "109f54cd36fcd770e3409d1258254619a161b1d7", + "revision": "cd788e93c765120cd2d2feda60bafee9a02f8508", "sourcePath": "octabam-modules/batch-bugfixes/patch_trigscale.s", "sourceBytes": 2684, "sourceGitBlob": "36159e8ab0467d0b00023e25c9f1aa9a088be935", "sourceSha256": "7400c42bdc56e29d51033ad75d7f98439aa97cb73e98c439e5b66f78073ee695", "vendoredSha256": "f657f576c14cf61e23cc563eab54a07ef4f9774ddfca0c8bf3286c13bb76068f", "transforms": [ - "Unchanged since 0.1.1-experimental (imported from 329b801cf90f32cbca97c6699a908908968e4df6): at 109f54c the author's file differs from that pin only in its copyright line, so the vendored copy keeps its earlier line. Its two MODWERK changes stay: the global label cave is renamed ts_cave (it links beside Direct Jump's unit), and the audio path's movea.l moves before its add.l (same d0, a0 and flags). With both taken back it links to the author's 62 bytes (SHA-256 a1eec6b67bb817cc2e063f23897377697f6057a9bf2389d5eb442813b854bba4)." + "Unchanged since 0.1.1-experimental (imported from 329b801cf90f32cbca97c6699a908908968e4df6): at cd788e9 the author's file differs from that pin only in its copyright line, so the vendored copy keeps its earlier line. Its two MODWERK changes stay: the global label cave is renamed ts_cave (it links beside Direct Jump's unit), and the audio path's movea.l moves before its add.l (same d0, a0 and flags). With both taken back it links to the author's 62 bytes (SHA-256 a1eec6b67bb817cc2e063f23897377697f6057a9bf2389d5eb442813b854bba4)." ] }, { "path": "upstream/README.md", "repository": "https://github.com/Zac-Kyoti/octatrack-kyoti-fw", - "revision": "109f54cd36fcd770e3409d1258254619a161b1d7", + "revision": "cd788e93c765120cd2d2feda60bafee9a02f8508", "sourcePath": "octabam-modules/direct-jump-kyoti/README.md", - "sourceBytes": 9031, - "sourceGitBlob": "e35d7f4d85f4c8e95e17d064c89001d1c9b5a42c", - "sourceSha256": "a50e402b4ab6ac3a1848d148756127b8f348b1f82352881cb79a98a46ee4ce6b", - "vendoredSha256": "a50e402b4ab6ac3a1848d148756127b8f348b1f82352881cb79a98a46ee4ce6b" + "sourceBytes": 10257, + "sourceGitBlob": "fa85e54097517b9b640ad07ba1248cc7b8ac8ad7", + "sourceSha256": "8580a54c9e672e707ff655a2b084cf870e4a3eb3da18b13e9ddf49d7c2730abd", + "vendoredSha256": "8580a54c9e672e707ff655a2b084cf870e4a3eb3da18b13e9ddf49d7c2730abd" }, { "path": "LICENSE", @@ -119,7 +125,7 @@ "sourceSha256": "0d3f46fdaa57dcf513b0d62975eb019334f4eb9cc8ea0b973ce191dd661741f5", "vendoredSha256": "0d3f46fdaa57dcf513b0d62975eb019334f4eb9cc8ea0b973ce191dd661741f5", "transforms": [ - "Unchanged since 0.1.0-experimental (the author's file at 329b801cf90f32cbca97c6699a908908968e4df6, byte for byte). At 109f54c only its copyright line differs (the name written Zac Kyoti); it is kept as imported so that the shared licence notice (sdk/octabam/licenses/kyoti-direct-jump.txt) stays as it is in this module update." + "Unchanged since 0.1.0-experimental (the author's file at 329b801cf90f32cbca97c6699a908908968e4df6, byte for byte). At cd788e9 only its copyright line differs (the name written Zac Kyoti); it is kept as imported so that the shared licence notice (sdk/octabam/licenses/kyoti-direct-jump.txt) stays as it is in this module update." ] }, { diff --git a/sdk/octatrack/modules/direct-jump-kyoti/README.md b/sdk/octatrack/modules/direct-jump-kyoti/README.md index 53b075bbc6..a0be12d003 100644 --- a/sdk/octatrack/modules/direct-jump-kyoti/README.md +++ b/sdk/octatrack/modules/direct-jump-kyoti/README.md @@ -2,13 +2,13 @@ ## Overview -On the stock OS a cued pattern waits for the playing one to reach its end. With Direct Jump on, it takes over on the next step instead, locked to the master clock: it starts at the step it would be on had it been playing since you pressed PLAY, whatever its length, scale or per-track settings. Trig conditions carry on as if the new pattern had played all along, each track gets its new Part settings with its own first trig, and with SILENCE TRACKS on the tracks a jump silences are released before the step instead of cut. The last MIDI Program Change sent names the pattern that plays. Direct Jump is off at every power-on, so the stock pattern change stays the default. +On the stock OS a cued pattern waits for the playing one to reach its end. With Direct Jump on, it takes over on the next step instead, locked to the master clock: it starts at the step it would be on had it been playing since you pressed PLAY, or since the last normal pattern change, whatever its length, scale or per-track settings. Trig conditions carry on as if the new pattern had played all along, each track gets its new Part settings with its own first trig, and with SILENCE TRACKS on the tracks a jump silences are released before the step instead of cut. The last MIDI Program Change sent names the pattern that plays. Direct Jump is off at every power-on, so the stock pattern change stays the default. -Version `0.2.0-experimental`, for OS 1.40C, over USB on the Modwerk base for beta testers, where the unit's module list shows it as DirectJmp Kyoti: a name there holds 15 characters, too few for Direct Jump Kyoti. This is Zac Kyoti's Direct Jump V7.2.2 from his repository (`octabam-modules/direct-jump-kyoti`, commit `109f54c`), with his fix for stock's MIDI Plays-Free trig stall built in, as in his own Direct Jump builds. Modwerk re-encodes a few of its instructions so the USB package carries no stock code; the behaviour is his. +Version `0.2.0-experimental`, for OS 1.40C, over USB on the Modwerk base for beta testers, where the unit's module list shows it as DirectJmp Kyoti: a name there holds 15 characters, too few for Direct Jump Kyoti. This is Zac Kyoti's Direct Jump V7.3 from his repository (`octabam-modules/direct-jump-kyoti`, commit `cd788e9`), with his fix for stock's MIDI Plays-Free trig stall built in, as in his own Direct Jump builds. Modwerk re-encodes a few of its instructions so the USB package carries no stock code; the behaviour is his. -**What 0.2.0 changes.** Trig conditions carry on across a jump instead of starting again (his V7.0.2). A jump lands one tick before the step it starts on, so the new pattern's first step is never late (V7.1), and a cue made in the playing pattern's last step is no longer taken by stock's own pattern change (V7.1.1). Each track's own Part settings reach the engine with that track's first sounding trig of the new pattern (V7.2). With SILENCE TRACKS on, the tracks a jump silences are released with stock's note-off just before the step (V7.2.2). +**What 0.2.0 changes.** Trig conditions carry on across a jump instead of starting again (his V7.0.2). A jump lands one tick before the step it starts on, so the new pattern's first step is never late (V7.1), and a cue made in the playing pattern's last step is no longer taken by stock's own pattern change (V7.1.1). Each track's own Part settings reach the engine with that track's first sounding trig of the new pattern (V7.2). With SILENCE TRACKS on, the tracks a jump silences are released with stock's note-off just before the step (V7.2.2). A jump counts from the last restart: after a normal pattern change (Direct Jump off, a chain or the arranger), the new pattern lands in phase with the one that started there, and its trig conditions count from there too (V7.3). -**Hardware status.** The author tested the timing, the Part change and the toggle on his MKI (27 September to 1 October 2026, his own builds), and V7.2.2's changes on 15 November 2026 in his own builds of the same Direct Jump code: the SILENCE TRACKS pop gone in his standalone image, and in his combined KYOTI V1.8C image (beside his Clyps) landings at other lengths and scales, a cue in the last step, trig conditions across a jump and each track's Part with LFO AUTO CHANGE on. Those are not Modwerk builds. **This Modwerk version has not yet run on a unit**: its native image of this module alone waits for the author's MKI run ([evidence/hardware.md](evidence/hardware.md)). Earlier versions: the 0.1.x USB package ran on the owner's MKII on 24 and 25 October 2026 (install, keep, power cycle, removal, and on a development twin the toggle and jumps between a 64- and a 16-step pattern). +**Hardware status.** The author tested the timing, the Part change and the toggle on his MKI (27 September to 1 October 2026, his own builds), V7.2.2's changes on 15 November 2026 in his own builds of the same Direct Jump code: the SILENCE TRACKS pop gone in his standalone image, and in his combined KYOTI V1.8C image (beside his Clyps) landings at other lengths and scales, a cue in the last step, trig conditions across a jump and each track's Part with LFO AUTO CHANGE on; and V7.3 on 16 November 2026 in KYOTI V1.8C: after a normal change from a 16-step A01 to a 12-step A02, a jump to a 12-step A03 lands in phase with A02, 1:2 trigs stay in step, and a Clyps load after it stays in step. Those are not Modwerk builds. **This Modwerk version has not yet run on a unit**: its native image of this module alone waits for the author's MKI run ([evidence/hardware.md](evidence/hardware.md)). Earlier versions: the 0.1.x USB package ran on the owner's MKII on 24 and 25 October 2026 (install, keep, power cycle, removal, and on a development twin the toggle and jumps between a 64- and a 16-step pattern). ## Controls @@ -26,16 +26,16 @@ Direct Jump changes only when a cued pattern takes over. Cue patterns the stock ### Quick tutorial: jump between patterns on the next step 1. Hold [PTN] and press [YES]: DIRECT JUMP ON appears. Release [PTN]; the pattern chooser stays shut. -2. Press [PLAY]. Hold [PTN] and press a trig key to cue that pattern: it takes over on the next step, at the step it would be on had it played since START. +2. Press [PLAY]. Hold [PTN] and press a trig key to cue that pattern: it takes over on the next step, at the step it would be on had it played since PLAY or the last normal pattern change. 3. Hold [PTN] and press [YES] again for DIRECT JUMP OFF: cued patterns wait for the end of the playing one again, as on the stock OS. ### Where the new pattern lands -The landing is clock-locked: the incoming pattern starts at the position it would hold had it been playing since START. For two 16-step patterns that is simply the next step. A 7-step pattern lands on the step a 7-step loop would be on at that moment, so it stays in phase with a loop that had been running all along. In PER TRACK mode, with tracks of different scales, the jump waits for the next clock tick at which every track sits on a step boundary (at most one common step of all the scales involved, for example 24 clock ticks with 1x, 3/4x and 1/2x tracks), so every track starts exactly on its step. +The landing is clock-locked: the incoming pattern starts at the position it would hold had it been playing since the last restart, which is PLAY or the last normal pattern change (with Direct Jump off, by a chain or by the arranger). For two 16-step patterns that is simply the next step. A 7-step pattern lands on the step a 7-step loop would be on at that moment, so it stays in phase with a loop that had been running all along. After PLAY on a 16-step A01 and a normal change to a 12-step A02, a jump to a 12-step A03 lands on the step A02 is on, as if A03 had started where A02 did. In PER TRACK mode, with tracks of different scales, the jump waits for the next clock tick at which every track sits on a step boundary (at most one common step of all the scales involved, for example 24 clock ticks with 1x, 3/4x and 1/2x tracks), so every track starts exactly on its step. A jump changes the Part if the new pattern uses another one, and START SILENT, as a stock pattern change does. Unlike a stock change: -- **Trig conditions carry on.** Every track's A:B count (1:2, 3:4 and the rest) stands where the new pattern's would had it played since PLAY, so a 1:2 trig keeps alternating across the jump. A latched [FILL] stays latched, and a PRE trig right after the jump plays, as at the start of a pattern. +- **Trig conditions carry on.** Every track's A:B count (1:2, 3:4 and the rest) stands where the new pattern's would had it played since that restart, so a 1:2 trig keeps alternating across the jump. A latched [FILL] stays latched, and a PRE trig right after the jump plays, as at the start of a pattern. - **Each track gets its new Part settings with its own first trig.** The Part's pattern-wide settings change at the jump; with LFO AUTO CHANGE on (PROJECT > CONTROL > SEQUENCER), each track's LFO setup changes with that track's first trig of the new pattern, so a sample still ringing from the old pattern keeps its own LFOs. A track with no trig in the new pattern gets them at once; STOP, turning Direct Jump off or the next jump applies every track still waiting. With LFO AUTO CHANGE off, nothing waits. - **No pop with SILENCE TRACKS.** The tracks a jump silences (SILENCE TRACKS, or START SILENT on the track) are released with stock's note-off, the same release STOP uses, a tick before the step, instead of being cut on it. @@ -51,7 +51,7 @@ One stock gesture is touched: - **Why.** The toggle belongs next to the pattern keys it changes, and [YES] is free in the [PTN] layer on stock. A menu row would need a settings store Modwerk does not have yet. - **What you see and do differently.** A toast on [PTN] + [YES]. [PTN] alone, [PTN] with trig keys, [YES] alone and the chooser after a plain [PTN] tap are unchanged. - **Turning it off.** [PTN] + [YES] again, or a power cycle. Pattern changes are stock while it is off. -- **Neighbouring flows checked** (emulator, MKII panel, against the original OS): [YES] alone; [PTN] + [YES] and the chooser on release; a stock cued pattern change while OFF (identical sequencer state on every step); with LFO AUTO CHANGE off, the Part apply after a jump is stock. Not checked: the arranger, chains, MKI panel. +- **Neighbouring flows checked** (emulator, MKII panel, against the original OS): [YES] alone; [PTN] + [YES] and the chooser on release; a stock cued pattern change while OFF (identical sequencer state on every step); with LFO AUTO CHANGE off, the Part apply after a jump is stock. A stock change followed by a jump: the jump lands and counts as if the stock change had gone straight to its pattern. Not checked: the arranger, chains, MKI panel. ## Compatibility and limitations @@ -66,15 +66,15 @@ One stock gesture is touched: **The MIDI Plays-Free fix is built in.** Upstream, the module `requires` the author's BATCH_BUGFIXES bundle for its MIDI Plays-Free fix ([upstream/README.md](upstream/README.md), "Required: the bugfix bundle"). On stock, a Plays-Free MIDI track with trig quantize DIRECT under PER TRACK scale stalls after its first step when you start it with its trig key, because stock seeds that track's scale from the wrong byte. Direct Jump reads that same byte to place each track, so without the fix it would place such a track with the master's scale instead of its own. Modwerk modules never depend on another module, so from 0.1.1 Direct Jump carries the fix itself, as the author's standalone Direct Jump image does: his `patch_trigscale.s`, from the same pin. It fixes the stall too, whether Direct Jump is on or off. The source still reads any scale byte above 6 as the master's, as a backstop. The bundle's other two fixes are not included: the empty-pattern LED is unrelated to Direct Jump, and the Part-change carryover fix is the one the author measured as independent of it (the Part-change trace, Program Changes on fast re-cues and the whole timing matrix identical with and without it). Version 0.1.0 shipped without the Plays-Free fix. -Hook sites: the landing countdown read in phase D of the sequencer's tick handler at `0x400a1f72` and the MIDI START gate in its landing path at `0x400a221c` (both `jsr`, replaying what they displace), the [PTN] release at `0x40043418` (`jmp`), the light Part apply's LFO AUTO CHANGE test at `0x40009ebe` (`jsr`, new in 0.2.0: the one apply after a jump leaves each track's LFO setup to that track's first trig, every other apply is stock), the [PTN] layer's YES press slot at `0x400bf0c0`, which is empty on stock, and, for the Plays-Free fix, the per-track scale seed of a track's manual start at `0x4009b6f2` (a `jmp` to the fix, which redoes the 18 stock bytes there for audio tracks and reads a MIDI track's own scale). No other catalogue module claims any of them. +Hook sites: the landing countdown read in phase D of the sequencer's tick handler at `0x400a1f72` and the MIDI START gate in its landing path at `0x400a221c` (both `jsr`, replaying what they displace), the [PTN] release at `0x40043418` (`jmp`), the light Part apply's LFO AUTO CHANGE test at `0x40009ebe` (`jsr`, new in 0.2.0: the one apply after a jump leaves each track's LFO setup to that track's first trig, every other apply is stock), stock's pattern switch calling its trig-condition reset at `0x400a4850` (`jsr`, new in 0.2.0 with V7.3: it makes that switch the jump's time origin, then runs the reset exactly as stock's call did; a jump never passes there), the [PTN] layer's YES press slot at `0x400bf0c0`, which is empty on stock, and, for the Plays-Free fix, the per-track scale seed of a track's manual start at `0x4009b6f2` (a `jmp` to the fix, which redoes the 18 stock bytes there for audio tracks and reads a MIDI track's own scale). No other catalogue module claims any of them. ## Tests and measurements -[TESTING.md](TESTING.md) has the commands and every result: the unit's bytes, the emulator gate (the toggle, OFF against the original OS, four jumps whose sequencer and trig-condition state equal reference runs, each track's Part at its first trig, the SILENCE TRACKS release, and the MIDI Plays-Free stall on the original OS against the fix), the cycles and load, the USB package's stock-free scan, and what was not tested. Emulator results say nothing about a real unit's timing or audio. +[TESTING.md](TESTING.md) has the commands and every result: the unit's bytes, the emulator gate (the toggle, OFF against the original OS, four jumps whose sequencer and trig-condition state equal reference runs, two jumps after a stock pattern change against runs that changed straight to the jump's pattern, each track's Part at its first trig, the SILENCE TRACKS release, and the MIDI Plays-Free stall on the original OS against the fix), the cycles and load, the USB package's stock-free scan, and what was not tested. Emulator results say nothing about a real unit's timing or audio. ## Authorship and licences -Zac Kyoti designed Direct Jump and wrote its ColdFire source (MIT, [LICENSE](LICENSE)); Sam Banks integrated it into octabam (MIT, [upstream/OCTABAM_LICENSE](upstream/OCTABAM_LICENSE)). Thanks to Sebastien Michel (uvbproject) for investigating the port in [pull request #856](https://github.com/repeat98/modwerk/pull/856); nothing from it is in the module. The author's own description is kept in [upstream/README.md](upstream/README.md) and octabam's wrapper page in [upstream/OCTABAM_README.md](upstream/OCTABAM_README.md). `../../../imports/direct-jump-kyoti-109f54c.json` records each copied file with its source pin (the 0.1.x import is `../../../imports/direct-jump-kyoti-b725fb1.json`): `upstream/README.md` and `LICENSE` are the author's files byte for byte; `patch_directjump_v7.s` is his V7.2.2 with four kernel posts routed through one helper and two instruction pairs swapped (marked MODWERK); `patch_trigscale.s` is his MIDI Plays-Free fix from BATCH_BUGFIXES with one instruction moved and its label renamed (marked MODWERK); `manifest.py` declares the same units and sites with SHA-256 guards in place of stock bytes. The Modwerk gate (`verify.py`), documentation and thumbnail are GPL-3.0-or-later. No firmware, stock code, built image or card is included. +Zac Kyoti designed Direct Jump and wrote its ColdFire source (MIT, [LICENSE](LICENSE)); Sam Banks integrated it into octabam (MIT, [upstream/OCTABAM_LICENSE](upstream/OCTABAM_LICENSE)). Thanks to Sebastien Michel (uvbproject) for investigating the port in [pull request #856](https://github.com/repeat98/modwerk/pull/856); nothing from it is in the module. The author's own description is kept in [upstream/README.md](upstream/README.md) and octabam's wrapper page in [upstream/OCTABAM_README.md](upstream/OCTABAM_README.md). `../../../imports/direct-jump-kyoti-cd788e9.json` records each copied file with its source pin (the 0.1.x import is `../../../imports/direct-jump-kyoti-b725fb1.json`): `upstream/README.md` and `LICENSE` are the author's files byte for byte; `patch_directjump_v7.s` is his V7.3 with four kernel posts routed through one helper and two instruction pairs swapped (marked MODWERK); `patch_trigscale.s` is his MIDI Plays-Free fix from BATCH_BUGFIXES with one instruction moved and its label renamed (marked MODWERK); `manifest.py` declares the same units and sites with SHA-256 guards in place of stock bytes. The Modwerk gate (`verify.py`), documentation and thumbnail are GPL-3.0-or-later. No firmware, stock code, built image or card is included. ## Screens and audio diff --git a/sdk/octatrack/modules/direct-jump-kyoti/manifest.py b/sdk/octatrack/modules/direct-jump-kyoti/manifest.py index b33ab20244..d12b57d927 100644 --- a/sdk/octatrack/modules/direct-jump-kyoti/manifest.py +++ b/sdk/octatrack/modules/direct-jump-kyoti/manifest.py @@ -5,12 +5,13 @@ A cued pattern takes over on the NEXT STEP instead of waiting for the current one to finish, and the landing is LOCKED TO THE MASTER CLOCK: the new pattern -plays where it would be had it been running since START, whatever its track -lengths, scales or master settings. START SILENT and the Part's pattern-wide +plays where it would be had it been running since the LAST RESTART -- PLAY, or +the last stock pattern change (V7.3) -- whatever its track lengths, scales or +master settings. START SILENT and the Part's pattern-wide settings change as on a stock pattern change; each track's own Part settings (its LFO setups, with LFO AUTO CHANGE on) reach the engine with that track's first sounding trig of the new pattern; trig conditions stand where the new -pattern's would, had it played since START; with SILENCE TRACKS on, the tracks +pattern's would, had it played since that restart; with SILENCE TRACKS on, the tracks the switch silences are released with stock's note-off first. The last MIDI Program Change sent names the pattern that plays. The arranger and pattern chains are untouched. @@ -22,17 +23,20 @@ the [PTN]-held [YES] key. Every per-track counter and the pattern-boundary body stay stock. V7.2 adds one site: the light Part apply's LFO AUTO CHANGE test, so the one apply after a jump leaves each track's LFO setup to that track's own -publish. +publish. V7.3 adds another: stock's own pattern switch (DIRECT JUMP off, a chain, +the arranger) calls COND_RESET(-1) at 0x400a4850 right after restarting the +master; dj_swres re-bases the jump's clock there and tail-jumps COND_RESET, which +still sees stock's return address and argument. A jump never runs that block. STATE. One word, DJ_MODE (0 = OFF, 1 = ON), inside the unit. A DRAM unit is loaded by the base at every install and boot (USB) or unpacked at every boot (native card build), so it starts at 0 by construction; no battery restore reaches it. -MODWERK. The author's declaration (Zac-Kyoti/octatrack-kyoti-fw 109f54c, +MODWERK. The author's declaration (Zac-Kyoti/octatrack-kyoti-fw cd788e9, octabam-modules/direct-jump-kyoti/manifest.py; upstream/README.md is his README from that commit) carries the stock bytes it expects at each site, `requires` -BATCH_BUGFIXES and declares two conflicts. Here every stock expectation is an +BATCH_BUGFIXES and declares conflicts. Here every stock expectation is an address/length/SHA-256 guard read from the builder's own OS file, and there is no `requires`: Modwerk modules never need another module. The bundle was required for its MIDI_PLAYS_FREE_FIX: stock's PER TRACK scale seed reads a MIDI @@ -44,8 +48,10 @@ Keeps that protected the rest of the [PTN]-layer YES record are dropped: a USB package cannot carry them, and the symbol reference's own guard (the slot is NULL) still refuses a changed record. The author's conflicts name modules -Modwerk does not have (octabam's DIRECT JUMP and OCTAKIT), so none is declared. -patch_directjump_v7.s is the author's V7.2.2 with six re-encodings marked +Modwerk does not have (octabam's DIRECT JUMP and OCTAKIT; Octakit wraps stock's +switch block around the fifth site, and Modwerk's Kits, which follows its design, +hooks the pattern schedule and chain append instead), so none is declared. +patch_directjump_v7.s is the author's V7.3 with six re-encodings marked MODWERK (four kernel posts through one helper, two leas and the two operands of one sum swapped): the same calls, values and flags, so that no 12 bytes of the USB package repeat stock code. @@ -65,22 +71,27 @@ # V7.2: the light Part apply's LFO AUTO CHANGE test (`tst.b`, stock's `beq.w` follows on its Z flag). The one # apply after a jump sees Z = 1 and skips its per-track LFO part; each track's publish brings it at its first trig. LFOQ_HOOK = 0x40009ebe +# V7.3: stock's switch block (a real pattern change: DIRECT JUMP off, a chain, the arranger) calls COND_RESET(-1) +# here (`jsr 0x400a539c`, after its `pea -1`), right after restarting the master. dj_swres sets the jump's clock to +# that restart (dj_T = -tps_old, dj_rsm = the start step) and tail-jumps COND_RESET without pushing anything, so the +# callee sees return address 0x400a4856 and the -1 as from stock's own call. +SWRES_HOOK = 0x400a4850 # The [PTN]-held keymap layer's YES record (0x400bf0be) is NULL in stock; its press slot: PTN_LAYER_YES_PRESS = 0x400bf0c0 # The author's MIDI_PLAYS_FREE_FIX: the 18-byte per-track scale seed in FUN_4009b5c8. All 18 are # guarded (the cave redoes them); only the first instruction becomes the jmp. His BATCH_BUGFIXES -# pads the rest with nops, but the cave rejoins stock at 0x4009b704 past them, and six nops are a -# stock run the USB package's scan refuses. +# pads the rest with nops, but the cave rejoins stock at 0x4009b704 past them, and six nops were a +# stock run the USB package's scan refused (until base 0.7.5 dropped the refusal). TS_HOOK = 0x4009b6f2 # patch_directjump_v7.s, m68k-elf-as -mcpu=5407 or 54455 (identical), linked at 0x400d6d38: -# 3826 bytes. Re-linked there and compared on every build. The author's V7.2.2 at that address (his -# manifest's oracle at 109f54c, the code of his standalone image 140C_KDJ7) is 3846 bytes, SHA-256 -# 688978daa1ed86c0a0874404e859ee781fbfbed7808be33c2f862beb3e373011; this source links to exactly that with +# 3918 bytes. Re-linked there and compared on every build. The author's V7.3 at that address (his +# manifest's oracle at cd788e9, the code of his KYOTI V1.8C image KY18C DJR1) is 3938 bytes, SHA-256 +# 51478a6773f5b987dc98c595f55a3dd88e9de514d1cedb8fbd35cffe4755e48d; this source links to exactly that with # its MODWERK re-encodings taken back (four kernel posts through dj_post, two leas and one sum's two -# operands swapped, so no 12 bytes of the USB package repeat stock code). -UNIT_BYTES = 3826 -REFERENCE = (0x400d6d38, "4d28a1d8791fc7eeed41a62fa173f431d77ce0493b7adfd240c79d78fc883b0f") +# operands swapped, so no 12 bytes of the USB package repeat stock code). V7.3's own additions needed none. +UNIT_BYTES = 3918 +REFERENCE = (0x400d6d38, "c8273e8f790ee5a046c8a4d459c4ff7276d65289d4812282a6e97c05d5f22cef") # patch_trigscale.s, position independent, 62 bytes. With its MODWERK change taken back (one # movea.l moved, the label renamed) it links to the author's pinned bytes, SHA-256 # a1eec6b67bb817cc2e063f23897377697f6057a9bf2389d5eb442813b854bba4. @@ -92,7 +103,7 @@ kind=Kind.CF_PATCH, author="Zac-Kyoti", author_url="https://github.com/Zac-Kyoti", doc="Clock-locked DIRECT JUMP ([PTN]+[YES]): a cued pattern lands on the " - "next step exactly where it would be had it played since START.", + "next step exactly where it would be had it played since PLAY or the last pattern change.", linked=( Linked("dj7", os.path.join(_HERE, "patch_directjump_v7.s"), dram=True, reference=REFERENCE), Linked("ts", os.path.join(_HERE, "patch_trigscale.s"), dram=True, reference=TS_REFERENCE), @@ -106,6 +117,8 @@ "dj7", "dj_ptnrel", "[PTN] release: keep the chooser shut after [PTN]+[YES]"), Detour(LFOQ_HOOK, stock_guard(LFOQ_HOOK, 6, "37edecfc18058ca757b701a5e909152025e5ceb96e33328800af3bea09dd5e94"), "dj7", "dj_lfoq", "light Part apply: per-track part deferred to each track's first trig", kind="jsr"), + Detour(SWRES_HOOK, stock_guard(SWRES_HOOK, 6, "3eb71e079e73b289302dbd71e2397466226349dc505a46c2cc16a49a1595c7db"), + "dj7", "dj_swres", "stock pattern switch: the jump's clock restarts there", kind="jsr"), Detour(TS_HOOK, stock_guard(TS_HOOK, 18, "1737cfa861055a533a8a63f6ee4a007de11433354ad97185fba8e79c7a06ac43"), "ts", "ts_cave", "MIDI Plays-Free fix: a MIDI track's PER TRACK scale read with the MIDI stride"), ), diff --git a/sdk/octatrack/modules/direct-jump-kyoti/octamod.module.json b/sdk/octatrack/modules/direct-jump-kyoti/octamod.module.json index 0941aa25ef..0893d477cd 100644 --- a/sdk/octatrack/modules/direct-jump-kyoti/octamod.module.json +++ b/sdk/octatrack/modules/direct-jump-kyoti/octamod.module.json @@ -7,7 +7,7 @@ "category": "system", "source": { "repository": "https://github.com/Zac-Kyoti/octatrack-kyoti-fw", - "revision": "109f54cd36fcd770e3409d1258254619a161b1d7", + "revision": "cd788e93c765120cd2d2feda60bafee9a02f8508", "path": "octabam-modules/direct-jump-kyoti" }, "author": { @@ -22,13 +22,13 @@ "presentation": { "label": "Clock-locked pattern jump on [PTN] + [YES]", "family": "Sequencer", - "summary": "Hold [PTN] and press [YES] to turn Direct Jump Kyoti on: a pattern you cue takes over on the next step, where it would be had it played since START.", - "overview": "On the stock OS a cued pattern waits for the playing one to reach its end. With Direct Jump on, it takes over on the next step instead, locked to the master clock: it starts at the step it would be on had it been playing since you pressed PLAY, whatever its length, scale or per-track settings. Trig conditions carry on as if the new pattern had played all along, each track gets its new Part settings with its own first trig, and with SILENCE TRACKS on the tracks a jump silences are released before the step instead of cut. It is off at every power-on, so the stock behaviour stays the default. It is Zac Kyoti's design, distinct from octabam's other direct jump (Tim Hastie's CHAIN AFTER option).", + "summary": "Hold [PTN] and press [YES] to turn Direct Jump Kyoti on: a pattern you cue takes over on the next step, where it would be had it played since PLAY or the last normal pattern change.", + "overview": "On the stock OS a cued pattern waits for the playing one to reach its end. With Direct Jump on, it takes over on the next step instead, locked to the master clock: it starts at the step it would be on had it been playing since you pressed PLAY, or since the last normal pattern change, whatever its length, scale or per-track settings. Trig conditions carry on as if the new pattern had played all along, each track gets its new Part settings with its own first trig, and with SILENCE TRACKS on the tracks a jump silences are released before the step instead of cut. It is off at every power-on, so the stock behaviour stays the default. It is Zac Kyoti's design, distinct from octabam's other direct jump (Tim Hastie's CHAIN AFTER option).", "highlights": [ - "OS 1.40C. Zac Kyoti tested this version's behaviour on his MKI in his own builds of the same code (15 November 2026); this Modwerk build has not yet run on a unit.", + "OS 1.40C. Zac Kyoti tested this version's behaviour on his MKI in his own builds of the same code (15 and 16 November 2026); this Modwerk build has not yet run on a unit.", "Off at every power-on: until you turn it on, pattern changes are the stock ones.", - "The new pattern lands where it would be had it played since START, also with differing track lengths and scales (PER TRACK mode), so tracks stay in phase with the master clock. It lands a tick before the step, so its first step is never late, and a cue in the playing pattern's last step lands on its grid point too.", - "Trig conditions carry on across a jump: every A:B count stands where the new pattern's would; a latched [FILL] stays on, and a PRE trig right after the jump plays.", + "The new pattern lands where it would be had it played since PLAY or the last normal pattern change, also with differing track lengths and scales (PER TRACK mode), so tracks stay in phase with the master clock: after a normal change to a 12-step pattern, a jump to another 12-step pattern lands on the step the first was on. It lands a tick before the step, so its first step is never late, and a cue in the playing pattern's last step lands on its grid point too.", + "Trig conditions carry on across a jump: every A:B count stands where the new pattern's would, counted from that same restart; a latched [FILL] stays on, and a PRE trig right after the jump plays.", "The Part's pattern-wide settings and START SILENT change as on a stock pattern change. With LFO AUTO CHANGE on, each track's new LFO settings arrive with its first trig of the new pattern, so a sound still ringing keeps its own.", "With SILENCE TRACKS on, the tracks a jump silences are released with stock's note-off just before the step, so they do not pop.", "The last MIDI Program Change names the pattern that plays; no MIDI START is sent on a jump.", @@ -37,7 +37,7 @@ ], "usage": [ "Hold [PTN] and press [YES]: DIRECT JUMP ON appears. Release [PTN]; the pattern chooser stays shut.", - "Press [PLAY]. Hold [PTN] and press a trig key to cue that pattern: it takes over on the next step, at the step it would be on had it played since START.", + "Press [PLAY]. Hold [PTN] and press a trig key to cue that pattern: it takes over on the next step, at the step it would be on had it played since PLAY or the last normal pattern change.", "Hold [PTN] and press [YES] again for DIRECT JUMP OFF: cued patterns wait for the end of the playing one again, as on the stock OS." ] }, @@ -45,7 +45,7 @@ "location": "Front panel: hold [PTN], press [YES]. No menu row or page.", "steps": [ "Hold [PTN] and press [YES]: DIRECT JUMP ON appears. Release [PTN]; the pattern chooser stays shut.", - "Press [PLAY]. Hold [PTN] and press a trig key to cue that pattern: it takes over on the next step, at the step it would be on had it played since START.", + "Press [PLAY]. Hold [PTN] and press a trig key to cue that pattern: it takes over on the next step, at the step it would be on had it played since PLAY or the last normal pattern change.", "Hold [PTN] and press [YES] again for DIRECT JUMP OFF: cued patterns wait for the end of the playing one again, as on the stock OS." ], "screenshots": [ @@ -75,7 +75,7 @@ "key:PATTERN+YES" ], "limitations": [ - "OS 1.40C. The author tested the timing, the Part change, the toggle and this version's trig conditions, Part-per-track and SILENCE TRACKS release on an MKI, in his own builds of the same Direct Jump code. This Modwerk build has not run on a unit; the 0.1.x USB package ran on an MKII (toggle, jumps between a 64- and a 16-step pattern, a power cycle, removal).", + "OS 1.40C. The author tested the timing, the Part change, the toggle and this version's trig conditions, Part-per-track, SILENCE TRACKS release and jumps after a normal pattern change on an MKI, in his own builds of the same Direct Jump code. This Modwerk build has not run on a unit; the 0.1.x USB package ran on an MKII (toggle, jumps between a 64- and a 16-step pattern, a power cycle, removal).", "OFF at every power-on and not stored in the project: turn it on again after a restart.", "While the arranger or a pattern chain runs, pattern changes stay stock.", "With differing track scales or lengths in PER TRACK mode, the jump waits for the next tick where every track is at a step boundary, at most one common step of all tracks' scales (24 clock ticks for 1x, 3/4x and 1/2x together).", @@ -141,7 +141,7 @@ "title": "Quick tutorial: jump between patterns on the next step", "steps": [ "Hold [PTN] and press [YES]: DIRECT JUMP ON appears. Release [PTN]; the pattern chooser stays shut.", - "Press [PLAY]. Hold [PTN] and press a trig key to cue that pattern: it takes over on the next step, at the step it would be on had it played since START.", + "Press [PLAY]. Hold [PTN] and press a trig key to cue that pattern: it takes over on the next step, at the step it would be on had it played since PLAY or the last normal pattern change.", "Hold [PTN] and press [YES] again for DIRECT JUMP OFF: cued patterns wait for the end of the playing one again, as on the stock OS." ] }, @@ -231,7 +231,7 @@ "title": "Quick tutorial: jump between patterns on the next step", "steps": [ "Hold [PTN] and press [YES]: DIRECT JUMP ON appears. Release [PTN]; the pattern chooser stays shut.", - "Press [PLAY]. Hold [PTN] and press a trig key to cue that pattern: it takes over on the next step, at the step it would be on had it played since START.", + "Press [PLAY]. Hold [PTN] and press a trig key to cue that pattern: it takes over on the next step, at the step it would be on had it played since PLAY or the last normal pattern change.", "Hold [PTN] and press [YES] again for DIRECT JUMP OFF: cued patterns wait for the end of the playing one again, as on the stock OS." ] }, diff --git a/sdk/octatrack/modules/direct-jump-kyoti/patch_directjump_v7.s b/sdk/octatrack/modules/direct-jump-kyoti/patch_directjump_v7.s index e8a2bdd80d..8331f20bef 100644 --- a/sdk/octatrack/modules/direct-jump-kyoti/patch_directjump_v7.s +++ b/sdk/octatrack/modules/direct-jump-kyoti/patch_directjump_v7.s @@ -31,6 +31,10 @@ | V7.1.1 (2026-11-13): stock's wrap-change never takes a cue DIRECT JUMP has armed (dj_hide). | V7.2 (2026-11-13, WIP): each track's own Part reaches the engine with its first sounding trig of | the incoming pattern (dj_sparm .. dj_mapply); the jump keeps the Part-wide items. +| V7.3 (2026-11-16, WIP; the author's decision, option (b)): the time origin is the LAST RESTART -- PLAY, or +| any stock pattern switch (DJ off, a chain, the arranger: whatever runs stock's `jsr COND_RESET` at +| 0x400a4850). dj_swres re-bases dj_T there, so a jump lands -- and sets its trig conditions -- as if the +| incoming pattern had started at that switch. RELOAD_FROM_PROJECT and Clyps count from the same moment. | ========================================================================================= | SPDX-License-Identifier: MIT | SPDX-FileCopyrightText: 2026 Zac Kyoti @@ -152,6 +156,7 @@ .equ ENG_MBANK, 0x46c7a850 .equ ENG_MPART, 0x46c7a934 .equ COND_RESET, 0x400a539c | FUN_400a539c(track | -1): reset A:B cycle counters / pending FILL +| (V7.3: stock's switch calls it at 0x400a4850 -> dj_swres) .equ P_CHAINQ, 0x8e56 | pattern blob: CHAIN AFTER index (signed; < 0 = the project's) .equ PROJ_QUANT, 0x8000004e | byte: the project's CHAIN AFTER index .equ QUANT_TBL, 0x400d80dc | long[]: CHAIN AFTER length in master steps (<= 0 = off) @@ -302,10 +307,12 @@ dj_land: .endif | V7: dj_T counts EVERY running tick, DJ on or off (cave RAM only -- stock-invisible), so | a DIRECT JUMP turned on mid-song still knows where START was. 0 while stopped. +| V7.3: ... where the LAST RESTART was: PLAY, or stock's last pattern switch (dj_swres re-bases it). moveq #1,%d0 cmp.l TRANSPORT_L,%d0 beq.b dt_run clr.l dj_T + clr.l dj_rsm | V7.3: stopped -> the next origin is PLAY bra.b dt_done dt_run: addq.l #1,dj_T @@ -444,6 +451,7 @@ dl_arm: | V7.0: the incoming pattern's parameters, then the first tick t_L >= this one whose | master-cycle time t' is a multiple of L = lcm(tps_M, every track's tps): every track at | a window start, the master on a step boundary -> stock's landing is exact there. +| V7.3: t' is counted from the last restart (dj_T; dj_tprime adds dj_rsm master steps). moveq #0,%d0 move.b PEND_BANK,%d0 moveq #0,%d1 @@ -671,8 +679,11 @@ dc_nself: bsr.w dj_bparams | a2 = ACT blob (set above) -> tps/len/C/L tables move.l dj_T,%d7 addi.l #DJ_TOFS,%d7 | d7 = t_L - move.l %d7,dj_tland move.l dj_tpsM,%d3 + move.l dj_rsm,%d0 | V7.3: in the last restart's frame (dj_swres): + dj_rsm master + muls.l %d3,%d0 | steps (0 unless the arranger started the pattern later); t_L may + add.l %d0,%d7 | be < 0 (just before the restarted pattern's first boundary); u >= 0 (dl_arm) + move.l %d7,dj_tland move.l %d7,%d0 add.l %d3,%d0 subq.l #1,%d0 | u = t + tps_M - 1 @@ -907,14 +918,20 @@ ho_mt3: | V7.0.2 (2026-11-13, the user's rule from Clyps, scope §1.29 C): the trig conditions stand where | a never-switched incoming pattern would have them -- stock's switch (and V7.0.1) restarted them | with COND_RESET(-1) 0x400a539c here. dj_cond (below) sets every track's A:B pass counter. +| (V7.3: "never switched" = since the last restart; a jump itself is not a restart and never runs +| stock's switch block, so dj_swres never fires for it.) bsr.w dj_sparm | V7.2: every track's Part publish waits for its first trig bra.w dj_cond | dj_cond: every track's trig-condition state at the landing tick t_L (dj_tland), as a reference run | that had played the incoming pattern since START holds it (REF-LOCK: tools/cmp_reflock.py --cond). -| A:B pass counter 0x46107918[t] = F(t_L): the passes track t would have begun since PLAY, in the -| incoming pattern's model (dj_bparams' tps_M / C / tps_t / len_t; time = dj_T, PLAY = 0, the -| master cycle starting at 0 mod C -- dj_tprime). The measured stock facts (Clyps M1-M3, +| A:B pass counter 0x46107918[t] = F(t_L): the passes track t would have begun since the last +| restart, in the incoming pattern's model (dj_bparams' tps_M / C / tps_t / len_t; time = dj_tland, +| the restart's frame: PLAY = 0, the master cycle starting at 0 mod C -- dj_tprime). V7.3: after a +| stock switch the frame's 0 is the switch's audible boundary, one OUTGOING master step after it +| (dj_swres); COND_RESET(-1) zeroed every counter at the switch and no pass starts before that +| boundary, so a landing before it (t_L < 0: a jump cued just after the switch) is F(0) = 0. +| The measured stock facts (Clyps M1-M3, | reference/handoffs/RELOAD_CLYPS_PORT.md rule 3): a pass starts at each own wrap (0x400a536c, | t' = j*c - tps, c = len*tps) and at the master's restart (the wrap body, t' = C - tps_M), once | when they coincide. Per master cycle K = J + (rem != 0), J = (C - tps_M + tps) / c (rem its @@ -926,8 +943,10 @@ ho_mt3: | which a reference run would hold as well; COND_RESET(-1) used to drop a latched FILL. | Every register is free (dl_commit's caller, dj_land, saved them all); a2 is no longer needed. dj_cond: - move.l dj_tland,%d7 | x = t_L (>= 0) - tst.l dj_C + move.l dj_tland,%d7 | x = t_L + bpl.b 1f + moveq #0,%d7 | V7.3: before the restarted pattern's first boundary -> F(0) = 0 +1: tst.l dj_C beq.b cn_init | INF: no master cycle move.l dj_C,%d6 move.l %d6,%d0 @@ -1168,11 +1187,18 @@ bp_gcdok: move.l %d5,dj_L rts -| dj_tprime: d0 = tick t -> d0 = t' = ((t + tps_M - 1) mod C) - (tps_M - 1) (signed) +| dj_tprime: d0 = tick t (dj_T's count) -> d0 = t' = ((x + tps_M - 1) mod C) - (tps_M - 1) (signed), with +| x = t + dj_rsm * tps_M, the tick in the last restart's frame (V7.3; dj_rsm = 0 but after an arranger +| start). Right after a stock switch x can be as low as 1 - tps_old: u = x + tps_M - 1 < 0 is a t' before the +| restarted pattern's first boundary -- negative, no mod. Uses d1-d3. dj_tprime: move.l dj_tpsM,%d3 + move.l dj_rsm,%d1 + muls.l %d3,%d1 + add.l %d1,%d0 | x add.l %d3,%d0 - subq.l #1,%d0 + subq.l #1,%d0 | u + bmi.b tp_noc | V7.3: before the first boundary since the restart move.l dj_C,%d1 beq.b tp_noc move.l %d0,%d2 @@ -1269,9 +1295,47 @@ rs_l: bne.b rs_l rts +| ================= V7.3: dj_swres @ 0x400a4850 -- stock's switch is a RESTART ================= +| The author's decision (2026-11-16, option (b)): DIRECT JUMP's time origin is the last restart -- PLAY or +| any stock pattern switch -- for the landing position and the trig conditions alike, as RELOAD_FROM_PROJECT +| (rl_creset) and Clyps (cl_creset) already count. Until V7.2.2 dj_T ran from PLAY: after PLAY on A, a +| normal change to X and a jump to Y, Y landed at its PLAY phase and its A:B counters counted from PLAY. +| The site: stock's switch block (phase G, the wrap body with d6 = PEND != ACT) `pea -1 ; jsr COND_RESET` +| (0x400a484c / 0x400a4850), right after it restarted the master: MASTER_STEP = 0x8000662a (0x400a483a; 0 +| unless the arranger starts the pattern later), tick 0 (0x400a4842). Only that block runs it: a plain wrap +| (d6 = 0, also dj_hide's held cue) skips it, and a DIRECT JUMP jump never runs the switch block at all +| (its landing is phase D's re-landing; COND_RESET is not called since V7.0.2). +| The frame (measured, tools/diag_reflock.py: a stock switch straight to the pattern, out/djr f1-f4): the +| wrap body runs one master step before the cycle's audible boundary, and that first step of the new pattern +| still runs at the OUTGOING master rate (SCALE_IX follows a step later) -- so the new pattern's cycle starts +| (t' = 0, PLAY's t = 0) tps_old ticks after the switch, whatever the incoming pattern's own rate. Hence +| dj_T = -tps_old now (the next tick counts 1 - tps_old; the boundary tick 0), and dj_rsm = N, the step stock +| started the pattern on (MASTER_STEP, 0 unless the arranger), so x = dj_T + dj_rsm * tps_M (dj_tprime, +| dl_commit). A reload stays 0 until the new pattern's first master wrap, as after PLAY (dl_fixup). Then the +| TAIL JUMP: COND_RESET -- and RELOAD's / Clyps' detour at its entry -- sees the caller's return address +| 0x400a4856 at (sp) and the -1 at 4(sp), as stock. Uses d0 / a0 only (COND_RESET is a C function: d0-d1 / +| a0-a1 are the caller's scratch). + .global dj_swres +dj_swres: + moveq #0,%d0 + move.b SCALE_IX,%d0 | the master rate still in force (the outgoing pattern's) + cmpi.l #SCALE_MAX,%d0 + bls.b 1f + moveq #SCALE_1X,%d0 | out of range: 1x (as everywhere here) +1: lea LEN_TBL,%a0 + move.l (%a0,%d0.l*4),%d0 + neg.l %d0 + move.l %d0,dj_T | -tps_old: the new cycle starts tps_old ticks from now + moveq #0,%d0 + move.w MASTER_STEP,%d0 | N: where stock just started the pattern (0x400a483a) + move.l %d0,dj_rsm + jmp COND_RESET | (sp) = 0x400a4856, 4(sp) = -1: stock's own call + | dl_fixup: the tick after a landing. Stock's landing leaves reload = tps_t - 1 (it drives | the landing's immediate first fire); the reference holds 0 until the first master wrap -| since START, then the wrap-change catch-up max(0, tps_t - tps_M). Nothing reads reload +| since START, then the wrap-change catch-up max(0, tps_t - tps_M). V7.3: the same since a stock +| switch (measured: stock's switch leaves every reload 0 until the new pattern's first wrap), with +| dj_tland in the restart's frame. Nothing reads reload | between here and the next wrap (cntdn idle, first-fire mask consumed), so this is for the | state-equality proof -- and it makes the next wrap start from the reference's value. dl_fixup: @@ -1764,8 +1828,12 @@ dj_sptm: .space 64 | V7.2: per track (long) the clock a new- | the same guarantee the stock re-image gives the standalone build. DJ_MODE: .long 0 | 0 = OFF/stock, 1 = ON .endif -dj_T: .long 0 | V7: running clock ticks since START (0 while stopped) -dj_tland: .long 0 | V7: t of the last landing +dj_T: .long 0 | V7: running clock ticks since START (0 while stopped); V7.3: since the + | last restart (PLAY, or a stock switch: dj_swres; < 0 until its boundary) +dj_rsm: .long 0 | V7.3: the last restart's start step N (PLAY 0; a stock switch: the step + | it started the pattern on), x = dj_T + dj_rsm * tps_M +dj_tland: .long 0 | V7: t of the last landing (V7.3: x, the restart's frame; < 0 before its + | first boundary) dj_tpsM: .long 0 | V7: incoming pattern's master ticks/step dj_C: .long 0 | master cycle in ticks (0 = INF) dj_L: .long 0 | lcm of every tps (landing grid) diff --git a/sdk/octatrack/modules/direct-jump-kyoti/upstream/README.md b/sdk/octatrack/modules/direct-jump-kyoti/upstream/README.md index e35d7f4d85..fa85e54097 100644 --- a/sdk/octatrack/modules/direct-jump-kyoti/upstream/README.md +++ b/sdk/octatrack/modules/direct-jump-kyoti/upstream/README.md @@ -4,7 +4,8 @@ An optional immediate pattern change for the Octatrack, toggled from the front panel with **`[PTN]` + `[YES]`**. A cued pattern takes over on the **next step** instead of waiting for the current one to finish, and the landing is **locked to the master clock**: the new pattern plays exactly where it would be had it been -running since START, whatever its track lengths, scales or master settings — +running since the **last restart** — START, or the last normal pattern change — +whatever its track lengths, scales or master settings — never shifted by a step, never a fraction of a step off, and its first trig always wins. @@ -16,7 +17,11 @@ it behaves exactly as stock. first sounding trig of the new pattern, so a sound still ringing from the old pattern never takes the new pattern's settings (V7.2; a stock change applies them at once). - Trig conditions do not start again: every A:B counter stands where the new pattern's - would, had it played since START (V7.0.2; a stock change restarts them). + would, had it played since that restart (V7.0.2; a stock change restarts them). +- A normal pattern change (DIRECT JUMP off, a chain, the arranger) is a restart, as on + stock: after one, a jump lands in phase with the pattern that started there, and its + trig conditions count from there too (V7.3) — the moment RELOAD_FROM_PROJECT and Clyps + count from as well. - With SILENCE TRACKS on, a track the jump silences is released just before the step instead of being cut on it, so it does not pop (V7.2.2). - The last MIDI Program Change sent always names the pattern that plays. @@ -30,7 +35,7 @@ build); V7 is the clock-locked landing that this module ships. | file | what it is | |---|---| -| `manifest.py` | the octabam module declaration — one DRAM unit, four detours, the keymap slot | +| `manifest.py` | the octabam module declaration — one DRAM unit, five detours, the keymap slot | | `patch_directjump_v7.s` | the m68k source; the only truth for the unit's bytes | The standalone image (this repo's own build, outside octabam) is @@ -45,7 +50,7 @@ mechanism — it arms that countdown and prepares the snapshot on the landing ti (`0xFA`) that a jump must not send, and owns the `[PTN]`-held `[YES]` key. The pattern-boundary body, the rebuild loops and every per-track counter are stock. -Four detours, six bytes each, plus one function pointer: +Five detours, six bytes each, plus one function pointer: | site | symbol | what it displaces | |---|---|---| @@ -53,6 +58,7 @@ Four detours, six bytes each, plus one function pointer: | `0x400a221c` | `dj_nofa` | `tst.b (0x8000002a).l` — the MIDI START gate | | `0x40043418` | `dj_ptnrel` | `pea 0x400bf0f2` — `[PTN]` release, so the chooser stays shut | | `0x40009ebe` | `dj_lfoq` | `tst.b (0x80000050).l` — the light Part apply's LFO AUTO CHANGE test: the one apply after a jump leaves each track's LFO setup to that track's first trig | +| `0x400a4850` | `dj_swres` | `jsr 0x400a539c` — stock's pattern switch calling COND_RESET(-1): the jump's time origin restarts there (V7.3); `dj_swres` tail-jumps COND_RESET, which still sees the caller's return address and argument | | `0x400bf0c0` | `dj_toggle` | the `[PTN]`-layer YES press slot, all-NULL in stock | **State:** one word, `DJ_MODE` (0 = OFF/stock, 1 = ON), kept **inside the code unit** @@ -102,15 +108,22 @@ AUTO CHANGE on a ringing sample keeps its LFO until its own track's first trig. **Emulator only** (`ot_emu`, Unicorn on real image bytes): Program Change on fast re-cues, MIDI tracks, and START SILENT (exactly as on a stock pattern change in the emulator, not exercised on the unit). The trig conditions also equal a never-switched -reference run's at every tick after each jump (`tools/cmp_reflock.py --cond`). +reference run's at every tick after each jump (`tools/cmp_reflock.py --cond`). After a stock +pattern change, a V7.3 jump's positions and trig conditions equal a run that changed straight to +the jump's pattern the stock way, and a RELOAD_FROM_PROJECT reload after the jump stays in step. + +**V7.3 on hardware (2026-11-16):** KYOTI V1.8C with V7.3 (`KY18C DJR1`, the FINAL's mainos +`9d1a29c9…`): after a normal change from a 16-step A01 to a 12-step A02, a jump to a 12-step A03 +lands in phase with A02, `1:2` trigs stay in step across it, and a Clyps one-track load after it +stays in step. RELOAD after a jump: emulator only. Everything the emulators prove is control flow and image bytes, not how the unit sounds. Nothing here has been tested on an MKII. Reproduction: assembled with `m68k-elf-as -mcpu=5407` or `54455` (identical) and no -symbols, linked at `0x400d6d38` → 3846 bytes, sha256 `688978daa1ed86c0…`: V7.2.2, the -code of the standalone image above. octabam re-links it there on every build and -compares. +symbols, linked at `0x400d6d38` → 3938 bytes, sha256 `51478a6773f5b987…`: V7.3, the code +of the KYOTI V1.8C image above. V7.2.2 was 3846 bytes, `688978daa1ed86c0…`. +octabam re-links it there on every build and compares. ## Required: the bugfix bundle @@ -142,7 +155,8 @@ Either can be selected without the other; the sites are disjoint. - MKII is untested. - Hardware confirmation of Program Change on fast re-cues, MIDI tracks and START SILENT. -- This octabam form of V7.2.2 on hardware. +- This octabam form on hardware. +- RELOAD_FROM_PROJECT after a jump, on hardware. ## Design notes diff --git a/sdk/octatrack/modules/direct-jump-kyoti/verify.py b/sdk/octatrack/modules/direct-jump-kyoti/verify.py index 8a2e1f4d36..60a2e48ba5 100644 --- a/sdk/octatrack/modules/direct-jump-kyoti/verify.py +++ b/sdk/octatrack/modules/direct-jump-kyoti/verify.py @@ -11,8 +11,9 @@ Needs m68k-elf-as/ld/nm on PATH: the unit is assembled here for its symbol offsets. 1. The image (no emulator): the original OS matches the manifest's guards and the [PTN]-layer YES slot is - NULL; the image holds a jsr at the landing, MIDI START and light Part apply's LFO AUTO CHANGE sites and a - jmp at the [PTN] release, each onto the unit's own symbol, and the slot names dj_toggle. After boot, the + NULL; the image holds a jsr at the landing, MIDI START, light Part apply's LFO AUTO CHANGE and stock pattern + switch (COND_RESET call) sites and a jmp at the [PTN] release, each onto the unit's own symbol, and the slot + names dj_toggle. After boot, the unit in DRAM is the bytes the manifest's reference names. 2. The toggle, by the keys (MKII panel, empty card), on this image and on the original OS: OFF after boot; [PTN] + [YES] turns it ON with a toast, and releasing [PTN] closes the toast and leaves the pattern @@ -44,8 +45,15 @@ 8. SILENCE TRACKS (V7.2.2): with the project's SILENCE TRACKS on and two tracks' START SILENT set to OFF, the jump calls stock's note-off once for each of the six silenced audio tracks, on the tick after the landing, and for no other track. -What it cannot see: a real unit's timing, audio (the pop itself), external MIDI gear, the arranger and chains, -an MKI panel. +9. The last restart (V7.3): [PLAY] on A01, a stock pattern change (DIRECT JUMP off) to A02, then DIRECT JUMP on + and a jump to A03 a few steps into A02; against a reference run that changed from A01 straight to A03 on the + same tick (DIRECT JUMP on, idle, from the same tick). From the tick after the landing every tick's sequencer + state and trig-condition state equals the reference's (the author's cmp_reflock.py --ref-for). Ticks are + counted from [PLAY] by the unit's tick hook, so a re-based clock cannot hide a shift. Twice: 16 -> 12 -> 12 + steps at 1x (the author's hardware case), and 1x -> 12 steps at 2x -> 12 steps at 3/4x (the switch's first + step runs at the outgoing rate). Stock's switch runs the COND_RESET call once, for the stock change only. +What it cannot see: a real unit's timing, audio (the pop itself), external MIDI gear, the arranger, an MKI +panel. """ import ast import hashlib @@ -82,6 +90,7 @@ # [FILL] press (0x40050050): it latches FILL for every track (0x46107959 or 0x46107969). COND, COND_RESET, FILL_LATCH = (0x46107918, 0x46107989), 0x400a539c, 0x400a5460 TRK_APPLY, NOTE_OFF, LIGHT_APPLY = 0x40001f18, 0x40008f84, 0x40009e00 # (bank, part, t); (t); (bank, part) +SWRES_SITE = 0x400a4850 # stock's switch block: `jsr COND_RESET` (V7.3: jsr dj_swres) LFO_AUTO, SILENCE_DEF = 0x80000050, 0x8000004f # LFO AUTO CHANGE; SILENCE TRACKS (a START SILENT byte of -1 uses it) FAILS = [] SPAN = [0x10000] # the unit's length, from the manifest (main): calls made from inside it @@ -481,6 +490,78 @@ def part_silence(image, symbols): "and nothing else: %s" % (landed, None if landed is None else landed + 1, released)) +def part_restart(image, symbols, name, x, y, cue_x=40, dj_on=100, cue_y=114, until=300, window=8): + """V7.3: [PLAY] on A01 (16 steps, 1x); pattern `x` = (length, master scale byte) cued as a stock change at tick + `cue_x`; DIRECT JUMP on at `dj_on`; pattern `y` jumped to at `cue_y`. The reference cues y the stock way at + `cue_x` and turns DIRECT JUMP on at `dj_on`. Ticks: [PLAY] = 1, then one per call of the unit's tick hook + (dj_land), which runs every tick whatever DJ_MODE and dj_T say.""" + runs, switches, unit = {}, {}, None + for jump in (False, True): + with tempfile.TemporaryDirectory(prefix="dj-gate.") as directory: + port = Port(image, pathlib.Path(directory)) + try: + unit = port.int(0x400bf0c0) + for index, (length, scale) in ((1, x), (2, y)): + shape(port, index, length=length) + port.poke(PAT_BASE + index * PAT_STRIDE + 0x8e54, bytes([scale])) + land, swres = unit + symbols["dj_land"], SWRES_SITE + port.send("watch %d,%d" % (land, swres)) + start(port) + seen, tick, pending, ran = {}, None, [(cue_x, 1 if jump else 2), (dj_on, None)] + ([(cue_y, 2)] if jump else []), [] + while tick is None or tick < until: + port.send("run 4") + rows = port.records() + ran += [(tick, row) for row in rows if row[0] == swres] + if tick is None: + clock = port.int(unit + symbols["dj_T"]) + if clock > 0: + tick = clock + else: + tick += sum(row[0] == land for row in rows) + if tick is None: + continue + seen[tick] = (port.int(ACT_PAT, 1), engine(port), port.mem(COND[0], COND[1] - COND[0])) + while pending and tick >= pending[0][0]: + what = pending.pop(0)[1] + if what is None: + port.poke(unit + symbols["DJ_MODE"], b"\x00\x00\x00\x01") + else: + pattern(port, what, 2) + runs[jump], switches[jump] = seen, ran + finally: + port.close() + reference, run = runs[False], runs[True] + master = ENGINE[0][1] - ENGINE[0][0] + changed = lambda r, index: min((t for t, (act, _, _) in r.items() if act == index), default=None) + switch = changed(reference, 2) + check(switch is not None and changed(run, 1) == switch and len(switches[False]) == 1 and len(switches[True]) == 1, + name + ": the stock change lands at tick %s in both runs (A02 in the run, A03 in the reference), and stock's " + "switch calls COND_RESET through 0x%x once in each (%d, %d): the jump never does" % ( + switch, SWRES_SITE, len(switches[False]), len(switches[True]))) + phase = lambda r, t: int.from_bytes(r[t][1][master:master + 2], "big") if t in r else None + longest = max(phase(reference, t) for t, (act, _, _) in reference.items() if act == 2) + 1 + check(longest == y[0], name + ": the reference plays the edited A03 (master %d steps)" % longest) + if x == y: + check(phase(run, cue_y) == phase(reference, cue_y), name + ": when the jump is cued, A02 and the reference's A03 " + "are on the same master step (%s, %s): the same pattern length since the same restart" % ( + phase(run, cue_y), phase(reference, cue_y))) + landed = min((t for t, (act, _, _) in run.items() if act == 2), default=None) + check(landed is not None and cue_y <= landed <= cue_y + window, + name + ": cued at tick %d, landed at tick %s (window %d)" % (cue_y, landed, window)) + if landed is None: + return + common = [t for t in sorted(run) if landed < t <= until and t in reference] + wrong = [t for t in common if run[t][:2] != reference[t][:2]] + check(len(common) > 150 and not wrong, name + ": %d ticks after the landing equal the reference run (A03's master step " + "at tick %d: %s, the reference's %s)%s" % (len(common), landed + 1, phase(run, landed + 1), phase(reference, landed + 1), + "" if not wrong else ", first difference at tick %d" % wrong[0])) + wrong = [t for t in common if run[t][2] != reference[t][2]] + counters = sorted({int.from_bytes(run[t][2][4 * k:4 * k + 4], "big") for t in common for k in range(16)}) + check(len(common) > 150 and not wrong and len(counters) > 1, + name + ": the trig conditions (A:B counters %d..%d, FILL and PRE latches) equal the reference on the same " + "ticks%s" % (counters[0], counters[-1], "" if not wrong else ", first difference at tick %d" % wrong[0])) + + def power_cycle(image, battery, symbols): with tempfile.TemporaryDirectory(prefix="dj-gate.") as directory: work = pathlib.Path(directory) @@ -525,7 +606,8 @@ def main(): facts, image, stock = declared(), IMAGE.read_bytes(), STOCK.read_bytes() at = lambda address: address - BASE print("1. the image") - for site in ("LAND_HOOK", "NOFA_HOOK", "PTNREL_HOOK", "LFOQ_HOOK", "TS_HOOK"): + check(facts["SWRES_HOOK"] == SWRES_SITE, "the manifest's switch site is the one part 9 watches (%#x)" % SWRES_SITE) + for site in ("LAND_HOOK", "NOFA_HOOK", "PTNREL_HOOK", "LFOQ_HOOK", "SWRES_HOOK", "TS_HOOK"): length, digest = facts["guards"][site] address = facts[site] check(hashlib.sha256(stock[at(address):at(address) + length]).hexdigest() == digest, "the original OS matches the guard at %#x" % address) @@ -537,7 +619,8 @@ def main(): "the source links to the manifest's reference (%d bytes)" % facts["UNIT_BYTES"]) unit = int.from_bytes(image[at(slot):at(slot) + 4], "big") for site, opcode, name in (("LAND_HOOK", b"\x4e\xb9", "dj_land"), ("NOFA_HOOK", b"\x4e\xb9", "dj_nofa"), - ("PTNREL_HOOK", b"\x4e\xf9", "dj_ptnrel"), ("LFOQ_HOOK", b"\x4e\xb9", "dj_lfoq")): + ("PTNREL_HOOK", b"\x4e\xf9", "dj_ptnrel"), ("LFOQ_HOOK", b"\x4e\xb9", "dj_lfoq"), + ("SWRES_HOOK", b"\x4e\xb9", "dj_swres")): address = facts[site] check(image[at(address):at(address) + 6] == opcode + (unit + symbols[name]).to_bytes(4, "big"), "%#x holds a %s to %s" % (address, "jsr" if opcode[1] == 0xb9 else "jmp", name)) @@ -589,6 +672,9 @@ def main(): part_publish(IMAGE, symbols) print("8. SILENCE TRACKS: the silenced tracks released first") part_silence(IMAGE, symbols) + print("9. the last restart: a jump after a stock pattern change") + part_restart(IMAGE, symbols, "16 -> 12 -> 12 steps at 1x", (12, 2), (12, 2)) + part_restart(IMAGE, symbols, "16 at 1x -> 12 at 2x -> 12 at 3:4x", (12, 0), (12, 3), cue_y=120, until=330, window=10) print("%d failed" % len(FAILS) if FAILS else "all passed") return 1 if FAILS else 0 diff --git a/src/community/module-changelogs/direct-jump-kyoti.json b/src/community/module-changelogs/direct-jump-kyoti.json index 30c8a100aa..7568476972 100644 --- a/src/community/module-changelogs/direct-jump-kyoti.json +++ b/src/community/module-changelogs/direct-jump-kyoti.json @@ -3,10 +3,10 @@ "version": "0.2.0-experimental", "date": "2026-11-16", "changes": [ - "Trig conditions carry on across a jump: 1:2 and the other A:B counts stand where the new pattern's would had it played since PLAY. A held [FILL] stays on, and a PRE trig right after the jump plays.", + "A jump now counts from the last restart, PLAY or the last normal pattern change: after a normal change, the new pattern lands in phase with the one that started there.", + "Trig conditions carry on across a jump: 1:2 and the other A:B counts stand where the new pattern's would had it played since that restart. A held [FILL] stays on, and a PRE trig right after the jump plays.", "A jump now lands just before the step, so the new pattern's first step is never late, and a cue made in the playing pattern's last step lands on its grid point too.", - "With LFO AUTO CHANGE on, each track's new LFO settings arrive with that track's first trig of the new pattern, so a sound still ringing from the old pattern keeps its own.", - "With SILENCE TRACKS on, the tracks a jump silences are released just before the step instead of cut, so they no longer pop.", + "With LFO AUTO CHANGE on, each track's new LFO settings arrive with its first trig of the new pattern; with SILENCE TRACKS on, the tracks a jump silences are released just before the step, so they no longer pop.", "Known issue: the author tested these on his MKI in his own builds of the same code; this Modwerk build has not yet run on a unit." ] }, From f10fee9f62db2f73ddc4257ff00f7a9f4b0e5330 Mon Sep 17 00:00:00 2001 From: Zac-Kyoti <273702472+Zac-Kyoti@users.noreply.github.com> Date: Mon, 16 Nov 2026 18:31:50 -0800 Subject: [PATCH 023/415] Direct Jump Kyoti 0.2.0: V7.3 package, gate result, performance and documentation; hardware pending the author's MKI run USB package 0.2.0-experimental.mwrm rebuilt from 7595416db with scripts/build-modules-isolated.sh, modules:import --development and octatrack:module-packages: 4,526 bytes, 2f25a208..., seven sites. The stock scans, run as tools since base 0.7.5 stopped refusing on them: longest run 11 counted bytes, no 16-byte run. Tape Echo's and Euclid's standalone recipes re-pinned to the regenerated asset files. Native module-alone image MAIN OS 0361d75f... (same driver reproduces the V7.2.2 preparation's 3c7b1419... byte for byte): verify.py 74/74 passed; the V7.2.2 image fails part 9. Performance re-measured (dearest landing tick 9,090 authored, static 41,033, dj_swres 13; flood 156.7 us vs stock 155.7 us); perf:audit check passes. Captures byte-identical, provenance names the new image. Qualification source and image hashes updated. Co-Authored-By: Claude Opus 5.5 --- .../direct-jump-kyoti/0.2.0-experimental.mwrm | Bin 4374 -> 4526 bytes .../module-adapters/standalone-recipes.json | 16 ++--- .../modules/direct-jump-kyoti/TESTING.md | 27 ++++---- .../direct-jump-kyoti/evidence/hardware.md | 6 +- .../evidence/performance.json | 14 ++-- .../direct-jump-kyoti/media/capture.json | 2 +- .../direct-jump-kyoti/octamod.module.json | 62 +++++++++--------- .../module-changelogs/direct-jump-kyoti.json | 4 +- src/engine/assets/bootstrap-package.json | 2 +- src/engine/assets/coldfire-packages.json | 2 +- src/engine/assets/descriptor-recipes.json | 2 +- src/engine/assets/dsp-packages.json | 2 +- src/engine/assets/menu-recipes.json | 2 +- src/engine/assets/module-build.json | 28 ++++---- .../assets/octatrack-module-packages.json | 6 +- src/engine/assets/platform-writes.json | 2 +- src/engine/assets/requested-packages.json | 25 +++++-- src/engine/assets/resident-dsp.json | 2 +- src/engine/assets/rom-packages.json | 2 +- src/engine/assets/usb-audio-packages.json | 2 +- src/engine/assets/utility-packages.json | 2 +- 21 files changed, 111 insertions(+), 99 deletions(-) diff --git a/public/octatrack-modules/direct-jump-kyoti/0.2.0-experimental.mwrm b/public/octatrack-modules/direct-jump-kyoti/0.2.0-experimental.mwrm index bb031f83896e95535316b48f1f66d9dcb9cef4ed..8252cd7ef6674a9fa72256879730a4543050030b 100644 GIT binary patch delta 1139 zcmYk6e`p(J7{{OYa=E))F3GLcP-@B2WTaZVG@DwNm%3%4bZyohSt_f}A2g2UWd7j9 zwy4bR#Qd3Vbs^_fsZwR@)%)y%rx;FFQ9o zzs&-SvjqQ0;P1-@XO~vcMpWvGplDpK!*JAmY|;57xzFx7cRaS~J;!K&TPJ|4F$?5$ zc)5F}VuqJd+e@rl*x^Z8o^wIlbCuj~Pyuxpgg!?Dl#f`&zhT)N(_9w@);@rsGi?%Hm)o7%d;%tqy)cTzBLZMC$s9PJr7V;vyA%7^&*z;M|=|0c>b(^iaUm-JW zyAl>>?5@wU*A<=2UMnkaa;)g(S*LIJ;c3k2GV&XKE+M zEUxu*x=QK<@^N62x}3 zbX&yQ4wP#94Do|stWt)s5){PdLk&d~MMm+%U|;%ah{zBbA{ffLCzlWNh2Qf&_v88d zyLT>nCDNYl&t*XcI?X%lmQJW~0iS9=8kp2e^vNXGMymk+%GA$atcw*{dASn} zJdq0nJm=o&ir+uA(vdpl09-TxJocJAXwM1No-PVZ4gjkV&un0~%`PfYEeqd%+i?B+ zcu&>IcVHBV0G1j)x~nX_=4>> zh4CBy&31Hr|9=zXgtN2Jyph^y?)oWAN?p-X9+YcwVT|($S|3IstS*h`h~?#U>BO3d zFh+4k>hPuC%k0BHqz%o5Ccc_IxHQ_s3=zd4`yFC1RwE8ANC9#ihT;u)RqS}9et2|R4YXv&;U6+%=h||b>@25We(#EpXeVMpjvUEzD!rt zSI+vFP+x@k<%+r-ON7--5@1Ur!!?Mg)1{5wy*2e&s-`Y?ze}2DTKCoMnGtgsTGtLi zu-%r1SVrCrRO#lOG1XwL{)b^XZM4ui9}IM1RxgrvGo5Pp<5#mRt}b!?C9GRYd!&&#*SRdoiA$T^Y(LV5Wm$!-oG4U`dsep?TY*i zr}aK&;j+G=A}tVT?dAp1TARSH1?IkdDe}LJfeEY+5H_ z4}o%YL7*CXfk1Wj*8tvs0E{4^oiLWrL#H@!mcBLn=l%IebO76RnoG L 0); beside Clyps-like modules (none in Modwerk). ## The full name again (29 October 2026, no version change) diff --git a/sdk/octatrack/modules/direct-jump-kyoti/evidence/hardware.md b/sdk/octatrack/modules/direct-jump-kyoti/evidence/hardware.md index 3aa62f11a5..be6755175f 100644 --- a/sdk/octatrack/modules/direct-jump-kyoti/evidence/hardware.md +++ b/sdk/octatrack/modules/direct-jump-kyoti/evidence/hardware.md @@ -2,11 +2,11 @@ ## 0.2.0-experimental (pending) -Not run on a unit yet. The author has a hardware test image of the tested native build for his MKI: this module alone with every stock effect kept, MAIN OS SHA-256 `3c7b1419bc8c567dc4d09b6a675c36e5fb7e7fa3edfc231ebd43c368b7ebbd62`, version string MW_DJK020, built from this branch's source (TESTING.md). His results, with the date, the card `.bin` he flashed and what he tried, go here; until then nothing in this file is about 0.2.0. +Not run on a unit yet. The author has a hardware test image of the tested native build for his MKI: this module alone (DIRECT JUMP V7.3) with every stock effect kept, MAIN OS SHA-256 `0361d75f8b02ad49cae4802bfce8a0ef6de653b36d9fa2742f7cf960df35942f`, version string MW_DJK73, built from this branch's source (TESTING.md). His results, with the date, the card `.bin` he flashed and what he tried, go here; until then nothing in this file is about 0.2.0. -The checks asked for: the toggle and its toast; OFF after a power-on; a jump into a pattern on another Part; jumps between patterns of other lengths and scales (PER TRACK); a cue in the playing pattern's last step; 1:2 trig conditions across a jump, with [FILL] latched and a PRE trig after it; LFO AUTO CHANGE on with a sample ringing from the outgoing pattern; SILENCE TRACKS on (no pop); a Plays Free MIDI track in PER TRACK mode; Direct Jump off behaving as stock. The USB package `3185b05c…` cannot be installed on his unit (no beta access), so it is not part of this run. +The checks asked for: the toggle and its toast; OFF after a power-on; a jump into a pattern on another Part; jumps between patterns of other lengths and scales (PER TRACK); a cue in the playing pattern's last step; 1:2 trig conditions across a jump, with [FILL] latched and a PRE trig after it; a jump after a normal pattern change (16-step A01, a normal change to a 12-step A02, then a jump to a 12-step A03: A03 lands in phase with A02 and a 1:2 hi-hat stays in step); LFO AUTO CHANGE on with a sample ringing from the outgoing pattern; SILENCE TRACKS on (no pop); a Plays Free MIDI track in PER TRACK mode; Direct Jump off behaving as stock. The USB package `2f25a208…` is not part of this run. -His own builds of the same Direct Jump code (not Modwerk builds), 15 November 2026: the standalone image `140C_KDJ7` (mainos `7c6131e7…`) ended the SILENCE TRACKS pop at a Part-changing jump; KYOTI V1.8C (beside his Clyps module) passed landings at other lengths and scales, a cue in the last step, trig conditions across a jump and each track's Part with LFO AUTO CHANGE on. +His own builds of the same Direct Jump code (not Modwerk builds): on 15 November 2026 the standalone image `140C_KDJ7` (mainos `7c6131e7…`, V7.2.2) ended the SILENCE TRACKS pop at a Part-changing jump, and KYOTI V1.8C (beside his Clyps module) passed landings at other lengths and scales, a cue in the last step, trig conditions across a jump and each track's Part with LFO AUTO CHANGE on; on 16 November 2026 KYOTI V1.8C with V7.3 (`KY18C DJR1`, mainos `9d1a29c9…`): after a normal change from a 16-step A01 to a 12-step A02, a jump to a 12-step A03 landed in phase with A02, 1:2 trigs stayed in step, and a Clyps load after the jump stayed in step. ## 0.1.2-experimental (25 October 2026) diff --git a/sdk/octatrack/modules/direct-jump-kyoti/evidence/performance.json b/sdk/octatrack/modules/direct-jump-kyoti/evidence/performance.json index cccd1ce1ff..65195a0b13 100644 --- a/sdk/octatrack/modules/direct-jump-kyoti/evidence/performance.json +++ b/sdk/octatrack/modules/direct-jump-kyoti/evidence/performance.json @@ -5,18 +5,18 @@ "kind": "coldfire", "cycles": { "unit": "cycles/event", - "static": 648752, - "measured": 145312, + "static": 656528, + "measured": 145440, "budget": 2200000, - "method": "Authored instructions of the sequencer-tick hook (dj_land) per tick, priced at 16 core cycles each (the conservative ColdFire V4 envelope of the earlier records); the stock routines it calls (Program Change, the kernel post, the per-track Part apply 0x40001f18, the note-off 0x40008f84) are stock cost and are excluded from both figures. Static: 40,547, an upper bound counted mechanically from patch_directjump_v7.s as linked: every instruction of every routine dj_land can reach counted once per iteration of each loop around it (all paths at once), loops at their caps (the arming scan 120, the 16-track loops 16, the 8-track loops 8, three event slots, Euclid's gcd 11, the MIDI Part copy 32/36/16 bytes), each call adding its callee's bound, dl_commit once (its two call sites are exclusive). Measured on the module-alone native image (MAIN OS 3c7b1419...) under ot_emu --mkii (built from this checkout's sdk/octabam/tools/emu/ot_emu, SHA-256 87d73ccf...), 16 Nov 2026: PC watches on dj_land's entry and the hook's return 0x400a1f78, on each stock routine the unit calls and the unit's return site after it, and on the frame interrupt's entry and epilogue (its instructions removed when it preempts the tick). Scenarios: OFF; ON idle; a 16-step pattern cued at the six phases of a step; a 7-step pattern on Part 2 and a PER TRACK pattern (2x to 1/8x, MIDI tracks at 3/2x to 3/4x), both with LFO AUTO CHANGE and SILENCE TRACKS on, every MIDI LFO on a designer wave; and re-jumps while all 16 tracks still wait for their first trig. OFF 30 instructions a tick, ON idle 45; while tracks wait for their first trig up to 1,898 a tick; an ordinary landing tick 4,237; the boundary tick after it with SILENCE TRACKS and every track published at once 4,843 (13,195 with the stock calls); the dearest, 9,082 (17,229 with the stock calls): a cue landing on its arming tick that first publishes 16 waiting tracks (8 MIDI Part copies). Budget: the code runs in the sequencer tick interrupt (level 3, below the level-5 DSP frame interrupt, which preempts it), so its deadline is the next tick: one tick at the Octatrack's top tempo of 300 BPM is 8.33 ms, 2,200,000 cycles at 264 MHz. The MIDI START gate (dj_nofa, 98 instructions at most, the landing tick only) and dj_lfoq (7, in the frame interrupt's light Part apply) are outside dj_land. Not chip timing." + "method": "Authored instructions of the sequencer-tick hook (dj_land) per tick, priced at 16 core cycles each (the conservative ColdFire V4 envelope of the earlier records); the stock routines it calls (Program Change, the kernel post, the per-track Part apply 0x40001f18, the note-off 0x40008f84) are stock cost and are excluded from both figures. Static: 41,033, an upper bound counted mechanically from patch_directjump_v7.s as linked: every instruction of every routine dj_land can reach counted once per iteration of each loop around it (all paths at once), loops at their caps (the arming scan 120, the 16-track loops 16, the 8-track loops 8, three event slots, Euclid's gcd 11, the MIDI Part copy 32/36/16 bytes), each call adding its callee's bound, dl_commit once (its two call sites are exclusive). Measured on the module-alone native image (MAIN OS 0361d75f...) under ot_emu --mkii (built from this checkout's sdk/octabam/tools/emu/ot_emu, SHA-256 87d73ccf...), 16 Nov 2026 (V7.3): PC watches on dj_land's entry and the hook's return 0x400a1f78, on each stock routine the unit calls and the unit's return site after it, and on the frame interrupt's entry and epilogue (its instructions removed when it preempts the tick). Scenarios: OFF; ON idle; a 16-step pattern cued at the six phases of a step; a 7-step pattern on Part 2 and a PER TRACK pattern (2x to 1/8x, MIDI tracks at 3/2x to 3/4x), both with LFO AUTO CHANGE and SILENCE TRACKS on, every MIDI LFO on a designer wave; re-jumps while all 16 tracks still wait for their first trig; and a stock pattern change with Direct Jump off followed by jumps (V7.3's restart frame). OFF 30 instructions a tick, ON idle 45; while tracks wait for their first trig up to 1,898 a tick; an ordinary landing tick 4,245, also after a stock pattern change; the boundary tick after it with SILENCE TRACKS and every track published at once 4,843 (13,195 with the stock calls); the dearest, 9,090 (17,237 with the stock calls): a cue landing on its arming tick that first publishes 16 waiting tracks (8 MIDI Part copies). Budget: the code runs in the sequencer tick interrupt (level 3, below the level-5 DSP frame interrupt, which preempts it), so its deadline is the next tick: one tick at the Octatrack's top tempo of 300 BPM is 8.33 ms, 2,200,000 cycles at 264 MHz. The MIDI START gate (dj_nofa, 98 instructions at most, the landing tick only) dj_lfoq (7, in the frame interrupt's light Part apply) and dj_swres (13, once on the tick of a stock pattern change, in stock's switch block before it calls COND_RESET) are outside dj_land. V7.2.2 measured the same way: static 40,547, dearest 9,082; V7.3 adds 8 instructions to a landing tick (the restart frame's offset) and none to the others. Not chip timing." }, "load": { "frameUs": 362.8, "stockLongestUs": 155.7, - "moduleLongestUs": 155.9, + "moduleLongestUs": 156.7, "stockIdlePercent": 54.87, - "moduleIdlePercent": 54.56, - "method": "Emulator, not hardware: ot_emu --mkii --dsp --frame (the port above), 16 Nov 2026. Two native static-stock images: the original MAIN OS and the module-alone image, Direct Jump ON. The same 15 s on both from PLAY: one three-byte message every ms (notes on and off and CCs on channels 1-8, 1,000 a second) plus a MIDI clock byte every 10 ms (250 BPM), A02 edited in RAM to 7 steps on Part 2 with trigs on two audio tracks and one MIDI track, LFO AUTO CHANGE on, and a cue every second alternating A01 and A02. Longest frame interrupt: the most instructions between the frame handler's entry (watched at 0x4000aad4) and its epilogue 0x4000d9a6 over about 45,200 frames, priced in the port's own time (3,990 instructions a sample, so one is 362.8 / 63,840 us): 27,399 stock, 27,428 with the module. Idle: the port's own share, 100 x (1 - executed instructions / (3,990 x elapsed samples)). The module's tick work runs in the level-3 sequencer tick interrupt, which the frame interrupt preempts; in the frame interrupt it adds only dj_lfoq in the light Part apply." + "moduleIdlePercent": 54.57, + "method": "Emulator, not hardware: ot_emu --mkii --dsp --frame (the port above), 16 Nov 2026. Two native static-stock images: the original MAIN OS and the module-alone image, Direct Jump ON. The same 15 s on both from PLAY: one three-byte message every ms (notes on and off and CCs on channels 1-8, 1,000 a second) plus a MIDI clock byte every 10 ms (250 BPM), A02 edited in RAM to 7 steps on Part 2 with trigs on two audio tracks and one MIDI track, LFO AUTO CHANGE on, and a cue every second alternating A01 and A02. Longest frame interrupt: the most instructions between the frame handler's entry (watched at 0x4000aad4) and its epilogue 0x4000d9a6 over about 45,200 frames, priced in the port's own time (3,990 instructions a sample, so one is 362.8 / 63,840 us): 27,399 stock, 27,578 with the module (V7.2.2 measured 27,428 the same way). Idle: the port's own share, 100 x (1 - executed instructions / (3,990 x elapsed samples)). The module image is V7.3's (MAIN OS 0361d75f...); the original OS figures are the same run's as before (same image, same port). The module's tick work runs in the level-3 sequencer tick interrupt, which the frame interrupt preempts; in the frame interrupt it adds only dj_lfoq in the light Part apply." }, "stress": { "floodMessagesPerSecond": 1000, @@ -25,7 +25,7 @@ "stuckNotes": 0, "hangs": 0, "dropped": 0, - "droppedExplanation": "Emulator, not hardware, the run above on the module image with Direct Jump ON: 15,000 three-byte messages and 1,500 clock bytes; 15 cues gave 15 jumps, the original OS under the same input changed pattern 4 times (each cue waits for the pattern end). At 4.71 s the flood left the transport state at 2 on both images alike, and the run pressed PLAY once. Dropped: counted at the MIDI thread's handlers (note on 0x4000e018, note off 0x4000db98, CC 0x4000e79c, clock 0x40005a48): every type's entries were at least the messages sent (a few more note entries, the same on the original OS), none missing. Stuck notes: no samples are loaded and nothing was sent to MIDI OUT, so audible stuck notes could not occur here. Hangs: frames advanced to the end and the transport was running. Bypass: the module's OFF state is checked in the gate (verify.py), not in this run." + "droppedExplanation": "Emulator, not hardware, the run above on the module image with Direct Jump ON: 15,000 three-byte messages and 1,500 clock bytes; 15 cues gave 15 jumps, the original OS under the same input changed pattern 4 times (each cue waits for the pattern end). At 4.71 s the flood left the transport state at 2 on both images alike, and the run pressed PLAY once. Dropped: counted at the MIDI thread's handlers (note on 0x4000e018, note off 0x4000db98, CC 0x4000e79c, clock 0x40005a48): every type's entries were at least the messages sent (a few more note entries, as on the original OS), none missing. Stuck notes: no samples are loaded and nothing was sent to MIDI OUT, so audible stuck notes could not occur here. Hangs: frames advanced to the end and the transport was running. Bypass: the module's OFF state is checked in the gate (verify.py), not in this run." }, "hardwareEvidence": { "status": "pending", diff --git a/sdk/octatrack/modules/direct-jump-kyoti/media/capture.json b/sdk/octatrack/modules/direct-jump-kyoti/media/capture.json index eea1ff7fdb..4ce4e476d6 100644 --- a/sdk/octatrack/modules/direct-jump-kyoti/media/capture.json +++ b/sdk/octatrack/modules/direct-jump-kyoti/media/capture.json @@ -1,6 +1,6 @@ { "firmware": "1.40C", - "imageSha256": "3c7b1419bc8c567dc4d09b6a675c36e5fb7e7fa3edfc231ebd43c368b7ebbd62", + "imageSha256": "0361d75f8b02ad49cae4802bfce8a0ef6de653b36d9fa2742f7cf960df35942f", "emulatorSha256": "87d73ccf8519e0ff8746ddf570fceb00f1ea305284c05379dcfe54a1d1954de8", "setup": "Headless ot_emu; MKII panel; stopped transport; 128\u00d764 LCD at integer scale 6.", "palette": { diff --git a/sdk/octatrack/modules/direct-jump-kyoti/octamod.module.json b/sdk/octatrack/modules/direct-jump-kyoti/octamod.module.json index 0893d477cd..2a2023fa54 100644 --- a/sdk/octatrack/modules/direct-jump-kyoti/octamod.module.json +++ b/sdk/octatrack/modules/direct-jump-kyoti/octamod.module.json @@ -90,20 +90,20 @@ "recorded": "16 November 2026; source assembly, the native image of this module alone and the ColdFire port", "storage": { "label": "DRAM code and detours", - "display": "3,888 B code and state + five 6 B detours + one 4 B pointer", - "value": 3922, + "display": "3,980 B code and state + six 6 B detours + one 4 B pointer", + "value": 4020, "unit": "bytes", "method": "static", - "conditions": "Two linked units in the DRAM reserve: Direct Jump's 3,826 bytes (code, two toast strings and 172 bytes of state) and the MIDI Plays-Free fix's 62 bytes of code; five six-byte detours over stock instructions and the [PTN]-layer YES press pointer. The USB package carries the units aligned, 4,374 bytes in all. No DSP memory, no saved data.", + "conditions": "Two linked units in the DRAM reserve: Direct Jump's 3,918 bytes (code, two toast strings and 176 bytes of state) and the MIDI Plays-Free fix's 62 bytes of code; six six-byte detours over stock instructions and the [PTN]-layer YES press pointer. The USB package carries the units aligned, 4,526 bytes in all. No DSP memory, no saved data.", "source": "TESTING.md" }, "processing": { "label": "ColdFire, per sequencer tick", - "display": "30 instr. a tick OFF, 45 ON; at most 9,082 on a landing tick", - "value": 9082, + "display": "30 instr. a tick OFF, 45 ON; at most 9,090 on a landing tick", + "value": 9090, "unit": "instructions/event", "method": "emulator", - "conditions": "Authored instructions of the tick hook under ot_emu, worst at a cue that lands on its arming tick while all 16 tracks still wait for their first trig after the previous jump; the stock routines a landing calls (Program Change, the kernel posts, the per-track Part apply, the note-off) bring it to 17,229. While tracks wait for their first trig, up to 1,898 a tick. The tick interrupt runs at level 3, below the DSP frame interrupt. Not chip timing.", + "conditions": "Authored instructions of the tick hook under ot_emu, worst at a cue that lands on its arming tick while all 16 tracks still wait for their first trig after the previous jump; the stock routines a landing calls (Program Change, the kernel posts, the per-track Part apply, the note-off) bring it to 17,237. While tracks wait for their first trig, up to 1,898 a tick. A stock pattern change adds 13 instructions (dj_swres) to stock's switch on that tick. The tick interrupt runs at level 3, below the DSP frame interrupt. Not chip timing.", "source": "TESTING.md" }, "impact": { @@ -111,7 +111,7 @@ "cpu": { "level": "minimal", "basis": "measured-comparison", - "rationale": "30 executed instructions a sequencer tick while OFF and 45 while ON; up to 1,898 a tick while tracks wait for their first trig; at most 9,082 authored (17,229 with the stock routines it calls) on the tick a jump lands (ot_emu). The tick interrupt runs at level 3, below the level-5 DSP frame interrupt. Under a 15 s MIDI flood with a jump every second, the longest frame interrupt was 0.2 us longer than the original OS's (155.9 us in the port's time) and idle 0.31 points lower. Time on the unit is not measured.", + "rationale": "30 executed instructions a sequencer tick while OFF and 45 while ON; up to 1,898 a tick while tracks wait for their first trig; at most 9,090 authored (17,237 with the stock routines it calls) on the tick a jump lands, and 13 on the tick of a stock pattern change (ot_emu). The tick interrupt runs at level 3, below the level-5 DSP frame interrupt. Under a 15 s MIDI flood with a jump every second, the longest frame interrupt was 1.0 us longer than the original OS's (156.7 us against 155.7 us in the port's time) and idle 0.30 points lower. Time on the unit is not measured.", "source": "TESTING.md" }, "dsp": { @@ -123,16 +123,16 @@ "memory": { "level": "minimal", "basis": "measured-comparison", - "rationale": "3,888 bytes of ColdFire code and state in the DRAM reserve (172 bytes of state) and 34 bytes of stock writes; no DSP memory and no saved data.", + "rationale": "3,980 bytes of ColdFire code and state in the DRAM reserve (176 bytes of state) and 40 bytes of stock writes; no DSP memory and no saved data.", "source": "TESTING.md" } } }, "tests": { "report": "TESTING.md", - "summary": "0.2.0 has not run on a unit; its native image of this module alone waits for the author's MKI run. Under the ColdFire port (verify.py, 60 checks, all passed on that image): OFF identical to the original OS through a pattern change; four jumps (16 steps with [FILL] latched; 7 steps on Part 2; PER TRACK lengths and scales; a cue in the last step) whose sequencer state and trig-condition state equal a reference run of the incoming pattern since START on every tick after the landing; each track's Part handed to the engine at its first sounding trig with LFO AUTO CHANGE on; the tracks SILENCE TRACKS silences released with stock's note-off the tick after the landing; and the MIDI Plays-Free stall, which the original OS shows and the module fixes. The author tested the same Direct Jump code on his MKI in his own builds on 15 November 2026; the 0.1.x USB package ran on the owner's MKII in October 2026.", + "summary": "0.2.0 has not run on a unit; its native image of this module alone waits for the author's MKI run. Under the ColdFire port (verify.py, 74 checks, all passed on that image): OFF identical to the original OS through a pattern change; four jumps (16 steps with [FILL] latched; 7 steps on Part 2; PER TRACK lengths and scales; a cue in the last step) whose sequencer state and trig-condition state equal a reference run of the incoming pattern since START on every tick after the landing; two jumps after a stock pattern change (12 steps at 1x after 12 at 1x; 3/4x after 2x) that equal a run which changed straight to the jump's pattern; each track's Part handed to the engine at its first sounding trig with LFO AUTO CHANGE on; the tracks SILENCE TRACKS silences released with stock's note-off the tick after the landing; and the MIDI Plays-Free stall, which the original OS shows and the module fixes. The author tested the same Direct Jump code on his MKI in his own builds on 15 and 16 November 2026 (V7.3's restart in KYOTI V1.8C); the 0.1.x USB package ran on the owner's MKII in October 2026.", "hardwareStatus": "untested", - "evidenceRevision": "c62ee5a6f507d59789f17ce244fdffc343511a20", + "evidenceRevision": "7595416dbe052c4184af68730f51aae747091a42", "gates": [ "modules/direct-jump-kyoti/verify.py" ], @@ -154,23 +154,23 @@ }, "qualification": { "moduleVersion": "0.2.0-experimental", - "sourceSha256": "d57821657737c61dbe15c3962a48278fadb17ec076de048e0c91ea1aec77b402", - "imageSha256": "3c7b1419bc8c567dc4d09b6a675c36e5fb7e7fa3edfc231ebd43c368b7ebbd62", + "sourceSha256": "bf22d7dc7c27a047f9c7777c7616edb2887ee4fc36441a3e390960a26f38e328", + "imageSha256": "0361d75f8b02ad49cae4802bfce8a0ef6de653b36d9fa2742f7cf960df35942f", "cycles": [ { "processor": "coldfire", - "worstCase": 145312, - "maxConfiguration": 145312, + "worstCase": 145440, + "maxConfiguration": 145440, "maxInstances": 1, "budget": 2200000, "unit": "cycles/event", "method": "emulator", "conditions": { - "parameterExtremes": "OFF, ON while idle, the tick that arms a jump, the landing tick and the tick after it; 16-step and 7-step (Part 2) patterns and a PER TRACK pattern with tracks from 2x to 1/8x; LFO AUTO CHANGE and SILENCE TRACKS on, all 16 tracks waiting for a trig, every MIDI LFO on a designer wave.", + "parameterExtremes": "OFF, ON while idle, the tick that arms a jump, the landing tick and the tick after it, also after a stock pattern change (V7.3's restart frame); 16-step and 7-step (Part 2) patterns and a PER TRACK pattern with tracks from 2x to 1/8x; LFO AUTO CHANGE and SILENCE TRACKS on, all 16 tracks waiting for a trig, every MIDI LFO on a designer wave.", "parameterModulation": "Not applicable: one ON/OFF word toggled by a key gesture; no knob, lock, LFO or scene reaches it.", "modeSwitching": "Toggled ON and OFF while stopped and while playing; cues at the six phases of a step, re-jumps while every track still waits for its first trig, and jumps back to the previous pattern.", "maxLoad": "One instance per unit. Runs once per sequencer clock tick in the tick interrupt (level 3; its ICR read 3 in the port), below the level-5 DSP frame interrupt, which preempts it; its deadline is the next tick: 8.33 ms at the top tempo of 300 BPM (2,200,000 cycles at 264 MHz).", - "inputConditions": "Authored instructions of dj_land per tick under ot_emu (PC watches on its entry and the hook's return, on each stock routine it calls and the unit's return site after it, and on the frame interrupt, whose instructions are removed when it preempts the tick), priced at 16 cycles each: at most 9,082 (145,312 cycles), on a cue that lands on its arming tick and first publishes 16 waiting tracks; 17,229 with the stock routines it calls, which are stock cost. Static bound from the source, every reachable routine and loop at its cap: 40,547 (648,752). Not chip timing." + "inputConditions": "Authored instructions of dj_land per tick under ot_emu (PC watches on its entry and the hook's return, on each stock routine it calls and the unit's return site after it, and on the frame interrupt, whose instructions are removed when it preempts the tick), priced at 16 cycles each: at most 9,090 (145,440 cycles), on a cue that lands on its arming tick and first publishes 16 waiting tracks; 17,237 with the stock routines it calls, which are stock cost. Static bound from the source, every reachable routine and loop at its cap: 41,033 (656,528). dj_swres, outside dj_land in stock's switch block: 13, once per stock pattern change. Not chip timing." }, "report": "TESTING.md" } @@ -178,11 +178,11 @@ "memory": { "regions": [ { - "name": "ColdFire code, two toast strings and 172 bytes of state (Direct Jump's linked unit, DRAM)", + "name": "ColdFire code, two toast strings and 176 bytes of state (Direct Jump's linked unit, DRAM)", "space": "sdram", - "words": 3826, + "words": 3918, "wordBits": 8, - "bytes": 3826, + "bytes": 3918, "scope": "shared" }, { @@ -194,19 +194,19 @@ "scope": "shared" }, { - "name": "Five six-byte detours and the four-byte [PTN]-layer YES pointer, written over stock in place", + "name": "Six six-byte detours and the four-byte [PTN]-layer YES pointer, written over stock in place", "space": "cpu-flash", - "words": 34, + "words": 40, "wordBits": 8, - "bytes": 34, + "bytes": 40, "scope": "shared" } ], "perInstanceBytes": 0, - "sharedBytes": 3922, + "sharedBytes": 4020, "maxInstances": 1, - "totalBytes": 3922, - "conditions": "From the two linked units (3,826 and 62 bytes of code and data, no bss; the USB package carries the same bytes aligned) and the six stock writes. No DSP memory, no heap, no saved data.", + "totalBytes": 4020, + "conditions": "From the two linked units (3,918 and 62 bytes of code and data, no bss; the USB package carries the same bytes aligned) and the seven stock writes. No DSP memory, no heap, no saved data.", "report": "TESTING.md" }, "hardware": { @@ -263,8 +263,8 @@ "shows": "location-and-controls", "firmware": "1.40C", "moduleVersion": "0.2.0-experimental", - "imageSha256": "3c7b1419bc8c567dc4d09b6a675c36e5fb7e7fa3edfc231ebd43c368b7ebbd62", - "setup": "Headless ot_emu; MKII panel; 128×64 LCD at integer scale 6; DSP cores running; empty scratch card, its missing-project prompts dismissed with three NO presses; native initialized state, no saved project. Static native build of this module alone with every stock effect kept (MAIN OS 3c7b1419…)." + "imageSha256": "0361d75f8b02ad49cae4802bfce8a0ef6de653b36d9fa2742f7cf960df35942f", + "setup": "Headless ot_emu; MKII panel; 128×64 LCD at integer scale 6; DSP cores running; empty scratch card, its missing-project prompts dismissed with three NO presses; native initialized state, no saved project. Static native build of this module alone with every stock effect kept (MAIN OS 0361d75f…)." } }, { @@ -280,8 +280,8 @@ "shows": "controls", "firmware": "1.40C", "moduleVersion": "0.2.0-experimental", - "imageSha256": "3c7b1419bc8c567dc4d09b6a675c36e5fb7e7fa3edfc231ebd43c368b7ebbd62", - "setup": "Headless ot_emu; MKII panel; 128×64 LCD at integer scale 6; DSP cores running; empty scratch card, its missing-project prompts dismissed with three NO presses; native initialized state, no saved project. Static native build of this module alone with every stock effect kept (MAIN OS 3c7b1419…)." + "imageSha256": "0361d75f8b02ad49cae4802bfce8a0ef6de653b36d9fa2742f7cf960df35942f", + "setup": "Headless ot_emu; MKII panel; 128×64 LCD at integer scale 6; DSP cores running; empty scratch card, its missing-project prompts dismissed with three NO presses; native initialized state, no saved project. Static native build of this module alone with every stock effect kept (MAIN OS 0361d75f…)." } }, { @@ -297,8 +297,8 @@ "shows": "controls", "firmware": "1.40C", "moduleVersion": "0.2.0-experimental", - "imageSha256": "3c7b1419bc8c567dc4d09b6a675c36e5fb7e7fa3edfc231ebd43c368b7ebbd62", - "setup": "Headless ot_emu; MKII panel; 128×64 LCD at integer scale 6; DSP cores running; empty scratch card, its missing-project prompts dismissed with three NO presses; native initialized state, no saved project. Static native build of this module alone with every stock effect kept (MAIN OS 3c7b1419…)." + "imageSha256": "0361d75f8b02ad49cae4802bfce8a0ef6de653b36d9fa2742f7cf960df35942f", + "setup": "Headless ot_emu; MKII panel; 128×64 LCD at integer scale 6; DSP cores running; empty scratch card, its missing-project prompts dismissed with three NO presses; native initialized state, no saved project. Static native build of this module alone with every stock effect kept (MAIN OS 0361d75f…)." } } ] diff --git a/src/community/module-changelogs/direct-jump-kyoti.json b/src/community/module-changelogs/direct-jump-kyoti.json index 7568476972..513939b0ac 100644 --- a/src/community/module-changelogs/direct-jump-kyoti.json +++ b/src/community/module-changelogs/direct-jump-kyoti.json @@ -4,9 +4,9 @@ "date": "2026-11-16", "changes": [ "A jump now counts from the last restart, PLAY or the last normal pattern change: after a normal change, the new pattern lands in phase with the one that started there.", - "Trig conditions carry on across a jump: 1:2 and the other A:B counts stand where the new pattern's would had it played since that restart. A held [FILL] stays on, and a PRE trig right after the jump plays.", + "Trig conditions carry on across a jump: 1:2 and the other A:B counts stand where the new pattern's would since that restart. A held [FILL] stays on, and a PRE trig right after the jump plays.", "A jump now lands just before the step, so the new pattern's first step is never late, and a cue made in the playing pattern's last step lands on its grid point too.", - "With LFO AUTO CHANGE on, each track's new LFO settings arrive with its first trig of the new pattern; with SILENCE TRACKS on, the tracks a jump silences are released just before the step, so they no longer pop.", + "With LFO AUTO CHANGE on, each track's new LFOs arrive with its first trig of the new pattern; with SILENCE TRACKS on, the tracks a jump silences are released just before the step, without a pop.", "Known issue: the author tested these on his MKI in his own builds of the same code; this Modwerk build has not yet run on a unit." ] }, diff --git a/src/engine/assets/bootstrap-package.json b/src/engine/assets/bootstrap-package.json index 04b7fe439e..be6d9a7119 100644 --- a/src/engine/assets/bootstrap-package.json +++ b/src/engine/assets/bootstrap-package.json @@ -16,7 +16,7 @@ "reserveBytes": 10487808, "uncachedAlias": 134217728, "stageAlignment": 4096, - "sourceCommit": "c62ee5a6f507d59789f17ce244fdffc343511a20", + "sourceCommit": "7595416dbe052c4184af68730f51aae747091a42", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", diff --git a/src/engine/assets/coldfire-packages.json b/src/engine/assets/coldfire-packages.json index 3b28330f52..60d1afff4f 100644 --- a/src/engine/assets/coldfire-packages.json +++ b/src/engine/assets/coldfire-packages.json @@ -246,7 +246,7 @@ "sha256": "d4b22d2975297e76f90654f25ca6eee4d28a288f727f4b3482fe73616b051378" } ], - "sourceCommit": "c62ee5a6f507d59789f17ce244fdffc343511a20", + "sourceCommit": "7595416dbe052c4184af68730f51aae747091a42", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", diff --git a/src/engine/assets/descriptor-recipes.json b/src/engine/assets/descriptor-recipes.json index 2d28beb1af..2a99c22ad6 100644 --- a/src/engine/assets/descriptor-recipes.json +++ b/src/engine/assets/descriptor-recipes.json @@ -3324,7 +3324,7 @@ ] } ], - "sourceCommit": "c62ee5a6f507d59789f17ce244fdffc343511a20", + "sourceCommit": "7595416dbe052c4184af68730f51aae747091a42", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", diff --git a/src/engine/assets/dsp-packages.json b/src/engine/assets/dsp-packages.json index aa29a75783..925e732fec 100644 --- a/src/engine/assets/dsp-packages.json +++ b/src/engine/assets/dsp-packages.json @@ -2,7 +2,7 @@ "schema": 1, "revision": "b8deefc88b2c3e5f3c6158e364eb741df1924e1d", "license": "/licenses/octabam.txt", - "sourceCommit": "c62ee5a6f507d59789f17ce244fdffc343511a20", + "sourceCommit": "7595416dbe052c4184af68730f51aae747091a42", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", diff --git a/src/engine/assets/menu-recipes.json b/src/engine/assets/menu-recipes.json index a7f0eb03a7..bf9e77485a 100644 --- a/src/engine/assets/menu-recipes.json +++ b/src/engine/assets/menu-recipes.json @@ -994,7 +994,7 @@ "caveLimit": 1074625596 } ], - "sourceCommit": "c62ee5a6f507d59789f17ce244fdffc343511a20", + "sourceCommit": "7595416dbe052c4184af68730f51aae747091a42", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", diff --git a/src/engine/assets/module-build.json b/src/engine/assets/module-build.json index c4de190985..9ae38701b2 100644 --- a/src/engine/assets/module-build.json +++ b/src/engine/assets/module-build.json @@ -1,9 +1,9 @@ { "schemaVersion": 1, "kind": "source-packages", - "sourceCommit": "c62ee5a6f507d59789f17ce244fdffc343511a20", + "sourceCommit": "7595416dbe052c4184af68730f51aae747091a42", "nativeRevision": "b8deefc88b2c3e5f3c6158e364eb741df1924e1d", - "sourceTreeSha256": "729e67de71598186c5321d9b66ff3129285c98a70ff96eece1fb05933043da49", + "sourceTreeSha256": "2121632f9434129ccfdaacecdcd1823747e6cde3e44572bb290a6745044bfdce", "compilerSha256": "6e9c24522c3326dece280045b5e4313524a249f1d19dc6b4eaea5768d75554c9", "moduleVersions": { "miniverb": "0.2.3-experimental", @@ -43,47 +43,47 @@ "files": { "dsp-packages.json": { "bytes": 71427, - "sha256": "e5df8ae5f656a54e5a008ad4f7665c765c9c025e43333f535780941de1d8c4e8" + "sha256": "8682b2520f8195ed1b51ed3206a593c5e4e0a82f27581b824f99ceec888195f0" }, "resident-dsp.json": { "bytes": 8395, - "sha256": "71ea71c67c7c59afdf893584301745632329ca55f3946c190b840a4d614d328e" + "sha256": "a0e46ef971b5c05ca17b49903d5c7fe6a117413cb1091dd234b399b5d5bdb624" }, "coldfire-packages.json": { "bytes": 363634, - "sha256": "22b04fc9a90d1758b4cba1667de1bc5402b5d8aa3aae98e2669788d8bf51f702" + "sha256": "d727a64c92bcffa581ee8399cc824b3b88c089bf451db9e8abeab2e21e6ed95b" }, "rom-packages.json": { "bytes": 29810, - "sha256": "5d68cd1cd962efbd9d4d5799d6e5c374908735edcf9b886b52de9ca34e00af06" + "sha256": "07dfe2ebe48508da63dc3026943b1ad74a4f41684fc352f0942199810a68aadb" }, "bootstrap-package.json": { "bytes": 4021, - "sha256": "c18dc9d6f28a398514af8a14a3adf37a05124e4cb20919b867ec967d023be56a" + "sha256": "6060e676378a46ea2c60f6b4d1b8be5900e4396672b6015ae00bd16f240d0f80" }, "menu-recipes.json": { "bytes": 25416, - "sha256": "24b8ab8c994472dddefd37f6287561b5e93c443a507b277a57bef4eebc634df3" + "sha256": "dffb3c2633077aa6282e2fc33342b1e2f8a784a2831f49448af42430ee5a1dab" }, "descriptor-recipes.json": { "bytes": 64439, - "sha256": "57431b15d1621331704cc754c6b52596083cc7b15b17b3165d1e28d58ad695ad" + "sha256": "1c2ee56acadfca16e95d8160682d01ea22319995b2e37272be39f2f3eb97bea3" }, "platform-writes.json": { "bytes": 16999, - "sha256": "afe0e478e6a351dbea31be66db61c170f49f43e891c43da381c2ba050e71ca5f" + "sha256": "748f7e8c66c3f706360d6efc9084f6084532587997ebc718d966a2216283e357" }, "requested-packages.json": { - "bytes": 1339425, - "sha256": "4679c887ca00a4303a853452123e3d3836925d4480bb0c7d987ba5eb8609adb6" + "bytes": 1340162, + "sha256": "018449778c24c0c5d71d0b5dc2c204d511028738f5022949b64c945617ccbf46" }, "utility-packages.json": { "bytes": 13149, - "sha256": "282e30e51a1153405430bb60583a4ff2ca56bf50bddd32b8d20fc4cbe5cb1327" + "sha256": "d5d2135c230b7958e4df1b625addbda144b05de979616e4e8890a73dd885628d" }, "usb-audio-packages.json": { "bytes": 737791, - "sha256": "d0be5a6a0db578d33a13bc8e641789e722e9f30262bcca93d81b6364ae83af09" + "sha256": "73f74cfd966cd01ca4206e5317989d365ddcbbf97acf6b0a2458d0469077ec8a" } }, "approval": null, diff --git a/src/engine/assets/octatrack-module-packages.json b/src/engine/assets/octatrack-module-packages.json index 6c771f42b3..0be6800db0 100644 --- a/src/engine/assets/octatrack-module-packages.json +++ b/src/engine/assets/octatrack-module-packages.json @@ -396,14 +396,14 @@ "octabam": true, "abi": 7, "features": 1, - "sites": 6, + "sites": 7, "copies": 0, "fills": 0, "version": "0.2.0-experimental", "name": "DirectJmp Kyoti", "module": "075d79a3", - "bytes": 4374, - "sha256": "3185b05c49a07e36baf30cf854c4077d78b3beed7300d347f86f9b475666078e", + "bytes": 4526, + "sha256": "2f25a2084402f03ff3cd09e25cc59a90cadfaa714b21639e60567b03af8c533b", "path": "octatrack-modules/direct-jump-kyoti/0.2.0-experimental.mwrm" }, { diff --git a/src/engine/assets/platform-writes.json b/src/engine/assets/platform-writes.json index 25eae665e3..42f3af6ae8 100644 --- a/src/engine/assets/platform-writes.json +++ b/src/engine/assets/platform-writes.json @@ -492,7 +492,7 @@ "sha256": "8a5b26c7f7c97f1e945c2274fb2632e05fc94e7babb941e8b7c80f7e0f24bf61" } ], - "sourceCommit": "c62ee5a6f507d59789f17ce244fdffc343511a20", + "sourceCommit": "7595416dbe052c4184af68730f51aae747091a42", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", diff --git a/src/engine/assets/requested-packages.json b/src/engine/assets/requested-packages.json index 77971e68bc..4777666c33 100644 --- a/src/engine/assets/requested-packages.json +++ b/src/engine/assets/requested-packages.json @@ -1,7 +1,7 @@ { "schema": 1, "revision": "b8deefc88b2c3e5f3c6158e364eb741df1924e1d", - "sourceCommit": "c62ee5a6f507d59789f17ce244fdffc343511a20", + "sourceCommit": "7595416dbe052c4184af68730f51aae747091a42", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", @@ -1095,12 +1095,12 @@ "caveAddress": null, "source": "modules/direct-jump-kyoti/patch_directjump_v7.s", "sources": { - "modules/direct-jump-kyoti/patch_directjump_v7.s": "0b7bd48382fc78a0ad0e7e694f6533ef48f4f9d1724abc29aaeb54271221b2e8", - "modules/direct-jump-kyoti/manifest.py": "9e77237f2ac7f4158b51b5d9f70237617fe0429c0c9a3848adffbd76157300a9" + "modules/direct-jump-kyoti/patch_directjump_v7.s": "0df41e7c9ba5bff2b937a4cf8db316f233077b647634f5aeb6b56cf610498314", + "modules/direct-jump-kyoti/manifest.py": "14fef7f20657ced4e6c4f9b879992a9593a0e99000595c6005d654f7b6874321" }, - "bytes": 10436, - "code": "7f454c460102010000000000000000000001000400000001000000000000000000002784000000260034000000000028000800077001b0af00086600005c2039460d17425380660000504ab9460d1aec660000464ab9460e5cd06600003c203a0e8e0a800000000102800000000123c00000000041fa00344a80670441fa001c487800442f084eb94005a2b8508f700123c0460d173e4e754e75444952454354204a554d50204f4e0000444952454354204a554d50204f4646004fefffc448d77fff6100032c7001b0b9800065b8670842b900000000600652b9000000004aba0e0e670000887001b0b9800065b86600007c4ab9460d1aec660000724ab98000654666000068103a0d726700008c0c0000036612610008e6610008c0423900000000600001ba0c000001660001b21039800065c0b03a0d48660c1039800065bfb03a0d3d6710423980006687423900000000600000441039800066870c0000016600017c610002f2600001744a3a0d13670461000ab8103a0d020c000001660642398000668742390000000070ff13c000000000600001481039800065c00c00ffff67e2b039800065be66501039800065bfb039800065bd6642103a0cbf0c00ffff6700ffc2b039800065be660e103a0cadb039800065bd6700ffac70001039800065be2f0070001039800065bd2f004eb94009e884508f6000ff8c1039800065c0b03a0c77660c1039800065bfb03a0c6d67341039800065c013c0000000001039800065bf13c00000000070001039800065c02f0070001039800065bf2f004eb94009e884508f4a39800066876e00008e70001039800065bf72001239800065c0610005806100059c2e3a0c860687000000007c002007d0865280610006b04a806d12223a0c7c24004c4120024c012800b082670e52860c86000000786dd66000003c1039800065c013c0000000001039800065bf13c0000000002206528113c1800066870c81000000016608610001886000000a700113c0000000004a3a0ba16704610008f6103a0b900c0000016604610000124cd77fff4fef003c1039800066874e754a398000667e660000e070001039800065bd72001239800065be610004c2720012398000663d7006b2806302720241f9400aba5024301c001239800065b649c15281b2826d0000a274003439800065b2528202820000ffff203c00008e561232080049c16a0812398000004e49c141f9400d80dc26301c004a836f0a20024c4308014a81674220398000662c72ffb0816706b0826e526030203c00008e554a320800670e203c00008e503232080048c1600c203c00008e531232080049c170ffb2806724b2826e201039800065be13c0800065c01039800065bd13c0800065bf700113c0000000004e754a3a0a8e674c4239000000001039800065c0b039800065be66381039800065bfb039800065bd662a103a0a6413c0800065c0103a0a5b13c0800065bf1039800065be13c0400d816c41f9400d816b610000044e752f084879460d17ae43f940000c3c4e91508f4e754a3a0a276704610007cc1039800065be13c0800065c11039800065bd13c0800065c21039800065c013c0800065be1039800065bf13c0800065bd70001039800065bd223c0009b3404c01080072001239800065be243c00008ed84c021800d08145f9400e21e0d5c0610003422e3a0a2c06870000000023c700000000263a0a242007d0835380223a0a1e670c24004c4120024c012800908228004c43400423c4800066382a009a83548541f98000651643f98000653647fa09f649fa0a027c107200121b20054c4100007400141c7202b2826e0e22004c4210014c02180090816002700030c04219538666d4610004084279800066264279800066804279800066824279800066841039800065bd13c0400d816841f9400d81676100fed0610000861039800065be13c0400d816c41f9400d816b6100feb6700213c0000000004e75103a08de0c0000026636700313c0000000002f082f0141f9800065d372101010538010c0538166f61039800065b6538013c0800065b6221f205f4a3a08a64e754a398000002a4e754ab9460d1e706708700123c0460d1e6c4879400bf0f24ef94004341e223c00008e571032180013c0400d816a41f9400d81696100fe2e780376532c3c0000091a6100019223c446c7fa8023c400000000203c00285ff0d0b94610757c23c0800019e41039800065bd13c046c7ff40223c00008e571032180013c046c7ff627803263c000048fb2c3c000008b06100014623c446c7a12023c4000000007a004a3980001860661610398000002808000000670a4ab946104ca867027a012039461075640680000041a04a85660606800000313823c046c76aa6700123c046c76a222039461075640680000041a04a8567080480000041a0600604800000106823c046c76aaa1039800065bd13c046c7a850223c00008e571032180013c046c7a9346100037a600000022e3a07ea4aba07ee671e2c3a07e8200690ba07de2c4020074c4600002a404c06080022079280244147fa07d249fa07de41f94610791843f9461079797a107800181b7600161c660276014c0438004aba07a4660c2007d08453804c430000603e200ed08422004c43100124014c032800908224014a80670252822c0d4c026800240ad48453824c432002b481630224014a806706b5ce630252822006d08220c012fc000153856600ff964e757a0810323800671a0c000001670e0c00ffff660e4a398000004f67067001eba88880d68652857010b08566d64e75243c0009b3404c020800243c00008ed84c021800d08145f9400e21e0d5c04e7541f9400aba50203c00008e551e32080072004a076624203c00008e54123208007006b2806302720226301c00203c00008e537800183208006026203c00008e52123208007006b2806302720226301c00203c00008e503832080048c46e02780023c30000000020044c03080023c0000000002a0347fa068c49fa06984bf98000663e7c007008b0866f12203c0000091a4c060800068000000050601420065180223c000008b04c0108000680000048f843f208004a2900046708720012356800601672004a07660c203c00008e54123208006004122900017006b2806306243a0616600424301c0016c24a07660418c4600218d1200522024a81671426004c4130034c013800908326002001220360e84c4050054c02580052867010b0866600ff6423c5000000004e75263a05cad0835380223a05c6670c24004c4120024c0128009082908352804e752a394610757c263c00142ff841f98000190443f946c7e99847f946c7fe44613241f98000198447f946c7fe8c43f946c7faa4611e2a3946107564263c000020d041f946c76a2643f946c769c047f946c77be27c0078007000103368000900671a2204e789d28624301c009485b4836d0a42b11c0009801780680052847003b08466d452867008b08666ca4e75283a04aa7a00200550800104670a2f054eb940008f84588f52857008b08566e64e7541f9400aba50700010398000663d7206b0816302700226300c007a00223a04e4670c92835281b2ba04d26e027a0143f98000663e45f9800065d37c0072004a85671a70001031680022030c8000000006620422300c0092836a0272001581680052867010b08666d44e754a3a041a670a423900000000b0804e754a39800000504e754a398000005066024e751039800065bd13c000000000223c00008e571032180013c0000000002a394610757c068500142ff82839461075640684000020d07c007e02203a03c40c86000000086504203a03bc22060281000000075081030066102006610000484a8067062e3c0000fffe2006d08041fa039a31870800d08041fa03b0218508000c860000000865042184080052867010b0866600ffa6700113c00000000013c0000000004e7526000c80000000086412223c0000091a4c01080041f20800725060185180223c000008b04c0108000680000048d041f208007228700010301800223c00008e554a321800660c223c00008e537000103218002428000426107220b081640c76007201e1a95381c48160160480000000200c800000002064087201e1a95381c681848320024e754fefffe848d7070e70001039800065bd72001239800065be6100fc1a20066100ff5a4cd7070e4fef00184e757c0076002206d28141fa02a8700030301800672c0c800000fffe6614610000d44a8066186100ffae4a806710760160105380318018006704760160046100003c52867010b08666bc13c3000000004e757c002006d08041fa025a4a70080067046100001852867010b08666e64239000000004239000000004e752006d08041fa02324270080020060c8000000008650251802f007000103a02102f00103a02092f000c860000000864084eb940001f186004610000e64fef000c4e75202f000c0c800000000864064ef940001f1851802f40000c600000c4700113c0000000002f2f00082f2f00084eb940009e00508f4e754fefffe448d70c3e2006e58841fa01d22830080026060c8600000008642024394610757c2a3c00142ff8247c46c7fe44207c80001904227c46c7e998602051832439461075642a3c000020d0247c46c77be2207c46c76a26227c46c769c07200700010323800030067262001e788d083264020310c00080000026714200b20300c00264090846b08200b9082b0856d0c52817003b08166c87000600270014cd70c3e4fef001c4e754fefffec48d70c1c202f0018222f001c242f0020263c0009b3404c003800247c40170f60d5c3263c000018b24c013800d5c376444c023800207c46c76dc0d1c32602eb8b224ad3fc000003e2d3c3782010d9538466fa76244c023800224ad3fc000004e2d3c32649d7fc00000009782410d9538466fa78001033480049c0720ab0816f4804800000000b224ad3fc000017922200e989d3c12202d281d282d284207c46c7738c2601e98bd1c3761010d9538366fa224ad3fc00001812d080d3c0207c46c7750cd281d1c1309152840c840000000366a2207c8000666e202f001811802800202f001c118028082002e588207c8000664e42b008004cd70c1c4fef00144e7500ff00ffffff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000100000000000000000000000003000003000000000000000000000000030000040000000100000001000000000000fff100000011460d1742000000000000fff10000001a460d173e000000000000fff100000023460e5cd0000000000000fff100000029460d1aec000000000000fff10000003180006546000000000000fff10000003b4005a2b8000000000000fff100000042460d1e70000000000000fff100000050460d1e6c000000000000fff1000000614004341e000000000000fff10000007600000044000000000000fff100000083800065b8000000000000fff10000008f800065bd000000000000fff100000098800065be000000000000fff1000000a0800065bf000000000000fff1000000aa800065c0000000000000fff1000000b3800065c1000000000000fff1000000bc800065c2000000000000fff1000000c6800065b2000000000000fff1000000d2800065b6000000000000fff1000000db8000663d000000000000fff1000000e4400aba50000000000000fff1000000ec00000006000000000000fff1000000f600000002000000000000fff1000000ff80006687000000000000fff10000010a80006516000000000000fff10000011480006536000000000000fff10000011e80006638000000000000fff10000012780006626000000000000fff10000013180006680000000000000fff10000013a80006682000000000000fff10000014380006684000000000000fff10000014c8000002a000000000000fff1000001564009e884000000000000fff10000015e40013a08000000000000fff10000016640000c3c000000000000fff10000016c460d17ae000000000000fff100000175400d8167000000000000fff100000181400d8168000000000000fff100000191400d8169000000000000fff10000019a400d816a000000000000fff1000001a700008e57000000000000fff1000001ae00000003000000000000fff1000001b78000004f000000000000fff1000001c246c7fa80000000000000fff1000001cd800019e4000000000000fff1000001d746c7ff40000000000000fff1000001e146c7ff62000000000000fff1000001eb46c7a120000000000000fff1000001f646c76aa6000000000000fff10000020146c76a22000000000000fff10000020b46c76aaa000000000000fff10000021646c7a850000000000000fff10000022046c7a934000000000000fff10000022a400a539c000000000000fff10000023500008e56000000000000fff10000023e8000004e000000000000fff100000249400d80dc000000000000fff1000002538000662c000000000000fff10000025c8000667e000000000000fff10000026540001f18000000000000fff10000026f0008ed80000000000000fff100000278000018b2000000000000fff10000027f46c76dc0000000000000fff10000028446c7738c000000000000fff10000028946c7750c000000000000fff10000021a8000666e000000000000fff10000028e8000664e000000000000fff100000294000048d0000000000000fff10000029a40008f84000000000000fff1000002a3400d816b000000000000fff1000002ab400d816c000000000000fff1000002b7400e21e0000000000000fff1000002c00009b340000000000000fff1000002cc00008ed8000000000000fff1000002d700008e53000000000000fff1000002e200008e50000000000000fff1000002ee00008e55000000000000fff1000002fb00000050000000000000fff1000003010000091a000000000000fff10000030a000048f8000000000000fff100000310000008b0000000000000fff10000031900000000000000000000fff10000032100000001000000000000fff10000032a00000002000000000000fff10000033500000003000000000000fff10000033e8000663e000000000000fff100000348800065d3000000000000fff10000034f00008e54000000000000fff10000035900008e52000000000000fff10000036200000000000000000000fff10000036800000001000000000000fff10000036e00000004000000000000fff1000003754610757c000000000000fff10000037a46107564000000000000fff10000037f00285ff0000000000000fff100000386000041a0000000000000fff10000038d00000000000000000000fff1000003950000006400000000000000010000039f00000eba0000000000000001000003a7000000760000000000000001000003b20000004c0000000000000001000003bb000000660000000000000001000003c5000003bc0000000000000001000003cf000000a40000000000000001000003d600000ebe0000000000000001000003db000000aa0000000000000001000003e3000001380000000000000001000003ea00000e460000000000000001000003f3000001640000000000000001000003fb000000f2000000000000000100000405000009c800000000000000010000040e000009a6000000000000000100000418000002aa00000000000000010000042000000e4a00000000000000010000042a0000011200000000000000010000043300000e4b00000000000000010000043e000001220000000000000001000004460000042400000000000000010000045000000e4d00000000000000010000045700000bf80000000000000001000004620000015200000000000000010000046b00000e47000000000000000100000474000001c800000000000000010000047c000001a800000000000000010000048500000e4900000000000000010000048f000001e0000000000000000100000499000002140000000000000001000004a0000007b00000000000000001000004a8000007d00000000000000001000004b3000002420000000000000001000004bb000008fa0000000000000001000004c5000002620000000000000001000004cd00000ece0000000000000001000004d2000002700000000000000001000004db000002a20000000000000001000004e300000ba80000000000000001000004eb000002c20000000000000001000004f2000002d20000000000000001000004fa000003ba000000000000000100000500000003580000000000000001000005070000039a00000000000000010000050e0000036a00000000000000010000051500000e4c00000000000000010000051c0000040e0000000000000001000005230000041000000000000000010000052b00000ec200000000000000010000053400000ec600000000000000010000053c00000eca000000000000000100000541000004bc00000000000000010000054800000ed200000000000000010000054f00000ee2000000000000000100000556000004e400000000000000010000055e00000506000000000000000100000567000005080000000000000001000005700000091a000000000000000100000579000005ca000000000000000100000584000005a600000000000000010000058d0000058400000000000000010000059300000e4800000000000000010000059b000005be0000000000000001000005a4000007820000000000000001000005ac00000e520000000000000001000005b400000e560000000000000001000005bc0000066a0000000000000001000005c2000006800000000000000001000005c9000006a60000000000000001000005d0000006ac0000000000000001000005d700000a4a0000000000000001000005e0000006d60000000000000001000005e8000006fe0000000000000001000005f0000007140000000000000001000005f8000007360000000000000001000005ff000007740000000000000001000006080000078400000000000000010000060e000007a40000000000000001000006140000079e00000000000000010000061b0000080a000000000000000100000621000008300000000000000001000006260000085400000000000000010000062e0000086c0000000000000001000006360000088000000000000000010000063e00000892000000000000000100000649000008a8000000000000000100000650000008a4000000000000000100000659000008c2000000000000000100000662000008c4000000000000000100000669000008c8000000000000000100000670000008e0000000000000000100000679000009140000000000000001000006800000096c0000000000000001000006890000096e00000000000000010000069000000970000000000000000100000698000009940000000000000001000006a0000009ac0000000000000001000006a5000009f60000000000000001000006ab00000a040000000000000001000006b300000a240000000000000001000006bc00000e4e0000000000000001000006c500000a420000000000000001000006ce00000e4f0000000000000001000006d600000e500000000000000001000006de00000a8a0000000000000001000006e300000aba0000000000000001000006ea00000af60000000000000001000006f300000e5a0000000000000001000006fa00000e7a00000000000000010000070200000b7c00000000000000010000070d00000bac00000000000000010000071200000be800000000000000010000071700000bd800000000000000010000071e00000c9a00000000000000010000072800000be400000000000000010000072e00000c2200000000000000010000073600000bfa00000000000000010000073b00000c0c00000000000000010000074000000d4200000000000000010000074a00000cd800000000000000010000074f00000cf800000000000000010000075500000cfa00000000000000010000075a00000d2a00000000000000010000075f00000d3600000000000000010000076600000d3800000000000000010000076d00000d9200000000000000010000077200000db200000000000000010000077700000dba00000000000000010000077c00000e0e00000000000000010000078200000df00000000000000001000007870000000000000000100000010000079100000086000000001000000100000799000005660000000010000001000007a1000005ae0000000010000001000007ab00000a320000000010000001000007b300000c640000000010000001000007bb00000c80000000001000000100444a5f4d4f44455f494e5f434156450050544e5f4d4f44450050544e5f5553454400504f505550004152525f41435400434841494e5f414354004e4f54494659004e4f544946595f48414e444c45004e4f544946595f434f554e54444f574e0050544e5f4c415945525f52454c5f524553554d4500444a5f544f4153545f445552005452414e53504f52545f4c004143545f42414e4b004143545f5041540050454e445f42414e4b0050454e445f50415400505245565f50415400505245565f42414e4b004d41535445525f53544550005449434b5f435452005343414c455f4958004c454e5f54424c005343414c455f4d4158005343414c455f3158004c414e445f434e54444e00534e41505f5354455000534e41505f5449434b00524553554d455f4c00484f4c445f4d41534b00524553594e43383000524553594e43383200524553594e433834004d4944495f53454e440050435f53454e4400535052494e5446004b504f53540055495f5155455545004d53475f42414e4b504154004d53475f42414e4b5041545f415247004d53475f50415254004d53475f504152545f41524700505f5041525400545f53494c454e540053494c454e545f44454600454e475f41464c41475300454e475f4154494d4500454e475f4142414e4b00454e475f415041525400454e475f4d464c41475300454e475f4d54494d453100454e475f4d464c414700454e475f4d54494d453200454e475f4d42414e4b00454e475f4d5041525400434f4e445f524553455400505f434841494e510050524f4a5f5155414e54005155414e545f54424c00454e445f535445500053544f505f454e440054524b5f4150504c5900504152545f4f46460050415254535a004d454e47004d444553004d534c50004d5a45524f004d5f524543004e4f54455f4f4646004d53475f504154004d53475f5041545f415247005041545f424153450042414e4b5f535452494445005041545f53545249444500505f4c454e5f4259544500505f4d4c454e5f574f524400505f5343414c455f4d4f444500415f4c454e00415f535452494445004d5f4c454e004d5f5354524944450053545f49444c450053545f41524d45440053545f4c414e44494e470053545f46495855500054524b5f5343414c450052454c4f414400505f5343414c455f4e00505f4d5343414c4500545f4c454e00545f53434c00545f464c41470053434c4b004d434c4b005449434b5f41005449434b5f4d00444a5f544f465300646a745f73746f636b00444a5f4d4f444500646a5f6d73675f6f666600646a745f73686f7700646a5f6d73675f6f6e00646a5f756e686964650064745f72756e00646a5f540064745f646f6e6500646c5f6f666600646a5f737461746500646c5f69646c6500646c5f6e6f7466697800646c5f666978757000646a5f72656c73696c00646c5f646f6e6500646a5f61726d7061740064615f726563756500646a5f61726d62616e6b0064615f73616d6500646c5f636f6d6d697400646a5f73706e00646a5f7370666c75736800646c5f636c65617200646a5f706370617400646c5f7265616c00646c5f706366697800646a5f706362616e6b00646c5f706373656e6400646c5f61726d00646a5f626c6f6200646a5f62706172616d730064615f7363616e00646a5f747072696d650064615f6e65787400646a5f4c0064615f666f756e6400646c5f61726d3200646a5f7370646f00646c5f6f757400646a5f686964650064685f6e6f0064685f656e640064685f7965730064685f6c656e00646a5f6869640064755f6f757400646a5f706f737400646a5f746c616e6400646a5f7470734d00646a5f430064635f6e6f6300646a5f74707300646a5f6c656e0064635f6c6f6f700064635f73746570300064635f73746f726500646a5f707572676500646a5f68616e646f666600646e5f73746f636b00646e5f726c00646a5f7a65726f006470725f646f6e6500686f5f6269747300646a5f73696c4100646a5f73696c4d00686f5f6d7400686f5f6d743100686f5f6d743200686f5f6d743300646a5f737061726d00646a5f636f6e6400636e5f696e697400636e5f6c6f6f7000636e5f63796300636e5f73746f726500686f5f6c7000686f5f6e7800686f5f7365740062705f70740062705f630062705f6c6f6f700062705f6d6964690062705f626173650062705f626c6f6273636c0062705f73636c0062705f707473636c0062705f70746c656e0062705f6c636d0062705f6763640062705f6763646f6b0074705f6e6f630070675f7461626c650070675f74726b0070675f736c6f740070675f6e6578740072735f6c0066785f676f0066785f6c6f6f700066785f73746f726500646a5f6465666572006c715f73746f636b00646a5f7370626b00646a5f737070740073615f6c0073615f73657400646a5f746d61736b00646a5f73706400646a5f7370746d00646a5f6861737472696700736f5f6c00736f5f6e00736f5f64656300646a5f73707472696700736f5f676f00646a5f707562310073665f6c0073665f6e00646a5f6d6170706c790073745f6d0073745f676f0073745f6c0073745f6e0073745f7965730073745f6f7574006d615f70006d615f73006d615f64006d615f646e006d615f7700646a5f746f67676c6500646a5f6c616e6400646a5f6e6f666100646a5f70746e72656c00646a5f6c666f7100646a5f7470756200646a5f7077696465000000003c0000010100000eba0000009e0000010100000ebe000000a60000010100000ebe000000ea0000010100000e460000011a0000010100000e46000001540000010100000e460000015c0000010100000e47000001e80000010100000e47000001f40000010100000e49000002780000010100000e4a000002840000010100000e4b000002a60000010100000e46000003b60000010100000e4c000003c40000010100000e4c0000049c0000010100000ec2000005600000010100000e46000005740000010100000e46000005fa0000010100000e52000006460000010100000e56000008320000010100000ec60000083e0000010100000eca000008f40000010100000ece00000a3a0000010100000e4e00000a5c0000010100000e4f00000a6c0000010100000e5000000aea0000010100000e4d00000af00000010100000e4e00000bf20000010100000e4d00000c160000010100000e4d00000c1c0000010100000e4e00000c840000010100000e4e002e73796d746162002e737472746162002e7368737472746162002e72656c612e74657874002e64617461002e6273730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000100000006000000000000003400000ef2000000000000000000000004000000000000001b000000040000004000000000000025dc000001740000000500000001000000040000000c0000002600000001000000030000000000000f2800000000000000000000000000000004000000000000002c00000008000000030000000000000f2800000000000000000000000000000004000000000000000100000002000000000000000000000f2800000ef000000006000000e800000004000000100000000900000003000000000000000000001e18000007c40000000000000000000000010000000000000011000000030000000000000000000027500000003100000000000000000000000100000000", - "sha256": "adc728df6708812b1a15916056901e92a49703bb242334b6c7df93d91c712d10", + "bytes": 10612, + "code": "7f454c460102010000000000000000000001000400000001000000000000000000002834000000260034000000000028000800077001b0af00086600005c2039460d17425380660000504ab9460d1aec660000464ab9460e5cd06600003c203a0ee60a800000000102800000000123c00000000041fa00344a80670441fa001c487800442f084eb94005a2b8508f700123c0460d173e4e754e75444952454354204a554d50204f4e0000444952454354204a554d50204f4646004fefffc448d77fff610003327001b0b9800065b8670e42b90000000042b900000000600652b9000000004aba0e60670000887001b0b9800065b86600007c4ab9460d1aec660000724ab98000654666000068103a0dc46700008c0c000003661261000938610008da423900000000600001ba0c000001660001b21039800065c0b03a0d9a660c1039800065bfb03a0d8f6710423980006687423900000000600000441039800066870c0000016600017c610002f2600001744a3a0d65670461000b0a103a0d540c000001660642398000668742390000000070ff13c000000000600001481039800065c00c00ffff67e2b039800065be66501039800065bfb039800065bd6642103a0d110c00ffff6700ffc2b039800065be660e103a0cffb039800065bd6700ffac70001039800065be2f0070001039800065bd2f004eb94009e884508f6000ff8c1039800065c0b03a0cc9660c1039800065bfb03a0cbf67341039800065c013c0000000001039800065bf13c00000000070001039800065c02f0070001039800065bf2f004eb94009e884508f4a39800066876e00008e70001039800065bf72001239800065c06100058e610005aa2e3a0cd80687000000007c002007d0865280610006be4a806d12223a0cd224004c4120024c012800b082670e52860c86000000786dd66000003c1039800065c013c0000000001039800065bf13c0000000002206528113c1800066870c81000000016608610001886000000a700113c0000000004a3a0bf3670461000948103a0be20c0000016604610000124cd77fff4fef003c1039800066874e754a398000667e660000e070001039800065bd72001239800065be610004d0720012398000663d7006b2806302720241f9400aba5024301c001239800065b649c15281b2826d0000a274003439800065b2528202820000ffff203c00008e561232080049c16a0812398000004e49c141f9400d80dc26301c004a836f0a20024c4308014a81674220398000662c72ffb0816706b0826e526030203c00008e554a320800670e203c00008e503232080048c1600c203c00008e531232080049c170ffb2806724b2826e201039800065be13c0800065c01039800065bd13c0800065bf700113c0000000004e754a3a0ae0674c4239000000001039800065c0b039800065be66381039800065bfb039800065bd662a103a0ab613c0800065c0103a0aad13c0800065bf1039800065be13c0400d816c41f9400d816b610000044e752f084879460d17ae43f940000c3c4e91508f4e754a3a0a7967046100081e1039800065be13c0800065c11039800065bd13c0800065c21039800065c013c0800065be1039800065bf13c0800065bd70001039800065bd223c0009b3404c01080072001239800065be243c00008ed84c021800d08145f9400e21e0d5c0610003502e3a0a7e068700000000263a0a80203a0a744c030800de8023c7000000002007d0835380223a0a6a670c24004c4120024c012800908228004c43400423c4800066382a009a83548541f98000651643f98000653647fa0a4249fa0a4e7c107200121b20054c4100007400141c7202b2826e0e22004c4210014c02180090816002700030c04219538666d4610004184279800066264279800066804279800066824279800066841039800065bd13c0400d816841f9400d81676100fec6610000861039800065be13c0400d816c41f9400d816b6100feac700213c0000000004e75103a09260c0000026636700313c0000000002f082f0141f9800065d372101010538010c0538166f61039800065b6538013c0800065b6221f205f4a3a08ee4e754a398000002a4e754ab9460d1e706708700123c0460d1e6c4879400bf0f24ef94004341e223c00008e571032180013c0400d816a41f9400d81696100fe24780376532c3c0000091a6100019623c446c7fa8023c400000000203c00285ff0d0b94610757c23c0800019e41039800065bd13c046c7ff40223c00008e571032180013c046c7ff627803263c000048fb2c3c000008b06100014a23c446c7a12023c4000000007a004a3980001860661610398000002808000000670a4ab946104ca867027a012039461075640680000041a04a85660606800000313823c046c76aa6700123c046c76a222039461075640680000041a04a8567080480000041a0600604800000106823c046c76aaa1039800065bd13c046c7a850223c00008e571032180013c046c7a934610003c2600000022e3a08366a027e004aba0836671e2c3a0830200690ba08262c4020074c4600002a404c06080022079280244147fa081a49fa082641f94610791843f9461079797a107800181b7600161c660276014c0438004aba07ec660c2007d08453804c430000603e200ed08422004c43100124014c032800908224014a80670252822c0d4c026800240ad48453824c432002b481630224014a806706b5ce630252822006d08220c012fc000153856600ff964e757a0810323800671a0c000001670e0c00ffff660e4a398000004f67067001eba88880d68652857010b08566d64e75243c0009b3404c020800243c00008ed84c021800d08145f9400e21e0d5c04e7541f9400aba50203c00008e551e32080072004a076624203c00008e54123208007006b2806302720226301c00203c00008e537800183208006026203c00008e52123208007006b2806302720226301c00203c00008e503832080048c46e02780023c30000000020044c03080023c0000000002a0347fa06d449fa06e04bf98000663e7c007008b0866f12203c0000091a4c060800068000000050601420065180223c000008b04c0108000680000048f843f208004a2900046708720012356800601672004a07660c203c00008e54123208006004122900017006b2806306243a065e600424301c0016c24a07660418c4600218d1200522024a81671426004c4130034c013800908326002001220360e84c4050054c02580052867010b0866600ff6423c5000000004e75263a0612223a06064c031800d081d08353806b12223a0602670c24004c4120024c0128009082908352804e752a394610757c263c00142ff841f98000190443f946c7e99847f946c7fe44613241f98000198447f946c7fe8c43f946c7faa4611e2a3946107564263c000020d041f946c76a2643f946c769c047f946c77be27c0078007000103368000900671a2204e789d28624301c009485b4836d0a42b11c0009801780680052847003b08466d452867008b08666ca4e75283a04e27a00200550800104670a2f054eb940008f84588f52857008b08566e64e75700010398000663d0c80000000066302700241f9400aba5020300c00448023c00000000070003039800065b223c0000000004ef9400a539c41f9400aba50700010398000663d7206b0816302700226300c007a00223a04e8670c92835281b2ba04d66e027a0143f98000663e45f9800065d37c0072004a85671a70001031680022030c8000000006620422300c0092836a0272001581680052867010b08666d44e754a3a041a670a423900000000b0804e754a39800000504e754a398000005066024e751039800065bd13c000000000223c00008e571032180013c0000000002a394610757c068500142ff82839461075640684000020d07c007e02203a03c40c86000000086504203a03bc22060281000000075081030066102006610000484a8067062e3c0000fffe2006d08041fa039a31870800d08041fa03b0218508000c860000000865042184080052867010b0866600ffa6700113c00000000013c0000000004e7526000c80000000086412223c0000091a4c01080041f20800725060185180223c000008b04c0108000680000048d041f208007228700010301800223c00008e554a321800660c223c00008e537000103218002428000426107220b081640c76007201e1a95381c48160160480000000200c800000002064087201e1a95381c681848320024e754fefffe848d7070e70001039800065bd72001239800065be6100fbd620066100ff5a4cd7070e4fef00184e757c0076002206d28141fa02a8700030301800672c0c800000fffe6614610000d44a8066186100ffae4a806710760160105380318018006704760160046100003c52867010b08666bc13c3000000004e757c002006d08041fa025a4a70080067046100001852867010b08666e64239000000004239000000004e752006d08041fa02324270080020060c8000000008650251802f007000103a02102f00103a02092f000c860000000864084eb940001f186004610000e64fef000c4e75202f000c0c800000000864064ef940001f1851802f40000c600000c4700113c0000000002f2f00082f2f00084eb940009e00508f4e754fefffe448d70c3e2006e58841fa01d22830080026060c8600000008642024394610757c2a3c00142ff8247c46c7fe44207c80001904227c46c7e998602051832439461075642a3c000020d0247c46c77be2207c46c76a26227c46c769c07200700010323800030067262001e788d083264020310c00080000026714200b20300c00264090846b08200b9082b0856d0c52817003b08166c87000600270014cd70c3e4fef001c4e754fefffec48d70c1c202f0018222f001c242f0020263c0009b3404c003800247c40170f60d5c3263c000018b24c013800d5c376444c023800207c46c76dc0d1c32602eb8b224ad3fc000003e2d3c3782010d9538466fa76244c023800224ad3fc000004e2d3c32649d7fc00000009782410d9538466fa78001033480049c0720ab0816f4804800000000b224ad3fc000017922200e989d3c12202d281d282d284207c46c7738c2601e98bd1c3761010d9538366fa224ad3fc00001812d080d3c0207c46c7750cd281d1c1309152840c840000000366a2207c8000666e202f001811802800202f001c118028082002e588207c8000664e42b008004cd70c1c4fef00144e7500ff00ffffff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000100000000000000000000000003000003000000000000000000000000030000040000000100000001000000000000fff100000011460d1742000000000000fff10000001a460d173e000000000000fff100000023460e5cd0000000000000fff100000029460d1aec000000000000fff10000003180006546000000000000fff10000003b4005a2b8000000000000fff100000042460d1e70000000000000fff100000050460d1e6c000000000000fff1000000614004341e000000000000fff10000007600000044000000000000fff100000083800065b8000000000000fff10000008f800065bd000000000000fff100000098800065be000000000000fff1000000a0800065bf000000000000fff1000000aa800065c0000000000000fff1000000b3800065c1000000000000fff1000000bc800065c2000000000000fff1000000c6800065b2000000000000fff1000000d2800065b6000000000000fff1000000db8000663d000000000000fff1000000e4400aba50000000000000fff1000000ec00000006000000000000fff1000000f600000002000000000000fff1000000ff80006687000000000000fff10000010a80006516000000000000fff10000011480006536000000000000fff10000011e80006638000000000000fff10000012780006626000000000000fff10000013180006680000000000000fff10000013a80006682000000000000fff10000014380006684000000000000fff10000014c8000002a000000000000fff1000001564009e884000000000000fff10000015e40013a08000000000000fff10000016640000c3c000000000000fff10000016c460d17ae000000000000fff100000175400d8167000000000000fff100000181400d8168000000000000fff100000191400d8169000000000000fff10000019a400d816a000000000000fff1000001a700008e57000000000000fff1000001ae00000003000000000000fff1000001b78000004f000000000000fff1000001c246c7fa80000000000000fff1000001cd800019e4000000000000fff1000001d746c7ff40000000000000fff1000001e146c7ff62000000000000fff1000001eb46c7a120000000000000fff1000001f646c76aa6000000000000fff10000020146c76a22000000000000fff10000020b46c76aaa000000000000fff10000021646c7a850000000000000fff10000022046c7a934000000000000fff10000022a400a539c000000000000fff10000023500008e56000000000000fff10000023e8000004e000000000000fff100000249400d80dc000000000000fff1000002538000662c000000000000fff10000025c8000667e000000000000fff10000026540001f18000000000000fff10000026f0008ed80000000000000fff100000278000018b2000000000000fff10000027f46c76dc0000000000000fff10000028446c7738c000000000000fff10000028946c7750c000000000000fff10000021a8000666e000000000000fff10000028e8000664e000000000000fff100000294000048d0000000000000fff10000029a40008f84000000000000fff1000002a3400d816b000000000000fff1000002ab400d816c000000000000fff1000002b7400e21e0000000000000fff1000002c00009b340000000000000fff1000002cc00008ed8000000000000fff1000002d700008e53000000000000fff1000002e200008e50000000000000fff1000002ee00008e55000000000000fff1000002fb00000050000000000000fff1000003010000091a000000000000fff10000030a000048f8000000000000fff100000310000008b0000000000000fff10000031900000000000000000000fff10000032100000001000000000000fff10000032a00000002000000000000fff10000033500000003000000000000fff10000033e8000663e000000000000fff100000348800065d3000000000000fff10000034f00008e54000000000000fff10000035900008e52000000000000fff10000036200000000000000000000fff10000036800000001000000000000fff10000036e00000004000000000000fff1000003754610757c000000000000fff10000037a46107564000000000000fff10000037f00285ff0000000000000fff100000386000041a0000000000000fff10000038d00000000000000000000fff1000003950000006400000000000000010000039f00000f120000000000000001000003a7000000760000000000000001000003b20000004c0000000000000001000003bb000000660000000000000001000003c5000003c20000000000000001000003cf000000aa0000000000000001000003d600000f160000000000000001000003db00000f1a0000000000000001000003e2000000b00000000000000001000003ea0000013e0000000000000001000003f100000e9e0000000000000001000003fa0000016a000000000000000100000402000000f800000000000000010000040c00000a20000000000000000100000415000009c600000000000000010000041f000002b000000000000000010000042700000ea20000000000000001000004310000011800000000000000010000043a00000ea30000000000000001000004450000012800000000000000010000044d0000042a00000000000000010000045700000ea500000000000000010000045e00000c500000000000000001000004690000015800000000000000010000047200000e9f00000000000000010000047b000001ce000000000000000100000483000001ae00000000000000010000048c00000ea1000000000000000100000496000001e60000000000000001000004a00000021a0000000000000001000004a7000007c40000000000000001000004af000007e40000000000000001000004ba000002480000000000000001000004c20000090e0000000000000001000004cc000002680000000000000001000004d400000f2a0000000000000001000004d9000002760000000000000001000004e2000002a80000000000000001000004ea00000c000000000000000001000004f2000002c80000000000000001000004f9000002d8000000000000000100000501000003c00000000000000001000005070000035e00000000000000010000050e000003a00000000000000001000005150000037000000000000000010000051c00000ea40000000000000001000005230000041400000000000000010000052a0000041600000000000000010000053200000f2200000000000000010000053a00000f1e00000000000000010000054300000f26000000000000000100000548000004cc00000000000000010000054f00000f2e00000000000000010000055600000f3e00000000000000010000055d000004f40000000000000001000005650000051600000000000000010000056e000005180000000000000001000005770000093a000000000000000100000580000005da00000000000000010000058b000005b60000000000000001000005940000059400000000000000010000059a00000ea00000000000000001000005a2000005ce0000000000000001000005ab000007960000000000000001000005b300000eaa0000000000000001000005bb00000eae0000000000000001000005c30000067a0000000000000001000005c9000006900000000000000001000005d0000006b60000000000000001000005d7000006bc0000000000000001000005de00000aa20000000000000001000005e7000006e60000000000000001000005ef000007120000000000000001000005f7000007280000000000000001000005ff0000074a0000000000000001000006060000078800000000000000010000060f00000798000000000000000100000615000007b800000000000000010000061b000007b20000000000000001000006220000081e0000000000000001000006280000084400000000000000010000062d000008680000000000000001000006350000088000000000000000010000063d00000894000000000000000100000645000008a6000000000000000100000650000008bc000000000000000100000657000008b8000000000000000100000660000008d6000000000000000100000669000008d8000000000000000100000670000008dc000000000000000100000677000008f4000000000000000100000680000009340000000000000001000006870000098c0000000000000001000006900000098e0000000000000001000006970000099000000000000000010000069f000009b40000000000000001000006a7000009cc0000000000000001000006ac00000a4e0000000000000001000006b200000a5c0000000000000001000006ba00000a7c0000000000000001000006c300000ea60000000000000001000006cc00000a9a0000000000000001000006d500000ea70000000000000001000006dd00000ea80000000000000001000006e500000ae20000000000000001000006ea00000b120000000000000001000006f100000b4e0000000000000001000006fa00000eb200000000000000010000070100000ed200000000000000010000070900000bd400000000000000010000071400000c0400000000000000010000071900000c4000000000000000010000071e00000c3000000000000000010000072500000cf200000000000000010000072f00000c3c00000000000000010000073500000c7a00000000000000010000073d00000c5200000000000000010000074200000c6400000000000000010000074700000d9a00000000000000010000075100000d3000000000000000010000075600000d5000000000000000010000075c00000d5200000000000000010000076100000d8200000000000000010000076600000d8e00000000000000010000076d00000d9000000000000000010000077400000dea00000000000000010000077900000e0a00000000000000010000077e00000e1200000000000000010000078300000e6600000000000000010000078900000e4800000000000000010000078e00000000000000001000000100000798000000860000000010000001000007a0000005760000000010000001000007a8000005be0000000010000001000007b2000009e80000000010000001000007bb00000a8a0000000010000001000007c300000cbc0000000010000001000007cb00000cd8000000001000000100444a5f4d4f44455f494e5f434156450050544e5f4d4f44450050544e5f5553454400504f505550004152525f41435400434841494e5f414354004e4f54494659004e4f544946595f48414e444c45004e4f544946595f434f554e54444f574e0050544e5f4c415945525f52454c5f524553554d4500444a5f544f4153545f445552005452414e53504f52545f4c004143545f42414e4b004143545f5041540050454e445f42414e4b0050454e445f50415400505245565f50415400505245565f42414e4b004d41535445525f53544550005449434b5f435452005343414c455f4958004c454e5f54424c005343414c455f4d4158005343414c455f3158004c414e445f434e54444e00534e41505f5354455000534e41505f5449434b00524553554d455f4c00484f4c445f4d41534b00524553594e43383000524553594e43383200524553594e433834004d4944495f53454e440050435f53454e4400535052494e5446004b504f53540055495f5155455545004d53475f42414e4b504154004d53475f42414e4b5041545f415247004d53475f50415254004d53475f504152545f41524700505f5041525400545f53494c454e540053494c454e545f44454600454e475f41464c41475300454e475f4154494d4500454e475f4142414e4b00454e475f415041525400454e475f4d464c41475300454e475f4d54494d453100454e475f4d464c414700454e475f4d54494d453200454e475f4d42414e4b00454e475f4d5041525400434f4e445f524553455400505f434841494e510050524f4a5f5155414e54005155414e545f54424c00454e445f535445500053544f505f454e440054524b5f4150504c5900504152545f4f46460050415254535a004d454e47004d444553004d534c50004d5a45524f004d5f524543004e4f54455f4f4646004d53475f504154004d53475f5041545f415247005041545f424153450042414e4b5f535452494445005041545f53545249444500505f4c454e5f4259544500505f4d4c454e5f574f524400505f5343414c455f4d4f444500415f4c454e00415f535452494445004d5f4c454e004d5f5354524944450053545f49444c450053545f41524d45440053545f4c414e44494e470053545f46495855500054524b5f5343414c450052454c4f414400505f5343414c455f4e00505f4d5343414c4500545f4c454e00545f53434c00545f464c41470053434c4b004d434c4b005449434b5f41005449434b5f4d00444a5f544f465300646a745f73746f636b00444a5f4d4f444500646a5f6d73675f6f666600646a745f73686f7700646a5f6d73675f6f6e00646a5f756e686964650064745f72756e00646a5f5400646a5f72736d0064745f646f6e6500646c5f6f666600646a5f737461746500646c5f69646c6500646c5f6e6f7466697800646c5f666978757000646a5f72656c73696c00646c5f646f6e6500646a5f61726d7061740064615f726563756500646a5f61726d62616e6b0064615f73616d6500646c5f636f6d6d697400646a5f73706e00646a5f7370666c75736800646c5f636c65617200646a5f706370617400646c5f7265616c00646c5f706366697800646a5f706362616e6b00646c5f706373656e6400646c5f61726d00646a5f626c6f6200646a5f62706172616d730064615f7363616e00646a5f747072696d650064615f6e65787400646a5f4c0064615f666f756e6400646c5f61726d3200646a5f7370646f00646c5f6f757400646a5f686964650064685f6e6f0064685f656e640064685f7965730064685f6c656e00646a5f6869640064755f6f757400646a5f706f737400646a5f7470734d00646a5f746c616e6400646a5f430064635f6e6f6300646a5f74707300646a5f6c656e0064635f6c6f6f700064635f73746570300064635f73746f726500646a5f707572676500646a5f68616e646f666600646e5f73746f636b00646e5f726c00646a5f7a65726f006470725f646f6e6500686f5f6269747300646a5f73696c4100646a5f73696c4d00686f5f6d7400686f5f6d743100686f5f6d743200686f5f6d743300646a5f737061726d00646a5f636f6e6400636e5f696e697400636e5f6c6f6f7000636e5f63796300636e5f73746f726500686f5f6c7000686f5f6e7800686f5f7365740062705f70740062705f630062705f6c6f6f700062705f6d6964690062705f626173650062705f626c6f6273636c0062705f73636c0062705f707473636c0062705f70746c656e0062705f6c636d0062705f6763640062705f6763646f6b0074705f6e6f630070675f7461626c650070675f74726b0070675f736c6f740070675f6e6578740072735f6c0066785f676f0066785f6c6f6f700066785f73746f726500646a5f6465666572006c715f73746f636b00646a5f7370626b00646a5f737070740073615f6c0073615f73657400646a5f746d61736b00646a5f73706400646a5f7370746d00646a5f6861737472696700736f5f6c00736f5f6e00736f5f64656300646a5f73707472696700736f5f676f00646a5f707562310073665f6c0073665f6e00646a5f6d6170706c790073745f6d0073745f676f0073745f6c0073745f6e0073745f7965730073745f6f7574006d615f70006d615f73006d615f64006d615f646e006d615f7700646a5f746f67676c6500646a5f6c616e6400646a5f6e6f666100646a5f70746e72656c00646a5f737772657300646a5f6c666f7100646a5f7470756200646a5f7077696465000000003c0000010100000f120000009e0000010100000f16000000a40000010100000f1a000000ac0000010100000f16000000f00000010100000e9e000001200000010100000e9e0000015a0000010100000e9e000001620000010100000e9f000001ee0000010100000e9f000001fa0000010100000ea10000027e0000010100000ea20000028a0000010100000ea3000002ac0000010100000e9e000003bc0000010100000ea4000003ca0000010100000ea4000004b00000010100000f1e000005700000010100000e9e000005840000010100000e9e0000060a0000010100000eaa000006560000010100000eae000008460000010100000f22000008520000010100000f26000009080000010100000f2a00000a080000010100000f1600000a160000010100000f1a00000a920000010100000ea600000ab40000010100000ea700000ac40000010100000ea800000b420000010100000ea500000b480000010100000ea600000c4a0000010100000ea500000c6e0000010100000ea500000c740000010100000ea600000cdc0000010100000ea6002e73796d746162002e737472746162002e7368737472746162002e72656c612e74657874002e64617461002e6273730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000100000006000000000000003400000f4e000000000000000000000004000000000000001b00000004000000400000000000002668000001980000000500000001000000040000000c0000002600000001000000030000000000000f8400000000000000000000000000000004000000000000002c00000008000000030000000000000f8400000000000000000000000000000004000000000000000100000002000000000000000000000f8400000f1000000006000000e900000004000000100000000900000003000000000000000000001e94000007d40000000000000000000000010000000000000011000000030000000000000000000028000000003100000000000000000000000100000000", + "sha256": "cd1f1834ff52b80460926acd0d1211f64bfd6acba3b47793e03b51a2232e49b9", "stockCopies": [], "placement": "linked", "poolBaseLiterals": 0, @@ -1142,7 +1142,7 @@ "source": "modules/direct-jump-kyoti/patch_trigscale.s", "sources": { "modules/direct-jump-kyoti/patch_trigscale.s": "f657f576c14cf61e23cc563eab54a07ef4f9774ddfca0c8bf3286c13bb76068f", - "modules/direct-jump-kyoti/manifest.py": "9e77237f2ac7f4158b51b5d9f70237617fe0429c0c9a3848adffbd76157300a9" + "modules/direct-jump-kyoti/manifest.py": "14fef7f20657ced4e6c4f9b879992a9593a0e99000595c6005d654f7b6874321" }, "bytes": 672, "code": "7f454c460102010000000000000000000001000400000001000000000000000000000188000000260034000000000028000700067007b0836d18203c0000091a4c0308002041d08241f008514ef94009b704200351802c3c000008b04c060800d0820680000048f92041d1c04ef94009b70400000000000000000000000000000000000000000000000000000000000003000001000000000000000000000000030000020000000000000000000000000300000300000001000008b0000000000000fff10000000d000048f9000000000000fff10000001c0000091a000000000000fff10000002900000051000000000000fff1000000394009b704000000000000fff10000003e000000000000000010000001004d4944495f535452494445004d4944495f5343414c455f4f464600415544494f5f53545249444500415544494f5f5343414c455f4f4646004241434b0074735f6361766500002e73796d746162002e737472746162002e7368737472746162002e74657874002e64617461002e627373000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b000000010000000600000000000000340000003e0000000000000000000000040000000000000021000000010000000300000000000000740000000000000000000000000000000400000000000000270000000800000003000000000000007400000000000000000000000000000004000000000000000100000002000000000000000000000074000000a00000000500000009000000040000001000000009000000030000000000000000000001140000004600000000000000000000000100000000000000110000000300000000000000000000015a0000002c00000000000000000000000100000000", @@ -5514,6 +5514,17 @@ "writeLength": 6, "note": "light Part apply: per-track part deferred to each track's first trig" }, + { + "address": 1074415696, + "guardLength": 6, + "guardSha256": "3eb71e079e73b289302dbd71e2397466226349dc505a46c2cc16a49a1595c7db", + "unit": "dj7", + "symbol": "dj_swres", + "target": null, + "kind": "jsr", + "writeLength": 6, + "note": "stock pattern switch: the jump's clock restarts there" + }, { "address": 1074378482, "guardLength": 18, diff --git a/src/engine/assets/resident-dsp.json b/src/engine/assets/resident-dsp.json index fdddb1a0c9..932ad52bb1 100644 --- a/src/engine/assets/resident-dsp.json +++ b/src/engine/assets/resident-dsp.json @@ -97,7 +97,7 @@ "baselineDescriptors": [] } ], - "sourceCommit": "c62ee5a6f507d59789f17ce244fdffc343511a20", + "sourceCommit": "7595416dbe052c4184af68730f51aae747091a42", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", diff --git a/src/engine/assets/rom-packages.json b/src/engine/assets/rom-packages.json index 8e93704dc2..8fbe40ef63 100644 --- a/src/engine/assets/rom-packages.json +++ b/src/engine/assets/rom-packages.json @@ -423,7 +423,7 @@ "sha256": "fdba0ffd31b7932ceb1ded3bde9a976b6f148ae96fc73a4efc4fedf6fb692341" } ], - "sourceCommit": "c62ee5a6f507d59789f17ce244fdffc343511a20", + "sourceCommit": "7595416dbe052c4184af68730f51aae747091a42", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", diff --git a/src/engine/assets/usb-audio-packages.json b/src/engine/assets/usb-audio-packages.json index c5e55f2a2c..646aeef1fb 100644 --- a/src/engine/assets/usb-audio-packages.json +++ b/src/engine/assets/usb-audio-packages.json @@ -553,7 +553,7 @@ } ] }, - "sourceCommit": "c62ee5a6f507d59789f17ce244fdffc343511a20", + "sourceCommit": "7595416dbe052c4184af68730f51aae747091a42", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", diff --git a/src/engine/assets/utility-packages.json b/src/engine/assets/utility-packages.json index 1a5aed1115..78a5947c17 100644 --- a/src/engine/assets/utility-packages.json +++ b/src/engine/assets/utility-packages.json @@ -3,7 +3,7 @@ "kind": "authored-utility-packages", "stockRead": false, "revision": "b8deefc88b2c3e5f3c6158e364eb741df1924e1d", - "sourceCommit": "c62ee5a6f507d59789f17ce244fdffc343511a20", + "sourceCommit": "7595416dbe052c4184af68730f51aae747091a42", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", From 20d216e1b454edee281d66dcfb179275fe24b4b0 Mon Sep 17 00:00:00 2001 From: Zac-Kyoti <273702472+Zac-Kyoti@users.noreply.github.com> Date: Mon, 16 Nov 2026 19:27:16 -0800 Subject: [PATCH 024/415] Direct Jump Kyoti 0.2.0: ship the author's V7.3 unchanged (drop the MODWERK re-encodings) Base 0.7.5 (#1475) no longer refuses a package for sharing byte runs with the stock OS, and the runs the re-encodings avoided were the author's original code calling the OS the way the OS calls itself. As the author decided, patch_directjump_v7.s is now cd788e9's file byte for byte: 3,938 bytes at 0x400d6d38, 51478a67... (5407 and 54455 identical). patch_trigscale.s: the movea.l/add.l swap existed only for the scan and is gone; the ts_cave label rename stays (it links beside Direct Jump's unit, no byte changes); the copyright line is the author's current one. The unit links to his 62 bytes, a1eec6b6.... Guards, the dropped Keeps/requires/ conflicts and the trigscale detour are unchanged. Co-Authored-By: Claude Opus 5.5 --- sdk/imports/direct-jump-kyoti-cd788e9.json | 16 +++---- .../modules/direct-jump-kyoti/README.md | 6 +-- .../modules/direct-jump-kyoti/manifest.py | 33 +++++++------- .../direct-jump-kyoti/octamod.module.json | 2 +- .../direct-jump-kyoti/patch_directjump_v7.s | 43 ++++++++----------- .../direct-jump-kyoti/patch_trigscale.s | 6 +-- .../module-changelogs/direct-jump-kyoti.json | 2 +- 7 files changed, 49 insertions(+), 59 deletions(-) diff --git a/sdk/imports/direct-jump-kyoti-cd788e9.json b/sdk/imports/direct-jump-kyoti-cd788e9.json index 5ae2e1a5fd..7ce04a3336 100644 --- a/sdk/imports/direct-jump-kyoti-cd788e9.json +++ b/sdk/imports/direct-jump-kyoti-cd788e9.json @@ -59,7 +59,8 @@ "notes": [ "0.2.0-experimental moves the pin from the octabam wrapper (sambanks/octabam b725fb1a, author pin 329b801c) to the author's repository at cd788e9: DIRECT JUMP V7.3 (prepared at 109f54c, V7.2.2; V7.3 makes the last restart, PLAY or a stock pattern change, a jump's time origin, with a fifth detour at 0x400a4850). upstream/OCTABAM_README.md and upstream/OCTABAM_LICENSE stay as imported from octabam for its integration credit.", "patch_directjump_v7.s comments describe stock routines and data by address and in assembler mnemonics, as the author wrote them; it contains no firmware bytes or hex dumps.", - "The stock guard digests were computed from the author's declared expectations and matched against a local original OS 1.40C MAIN image (SHA-256 164f31224bf61181e3f50e7dec40df9afcae5b16dbf6e4c0d0cc5e986af0a84e)." + "The stock guard digests were computed from the author's declared expectations and matched against a local original OS 1.40C MAIN image (SHA-256 164f31224bf61181e3f50e7dec40df9afcae5b16dbf6e4c0d0cc5e986af0a84e).", + "Since base 0.7.5 (#1475) no scan refuses a package for sharing byte runs with the stock OS. The runs the earlier MODWERK re-encodings avoided were the author's original code calling the OS the way the OS calls itself, not Elektron bytes, so patch_directjump_v7.s is vendored unchanged and the unit is the author's bytes." ], "status": "Owner review pending (new stock addresses: 0x40009ebe, 0x400a4850).", "files": [ @@ -71,10 +72,7 @@ "sourceBytes": 76359, "sourceGitBlob": "7463b27416af540833cac18197cd74daf472fbb7", "sourceSha256": "cae97228230f43214ff3ca6ac8fb84a082397f4dec67c59ca772e56f95b4b841", - "vendoredSha256": "0df41e7c9ba5bff2b937a4cf8db316f233077b647634f5aeb6b56cf610498314", - "transforms": [ - "The author's V7.3 with six re-encodings, each marked MODWERK, so that no 12 bytes of the USB package repeat stock code (the strict stock-free scan these were made for; the scan no longer refuses a package since base 0.7.5, #1475, and the re-encodings are kept as reviewed): the four inline kernel posts ({0x11, pattern} in dj_unhide and the landing, {0x15, bank} and {0x14, part}) go through one added helper, dj_post, which reaches KPOST through %a1 (the same calls with the same arguments in the same order, every caller inside dj_land, which saves every register); the second purge table's two addresses are loaded in the other order (a3 before a1); and the hand-off's switch time is formed as TICK_A + SCLK instead of SCLK + TICK_A (move.l #imm then add.l: the same sum, register and flags). V7.3's own additions (dj_swres, the restart frame in dj_tprime, dl_commit and dj_cond) are vendored unchanged: they add no stock run (the longest run of the unit also in the stock OS stays 11 counted bytes, none of 16). The unit is 3,918 bytes (the author's 3,938); with these changes taken back it links to the author's bytes (SHA-256 51478a6773f5b987dc98c595f55a3dd88e9de514d1cedb8fbd35cffe4755e48d at 0x400d6d38, his manifest's REFERENCE)." - ] + "vendoredSha256": "cae97228230f43214ff3ca6ac8fb84a082397f4dec67c59ca772e56f95b4b841" }, { "path": "manifest.py", @@ -84,12 +82,12 @@ "sourceBytes": 11217, "sourceGitBlob": "5277034336d232f34e55635542e07cea439b342a", "sourceSha256": "6e5c81e0e36944536e56642c25a5f854ee9e26312cdbec3c221a964eedee0655", - "vendoredSha256": "14fef7f20657ced4e6c4f9b879992a9593a0e99000595c6005d654f7b6874321", + "vendoredSha256": "f449e3af81f61d400cabbdc73c4b5d1f8f1332d6f651cc0b118f6c020aefc9f1", "transforms": [ "Rewrite the declaration for Modwerk: the same DRAM unit, five detours (the landing, the MIDI START gate, the [PTN] release, V7.2's light Part apply LFO AUTO CHANGE test at 0x40009ebe and V7.3's stock pattern switch COND_RESET call at 0x400a4850) and symbol reference, with every stock expectation an address/length/SHA-256 guard in place of the stock bytes the author's file spells out.", "Drop requires=(\"BATCH_BUGFIXES\",): Modwerk modules never depend on another module. The bundle was required for its MIDI_PLAYS_FREE_FIX, which this module has carried since 0.1.1-experimental as a second DRAM unit (patch_trigscale.s) and one more detour, guarded over the 18 stock bytes it redoes.", "Drop the two Keeps around the [PTN]-layer YES record (a USB package cannot carry them; the symbol reference's NULL guard still refuses a changed slot) and the conflicts with octabam's DIRECT JUMP and OCTAKIT, which Modwerk does not have.", - "Add the author fields, UNIT_BYTES and Modwerk's references for the re-encoded units." + "Add the author fields, UNIT_BYTES and the units' references (the author's own bytes: 51478a6773f5b987dc98c595f55a3dd88e9de514d1cedb8fbd35cffe4755e48d and a1eec6b67bb817cc2e063f23897377697f6057a9bf2389d5eb442813b854bba4)." ] }, { @@ -100,9 +98,9 @@ "sourceBytes": 2684, "sourceGitBlob": "36159e8ab0467d0b00023e25c9f1aa9a088be935", "sourceSha256": "7400c42bdc56e29d51033ad75d7f98439aa97cb73e98c439e5b66f78073ee695", - "vendoredSha256": "f657f576c14cf61e23cc563eab54a07ef4f9774ddfca0c8bf3286c13bb76068f", + "vendoredSha256": "bd3978d7fc75d228ca02e4e4fa10c75b2095e23de1a84d5749c52485e565857f", "transforms": [ - "Unchanged since 0.1.1-experimental (imported from 329b801cf90f32cbca97c6699a908908968e4df6): at cd788e9 the author's file differs from that pin only in its copyright line, so the vendored copy keeps its earlier line. Its two MODWERK changes stay: the global label cave is renamed ts_cave (it links beside Direct Jump's unit), and the audio path's movea.l moves before its add.l (same d0, a0 and flags). With both taken back it links to the author's 62 bytes (SHA-256 a1eec6b67bb817cc2e063f23897377697f6057a9bf2389d5eb442813b854bba4)." + "The author's file at cd788e9 with one change, marked MODWERK: the global label cave is renamed ts_cave (it links beside Direct Jump's unit); no byte changes, and the unit links to the author's 62 bytes (SHA-256 a1eec6b67bb817cc2e063f23897377697f6057a9bf2389d5eb442813b854bba4). Until the V7.2.2 preparation the audio path's movea.l was also moved before its add.l, and the copyright line kept the 0.1.x form; both are back to the author's file (the move existed only for the stock-run scan that base 0.7.5, #1475, dropped)." ] }, { diff --git a/sdk/octatrack/modules/direct-jump-kyoti/README.md b/sdk/octatrack/modules/direct-jump-kyoti/README.md index a0be12d003..01546df37e 100644 --- a/sdk/octatrack/modules/direct-jump-kyoti/README.md +++ b/sdk/octatrack/modules/direct-jump-kyoti/README.md @@ -4,7 +4,7 @@ On the stock OS a cued pattern waits for the playing one to reach its end. With Direct Jump on, it takes over on the next step instead, locked to the master clock: it starts at the step it would be on had it been playing since you pressed PLAY, or since the last normal pattern change, whatever its length, scale or per-track settings. Trig conditions carry on as if the new pattern had played all along, each track gets its new Part settings with its own first trig, and with SILENCE TRACKS on the tracks a jump silences are released before the step instead of cut. The last MIDI Program Change sent names the pattern that plays. Direct Jump is off at every power-on, so the stock pattern change stays the default. -Version `0.2.0-experimental`, for OS 1.40C, over USB on the Modwerk base for beta testers, where the unit's module list shows it as DirectJmp Kyoti: a name there holds 15 characters, too few for Direct Jump Kyoti. This is Zac Kyoti's Direct Jump V7.3 from his repository (`octabam-modules/direct-jump-kyoti`, commit `cd788e9`), with his fix for stock's MIDI Plays-Free trig stall built in, as in his own Direct Jump builds. Modwerk re-encodes a few of its instructions so the USB package carries no stock code; the behaviour is his. +Version `0.2.0-experimental`, for OS 1.40C, over USB on the Modwerk base for beta testers, where the unit's module list shows it as DirectJmp Kyoti: a name there holds 15 characters, too few for Direct Jump Kyoti. This is Zac Kyoti's Direct Jump V7.3 from his repository (`octabam-modules/direct-jump-kyoti`, commit `cd788e9`), with his fix for stock's MIDI Plays-Free trig stall built in, as in his own Direct Jump builds. Modwerk runs his code unchanged: the unit is his bytes. **What 0.2.0 changes.** Trig conditions carry on across a jump instead of starting again (his V7.0.2). A jump lands one tick before the step it starts on, so the new pattern's first step is never late (V7.1), and a cue made in the playing pattern's last step is no longer taken by stock's own pattern change (V7.1.1). Each track's own Part settings reach the engine with that track's first sounding trig of the new pattern (V7.2). With SILENCE TRACKS on, the tracks a jump silences are released with stock's note-off just before the step (V7.2.2). A jump counts from the last restart: after a normal pattern change (Direct Jump off, a chain or the arranger), the new pattern lands in phase with the one that started there, and its trig conditions count from there too (V7.3). @@ -70,11 +70,11 @@ Hook sites: the landing countdown read in phase D of the sequencer's tick handle ## Tests and measurements -[TESTING.md](TESTING.md) has the commands and every result: the unit's bytes, the emulator gate (the toggle, OFF against the original OS, four jumps whose sequencer and trig-condition state equal reference runs, two jumps after a stock pattern change against runs that changed straight to the jump's pattern, each track's Part at its first trig, the SILENCE TRACKS release, and the MIDI Plays-Free stall on the original OS against the fix), the cycles and load, the USB package's stock-free scan, and what was not tested. Emulator results say nothing about a real unit's timing or audio. +[TESTING.md](TESTING.md) has the commands and every result: the unit's bytes, the emulator gate (the toggle, OFF against the original OS, four jumps whose sequencer and trig-condition state equal reference runs, two jumps after a stock pattern change against runs that changed straight to the jump's pattern, each track's Part at its first trig, the SILENCE TRACKS release, and the MIDI Plays-Free stall on the original OS against the fix), the cycles and load, the USB package, and what was not tested. Emulator results say nothing about a real unit's timing or audio. ## Authorship and licences -Zac Kyoti designed Direct Jump and wrote its ColdFire source (MIT, [LICENSE](LICENSE)); Sam Banks integrated it into octabam (MIT, [upstream/OCTABAM_LICENSE](upstream/OCTABAM_LICENSE)). Thanks to Sebastien Michel (uvbproject) for investigating the port in [pull request #856](https://github.com/repeat98/modwerk/pull/856); nothing from it is in the module. The author's own description is kept in [upstream/README.md](upstream/README.md) and octabam's wrapper page in [upstream/OCTABAM_README.md](upstream/OCTABAM_README.md). `../../../imports/direct-jump-kyoti-cd788e9.json` records each copied file with its source pin (the 0.1.x import is `../../../imports/direct-jump-kyoti-b725fb1.json`): `upstream/README.md` and `LICENSE` are the author's files byte for byte; `patch_directjump_v7.s` is his V7.3 with four kernel posts routed through one helper and two instruction pairs swapped (marked MODWERK); `patch_trigscale.s` is his MIDI Plays-Free fix from BATCH_BUGFIXES with one instruction moved and its label renamed (marked MODWERK); `manifest.py` declares the same units and sites with SHA-256 guards in place of stock bytes. The Modwerk gate (`verify.py`), documentation and thumbnail are GPL-3.0-or-later. No firmware, stock code, built image or card is included. +Zac Kyoti designed Direct Jump and wrote its ColdFire source (MIT, [LICENSE](LICENSE)); Sam Banks integrated it into octabam (MIT, [upstream/OCTABAM_LICENSE](upstream/OCTABAM_LICENSE)). Thanks to Sebastien Michel (uvbproject) for investigating the port in [pull request #856](https://github.com/repeat98/modwerk/pull/856); nothing from it is in the module. The author's own description is kept in [upstream/README.md](upstream/README.md) and octabam's wrapper page in [upstream/OCTABAM_README.md](upstream/OCTABAM_README.md). `../../../imports/direct-jump-kyoti-cd788e9.json` records each copied file with its source pin (the 0.1.x import is `../../../imports/direct-jump-kyoti-b725fb1.json`): `upstream/README.md` and `LICENSE` are the author's files byte for byte; `patch_directjump_v7.s` is his V7.3 file unchanged; `patch_trigscale.s` is his MIDI Plays-Free fix from BATCH_BUGFIXES with its label renamed (marked MODWERK; no byte changes); `manifest.py` declares the same units and sites with SHA-256 guards in place of stock bytes. The Modwerk gate (`verify.py`), documentation and thumbnail are GPL-3.0-or-later. No firmware, stock code, built image or card is included. ## Screens and audio diff --git a/sdk/octatrack/modules/direct-jump-kyoti/manifest.py b/sdk/octatrack/modules/direct-jump-kyoti/manifest.py index d12b57d927..f37ef459aa 100644 --- a/sdk/octatrack/modules/direct-jump-kyoti/manifest.py +++ b/sdk/octatrack/modules/direct-jump-kyoti/manifest.py @@ -43,18 +43,21 @@ track's scale with the audio stride, so the byte Direct Jump reads to place that track is garbage (the source then falls back to the master's). Since 0.1.1 that fix is folded in here, as the author's standalone image does: patch_trigscale.s, -his file (unchanged since 329b801c but for its copyright line), as a second unit -`ts` with one 18-byte splice. The bundle's other two fixes stay out. The two +his file at cd788e9 with one label renamed (`cave` -> `ts_cave`, as it links +beside Direct Jump's unit), as a second unit `ts` with one 18-byte splice. The bundle's other two fixes stay out. The two Keeps that protected the rest of the [PTN]-layer YES record are dropped: a USB package cannot carry them, and the symbol reference's own guard (the slot is NULL) still refuses a changed record. The author's conflicts name modules Modwerk does not have (octabam's DIRECT JUMP and OCTAKIT; Octakit wraps stock's switch block around the fifth site, and Modwerk's Kits, which follows its design, hooks the pattern schedule and chain append instead), so none is declared. -patch_directjump_v7.s is the author's V7.3 with six re-encodings marked -MODWERK (four kernel posts through one helper, two leas and the two operands of -one sum swapped): the same calls, values and flags, so that no 12 bytes of the -USB package repeat stock code. +patch_directjump_v7.s is the author's V7.3 file unchanged, so the unit is his +bytes. Up to the V7.2.2 preparation Modwerk re-encoded six spots (and moved one +instruction of patch_trigscale.s) only so that no 12 bytes of the USB package +matched a run of the stock OS. Base 0.7.5 (#1475) dropped that refusal, and those +runs were the author's original code calling the OS the way the OS calls itself +(the same arguments pushed, then the same routine), not Elektron bytes, so the +re-encodings are gone. """ import os @@ -85,17 +88,13 @@ TS_HOOK = 0x4009b6f2 # patch_directjump_v7.s, m68k-elf-as -mcpu=5407 or 54455 (identical), linked at 0x400d6d38: -# 3918 bytes. Re-linked there and compared on every build. The author's V7.3 at that address (his -# manifest's oracle at cd788e9, the code of his KYOTI V1.8C image KY18C DJR1) is 3938 bytes, SHA-256 -# 51478a6773f5b987dc98c595f55a3dd88e9de514d1cedb8fbd35cffe4755e48d; this source links to exactly that with -# its MODWERK re-encodings taken back (four kernel posts through dj_post, two leas and one sum's two -# operands swapped, so no 12 bytes of the USB package repeat stock code). V7.3's own additions needed none. -UNIT_BYTES = 3918 -REFERENCE = (0x400d6d38, "c8273e8f790ee5a046c8a4d459c4ff7276d65289d4812282a6e97c05d5f22cef") -# patch_trigscale.s, position independent, 62 bytes. With its MODWERK change taken back (one -# movea.l moved, the label renamed) it links to the author's pinned bytes, SHA-256 -# a1eec6b67bb817cc2e063f23897377697f6057a9bf2389d5eb442813b854bba4. -TS_REFERENCE = (0x400d7b00, "3f30e0a33d3776fc897803f95fe79ee14abe15ed8aa0496d645d22d4ecce604b") +# 3938 bytes, the author's V7.3 byte for byte: his manifest's REFERENCE at cd788e9, the code of his +# KYOTI V1.8C image KY18C DJR1. Re-linked there and compared on every build. +UNIT_BYTES = 3938 +REFERENCE = (0x400d6d38, "51478a6773f5b987dc98c595f55a3dd88e9de514d1cedb8fbd35cffe4755e48d") +# patch_trigscale.s, position independent, 62 bytes: the author's pinned bytes (the label rename +# changes no byte). +TS_REFERENCE = (0x400d7b00, "a1eec6b67bb817cc2e063f23897377697f6057a9bf2389d5eb442813b854bba4") MODULE = Module( name="direct-jump-kyoti", diff --git a/sdk/octatrack/modules/direct-jump-kyoti/octamod.module.json b/sdk/octatrack/modules/direct-jump-kyoti/octamod.module.json index 2a2023fa54..9f462fe602 100644 --- a/sdk/octatrack/modules/direct-jump-kyoti/octamod.module.json +++ b/sdk/octatrack/modules/direct-jump-kyoti/octamod.module.json @@ -15,7 +15,7 @@ "name": "Zac Kyoti", "credits": [ "Zac Kyoti: Direct Jump's design, its ColdFire source and the MKI hardware work behind it. Sam Banks: octabam integration.", - "Modwerk contributors: source import with stock guards in place of stock bytes, the stock-free re-encoding of the kernel posts and two instruction pairs for the USB package, the emulator gate, documentation and SVG thumbnail." + "Modwerk contributors: source import with stock guards in place of stock bytes, the emulator gate, documentation and SVG thumbnail." ] }, "nativeManifest": "manifest.py", diff --git a/sdk/octatrack/modules/direct-jump-kyoti/patch_directjump_v7.s b/sdk/octatrack/modules/direct-jump-kyoti/patch_directjump_v7.s index 8331f20bef..7463b27416 100644 --- a/sdk/octatrack/modules/direct-jump-kyoti/patch_directjump_v7.s +++ b/sdk/octatrack/modules/direct-jump-kyoti/patch_directjump_v7.s @@ -621,26 +621,13 @@ dj_unhide: move.b %d0,PEND_BANK move.b ACT_PAT,%d0 | the wrap's {0x11, pattern, 1} again: the UI repaints the cue move.b %d0,MSG_PAT_ARG - lea MSG_PAT,%a0 - bsr.w dj_post | MODWERK: KPOST(UI_QUEUE, MSG_PAT), see dj_post -du_out: - rts - -| MODWERK: dj_post(a0 = message) -- the kernel post stock's wrap-change makes, KPOST(UI_QUEUE, -| message), reached through %a1. Same calls in the same order as the author's four inline -| posts, so that no 12 bytes of a USB package repeat stock's own posting code (the strict -| stock-free scan); the second purge table's two leas and the two operands of the hand-off's -| switch time are swapped for the same reason. KPOST is a C function: it keeps a2-a6/d2-d7, -| which is all the callers rely on (every caller runs inside dj_land, which saves them all). -dj_post: - move.l %a0,-(%sp) + pea MSG_PAT pea UI_QUEUE - lea KPOST,%a1 - jsr (%a1) + jsr KPOST addq.l #8,%sp +du_out: rts - | dl_commit: the landing tick. Registers are free (saved by the caller). dl_commit: tst.b dj_spn @@ -777,13 +764,17 @@ dc_store: | read out of the old bank. move.b ACT_BANK,%d0 move.b %d0,MSG_BANKPAT_ARG - lea MSG_BANKPAT,%a0 - bsr.w dj_post | MODWERK: KPOST(UI_QUEUE, MSG_BANKPAT), see dj_post + pea MSG_BANKPAT + pea UI_QUEUE + jsr KPOST + addq.l #8,%sp bsr.w dj_handoff | V7.0.1: the rest of stock's real-switch hand-off move.b ACT_PAT,%d0 move.b %d0,MSG_PAT_ARG - lea MSG_PAT,%a0 - bsr.w dj_post | MODWERK: KPOST(UI_QUEUE, MSG_PAT), see dj_post + pea MSG_PAT + pea UI_QUEUE + jsr KPOST + addq.l #8,%sp moveq #ST_LANDING,%d0 move.b %d0,dj_state .ifdef DJ_DIAG @@ -855,8 +846,10 @@ dj_handoff: move.l #P_PART,%d1 move.b (%a2,%d1.l),%d0 move.b %d0,MSG_PART_ARG - lea MSG_PART,%a0 - bsr.w dj_post | MODWERK: KPOST(UI_QUEUE, MSG_PART), see dj_post + pea MSG_PART + pea UI_QUEUE + jsr KPOST + addq.l #8,%sp | audio engine: flags = bit0 | bit1 | START-SILENT tracks (bits 8..15), 0x400a45a8-0x400a463a moveq #3,%d4 move.l #A_LEN+T_SILENT,%d3 | audio track 0 record +3 (= +0x53) @@ -864,8 +857,8 @@ dj_handoff: bsr.w ho_bits move.l %d4,ENG_AFLAGS move.l %d4,dj_silA | V7.2: START SILENT tracks publish on the boundary tick - move.l #TICK_A,%d0 | MODWERK: TICK_A + sclk, the same sum and flags (dj_post's note) - add.l SCLK,%d0 | stock: sclk + tps_M * TICK_A; V7.1: the boundary is the NEXT tick + move.l SCLK,%d0 | stock: sclk + tps_M * TICK_A (a master step ahead) + addi.l #TICK_A,%d0 | V7.1: the boundary is the NEXT tick (V7.0.x: "now") move.l %d0,ENG_ATIME move.b ACT_BANK,%d0 move.b %d0,ENG_ABANK @@ -1226,8 +1219,8 @@ dj_purge: lea 0x46c7fe44,%a3 bsr.b pg_table lea 0x80001984,%a0 - lea 0x46c7fe8c,%a3 | MODWERK: a3 before a1 (dj_post's note) lea 0x46c7faa4,%a1 + lea 0x46c7fe8c,%a3 bsr.b pg_table move.l MCLK,%d5 move.l #TICK_M/2,%d3 | half a MIDI tick diff --git a/sdk/octatrack/modules/direct-jump-kyoti/patch_trigscale.s b/sdk/octatrack/modules/direct-jump-kyoti/patch_trigscale.s index e363a46c7a..92b3204444 100644 --- a/sdk/octatrack/modules/direct-jump-kyoti/patch_trigscale.s +++ b/sdk/octatrack/modules/direct-jump-kyoti/patch_trigscale.s @@ -1,5 +1,5 @@ | SPDX-License-Identifier: MIT -| SPDX-FileCopyrightText: 2026 Zac-Kyoti +| SPDX-FileCopyrightText: 2026 Zac Kyoti | patch_trigscale -- fix the MIDI manual-trig stall (Plays Free + Direct + Per-Track scale) | | Root cause (NOTES.md "Session 5 part 3"): FUN_4009b5c8's SCALE_MODE("Per Track")-gated @@ -45,8 +45,8 @@ ts_cave: | ---- audio track (0..7): unchanged behaviour ---- move.l #AUDIO_STRIDE,%d0 muls.l %d3,%d0 - movea.l %d1,%a0 | MODWERK: before the add.l, so the USB package does not repeat - add.l %d2,%d0 | the 18 stock bytes this replays; same d0, a0 and flags + add.l %d2,%d0 + movea.l %d1,%a0 lea (AUDIO_SCALE_OFF,%a0,%d0.l),%a0 jmp BACK diff --git a/src/community/module-changelogs/direct-jump-kyoti.json b/src/community/module-changelogs/direct-jump-kyoti.json index 513939b0ac..df2e4fcb29 100644 --- a/src/community/module-changelogs/direct-jump-kyoti.json +++ b/src/community/module-changelogs/direct-jump-kyoti.json @@ -7,7 +7,7 @@ "Trig conditions carry on across a jump: 1:2 and the other A:B counts stand where the new pattern's would since that restart. A held [FILL] stays on, and a PRE trig right after the jump plays.", "A jump now lands just before the step, so the new pattern's first step is never late, and a cue made in the playing pattern's last step lands on its grid point too.", "With LFO AUTO CHANGE on, each track's new LFOs arrive with its first trig of the new pattern; with SILENCE TRACKS on, the tracks a jump silences are released just before the step, without a pop.", - "Known issue: the author tested these on his MKI in his own builds of the same code; this Modwerk build has not yet run on a unit." + "Known issue: the author tested these on his MKI in his own builds of the same code, which Modwerk now ships unchanged; this Modwerk build has not yet run on a unit." ] }, { From 9adaa5406cd796890753df82f11fdb998597ca73 Mon Sep 17 00:00:00 2001 From: Zac-Kyoti <273702472+Zac-Kyoti@users.noreply.github.com> Date: Mon, 16 Nov 2026 19:43:25 -0800 Subject: [PATCH 025/415] Direct Jump Kyoti 0.2.0: package, gate and evidence for the author's unchanged V7.3 USB package rebuilt from 20d216e1b (build-modules-isolated.sh, modules:import --development, octatrack:module-packages): 4,546 bytes, ed3ba88a..., seven sites; --check and --check --stock reproduce it. Tape Echo's and Euclid's standalone recipes re-pinned to the regenerated assets. Native module-alone image MAIN OS a7074bfd...: verify.py 74/74 passed. Performance re-measured (dearest landing tick 9,078 authored, static 41,017; flood 156.7 us vs stock 155.7 us); perf:audit check passes. Captures byte-identical; qualification source/image hashes and the evidence revision updated; TESTING and the pending hardware record name the new image (MW_DJK73B). Co-Authored-By: Claude Opus 5.5 --- .../direct-jump-kyoti/0.2.0-experimental.mwrm | Bin 4526 -> 4546 bytes .../module-adapters/standalone-recipes.json | 16 +++--- .../modules/direct-jump-kyoti/TESTING.md | 14 ++--- .../direct-jump-kyoti/evidence/hardware.md | 4 +- .../evidence/performance.json | 8 +-- .../direct-jump-kyoti/media/capture.json | 2 +- .../direct-jump-kyoti/octamod.module.json | 50 +++++++++--------- src/engine/assets/bootstrap-package.json | 2 +- src/engine/assets/coldfire-packages.json | 2 +- src/engine/assets/descriptor-recipes.json | 2 +- src/engine/assets/dsp-packages.json | 2 +- src/engine/assets/menu-recipes.json | 2 +- src/engine/assets/module-build.json | 28 +++++----- .../assets/octatrack-module-packages.json | 4 +- src/engine/assets/platform-writes.json | 2 +- src/engine/assets/requested-packages.json | 20 +++---- src/engine/assets/resident-dsp.json | 2 +- src/engine/assets/rom-packages.json | 2 +- src/engine/assets/usb-audio-packages.json | 2 +- src/engine/assets/utility-packages.json | 2 +- 20 files changed, 83 insertions(+), 83 deletions(-) diff --git a/public/octatrack-modules/direct-jump-kyoti/0.2.0-experimental.mwrm b/public/octatrack-modules/direct-jump-kyoti/0.2.0-experimental.mwrm index 8252cd7ef6674a9fa72256879730a4543050030b..0a0bf7852ef6d02495b3bb6a1ddc5d3133b9afd4 100644 GIT binary patch delta 976 zcmZ`%O-vI(6n@j6ZM)r;g=*BqkV=(5lY&TUxu|Yj?`vAFm!63|}xx zXFzgvhfFfqvqi~qmECe_PdquJ;gk!@bWYOJfF5vLR_->aGH~w$>h-J~N%%}B40*?2 z{^R*7him9}EwC2)(TONl8AxvsfDaQEI~tG#i`I&*MU?E{DQ7%JKGAaH+rHWQu7JdU z3pKG}%<8pG=^a$+IoN4VDHSFDohzvg6xjk}^UNaQN>(`fJF2@;wpVvoIrc>AV-+Bj zoxR7RKhiQ=%hI+OVS({ESCWpJ>I!anCH}GAZ?43TyCwd9tkKKU zjkZSN)X%D=t;sVee+|Je+ zZ(CxF$EP3I2_Z51Q1Dn{Y;AFx6hb6Eo$pW$rj-HrN%}maz2+H!`6glnfXhZ)1F)V) zC;+zo_%<{YBG8UsMyvwZn-DDk!bQXYVhFKGgW?6E(u7zl`={~B%Ot>U5x}C= zsNmeCg5zDN6~H}|05Xeyq5+wdTXi^5%q!A8O=Nr?`9M+*pM~5#rfoRQYhR&!dDtO(PdqA^fpPZ*nL5d}}NP3k+_zKr&a3Sf=)1RNa~ z!qVD_eamei2BX>70PAzX(BP=6Wa&UN*6vNQEsAj2Ja2;{=w3xgcUm0qLH94 zt{u{Sig23#u?B3RgTI9+ZMJPC>*#S?eH&|=RAJ>6w!Tp*y;{)9;}mC(A=)D=&IY_Y zPTP^Pm_GW>wwZjRJikL=rA}d~dK%-`OXJ=kY&`a(G!vG4GPIZ9OD3kK`R_#Xd98*( z_C_1%q~jTBq9>h)#RJRXg_Ya;(Ec8wubua+YE#f`%yN>2ZlJxw#g<%N$625kVwJzf zp)ezEj!Amt3j*Bfmba|~wjQJPu1oe&#&c6+E<(sC9T)xfQFduL`bJEW+*DA~Ijgt5 zbd?sX&K%4G*iwk=0K9-W0^kTE;s8zuz6=Akh(W|t#7h8I2+;u`MiA!_X~cV)mXDHN ax+DikfpXOWa*J+5`-L7y8>55O&3^$V4-O#! diff --git a/sdk/machines/octatrack/module-adapters/standalone-recipes.json b/sdk/machines/octatrack/module-adapters/standalone-recipes.json index be1e19e57f..700d1d61ce 100644 --- a/sdk/machines/octatrack/module-adapters/standalone-recipes.json +++ b/sdk/machines/octatrack/module-adapters/standalone-recipes.json @@ -205,10 +205,10 @@ "src/engine/coldfire-elf.ts": "319ca0d835d1b0c602c8f4b06990016d0ebfe246cedbfc596cea3cc7adfe3cd2", "src/engine/module-build.ts": "dcd8397b8cecf6fab61debd9aa2f86f612da0ca6ccf363c79d56033bc170b993", "src/catalog/modules.ts": "6d2fe6f6ef31ea7502a2ea728105a9faa2ccf8f6c67478b3c146f889ff41c0bf", - "src/engine/assets/dsp-packages.json": "8682b2520f8195ed1b51ed3206a593c5e4e0a82f27581b824f99ceec888195f0", - "src/engine/assets/descriptor-recipes.json": "1c2ee56acadfca16e95d8160682d01ea22319995b2e37272be39f2f3eb97bea3", - "src/engine/assets/menu-recipes.json": "dffb3c2633077aa6282e2fc33342b1e2f8a784a2831f49448af42430ee5a1dab", - "src/engine/assets/rom-packages.json": "07dfe2ebe48508da63dc3026943b1ad74a4f41684fc352f0942199810a68aadb", + "src/engine/assets/dsp-packages.json": "80a4c6ede5b28eca1d7db20d3112195128399b58c668d7511380504e0dd82ce8", + "src/engine/assets/descriptor-recipes.json": "fd3d6a5e8d5ca1a6c33d0629ceb3b512354bd8a38ca938d8c760aea77ed249e8", + "src/engine/assets/menu-recipes.json": "4be5fd7505a10219322206f17c67280d778ec64cc670ae18b4980947a6467219", + "src/engine/assets/rom-packages.json": "af9d9c4fda346b35d3176e6b18bec6c7d98703b744d6977bdc021676fb93a28e", "upstream/elekloader/link.py": "5d31157ccbe62807ff9f05fd47e1e55b54be0475ab53565e6607a56566603ba8", "upstream/elekloader/dsp.py": "9486d64eecee023670b716f6ae854996da02ee7c1a0efd5361cd963c756dbc69", "upstream/elekloader/patch.py": "77c0a74bf4b0ff8c5525d4c4b1bc42af765314a4601c0510577817a7487d8666", @@ -405,10 +405,10 @@ "src/engine/coldfire-elf.ts": "319ca0d835d1b0c602c8f4b06990016d0ebfe246cedbfc596cea3cc7adfe3cd2", "src/engine/module-build.ts": "dcd8397b8cecf6fab61debd9aa2f86f612da0ca6ccf363c79d56033bc170b993", "src/catalog/modules.ts": "6d2fe6f6ef31ea7502a2ea728105a9faa2ccf8f6c67478b3c146f889ff41c0bf", - "src/engine/assets/dsp-packages.json": "8682b2520f8195ed1b51ed3206a593c5e4e0a82f27581b824f99ceec888195f0", - "src/engine/assets/descriptor-recipes.json": "1c2ee56acadfca16e95d8160682d01ea22319995b2e37272be39f2f3eb97bea3", - "src/engine/assets/menu-recipes.json": "dffb3c2633077aa6282e2fc33342b1e2f8a784a2831f49448af42430ee5a1dab", - "src/engine/assets/rom-packages.json": "07dfe2ebe48508da63dc3026943b1ad74a4f41684fc352f0942199810a68aadb", + "src/engine/assets/dsp-packages.json": "80a4c6ede5b28eca1d7db20d3112195128399b58c668d7511380504e0dd82ce8", + "src/engine/assets/descriptor-recipes.json": "fd3d6a5e8d5ca1a6c33d0629ceb3b512354bd8a38ca938d8c760aea77ed249e8", + "src/engine/assets/menu-recipes.json": "4be5fd7505a10219322206f17c67280d778ec64cc670ae18b4980947a6467219", + "src/engine/assets/rom-packages.json": "af9d9c4fda346b35d3176e6b18bec6c7d98703b744d6977bdc021676fb93a28e", "upstream/elekloader/link.py": "5d31157ccbe62807ff9f05fd47e1e55b54be0475ab53565e6607a56566603ba8", "upstream/elekloader/dsp.py": "9486d64eecee023670b716f6ae854996da02ee7c1a0efd5361cd963c756dbc69", "upstream/elekloader/patch.py": "77c0a74bf4b0ff8c5525d4c4b1bc42af765314a4601c0510577817a7487d8666", diff --git a/sdk/octatrack/modules/direct-jump-kyoti/TESTING.md b/sdk/octatrack/modules/direct-jump-kyoti/TESTING.md index d54f1697c4..df266fff7c 100644 --- a/sdk/octatrack/modules/direct-jump-kyoti/TESTING.md +++ b/sdk/octatrack/modules/direct-jump-kyoti/TESTING.md @@ -4,21 +4,21 @@ Version `0.2.0-experimental` (DIRECT JUMP V7.3), recorded 16 November 2026. Its ## 0.2.0-experimental: DIRECT JUMP V7.3 -- **Source.** Zac-Kyoti/octatrack-kyoti-fw `cd788e93c765120cd2d2feda60bafee9a02f8508`, `octabam-modules/direct-jump-kyoti/` (record: `../../../imports/direct-jump-kyoti-cd788e9.json`). The author's changes since V7.0.1: trig conditions stand where a never-switched incoming pattern would hold them instead of being reset (V7.0.2, `dj_cond`); a jump lands one tick before the step boundary (V7.1); a cue armed by Direct Jump is never taken by stock's wrap-change (V7.1.1, `dj_hide`/`dj_unhide`); each track's Part reaches the engine at its first sounding trig, with LFO AUTO CHANGE on (V7.2, `dj_sparm`..`dj_mapply`, and one new site, `dj_lfoq` at `0x40009ebe`); the tracks the switch silences are released with stock's note-off `0x40008f84` on the tick after the landing (V7.2.2, `dj_relsil`); and the last restart, PLAY or a stock pattern switch (Direct Jump off, a chain, the arranger), is a jump's time origin for its landing position and its trig conditions (V7.3, `dj_swres` at a second new site, `0x400a4850`, and the restart frame in `dj_tprime`, `dl_commit` and `dj_cond`). `DJ_SELFHOOK` and `DJ_DIAG` stay undefined. This version was first prepared from `109f54c` (V7.2.2, unit `4d28a1d8…`, image `3c7b1419…`, package `3185b05c…`); nothing of that preparation was published. -- **Source identity.** `patch_directjump_v7.s` is the author's file with six re-encodings, each marked MODWERK: the four inline kernel posts go through `dj_post` (the 0.1.x helper, now also used by `dj_unhide`), the second purge table's two `lea`s are swapped as before, and the hand-off's switch time is formed as `move.l #TICK_A,%d0; add.l SCLK,%d0` instead of `move.l SCLK,%d0; addi.l #TICK_A,%d0` (the same sum and flags). Every caller of `dj_post` runs inside `dj_land`, which saves every register. V7.3's own code is vendored unchanged: it adds no run of stock bytes (below). Assembled with `m68k-elf-as -mcpu=5407` or `-mcpu=54455` (identical) and linked at `0x400d6d38`, the unit is 3,918 bytes, SHA-256 `c8273e8f790ee5a046c8a4d459c4ff7276d65289d4812282a6e97c05d5f22cef` (the manifest's reference). With the six changes taken back the same file is the author's, byte for byte, and links to his 3,938 bytes, `51478a6773f5b987dc98c595f55a3dd88e9de514d1cedb8fbd35cffe4755e48d`, his manifest's REFERENCE at cd788e9 (checked locally, 16 November 2026, with both CPU options). `patch_trigscale.s` and `LICENSE` are unchanged from 0.1.x (the author's files at cd788e9 differ from them only in a copyright line). +- **Source.** Zac-Kyoti/octatrack-kyoti-fw `cd788e93c765120cd2d2feda60bafee9a02f8508`, `octabam-modules/direct-jump-kyoti/` (record: `../../../imports/direct-jump-kyoti-cd788e9.json`). The author's changes since V7.0.1: trig conditions stand where a never-switched incoming pattern would hold them instead of being reset (V7.0.2, `dj_cond`); a jump lands one tick before the step boundary (V7.1); a cue armed by Direct Jump is never taken by stock's wrap-change (V7.1.1, `dj_hide`/`dj_unhide`); each track's Part reaches the engine at its first sounding trig, with LFO AUTO CHANGE on (V7.2, `dj_sparm`..`dj_mapply`, and one new site, `dj_lfoq` at `0x40009ebe`); the tracks the switch silences are released with stock's note-off `0x40008f84` on the tick after the landing (V7.2.2, `dj_relsil`); and the last restart, PLAY or a stock pattern switch (Direct Jump off, a chain, the arranger), is a jump's time origin for its landing position and its trig conditions (V7.3, `dj_swres` at a second new site, `0x400a4850`, and the restart frame in `dj_tprime`, `dl_commit` and `dj_cond`). `DJ_SELFHOOK` and `DJ_DIAG` stay undefined. This version was first prepared from `109f54c` (V7.2.2, unit `4d28a1d8…`, image `3c7b1419…`, package `3185b05c…`), then from cd788e9 with the re-encodings (unit `c8273e8f…`, image `0361d75f…`, package `2f25a208…`); nothing of either was published. +- **Source identity.** `patch_directjump_v7.s` is the author's file at cd788e9, unchanged. Up to the V7.2.2 preparation Modwerk re-encoded six spots in it (the four inline kernel posts through a `dj_post` helper, the second purge table's two `lea`s, the hand-off's sum) only so that no 12 bytes of the USB package matched a run of the stock OS. Base 0.7.5 (#1475) dropped that refusal, and those runs were the author's original code calling the OS the way the OS calls itself, so the author decided to ship his bytes. Assembled with `m68k-elf-as -mcpu=5407` or `-mcpu=54455` (identical) and linked at `0x400d6d38`, the unit is 3,938 bytes, SHA-256 `51478a6773f5b987dc98c595f55a3dd88e9de514d1cedb8fbd35cffe4755e48d`, his manifest's REFERENCE at cd788e9 (checked locally, 16 November 2026). `patch_trigscale.s` is his file at cd788e9 with only its global label renamed `ts_cave` (it links beside Direct Jump's unit; no byte changes): 62 bytes, `a1eec6b67bb817cc2e063f23897377697f6057a9bf2389d5eb442813b854bba4`, his pinned bytes. Its earlier MODWERK move of one `movea.l`, also made only for the scan, is gone, and its copyright line is his current one. `LICENSE` is unchanged from 0.1.x (the author's file at cd788e9 differs from it only in a copyright line). - **New stock sites.** `0x40009ebe`, 6 bytes, `tst.b` of LFO AUTO CHANGE in the light Part apply `0x40009e00`: guard SHA-256 `37edecfc18058ca757b701a5e909152025e5ceb96e33328800af3bea09dd5e94`. `dj_lfoq` replays it, except once after a jump's hand-off when it returns Z = 1 so that apply skips its per-track LFO part. `0x400a4850`, 6 bytes, the `jsr` with which stock's switch block (the wrap body with a pending pattern, right after it restarts the master) calls COND_RESET(-1), after its `pea -1`: guard SHA-256 `3eb71e079e73b289302dbd71e2397466226349dc505a46c2cc16a49a1595c7db`. The detour is a `jsr dj_swres`; `dj_swres` sets the jump's clock to minus the outgoing pattern's ticks per step (the new pattern's first step still runs at the outgoing rate) and its start step to the master step stock just set, using `d0`/`a0` only, then `jmp`s to COND_RESET without pushing anything, so COND_RESET returns to `0x400a4856` with the -1 on the stack, as from stock's own call. A jump never runs that block (its landing is phase D's re-landing). Both guards match the original MAIN OS. `modules:compat` finds no other module or base hook on either; Kits hooks the pattern schedule and the chain append, not the switch block. -- **Tested image.** No card builder is left in Modwerk, so the native image of this module alone with every stock effect kept was made the way the retired `export-composition-proofs.py --vendored-sdk --static-stock --select direct-jump-kyoti:true` made it: octabam's `build_bus.py` from a private copy of this checkout's `sdk/octabam` (modules mirrored in), in the `modwerk-source-tools` container, with a remix of the stock FX1 and FX2 lists plus DIRECT_JUMP_KYOTI. The same driver, on the same container, rebuilt the V7.2.2 preparation's image `3c7b1419…` byte for byte. MAIN OS SHA-256 `0361d75f8b02ad49cae4802bfce8a0ef6de653b36d9fa2742f7cf960df35942f` (1,115,478 bytes), built from the source of commit `7595416db`. +- **Tested image.** No card builder is left in Modwerk, so the native image of this module alone with every stock effect kept was made the way the retired `export-composition-proofs.py --vendored-sdk --static-stock --select direct-jump-kyoti:true` made it: octabam's `build_bus.py` from a private copy of this checkout's `sdk/octabam` (modules mirrored in), in the `modwerk-source-tools` container, with a remix of the stock FX1 and FX2 lists plus DIRECT_JUMP_KYOTI. The same driver, on the same container, rebuilt the V7.2.2 preparation's image `3c7b1419…` byte for byte. MAIN OS SHA-256 `a7074bfd6fea3c9516eaf872d1693327957fe4c1248b01ead73136fadbfe9f1c` (1,115,452 bytes), built from the source of commit `20d216e1b` (the same driver and tools built the re-encoded V7.3 form, `0361d75f…`, earlier the same day). - **Emulator.** `ot_emu` built from this checkout's `sdk/octabam/tools/emu/ot_emu` (with the `upstream:tools` checkout's vendored cores), SHA-256 `87d73ccf8519e0ff8746ddf570fceb00f1ea305284c05379dcfe54a1d1954de8`. - **The gate.** `verify.py` (below), extended for 0.2.0: part 1 checks the two new guards and the `jsr`s to `dj_lfoq` and `dj_swres`; every jump of part 4 also compares the trig-condition state (each track's A:B pass counter and the FILL and PRE latches) with the reference run, starting both from stock's STOP reset; part 4 adds a cue in the outgoing pattern's last step and a latched [FILL]; parts 7, 8 and 9 are new. Result on the tested image: **all 74 checks passed** (about 16 minutes; 60 on the V7.2.2 preparation). - Part 4: every jump lands at tick 47 (cued at 41; V7.1's tick before the step boundary, so the new pattern's first step fires on the boundary at 48), the cue in the last step (tick 92) at 95, and from the tick after the landing to tick 300 the sequencer state and the trig-condition state equal the reference run on every tick (A:B counters up to 15 in the PER TRACK case). A latched [FILL] stays latched across the jump, on the same ticks as in the reference (a stock switch clears it); no jump calls the note-off when nothing is silenced. - Part 7, each track's Part at its first sounding trig: A02 on Part 2 with sample trigs written into it in RAM (T1 step 5, T2 step 10, T4 step 8, T5 step 13), LFO AUTO CHANGE on. Each of those tracks was handed to stock's per-track Part apply (`0x40001f18`, bank A, Part 2) exactly once, on the tick its trig's step started (T2 at 54, T5 at 72, and T1 at 120 and T4 at 138, whose steps the landing had passed, so their trigs came round on the next pass), the other four audio tracks and all eight MIDI tracks on the boundary tick 48; the switch's light Part apply skipped its per-track part once (`dj_lfoq`). With LFO AUTO CHANGE off the same jump deferred nothing and the light apply ran stock. - Part 8, SILENCE TRACKS: SILENCE TRACKS on (`0x8000004f`), T3 and T7 START SILENT OFF, the other six at the default: the unit called stock's note-off for T1, T2, T4, T5, T6 and T8 once each, on tick 48, the tick after the landing, and for nothing else. - Part 9, the last restart (the author's `cmp_reflock.py --ref-for` case, with the gate's own code): PLAY on A01 (16 steps, 1x), A02 cued the stock way at tick 40 (Direct Jump off), Direct Jump turned on at tick 100, A03 cued at tick 114; the reference cues A03 the stock way at tick 40 and turns Direct Jump on at tick 100. Ticks are counted from PLAY by the calls of the unit's tick hook, so the re-based clock cannot hide a shift. With A02 and A03 12 steps at 1x (the author's hardware case): both runs' stock change lands at tick 90, and stock's switch called COND_RESET through `0x400a4850` once in each run (the jump never); when the jump is cued, A02 and the reference's A03 are both on master step 4; the jump lands at tick 119 and from tick 120 to tick 300 (181 ticks) the sequencer state and the trig-condition state equal the reference's on every tick. With A02 12 steps at 2x and A03 12 steps at 3/4x (the switch's first step runs at the outgoing rate), cued at tick 120: both changes land at tick 90, the jump at tick 127, and from tick 128 to tick 330 (203 ticks) both comparisons hold. The V7.2.2 preparation's image, run through the same part, fails three of these checks: in the first case both comparisons (A03 on master step 9 against the reference's 5 from tick 120, A:B counters 1..4 against 0..2), as the author's hardware report describes; in the second the trig conditions (counters 1..3 from tick 128; its positions happen to agree there). -- **USB package.** `public/octatrack-modules/direct-jump-kyoti/0.2.0-experimental.mwrm`, SHA-256 `2f25a2084402f03ff3cd09e25cc59a90cadfaa714b21639e60567b03af8c533b` (4,526 bytes, ABI 7, module `075d79a3`, title DirectJmp Kyoti), seven stock-code sites (the four detours of 0.1.x, the new `0x40009ebe` and `0x400a4850`, and the pointer), each named by the SHA-256 of the stock bytes. Built from commit `7595416db` with `scripts/build-modules-isolated.sh` (the `modwerk-source-tools` image `sha256:2c78cdad…`), imported with `modules:import --development`, and `octatrack:module-packages`; `--check` and `--check --stock` reproduce it. Tape Echo's and Euclid's standalone recipes are re-pinned to the regenerated asset files (`dsp-packages.json`, `descriptor-recipes.json`, `menu-recipes.json`, `rom-packages.json`; only their `sourceCommit` changed). The stock scans no longer refuse a package (base 0.7.5, #1475), so they were run as tools: the longest run of the package also found in the stock OS has 11 counted bytes (`module_packages.runs`, which refused 12 before), and `check_stock_free.stock_runs` finds no 16-byte run in the MAIN image or the DSP words, the same as the V7.2.2 preparation's package. The 0.1.2 package is removed, as every module update removes its previous one. -- **Performance** (`evidence/performance.json`, `perf:audit -- check` passes; ot_emu, not chip timing). Authored instructions of `dj_land` per tick, the stock routines it calls excluded: OFF 30, ON idle 45; up to 1,898 a tick while tracks wait for their first trig (16 tracks scanned); an ordinary landing tick 4,245, also after a stock pattern change; the tick after it with SILENCE TRACKS on and every track published 4,843 (13,195 with the stock note-offs and Part applies); the dearest, 9,090 (17,237 with the stock calls), a cue that lands on the tick it arms and first publishes 16 waiting tracks (eight MIDI Part copies, every MIDI LFO on a designer wave). At 16 cycles an instruction: 145,440 against the next tick's deadline of 2,200,000 at 300 BPM. A mechanical static bound over every routine `dj_land` can reach, loops at their caps: 41,033 instructions (656,528 cycles). `dj_swres` runs 13 instructions in stock's switch block, once per stock pattern change. V7.3 adds 8 instructions to a landing tick against V7.2.2 (static +486) and none to the other ticks. Under a 15 s MIDI flood (1,000 messages a second, clock at 250 BPM, a jump every second): longest frame interrupt 156.7 µs against the original OS's 155.7 µs (V7.2.2: 155.9 µs; the original OS and V7.2.2 runs repeated identically), idle 54.57 % against 54.87 %, every message reached its handler, no hang. The per-track publish adds `TRK_APPLY` calls (stock) to the tick that publishes; `dj_lfoq` adds 7 instructions to the frame interrupt's light Part apply. -- **Memory.** 3,918 bytes in the DRAM reserve (code, the two toast strings and 176 bytes of state) and the fix's 62: 3,980 bytes; six six-byte detours and the four-byte pointer: 40 bytes of stock writes. 4,020 bytes in all. No DSP memory, no heap, no saved data. +- **USB package.** `public/octatrack-modules/direct-jump-kyoti/0.2.0-experimental.mwrm`, SHA-256 `ed3ba88a2f57c7f5ab122a5f572a8a814c91a338c5baa3a56da324c86d71060d` (4,546 bytes, ABI 7, module `075d79a3`, title DirectJmp Kyoti), seven stock-code sites (the four detours of 0.1.x, the new `0x40009ebe` and `0x400a4850`, and the pointer), each named by the SHA-256 of the stock bytes. Built from commit `20d216e1b` with `scripts/build-modules-isolated.sh` (the `modwerk-source-tools` image `sha256:2c78cdad…`), imported with `modules:import --development`, and `octatrack:module-packages`; `--check` and `--check --stock` reproduce it. Tape Echo's and Euclid's standalone recipes are re-pinned to the regenerated asset files (`dsp-packages.json`, `descriptor-recipes.json`, `menu-recipes.json`, `rom-packages.json`; only their `sourceCommit` changed). The stock-run scans, run as tools (nothing refuses on them since base 0.7.5): the longest run of the package also in the stock OS has 23 counted bytes, and `check_stock_free.stock_runs` lists five runs of 16 or more: four in Direct Jump's unit, at the spots the earlier re-encodings changed (the author's kernel posts, a purge table's address loads and the hand-off's switch time, 16 to 24 bytes, matching stock's wrap-change at `0x400a4550`..`0x400a4b9c`), and 18 bytes in the Plays-Free fix, whose audio path redoes the 18 stock bytes at `0x4009b6f2` it replaces, in stock's order. The 0.1.2 package is removed, as every module update removes its previous one. +- **Performance** (`evidence/performance.json`, `perf:audit -- check` passes; ot_emu, not chip timing). Authored instructions of `dj_land` per tick, the stock routines it calls excluded: OFF 30, ON idle 45; up to 1,898 a tick while tracks wait for their first trig (16 tracks scanned); an ordinary landing tick 4,233, also after a stock pattern change; the tick after it with SILENCE TRACKS on and every track published 4,843 (13,195 with the stock note-offs and Part applies); the dearest, 9,078 (17,225 with the stock calls), a cue that lands on the tick it arms and first publishes 16 waiting tracks (eight MIDI Part copies, every MIDI LFO on a designer wave). At 16 cycles an instruction: 145,248 against the next tick's deadline of 2,200,000 at 300 BPM. A mechanical static bound over every routine `dj_land` can reach, loops at their caps: 41,017 instructions (656,272 cycles). `dj_swres` runs 13 instructions in stock's switch block, once per stock pattern change. Against the V7.2.2 preparation (with the re-encodings: landing 4,237, dearest 9,082, static 40,547), V7.3 as the author wrote it adds 8 instructions to a landing tick for the restart frame and saves 12 that `dj_post` cost; the other ticks are unchanged. Under a 15 s MIDI flood (1,000 messages a second, clock at 250 BPM, a jump every second): longest frame interrupt 156.7 µs (27,574 instructions) against the original OS's 155.7 µs (the V7.2.2 preparation: 155.9 µs; the original OS and V7.2.2 runs repeated identically), idle 54.57 % against 54.87 %, every message reached its handler, no hang. The per-track publish adds `TRK_APPLY` calls (stock) to the tick that publishes; `dj_lfoq` adds 7 instructions to the frame interrupt's light Part apply. +- **Memory.** 3,938 bytes in the DRAM reserve (code, the two toast strings and 176 bytes of state) and the fix's 62: 4,000 bytes; six six-byte detours and the four-byte pointer: 40 bytes of stock writes. 4,040 bytes in all. No DSP memory, no heap, no saved data. - **Captures.** The three screens, taken again on the tested image with the same panel plan, are byte-identical to 0.1.2's (`media/capture.json`). -- **Hardware.** Not yet run on a unit. A hardware test image of the tested native build (MAIN OS `0361d75f…`, version string MW_DJK73) is with the author for his MKI; his results go into [evidence/hardware.md](evidence/hardware.md). The author's own results are for his builds, not this one: on 15 November 2026 his standalone image `140C_KDJ7` (mainos `7c6131e7…`) ended the SILENCE TRACKS pop, and his KYOTI V1.8C image (the same Direct Jump code beside his Clyps module, flashed as `KY+CL DJC9`) passed his walk-through of landings at other lengths and scales, a cue in the last step, trig conditions across a jump and each track's Part with LFO AUTO CHANGE on; on 16 November 2026 KYOTI V1.8C with V7.3 (`KY18C DJR1`, mainos `9d1a29c9…`): after a normal change from a 16-step A01 to a 12-step A02, a jump to a 12-step A03 landed in phase with A02, 1:2 trigs stayed in step across it, and a Clyps load after it stayed in step. +- **Hardware.** Not yet run on a unit. A hardware test image of the tested native build (MAIN OS `a7074bfd…`, version string MW_DJK73B) is with the author for his MKI; his results go into [evidence/hardware.md](evidence/hardware.md). The author's own results are for his builds, not this one: on 15 November 2026 his standalone image `140C_KDJ7` (mainos `7c6131e7…`) ended the SILENCE TRACKS pop, and his KYOTI V1.8C image (the same Direct Jump code beside his Clyps module, flashed as `KY+CL DJC9`) passed his walk-through of landings at other lengths and scales, a cue in the last step, trig conditions across a jump and each track's Part with LFO AUTO CHANGE on; on 16 November 2026 KYOTI V1.8C with V7.3 (`KY18C DJR1`, mainos `9d1a29c9…`): after a normal change from a 16-step A01 to a 12-step A02, a jump to a 12-step A03 landed in phase with A02, 1:2 trigs stayed in step across it, and a Clyps load after it stayed in step. - **Not tested.** On any unit: this build, the USB package, an MKII; listening for the release and LFO behaviour; external MIDI gear; the arranger and chains (the gate's restart part uses a plain stock change; the author's emulator ran a chain doing the change, RS5); a switch the arranger starts at a later step (`dj_rsm` > 0); beside Clyps-like modules (none in Modwerk). diff --git a/sdk/octatrack/modules/direct-jump-kyoti/evidence/hardware.md b/sdk/octatrack/modules/direct-jump-kyoti/evidence/hardware.md index be6755175f..1a402d2d87 100644 --- a/sdk/octatrack/modules/direct-jump-kyoti/evidence/hardware.md +++ b/sdk/octatrack/modules/direct-jump-kyoti/evidence/hardware.md @@ -2,9 +2,9 @@ ## 0.2.0-experimental (pending) -Not run on a unit yet. The author has a hardware test image of the tested native build for his MKI: this module alone (DIRECT JUMP V7.3) with every stock effect kept, MAIN OS SHA-256 `0361d75f8b02ad49cae4802bfce8a0ef6de653b36d9fa2742f7cf960df35942f`, version string MW_DJK73, built from this branch's source (TESTING.md). His results, with the date, the card `.bin` he flashed and what he tried, go here; until then nothing in this file is about 0.2.0. +Not run on a unit yet. The author has a hardware test image of the tested native build for his MKI: this module alone (DIRECT JUMP V7.3, the author's code byte for byte) with every stock effect kept, MAIN OS SHA-256 `a7074bfd6fea3c9516eaf872d1693327957fe4c1248b01ead73136fadbfe9f1c`, version string MW_DJK73B, built from this branch's source (TESTING.md). His results, with the date, the card `.bin` he flashed and what he tried, go here; until then nothing in this file is about 0.2.0. -The checks asked for: the toggle and its toast; OFF after a power-on; a jump into a pattern on another Part; jumps between patterns of other lengths and scales (PER TRACK); a cue in the playing pattern's last step; 1:2 trig conditions across a jump, with [FILL] latched and a PRE trig after it; a jump after a normal pattern change (16-step A01, a normal change to a 12-step A02, then a jump to a 12-step A03: A03 lands in phase with A02 and a 1:2 hi-hat stays in step); LFO AUTO CHANGE on with a sample ringing from the outgoing pattern; SILENCE TRACKS on (no pop); a Plays Free MIDI track in PER TRACK mode; Direct Jump off behaving as stock. The USB package `2f25a208…` is not part of this run. +The checks asked for: the toggle and its toast; OFF after a power-on; a jump into a pattern on another Part; jumps between patterns of other lengths and scales (PER TRACK); a cue in the playing pattern's last step; 1:2 trig conditions across a jump, with [FILL] latched and a PRE trig after it; a jump after a normal pattern change (16-step A01, a normal change to a 12-step A02, then a jump to a 12-step A03: A03 lands in phase with A02 and a 1:2 hi-hat stays in step); LFO AUTO CHANGE on with a sample ringing from the outgoing pattern; SILENCE TRACKS on (no pop); a Plays Free MIDI track in PER TRACK mode; Direct Jump off behaving as stock. The USB package `ed3ba88a…` is not part of this run. His own builds of the same Direct Jump code (not Modwerk builds): on 15 November 2026 the standalone image `140C_KDJ7` (mainos `7c6131e7…`, V7.2.2) ended the SILENCE TRACKS pop at a Part-changing jump, and KYOTI V1.8C (beside his Clyps module) passed landings at other lengths and scales, a cue in the last step, trig conditions across a jump and each track's Part with LFO AUTO CHANGE on; on 16 November 2026 KYOTI V1.8C with V7.3 (`KY18C DJR1`, mainos `9d1a29c9…`): after a normal change from a 16-step A01 to a 12-step A02, a jump to a 12-step A03 landed in phase with A02, 1:2 trigs stayed in step, and a Clyps load after the jump stayed in step. diff --git a/sdk/octatrack/modules/direct-jump-kyoti/evidence/performance.json b/sdk/octatrack/modules/direct-jump-kyoti/evidence/performance.json index 65195a0b13..aec0c6fc74 100644 --- a/sdk/octatrack/modules/direct-jump-kyoti/evidence/performance.json +++ b/sdk/octatrack/modules/direct-jump-kyoti/evidence/performance.json @@ -5,10 +5,10 @@ "kind": "coldfire", "cycles": { "unit": "cycles/event", - "static": 656528, - "measured": 145440, + "static": 656272, + "measured": 145248, "budget": 2200000, - "method": "Authored instructions of the sequencer-tick hook (dj_land) per tick, priced at 16 core cycles each (the conservative ColdFire V4 envelope of the earlier records); the stock routines it calls (Program Change, the kernel post, the per-track Part apply 0x40001f18, the note-off 0x40008f84) are stock cost and are excluded from both figures. Static: 41,033, an upper bound counted mechanically from patch_directjump_v7.s as linked: every instruction of every routine dj_land can reach counted once per iteration of each loop around it (all paths at once), loops at their caps (the arming scan 120, the 16-track loops 16, the 8-track loops 8, three event slots, Euclid's gcd 11, the MIDI Part copy 32/36/16 bytes), each call adding its callee's bound, dl_commit once (its two call sites are exclusive). Measured on the module-alone native image (MAIN OS 0361d75f...) under ot_emu --mkii (built from this checkout's sdk/octabam/tools/emu/ot_emu, SHA-256 87d73ccf...), 16 Nov 2026 (V7.3): PC watches on dj_land's entry and the hook's return 0x400a1f78, on each stock routine the unit calls and the unit's return site after it, and on the frame interrupt's entry and epilogue (its instructions removed when it preempts the tick). Scenarios: OFF; ON idle; a 16-step pattern cued at the six phases of a step; a 7-step pattern on Part 2 and a PER TRACK pattern (2x to 1/8x, MIDI tracks at 3/2x to 3/4x), both with LFO AUTO CHANGE and SILENCE TRACKS on, every MIDI LFO on a designer wave; re-jumps while all 16 tracks still wait for their first trig; and a stock pattern change with Direct Jump off followed by jumps (V7.3's restart frame). OFF 30 instructions a tick, ON idle 45; while tracks wait for their first trig up to 1,898 a tick; an ordinary landing tick 4,245, also after a stock pattern change; the boundary tick after it with SILENCE TRACKS and every track published at once 4,843 (13,195 with the stock calls); the dearest, 9,090 (17,237 with the stock calls): a cue landing on its arming tick that first publishes 16 waiting tracks (8 MIDI Part copies). Budget: the code runs in the sequencer tick interrupt (level 3, below the level-5 DSP frame interrupt, which preempts it), so its deadline is the next tick: one tick at the Octatrack's top tempo of 300 BPM is 8.33 ms, 2,200,000 cycles at 264 MHz. The MIDI START gate (dj_nofa, 98 instructions at most, the landing tick only) dj_lfoq (7, in the frame interrupt's light Part apply) and dj_swres (13, once on the tick of a stock pattern change, in stock's switch block before it calls COND_RESET) are outside dj_land. V7.2.2 measured the same way: static 40,547, dearest 9,082; V7.3 adds 8 instructions to a landing tick (the restart frame's offset) and none to the others. Not chip timing." + "method": "Authored instructions of the sequencer-tick hook (dj_land) per tick, priced at 16 core cycles each (the conservative ColdFire V4 envelope of the earlier records); the stock routines it calls (Program Change, the kernel post, the per-track Part apply 0x40001f18, the note-off 0x40008f84) are stock cost and are excluded from both figures. Static: 41,017, an upper bound counted mechanically from patch_directjump_v7.s (the author's file unchanged) as linked: every instruction of every routine dj_land can reach counted once per iteration of each loop around it (all paths at once), loops at their caps (the arming scan 120, the 16-track loops 16, the 8-track loops 8, three event slots, Euclid's gcd 11, the MIDI Part copy 32/36/16 bytes), each call adding its callee's bound, dl_commit once (its two call sites are exclusive). Measured on the module-alone native image (MAIN OS a7074bfd...) under ot_emu --mkii (built from this checkout's sdk/octabam/tools/emu/ot_emu, SHA-256 87d73ccf...), 16 Nov 2026 (V7.3): PC watches on dj_land's entry and the hook's return 0x400a1f78, on each stock routine the unit calls and the unit's return site after it, and on the frame interrupt's entry and epilogue (its instructions removed when it preempts the tick). Scenarios: OFF; ON idle; a 16-step pattern cued at the six phases of a step; a 7-step pattern on Part 2 and a PER TRACK pattern (2x to 1/8x, MIDI tracks at 3/2x to 3/4x), both with LFO AUTO CHANGE and SILENCE TRACKS on, every MIDI LFO on a designer wave; re-jumps while all 16 tracks still wait for their first trig; and a stock pattern change with Direct Jump off followed by jumps (V7.3's restart frame). OFF 30 instructions a tick, ON idle 45; while tracks wait for their first trig up to 1,898 a tick; an ordinary landing tick 4,233, also after a stock pattern change; the boundary tick after it with SILENCE TRACKS and every track published at once 4,843 (13,195 with the stock calls); the dearest, 9,078 (17,225 with the stock calls): a cue landing on its arming tick that first publishes 16 waiting tracks (8 MIDI Part copies). Budget: the code runs in the sequencer tick interrupt (level 3, below the level-5 DSP frame interrupt, which preempts it), so its deadline is the next tick: one tick at the Octatrack's top tempo of 300 BPM is 8.33 ms, 2,200,000 cycles at 264 MHz. The MIDI START gate (dj_nofa, 98 instructions at most, the landing tick only) dj_lfoq (7, in the frame interrupt's light Part apply) and dj_swres (13, once on the tick of a stock pattern change, in stock's switch block before it calls COND_RESET) are outside dj_land. The V7.2.2 preparation (with Modwerk's six re-encodings) measured the same way: static 40,547, dearest 9,082; V7.3 as the author wrote it adds 8 instructions to a landing tick for the restart frame and saves 12 there that the re-encodings' dj_post helper cost. Not chip timing." }, "load": { "frameUs": 362.8, @@ -16,7 +16,7 @@ "moduleLongestUs": 156.7, "stockIdlePercent": 54.87, "moduleIdlePercent": 54.57, - "method": "Emulator, not hardware: ot_emu --mkii --dsp --frame (the port above), 16 Nov 2026. Two native static-stock images: the original MAIN OS and the module-alone image, Direct Jump ON. The same 15 s on both from PLAY: one three-byte message every ms (notes on and off and CCs on channels 1-8, 1,000 a second) plus a MIDI clock byte every 10 ms (250 BPM), A02 edited in RAM to 7 steps on Part 2 with trigs on two audio tracks and one MIDI track, LFO AUTO CHANGE on, and a cue every second alternating A01 and A02. Longest frame interrupt: the most instructions between the frame handler's entry (watched at 0x4000aad4) and its epilogue 0x4000d9a6 over about 45,200 frames, priced in the port's own time (3,990 instructions a sample, so one is 362.8 / 63,840 us): 27,399 stock, 27,578 with the module (V7.2.2 measured 27,428 the same way). Idle: the port's own share, 100 x (1 - executed instructions / (3,990 x elapsed samples)). The module image is V7.3's (MAIN OS 0361d75f...); the original OS figures are the same run's as before (same image, same port). The module's tick work runs in the level-3 sequencer tick interrupt, which the frame interrupt preempts; in the frame interrupt it adds only dj_lfoq in the light Part apply." + "method": "Emulator, not hardware: ot_emu --mkii --dsp --frame (the port above), 16 Nov 2026. Two native static-stock images: the original MAIN OS and the module-alone image, Direct Jump ON. The same 15 s on both from PLAY: one three-byte message every ms (notes on and off and CCs on channels 1-8, 1,000 a second) plus a MIDI clock byte every 10 ms (250 BPM), A02 edited in RAM to 7 steps on Part 2 with trigs on two audio tracks and one MIDI track, LFO AUTO CHANGE on, and a cue every second alternating A01 and A02. Longest frame interrupt: the most instructions between the frame handler's entry (watched at 0x4000aad4) and its epilogue 0x4000d9a6 over about 45,200 frames, priced in the port's own time (3,990 instructions a sample, so one is 362.8 / 63,840 us): 27,399 stock, 27,574 with the module (the V7.2.2 preparation measured 27,428 the same way). Idle: the port's own share, 100 x (1 - executed instructions / (3,990 x elapsed samples)). The module image is V7.3's (MAIN OS a7074bfd...); the original OS figures are the same run's as before (same image, same port). The module's tick work runs in the level-3 sequencer tick interrupt, which the frame interrupt preempts; in the frame interrupt it adds only dj_lfoq in the light Part apply." }, "stress": { "floodMessagesPerSecond": 1000, diff --git a/sdk/octatrack/modules/direct-jump-kyoti/media/capture.json b/sdk/octatrack/modules/direct-jump-kyoti/media/capture.json index 4ce4e476d6..da2497ffed 100644 --- a/sdk/octatrack/modules/direct-jump-kyoti/media/capture.json +++ b/sdk/octatrack/modules/direct-jump-kyoti/media/capture.json @@ -1,6 +1,6 @@ { "firmware": "1.40C", - "imageSha256": "0361d75f8b02ad49cae4802bfce8a0ef6de653b36d9fa2742f7cf960df35942f", + "imageSha256": "a7074bfd6fea3c9516eaf872d1693327957fe4c1248b01ead73136fadbfe9f1c", "emulatorSha256": "87d73ccf8519e0ff8746ddf570fceb00f1ea305284c05379dcfe54a1d1954de8", "setup": "Headless ot_emu; MKII panel; stopped transport; 128\u00d764 LCD at integer scale 6.", "palette": { diff --git a/sdk/octatrack/modules/direct-jump-kyoti/octamod.module.json b/sdk/octatrack/modules/direct-jump-kyoti/octamod.module.json index 9f462fe602..242790a297 100644 --- a/sdk/octatrack/modules/direct-jump-kyoti/octamod.module.json +++ b/sdk/octatrack/modules/direct-jump-kyoti/octamod.module.json @@ -90,20 +90,20 @@ "recorded": "16 November 2026; source assembly, the native image of this module alone and the ColdFire port", "storage": { "label": "DRAM code and detours", - "display": "3,980 B code and state + six 6 B detours + one 4 B pointer", - "value": 4020, + "display": "4,000 B code and state + six 6 B detours + one 4 B pointer", + "value": 4040, "unit": "bytes", "method": "static", - "conditions": "Two linked units in the DRAM reserve: Direct Jump's 3,918 bytes (code, two toast strings and 176 bytes of state) and the MIDI Plays-Free fix's 62 bytes of code; six six-byte detours over stock instructions and the [PTN]-layer YES press pointer. The USB package carries the units aligned, 4,526 bytes in all. No DSP memory, no saved data.", + "conditions": "Two linked units in the DRAM reserve: Direct Jump's 3,938 bytes (code, two toast strings and 176 bytes of state) and the MIDI Plays-Free fix's 62 bytes of code; six six-byte detours over stock instructions and the [PTN]-layer YES press pointer. The USB package carries the units aligned, 4,546 bytes in all. No DSP memory, no saved data.", "source": "TESTING.md" }, "processing": { "label": "ColdFire, per sequencer tick", - "display": "30 instr. a tick OFF, 45 ON; at most 9,090 on a landing tick", - "value": 9090, + "display": "30 instr. a tick OFF, 45 ON; at most 9,078 on a landing tick", + "value": 9078, "unit": "instructions/event", "method": "emulator", - "conditions": "Authored instructions of the tick hook under ot_emu, worst at a cue that lands on its arming tick while all 16 tracks still wait for their first trig after the previous jump; the stock routines a landing calls (Program Change, the kernel posts, the per-track Part apply, the note-off) bring it to 17,237. While tracks wait for their first trig, up to 1,898 a tick. A stock pattern change adds 13 instructions (dj_swres) to stock's switch on that tick. The tick interrupt runs at level 3, below the DSP frame interrupt. Not chip timing.", + "conditions": "Authored instructions of the tick hook under ot_emu, worst at a cue that lands on its arming tick while all 16 tracks still wait for their first trig after the previous jump; the stock routines a landing calls (Program Change, the kernel posts, the per-track Part apply, the note-off) bring it to 17,225. While tracks wait for their first trig, up to 1,898 a tick. A stock pattern change adds 13 instructions (dj_swres) to stock's switch on that tick. The tick interrupt runs at level 3, below the DSP frame interrupt. Not chip timing.", "source": "TESTING.md" }, "impact": { @@ -111,7 +111,7 @@ "cpu": { "level": "minimal", "basis": "measured-comparison", - "rationale": "30 executed instructions a sequencer tick while OFF and 45 while ON; up to 1,898 a tick while tracks wait for their first trig; at most 9,090 authored (17,237 with the stock routines it calls) on the tick a jump lands, and 13 on the tick of a stock pattern change (ot_emu). The tick interrupt runs at level 3, below the level-5 DSP frame interrupt. Under a 15 s MIDI flood with a jump every second, the longest frame interrupt was 1.0 us longer than the original OS's (156.7 us against 155.7 us in the port's time) and idle 0.30 points lower. Time on the unit is not measured.", + "rationale": "30 executed instructions a sequencer tick while OFF and 45 while ON; up to 1,898 a tick while tracks wait for their first trig; at most 9,078 authored (17,225 with the stock routines it calls) on the tick a jump lands, and 13 on the tick of a stock pattern change (ot_emu). The tick interrupt runs at level 3, below the level-5 DSP frame interrupt. Under a 15 s MIDI flood with a jump every second, the longest frame interrupt was 1.0 us longer than the original OS's (156.7 us against 155.7 us in the port's time) and idle 0.30 points lower. Time on the unit is not measured.", "source": "TESTING.md" }, "dsp": { @@ -123,7 +123,7 @@ "memory": { "level": "minimal", "basis": "measured-comparison", - "rationale": "3,980 bytes of ColdFire code and state in the DRAM reserve (176 bytes of state) and 40 bytes of stock writes; no DSP memory and no saved data.", + "rationale": "4,000 bytes of ColdFire code and state in the DRAM reserve (176 bytes of state) and 40 bytes of stock writes; no DSP memory and no saved data.", "source": "TESTING.md" } } @@ -132,7 +132,7 @@ "report": "TESTING.md", "summary": "0.2.0 has not run on a unit; its native image of this module alone waits for the author's MKI run. Under the ColdFire port (verify.py, 74 checks, all passed on that image): OFF identical to the original OS through a pattern change; four jumps (16 steps with [FILL] latched; 7 steps on Part 2; PER TRACK lengths and scales; a cue in the last step) whose sequencer state and trig-condition state equal a reference run of the incoming pattern since START on every tick after the landing; two jumps after a stock pattern change (12 steps at 1x after 12 at 1x; 3/4x after 2x) that equal a run which changed straight to the jump's pattern; each track's Part handed to the engine at its first sounding trig with LFO AUTO CHANGE on; the tracks SILENCE TRACKS silences released with stock's note-off the tick after the landing; and the MIDI Plays-Free stall, which the original OS shows and the module fixes. The author tested the same Direct Jump code on his MKI in his own builds on 15 and 16 November 2026 (V7.3's restart in KYOTI V1.8C); the 0.1.x USB package ran on the owner's MKII in October 2026.", "hardwareStatus": "untested", - "evidenceRevision": "7595416dbe052c4184af68730f51aae747091a42", + "evidenceRevision": "20d216e1b454edee281d66dcfb179275fe24b4b0", "gates": [ "modules/direct-jump-kyoti/verify.py" ], @@ -154,13 +154,13 @@ }, "qualification": { "moduleVersion": "0.2.0-experimental", - "sourceSha256": "bf22d7dc7c27a047f9c7777c7616edb2887ee4fc36441a3e390960a26f38e328", - "imageSha256": "0361d75f8b02ad49cae4802bfce8a0ef6de653b36d9fa2742f7cf960df35942f", + "sourceSha256": "540066f79bfae023c147b1c18ede6aada61290cdb993b1ad5be7cb33b6ce3a6f", + "imageSha256": "a7074bfd6fea3c9516eaf872d1693327957fe4c1248b01ead73136fadbfe9f1c", "cycles": [ { "processor": "coldfire", - "worstCase": 145440, - "maxConfiguration": 145440, + "worstCase": 145248, + "maxConfiguration": 145248, "maxInstances": 1, "budget": 2200000, "unit": "cycles/event", @@ -170,7 +170,7 @@ "parameterModulation": "Not applicable: one ON/OFF word toggled by a key gesture; no knob, lock, LFO or scene reaches it.", "modeSwitching": "Toggled ON and OFF while stopped and while playing; cues at the six phases of a step, re-jumps while every track still waits for its first trig, and jumps back to the previous pattern.", "maxLoad": "One instance per unit. Runs once per sequencer clock tick in the tick interrupt (level 3; its ICR read 3 in the port), below the level-5 DSP frame interrupt, which preempts it; its deadline is the next tick: 8.33 ms at the top tempo of 300 BPM (2,200,000 cycles at 264 MHz).", - "inputConditions": "Authored instructions of dj_land per tick under ot_emu (PC watches on its entry and the hook's return, on each stock routine it calls and the unit's return site after it, and on the frame interrupt, whose instructions are removed when it preempts the tick), priced at 16 cycles each: at most 9,090 (145,440 cycles), on a cue that lands on its arming tick and first publishes 16 waiting tracks; 17,237 with the stock routines it calls, which are stock cost. Static bound from the source, every reachable routine and loop at its cap: 41,033 (656,528). dj_swres, outside dj_land in stock's switch block: 13, once per stock pattern change. Not chip timing." + "inputConditions": "Authored instructions of dj_land per tick under ot_emu (PC watches on its entry and the hook's return, on each stock routine it calls and the unit's return site after it, and on the frame interrupt, whose instructions are removed when it preempts the tick), priced at 16 cycles each: at most 9,078 (145,248 cycles), on a cue that lands on its arming tick and first publishes 16 waiting tracks; 17,225 with the stock routines it calls, which are stock cost. Static bound from the source, every reachable routine and loop at its cap: 41,017 (656,272). dj_swres, outside dj_land in stock's switch block: 13, once per stock pattern change. Not chip timing." }, "report": "TESTING.md" } @@ -180,9 +180,9 @@ { "name": "ColdFire code, two toast strings and 176 bytes of state (Direct Jump's linked unit, DRAM)", "space": "sdram", - "words": 3918, + "words": 3938, "wordBits": 8, - "bytes": 3918, + "bytes": 3938, "scope": "shared" }, { @@ -203,10 +203,10 @@ } ], "perInstanceBytes": 0, - "sharedBytes": 4020, + "sharedBytes": 4040, "maxInstances": 1, - "totalBytes": 4020, - "conditions": "From the two linked units (3,918 and 62 bytes of code and data, no bss; the USB package carries the same bytes aligned) and the seven stock writes. No DSP memory, no heap, no saved data.", + "totalBytes": 4040, + "conditions": "From the two linked units (3,938 and 62 bytes of code and data, no bss; the USB package carries the same bytes aligned) and the seven stock writes. No DSP memory, no heap, no saved data.", "report": "TESTING.md" }, "hardware": { @@ -263,8 +263,8 @@ "shows": "location-and-controls", "firmware": "1.40C", "moduleVersion": "0.2.0-experimental", - "imageSha256": "0361d75f8b02ad49cae4802bfce8a0ef6de653b36d9fa2742f7cf960df35942f", - "setup": "Headless ot_emu; MKII panel; 128×64 LCD at integer scale 6; DSP cores running; empty scratch card, its missing-project prompts dismissed with three NO presses; native initialized state, no saved project. Static native build of this module alone with every stock effect kept (MAIN OS 0361d75f…)." + "imageSha256": "a7074bfd6fea3c9516eaf872d1693327957fe4c1248b01ead73136fadbfe9f1c", + "setup": "Headless ot_emu; MKII panel; 128×64 LCD at integer scale 6; DSP cores running; empty scratch card, its missing-project prompts dismissed with three NO presses; native initialized state, no saved project. Static native build of this module alone with every stock effect kept (MAIN OS a7074bfd…)." } }, { @@ -280,8 +280,8 @@ "shows": "controls", "firmware": "1.40C", "moduleVersion": "0.2.0-experimental", - "imageSha256": "0361d75f8b02ad49cae4802bfce8a0ef6de653b36d9fa2742f7cf960df35942f", - "setup": "Headless ot_emu; MKII panel; 128×64 LCD at integer scale 6; DSP cores running; empty scratch card, its missing-project prompts dismissed with three NO presses; native initialized state, no saved project. Static native build of this module alone with every stock effect kept (MAIN OS 0361d75f…)." + "imageSha256": "a7074bfd6fea3c9516eaf872d1693327957fe4c1248b01ead73136fadbfe9f1c", + "setup": "Headless ot_emu; MKII panel; 128×64 LCD at integer scale 6; DSP cores running; empty scratch card, its missing-project prompts dismissed with three NO presses; native initialized state, no saved project. Static native build of this module alone with every stock effect kept (MAIN OS a7074bfd…)." } }, { @@ -297,8 +297,8 @@ "shows": "controls", "firmware": "1.40C", "moduleVersion": "0.2.0-experimental", - "imageSha256": "0361d75f8b02ad49cae4802bfce8a0ef6de653b36d9fa2742f7cf960df35942f", - "setup": "Headless ot_emu; MKII panel; 128×64 LCD at integer scale 6; DSP cores running; empty scratch card, its missing-project prompts dismissed with three NO presses; native initialized state, no saved project. Static native build of this module alone with every stock effect kept (MAIN OS 0361d75f…)." + "imageSha256": "a7074bfd6fea3c9516eaf872d1693327957fe4c1248b01ead73136fadbfe9f1c", + "setup": "Headless ot_emu; MKII panel; 128×64 LCD at integer scale 6; DSP cores running; empty scratch card, its missing-project prompts dismissed with three NO presses; native initialized state, no saved project. Static native build of this module alone with every stock effect kept (MAIN OS a7074bfd…)." } } ] diff --git a/src/engine/assets/bootstrap-package.json b/src/engine/assets/bootstrap-package.json index be6d9a7119..10275d3f9c 100644 --- a/src/engine/assets/bootstrap-package.json +++ b/src/engine/assets/bootstrap-package.json @@ -16,7 +16,7 @@ "reserveBytes": 10487808, "uncachedAlias": 134217728, "stageAlignment": 4096, - "sourceCommit": "7595416dbe052c4184af68730f51aae747091a42", + "sourceCommit": "20d216e1b454edee281d66dcfb179275fe24b4b0", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", diff --git a/src/engine/assets/coldfire-packages.json b/src/engine/assets/coldfire-packages.json index 60d1afff4f..34d55ab7dc 100644 --- a/src/engine/assets/coldfire-packages.json +++ b/src/engine/assets/coldfire-packages.json @@ -246,7 +246,7 @@ "sha256": "d4b22d2975297e76f90654f25ca6eee4d28a288f727f4b3482fe73616b051378" } ], - "sourceCommit": "7595416dbe052c4184af68730f51aae747091a42", + "sourceCommit": "20d216e1b454edee281d66dcfb179275fe24b4b0", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", diff --git a/src/engine/assets/descriptor-recipes.json b/src/engine/assets/descriptor-recipes.json index 2a99c22ad6..fb7648532e 100644 --- a/src/engine/assets/descriptor-recipes.json +++ b/src/engine/assets/descriptor-recipes.json @@ -3324,7 +3324,7 @@ ] } ], - "sourceCommit": "7595416dbe052c4184af68730f51aae747091a42", + "sourceCommit": "20d216e1b454edee281d66dcfb179275fe24b4b0", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", diff --git a/src/engine/assets/dsp-packages.json b/src/engine/assets/dsp-packages.json index 925e732fec..b1101d87c9 100644 --- a/src/engine/assets/dsp-packages.json +++ b/src/engine/assets/dsp-packages.json @@ -2,7 +2,7 @@ "schema": 1, "revision": "b8deefc88b2c3e5f3c6158e364eb741df1924e1d", "license": "/licenses/octabam.txt", - "sourceCommit": "7595416dbe052c4184af68730f51aae747091a42", + "sourceCommit": "20d216e1b454edee281d66dcfb179275fe24b4b0", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", diff --git a/src/engine/assets/menu-recipes.json b/src/engine/assets/menu-recipes.json index bf9e77485a..fbeb11bb8d 100644 --- a/src/engine/assets/menu-recipes.json +++ b/src/engine/assets/menu-recipes.json @@ -994,7 +994,7 @@ "caveLimit": 1074625596 } ], - "sourceCommit": "7595416dbe052c4184af68730f51aae747091a42", + "sourceCommit": "20d216e1b454edee281d66dcfb179275fe24b4b0", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", diff --git a/src/engine/assets/module-build.json b/src/engine/assets/module-build.json index 9ae38701b2..205ab72d79 100644 --- a/src/engine/assets/module-build.json +++ b/src/engine/assets/module-build.json @@ -1,9 +1,9 @@ { "schemaVersion": 1, "kind": "source-packages", - "sourceCommit": "7595416dbe052c4184af68730f51aae747091a42", + "sourceCommit": "20d216e1b454edee281d66dcfb179275fe24b4b0", "nativeRevision": "b8deefc88b2c3e5f3c6158e364eb741df1924e1d", - "sourceTreeSha256": "2121632f9434129ccfdaacecdcd1823747e6cde3e44572bb290a6745044bfdce", + "sourceTreeSha256": "de488ede1655d65c4d6c7e10f40d95c120e3ed9a586a0a3826e786844aaf5861", "compilerSha256": "6e9c24522c3326dece280045b5e4313524a249f1d19dc6b4eaea5768d75554c9", "moduleVersions": { "miniverb": "0.2.3-experimental", @@ -43,47 +43,47 @@ "files": { "dsp-packages.json": { "bytes": 71427, - "sha256": "8682b2520f8195ed1b51ed3206a593c5e4e0a82f27581b824f99ceec888195f0" + "sha256": "80a4c6ede5b28eca1d7db20d3112195128399b58c668d7511380504e0dd82ce8" }, "resident-dsp.json": { "bytes": 8395, - "sha256": "a0e46ef971b5c05ca17b49903d5c7fe6a117413cb1091dd234b399b5d5bdb624" + "sha256": "5c4652bf680ca5e766b46681b5f09b452e855764b735ffb7768944fd8b383253" }, "coldfire-packages.json": { "bytes": 363634, - "sha256": "d727a64c92bcffa581ee8399cc824b3b88c089bf451db9e8abeab2e21e6ed95b" + "sha256": "e637d5997c90ae254eddb0fc221d7c887f5dc6075340524c245ed9303fb1863e" }, "rom-packages.json": { "bytes": 29810, - "sha256": "07dfe2ebe48508da63dc3026943b1ad74a4f41684fc352f0942199810a68aadb" + "sha256": "af9d9c4fda346b35d3176e6b18bec6c7d98703b744d6977bdc021676fb93a28e" }, "bootstrap-package.json": { "bytes": 4021, - "sha256": "6060e676378a46ea2c60f6b4d1b8be5900e4396672b6015ae00bd16f240d0f80" + "sha256": "332119e7ba581a4387f5f1f43ece2c4c8ce7a9d5fd8351df2f77d35b66dbf411" }, "menu-recipes.json": { "bytes": 25416, - "sha256": "dffb3c2633077aa6282e2fc33342b1e2f8a784a2831f49448af42430ee5a1dab" + "sha256": "4be5fd7505a10219322206f17c67280d778ec64cc670ae18b4980947a6467219" }, "descriptor-recipes.json": { "bytes": 64439, - "sha256": "1c2ee56acadfca16e95d8160682d01ea22319995b2e37272be39f2f3eb97bea3" + "sha256": "fd3d6a5e8d5ca1a6c33d0629ceb3b512354bd8a38ca938d8c760aea77ed249e8" }, "platform-writes.json": { "bytes": 16999, - "sha256": "748f7e8c66c3f706360d6efc9084f6084532587997ebc718d966a2216283e357" + "sha256": "46083c11ffe4cf43e637abf3df4b6582f58a6f1f5fed3f5c2daca166b7c167dd" }, "requested-packages.json": { - "bytes": 1340162, - "sha256": "018449778c24c0c5d71d0b5dc2c204d511028738f5022949b64c945617ccbf46" + "bytes": 1340154, + "sha256": "59ddb5b515af9207676bc688e3e94c8ad4807bb54c70cce9c384e71aa836bc70" }, "utility-packages.json": { "bytes": 13149, - "sha256": "d5d2135c230b7958e4df1b625addbda144b05de979616e4e8890a73dd885628d" + "sha256": "caf5084c5b2c3bc85313c7d509b54381064ffec502dd9c9130d8098401c53231" }, "usb-audio-packages.json": { "bytes": 737791, - "sha256": "73f74cfd966cd01ca4206e5317989d365ddcbbf97acf6b0a2458d0469077ec8a" + "sha256": "0352748aee3934dd62e1425641e7737f903836434b6b7db714129dbe6749ebd4" } }, "approval": null, diff --git a/src/engine/assets/octatrack-module-packages.json b/src/engine/assets/octatrack-module-packages.json index 0be6800db0..2c3fe13d96 100644 --- a/src/engine/assets/octatrack-module-packages.json +++ b/src/engine/assets/octatrack-module-packages.json @@ -402,8 +402,8 @@ "version": "0.2.0-experimental", "name": "DirectJmp Kyoti", "module": "075d79a3", - "bytes": 4526, - "sha256": "2f25a2084402f03ff3cd09e25cc59a90cadfaa714b21639e60567b03af8c533b", + "bytes": 4546, + "sha256": "ed3ba88a2f57c7f5ab122a5f572a8a814c91a338c5baa3a56da324c86d71060d", "path": "octatrack-modules/direct-jump-kyoti/0.2.0-experimental.mwrm" }, { diff --git a/src/engine/assets/platform-writes.json b/src/engine/assets/platform-writes.json index 42f3af6ae8..d8f8704d4f 100644 --- a/src/engine/assets/platform-writes.json +++ b/src/engine/assets/platform-writes.json @@ -492,7 +492,7 @@ "sha256": "8a5b26c7f7c97f1e945c2274fb2632e05fc94e7babb941e8b7c80f7e0f24bf61" } ], - "sourceCommit": "7595416dbe052c4184af68730f51aae747091a42", + "sourceCommit": "20d216e1b454edee281d66dcfb179275fe24b4b0", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", diff --git a/src/engine/assets/requested-packages.json b/src/engine/assets/requested-packages.json index 4777666c33..2ea2bf3fab 100644 --- a/src/engine/assets/requested-packages.json +++ b/src/engine/assets/requested-packages.json @@ -1,7 +1,7 @@ { "schema": 1, "revision": "b8deefc88b2c3e5f3c6158e364eb741df1924e1d", - "sourceCommit": "7595416dbe052c4184af68730f51aae747091a42", + "sourceCommit": "20d216e1b454edee281d66dcfb179275fe24b4b0", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", @@ -1095,12 +1095,12 @@ "caveAddress": null, "source": "modules/direct-jump-kyoti/patch_directjump_v7.s", "sources": { - "modules/direct-jump-kyoti/patch_directjump_v7.s": "0df41e7c9ba5bff2b937a4cf8db316f233077b647634f5aeb6b56cf610498314", - "modules/direct-jump-kyoti/manifest.py": "14fef7f20657ced4e6c4f9b879992a9593a0e99000595c6005d654f7b6874321" + "modules/direct-jump-kyoti/patch_directjump_v7.s": "cae97228230f43214ff3ca6ac8fb84a082397f4dec67c59ca772e56f95b4b841", + "modules/direct-jump-kyoti/manifest.py": "f449e3af81f61d400cabbdc73c4b5d1f8f1332d6f651cc0b118f6c020aefc9f1" }, - "bytes": 10612, - "code": "7f454c460102010000000000000000000001000400000001000000000000000000002834000000260034000000000028000800077001b0af00086600005c2039460d17425380660000504ab9460d1aec660000464ab9460e5cd06600003c203a0ee60a800000000102800000000123c00000000041fa00344a80670441fa001c487800442f084eb94005a2b8508f700123c0460d173e4e754e75444952454354204a554d50204f4e0000444952454354204a554d50204f4646004fefffc448d77fff610003327001b0b9800065b8670e42b90000000042b900000000600652b9000000004aba0e60670000887001b0b9800065b86600007c4ab9460d1aec660000724ab98000654666000068103a0dc46700008c0c000003661261000938610008da423900000000600001ba0c000001660001b21039800065c0b03a0d9a660c1039800065bfb03a0d8f6710423980006687423900000000600000441039800066870c0000016600017c610002f2600001744a3a0d65670461000b0a103a0d540c000001660642398000668742390000000070ff13c000000000600001481039800065c00c00ffff67e2b039800065be66501039800065bfb039800065bd6642103a0d110c00ffff6700ffc2b039800065be660e103a0cffb039800065bd6700ffac70001039800065be2f0070001039800065bd2f004eb94009e884508f6000ff8c1039800065c0b03a0cc9660c1039800065bfb03a0cbf67341039800065c013c0000000001039800065bf13c00000000070001039800065c02f0070001039800065bf2f004eb94009e884508f4a39800066876e00008e70001039800065bf72001239800065c06100058e610005aa2e3a0cd80687000000007c002007d0865280610006be4a806d12223a0cd224004c4120024c012800b082670e52860c86000000786dd66000003c1039800065c013c0000000001039800065bf13c0000000002206528113c1800066870c81000000016608610001886000000a700113c0000000004a3a0bf3670461000948103a0be20c0000016604610000124cd77fff4fef003c1039800066874e754a398000667e660000e070001039800065bd72001239800065be610004d0720012398000663d7006b2806302720241f9400aba5024301c001239800065b649c15281b2826d0000a274003439800065b2528202820000ffff203c00008e561232080049c16a0812398000004e49c141f9400d80dc26301c004a836f0a20024c4308014a81674220398000662c72ffb0816706b0826e526030203c00008e554a320800670e203c00008e503232080048c1600c203c00008e531232080049c170ffb2806724b2826e201039800065be13c0800065c01039800065bd13c0800065bf700113c0000000004e754a3a0ae0674c4239000000001039800065c0b039800065be66381039800065bfb039800065bd662a103a0ab613c0800065c0103a0aad13c0800065bf1039800065be13c0400d816c41f9400d816b610000044e752f084879460d17ae43f940000c3c4e91508f4e754a3a0a7967046100081e1039800065be13c0800065c11039800065bd13c0800065c21039800065c013c0800065be1039800065bf13c0800065bd70001039800065bd223c0009b3404c01080072001239800065be243c00008ed84c021800d08145f9400e21e0d5c0610003502e3a0a7e068700000000263a0a80203a0a744c030800de8023c7000000002007d0835380223a0a6a670c24004c4120024c012800908228004c43400423c4800066382a009a83548541f98000651643f98000653647fa0a4249fa0a4e7c107200121b20054c4100007400141c7202b2826e0e22004c4210014c02180090816002700030c04219538666d4610004184279800066264279800066804279800066824279800066841039800065bd13c0400d816841f9400d81676100fec6610000861039800065be13c0400d816c41f9400d816b6100feac700213c0000000004e75103a09260c0000026636700313c0000000002f082f0141f9800065d372101010538010c0538166f61039800065b6538013c0800065b6221f205f4a3a08ee4e754a398000002a4e754ab9460d1e706708700123c0460d1e6c4879400bf0f24ef94004341e223c00008e571032180013c0400d816a41f9400d81696100fe24780376532c3c0000091a6100019623c446c7fa8023c400000000203c00285ff0d0b94610757c23c0800019e41039800065bd13c046c7ff40223c00008e571032180013c046c7ff627803263c000048fb2c3c000008b06100014a23c446c7a12023c4000000007a004a3980001860661610398000002808000000670a4ab946104ca867027a012039461075640680000041a04a85660606800000313823c046c76aa6700123c046c76a222039461075640680000041a04a8567080480000041a0600604800000106823c046c76aaa1039800065bd13c046c7a850223c00008e571032180013c046c7a934610003c2600000022e3a08366a027e004aba0836671e2c3a0830200690ba08262c4020074c4600002a404c06080022079280244147fa081a49fa082641f94610791843f9461079797a107800181b7600161c660276014c0438004aba07ec660c2007d08453804c430000603e200ed08422004c43100124014c032800908224014a80670252822c0d4c026800240ad48453824c432002b481630224014a806706b5ce630252822006d08220c012fc000153856600ff964e757a0810323800671a0c000001670e0c00ffff660e4a398000004f67067001eba88880d68652857010b08566d64e75243c0009b3404c020800243c00008ed84c021800d08145f9400e21e0d5c04e7541f9400aba50203c00008e551e32080072004a076624203c00008e54123208007006b2806302720226301c00203c00008e537800183208006026203c00008e52123208007006b2806302720226301c00203c00008e503832080048c46e02780023c30000000020044c03080023c0000000002a0347fa06d449fa06e04bf98000663e7c007008b0866f12203c0000091a4c060800068000000050601420065180223c000008b04c0108000680000048f843f208004a2900046708720012356800601672004a07660c203c00008e54123208006004122900017006b2806306243a065e600424301c0016c24a07660418c4600218d1200522024a81671426004c4130034c013800908326002001220360e84c4050054c02580052867010b0866600ff6423c5000000004e75263a0612223a06064c031800d081d08353806b12223a0602670c24004c4120024c0128009082908352804e752a394610757c263c00142ff841f98000190443f946c7e99847f946c7fe44613241f98000198447f946c7fe8c43f946c7faa4611e2a3946107564263c000020d041f946c76a2643f946c769c047f946c77be27c0078007000103368000900671a2204e789d28624301c009485b4836d0a42b11c0009801780680052847003b08466d452867008b08666ca4e75283a04e27a00200550800104670a2f054eb940008f84588f52857008b08566e64e75700010398000663d0c80000000066302700241f9400aba5020300c00448023c00000000070003039800065b223c0000000004ef9400a539c41f9400aba50700010398000663d7206b0816302700226300c007a00223a04e8670c92835281b2ba04d66e027a0143f98000663e45f9800065d37c0072004a85671a70001031680022030c8000000006620422300c0092836a0272001581680052867010b08666d44e754a3a041a670a423900000000b0804e754a39800000504e754a398000005066024e751039800065bd13c000000000223c00008e571032180013c0000000002a394610757c068500142ff82839461075640684000020d07c007e02203a03c40c86000000086504203a03bc22060281000000075081030066102006610000484a8067062e3c0000fffe2006d08041fa039a31870800d08041fa03b0218508000c860000000865042184080052867010b0866600ffa6700113c00000000013c0000000004e7526000c80000000086412223c0000091a4c01080041f20800725060185180223c000008b04c0108000680000048d041f208007228700010301800223c00008e554a321800660c223c00008e537000103218002428000426107220b081640c76007201e1a95381c48160160480000000200c800000002064087201e1a95381c681848320024e754fefffe848d7070e70001039800065bd72001239800065be6100fbd620066100ff5a4cd7070e4fef00184e757c0076002206d28141fa02a8700030301800672c0c800000fffe6614610000d44a8066186100ffae4a806710760160105380318018006704760160046100003c52867010b08666bc13c3000000004e757c002006d08041fa025a4a70080067046100001852867010b08666e64239000000004239000000004e752006d08041fa02324270080020060c8000000008650251802f007000103a02102f00103a02092f000c860000000864084eb940001f186004610000e64fef000c4e75202f000c0c800000000864064ef940001f1851802f40000c600000c4700113c0000000002f2f00082f2f00084eb940009e00508f4e754fefffe448d70c3e2006e58841fa01d22830080026060c8600000008642024394610757c2a3c00142ff8247c46c7fe44207c80001904227c46c7e998602051832439461075642a3c000020d0247c46c77be2207c46c76a26227c46c769c07200700010323800030067262001e788d083264020310c00080000026714200b20300c00264090846b08200b9082b0856d0c52817003b08166c87000600270014cd70c3e4fef001c4e754fefffec48d70c1c202f0018222f001c242f0020263c0009b3404c003800247c40170f60d5c3263c000018b24c013800d5c376444c023800207c46c76dc0d1c32602eb8b224ad3fc000003e2d3c3782010d9538466fa76244c023800224ad3fc000004e2d3c32649d7fc00000009782410d9538466fa78001033480049c0720ab0816f4804800000000b224ad3fc000017922200e989d3c12202d281d282d284207c46c7738c2601e98bd1c3761010d9538366fa224ad3fc00001812d080d3c0207c46c7750cd281d1c1309152840c840000000366a2207c8000666e202f001811802800202f001c118028082002e588207c8000664e42b008004cd70c1c4fef00144e7500ff00ffffff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000100000000000000000000000003000003000000000000000000000000030000040000000100000001000000000000fff100000011460d1742000000000000fff10000001a460d173e000000000000fff100000023460e5cd0000000000000fff100000029460d1aec000000000000fff10000003180006546000000000000fff10000003b4005a2b8000000000000fff100000042460d1e70000000000000fff100000050460d1e6c000000000000fff1000000614004341e000000000000fff10000007600000044000000000000fff100000083800065b8000000000000fff10000008f800065bd000000000000fff100000098800065be000000000000fff1000000a0800065bf000000000000fff1000000aa800065c0000000000000fff1000000b3800065c1000000000000fff1000000bc800065c2000000000000fff1000000c6800065b2000000000000fff1000000d2800065b6000000000000fff1000000db8000663d000000000000fff1000000e4400aba50000000000000fff1000000ec00000006000000000000fff1000000f600000002000000000000fff1000000ff80006687000000000000fff10000010a80006516000000000000fff10000011480006536000000000000fff10000011e80006638000000000000fff10000012780006626000000000000fff10000013180006680000000000000fff10000013a80006682000000000000fff10000014380006684000000000000fff10000014c8000002a000000000000fff1000001564009e884000000000000fff10000015e40013a08000000000000fff10000016640000c3c000000000000fff10000016c460d17ae000000000000fff100000175400d8167000000000000fff100000181400d8168000000000000fff100000191400d8169000000000000fff10000019a400d816a000000000000fff1000001a700008e57000000000000fff1000001ae00000003000000000000fff1000001b78000004f000000000000fff1000001c246c7fa80000000000000fff1000001cd800019e4000000000000fff1000001d746c7ff40000000000000fff1000001e146c7ff62000000000000fff1000001eb46c7a120000000000000fff1000001f646c76aa6000000000000fff10000020146c76a22000000000000fff10000020b46c76aaa000000000000fff10000021646c7a850000000000000fff10000022046c7a934000000000000fff10000022a400a539c000000000000fff10000023500008e56000000000000fff10000023e8000004e000000000000fff100000249400d80dc000000000000fff1000002538000662c000000000000fff10000025c8000667e000000000000fff10000026540001f18000000000000fff10000026f0008ed80000000000000fff100000278000018b2000000000000fff10000027f46c76dc0000000000000fff10000028446c7738c000000000000fff10000028946c7750c000000000000fff10000021a8000666e000000000000fff10000028e8000664e000000000000fff100000294000048d0000000000000fff10000029a40008f84000000000000fff1000002a3400d816b000000000000fff1000002ab400d816c000000000000fff1000002b7400e21e0000000000000fff1000002c00009b340000000000000fff1000002cc00008ed8000000000000fff1000002d700008e53000000000000fff1000002e200008e50000000000000fff1000002ee00008e55000000000000fff1000002fb00000050000000000000fff1000003010000091a000000000000fff10000030a000048f8000000000000fff100000310000008b0000000000000fff10000031900000000000000000000fff10000032100000001000000000000fff10000032a00000002000000000000fff10000033500000003000000000000fff10000033e8000663e000000000000fff100000348800065d3000000000000fff10000034f00008e54000000000000fff10000035900008e52000000000000fff10000036200000000000000000000fff10000036800000001000000000000fff10000036e00000004000000000000fff1000003754610757c000000000000fff10000037a46107564000000000000fff10000037f00285ff0000000000000fff100000386000041a0000000000000fff10000038d00000000000000000000fff1000003950000006400000000000000010000039f00000f120000000000000001000003a7000000760000000000000001000003b20000004c0000000000000001000003bb000000660000000000000001000003c5000003c20000000000000001000003cf000000aa0000000000000001000003d600000f160000000000000001000003db00000f1a0000000000000001000003e2000000b00000000000000001000003ea0000013e0000000000000001000003f100000e9e0000000000000001000003fa0000016a000000000000000100000402000000f800000000000000010000040c00000a20000000000000000100000415000009c600000000000000010000041f000002b000000000000000010000042700000ea20000000000000001000004310000011800000000000000010000043a00000ea30000000000000001000004450000012800000000000000010000044d0000042a00000000000000010000045700000ea500000000000000010000045e00000c500000000000000001000004690000015800000000000000010000047200000e9f00000000000000010000047b000001ce000000000000000100000483000001ae00000000000000010000048c00000ea1000000000000000100000496000001e60000000000000001000004a00000021a0000000000000001000004a7000007c40000000000000001000004af000007e40000000000000001000004ba000002480000000000000001000004c20000090e0000000000000001000004cc000002680000000000000001000004d400000f2a0000000000000001000004d9000002760000000000000001000004e2000002a80000000000000001000004ea00000c000000000000000001000004f2000002c80000000000000001000004f9000002d8000000000000000100000501000003c00000000000000001000005070000035e00000000000000010000050e000003a00000000000000001000005150000037000000000000000010000051c00000ea40000000000000001000005230000041400000000000000010000052a0000041600000000000000010000053200000f2200000000000000010000053a00000f1e00000000000000010000054300000f26000000000000000100000548000004cc00000000000000010000054f00000f2e00000000000000010000055600000f3e00000000000000010000055d000004f40000000000000001000005650000051600000000000000010000056e000005180000000000000001000005770000093a000000000000000100000580000005da00000000000000010000058b000005b60000000000000001000005940000059400000000000000010000059a00000ea00000000000000001000005a2000005ce0000000000000001000005ab000007960000000000000001000005b300000eaa0000000000000001000005bb00000eae0000000000000001000005c30000067a0000000000000001000005c9000006900000000000000001000005d0000006b60000000000000001000005d7000006bc0000000000000001000005de00000aa20000000000000001000005e7000006e60000000000000001000005ef000007120000000000000001000005f7000007280000000000000001000005ff0000074a0000000000000001000006060000078800000000000000010000060f00000798000000000000000100000615000007b800000000000000010000061b000007b20000000000000001000006220000081e0000000000000001000006280000084400000000000000010000062d000008680000000000000001000006350000088000000000000000010000063d00000894000000000000000100000645000008a6000000000000000100000650000008bc000000000000000100000657000008b8000000000000000100000660000008d6000000000000000100000669000008d8000000000000000100000670000008dc000000000000000100000677000008f4000000000000000100000680000009340000000000000001000006870000098c0000000000000001000006900000098e0000000000000001000006970000099000000000000000010000069f000009b40000000000000001000006a7000009cc0000000000000001000006ac00000a4e0000000000000001000006b200000a5c0000000000000001000006ba00000a7c0000000000000001000006c300000ea60000000000000001000006cc00000a9a0000000000000001000006d500000ea70000000000000001000006dd00000ea80000000000000001000006e500000ae20000000000000001000006ea00000b120000000000000001000006f100000b4e0000000000000001000006fa00000eb200000000000000010000070100000ed200000000000000010000070900000bd400000000000000010000071400000c0400000000000000010000071900000c4000000000000000010000071e00000c3000000000000000010000072500000cf200000000000000010000072f00000c3c00000000000000010000073500000c7a00000000000000010000073d00000c5200000000000000010000074200000c6400000000000000010000074700000d9a00000000000000010000075100000d3000000000000000010000075600000d5000000000000000010000075c00000d5200000000000000010000076100000d8200000000000000010000076600000d8e00000000000000010000076d00000d9000000000000000010000077400000dea00000000000000010000077900000e0a00000000000000010000077e00000e1200000000000000010000078300000e6600000000000000010000078900000e4800000000000000010000078e00000000000000001000000100000798000000860000000010000001000007a0000005760000000010000001000007a8000005be0000000010000001000007b2000009e80000000010000001000007bb00000a8a0000000010000001000007c300000cbc0000000010000001000007cb00000cd8000000001000000100444a5f4d4f44455f494e5f434156450050544e5f4d4f44450050544e5f5553454400504f505550004152525f41435400434841494e5f414354004e4f54494659004e4f544946595f48414e444c45004e4f544946595f434f554e54444f574e0050544e5f4c415945525f52454c5f524553554d4500444a5f544f4153545f445552005452414e53504f52545f4c004143545f42414e4b004143545f5041540050454e445f42414e4b0050454e445f50415400505245565f50415400505245565f42414e4b004d41535445525f53544550005449434b5f435452005343414c455f4958004c454e5f54424c005343414c455f4d4158005343414c455f3158004c414e445f434e54444e00534e41505f5354455000534e41505f5449434b00524553554d455f4c00484f4c445f4d41534b00524553594e43383000524553594e43383200524553594e433834004d4944495f53454e440050435f53454e4400535052494e5446004b504f53540055495f5155455545004d53475f42414e4b504154004d53475f42414e4b5041545f415247004d53475f50415254004d53475f504152545f41524700505f5041525400545f53494c454e540053494c454e545f44454600454e475f41464c41475300454e475f4154494d4500454e475f4142414e4b00454e475f415041525400454e475f4d464c41475300454e475f4d54494d453100454e475f4d464c414700454e475f4d54494d453200454e475f4d42414e4b00454e475f4d5041525400434f4e445f524553455400505f434841494e510050524f4a5f5155414e54005155414e545f54424c00454e445f535445500053544f505f454e440054524b5f4150504c5900504152545f4f46460050415254535a004d454e47004d444553004d534c50004d5a45524f004d5f524543004e4f54455f4f4646004d53475f504154004d53475f5041545f415247005041545f424153450042414e4b5f535452494445005041545f53545249444500505f4c454e5f4259544500505f4d4c454e5f574f524400505f5343414c455f4d4f444500415f4c454e00415f535452494445004d5f4c454e004d5f5354524944450053545f49444c450053545f41524d45440053545f4c414e44494e470053545f46495855500054524b5f5343414c450052454c4f414400505f5343414c455f4e00505f4d5343414c4500545f4c454e00545f53434c00545f464c41470053434c4b004d434c4b005449434b5f41005449434b5f4d00444a5f544f465300646a745f73746f636b00444a5f4d4f444500646a5f6d73675f6f666600646a745f73686f7700646a5f6d73675f6f6e00646a5f756e686964650064745f72756e00646a5f5400646a5f72736d0064745f646f6e6500646c5f6f666600646a5f737461746500646c5f69646c6500646c5f6e6f7466697800646c5f666978757000646a5f72656c73696c00646c5f646f6e6500646a5f61726d7061740064615f726563756500646a5f61726d62616e6b0064615f73616d6500646c5f636f6d6d697400646a5f73706e00646a5f7370666c75736800646c5f636c65617200646a5f706370617400646c5f7265616c00646c5f706366697800646a5f706362616e6b00646c5f706373656e6400646c5f61726d00646a5f626c6f6200646a5f62706172616d730064615f7363616e00646a5f747072696d650064615f6e65787400646a5f4c0064615f666f756e6400646c5f61726d3200646a5f7370646f00646c5f6f757400646a5f686964650064685f6e6f0064685f656e640064685f7965730064685f6c656e00646a5f6869640064755f6f757400646a5f706f737400646a5f7470734d00646a5f746c616e6400646a5f430064635f6e6f6300646a5f74707300646a5f6c656e0064635f6c6f6f700064635f73746570300064635f73746f726500646a5f707572676500646a5f68616e646f666600646e5f73746f636b00646e5f726c00646a5f7a65726f006470725f646f6e6500686f5f6269747300646a5f73696c4100646a5f73696c4d00686f5f6d7400686f5f6d743100686f5f6d743200686f5f6d743300646a5f737061726d00646a5f636f6e6400636e5f696e697400636e5f6c6f6f7000636e5f63796300636e5f73746f726500686f5f6c7000686f5f6e7800686f5f7365740062705f70740062705f630062705f6c6f6f700062705f6d6964690062705f626173650062705f626c6f6273636c0062705f73636c0062705f707473636c0062705f70746c656e0062705f6c636d0062705f6763640062705f6763646f6b0074705f6e6f630070675f7461626c650070675f74726b0070675f736c6f740070675f6e6578740072735f6c0066785f676f0066785f6c6f6f700066785f73746f726500646a5f6465666572006c715f73746f636b00646a5f7370626b00646a5f737070740073615f6c0073615f73657400646a5f746d61736b00646a5f73706400646a5f7370746d00646a5f6861737472696700736f5f6c00736f5f6e00736f5f64656300646a5f73707472696700736f5f676f00646a5f707562310073665f6c0073665f6e00646a5f6d6170706c790073745f6d0073745f676f0073745f6c0073745f6e0073745f7965730073745f6f7574006d615f70006d615f73006d615f64006d615f646e006d615f7700646a5f746f67676c6500646a5f6c616e6400646a5f6e6f666100646a5f70746e72656c00646a5f737772657300646a5f6c666f7100646a5f7470756200646a5f7077696465000000003c0000010100000f120000009e0000010100000f16000000a40000010100000f1a000000ac0000010100000f16000000f00000010100000e9e000001200000010100000e9e0000015a0000010100000e9e000001620000010100000e9f000001ee0000010100000e9f000001fa0000010100000ea10000027e0000010100000ea20000028a0000010100000ea3000002ac0000010100000e9e000003bc0000010100000ea4000003ca0000010100000ea4000004b00000010100000f1e000005700000010100000e9e000005840000010100000e9e0000060a0000010100000eaa000006560000010100000eae000008460000010100000f22000008520000010100000f26000009080000010100000f2a00000a080000010100000f1600000a160000010100000f1a00000a920000010100000ea600000ab40000010100000ea700000ac40000010100000ea800000b420000010100000ea500000b480000010100000ea600000c4a0000010100000ea500000c6e0000010100000ea500000c740000010100000ea600000cdc0000010100000ea6002e73796d746162002e737472746162002e7368737472746162002e72656c612e74657874002e64617461002e6273730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000100000006000000000000003400000f4e000000000000000000000004000000000000001b00000004000000400000000000002668000001980000000500000001000000040000000c0000002600000001000000030000000000000f8400000000000000000000000000000004000000000000002c00000008000000030000000000000f8400000000000000000000000000000004000000000000000100000002000000000000000000000f8400000f1000000006000000e900000004000000100000000900000003000000000000000000001e94000007d40000000000000000000000010000000000000011000000030000000000000000000028000000003100000000000000000000000100000000", - "sha256": "cd1f1834ff52b80460926acd0d1211f64bfd6acba3b47793e03b51a2232e49b9", + "bytes": 10608, + "code": "7f454c460102010000000000000000000001000400000001000000000000000000002830000000260034000000000028000800077001b0af00086600005c2039460d17425380660000504ab9460d1aec660000464ab9460e5cd06600003c203a0efa0a800000000102800000000123c00000000041fa00344a80670441fa001c487800442f084eb94005a2b8508f700123c0460d173e4e754e75444952454354204a554d50204f4e0000444952454354204a554d50204f4646004fefffc448d77fff610003327001b0b9800065b8670e42b90000000042b900000000600652b9000000004aba0e74670000887001b0b9800065b86600007c4ab9460d1aec660000724ab98000654666000068103a0dd86700008c0c00000366126100094c610008ee423900000000600001ba0c000001660001b21039800065c0b03a0dae660c1039800065bfb03a0da36710423980006687423900000000600000441039800066870c0000016600017c610002e8600001744a3a0d79670461000b1e103a0d680c000001660642398000668742390000000070ff13c000000000600001481039800065c00c00ffff67e2b039800065be66501039800065bfb039800065bd6642103a0d250c00ffff6700ffc2b039800065be660e103a0d13b039800065bd6700ffac70001039800065be2f0070001039800065bd2f004eb94009e884508f6000ff8c1039800065c0b03a0cdd660c1039800065bfb03a0cd367341039800065c013c0000000001039800065bf13c00000000070001039800065c02f0070001039800065bf2f004eb94009e884508f4a39800066876e00008e70001039800065bf72001239800065c0610005a2610005be2e3a0cec0687000000007c002007d0865280610006d24a806d12223a0ce624004c4120024c012800b082670e52860c86000000786dd66000003c1039800065c013c0000000001039800065bf13c0000000002206528113c1800066870c810000000166086100017e6000000a700113c0000000004a3a0c0767046100095c103a0bf60c0000016604610000124cd77fff4fef003c1039800066874e754a398000667e660000e070001039800065bd72001239800065be610004e4720012398000663d7006b2806302720241f9400aba5024301c001239800065b649c15281b2826d0000a274003439800065b2528202820000ffff203c00008e561232080049c16a0812398000004e49c141f9400d80dc26301c004a836f0a20024c4308014a81674220398000662c72ffb0816706b0826e526030203c00008e554a320800670e203c00008e503232080048c1600c203c00008e531232080049c170ffb2806724b2826e201039800065be13c0800065c01039800065bd13c0800065bf700113c0000000004e754a3a0af467564239000000001039800065c0b039800065be66421039800065bfb039800065bd6634103a0aca13c0800065c0103a0ac113c0800065bf1039800065be13c0400d816c4879400d816b4879460d17ae4eb940000c3c508f4e754a3a0a9767046100083c1039800065be13c0800065c11039800065bd13c0800065c21039800065c013c0800065be1039800065bf13c0800065bd70001039800065bd223c0009b3404c01080072001239800065be243c00008ed84c021800d08145f9400e21e0d5c06100036e2e3a0a9c068700000000263a0a9e203a0a924c030800de8023c7000000002007d0835380223a0a88670c24004c4120024c012800908228004c43400423c4800066382a009a83548541f98000651643f98000653647fa0a6049fa0a6c7c107200121b20054c4100007400141c7202b2826e0e22004c4210014c02180090816002700030c04219538666d4610004364279800066264279800066804279800066824279800066841039800065bd13c0400d81684879400d81674879460d17ae4eb940000c3c508f610000901039800065be13c0400d816c4879400d816b4879460d17ae4eb940000c3c508f700213c0000000004e75103a09300c0000026636700313c0000000002f082f0141f9800065d372101010538010c0538166f61039800065b6538013c0800065b6221f205f4a3a08f84e754a398000002a4e754ab9460d1e706708700123c0460d1e6c4879400bf0f24ef94004341e223c00008e571032180013c0400d816a4879400d81694879460d17ae4eb940000c3c508f780376532c3c0000091a6100019623c446c7fa8023c40000000020394610757c068000285ff023c0800019e41039800065bd13c046c7ff40223c00008e571032180013c046c7ff627803263c000048fb2c3c000008b06100014a23c446c7a12023c4000000007a004a3980001860661610398000002808000000670a4ab946104ca867027a012039461075640680000041a04a85660606800000313823c046c76aa6700123c046c76a222039461075640680000041a04a8567080480000041a0600604800000106823c046c76aaa1039800065bd13c046c7a850223c00008e571032180013c046c7a934610003c2600000022e3a08366a027e004aba0836671e2c3a0830200690ba08262c4020074c4600002a404c06080022079280244147fa081a49fa082641f94610791843f9461079797a107800181b7600161c660276014c0438004aba07ec660c2007d08453804c430000603e200ed08422004c43100124014c032800908224014a80670252822c0d4c026800240ad48453824c432002b481630224014a806706b5ce630252822006d08220c012fc000153856600ff964e757a0810323800671a0c000001670e0c00ffff660e4a398000004f67067001eba88880d68652857010b08566d64e75243c0009b3404c020800243c00008ed84c021800d08145f9400e21e0d5c04e7541f9400aba50203c00008e551e32080072004a076624203c00008e54123208007006b2806302720226301c00203c00008e537800183208006026203c00008e52123208007006b2806302720226301c00203c00008e503832080048c46e02780023c30000000020044c03080023c0000000002a0347fa06d449fa06e04bf98000663e7c007008b0866f12203c0000091a4c060800068000000050601420065180223c000008b04c0108000680000048f843f208004a2900046708720012356800601672004a07660c203c00008e54123208006004122900017006b2806306243a065e600424301c0016c24a07660418c4600218d1200522024a81671426004c4130034c013800908326002001220360e84c4050054c02580052867010b0866600ff6423c5000000004e75263a0612223a06064c031800d081d08353806b12223a0602670c24004c4120024c0128009082908352804e752a394610757c263c00142ff841f98000190443f946c7e99847f946c7fe44613241f98000198443f946c7faa447f946c7fe8c611e2a3946107564263c000020d041f946c76a2643f946c769c047f946c77be27c0078007000103368000900671a2204e789d28624301c009485b4836d0a42b11c0009801780680052847003b08466d452867008b08666ca4e75283a04e27a00200550800104670a2f054eb940008f84588f52857008b08566e64e75700010398000663d0c80000000066302700241f9400aba5020300c00448023c00000000070003039800065b223c0000000004ef9400a539c41f9400aba50700010398000663d7206b0816302700226300c007a00223a04e8670c92835281b2ba04d66e027a0143f98000663e45f9800065d37c0072004a85671a70001031680022030c8000000006620422300c0092836a0272001581680052867010b08666d44e754a3a041a670a423900000000b0804e754a39800000504e754a398000005066024e751039800065bd13c000000000223c00008e571032180013c0000000002a394610757c068500142ff82839461075640684000020d07c007e02203a03c40c86000000086504203a03bc22060281000000075081030066102006610000484a8067062e3c0000fffe2006d08041fa039a31870800d08041fa03b0218508000c860000000865042184080052867010b0866600ffa6700113c00000000013c0000000004e7526000c80000000086412223c0000091a4c01080041f20800725060185180223c000008b04c0108000680000048d041f208007228700010301800223c00008e554a321800660c223c00008e537000103218002428000426107220b081640c76007201e1a95381c48160160480000000200c800000002064087201e1a95381c681848320024e754fefffe848d7070e70001039800065bd72001239800065be6100fbd620066100ff5a4cd7070e4fef00184e757c0076002206d28141fa02a8700030301800672c0c800000fffe6614610000d44a8066186100ffae4a806710760160105380318018006704760160046100003c52867010b08666bc13c3000000004e757c002006d08041fa025a4a70080067046100001852867010b08666e64239000000004239000000004e752006d08041fa02324270080020060c8000000008650251802f007000103a02102f00103a02092f000c860000000864084eb940001f186004610000e64fef000c4e75202f000c0c800000000864064ef940001f1851802f40000c600000c4700113c0000000002f2f00082f2f00084eb940009e00508f4e754fefffe448d70c3e2006e58841fa01d22830080026060c8600000008642024394610757c2a3c00142ff8247c46c7fe44207c80001904227c46c7e998602051832439461075642a3c000020d0247c46c77be2207c46c76a26227c46c769c07200700010323800030067262001e788d083264020310c00080000026714200b20300c00264090846b08200b9082b0856d0c52817003b08166c87000600270014cd70c3e4fef001c4e754fefffec48d70c1c202f0018222f001c242f0020263c0009b3404c003800247c40170f60d5c3263c000018b24c013800d5c376444c023800207c46c76dc0d1c32602eb8b224ad3fc000003e2d3c3782010d9538466fa76244c023800224ad3fc000004e2d3c32649d7fc00000009782410d9538466fa78001033480049c0720ab0816f4804800000000b224ad3fc000017922200e989d3c12202d281d282d284207c46c7738c2601e98bd1c3761010d9538366fa224ad3fc00001812d080d3c0207c46c7750cd281d1c1309152840c840000000366a2207c8000666e202f001811802800202f001c118028082002e588207c8000664e42b008004cd70c1c4fef00144e7500ff00ffffff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000100000000000000000000000003000003000000000000000000000000030000040000000100000001000000000000fff100000011460d1742000000000000fff10000001a460d173e000000000000fff100000023460e5cd0000000000000fff100000029460d1aec000000000000fff10000003180006546000000000000fff10000003b4005a2b8000000000000fff100000042460d1e70000000000000fff100000050460d1e6c000000000000fff1000000614004341e000000000000fff10000007600000044000000000000fff100000083800065b8000000000000fff10000008f800065bd000000000000fff100000098800065be000000000000fff1000000a0800065bf000000000000fff1000000aa800065c0000000000000fff1000000b3800065c1000000000000fff1000000bc800065c2000000000000fff1000000c6800065b2000000000000fff1000000d2800065b6000000000000fff1000000db8000663d000000000000fff1000000e4400aba50000000000000fff1000000ec00000006000000000000fff1000000f600000002000000000000fff1000000ff80006687000000000000fff10000010a80006516000000000000fff10000011480006536000000000000fff10000011e80006638000000000000fff10000012780006626000000000000fff10000013180006680000000000000fff10000013a80006682000000000000fff10000014380006684000000000000fff10000014c8000002a000000000000fff1000001564009e884000000000000fff10000015e40013a08000000000000fff10000016640000c3c000000000000fff10000016c460d17ae000000000000fff100000175400d8167000000000000fff100000181400d8168000000000000fff100000191400d8169000000000000fff10000019a400d816a000000000000fff1000001a700008e57000000000000fff1000001ae00000003000000000000fff1000001b78000004f000000000000fff1000001c246c7fa80000000000000fff1000001cd800019e4000000000000fff1000001d746c7ff40000000000000fff1000001e146c7ff62000000000000fff1000001eb46c7a120000000000000fff1000001f646c76aa6000000000000fff10000020146c76a22000000000000fff10000020b46c76aaa000000000000fff10000021646c7a850000000000000fff10000022046c7a934000000000000fff10000022a400a539c000000000000fff10000023500008e56000000000000fff10000023e8000004e000000000000fff100000249400d80dc000000000000fff1000002538000662c000000000000fff10000025c8000667e000000000000fff10000026540001f18000000000000fff10000026f0008ed80000000000000fff100000278000018b2000000000000fff10000027f46c76dc0000000000000fff10000028446c7738c000000000000fff10000028946c7750c000000000000fff10000021a8000666e000000000000fff10000028e8000664e000000000000fff100000294000048d0000000000000fff10000029a40008f84000000000000fff1000002a3400d816b000000000000fff1000002ab400d816c000000000000fff1000002b7400e21e0000000000000fff1000002c00009b340000000000000fff1000002cc00008ed8000000000000fff1000002d700008e53000000000000fff1000002e200008e50000000000000fff1000002ee00008e55000000000000fff1000002fb00000050000000000000fff1000003010000091a000000000000fff10000030a000048f8000000000000fff100000310000008b0000000000000fff10000031900000000000000000000fff10000032100000001000000000000fff10000032a00000002000000000000fff10000033500000003000000000000fff10000033e8000663e000000000000fff100000348800065d3000000000000fff10000034f00008e54000000000000fff10000035900008e52000000000000fff10000036200000000000000000000fff10000036800000001000000000000fff10000036e00000004000000000000fff1000003754610757c000000000000fff10000037a46107564000000000000fff10000037f00285ff0000000000000fff100000386000041a0000000000000fff10000038d00000000000000000000fff1000003950000006400000000000000010000039f00000f260000000000000001000003a7000000760000000000000001000003b20000004c0000000000000001000003bb000000660000000000000001000003c5000003c20000000000000001000003cf000000aa0000000000000001000003d600000f2a0000000000000001000003db00000f2e0000000000000001000003e2000000b00000000000000001000003ea0000013e0000000000000001000003f100000eb20000000000000001000003fa0000016a000000000000000100000402000000f800000000000000010000040c00000a34000000000000000100000415000009da00000000000000010000041f000002b000000000000000010000042700000eb60000000000000001000004310000011800000000000000010000043a00000eb70000000000000001000004450000012800000000000000010000044d0000042000000000000000010000045700000eb900000000000000010000045e00000c640000000000000001000004690000015800000000000000010000047200000eb300000000000000010000047b000001ce000000000000000100000483000001ae00000000000000010000048c00000eb5000000000000000100000496000001e60000000000000001000004a00000021a0000000000000001000004a7000007d80000000000000001000004af000007f80000000000000001000004ba000002480000000000000001000004c2000009220000000000000001000004cc000002680000000000000001000004d400000f3e0000000000000001000004d9000002760000000000000001000004e2000002a80000000000000001000004ea00000c140000000000000001000004f2000002c80000000000000001000004f9000002d8000000000000000100000501000003c00000000000000001000005070000035e00000000000000010000050e000003a00000000000000001000005150000037000000000000000010000051c00000eb80000000000000001000005230000041e00000000000000010000052a00000f3600000000000000010000053200000f3200000000000000010000053b00000f3a000000000000000100000540000004c200000000000000010000054700000f4200000000000000010000054e00000f52000000000000000100000555000004ea00000000000000010000055d0000050c0000000000000001000005660000050e00000000000000010000056f0000094e000000000000000100000578000005e4000000000000000100000583000005c000000000000000010000058c0000059e00000000000000010000059200000eb400000000000000010000059a000005d80000000000000001000005a3000007aa0000000000000001000005ab00000ebe0000000000000001000005b300000ec20000000000000001000005bb0000068e0000000000000001000005c1000006a40000000000000001000005c8000006ca0000000000000001000005cf000006d00000000000000001000005d600000ab60000000000000001000005df000006fa0000000000000001000005e7000007260000000000000001000005ef0000073c0000000000000001000005f70000075e0000000000000001000005fe0000079c000000000000000100000607000007ac00000000000000010000060d000007cc000000000000000100000613000007c600000000000000010000061a00000832000000000000000100000620000008580000000000000001000006250000087c00000000000000010000062d00000894000000000000000100000635000008a800000000000000010000063d000008ba000000000000000100000648000008d000000000000000010000064f000008cc000000000000000100000658000008ea000000000000000100000661000008ec000000000000000100000668000008f000000000000000010000066f000009080000000000000001000006780000094800000000000000010000067f000009a0000000000000000100000688000009a200000000000000010000068f000009a4000000000000000100000697000009c800000000000000010000069f000009e00000000000000001000006a400000a620000000000000001000006aa00000a700000000000000001000006b200000a900000000000000001000006bb00000eba0000000000000001000006c400000aae0000000000000001000006cd00000ebb0000000000000001000006d500000ebc0000000000000001000006dd00000af60000000000000001000006e200000b260000000000000001000006e900000b620000000000000001000006f200000ec60000000000000001000006f900000ee600000000000000010000070100000be800000000000000010000070c00000c1800000000000000010000071100000c5400000000000000010000071600000c4400000000000000010000071d00000d0600000000000000010000072700000c5000000000000000010000072d00000c8e00000000000000010000073500000c6600000000000000010000073a00000c7800000000000000010000073f00000dae00000000000000010000074900000d4400000000000000010000074e00000d6400000000000000010000075400000d6600000000000000010000075900000d9600000000000000010000075e00000da200000000000000010000076500000da400000000000000010000076c00000dfe00000000000000010000077100000e1e00000000000000010000077600000e2600000000000000010000077b00000e7a00000000000000010000078100000e5c0000000000000001000007860000000000000000100000010000079000000086000000001000000100000798000005800000000010000001000007a0000005c80000000010000001000007aa000009fc0000000010000001000007b300000a9e0000000010000001000007bb00000cd00000000010000001000007c300000cec000000001000000100444a5f4d4f44455f494e5f434156450050544e5f4d4f44450050544e5f5553454400504f505550004152525f41435400434841494e5f414354004e4f54494659004e4f544946595f48414e444c45004e4f544946595f434f554e54444f574e0050544e5f4c415945525f52454c5f524553554d4500444a5f544f4153545f445552005452414e53504f52545f4c004143545f42414e4b004143545f5041540050454e445f42414e4b0050454e445f50415400505245565f50415400505245565f42414e4b004d41535445525f53544550005449434b5f435452005343414c455f4958004c454e5f54424c005343414c455f4d4158005343414c455f3158004c414e445f434e54444e00534e41505f5354455000534e41505f5449434b00524553554d455f4c00484f4c445f4d41534b00524553594e43383000524553594e43383200524553594e433834004d4944495f53454e440050435f53454e4400535052494e5446004b504f53540055495f5155455545004d53475f42414e4b504154004d53475f42414e4b5041545f415247004d53475f50415254004d53475f504152545f41524700505f5041525400545f53494c454e540053494c454e545f44454600454e475f41464c41475300454e475f4154494d4500454e475f4142414e4b00454e475f415041525400454e475f4d464c41475300454e475f4d54494d453100454e475f4d464c414700454e475f4d54494d453200454e475f4d42414e4b00454e475f4d5041525400434f4e445f524553455400505f434841494e510050524f4a5f5155414e54005155414e545f54424c00454e445f535445500053544f505f454e440054524b5f4150504c5900504152545f4f46460050415254535a004d454e47004d444553004d534c50004d5a45524f004d5f524543004e4f54455f4f4646004d53475f504154004d53475f5041545f415247005041545f424153450042414e4b5f535452494445005041545f53545249444500505f4c454e5f4259544500505f4d4c454e5f574f524400505f5343414c455f4d4f444500415f4c454e00415f535452494445004d5f4c454e004d5f5354524944450053545f49444c450053545f41524d45440053545f4c414e44494e470053545f46495855500054524b5f5343414c450052454c4f414400505f5343414c455f4e00505f4d5343414c4500545f4c454e00545f53434c00545f464c41470053434c4b004d434c4b005449434b5f41005449434b5f4d00444a5f544f465300646a745f73746f636b00444a5f4d4f444500646a5f6d73675f6f666600646a745f73686f7700646a5f6d73675f6f6e00646a5f756e686964650064745f72756e00646a5f5400646a5f72736d0064745f646f6e6500646c5f6f666600646a5f737461746500646c5f69646c6500646c5f6e6f7466697800646c5f666978757000646a5f72656c73696c00646c5f646f6e6500646a5f61726d7061740064615f726563756500646a5f61726d62616e6b0064615f73616d6500646c5f636f6d6d697400646a5f73706e00646a5f7370666c75736800646c5f636c65617200646a5f706370617400646c5f7265616c00646c5f706366697800646a5f706362616e6b00646c5f706373656e6400646c5f61726d00646a5f626c6f6200646a5f62706172616d730064615f7363616e00646a5f747072696d650064615f6e65787400646a5f4c0064615f666f756e6400646c5f61726d3200646a5f7370646f00646c5f6f757400646a5f686964650064685f6e6f0064685f656e640064685f7965730064685f6c656e00646a5f6869640064755f6f757400646a5f7470734d00646a5f746c616e6400646a5f430064635f6e6f6300646a5f74707300646a5f6c656e0064635f6c6f6f700064635f73746570300064635f73746f726500646a5f707572676500646a5f68616e646f666600646e5f73746f636b00646e5f726c00646a5f7a65726f006470725f646f6e6500686f5f6269747300646a5f73696c4100646a5f73696c4d00686f5f6d7400686f5f6d743100686f5f6d743200686f5f6d743300646a5f737061726d00646a5f636f6e6400636e5f696e697400636e5f6c6f6f7000636e5f63796300636e5f73746f726500686f5f6c7000686f5f6e7800686f5f7365740062705f70740062705f630062705f6c6f6f700062705f6d6964690062705f626173650062705f626c6f6273636c0062705f73636c0062705f707473636c0062705f70746c656e0062705f6c636d0062705f6763640062705f6763646f6b0074705f6e6f630070675f7461626c650070675f74726b0070675f736c6f740070675f6e6578740072735f6c0066785f676f0066785f6c6f6f700066785f73746f726500646a5f6465666572006c715f73746f636b00646a5f7370626b00646a5f737070740073615f6c0073615f73657400646a5f746d61736b00646a5f73706400646a5f7370746d00646a5f6861737472696700736f5f6c00736f5f6e00736f5f64656300646a5f73707472696700736f5f676f00646a5f707562310073665f6c0073665f6e00646a5f6d6170706c790073745f6d0073745f676f0073745f6c0073745f6e0073745f7965730073745f6f7574006d615f70006d615f73006d615f64006d615f646e006d615f7700646a5f746f67676c6500646a5f6c616e6400646a5f6e6f666100646a5f70746e72656c00646a5f737772657300646a5f6c666f7100646a5f7470756200646a5f7077696465000000003c0000010100000f260000009e0000010100000f2a000000a40000010100000f2e000000ac0000010100000f2a000000f00000010100000eb2000001200000010100000eb20000015a0000010100000eb2000001620000010100000eb3000001ee0000010100000eb3000001fa0000010100000eb50000027e0000010100000eb60000028a0000010100000eb7000002ac0000010100000eb2000003bc0000010100000eb8000003ca0000010100000eb8000004a60000010100000f320000057a0000010100000eb20000058e0000010100000eb20000061e0000010100000ebe0000066a0000010100000ec20000085a0000010100000f36000008660000010100000f3a0000091c0000010100000f3e00000a1c0000010100000f2a00000a2a0000010100000f2e00000aa60000010100000eba00000ac80000010100000ebb00000ad80000010100000ebc00000b560000010100000eb900000b5c0000010100000eba00000c5e0000010100000eb900000c820000010100000eb900000c880000010100000eba00000cf00000010100000eba002e73796d746162002e737472746162002e7368737472746162002e72656c612e74657874002e64617461002e6273730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000100000006000000000000003400000f62000000000000000000000004000000000000001b00000004000000400000000000002664000001980000000500000001000000040000000c0000002600000001000000030000000000000f9800000000000000000000000000000004000000000000002c00000008000000030000000000000f9800000000000000000000000000000004000000000000000100000002000000000000000000000f9800000f0000000006000000e800000004000000100000000900000003000000000000000000001e98000007cc0000000000000000000000010000000000000011000000030000000000000000000027fc0000003100000000000000000000000100000000", + "sha256": "df6e739561e93b2402a1bf35fd0802051facd2d25bc7dc00fd863673a2699b36", "stockCopies": [], "placement": "linked", "poolBaseLiterals": 0, @@ -1141,12 +1141,12 @@ "caveAddress": null, "source": "modules/direct-jump-kyoti/patch_trigscale.s", "sources": { - "modules/direct-jump-kyoti/patch_trigscale.s": "f657f576c14cf61e23cc563eab54a07ef4f9774ddfca0c8bf3286c13bb76068f", - "modules/direct-jump-kyoti/manifest.py": "14fef7f20657ced4e6c4f9b879992a9593a0e99000595c6005d654f7b6874321" + "modules/direct-jump-kyoti/patch_trigscale.s": "bd3978d7fc75d228ca02e4e4fa10c75b2095e23de1a84d5749c52485e565857f", + "modules/direct-jump-kyoti/manifest.py": "f449e3af81f61d400cabbdc73c4b5d1f8f1332d6f651cc0b118f6c020aefc9f1" }, "bytes": 672, - "code": "7f454c460102010000000000000000000001000400000001000000000000000000000188000000260034000000000028000700067007b0836d18203c0000091a4c0308002041d08241f008514ef94009b704200351802c3c000008b04c060800d0820680000048f92041d1c04ef94009b70400000000000000000000000000000000000000000000000000000000000003000001000000000000000000000000030000020000000000000000000000000300000300000001000008b0000000000000fff10000000d000048f9000000000000fff10000001c0000091a000000000000fff10000002900000051000000000000fff1000000394009b704000000000000fff10000003e000000000000000010000001004d4944495f535452494445004d4944495f5343414c455f4f464600415544494f5f53545249444500415544494f5f5343414c455f4f4646004241434b0074735f6361766500002e73796d746162002e737472746162002e7368737472746162002e74657874002e64617461002e627373000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b000000010000000600000000000000340000003e0000000000000000000000040000000000000021000000010000000300000000000000740000000000000000000000000000000400000000000000270000000800000003000000000000007400000000000000000000000000000004000000000000000100000002000000000000000000000074000000a00000000500000009000000040000001000000009000000030000000000000000000001140000004600000000000000000000000100000000000000110000000300000000000000000000015a0000002c00000000000000000000000100000000", - "sha256": "652ced000713288260d0d0d422f8e365136d3d9b2ae3c4f1af5f672b21de6d1a", + "code": "7f454c460102010000000000000000000001000400000001000000000000000000000188000000260034000000000028000700067007b0836d18203c0000091a4c030800d082204141f008514ef94009b704200351802c3c000008b04c060800d0820680000048f92041d1c04ef94009b70400000000000000000000000000000000000000000000000000000000000003000001000000000000000000000000030000020000000000000000000000000300000300000001000008b0000000000000fff10000000d000048f9000000000000fff10000001c0000091a000000000000fff10000002900000051000000000000fff1000000394009b704000000000000fff10000003e000000000000000010000001004d4944495f535452494445004d4944495f5343414c455f4f464600415544494f5f53545249444500415544494f5f5343414c455f4f4646004241434b0074735f6361766500002e73796d746162002e737472746162002e7368737472746162002e74657874002e64617461002e627373000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b000000010000000600000000000000340000003e0000000000000000000000040000000000000021000000010000000300000000000000740000000000000000000000000000000400000000000000270000000800000003000000000000007400000000000000000000000000000004000000000000000100000002000000000000000000000074000000a00000000500000009000000040000001000000009000000030000000000000000000001140000004600000000000000000000000100000000000000110000000300000000000000000000015a0000002c00000000000000000000000100000000", + "sha256": "eb511b51f839f22f9ebd35a398b611c1628b09f0eae9fd08df49779a3fd421e1", "stockCopies": [], "placement": "linked", "poolBaseLiterals": 0, diff --git a/src/engine/assets/resident-dsp.json b/src/engine/assets/resident-dsp.json index 932ad52bb1..716d19f294 100644 --- a/src/engine/assets/resident-dsp.json +++ b/src/engine/assets/resident-dsp.json @@ -97,7 +97,7 @@ "baselineDescriptors": [] } ], - "sourceCommit": "7595416dbe052c4184af68730f51aae747091a42", + "sourceCommit": "20d216e1b454edee281d66dcfb179275fe24b4b0", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", diff --git a/src/engine/assets/rom-packages.json b/src/engine/assets/rom-packages.json index 8fbe40ef63..3fb397b6ed 100644 --- a/src/engine/assets/rom-packages.json +++ b/src/engine/assets/rom-packages.json @@ -423,7 +423,7 @@ "sha256": "fdba0ffd31b7932ceb1ded3bde9a976b6f148ae96fc73a4efc4fedf6fb692341" } ], - "sourceCommit": "7595416dbe052c4184af68730f51aae747091a42", + "sourceCommit": "20d216e1b454edee281d66dcfb179275fe24b4b0", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", diff --git a/src/engine/assets/usb-audio-packages.json b/src/engine/assets/usb-audio-packages.json index 646aeef1fb..be4a73083b 100644 --- a/src/engine/assets/usb-audio-packages.json +++ b/src/engine/assets/usb-audio-packages.json @@ -553,7 +553,7 @@ } ] }, - "sourceCommit": "7595416dbe052c4184af68730f51aae747091a42", + "sourceCommit": "20d216e1b454edee281d66dcfb179275fe24b4b0", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", diff --git a/src/engine/assets/utility-packages.json b/src/engine/assets/utility-packages.json index 78a5947c17..011adbe4e3 100644 --- a/src/engine/assets/utility-packages.json +++ b/src/engine/assets/utility-packages.json @@ -3,7 +3,7 @@ "kind": "authored-utility-packages", "stockRead": false, "revision": "b8deefc88b2c3e5f3c6158e364eb741df1924e1d", - "sourceCommit": "7595416dbe052c4184af68730f51aae747091a42", + "sourceCommit": "20d216e1b454edee281d66dcfb179275fe24b4b0", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", From 6766cad3a17c2e0c0372546265a17cbbd7fa1fff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Tue, 17 Nov 2026 14:23:31 +0100 Subject: [PATCH 026/415] device:test and device:qualify place machine packages Until now the runs placed only DSP effects: a machine package without DSP code (POLY8, FM Synth, VECTOR, Amiga, SYNTIZ) was never placed, and Analog BD was sent to the FX1 chooser. A machine is now read from the package's ot_machines record (signature, versions, label, order, price), put on T1 and T5 through SRC SETUP's machine list while playing, its render read against its CPU price, then on every track beside the set's effects, its SRC page swept, and picked back. Rows follow the inventory: the machines under test and the ones this checkout publishes, by order then module id. Co-Authored-By: Claude Opus 5.5 --- .agents/skills/modwerk-test-on-unit/SKILL.md | 2 +- .claude/skills/modwerk-test-on-unit/SKILL.md | 2 +- changelog/2026-11-17-device-test-machines.md | 1 + docs/ADD_A_MODULE.md | 3 +- docs/OCTATRACK_BETA_TEST_PLAN.md | 2 +- scripts/octatrack-qualify.py | 174 +++++++++++++++++-- scripts/octatrack-test.py | 6 +- sdk/tests/test_octatrack_qualify.py | 74 +++++++- 8 files changed, 242 insertions(+), 22 deletions(-) create mode 100644 changelog/2026-11-17-device-test-machines.md diff --git a/.agents/skills/modwerk-test-on-unit/SKILL.md b/.agents/skills/modwerk-test-on-unit/SKILL.md index 199160a1bb..490b54475d 100644 --- a/.agents/skills/modwerk-test-on-unit/SKILL.md +++ b/.agents/skills/modwerk-test-on-unit/SKILL.md @@ -14,7 +14,7 @@ The order is fixed: your tests on the unit first, then the developer's. A build - Tell the developer what you will run on their unit and get their OK for this run. Read `docs/OCTATRACK_DRIVING.md` and keep its rules. - Start one session with `npm run device -- serve --share /tmp/modwerk-share.sock` on a development base, transport stopped, on a bank and Part whose working copy equals its saved one. Read the unit before you change it: `ui` and `npm run device -- do inventory`. 3. **Stage 1: your tests on the unit** (Octatrack; the Rytm below). Run them yourself; do not ask the developer to press anything. No Keep in this stage. - - **The scripted pass:** `npm run device:test -- --testing-entry run.md `, in the background, reading its log (`docs/ADD_A_MODULE.md#octatrack-base-and-usb-lifecycle`). It installs the package as a trial and rolls it back at the end; places it alone on T1 and T5 and on every track while playing; sweeps its knobs; switches Parts and banks; reads the load meters, loader, crash and stall counters and the self-test; then restores the Part and checks the inventory. One package a run. + - **The scripted pass:** `npm run device:test -- --testing-entry run.md `, in the background, reading its log (`docs/ADD_A_MODULE.md#octatrack-base-and-usb-lifecycle`). It installs the package as a trial and rolls it back at the end; places it alone on T1 and T5 and on every track while playing (a machine through the machine list, its render against its CPU price); sweeps its knobs; switches Parts and banks; reads the load meters, loader, crash and stall counters and the self-test; then restores the Part and checks the inventory. One package a run. - **By hand, what it does not cover,** inside a trial (`npm run module:dev -- `, undone when it ends; or the developer MCP's `device_review`, `device_trial`, `device_undo`, `docs/FRONTEND_MCP.md#then-test-the-connected-device`): - reach every control and screen by the button steps its README gives, and take a `png:` screenshot of each to compare with the README and its UI claims; - record MAIN and CUE over USB (`rec`) with a sustained sound and check for dropouts (runs of exact zeros, a block played twice). This finds faults; it does not judge the sound. diff --git a/.claude/skills/modwerk-test-on-unit/SKILL.md b/.claude/skills/modwerk-test-on-unit/SKILL.md index 199160a1bb..490b54475d 100644 --- a/.claude/skills/modwerk-test-on-unit/SKILL.md +++ b/.claude/skills/modwerk-test-on-unit/SKILL.md @@ -14,7 +14,7 @@ The order is fixed: your tests on the unit first, then the developer's. A build - Tell the developer what you will run on their unit and get their OK for this run. Read `docs/OCTATRACK_DRIVING.md` and keep its rules. - Start one session with `npm run device -- serve --share /tmp/modwerk-share.sock` on a development base, transport stopped, on a bank and Part whose working copy equals its saved one. Read the unit before you change it: `ui` and `npm run device -- do inventory`. 3. **Stage 1: your tests on the unit** (Octatrack; the Rytm below). Run them yourself; do not ask the developer to press anything. No Keep in this stage. - - **The scripted pass:** `npm run device:test -- --testing-entry run.md `, in the background, reading its log (`docs/ADD_A_MODULE.md#octatrack-base-and-usb-lifecycle`). It installs the package as a trial and rolls it back at the end; places it alone on T1 and T5 and on every track while playing; sweeps its knobs; switches Parts and banks; reads the load meters, loader, crash and stall counters and the self-test; then restores the Part and checks the inventory. One package a run. + - **The scripted pass:** `npm run device:test -- --testing-entry run.md `, in the background, reading its log (`docs/ADD_A_MODULE.md#octatrack-base-and-usb-lifecycle`). It installs the package as a trial and rolls it back at the end; places it alone on T1 and T5 and on every track while playing (a machine through the machine list, its render against its CPU price); sweeps its knobs; switches Parts and banks; reads the load meters, loader, crash and stall counters and the self-test; then restores the Part and checks the inventory. One package a run. - **By hand, what it does not cover,** inside a trial (`npm run module:dev -- `, undone when it ends; or the developer MCP's `device_review`, `device_trial`, `device_undo`, `docs/FRONTEND_MCP.md#then-test-the-connected-device`): - reach every control and screen by the button steps its README gives, and take a `png:` screenshot of each to compare with the README and its UI claims; - record MAIN and CUE over USB (`rec`) with a sustained sound and check for dropouts (runs of exact zeros, a block played twice). This finds faults; it does not judge the sound. diff --git a/changelog/2026-11-17-device-test-machines.md b/changelog/2026-11-17-device-test-machines.md new file mode 100644 index 0000000000..504f1eca75 --- /dev/null +++ b/changelog/2026-11-17-device-test-machines.md @@ -0,0 +1 @@ +SDK (Octatrack): `npm run device:test` and `device:qualify` now place machine packages. Until now they placed only DSP effects: POLY8, FM Synth, VECTOR, Amiga and SYNTIZ went untested, and Analog BD was offered to the FX1 chooser, where it can't appear. A machine now goes onto T1 and T5 through SRC SETUP's machine list, plays, and has its render compared with its CPU price; then it goes onto every track beside the set's effects, and its SRC page knobs are swept. A refusal (CPU FULL, DSP FULL) is reported with a screenshot of the box. A machine renders only on trigs, so run it on a Part with trigs on T1 and T5. diff --git a/docs/ADD_A_MODULE.md b/docs/ADD_A_MODULE.md index dacd0eb571..6b5280af24 100644 --- a/docs/ADD_A_MODULE.md +++ b/docs/ADD_A_MODULE.md @@ -222,7 +222,8 @@ reboot where applicable. Give hardware steps and record actual results; emulator/host tests do not fill missing hardware qualification. With `npm run device -- serve` running, `npm run device:qualify -- --keeps-ok --testing-entry run.md ` installs the package, places it alone on -each DSP core and then beside itself on every track, sweeps its knobs, switches +each DSP core (a machine through the machine list, playing, its render read +against its CPU price) and then beside itself on every track, sweeps its knobs, switches Parts and banks, optionally soaks (`--soak`) and crashes on purpose (`--crash`), restores the Part and removes the package. It writes what it saw, with the package's SHA-256, as an entry to paste into TESTING.md. The diff --git a/docs/OCTATRACK_BETA_TEST_PLAN.md b/docs/OCTATRACK_BETA_TEST_PLAN.md index c6693138fd..1971103f0f 100644 --- a/docs/OCTATRACK_BETA_TEST_PLAN.md +++ b/docs/OCTATRACK_BETA_TEST_PLAN.md @@ -101,7 +101,7 @@ emulator until the merges are in. | T1 | One USB owner for layers S and U together | `device.mjs serve` offers a second socket that speaks the bridge's adapter protocol, so the frontend MCP connects through the session instead of the raw bridge. Then the site path can sync while the session reads what each track runs. Until then S and U alternate, with the bridge restarted between them | built (run 2): `npm run device -- serve --share PATH`, then the MCP with `--device-socket PATH`; each of its control transfers runs between the session's (`shareBench` in `usb-bench.mjs`, host tests). Not yet run against the unit | | T2 | A fixture project | `ot_spec.py` builds the scratch project MODWERK-TEST2 on the development unit: bank A FX-heavy (every module FX somewhere, both slots, both cores, parameter locks, LFOs, scenes), bank B machine-heavy (POLY8, VECTOR, FM Synth, Analog BD, Scale Quantizer, with stock FLEX tracks beside them), bank C naming modules the set lacks, bank D stock only. Every working Part equals its saved Part. Described in this file once built, so it is rebuilt by one command | open | | T3 | `octatrack-persist.py` snapshots more | Each track's machine signature, the rows of `ot_machines` and `ot_sequencer_rows`, each event's handler order, the saved set's generation and count, MATRIX | open | -| T4 | `octatrack-qualify.py` instance matrix | `--instances N` places one module on N slots of one core and then of both; `--machine` assigns tracks through the machine chooser (the Analog BD hardware plan needs the same step in `-measure.py`) | open | +| T4 | `octatrack-qualify.py` instance matrix | `--instances N` places one module on N slots of one core and then of both (open). Machine packages: placed through the machine list (17 Nov 2026); `-measure.py` still lacks it | open | | T5 | Emulator fault scenarios | A sync of k packages refused at the k-th, once per refusal code; a damaged package; another base's configuration hash; a stock-site mismatch; the host silent for 10 s mid-upload; a second client while one holds the unit. Each must end at the exact baseline inventory, and the site's words for each refusal are checked | open | | T6 | A recorder on the test PC | `rec` is the Mac tool. The Windows PC needs a capture of the Octatrack's USB audio (MAIN and CUE) that `-movelisten.py` and the clap comparisons can call | built (run 1): `C:\Users\Public\modwerk-usb\rec.py` records the 20 USB channels (8 tracks, MAIN, CUE) with sounddevice in the bridge venv; glitch and MAIN-click detectors in the run's private tools | | T7 | The public comparison | The visitor and member comparison against main (visible text, screenshots, API traffic) lived in `~/.cache/modwerk-octatrack/frontend-tools/` on the Mac. Port it to this PC or rebuild it | open | diff --git a/scripts/octatrack-qualify.py b/scripts/octatrack-qualify.py index f93879bcdc..08f4e0bb39 100755 --- a/scripts/octatrack-qualify.py +++ b/scripts/octatrack-qualify.py @@ -5,8 +5,11 @@ npm run device:qualify -- --keeps-ok [--seconds 30] [--soak SECONDS] [--crash] [--testing-entry FILE] PKG.mwrm ... Run it on a bank and Part whose working copy equals its saved one (docs/OCTATRACK_DRIVING.md), transport stopped. -Installs the set, puts each DSP module alone on T1 (core 1) and T5 (core 0) and reads the load meters, then all -of them at once while the pattern plays. With everything placed, playing: each placed module's knobs swept, the +Installs the set, puts each DSP effect alone on T1 (core 1) and T5 (core 0) and reads the load meters, and each track +machine (a package contributing to ot_machines) on T1 and T5 through SRC SETUP's machine list, playing, with its render +time against its CPU price; then all of them at once while the pattern plays (machines on T1-T8 round the set, beside +the effects). A machine renders only on trigs: give T1 and T5 trigs. With everything placed, playing: each placed +module's knobs swept (a machine's on its SRC page), the four Parts switched three times round (each must run its own effects), a queued pattern change into another bank and back, an optional soak with a meter line every 10 s, and an optional deliberate crash and its restart. Fails when the loader rejects a packet, errs or rolls back, a crash or DSP stall is recorded (other than --crash's), @@ -18,17 +21,54 @@ base then starts with no modules after a power cycle, so the run starts only with --keeps-ok, once you have noted the flashed set (the session's `inventory`) and where its packages are (docs/OCTATRACK_DRIVING.md). --testing-entry FILE writes what the run saw as a TESTING.md entry: the packages and their SHA-256, the readings and what it does not cover.""" -import argparse, datetime, hashlib, json, os, re, socket, subprocess, sys, time +import argparse, datetime, glob, hashlib, json, os, pathlib, re, socket, subprocess, sys, time +ROOT = pathlib.Path(__file__).resolve().parents[1] SOCKET = os.environ.get('MODWERK_DEV_SOCKET', '/tmp/modwerk-dev.sock') PEAK_LIMIT = 900 # per mille of a frame -# A package's ABI 6 header: name at 50 (15 bytes), slots at 39 (1 FX1, 2 FX2, 3 both); no DSP code below ABI 5. +HEADERS = {6: 68, 7: 72, 8: 76, 9: 80, 10: 80} # header bytes by ABI (sdk/runtime/loader/abi9.py); hook words follow +MACHINES = next(e['index'] for e in json.loads((ROOT / 'sdk/machines/octatrack/events.json').read_text())['events'] if e['event'] == 'ot_machines') +CPU_DEFAULT = 12 # percent of a frame the base charges a machine that names no price (machine_registry.c) + + +def machine(data): + """The struct modwerk_machine a package contributes to ot_machines (modwerk_events.h), else None: its hook word holds + the order (top byte) and the record's image offset; the label is a pointer into the image, stored unrelocated.""" + abi, hooks = int.from_bytes(data[4:6], 'big'), int.from_bytes(data[20:24], 'big') + if abi not in HEADERS or hooks <= MACHINES: return None + image, size = HEADERS[abi] + 4 * hooks, int.from_bytes(data[8:12], 'big') + word = int.from_bytes(data[HEADERS[abi] + 4 * MACHINES:][:4], 'big') + at = word & 0xffffff + if word == 0xffffffff or at + 80 > size: return None + rec = data[image + at:image + at + 80] + label = int.from_bytes(rec[8:12], 'big') + if int.from_bytes(rec[:4], 'big') != 1 or label >= size: return None # MODWERK_MACHINE_ABI + return dict(order=word >> 24, sig=rec[4:6], lo=rec[6], hi=rec[7], voice=rec[76] > 0, price=rec[77], + label=data[image + label:image + min(size, label + 16)].split(b'\0')[0].decode('latin1')) + + +# A package's ABI 6 header: name at 50 (15 bytes), slots at 39 (1 FX1, 2 FX2, 3 both), module id at 28; no DSP code below ABI 5. +# A machine with a DSP voice (Analog BD) carries DSP code too, but no effect slot: it is placed as a machine. def package(path): data = open(path, 'rb').read() abi = int.from_bytes(data[4:6], 'big') if data[:4] != b'MWRM' or abi < 6: raise SystemExit(path + ': not an ABI 6 runtime module') return dict(path=path, name=data[50:65].split(b'\0')[0].decode('latin1'), slots=data[39], dsp=int.from_bytes(data[32:36], 'big') > 0, - sha256=hashlib.sha256(data).hexdigest()) + module=int.from_bytes(data[28:32], 'big'), machine=machine(data), sha256=hashlib.sha256(data).hexdigest()) + + +def effect(p): return p['dsp'] and not p['machine'] + + +def published_machines(): + """Module id -> machine of every package this checkout publishes: the rows of machines installed beside the run's.""" + found = {} + for path in glob.glob(str(ROOT / 'public/octatrack-modules/*/*.mwrm')): + try: data = pathlib.Path(path).read_bytes() + except OSError: continue + m = data[:4] == b'MWRM' and int.from_bytes(data[4:6], 'big') in HEADERS and machine(data) + if m: found[int.from_bytes(data[28:32], 'big')] = m + return found NOT_COVERED = ('listening to the sound', 'the power cycle and what survives it', 'MIDI, scenes and recording', @@ -43,12 +83,20 @@ def testing_entry(result, day, title='Qualification run', command='device:qualif lines += ['- ' + note for note in notes] if result.get('selftest'): lines.append('- Self-test with the package installed: ' + result['selftest']) for m in result['modules']: + if m.get('machine'): + alone = ', '.join('%s %s' % (track, 'refused' if r == 'refused' else 'core peak %d per mille, CPU %d per mille, its render %s' % ( + r['core1_peak'] if track == 'T1' else r['core0_peak'], r['cpu'], 'not read' if r.get('render') is None else '%.1f %% of a frame' % r['render'])) + for track, r in m.items() if track in ('T1', 'T5')) + lines.append('- %s (machine) alone, playing: %s' % (m['name'], alone)) + continue alone = ', '.join('%s %s' % (track, 'refused' if r == 'refused' else 'peak %d per mille of a frame, admitted in %d ms' % ( r['core1_peak'] if track == 'T1' else r['core0_peak'], r['admit_ms'])) for track, r in m.items() if track in ('T1', 'T5')) lines.append('- %s on %s alone: %s' % (m['name'], m['slot'], alone)) if result.get('together'): g = result['together'] - lines.append('- All at once, playing (%s): CPU %d, T1-4 peak %d, T5-8 peak %d per mille' % (', '.join(n or 'refused' for n in g['placed']), g['cpu'], g['core1_peak'], g['core0_peak'])) + what = '; '.join(filter(None, [', '.join(n or 'refused' for n in g['placed']), + g.get('machines') and 'machines T1-T8: ' + ', '.join(n or 'refused' for n in g['machines'])])) + lines.append('- All at once, playing (%s): CPU %d, T1-4 peak %d, T5-8 peak %d per mille' % (what, g['cpu'], g['core1_peak'], g['core0_peak'])) if result.get('parts'): lines.append('- Part switches: %d of %d ran their own effects within 3 s' % (sum(n > 0 for n in result['parts']), len(result['parts']))) if result.get('soak'): lines.append('- Soak: %d s, highest core peak %d per mille' % (10 * len(result['soak']), max(max(m['core0_peak'], m['core1_peak']) for m in result['soak']))) lines.append('- Crash test: %s' % ('run, the unit came back' if result.get('crash') and not any('crash' in f for f in result['failures']) else 'run' if result.get('crash') else 'not run')) @@ -101,19 +149,79 @@ def chooser_name(names, name): next((n for n in names if sorted(n.split('_')) == words), want)) -def restore_part(part, saved): +REFUSED = os.path.join(os.environ.get('TMPDIR', '/tmp'), 'modwerk-refused-machine-T%d.png') +SIG = 60 # a track's machine in a Part: its type byte at 0x22 + track, its signature (two letters, a version) at 60 + 30 * track + + +class Machines: + """SRC SETUP's machine list: STATIC, FLEX, THRU, NEIGHBOR and PICKUP (a stock track's type byte is its row), then + each installed machine from row 5, lower order first, then module id (HOOKS.md, ot_machines). The installed ones are + the inventory's modules whose package is known: those under test, else the ones this checkout publishes.""" + + def __init__(self, pkgs): + known = published_machines() + known.update({p['module']: p['machine'] for p in pkgs if p['machine']}) + try: installed = {int(m['module'], 16) for m in json.loads(send('inventory').strip().splitlines()[-1])} + except (ValueError, TypeError, KeyError, IndexError, AttributeError): installed = set() # a base without INVENTORY + installed |= {p['module'] for p in pkgs} + self.rows = [known[m] for m in sorted((m for m in installed if m in known), key=lambda m: (known[m]['order'], m))] + self.unknown = sorted('%08x' % m for m in installed if m not in known and m not in {p['module'] for p in pkgs}) + + def row_of(self, part, track): + """The row of what `part` (a Part's bytes) names on `track`: its machine's, else its stock type.""" + kind, sig = part[0x22 + track], part[SIG + 30 * track:SIG + 30 * track + 3] + if kind <= 1: + for k, m in enumerate(self.rows): + if sig[:2] == m['sig'] and m['lo'] <= sig[2] <= m['hi']: return 5 + k + return kind + + def pick(self, track, row): + """Track `track` (0-7) to `row` through SRC SETUP: the list clamps at STATIC, so UP past every row, then DOWN. NO + closes the list, and with it a CPU FULL or DSP FULL box. Returns the row the working Part then names on the track.""" + send('NO w300 T%d w200 FUNC+SRC w300 UP*%d w100 %sYES w300' % (track + 1, 6 + len(self.rows), 'DOWN*%d w100 ' % row if row else '')) + now = self.row_of(part_copy(mem(PART, 1)[0]), track) + if now != row and row >= 5: send('png:' + REFUSED % (track + 1)) # the box says why, until NO clears it + send('NO w300') + return now + + def place(self, track, m): + """`m`'s row on `track`; RuntimeError when the base refused it (the track keeps what it had) or the row was another + machine's.""" + row = 5 + next(k for k, r in enumerate(self.rows) if r is m) + before = self.row_of(part_copy(mem(PART, 1)[0]), track) + now = self.pick(track, row) + if now == row: return + if now != before: + raise RuntimeError('row %d of the machine list was %s, not %s: an installed machine this run has no package for (%s)' + % (row, self.rows[now - 5]['label'] if now >= 5 else 'a stock machine', m['label'], ', '.join(self.unknown) or 'none listed')) + raise RuntimeError('%s refused on T%d (CPU FULL, DSP FULL or the machine\'s own admission; its screen: %s)' + % (m['label'], track + 1, REFUSED % (track + 1))) + + +def restore_part(part, saved, machines=None): """The Part as `saved` again, in both copies. RELOAD first; a Part that was never saved refuses it (SAVE PART FIRST!, nothing changes), so then each slot whose effect differs gets the saved one picked back by name, which brings its - default knobs back: enough for a Part that holds defaults (a cleared one). True when both copies equal `saved`.""" + default knobs back, and with `machines` (a Machines) each track whose machine differs gets the saved one's row: enough + for a Part that holds defaults (a cleared one). True when both copies equal `saved`.""" send('reload') if part_copy(part) != saved: send('NO w200') # the SAVE PART FIRST! message work = part_copy(part) for i in range(16): if work[i] != saved[i]: send('pick:T%d:FX%d:%s' % (i % 8 + 1, i // 8 + 1, fx_name(i // 8 + 1, saved[i]))) + for t in range(8 if machines else 0): + if machines.row_of(work, t) != machines.row_of(saved, t): machines.pick(t, machines.row_of(saved, t)) return part_copy(part) == saved and part_copy(part, saved=True) == saved +def renders(): + """The `cpu` step's guarded renders, the longest of each track since the last read, in percent of a frame (both passes).""" + try: reply = send('cpu') + except RuntimeError: return None # a base without the CPU budget + found = dict(re.findall(r'T([1-8]) ([\d.]+)', reply.split('guarded renders', 1)[-1])) + return [float(found.get(str(t + 1), 0)) for t in range(8)] + + def running(failures, what): # frames advance: the DSPs are alive a = frames(); send('w300'); b = frames() if a == b: failures.append('frames stopped (%s)' % what) @@ -152,6 +260,33 @@ def selftest_reading(failures): return line +def machine_alone(machines, m, failures): + """Machine `m` alone on T1 (core 1) and T5 (core 0), playing: the load meters and its track's longest render against + its CPU price (a DSP voice that names none has none), then the track's own machine back.""" + entry = dict(name=m['label'], slot='SRC', machine=True) + price = m['price'] or (0 if m['voice'] else CPU_DEFAULT) + for track in (1, 5): + back = machines.row_of(part_copy(mem(PART, 1)[0]), track - 1) + try: + machines.place(track - 1, m) + renders() # from now on + send('PLAY w1000') + reading = meters(2) + took = renders() + send('STOP w500') + reading['render'] = took and took[track - 1] + entry['T%d' % track] = reading + log(' %s on T%d:' % (m['label'], track), reading) + if price and took and took[track - 1] > price: + failures.append('%s rendered %.1f %% of a frame on T%d, over %s of %d %%: measure its price on the unit and ' + 'declare it (docs/MODULE_PERFORMANCE.md)' % (m['label'], took[track - 1], track, + 'its CPU price' if m['price'] else 'the base\'s default price', price)) + except RuntimeError as e: + send('STOP w300'); failures.append(str(e)); entry['T%d' % track] = 'refused' + if machines.pick(track - 1, back) != back: failures.append('T%d did not get its own machine back (row %d)' % (track, back)) + return entry + + def run(args, pkgs, install, uninstall, selftest=False, inventory=False): """The run on the unit between `install(pkgs)` and `uninstall(pkgs, failures)`: device:qualify Keeps both, device:test holds a trial and rolls it back (scripts/octatrack-test.py). Returns the result with its failures.""" @@ -165,13 +300,16 @@ def run(args, pkgs, install, uninstall, selftest=False, inventory=False): start_part, (start_bank, start_pattern) = mem(PART, 1)[0], mem(0x800065bd, 2) live = mem(0x80000ec4, 16) # what each track runs now: FX1 T1-8, then FX2 names = [line[4:16].strip() for line in send('ui').splitlines()[:8]], [line[17:].strip() for line in send('ui').splitlines()[:8]] + machines = None try: install(pkgs) listed = {1: chooser_names(1), 2: chooser_names(2)} - for p in pkgs: p['name'] = chooser_name(listed[2 if p['slots'] & 2 else 1], p['name']) + for p in pkgs: p['name'] = p['machine']['label'] if p['machine'] else chooser_name(listed[2 if p['slots'] & 2 else 1], p['name']) + if any(p['machine'] for p in pkgs): machines = Machines(pkgs) if selftest: result['selftest'] = selftest_reading(failures) for p in pkgs: - if not p['dsp']: continue + if p['machine']: result['modules'].append(machine_alone(machines, p['machine'], failures)) + if not effect(p): continue slot = 2 if p['slots'] & 2 else 1 entry = dict(name=p['name'], slot='FX%d' % slot) for track in (1, 5): @@ -185,25 +323,31 @@ def run(args, pkgs, install, uninstall, selftest=False, inventory=False): result['modules'].append(entry) # All at once: one module a track, T1-T8, FX2 where it fits, while the pattern plays. placed = [] - for i, p in enumerate([p for p in pkgs if p['dsp']] * 8): + for i, p in enumerate([p for p in pkgs if effect(p)] * 8): if len(placed) == 8: break slot = 2 if p['slots'] & 2 else 1 try: send('pick:T%d:FX%d:%s' % (len(placed) + 1, slot, p['name'].replace(' ', '_'))); placed.append((len(placed) + 1, slot, p['name'])) except RuntimeError: placed.append((len(placed) + 1, slot, None)) # refused by the ledger: expected once a core is full + # Machines on T1-T8 round the set, beside those effects: refused once the CPU budget or a core is full. + sources, ms = [], [p['machine'] for p in pkgs if p['machine']] + for t in range(8 if ms else 0): + try: machines.place(t, ms[t % len(ms)]); sources.append((t + 1, 'SRC', ms[t % len(ms)]['label'])) + except RuntimeError as e: log(' ', e); sources.append((t + 1, 'SRC', None)) send('PLAY w1000') together = meters(max(2, args.seconds * 2 // 3)) send('STOP w500') together['placed'] = [n for _, _, n in placed] + if sources: together['machines'] = [n for _, _, n in sources] log(' all at once:', together) result['together'] = together for core, peak in (('core1', together['core1_peak']), ('core0', together['core0_peak'])): if peak > PEAK_LIMIT: failures.append('%s peaked at %d per mille with everything at once' % (core, peak)) send('PLAY w1000') - # Each placed module's knobs, main page: from the minimum to the maximum in eight steps. - for track, slot, name in [t for i, t in enumerate(placed) if t[2] and t[2] not in [n for _, _, n in placed[:i]]]: - send('T%d w200 FX%d w300 ' % (track, slot) + ' '.join('enc%s-127 enc%s-127 ' % (e, e) + ' '.join(['enc%s+16 w100' % e] * 8) for e in 'ABCDEF')) + # Each placed module's knobs, main page (a machine's: SRC): from the minimum to the maximum in eight steps. + for track, slot, name in [t for i, t in enumerate(placed + sources) if t[2] and t[2] not in [n for _, _, n in (placed + sources)[:i]]]: + send('T%d w200 %s w300 ' % (track, slot if slot == 'SRC' else 'FX%d' % slot) + ' '.join('enc%s-127 enc%s-127 ' % (e, e) + ' '.join(['enc%s+16 w100' % e] * 8) for e in 'ABCDEF')) running(failures, 'sweeping %s on T%d' % (name, track)) # The four Parts, three times round: each switch done (the part step waits) and its effects running. result['parts'] = [] @@ -236,7 +380,7 @@ def run(args, pkgs, install, uninstall, selftest=False, inventory=False): finally: send('STOP w300') if mem(PART, 1)[0] != start_part: send('part%d' % (start_part + 1)) - if not restore_part(start_part, saved_start): # the Part as saved, every pick and knob of this run undone + if not restore_part(start_part, saved_start, machines): # the Part as saved, every pick and knob of this run undone failures.append('Part %d is not back as saved after the reload (working or saved copy changed)' % (start_part + 1)) if mem(0x800065bd, 2) != bytes([start_bank, start_pattern]): send('BANK w150 TRIG%d w150 TRIG%d w500' % (start_bank + 1, start_pattern + 1)) diff --git a/scripts/octatrack-test.py b/scripts/octatrack-test.py index 4229001ba1..43f59dd8b5 100755 --- a/scripts/octatrack-test.py +++ b/scripts/octatrack-test.py @@ -4,7 +4,8 @@ npm run device:test -- [--seconds 30] [--soak SECONDS] [--hold SECONDS] [--share SOCKET] [--testing-entry FILE] PKG.mwrm -The run of `npm run device:qualify` (the module alone on T1 and T5 with the load meters, then on every track while the +The run of `npm run device:qualify` (the module alone on T1 and T5 with the load meters, an effect in its FX slot and a +machine through SRC SETUP's machine list with its render against its CPU price, then on every track while the pattern plays, its knobs swept, the Parts and a bank switched, an optional soak, the Part restored, the loader, crash and stall counters compared), with these differences: - The package goes in as a trial in RAM through `npm run device -- try` on the session's shared socket, without @@ -15,7 +16,8 @@ outside the run). Start the session with `npm run device -- serve --share /tmp/modwerk-share.sock`, on a development base, transport -stopped, on a bank and Part whose working copy equals its saved one (docs/OCTATRACK_DRIVING.md). --testing-entry FILE +stopped, on a bank and Part whose working copy equals its saved one (docs/OCTATRACK_DRIVING.md); for a machine, one +with trigs on T1 and T5, since it renders only on trigs. --testing-entry FILE writes what the run saw, and what it leaves to the developer at the unit, as a TESTING.md entry. Prints one JSON summary; exit status 1 on a failure. If this process dies mid-trial, unplug USB: the base rolls back what was not kept.""" import argparse, importlib.util, os, pathlib, shutil, signal, subprocess, threading diff --git a/sdk/tests/test_octatrack_qualify.py b/sdk/tests/test_octatrack_qualify.py index 5ec45d3601..7e8e84f653 100644 --- a/sdk/tests/test_octatrack_qualify.py +++ b/sdk/tests/test_octatrack_qualify.py @@ -1,6 +1,9 @@ -"""scripts/octatrack-qualify.py's parts that never touch a unit: the Keep guard and the TESTING.md entry.""" +"""scripts/octatrack-qualify.py's parts that never touch a unit: the Keep guard, machine packages and their rows, and the +TESTING.md entry.""" import importlib.util +import json import pathlib +import struct import sys import unittest from unittest import mock @@ -11,6 +14,75 @@ spec.loader.exec_module(qualify) +def package(module, sig, label, order, abi=8, voice=0, price=0, dsp=0): + """A runtime package contributing one struct modwerk_machine to ot_machines, as sdk/runtime/loader/build.py lays it out.""" + record = struct.pack('>I2sBBI', 1, sig, 1, 2, 80) + bytes(64) + bytes([voice, price, 0, 0]) + image = record + label.encode() + b'\0\0\0' + hooks = [0xffffffff] * (qualify.MACHINES + 1) + hooks[qualify.MACHINES] = order << 24 + head = struct.pack('>IIIIII', len(image), 0, 0, len(hooks), 0, module) + struct.pack('>I', dsp) + head = head.ljust(qualify.HEADERS[abi] - 8, b'\0') + return b'MWRM' + struct.pack('>HH', abi, 0) + head + struct.pack('>%dI' % len(hooks), *hooks) + image + + +def part(rows): + """A Part's bytes naming each track's (type, signature).""" + data = bytearray(6322) + for t, (kind, sig) in enumerate(rows): + data[0x22 + t] = kind + data[qualify.SIG + 30 * t:qualify.SIG + 30 * t + 3] = sig + return bytes(data) + + +class Machines(unittest.TestCase): + def test_it_reads_a_machine_package(self): + m = qualify.machine(package(0x1234, b'TB', 'ACID 303', 25, abi=10, voice=1, dsp=900)) + self.assertEqual(m, dict(order=25, sig=b'TB', lo=1, hi=2, voice=True, price=0, label='ACID 303')) + self.assertIsNone(qualify.machine(package(1, b'TB', 'X', 25)[:qualify.HEADERS[8] + 4 * qualify.MACHINES])) + + def test_published_machines_are_found(self): + found = qualify.published_machines() + self.assertEqual({m['label'] for m in found.values()} >= {'ANALOG BD', 'POLY8', 'FM SYNTH'}, True) + self.assertTrue(all(m['order'] < 255 for m in found.values())) + + def rows(self, pkgs, inventory): + with mock.patch.object(qualify, 'published_machines', return_value={0x700: dict(order=10, sig=b'PL', lo=1, hi=1, label='POLY8')}), \ + mock.patch.object(qualify, 'send', return_value=json.dumps([{'module': '%08x' % m} for m in inventory]) + '\n'): + return qualify.Machines(pkgs) + + def test_rows_follow_order_then_module_id_and_only_installed_ones(self): + tb = dict(module=0x20, machine=dict(order=25, sig=b'TB', lo=1, hi=2, label='ACID 303')) + rows = self.rows([tb], [0x700, 0x99]) + self.assertEqual([m['label'] for m in rows.rows], ['POLY8', 'ACID 303']) + self.assertEqual(rows.unknown, ['00000099']) + self.assertEqual([m['label'] for m in self.rows([tb], []).rows], ['ACID 303']) # POLY8 published, not installed + p = part([(1, b'TB\x02'), (0, b'PL\x01'), (1, b'TB\x03'), (2, b'\0\0\0'), (4, b'\0\0\0'), (1, b'\0\0\0'), (0, b'\0\0\0'), (3, b'\0\0\0')]) + self.assertEqual([rows.row_of(p, t) for t in range(8)], [6, 5, 1, 2, 4, 1, 0, 3]) # TB 3 is past its versions: FLEX + + def test_a_refusal_and_a_wrong_row_are_told_apart(self): + tb = dict(module=0x20, machine=dict(order=25, sig=b'TB', lo=1, hi=2, label='ACID 303')) + rows = self.rows([tb], [0x700]) + sent, parts = [], [part([(1, b'\0\0\0')] * 8)] * 2 + with mock.patch.object(qualify, 'send', side_effect=lambda s: sent.append(s) or ''), \ + mock.patch.object(qualify, 'mem', return_value=b'\0'), mock.patch.object(qualify, 'part_copy', side_effect=lambda *a, **k: parts.pop(0)): + with self.assertRaisesRegex(RuntimeError, 'ACID 303 refused on T3'): rows.place(2, tb['machine']) + self.assertIn('T3 w200 FUNC+SRC w300 UP*8 w100 DOWN*6 w100 YES', sent[0]) + self.assertEqual(sent[-1], 'NO w300') + parts = [part([(1, b'\0\0\0')] * 8), part([(0, b'PL\x01')] * 8)] + with mock.patch.object(qualify, 'send', return_value=''), mock.patch.object(qualify, 'mem', return_value=b'\0'), \ + mock.patch.object(qualify, 'part_copy', side_effect=lambda *a, **k: parts.pop(0)): + with self.assertRaisesRegex(RuntimeError, 'row 6 of the machine list was POLY8, not ACID 303'): rows.place(0, tb['machine']) + + def test_the_entry_names_a_machine_and_its_render(self): + reading = dict(cpu=520, core1=300, core1_peak=610, core0=0, core0_peak=0, render=9.5) + result = dict(args=['x.mwrm'], crash=False, failures=[], packages=[], + modules=[dict(name='ACID 303', slot='SRC', machine=True, T1=reading, T5='refused')], + together=dict(reading, placed=[], machines=['ACID 303', None])) + entry = qualify.testing_entry(result, '2026-11-17') + self.assertIn('ACID 303 (machine) alone, playing: T1 core peak 610 per mille, CPU 520 per mille, its render 9.5 % of a frame, T5 refused', entry) + self.assertIn('All at once, playing (machines T1-T8: ACID 303, refused)', entry) + + class Qualify(unittest.TestCase): def test_it_starts_only_once_the_keeps_are_acknowledged(self): with mock.patch.object(sys, 'argv', ['octatrack-qualify.py', 'x.mwrm']), mock.patch.object(qualify, 'send', side_effect=AssertionError('reached the unit')): From 00caabb0bb82a535470a657ab5a82e9538cc0e17 Mon Sep 17 00:00:00 2001 From: repeat98 Date: Tue, 17 Nov 2026 21:47:50 +0100 Subject: [PATCH 027/415] Improvement: device:price writes the measured CPU price, and the checks recompute it npm run device:price -- --write --base ID --scene TEXT writes a cleanly measured module's resources.cpuPrice itself, keeps the readings in its evidence/cpu-price.json and takes it off the pending list. modules:check and module:doctor recompute a price from that file and refuse one that differs, so a measured price is never typed. It refuses a machine (priced on a playing track), another version than the manifest's, an unclean run, and an effect without a reading on a slot. A .mwrm of a published effect now takes the effect's slots and name from its catalogue row, so it is measured on a slot too. Co-Authored-By: Claude Opus 5.5 --- .../2026-11-17-device-price-writes-price.md | 1 + docs/MODULE_PERFORMANCE.md | 2 +- docs/OCTATRACK_DRIVING.md | 2 +- scripts/module-cpu-price.mjs | 12 ++++- scripts/module-cpu-price.test.mjs | 12 ++++- scripts/octatrack-price.mjs | 46 ++++++++++++++++--- scripts/octatrack-price.test.mjs | 31 ++++++++++++- 7 files changed, 94 insertions(+), 12 deletions(-) create mode 100644 changelog/2026-11-17-device-price-writes-price.md diff --git a/changelog/2026-11-17-device-price-writes-price.md b/changelog/2026-11-17-device-price-writes-price.md new file mode 100644 index 0000000000..9a7552b25c --- /dev/null +++ b/changelog/2026-11-17-device-price-writes-price.md @@ -0,0 +1 @@ +SDK: `npm run device:price -- --write --base ID --scene TEXT ` now writes a module's measured CPU price into its manifest itself (`resources.cpuPrice`), keeps the readings in the module's `evidence/cpu-price.json` and takes the module off the pending list. `modules:check`, so CI and `pr:ready`, and `module:doctor` recompute a price from those readings and refuse one that differs, so a measured price is never typed by hand. Prices written by hand before keep their TESTING.md source. A `.mwrm` build of a published effect is now measured on a slot as well. A machine is still priced on a playing track (`npm run device -- do`). diff --git a/docs/MODULE_PERFORMANCE.md b/docs/MODULE_PERFORMANCE.md index 3fbfa0fb2d..9464797215 100644 --- a/docs/MODULE_PERFORMANCE.md +++ b/docs/MODULE_PERFORMANCE.md @@ -14,7 +14,7 @@ New FX should aim for DSP cost in the **same ballpark as stock SPRING REV at its **A module that runs only on a key press.** ColdFire code with no MIDI path and no work in the frame interrupt (a save, a slice or a lock applied when a key is pressed) runs in the UI task, outside the audio frame. Its record (`template key`) needs no static bound, no stock benchmark and no flood. The dearest press, measured as executed instructions in `ot_emu` or timed on the unit, must fit 26,600,000 cycles (100 ms at 266 MHz, a responsiveness target), and that press, repeated at least 20 times while the sequencer plays with a STOP and a Part change between, must not hang it. `module:doctor` refuses this record for a MIDI or machine module (owner, 5 November 2026). -**Every module names its CPU price** (owner, 16 November 2026): `resources.cpuPrice` in `octamod.module.json`, as `{"value", "unit": "percent-of-frame", "measure", "tool", "date", "conditions", "source"}`, measured on a unit. A machine's `measure` is `machine-render`, a whole percent read with `npm run device -- do` and `guard` (below), and its descriptor's `reserved[0]` carries the same number (a ported machine's comes from `"cpuPrice"` in its `machine-ports.json` entry). Every other module's is `frame-interrupt`, the share `npm run device:price -- ` reports, to a tenth of a point; the base reads no effect or hook price yet, so for those it is a declaration the next base can admit by. `conditions` names the model, the base, what played and for how long, and `source` the file holding the run's output (TESTING.md). `modules:check` (so CI and `pr:ready`) and `module:doctor` refuse a module without one, or a machine whose two numbers differ. The modules listed before 17 November 2026 wait on `sdk/module-cpu-prices-pending.json` until measured; the list only shrinks, and a module that names its price deletes its line in the same pull request. A ported machine's descriptor is generated by `machine_ports.py` from `"cpuPrice"` in its `machine-ports.json` entry. +**Every module names its CPU price** (owner, 16 November 2026): `resources.cpuPrice` in `octamod.module.json`, as `{"value", "unit": "percent-of-frame", "measure", "tool", "date", "conditions", "source"}`, measured on a unit. A machine's `measure` is `machine-render`, a whole percent read with `npm run device -- do` and `guard` (below), and its descriptor's `reserved[0]` carries the same number (a ported machine's comes from `"cpuPrice"` in its `machine-ports.json` entry). Every other module's is `frame-interrupt`, the share `npm run device:price -- ` reports, to a tenth of a point; with `--write --base ID --scene TEXT` the tool writes that price itself, with its readings in `evidence/cpu-price.json`, and the checks recompute the price from them, so it is never typed; the base reads no effect or hook price yet, so for those it is a declaration the next base can admit by. `conditions` names the model, the base, what played and for how long, and `source` the file holding the run's output (TESTING.md). `modules:check` (so CI and `pr:ready`) and `module:doctor` refuse a module without one, or a machine whose two numbers differ. The modules listed before 17 November 2026 wait on `sdk/module-cpu-prices-pending.json` until measured; the list only shrinks, and a module that names its price deletes its line in the same pull request. A ported machine's descriptor is generated by `machine_ports.py` from `"cpuPrice"` in its `machine-ports.json` entry. **A machine that renders on the ColdFire names its CPU price.** The Octatrack base admits a Part's machines against a CPU budget, as it admits effects against the DSP's: a pick past the allowance is refused with a CPU FULL box, and a track past it after a load renders silence, instead of the frame guard dropping renders unannounced. The price is `reserved[0]` of the machine's descriptor (`modwerk_events.h`): what one track of the machine adds to the frame interrupt while it plays, in percent of a frame, rounded up (owner, 17 November 2026: its mean cost, not its worst render; the frame guard covers the peaks, and the base adds prices up against the CPU meter, which is a mean). Measure it on a unit: one track on the machine with a trig on every step and every voice it can sound playing, `npm run device -- do 'PLAY w2500 guard w6000 guard STOP'`, the second `guard` line's "in the frame interrupt"; then the same with that track's trigs removed, and take the difference. On an MKII that day, with default sounds, FM Synth 0.1.3 added 4.6 points and SYNTIZ 0.1.0 11.2, while their longest single renders were 26.6 % and 37.6 % of a frame: priced by the worst render, the fourth FM Synth track was refused although eight played at the load of eight sample tracks. `modwerk_events.h` still says "worst render" until the next base rebuild. A machine that names none is charged the base's default; a DSP voice that names none, nothing. A renderer a module writes into stock's renderer table or a track's slots itself is still refused and guarded: the base checks every renderer at the frame builder's two calls, and a stock track that reaches the module's renderer falls back to stock's own when the frame is full. diff --git a/docs/OCTATRACK_DRIVING.md b/docs/OCTATRACK_DRIVING.md index 1479b980e3..b17ab64893 100644 --- a/docs/OCTATRACK_DRIVING.md +++ b/docs/OCTATRACK_DRIVING.md @@ -156,7 +156,7 @@ error and moves on. macOS `nc -U` hangs up before the reply, so use the script. | `guard`, `guard:MILLE` | the frame guard since the last read: the frame interrupt's longest frame, latest start and share of the CPU, the machine renders it skipped and on which tracks, and its share; `guard:MILLE` sets the share (per mille of a frame, `guard:65535` turns it off) | | `try FILE`, `remove FILE` | install or remove a module package, accepted and kept at once: each one writes the card's set, so on a twin they replace the owner's kept modules (25 October 2026). For a trial that rolls back by itself, use `npm run device -- try FILE --seconds N --socket /tmp/modwerk-share.sock`; `npm run device:test` drives a package through such a trial ([the same run without a Keep](ADD_A_MODULE.md#octatrack-base-and-usb-lifecycle)). The `value` it prints each second is shared by every installed module's tick ([API](OCTATRACK_API.md#core-entry-points)). A table owner (Mute Modes) is not removed while its menu is open: the refusal is 7, `RUNTIME_IN_USE`, whose text speaks of tracks; leave the menus and remove again | | `cpu`, `cpu:PERCENT` | the CPU budget: its allowance, what the Part's machines book and the tracks refused; then each machine track's longest render since the last read, both passes of a frame, in percent of a frame (its peak; a machine's CPU price is its mean cost, [measured with `guard`](MODULE_PERFORMANCE.md)). `cpu:PERCENT` sets the allowance | -| one-shot `npm run device:price -- [--out FILE.json] [ID or FILE.mwrm …]` | what a module costs, measured beside the running session (`serve --share /tmp/modwerk-share.sock`, a development twin): for each USB package, or each `.mwrm` file of an unpublished build, a timed trial, then the frame interrupt's share, the CPU meter and both DSPs while the selected pattern plays, before it, with it installed and used nowhere, and for an effect on one slot of `--slot` (T1) at its defaults (an id only: a `.mwrm` file is named after its file, so the slot step finds no effect and only the at-rest reading comes back, 17 November 2026); `--socket` is the session's socket and `--share` the shared one; the trial is rolled back and the slot's effect picked back. It presses PLAY and STOP itself, so set the scene up first and leave the transport stopped. A machine in use and other settings are not measured. It waits for an upload however long it takes: cutting one short left MODWERK SYNC / RECEIVING MODULES at 57 % on the unit until `npm run device -- recover --socket /tmp/modwerk-share.sock` (14 November 2026). On that day, with four FLEX tracks sounding on an MKII, FM Synth 0.1.2 cost 19.1 points of the frame installed on no track, POLY8 0.3.1 13.5, Repitch 0.2.0 7.9, Euclid 3.0 and every other module under 1 | +| one-shot `npm run device:price -- [--out FILE.json] [ID or FILE.mwrm …]` | what a module costs, measured beside the running session (`serve --share /tmp/modwerk-share.sock`, a development twin): for each USB package, or each `.mwrm` file of an unpublished build, a timed trial, then the frame interrupt's share, the CPU meter and both DSPs while the selected pattern plays, before it, with it installed and used nowhere, and for an effect on one slot of `--slot` (T1) at its defaults (a `.mwrm` file of a published effect, named after its id, takes the effect's slots and name from its catalogue row; one of a new effect gets only the at-rest reading, 17 November 2026); `--socket` is the session's socket and `--share` the shared one; the trial is rolled back and the slot's effect picked back. It presses PLAY and STOP itself, so set the scene up first and leave the transport stopped. A machine in use and other settings are not measured. It waits for an upload however long it takes: cutting one short left MODWERK SYNC / RECEIVING MODULES at 57 % on the unit until `npm run device -- recover --socket /tmp/modwerk-share.sock` (14 November 2026). On that day, with four FLEX tracks sounding on an MKII, FM Synth 0.1.2 cost 19.1 points of the frame installed on no track, POLY8 0.3.1 13.5, Repitch 0.2.0 7.9, Euclid 3.0 and every other module under 1 | | one-shot `npm run device -- lifecycle` | not a read-out: the single-slot loader test. It stages and accepts test modules, and on a base with module sets it stops at "removal empties the slot" and leaves an unnamed module 0 kept on the card, which a power cycle keeps (26 October 2026, MKII, flashed `92a13ff0`). `npm run device -- remove --seconds 3 --accept` takes it out. For the module list: `npm run device -- do inventory` | | `flash DIR` | after `boot DIR`: that base writes its own container (`DIR/NOT_FLASH_CANDIDATE.bin` deciphered) to NOR with stock's routines, verifies it and restarts on it; refuses any other base's. Not yet run on a unit; the owner's call ([traps](OCTATRACK_HARDWARE_TRAPS.md#writing-nor-over-usb)) | | `boot DIR`, `boot DIR 4096` | RAM boot a `build_core.py` output; the session restarts on the new base. `node scripts/octatrack-bootsoak.mjs DIR --socket PATH` repeats it in batches of 15 (about four minutes), logs each boot and stops at the first that does not come back: how often a restart loses USB is known from 20 boots only, which still allows one in seven. From the flashed `usbtest9` on macOS add 4096 (bytes a frame): it times out on the default 4,095-byte frames ([traps](OCTATRACK_HARDWARE_TRAPS.md#usb-and-ep0)) | diff --git a/scripts/module-cpu-price.mjs b/scripts/module-cpu-price.mjs index 5a78da856b..1775d22c29 100644 --- a/scripts/module-cpu-price.mjs +++ b/scripts/module-cpu-price.mjs @@ -12,12 +12,17 @@ export const CPU_PRICE_PENDING_PATH = 'sdk/module-cpu-prices-pending.json' export const CPU_PRICE_PENDING_LISTED_BEFORE = '2026-11-17' export const CPU_PRICE_PENDING_REASON = 'price not yet measured' const PORTS = 'sdk/machines/octatrack/module-adapters' +// device:price --write keeps its readings here, in the module's folder; the checks recompute the price from them. +export const CPU_PRICE_RECORD = 'evidence/cpu-price.json' + +/** The price a device:price reading gives: the larger of what the module added at rest and in use, never below 0. */ +export const measuredPrice = result => Math.max(0, result.atRestAdds.frame, result.inUseAdds?.frame ?? 0) /** How to measure the price of a machine (true) or of any other module (false), for the messages. */ export function cpuPriceHowTo(id, machine) { return machine ? 'measure what one track of it adds to the frame interrupt on a unit with npm run device -- do and guard (a trig on every step, every voice sounding, against the same pattern without those trigs; docs/MODULE_PERFORMANCE.md), then write resources.cpuPrice with "measure": "machine-render" in octamod.module.json and the same percent as reserved[0] of its machine descriptor (docs/MODULE_PERFORMANCE.md)' - : 'measure it on a unit with npm run device:price -- ' + id + ' (the frame interrupt\'s share it adds, installed and, for an effect, on one slot; docs/OCTATRACK_DRIVING.md), then write resources.cpuPrice with "measure": "frame-interrupt" in octamod.module.json (docs/MODULE_PERFORMANCE.md)' + : 'measure it on a unit with npm run device:price -- --write --base ID --scene TEXT ' + id + ' (the frame interrupt\'s share it adds, installed and, for an effect, on one slot; docs/OCTATRACK_DRIVING.md), which writes resources.cpuPrice ("measure": "frame-interrupt") and its readings in ' + CPU_PRICE_RECORD + ' (docs/MODULE_PERFORMANCE.md)' } /** The pending list: Map id -> reason. Throws on a list that is not plain. */ @@ -118,6 +123,11 @@ export function cpuPriceStatus({ root, document, pending, glue = null }) { if (!declared) return { state: 'fail', detail: 'it names no CPU price (resources.cpuPrice)', fix: howTo } if (machine && declared.measure !== 'machine-render') return { state: 'fail', detail: 'it is a machine, so its price is what one playing track adds ("measure": "machine-render"), not ' + declared.measure, fix: howTo } if (!machine && declared.measure !== 'frame-interrupt') return { state: 'fail', detail: 'it is not a machine, so its price is the frame interrupt\'s share ("measure": "frame-interrupt"); only a machine\'s descriptor carries a render price', fix: howTo } + if (declared.source.endsWith('.json')) { // a price device:price wrote: recomputed from its readings, never taken on trust + const record = readJson(resolve(root, 'sdk/octatrack/modules', id, declared.source)) + if (record?.module !== id || !record.result?.atRestAdds) return { state: 'fail', detail: 'its price names ' + declared.source + ' as its source, which holds no device:price reading of ' + id, fix: howTo } + if (measuredPrice(record.result) !== declared.value) return { state: 'fail', detail: 'it names ' + declared.value + ' % of a frame, but the reading in ' + declared.source + ' gives ' + measuredPrice(record.result), fix: 'write the price with npm run device:price -- --write, never by hand' } + } const disagree = descriptors.find(item => item.price !== declared.value) if (disagree) return { state: 'fail', diff --git a/scripts/module-cpu-price.test.mjs b/scripts/module-cpu-price.test.mjs index aab0cf0be7..be0fe51556 100644 --- a/scripts/module-cpu-price.test.mjs +++ b/scripts/module-cpu-price.test.mjs @@ -54,7 +54,17 @@ describe('every Octatrack module names its CPU price', () => { expect(machine).toMatchObject({ state: 'fail', detail: expect.stringContaining('names no CPU price') }) expect(machine.fix).toContain('npm run device -- do') const effect = cpuPriceStatus({ root, document: module('echo', 'FX2'), pending: new Map(), glue: {} }) - expect(effect.fix).toContain('npm run device:price -- echo') + expect(effect.fix).toContain('npm run device:price -- --write --base ID --scene TEXT echo') + }) + + it('recomputes a price device:price wrote from its readings, and refuses one changed by hand', () => { + const reading = { module: 'echo', result: { atRestAdds: { frame: 0.2 }, inUseAdds: { frame: 1.3 } } } + const root = fixture({ 'sdk/octatrack/modules/echo/evidence/cpu-price.json': reading }) + const status = value => cpuPriceStatus({ root, document: module('echo', 'FX2', { ...share(value), source: 'evidence/cpu-price.json' }), pending: new Map(), glue: {} }) + expect(status(1.3).state).toBe('ok') + expect(status(0.5)).toMatchObject({ state: 'fail', detail: expect.stringContaining('the reading in evidence/cpu-price.json gives 1.3') }) + const missing = cpuPriceStatus({ root, document: module('other', 'FX2', { ...share(0), source: 'evidence/cpu-price.json' }), pending: new Map(), glue: {} }) + expect(missing).toMatchObject({ state: 'fail', detail: expect.stringContaining('holds no device:price reading of other') }) }) it('takes a machine whose descriptor carries the price it names, literal or #define', () => { diff --git a/scripts/octatrack-price.mjs b/scripts/octatrack-price.mjs index 46951a575f..da9c007f2f 100644 --- a/scripts/octatrack-price.mjs +++ b/scripts/octatrack-price.mjs @@ -4,6 +4,8 @@ // What a module costs an Octatrack, measured on a unit: the frame interrupt's share, the CPU meter and both DSPs, // before the module, with it installed but used nowhere (at rest), and for an effect on one slot (in use). // npm run device:price -- [--out FILE.json] [--base ID --scene TEXT] [--seconds 8] [--slot T1] ID|FILE.mwrm… (none: every USB package) +// --write (needs --base and --scene): each module measured cleanly gets its price in octamod.module.json (resources.cpuPrice) and +// its readings in evidence/cpu-price.json, and leaves the pending list; modules:check recomputes the price from those readings. // It needs a development twin of the base (the guard request) behind `npm run device -- serve --share // /tmp/modwerk-share.sock`, and the scene is the caller's: select the pattern, leave the transport stopped, and say in // the record which (--scene). The unit takes a module only while stopped, so each reading is PLAY, the reading, STOP. @@ -13,9 +15,10 @@ // with `cpu` on the track; add it when the machine chooser has a step like pick:. import { spawn } from 'node:child_process' import { connect } from 'node:net' -import { existsSync, readFileSync, writeFileSync } from 'node:fs' -import { basename, resolve } from 'node:path' +import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs' +import { basename, dirname, resolve } from 'node:path' import { parseArgs } from 'node:util' +import { CPU_PRICE_PENDING_PATH, CPU_PRICE_RECORD, machineDescriptors, measuredPrice } from './module-cpu-price.mjs' const mean = values => values.reduce((sum, value) => sum + value, 0) / values.length, tenth = value => Math.round(value * 10) / 10 /** One reading from the session's `guard` line and `stats` lines: percent of a frame, percent of the meter, per mille of a DSP. */ @@ -29,14 +32,42 @@ export function reading(text) { /** What the second reading added to the first, in points, one decimal. */ export const added = (before, after) => Object.fromEntries(['frame', 'cpu', 'dsp1to4', 'dsp5to8'].map(key => [key, tenth(after[key] - before[key])])) +/** --write for one module's result: its price into its manifest, its readings beside it, its line off the pending list. What it did. */ +export function writePrice({ root, result, base, scene, seconds, measuredAt }) { + const id = result.id, folder = resolve(root, 'sdk/octatrack/modules', id), manifest = resolve(folder, 'octamod.module.json') + if (!existsSync(manifest)) return 'not written: no sdk/octatrack/modules/' + id + if (result.refused || !result.rolledBack || result.restore || result.inUseError || !result.atRestAdds) return 'not written: the run was not clean' + const text = readFileSync(manifest, 'utf8'), document = JSON.parse(text) + if (document.compatibility?.location === 'Track machine' || machineDescriptors({ root, id }).length) return 'not written: a machine\'s price is what one playing track adds ("machine-render"), read on a track (docs/MODULE_PERFORMANCE.md)' + if (document.compatibility?.effectId != null && !result.inUseAdds) return 'not written: an effect is priced on a slot too, and this run has no reading on one (a new effect\'s .mwrm has no catalogue row that names its slots)' + if (result.version !== 'file' && result.version !== document.version) return 'not written: this measured the published ' + result.version + ' but the manifest is ' + document.version + '; measure the new build\'s .mwrm' + const record = { module: id, version: document.version, base, scene, seconds, measuredAt, result } + mkdirSync(dirname(resolve(folder, CPU_PRICE_RECORD)), { recursive: true }) + writeFileSync(resolve(folder, CPU_PRICE_RECORD), JSON.stringify(record, null, 2) + '\n') + const { before, atRest, inUse } = result + document.resources.cpuPrice = { value: measuredPrice(result), unit: 'percent-of-frame', measure: 'frame-interrupt', tool: 'npm run device:price -- --write', date: measuredAt.slice(0, 10), + conditions: (scene + '; base ' + base + '; ' + seconds + ' s per reading. Frame interrupt ' + before.frame + ' % before, ' + atRest.frame + ' % installed and used nowhere' + (inUse ? ', ' + inUse.frame + ' % on ' + result.inUseOn : '') + + '; CPU meter ' + before.cpu + ' % before, ' + atRest.cpu + ' % at rest' + (inUse ? ', ' + inUse.cpu + ' % in use' : '') + '.').slice(0, 1000), + source: CPU_PRICE_RECORD } + // shortcut: a hand-formatted manifest (an object on one line) comes back as plain two-space JSON; keep it if review asks. + let json = JSON.stringify(document, null, 2) + '\n' + if (/\\u[0-9a-fA-F]{4}/.test(text)) json = json.replace(/[\u007f-\uffff]/g, c => '\\u' + c.charCodeAt(0).toString(16).padStart(4, '0')) // the file's own escaping + writeFileSync(manifest, json) + const pendingPath = resolve(root, CPU_PRICE_PENDING_PATH), pending = existsSync(pendingPath) ? JSON.parse(readFileSync(pendingPath, 'utf8')) : null + const wasPending = Boolean(pending?.pending?.[id]) + if (wasPending) { delete pending.pending[id]; writeFileSync(pendingPath, JSON.stringify(pending, null, 1) + '\n') } + return 'wrote ' + document.resources.cpuPrice.value + ' % of a frame into octamod.module.json and its readings into ' + CPU_PRICE_RECORD + (wasPending ? ', and took it off the pending list' : '') +} + if (import.meta.filename === process.argv[1]) { const { values: args, positionals } = parseArgs({ allowPositionals: true, options: { out: { type: 'string' }, seconds: { type: 'string', default: '8' }, - slot: { type: 'string', default: 'T1' }, base: { type: 'string' }, scene: { type: 'string' }, socket: { type: 'string', default: '/tmp/modwerk-dev.sock' }, share: { type: 'string', default: '/tmp/modwerk-share.sock' } } }) - const root = resolve(import.meta.dirname, '..'), seconds = Number(args.seconds) + slot: { type: 'string', default: 'T1' }, base: { type: 'string' }, scene: { type: 'string' }, write: { type: 'boolean' }, socket: { type: 'string', default: '/tmp/modwerk-dev.sock' }, share: { type: 'string', default: '/tmp/modwerk-share.sock' } } }) + const root = resolve(import.meta.dirname, '..'), seconds = Number(args.seconds), measuredAt = new Date().toISOString() + if (args.write && !(args.base && args.scene)) throw new Error('--write needs --base and --scene: the price names the base and what played (model, project, pattern)') const catalogue = JSON.parse(readFileSync(resolve(root, 'src/engine/assets/octatrack-module-packages.json'), 'utf8')).packages // An ID is a catalogue row; a path to a .mwrm is that file, for a build that is not published yet. In the order given. const files = positionals.filter(name => name.endsWith('.mwrm')), ids = positionals.filter(name => !name.endsWith('.mwrm')) - const chosen = positionals.length ? positionals.map(name => name.endsWith('.mwrm') ? { id: basename(name, '.mwrm'), version: 'file', file: resolve(name) } : catalogue.find(row => row.id === name)).filter(Boolean) + const chosen = positionals.length ? positionals.map(name => name.endsWith('.mwrm') ? { ...catalogue.find(row => row.id === basename(name, '.mwrm')), id: basename(name, '.mwrm'), version: 'file', file: resolve(name) } : catalogue.find(row => row.id === name)).filter(Boolean) : catalogue.filter(row => !row.requiredBase) const unknown = ids.filter(id => !catalogue.some(row => row.id === id)).concat(files.filter(file => !existsSync(file))) if (unknown.length) throw new Error('No USB package for ' + unknown.join(', ')) @@ -80,7 +111,7 @@ if (import.meta.filename === process.argv[1]) { const was = (await slotNames())[Number(fx)] if (!was) throw new Error('could not read what ' + args.slot + ' FX' + fx + ' runs, so nothing was picked') await send(`pick:${args.slot}:FX${fx}:${row.name.replaceAll(' ', '_')}`) - result.inUse = await measure(); result.inUseAdds = added(before, result.inUse) + result.inUse = await measure(); result.inUseAdds = added(before, result.inUse); result.inUseOn = args.slot + ' FX' + fx const back = await send(`pick:${args.slot}:FX${fx}:${was.replaceAll(' ', '_')}`) if (/error|refus|timed out/i.test(back)) result.restore = 'picking ' + was + ' back: ' + back.trim().slice(0, 120) } catch (error) { result.inUseError = error.message.slice(0, 200) } @@ -96,5 +127,6 @@ if (import.meta.filename === process.argv[1]) { (result.restore ? '; ' + result.restore : '') + (result.rolledBack ? '' : '; THE TRIAL DID NOT ROLL BACK: stop and look'))) if (!result.rolledBack || result.restore) break // never go on over a unit left in a state nobody chose } - if (args.out) writeFileSync(args.out, JSON.stringify({ base: args.base, scene: args.scene, seconds, slot: args.slot, measuredAt: new Date().toISOString(), results }, null, 1) + '\n') + if (args.out) writeFileSync(args.out, JSON.stringify({ base: args.base, scene: args.scene, seconds, slot: args.slot, measuredAt, results }, null, 1) + '\n') + if (args.write) for (const result of results) console.log(result.id.padEnd(28) + writePrice({ root, result, base: args.base, scene: args.scene, seconds, measuredAt })) } diff --git a/scripts/octatrack-price.test.mjs b/scripts/octatrack-price.test.mjs index b942ccbe62..9e9c345b9c 100644 --- a/scripts/octatrack-price.test.mjs +++ b/scripts/octatrack-price.test.mjs @@ -1,7 +1,7 @@ // SPDX-License-Identifier: Elastic-2.0 // Copyright (c) 2026 Jannik Aßfalg (repeat98) import { expect, it } from 'vitest' -import { added, reading } from './octatrack-price.mjs' +import { added, reading, writePrice } from './octatrack-price.mjs' it('reads the guard window and the mean of the meter readings, and what a module added', () => { const guard = share => `frame max 112.2 %, latest start 12.2 %, in the frame interrupt ${share} % over 22000 frames, skipped 2 on T1 T3, share 80.0 %\n` @@ -11,3 +11,32 @@ it('reads the guard window and the mean of the meter readings, and what a module expect(added(before, after)).toEqual({ frame: 23.4, cpu: 10, dsp1to4: 9.9, dsp5to8: 0 }) expect(() => reading('stats cpu 1 T1-4 1/1 T5-8 1/1')).toThrow('No guard') }) + +it('writes a clean reading as the module\'s price, its readings beside it, and takes it off the pending list', async () => { + const { mkdtempSync, mkdirSync, readFileSync, rmSync, writeFileSync } = await import('node:fs') + const { join } = await import('node:path'), { tmpdir } = await import('node:os') + const { parseModuleCpuPrice } = await import('../src/catalog/module-contract.ts') + const root = mkdtempSync(join(tmpdir(), 'price-write-')) + try { + mkdirSync(join(root, 'sdk/octatrack/modules/echo'), { recursive: true }) + const manifest = join(root, 'sdk/octatrack/modules/echo/octamod.module.json') + writeFileSync(manifest, '{\n "id": "echo",\n "version": "0.2.0",\n "author": {\n "name": "Jannik A\\u00dffalg"\n },\n "compatibility": {\n "location": "FX2"\n },\n "resources": {\n "recorded": "x"\n }\n}\n') + writeFileSync(join(root, 'sdk/module-cpu-prices-pending.json'), JSON.stringify({ about: 'a', pending: { echo: 'price not yet measured', other: 'price not yet measured' } }, null, 1) + '\n') + const at = (frame, cpu) => ({ frame, cpu }), adds = frame => ({ frame, cpu: 0, dsp1to4: 0, dsp5to8: 0 }) + const result = { id: 'echo', version: 'file', before: at(30.1, 50), atRest: at(30.3, 50.2), atRestAdds: adds(0.2), inUse: at(31.4, 51), inUseAdds: adds(1.3), inUseOn: 'T1 FX2', rolledBack: true } + const write = changes => writePrice({ root, result: { ...result, ...changes }, base: '945cc074', scene: 'MKII, bank C pattern C01', seconds: 8, measuredAt: '2026-11-17T20:00:00.000Z' }) + expect(write({ refused: 'NO ROOM' })).toMatch(/not clean/) + expect(write({ version: '0.1.0' })).toMatch(/published 0.1.0 but the manifest is 0.2.0/) + writeFileSync(manifest, readFileSync(manifest, 'utf8').replace('"FX2"', '"FX2",\n "effectId": 15')) + expect(write({ inUse: undefined, inUseAdds: undefined })).toMatch(/priced on a slot too/) + expect(write({})).toMatch(/1.3 % of a frame.*pending list/) + const text = readFileSync(manifest, 'utf8'), price = JSON.parse(text).resources.cpuPrice + expect(text).toContain('A\\u00dffalg') + expect(parseModuleCpuPrice(price)).toMatchObject({ value: 1.3, measure: 'frame-interrupt', date: '2026-11-17', source: 'evidence/cpu-price.json' }) + expect(price.conditions).toBe('MKII, bank C pattern C01; base 945cc074; 8 s per reading. Frame interrupt 30.1 % before, 30.3 % installed and used nowhere, 31.4 % on T1 FX2; CPU meter 50 % before, 50.2 % at rest, 51 % in use.') + expect(JSON.parse(readFileSync(join(root, 'sdk/octatrack/modules/echo/evidence/cpu-price.json'), 'utf8'))).toMatchObject({ module: 'echo', version: '0.2.0', base: '945cc074', result: { inUseAdds: { frame: 1.3 } } }) + expect(JSON.parse(readFileSync(join(root, 'sdk/module-cpu-prices-pending.json'), 'utf8')).pending).toEqual({ other: 'price not yet measured' }) + writeFileSync(manifest, JSON.stringify({ id: 'echo', version: '0.2.0', compatibility: { location: 'Track machine' }, resources: {} })) + expect(write({})).toMatch(/machine-render/) + } finally { rmSync(root, { recursive: true, force: true }) } +}) From ea4b0cebf378bcf924eef52a3f18989f60baac58 Mon Sep 17 00:00:00 2001 From: Zac-Kyoti <273702472+Zac-Kyoti@users.noreply.github.com> Date: Tue, 17 Nov 2026 13:57:24 -0800 Subject: [PATCH 028/415] Direct Jump Kyoti 0.2.0: the author's MKI run (all 13 checks passed); assets rebuilt after merging origin/main Hardware: Zac Kyoti flashed the native card image of this module alone (OCTATRACK_MW_DJK73B.bin, MAIN OS a7074bfd..., source 20d216e1b) on his MKI on 17 November 2026 and reported all 13 checklist items passed. evidence/hardware.md, tests.qualification.hardware (functional, reported), hardwareStatus, the performance record's hardware note, README, TESTING and the changelog's known-issue line say so; the USB package and an MKII did not run this version. module-documents.json regenerated (modules:generate). Assets: the isolated build at the merge (bf0aa2577) regenerated the committed packages; Tape Echo's and Euclid's standalone recipes re-pinned. The Direct Jump package is unchanged (ed3ba88a...); octatrack:module-packages --check and --check --stock: 38 identical. Co-Authored-By: Claude Opus 5.5 --- .../module-adapters/standalone-recipes.json | 16 +-- .../modules/direct-jump-kyoti/README.md | 4 +- .../modules/direct-jump-kyoti/TESTING.md | 4 +- .../direct-jump-kyoti/evidence/hardware.md | 26 +++- .../evidence/performance.json | 4 +- .../direct-jump-kyoti/octamod.module.json | 29 ++-- src/catalog/module-documents.json | 129 +++++++++--------- .../module-changelogs/direct-jump-kyoti.json | 2 +- src/engine/assets/bootstrap-package.json | 4 +- src/engine/assets/coldfire-packages.json | 4 +- src/engine/assets/descriptor-recipes.json | 4 +- src/engine/assets/dsp-packages.json | 4 +- src/engine/assets/menu-recipes.json | 4 +- src/engine/assets/module-build.json | 30 ++-- src/engine/assets/platform-writes.json | 4 +- src/engine/assets/requested-packages.json | 48 +++++-- src/engine/assets/resident-dsp.json | 4 +- src/engine/assets/rom-packages.json | 4 +- src/engine/assets/usb-audio-packages.json | 4 +- src/engine/assets/utility-packages.json | 4 +- 20 files changed, 187 insertions(+), 145 deletions(-) diff --git a/sdk/machines/octatrack/module-adapters/standalone-recipes.json b/sdk/machines/octatrack/module-adapters/standalone-recipes.json index f6b025057d..e48c063719 100644 --- a/sdk/machines/octatrack/module-adapters/standalone-recipes.json +++ b/sdk/machines/octatrack/module-adapters/standalone-recipes.json @@ -205,10 +205,10 @@ "src/engine/coldfire-elf.ts": "319ca0d835d1b0c602c8f4b06990016d0ebfe246cedbfc596cea3cc7adfe3cd2", "src/engine/module-build.ts": "dcd8397b8cecf6fab61debd9aa2f86f612da0ca6ccf363c79d56033bc170b993", "src/catalog/modules.ts": "cbc65bb6100bad0164682c9bde9e741076ba49e30e01e6bc96ff3115a1f01568", - "src/engine/assets/dsp-packages.json": "697122935477ff971c9dd228f4b74d2a2d3f44d743ceb466e5e0eb4ef78dec67", - "src/engine/assets/descriptor-recipes.json": "f35d7bbdcd8c43a4e0be33ff2a2cf4a12cee41f5b1be7676cfabc0654d36d3a6", - "src/engine/assets/menu-recipes.json": "884b14003e0f2976b0da6511c92c6bc8b78eadb824d4dbfc0635cf706f741934", - "src/engine/assets/rom-packages.json": "0cecce42c0b8fa3753799a8c5b3a9e80a436e1f43307e6b13d1ff8a924794b9d", + "src/engine/assets/dsp-packages.json": "5079615b1c866fab08450bbe111111f1a7bf75072cfebd4d46b0acfdb237c5f9", + "src/engine/assets/descriptor-recipes.json": "0a929c6e8737e3b9a8f770d72c3879b394bd771551eb4c8adeb97addff1c5812", + "src/engine/assets/menu-recipes.json": "4bc7034f18110ee994f69c82079d4900209b6a53e9ede345166175596073ecec", + "src/engine/assets/rom-packages.json": "f92398103a614796984995818c72f2ffcf95bedac7f97b2612fe72d690e3517a", "upstream/elekloader/link.py": "5d31157ccbe62807ff9f05fd47e1e55b54be0475ab53565e6607a56566603ba8", "upstream/elekloader/dsp.py": "9486d64eecee023670b716f6ae854996da02ee7c1a0efd5361cd963c756dbc69", "upstream/elekloader/patch.py": "77c0a74bf4b0ff8c5525d4c4b1bc42af765314a4601c0510577817a7487d8666", @@ -405,10 +405,10 @@ "src/engine/coldfire-elf.ts": "319ca0d835d1b0c602c8f4b06990016d0ebfe246cedbfc596cea3cc7adfe3cd2", "src/engine/module-build.ts": "dcd8397b8cecf6fab61debd9aa2f86f612da0ca6ccf363c79d56033bc170b993", "src/catalog/modules.ts": "cbc65bb6100bad0164682c9bde9e741076ba49e30e01e6bc96ff3115a1f01568", - "src/engine/assets/dsp-packages.json": "697122935477ff971c9dd228f4b74d2a2d3f44d743ceb466e5e0eb4ef78dec67", - "src/engine/assets/descriptor-recipes.json": "f35d7bbdcd8c43a4e0be33ff2a2cf4a12cee41f5b1be7676cfabc0654d36d3a6", - "src/engine/assets/menu-recipes.json": "884b14003e0f2976b0da6511c92c6bc8b78eadb824d4dbfc0635cf706f741934", - "src/engine/assets/rom-packages.json": "0cecce42c0b8fa3753799a8c5b3a9e80a436e1f43307e6b13d1ff8a924794b9d", + "src/engine/assets/dsp-packages.json": "5079615b1c866fab08450bbe111111f1a7bf75072cfebd4d46b0acfdb237c5f9", + "src/engine/assets/descriptor-recipes.json": "0a929c6e8737e3b9a8f770d72c3879b394bd771551eb4c8adeb97addff1c5812", + "src/engine/assets/menu-recipes.json": "4bc7034f18110ee994f69c82079d4900209b6a53e9ede345166175596073ecec", + "src/engine/assets/rom-packages.json": "f92398103a614796984995818c72f2ffcf95bedac7f97b2612fe72d690e3517a", "upstream/elekloader/link.py": "5d31157ccbe62807ff9f05fd47e1e55b54be0475ab53565e6607a56566603ba8", "upstream/elekloader/dsp.py": "9486d64eecee023670b716f6ae854996da02ee7c1a0efd5361cd963c756dbc69", "upstream/elekloader/patch.py": "77c0a74bf4b0ff8c5525d4c4b1bc42af765314a4601c0510577817a7487d8666", diff --git a/sdk/octatrack/modules/direct-jump-kyoti/README.md b/sdk/octatrack/modules/direct-jump-kyoti/README.md index 01546df37e..fc678f013f 100644 --- a/sdk/octatrack/modules/direct-jump-kyoti/README.md +++ b/sdk/octatrack/modules/direct-jump-kyoti/README.md @@ -8,7 +8,7 @@ Version `0.2.0-experimental`, for OS 1.40C, over USB on the Modwerk base for bet **What 0.2.0 changes.** Trig conditions carry on across a jump instead of starting again (his V7.0.2). A jump lands one tick before the step it starts on, so the new pattern's first step is never late (V7.1), and a cue made in the playing pattern's last step is no longer taken by stock's own pattern change (V7.1.1). Each track's own Part settings reach the engine with that track's first sounding trig of the new pattern (V7.2). With SILENCE TRACKS on, the tracks a jump silences are released with stock's note-off just before the step (V7.2.2). A jump counts from the last restart: after a normal pattern change (Direct Jump off, a chain or the arranger), the new pattern lands in phase with the one that started there, and its trig conditions count from there too (V7.3). -**Hardware status.** The author tested the timing, the Part change and the toggle on his MKI (27 September to 1 October 2026, his own builds), V7.2.2's changes on 15 November 2026 in his own builds of the same Direct Jump code: the SILENCE TRACKS pop gone in his standalone image, and in his combined KYOTI V1.8C image (beside his Clyps) landings at other lengths and scales, a cue in the last step, trig conditions across a jump and each track's Part with LFO AUTO CHANGE on; and V7.3 on 16 November 2026 in KYOTI V1.8C: after a normal change from a 16-step A01 to a 12-step A02, a jump to a 12-step A03 lands in phase with A02, 1:2 trigs stay in step, and a Clyps load after it stays in step. Those are not Modwerk builds. **This Modwerk version has not yet run on a unit**: its native image of this module alone waits for the author's MKI run ([evidence/hardware.md](evidence/hardware.md)). Earlier versions: the 0.1.x USB package ran on the owner's MKII on 24 and 25 October 2026 (install, keep, power cycle, removal, and on a development twin the toggle and jumps between a 64- and a 16-step pattern). +**Hardware status.** The author tested the timing, the Part change and the toggle on his MKI (27 September to 1 October 2026, his own builds), V7.2.2's changes on 15 November 2026 in his own builds of the same Direct Jump code: the SILENCE TRACKS pop gone in his standalone image, and in his combined KYOTI V1.8C image (beside his Clyps) landings at other lengths and scales, a cue in the last step, trig conditions across a jump and each track's Part with LFO AUTO CHANGE on; and V7.3 on 16 November 2026 in KYOTI V1.8C: after a normal change from a 16-step A01 to a 12-step A02, a jump to a 12-step A03 lands in phase with A02, 1:2 trigs stay in step, and a Clyps load after it stays in step. Those are not Modwerk builds. **This Modwerk version on a unit:** on 17 November 2026 the author flashed its native card image of this module alone (MAIN OS `a7074bfd…`, OS VERSION MW_DJK73B) on his MKI and all 13 items of his checklist passed: the toggle, OFF at power-on, a Part-changing jump, other lengths and scales, a last-step cue, trig conditions with FILL and PRE, a jump after a normal pattern change, LFO AUTO CHANGE, SILENCE TRACKS, a Plays Free MIDI track and Direct Jump off as stock ([evidence/hardware.md](evidence/hardware.md)). The USB package and an MKII have not run this version. Earlier versions: the 0.1.x USB package ran on the owner's MKII on 24 and 25 October 2026 (install, keep, power cycle, removal, and on a development twin the toggle and jumps between a 64- and a 16-step pattern). ## Controls @@ -55,7 +55,7 @@ One stock gesture is touched: ## Compatibility and limitations -- OS 1.40C. The author tested the clock-locked timing, the Part change, the toggle and 0.2.0's changes on his MKI in his own builds; Program Change on fast re-cues, MIDI tracks and START SILENT he verified in his emulator only. This Modwerk version has not run on a unit; the 0.1.x USB package ran on an MKII (the toggle, jumps, a power cycle, removal). +- OS 1.40C. The author tested the clock-locked timing, the Part change, the toggle and 0.2.0's changes on his MKI in his own builds; Program Change on fast re-cues, MIDI tracks and START SILENT he verified in his emulator only. This version's native card image passed his 13-item checklist on his MKI (17 November 2026); it has not run on an MKII or as the USB package. The 0.1.x USB package ran on an MKII (the toggle, jumps, a power cycle, removal). - OFF at every power-on and not stored in the project: turn it on again after a restart. - While the arranger or a pattern chain runs, pattern changes stay stock. - With differing track scales in PER TRACK mode the jump waits for the next tick where every track is on a step boundary (see above). diff --git a/sdk/octatrack/modules/direct-jump-kyoti/TESTING.md b/sdk/octatrack/modules/direct-jump-kyoti/TESTING.md index df266fff7c..001b2db8cd 100644 --- a/sdk/octatrack/modules/direct-jump-kyoti/TESTING.md +++ b/sdk/octatrack/modules/direct-jump-kyoti/TESTING.md @@ -18,8 +18,8 @@ Version `0.2.0-experimental` (DIRECT JUMP V7.3), recorded 16 November 2026. Its - **Performance** (`evidence/performance.json`, `perf:audit -- check` passes; ot_emu, not chip timing). Authored instructions of `dj_land` per tick, the stock routines it calls excluded: OFF 30, ON idle 45; up to 1,898 a tick while tracks wait for their first trig (16 tracks scanned); an ordinary landing tick 4,233, also after a stock pattern change; the tick after it with SILENCE TRACKS on and every track published 4,843 (13,195 with the stock note-offs and Part applies); the dearest, 9,078 (17,225 with the stock calls), a cue that lands on the tick it arms and first publishes 16 waiting tracks (eight MIDI Part copies, every MIDI LFO on a designer wave). At 16 cycles an instruction: 145,248 against the next tick's deadline of 2,200,000 at 300 BPM. A mechanical static bound over every routine `dj_land` can reach, loops at their caps: 41,017 instructions (656,272 cycles). `dj_swres` runs 13 instructions in stock's switch block, once per stock pattern change. Against the V7.2.2 preparation (with the re-encodings: landing 4,237, dearest 9,082, static 40,547), V7.3 as the author wrote it adds 8 instructions to a landing tick for the restart frame and saves 12 that `dj_post` cost; the other ticks are unchanged. Under a 15 s MIDI flood (1,000 messages a second, clock at 250 BPM, a jump every second): longest frame interrupt 156.7 µs (27,574 instructions) against the original OS's 155.7 µs (the V7.2.2 preparation: 155.9 µs; the original OS and V7.2.2 runs repeated identically), idle 54.57 % against 54.87 %, every message reached its handler, no hang. The per-track publish adds `TRK_APPLY` calls (stock) to the tick that publishes; `dj_lfoq` adds 7 instructions to the frame interrupt's light Part apply. - **Memory.** 3,938 bytes in the DRAM reserve (code, the two toast strings and 176 bytes of state) and the fix's 62: 4,000 bytes; six six-byte detours and the four-byte pointer: 40 bytes of stock writes. 4,040 bytes in all. No DSP memory, no heap, no saved data. - **Captures.** The three screens, taken again on the tested image with the same panel plan, are byte-identical to 0.1.2's (`media/capture.json`). -- **Hardware.** Not yet run on a unit. A hardware test image of the tested native build (MAIN OS `a7074bfd…`, version string MW_DJK73B) is with the author for his MKI; his results go into [evidence/hardware.md](evidence/hardware.md). The author's own results are for his builds, not this one: on 15 November 2026 his standalone image `140C_KDJ7` (mainos `7c6131e7…`) ended the SILENCE TRACKS pop, and his KYOTI V1.8C image (the same Direct Jump code beside his Clyps module, flashed as `KY+CL DJC9`) passed his walk-through of landings at other lengths and scales, a cue in the last step, trig conditions across a jump and each track's Part with LFO AUTO CHANGE on; on 16 November 2026 KYOTI V1.8C with V7.3 (`KY18C DJR1`, mainos `9d1a29c9…`): after a normal change from a 16-step A01 to a 12-step A02, a jump to a 12-step A03 landed in phase with A02, 1:2 trigs stayed in step across it, and a Clyps load after it stayed in step. -- **Not tested.** On any unit: this build, the USB package, an MKII; listening for the release and LFO behaviour; external MIDI gear; the arranger and chains (the gate's restart part uses a plain stock change; the author's emulator ran a chain doing the change, RS5); a switch the arranger starts at a later step (`dj_rsm` > 0); beside Clyps-like modules (none in Modwerk). +- **Hardware** (the author's MKI, 17 November 2026, [evidence/hardware.md](evidence/hardware.md)). He flashed the tested native build as a card image (`OCTATRACK_MW_DJK73B.bin`, SHA-256 `912343943b156624d75e526ff8d382bbd3ddc3b8dca950cc9c707d8d3990b20e`; MAIN OS `a7074bfd…`, OS VERSION MW_DJK73B) and reported all 13 checklist items passed: boot, the toggle and its toast with the chooser shut, OFF after a power cycle, a jump into another Part, other lengths and PER TRACK scales, a cue in the last step, 1:2 and 1:4 trigs with a latched [FILL] and a PRE trig, a jump after a normal pattern change (16-step A01, 12-step A02, 12-step A03 in phase, 1:2 hi-hat in step), LFO AUTO CHANGE with a ringing sample, no pop with SILENCE TRACKS, a Plays Free MIDI track, Direct Jump off as stock, nothing odd. A functional report: project, duration and MIDI OUT gear not stated. Before that, the author's own results were for his builds, not this one: on 15 November 2026 his standalone image `140C_KDJ7` (mainos `7c6131e7…`) ended the SILENCE TRACKS pop, and his KYOTI V1.8C image (the same Direct Jump code beside his Clyps module, flashed as `KY+CL DJC9`) passed his walk-through of landings at other lengths and scales, a cue in the last step, trig conditions across a jump and each track's Part with LFO AUTO CHANGE on; on 16 November 2026 KYOTI V1.8C with V7.3 (`KY18C DJR1`, mainos `9d1a29c9…`): after a normal change from a 16-step A01 to a 12-step A02, a jump to a 12-step A03 landed in phase with A02, 1:2 trigs stayed in step across it, and a Clyps load after it stayed in step. +- **Not tested.** The USB package on any unit (no beta access) and an MKII; on the unit beyond the checklist's own items: external MIDI gear (if none was attached), the arranger or a chain doing the change before a jump (the gate's restart part uses a plain stock change; the author's emulator ran a chain doing the change, RS5); a switch the arranger starts at a later step (`dj_rsm` > 0); beside Clyps-like modules (none in Modwerk). ## The full name again (29 October 2026, no version change) diff --git a/sdk/octatrack/modules/direct-jump-kyoti/evidence/hardware.md b/sdk/octatrack/modules/direct-jump-kyoti/evidence/hardware.md index 1a402d2d87..7f547b571d 100644 --- a/sdk/octatrack/modules/direct-jump-kyoti/evidence/hardware.md +++ b/sdk/octatrack/modules/direct-jump-kyoti/evidence/hardware.md @@ -1,12 +1,30 @@ # Direct Jump Kyoti: hardware record -## 0.2.0-experimental (pending) +## 0.2.0-experimental (17 November 2026) -Not run on a unit yet. The author has a hardware test image of the tested native build for his MKI: this module alone (DIRECT JUMP V7.3, the author's code byte for byte) with every stock effect kept, MAIN OS SHA-256 `a7074bfd6fea3c9516eaf872d1693327957fe4c1248b01ead73136fadbfe9f1c`, version string MW_DJK73B, built from this branch's source (TESTING.md). His results, with the date, the card `.bin` he flashed and what he tried, go here; until then nothing in this file is about 0.2.0. +The author, Zac Kyoti, on his Octatrack MKI, OS 1.40C. He flashed the native card image of this module alone with every stock effect kept: `OCTATRACK_MW_DJK73B.bin` (card OS UPGRADE, SHA-256 `912343943b156624d75e526ff8d382bbd3ddc3b8dca950cc9c707d8d3990b20e`), OS VERSION MW_DJK73B, MAIN OS SHA-256 `a7074bfd6fea3c9516eaf872d1693327957fe4c1248b01ead73136fadbfe9f1c`, built from this branch's source at `20d216e1b454edee281d66dcfb179275fe24b4b0` (DIRECT JUMP V7.3 as in Zac-Kyoti/octatrack-kyoti-fw `cd788e9`, byte for byte, and his MIDI Plays-Free fix). His report: "Flashed. All tests pass." -The checks asked for: the toggle and its toast; OFF after a power-on; a jump into a pattern on another Part; jumps between patterns of other lengths and scales (PER TRACK); a cue in the playing pattern's last step; 1:2 trig conditions across a jump, with [FILL] latched and a PRE trig after it; a jump after a normal pattern change (16-step A01, a normal change to a 12-step A02, then a jump to a 12-step A03: A03 lands in phase with A02 and a 1:2 hi-hat stays in step); LFO AUTO CHANGE on with a sample ringing from the outgoing pattern; SILENCE TRACKS on (no pop); a Plays Free MIDI track in PER TRACK mode; Direct Jump off behaving as stock. The USB package `ed3ba88a…` is not part of this run. +The checklist he ran, all 13 items passed: -His own builds of the same Direct Jump code (not Modwerk builds): on 15 November 2026 the standalone image `140C_KDJ7` (mainos `7c6131e7…`, V7.2.2) ended the SILENCE TRACKS pop at a Part-changing jump, and KYOTI V1.8C (beside his Clyps module) passed landings at other lengths and scales, a cue in the last step, trig conditions across a jump and each track's Part with LFO AUTO CHANGE on; on 16 November 2026 KYOTI V1.8C with V7.3 (`KY18C DJR1`, mainos `9d1a29c9…`): after a normal change from a 16-step A01 to a 12-step A02, a jump to a 12-step A03 landed in phase with A02, 1:2 trigs stayed in step, and a Clyps load after the jump stayed in step. +1. Boot: starts normally, OS version MW_DJK73B. +2. Toggle: [PTN] + [YES] shows DIRECT JUMP ON; releasing [PTN] leaves the pattern chooser shut; again shows DIRECT JUMP OFF. +3. OFF at power-on: turned ON, power-cycled, it came up OFF (a cue waits for the pattern end). +4. A jump from a pattern on Part 1 to one on Part 2 lands on the next step with Part 2 active and its sounds. +5. Lengths and scales: jumps between patterns of other lengths and into a PER TRACK pattern with differing track scales land where the pattern would be had it played since PLAY, or since the last normal pattern change (in time, no step shift). +6. A cue in the playing pattern's last step lands on its grid point. +7. Trig conditions: 1:2 and 1:4 trigs keep alternating across jumps, in step with what was playing; a latched [FILL] stays on after a jump; a PRE trig right after a jump plays. +8. Restart (V7.3): A01 (16 steps) from PLAY, a normal change with Direct Jump OFF to a 12-step A02, then Direct Jump ON and, about 4 steps into A02, a jump to a 12-step A03: A03 lands in phase with A02, and a 1:2 hi-hat stays in step across the jump. +9. LFO AUTO CHANGE on: a sample ringing from the old pattern keeps its LFO until its own track's first trig in the new pattern; tracks with no trig get the new Part's LFOs at once. +10. SILENCE TRACKS on: a Part-changing jump that silences ringing tracks does not pop. +11. A Plays Free MIDI track with trig quantize DIRECT in PER TRACK mode keeps playing after its trig key starts it and lands with its own scale on a jump; with gear on MIDI OUT, the Program Change follows the pattern that plays and no MIDI START is sent on a jump. +12. With Direct Jump OFF, pattern changes, the arranger and chains behave as on the stock OS. +13. Nothing odd: no crash, freeze or wrong landing. + +Items 5 and 7 were worded for V7.3's rule (since PLAY, or since the last normal pattern change) before the run. + +Limitations: a functional report from one MKI. The project, how long it ran and whether gear was attached to MIDI OUT for item 11 are not stated; nothing was timed or recorded. The USB package `ed3ba88a…` was not installed (no beta access), and no MKII ran this version. + +His own builds of the same Direct Jump code (not Modwerk builds) before this run: on 15 November 2026 the standalone image `140C_KDJ7` (mainos `7c6131e7…`, V7.2.2) ended the SILENCE TRACKS pop at a Part-changing jump, and KYOTI V1.8C (beside his Clyps module) passed landings at other lengths and scales, a cue in the last step, trig conditions across a jump and each track's Part with LFO AUTO CHANGE on; on 16 November 2026 KYOTI V1.8C with V7.3 (`KY18C DJR1`, mainos `9d1a29c9…`) passed the restart case and a Clyps load after the jump. ## 0.1.2-experimental (25 October 2026) diff --git a/sdk/octatrack/modules/direct-jump-kyoti/evidence/performance.json b/sdk/octatrack/modules/direct-jump-kyoti/evidence/performance.json index aec0c6fc74..0f9d6efe09 100644 --- a/sdk/octatrack/modules/direct-jump-kyoti/evidence/performance.json +++ b/sdk/octatrack/modules/direct-jump-kyoti/evidence/performance.json @@ -28,8 +28,8 @@ "droppedExplanation": "Emulator, not hardware, the run above on the module image with Direct Jump ON: 15,000 three-byte messages and 1,500 clock bytes; 15 cues gave 15 jumps, the original OS under the same input changed pattern 4 times (each cue waits for the pattern end). At 4.71 s the flood left the transport state at 2 on both images alike, and the run pressed PLAY once. Dropped: counted at the MIDI thread's handlers (note on 0x4000e018, note off 0x4000db98, CC 0x4000e79c, clock 0x40005a48): every type's entries were at least the messages sent (a few more note entries, as on the original OS), none missing. Stuck notes: no samples are loaded and nothing was sent to MIDI OUT, so audible stuck notes could not occur here. Hangs: frames advanced to the end and the transport was running. Bypass: the module's OFF state is checked in the gate (verify.py), not in this run." }, "hardwareEvidence": { - "status": "pending", + "status": "reported", "existingReport": "evidence/hardware.md", - "note": "0.2.0-experimental has not run on a unit yet: its native module-alone image is waiting for the author's MKI run (evidence/hardware.md). The cycles, load and stress rows are ot_emu measurements." + "note": "Functional checks on the author's MKI on 17 November 2026 with the native card image of this build (MAIN OS a7074bfd...): all 13 checklist items passed, nothing timed or recorded (evidence/hardware.md). The cycles, load and stress rows are ot_emu measurements." } } diff --git a/sdk/octatrack/modules/direct-jump-kyoti/octamod.module.json b/sdk/octatrack/modules/direct-jump-kyoti/octamod.module.json index 242790a297..608c402217 100644 --- a/sdk/octatrack/modules/direct-jump-kyoti/octamod.module.json +++ b/sdk/octatrack/modules/direct-jump-kyoti/octamod.module.json @@ -25,7 +25,7 @@ "summary": "Hold [PTN] and press [YES] to turn Direct Jump Kyoti on: a pattern you cue takes over on the next step, where it would be had it played since PLAY or the last normal pattern change.", "overview": "On the stock OS a cued pattern waits for the playing one to reach its end. With Direct Jump on, it takes over on the next step instead, locked to the master clock: it starts at the step it would be on had it been playing since you pressed PLAY, or since the last normal pattern change, whatever its length, scale or per-track settings. Trig conditions carry on as if the new pattern had played all along, each track gets its new Part settings with its own first trig, and with SILENCE TRACKS on the tracks a jump silences are released before the step instead of cut. It is off at every power-on, so the stock behaviour stays the default. It is Zac Kyoti's design, distinct from octabam's other direct jump (Tim Hastie's CHAIN AFTER option).", "highlights": [ - "OS 1.40C. Zac Kyoti tested this version's behaviour on his MKI in his own builds of the same code (15 and 16 November 2026); this Modwerk build has not yet run on a unit.", + "OS 1.40C. Zac Kyoti ran this Modwerk build (its native card image) on his MKI on 17 November 2026: all 13 checks of his list passed. Not yet run on an MKII or over USB.", "Off at every power-on: until you turn it on, pattern changes are the stock ones.", "The new pattern lands where it would be had it played since PLAY or the last normal pattern change, also with differing track lengths and scales (PER TRACK mode), so tracks stay in phase with the master clock: after a normal change to a 12-step pattern, a jump to another 12-step pattern lands on the step the first was on. It lands a tick before the step, so its first step is never late, and a cue in the playing pattern's last step lands on its grid point too.", "Trig conditions carry on across a jump: every A:B count stands where the new pattern's would, counted from that same restart; a latched [FILL] stays on, and a PRE trig right after the jump plays.", @@ -75,7 +75,7 @@ "key:PATTERN+YES" ], "limitations": [ - "OS 1.40C. The author tested the timing, the Part change, the toggle and this version's trig conditions, Part-per-track, SILENCE TRACKS release and jumps after a normal pattern change on an MKI, in his own builds of the same Direct Jump code. This Modwerk build has not run on a unit; the 0.1.x USB package ran on an MKII (toggle, jumps between a 64- and a 16-step pattern, a power cycle, removal).", + "OS 1.40C. The author ran this version's native card image on his MKI (17 November 2026): the toggle, OFF at power-on, a Part-changing jump, other lengths and scales, a last-step cue, trig conditions with FILL and PRE, a jump after a normal pattern change, LFO AUTO CHANGE, SILENCE TRACKS, a Plays Free MIDI track and Direct Jump off all passed. Not run on an MKII or as the USB package; the 0.1.x USB package ran on an MKII (toggle, jumps between a 64- and a 16-step pattern, a power cycle, removal).", "OFF at every power-on and not stored in the project: turn it on again after a restart.", "While the arranger or a pattern chain runs, pattern changes stay stock.", "With differing track scales or lengths in PER TRACK mode, the jump waits for the next tick where every track is at a step boundary, at most one common step of all tracks' scales (24 clock ticks for 1x, 3/4x and 1/2x together).", @@ -130,8 +130,8 @@ }, "tests": { "report": "TESTING.md", - "summary": "0.2.0 has not run on a unit; its native image of this module alone waits for the author's MKI run. Under the ColdFire port (verify.py, 74 checks, all passed on that image): OFF identical to the original OS through a pattern change; four jumps (16 steps with [FILL] latched; 7 steps on Part 2; PER TRACK lengths and scales; a cue in the last step) whose sequencer state and trig-condition state equal a reference run of the incoming pattern since START on every tick after the landing; two jumps after a stock pattern change (12 steps at 1x after 12 at 1x; 3/4x after 2x) that equal a run which changed straight to the jump's pattern; each track's Part handed to the engine at its first sounding trig with LFO AUTO CHANGE on; the tracks SILENCE TRACKS silences released with stock's note-off the tick after the landing; and the MIDI Plays-Free stall, which the original OS shows and the module fixes. The author tested the same Direct Jump code on his MKI in his own builds on 15 and 16 November 2026 (V7.3's restart in KYOTI V1.8C); the 0.1.x USB package ran on the owner's MKII in October 2026.", - "hardwareStatus": "untested", + "summary": "The author ran 0.2.0's native card image of this module alone on his MKI on 17 November 2026: all 13 checklist items passed (evidence/hardware.md). Under the ColdFire port (verify.py, 74 checks, all passed on that image): OFF identical to the original OS through a pattern change; four jumps (16 steps with [FILL] latched; 7 steps on Part 2; PER TRACK lengths and scales; a cue in the last step) whose sequencer state and trig-condition state equal a reference run of the incoming pattern since START on every tick after the landing; two jumps after a stock pattern change (12 steps at 1x after 12 at 1x; 3/4x after 2x) that equal a run which changed straight to the jump's pattern; each track's Part handed to the engine at its first sounding trig with LFO AUTO CHANGE on; the tracks SILENCE TRACKS silences released with stock's note-off the tick after the landing; and the MIDI Plays-Free stall, which the original OS shows and the module fixes. Before that he tested the same Direct Jump code in his own builds (15 and 16 November 2026); the 0.1.x USB package ran on the owner's MKII in October 2026.", + "hardwareStatus": "reported", "evidenceRevision": "20d216e1b454edee281d66dcfb179275fe24b4b0", "gates": [ "modules/direct-jump-kyoti/verify.py" @@ -154,7 +154,7 @@ }, "qualification": { "moduleVersion": "0.2.0-experimental", - "sourceSha256": "540066f79bfae023c147b1c18ede6aada61290cdb993b1ad5be7cb33b6ce3a6f", + "sourceSha256": "bbd96f67a1bfa050fac0fc7ce0463a40ba18b96dfd4a80416c52bd14856445a6", "imageSha256": "a7074bfd6fea3c9516eaf872d1693327957fe4c1248b01ead73136fadbfe9f1c", "cycles": [ { @@ -212,17 +212,16 @@ "hardware": { "kind": "functional", "status": "reported", - "model": "MKII", - "testedOn": "2026-10-25", - "tester": "repeat98", - "sourceRevision": "cf95656dbc0e386b4fda769e04cc18eb2a5d3364", - "imageSha256": "89a38e18728bb2039a0f5e3f39305fcb7be75e0db260acd6b33bd46d7e281cef", - "summary": "The owner's MKII, OS 1.40C, driven over USB by the agent at the owner's request, on the published beta base 109f23bd (flashed, running from RAM on the same image) with SIDECHAIN COMP, Ringmod SC, Mini Verb and POLY8 kept: package 89a38e18 installed and kept as a tester's sync does it (generation 7), listed as DirectJmp Kyoti; self-test passed (5/5 intact, both DSP modules ran, longest frame 419 us, card set saved 5/5); removal kept (generation 8), the four remained; self-test passed again (4/4, 418 us). 0.1.2 differs from the 0.1.1 package run the same way earlier that day only in its 15-character title. The 0.1.0 package's toggle and jumps ran on a development twin on 24 Oct 2026 with the byte-identical Direct Jump unit (evidence/hardware.md).", + "model": "MKI", + "testedOn": "2026-11-17", + "tester": "Zac Kyoti", + "sourceRevision": "20d216e1b454edee281d66dcfb179275fe24b4b0", + "imageSha256": "a7074bfd6fea3c9516eaf872d1693327957fe4c1248b01ead73136fadbfe9f1c", + "summary": "The author flashed the native card image of this module alone (OCTATRACK_MW_DJK73B.bin, MAIN OS a7074bfd, OS VERSION MW_DJK73B; DIRECT JUMP V7.3 byte for byte) on his MKI and reported all 13 checklist items passed: boot; the [PTN] + [YES] toggle and toast with the chooser shut; OFF after a power cycle; a jump into a pattern on another Part; jumps between other lengths and into PER TRACK scales, landing where the pattern would be since PLAY or the last normal pattern change; a cue in the last step on its grid point; 1:2 and 1:4 trigs in step across jumps, a latched [FILL] kept and a PRE trig played; a jump after a normal change from a 16-step A01 to a 12-step A02 landing a 12-step A03 in phase with A02, its 1:2 hi-hat in step; LFO AUTO CHANGE with a ringing sample; no pop with SILENCE TRACKS; a Plays Free MIDI track in PER TRACK mode; Direct Jump off as stock; nothing odd.", "limitations": [ - "One unit, driven by the agent; nothing judged by ear.", - "Not exercised on the unit with 0.1.1 or 0.1.2: the toggle, a jump and the MIDI Plays-Free fix itself (the beta base answers no key presses or RAM reads over USB). The author confirmed the fix on his MKI; the emulator gate runs the stall against the original OS.", - "Not run: a power cycle with 0.1.1 kept, the card build, an MKI, the site's review/Keep/Undo pages.", - "About ten minutes of use over the two runs." + "From the card only: the USB package ed3ba88a has not run on a unit; 0.1.x USB packages ran on an MKII (24 and 25 October 2026).", + "MKI only; not run on an MKII.", + "A functional report: the project, how long it ran and whether external MIDI gear was attached are not stated; nothing timed or recorded." ], "report": "evidence/hardware.md" }, diff --git a/src/catalog/module-documents.json b/src/catalog/module-documents.json index 4999d2547b..222816c5cf 100644 --- a/src/catalog/module-documents.json +++ b/src/catalog/module-documents.json @@ -8356,18 +8356,18 @@ "id": "direct-jump-kyoti", "key": "DIRECT_JUMP_KYOTI", "name": "Direct Jump Kyoti", - "version": "0.1.2-experimental", + "version": "0.2.0-experimental", "category": "system", "source": { - "repository": "https://github.com/sambanks/octabam", - "revision": "b725fb1a20e77bea37930be4f934a13ba53abc23", - "path": "modules/direct-jump-kyoti" + "repository": "https://github.com/Zac-Kyoti/octatrack-kyoti-fw", + "revision": "cd788e93c765120cd2d2feda60bafee9a02f8508", + "path": "octabam-modules/direct-jump-kyoti" }, "access": { "location": "Front panel: hold [PTN], press [YES]. No menu row or page.", "steps": [ "Hold [PTN] and press [YES]: DIRECT JUMP ON appears. Release [PTN]; the pattern chooser stays shut.", - "Press [PLAY]. Hold [PTN] and press a trig key to cue that pattern: it takes over on the next step, at the step it would be on had it played since START.", + "Press [PLAY]. Hold [PTN] and press a trig key to cue that pattern: it takes over on the next step, at the step it would be on had it played since PLAY or the last normal pattern change.", "Hold [PTN] and press [YES] again for DIRECT JUMP OFF: cued patterns wait for the end of the playing one again, as on the stock OS." ], "screenshots": [ @@ -8381,26 +8381,29 @@ "name": "Zac Kyoti", "credits": [ "Zac Kyoti: Direct Jump's design, its ColdFire source and the MKI hardware work behind it. Sam Banks: octabam integration.", - "Modwerk contributors: source import with stock guards in place of stock bytes, the stock-free re-encoding of three kernel posts for the USB package, the emulator gate, documentation and SVG thumbnail." + "Modwerk contributors: source import with stock guards in place of stock bytes, the emulator gate, documentation and SVG thumbnail." ] }, "nativeManifest": "manifest.py", "presentation": { "label": "Clock-locked pattern jump on [PTN] + [YES]", "family": "Sequencer", - "summary": "Hold [PTN] and press [YES] to turn Direct Jump Kyoti on: a pattern you cue takes over on the next step, where it would be had it played since START.", - "overview": "On the stock OS a cued pattern waits for the playing one to reach its end. With Direct Jump on, it takes over on the next step instead, locked to the master clock: it starts at the step it would be on had it been playing since you pressed PLAY, whatever its length, scale or per-track settings. The Part, START SILENT and trig conditions change as on a stock pattern change. It is off at every power-on, so the stock behaviour stays the default. It is Zac Kyoti's design, distinct from octabam's other direct jump (Tim Hastie's CHAIN AFTER option).", + "summary": "Hold [PTN] and press [YES] to turn Direct Jump Kyoti on: a pattern you cue takes over on the next step, where it would be had it played since PLAY or the last normal pattern change.", + "overview": "On the stock OS a cued pattern waits for the playing one to reach its end. With Direct Jump on, it takes over on the next step instead, locked to the master clock: it starts at the step it would be on had it been playing since you pressed PLAY, or since the last normal pattern change, whatever its length, scale or per-track settings. Trig conditions carry on as if the new pattern had played all along, each track gets its new Part settings with its own first trig, and with SILENCE TRACKS on the tracks a jump silences are released before the step instead of cut. It is off at every power-on, so the stock behaviour stays the default. It is Zac Kyoti's design, distinct from octabam's other direct jump (Tim Hastie's CHAIN AFTER option).", "highlights": [ - "OS 1.40C. Zac Kyoti tested the clock-locked timing, the Part change and the toggle on his MKI; Modwerk's USB package ran on an MKII.", + "OS 1.40C. Zac Kyoti ran this Modwerk build (its native card image) on his MKI on 17 November 2026: all 13 checks of his list passed. Not yet run on an MKII or over USB.", "Off at every power-on: until you turn it on, pattern changes are the stock ones.", - "The new pattern lands where it would be had it played since START, also with differing track lengths and scales (PER TRACK mode), so tracks stay in phase with the master clock.", - "The Part, START SILENT and trig conditions change as on a stock pattern change; the last MIDI Program Change names the pattern that plays; no MIDI START is sent on a jump.", + "The new pattern lands where it would be had it played since PLAY or the last normal pattern change, also with differing track lengths and scales (PER TRACK mode), so tracks stay in phase with the master clock: after a normal change to a 12-step pattern, a jump to another 12-step pattern lands on the step the first was on. It lands a tick before the step, so its first step is never late, and a cue in the playing pattern's last step lands on its grid point too.", + "Trig conditions carry on across a jump: every A:B count stands where the new pattern's would, counted from that same restart; a latched [FILL] stays on, and a PRE trig right after the jump plays.", + "The Part's pattern-wide settings and START SILENT change as on a stock pattern change. With LFO AUTO CHANGE on, each track's new LFO settings arrive with its first trig of the new pattern, so a sound still ringing keeps its own.", + "With SILENCE TRACKS on, the tracks a jump silences are released with stock's note-off just before the step, so they do not pop.", + "The last MIDI Program Change names the pattern that plays; no MIDI START is sent on a jump.", "Includes Zac Kyoti's fix for stock's MIDI Plays-Free stall, so a Plays Free MIDI track in PER TRACK mode keeps playing and Direct Jump places it with its own scale.", "The arranger and pattern chains are left alone: while either runs, pattern changes are stock." ], "usage": [ "Hold [PTN] and press [YES]: DIRECT JUMP ON appears. Release [PTN]; the pattern chooser stays shut.", - "Press [PLAY]. Hold [PTN] and press a trig key to cue that pattern: it takes over on the next step, at the step it would be on had it played since START.", + "Press [PLAY]. Hold [PTN] and press a trig key to cue that pattern: it takes over on the next step, at the step it would be on had it played since PLAY or the last normal pattern change.", "Hold [PTN] and press [YES] again for DIRECT JUMP OFF: cued patterns wait for the end of the playing one again, as on the stock OS." ] }, @@ -8425,10 +8428,11 @@ "key:PATTERN+YES" ], "limitations": [ - "OS 1.40C. The author tested the timing, the Part change and the toggle on an MKI. Modwerk's USB package ran on an MKII (toggle, jumps between a 64- and a 16-step pattern, a power cycle, removal); a jump into another Part, per-track scales and external MIDI were not tried on it, and the card build has not run on a unit.", + "OS 1.40C. The author ran this version's native card image on his MKI (17 November 2026): the toggle, OFF at power-on, a Part-changing jump, other lengths and scales, a last-step cue, trig conditions with FILL and PRE, a jump after a normal pattern change, LFO AUTO CHANGE, SILENCE TRACKS, a Plays Free MIDI track and Direct Jump off all passed. Not run on an MKII or as the USB package; the 0.1.x USB package ran on an MKII (toggle, jumps between a 64- and a 16-step pattern, a power cycle, removal).", "OFF at every power-on and not stored in the project: turn it on again after a restart.", "While the arranger or a pattern chain runs, pattern changes stay stock.", "With differing track scales or lengths in PER TRACK mode, the jump waits for the next tick where every track is at a step boundary, at most one common step of all tracks' scales (24 clock ticks for 1x, 3/4x and 1/2x together).", + "With LFO AUTO CHANGE on, a track whose new pattern has trigs keeps the old Part's LFO setup until its first trig there; STOP, turning Direct Jump off or the next jump applies every waiting track at once.", "[PTN] + [YES] no longer opens the pattern chooser on releasing [PTN]; [YES] alone and [PTN] with a trig key are unchanged.", "Carries the author's fix for stock's MIDI Plays-Free stall (a Plays Free MIDI track with trig quantize DIRECT under PER TRACK scale stopped after its first step), whether Direct Jump is on or off. The bundle's other two fixes are not included.", "A jump changes the Part through stock's own Part-change path, so stock's known Part-change carryover issues (a track going from PICKUP to FLEX can keep the old Part's pickup loop) happen on a jump as on a stock pattern change.", @@ -8436,31 +8440,31 @@ ] }, "resources": { - "recorded": "25 October 2026; source assembly, the image gate and the ColdFire port", + "recorded": "16 November 2026; source assembly, the native image of this module alone and the ColdFire port", "storage": { "label": "DRAM code and detours", - "display": "2,078 B code and state + four 6 B detours + one 4 B pointer", - "value": 2106, + "display": "4,000 B code and state + six 6 B detours + one 4 B pointer", + "value": 4040, "unit": "bytes", "method": "static", - "conditions": "Two linked units in the DRAM reserve: Direct Jump's 2,016 bytes (code, two toast strings and 62 bytes of state) and the MIDI Plays-Free fix's 62 bytes of code; four six-byte detours over stock instructions and the [PTN]-layer YES press pointer. The USB package carries the units as 2,080 bytes (aligned). No DSP memory, no saved data.", + "conditions": "Two linked units in the DRAM reserve: Direct Jump's 3,938 bytes (code, two toast strings and 176 bytes of state) and the MIDI Plays-Free fix's 62 bytes of code; six six-byte detours over stock instructions and the [PTN]-layer YES press pointer. The USB package carries the units aligned, 4,546 bytes in all. No DSP memory, no saved data.", "source": "TESTING.md" }, "processing": { "label": "ColdFire, per sequencer tick", - "display": "18 instr. a tick OFF, ~35 ON; at most 2,946 on a landing tick", - "value": 2946, + "display": "30 instr. a tick OFF, 45 ON; at most 9,078 on a landing tick", + "value": 9078, "unit": "instructions/event", "method": "emulator", - "conditions": "Authored instructions of the tick hook under ot_emu, worst at a cue that lands on its arming tick; the stock routines a landing calls (Program Change, three kernel posts, the trig-condition reset) add up to about 220. The tick interrupt runs at level 3, below the DSP frame interrupt. Not chip timing.", + "conditions": "Authored instructions of the tick hook under ot_emu, worst at a cue that lands on its arming tick while all 16 tracks still wait for their first trig after the previous jump; the stock routines a landing calls (Program Change, the kernel posts, the per-track Part apply, the note-off) bring it to 17,225. While tracks wait for their first trig, up to 1,898 a tick. A stock pattern change adds 13 instructions (dj_swres) to stock's switch on that tick. The tick interrupt runs at level 3, below the DSP frame interrupt. Not chip timing.", "source": "TESTING.md" }, "impact": { - "conditions": "A jump to a pattern on another Part while playing: the landing tick, the dearest event. Between jumps, a short counter on every sequencer tick.", + "conditions": "A jump to a pattern on another Part while playing, with LFO AUTO CHANGE and SILENCE TRACKS on: the landing tick and the tick after it, the dearest events. Between jumps, a short counter on every sequencer tick, and while tracks wait for their first trig in the new pattern a scan of the 16 tracks.", "cpu": { "level": "minimal", "basis": "measured-comparison", - "rationale": "18 executed instructions a sequencer tick while OFF and about 35 while ON; at most 2,946 authored (3,166 with the stock routines it calls) on the tick a jump lands (ot_emu). The tick interrupt runs at level 3, below the level-5 DSP frame interrupt. Under a 62 s MIDI flood with a jump every second, the longest frame interrupt was the original OS's (167.3 us in the port's time) and idle 0.36 points lower. Time on the unit is not measured.", + "rationale": "30 executed instructions a sequencer tick while OFF and 45 while ON; up to 1,898 a tick while tracks wait for their first trig; at most 9,078 authored (17,225 with the stock routines it calls) on the tick a jump lands, and 13 on the tick of a stock pattern change (ot_emu). The tick interrupt runs at level 3, below the level-5 DSP frame interrupt. Under a 15 s MIDI flood with a jump every second, the longest frame interrupt was 1.0 us longer than the original OS's (156.7 us against 155.7 us in the port's time) and idle 0.30 points lower. Time on the unit is not measured.", "source": "TESTING.md" }, "dsp": { @@ -8472,16 +8476,16 @@ "memory": { "level": "minimal", "basis": "measured-comparison", - "rationale": "2,078 bytes of ColdFire code and state in the DRAM reserve (62 bytes of state) and 28 bytes of stock writes; no DSP memory and no saved data.", + "rationale": "4,000 bytes of ColdFire code and state in the DRAM reserve (176 bytes of state) and 40 bytes of stock writes; no DSP memory and no saved data.", "source": "TESTING.md" } } }, "tests": { "report": "TESTING.md", - "summary": "On the owner's MKII over USB (25 Oct 2026), on the published beta base 109f23bd: the 0.1.2 package (listed as DirectJmp Kyoti) installed and kept beside four other modules as a tester's sync does it, self-test passed (5/5 intact), removed, and the restored set self-tested again. 0.1.0's run on a development twin (24 Oct 2026) drove the toggle and clock-locked jumps with the same Direct Jump unit. Under the ColdFire port (verify.py, 39 checks): OFF identical to the original OS through a pattern change; three jumps (16 steps; 7 steps on Part 2; PER TRACK lengths and scales) whose sequencer state equals a reference run of the incoming pattern since START on every tick after the landing; and the MIDI Plays-Free stall, which the original OS shows and the module fixes.", + "summary": "The author ran 0.2.0's native card image of this module alone on his MKI on 17 November 2026: all 13 checklist items passed (evidence/hardware.md). Under the ColdFire port (verify.py, 74 checks, all passed on that image): OFF identical to the original OS through a pattern change; four jumps (16 steps with [FILL] latched; 7 steps on Part 2; PER TRACK lengths and scales; a cue in the last step) whose sequencer state and trig-condition state equal a reference run of the incoming pattern since START on every tick after the landing; two jumps after a stock pattern change (12 steps at 1x after 12 at 1x; 3/4x after 2x) that equal a run which changed straight to the jump's pattern; each track's Part handed to the engine at its first sounding trig with LFO AUTO CHANGE on; the tracks SILENCE TRACKS silences released with stock's note-off the tick after the landing; and the MIDI Plays-Free stall, which the original OS shows and the module fixes. Before that he tested the same Direct Jump code in his own builds (15 and 16 November 2026); the 0.1.x USB package ran on the owner's MKII in October 2026.", "hardwareStatus": "reported", - "evidenceRevision": "cf95656dbc0e386b4fda769e04cc18eb2a5d3364", + "evidenceRevision": "20d216e1b454edee281d66dcfb179275fe24b4b0", "gates": [ "modules/direct-jump-kyoti/verify.py" ], @@ -8490,7 +8494,7 @@ "title": "Quick tutorial: jump between patterns on the next step", "steps": [ "Hold [PTN] and press [YES]: DIRECT JUMP ON appears. Release [PTN]; the pattern chooser stays shut.", - "Press [PLAY]. Hold [PTN] and press a trig key to cue that pattern: it takes over on the next step, at the step it would be on had it played since START.", + "Press [PLAY]. Hold [PTN] and press a trig key to cue that pattern: it takes over on the next step, at the step it would be on had it played since PLAY or the last normal pattern change.", "Hold [PTN] and press [YES] again for DIRECT JUMP OFF: cued patterns wait for the end of the playing one again, as on the stock OS." ] }, @@ -8507,7 +8511,7 @@ "title": "Quick tutorial: jump between patterns on the next step", "steps": [ "Hold [PTN] and press [YES]: DIRECT JUMP ON appears. Release [PTN]; the pattern chooser stays shut.", - "Press [PLAY]. Hold [PTN] and press a trig key to cue that pattern: it takes over on the next step, at the step it would be on had it played since START.", + "Press [PLAY]. Hold [PTN] and press a trig key to cue that pattern: it takes over on the next step, at the step it would be on had it played since PLAY or the last normal pattern change.", "Hold [PTN] and press [YES] again for DIRECT JUMP OFF: cued patterns wait for the end of the playing one again, as on the stock OS." ] }, @@ -8518,24 +8522,24 @@ ], "screenshotStyle": "black-and-white" }, - "moduleVersion": "0.1.2-experimental", - "sourceSha256": "a692cb9858bc80acb561de3a9d13e30523a4b6921c834de9335485cbf38eecf8", - "imageSha256": "89a38e18728bb2039a0f5e3f39305fcb7be75e0db260acd6b33bd46d7e281cef", + "moduleVersion": "0.2.0-experimental", + "sourceSha256": "bbd96f67a1bfa050fac0fc7ce0463a40ba18b96dfd4a80416c52bd14856445a6", + "imageSha256": "a7074bfd6fea3c9516eaf872d1693327957fe4c1248b01ead73136fadbfe9f1c", "cycles": [ { "processor": "coldfire", - "worstCase": 47136, - "maxConfiguration": 47136, + "worstCase": 145248, + "maxConfiguration": 145248, "maxInstances": 1, "budget": 2200000, "unit": "cycles/event", "method": "emulator", "conditions": { - "parameterExtremes": "OFF, ON while idle, the tick that arms a jump and the landing tick; 16-step patterns and a PER TRACK pattern with tracks at 2x, 3/2x, 1x, 3/4x, 1/2x, 1/4x and 1/8x (the largest common step, 48 clock ticks).", + "parameterExtremes": "OFF, ON while idle, the tick that arms a jump, the landing tick and the tick after it, also after a stock pattern change (V7.3's restart frame); 16-step and 7-step (Part 2) patterns and a PER TRACK pattern with tracks from 2x to 1/8x; LFO AUTO CHANGE and SILENCE TRACKS on, all 16 tracks waiting for a trig, every MIDI LFO on a designer wave.", "parameterModulation": "Not applicable: one ON/OFF word toggled by a key gesture; no knob, lock, LFO or scene reaches it.", - "modeSwitching": "Toggled ON and OFF while stopped and while playing; cues, re-cues inside one gesture and jumps back to the previous pattern.", + "modeSwitching": "Toggled ON and OFF while stopped and while playing; cues at the six phases of a step, re-jumps while every track still waits for its first trig, and jumps back to the previous pattern.", "maxLoad": "One instance per unit. Runs once per sequencer clock tick in the tick interrupt (level 3; its ICR read 3 in the port), below the level-5 DSP frame interrupt, which preempts it; its deadline is the next tick: 8.33 ms at the top tempo of 300 BPM (2,200,000 cycles at 264 MHz).", - "inputConditions": "Authored instructions of dj_land per tick under ot_emu (PC watches on its entry and return and on both sides of each stock call), priced at 16 cycles each: at most 2,946 (47,136 cycles), on a cue that lands on its arming tick; 3,166 with the stock routines it calls (Program Change, the kernel post, the trig-condition reset), which are stock cost. Static bound from the source: 5,700 (91,200). Not chip timing." + "inputConditions": "Authored instructions of dj_land per tick under ot_emu (PC watches on its entry and the hook's return, on each stock routine it calls and the unit's return site after it, and on the frame interrupt, whose instructions are removed when it preempts the tick), priced at 16 cycles each: at most 9,078 (145,248 cycles), on a cue that lands on its arming tick and first publishes 16 waiting tracks; 17,225 with the stock routines it calls, which are stock cost. Static bound from the source, every reachable routine and loop at its cap: 41,017 (656,272). dj_swres, outside dj_land in stock's switch block: 13, once per stock pattern change. Not chip timing." }, "report": "TESTING.md" } @@ -8543,11 +8547,11 @@ "memory": { "regions": [ { - "name": "ColdFire code, two toast strings and 62 bytes of state (Direct Jump's linked unit, DRAM)", + "name": "ColdFire code, two toast strings and 176 bytes of state (Direct Jump's linked unit, DRAM)", "space": "sdram", - "words": 2016, + "words": 3938, "wordBits": 8, - "bytes": 2016, + "bytes": 3938, "scope": "shared" }, { @@ -8559,35 +8563,34 @@ "scope": "shared" }, { - "name": "Four six-byte detours and the four-byte [PTN]-layer YES pointer, written over stock in place", + "name": "Six six-byte detours and the four-byte [PTN]-layer YES pointer, written over stock in place", "space": "cpu-flash", - "words": 28, + "words": 40, "wordBits": 8, - "bytes": 28, + "bytes": 40, "scope": "shared" } ], "perInstanceBytes": 0, - "sharedBytes": 2106, + "sharedBytes": 4040, "maxInstances": 1, - "totalBytes": 2106, - "conditions": "From the two linked units (2,016 and 62 bytes of code and data, no bss; the USB package carries the same bytes, 2,080 aligned, with 18 relocations) and the five stock writes. No DSP memory, no heap, no saved data.", + "totalBytes": 4040, + "conditions": "From the two linked units (3,938 and 62 bytes of code and data, no bss; the USB package carries the same bytes aligned) and the seven stock writes. No DSP memory, no heap, no saved data.", "report": "TESTING.md" }, "hardware": { "kind": "functional", "status": "reported", - "model": "MKII", - "testedOn": "2026-10-25", - "tester": "repeat98", - "sourceRevision": "cf95656dbc0e386b4fda769e04cc18eb2a5d3364", - "imageSha256": "89a38e18728bb2039a0f5e3f39305fcb7be75e0db260acd6b33bd46d7e281cef", - "summary": "The owner's MKII, OS 1.40C, driven over USB by the agent at the owner's request, on the published beta base 109f23bd (flashed, running from RAM on the same image) with SIDECHAIN COMP, Ringmod SC, Mini Verb and POLY8 kept: package 89a38e18 installed and kept as a tester's sync does it (generation 7), listed as DirectJmp Kyoti; self-test passed (5/5 intact, both DSP modules ran, longest frame 419 us, card set saved 5/5); removal kept (generation 8), the four remained; self-test passed again (4/4, 418 us). 0.1.2 differs from the 0.1.1 package run the same way earlier that day only in its 15-character title. The 0.1.0 package's toggle and jumps ran on a development twin on 24 Oct 2026 with the byte-identical Direct Jump unit (evidence/hardware.md).", + "model": "MKI", + "testedOn": "2026-11-17", + "tester": "Zac Kyoti", + "sourceRevision": "20d216e1b454edee281d66dcfb179275fe24b4b0", + "imageSha256": "a7074bfd6fea3c9516eaf872d1693327957fe4c1248b01ead73136fadbfe9f1c", + "summary": "The author flashed the native card image of this module alone (OCTATRACK_MW_DJK73B.bin, MAIN OS a7074bfd, OS VERSION MW_DJK73B; DIRECT JUMP V7.3 byte for byte) on his MKI and reported all 13 checklist items passed: boot; the [PTN] + [YES] toggle and toast with the chooser shut; OFF after a power cycle; a jump into a pattern on another Part; jumps between other lengths and into PER TRACK scales, landing where the pattern would be since PLAY or the last normal pattern change; a cue in the last step on its grid point; 1:2 and 1:4 trigs in step across jumps, a latched [FILL] kept and a PRE trig played; a jump after a normal change from a 16-step A01 to a 12-step A02 landing a 12-step A03 in phase with A02, its 1:2 hi-hat in step; LFO AUTO CHANGE with a ringing sample; no pop with SILENCE TRACKS; a Plays Free MIDI track in PER TRACK mode; Direct Jump off as stock; nothing odd.", "limitations": [ - "One unit, driven by the agent; nothing judged by ear.", - "Not exercised on the unit with 0.1.1 or 0.1.2: the toggle, a jump and the MIDI Plays-Free fix itself (the beta base answers no key presses or RAM reads over USB). The author confirmed the fix on his MKI; the emulator gate runs the stall against the original OS.", - "Not run: a power cycle with 0.1.1 kept, the card build, an MKI, the site's review/Keep/Undo pages.", - "About ten minutes of use over the two runs." + "From the card only: the USB package ed3ba88a has not run on a unit; 0.1.x USB packages ran on an MKII (24 and 25 October 2026).", + "MKI only; not run on an MKII.", + "A functional report: the project, how long it ran and whether external MIDI gear was attached are not stated; nothing timed or recorded." ], "report": "evidence/hardware.md" } @@ -8611,9 +8614,9 @@ "page": "Main screen with the notification", "shows": "location-and-controls", "firmware": "1.40C", - "moduleVersion": "0.1.2-experimental", - "imageSha256": "4453c3684fd72b242bbf9b4abef5b53a344364274391352266b4d81919677768", - "setup": "Headless ot_emu; MKII panel; 128×64 LCD at integer scale 6; DSP cores running; empty scratch card, its missing-project prompts dismissed with three NO presses; native initialized state, no saved project. Static native build of this module alone with every stock effect kept (MAIN OS 4453c368…)." + "moduleVersion": "0.2.0-experimental", + "imageSha256": "a7074bfd6fea3c9516eaf872d1693327957fe4c1248b01ead73136fadbfe9f1c", + "setup": "Headless ot_emu; MKII panel; 128×64 LCD at integer scale 6; DSP cores running; empty scratch card, its missing-project prompts dismissed with three NO presses; native initialized state, no saved project. Static native build of this module alone with every stock effect kept (MAIN OS a7074bfd…)." } }, { @@ -8628,9 +8631,9 @@ "page": "Main screen while playing", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.1.2-experimental", - "imageSha256": "4453c3684fd72b242bbf9b4abef5b53a344364274391352266b4d81919677768", - "setup": "Headless ot_emu; MKII panel; 128×64 LCD at integer scale 6; DSP cores running; empty scratch card, its missing-project prompts dismissed with three NO presses; native initialized state, no saved project. Static native build of this module alone with every stock effect kept (MAIN OS 4453c368…)." + "moduleVersion": "0.2.0-experimental", + "imageSha256": "a7074bfd6fea3c9516eaf872d1693327957fe4c1248b01ead73136fadbfe9f1c", + "setup": "Headless ot_emu; MKII panel; 128×64 LCD at integer scale 6; DSP cores running; empty scratch card, its missing-project prompts dismissed with three NO presses; native initialized state, no saved project. Static native build of this module alone with every stock effect kept (MAIN OS a7074bfd…)." } }, { @@ -8645,9 +8648,9 @@ "page": "Main screen with the notification", "shows": "controls", "firmware": "1.40C", - "moduleVersion": "0.1.2-experimental", - "imageSha256": "4453c3684fd72b242bbf9b4abef5b53a344364274391352266b4d81919677768", - "setup": "Headless ot_emu; MKII panel; 128×64 LCD at integer scale 6; DSP cores running; empty scratch card, its missing-project prompts dismissed with three NO presses; native initialized state, no saved project. Static native build of this module alone with every stock effect kept (MAIN OS 4453c368…)." + "moduleVersion": "0.2.0-experimental", + "imageSha256": "a7074bfd6fea3c9516eaf872d1693327957fe4c1248b01ead73136fadbfe9f1c", + "setup": "Headless ot_emu; MKII panel; 128×64 LCD at integer scale 6; DSP cores running; empty scratch card, its missing-project prompts dismissed with three NO presses; native initialized state, no saved project. Static native build of this module alone with every stock effect kept (MAIN OS a7074bfd…)." } } ] diff --git a/src/community/module-changelogs/direct-jump-kyoti.json b/src/community/module-changelogs/direct-jump-kyoti.json index df2e4fcb29..cf4bdb337a 100644 --- a/src/community/module-changelogs/direct-jump-kyoti.json +++ b/src/community/module-changelogs/direct-jump-kyoti.json @@ -7,7 +7,7 @@ "Trig conditions carry on across a jump: 1:2 and the other A:B counts stand where the new pattern's would since that restart. A held [FILL] stays on, and a PRE trig right after the jump plays.", "A jump now lands just before the step, so the new pattern's first step is never late, and a cue made in the playing pattern's last step lands on its grid point too.", "With LFO AUTO CHANGE on, each track's new LFOs arrive with its first trig of the new pattern; with SILENCE TRACKS on, the tracks a jump silences are released just before the step, without a pop.", - "Known issue: the author tested these on his MKI in his own builds of the same code, which Modwerk now ships unchanged; this Modwerk build has not yet run on a unit." + "Known issue: the author ran this version on his MKI (all checks passed) with Modwerk now shipping his code unchanged; it has not yet run on an MKII or been installed over USB." ] }, { diff --git a/src/engine/assets/bootstrap-package.json b/src/engine/assets/bootstrap-package.json index 72dac0860f..a66db81e83 100644 --- a/src/engine/assets/bootstrap-package.json +++ b/src/engine/assets/bootstrap-package.json @@ -16,7 +16,7 @@ "reserveBytes": 10487808, "uncachedAlias": 134217728, "stageAlignment": 4096, - "sourceCommit": "ed4f006094266efdf576fda7ad65ea9ccc7b3c1f", + "sourceCommit": "bf0aa2577ece51efdadbec4f872a1154f0fdf1e2", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", @@ -44,7 +44,7 @@ "output-matrix": "0.1.1-experimental", "quantize-live-rec-toggle": "0.1.1-experimental", "apply-scene": "0.2.0-experimental", - "direct-jump-kyoti": "0.1.2-experimental", + "direct-jump-kyoti": "0.2.0-experimental", "dejavu": "0.1.0-experimental", "arp-key-locks": "0.1.0-experimental", "temp-save": "0.1.1-experimental", diff --git a/src/engine/assets/coldfire-packages.json b/src/engine/assets/coldfire-packages.json index 5ffe2b87e6..6448d114b4 100644 --- a/src/engine/assets/coldfire-packages.json +++ b/src/engine/assets/coldfire-packages.json @@ -246,7 +246,7 @@ "sha256": "d4b22d2975297e76f90654f25ca6eee4d28a288f727f4b3482fe73616b051378" } ], - "sourceCommit": "ed4f006094266efdf576fda7ad65ea9ccc7b3c1f", + "sourceCommit": "bf0aa2577ece51efdadbec4f872a1154f0fdf1e2", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", @@ -274,7 +274,7 @@ "output-matrix": "0.1.1-experimental", "quantize-live-rec-toggle": "0.1.1-experimental", "apply-scene": "0.2.0-experimental", - "direct-jump-kyoti": "0.1.2-experimental", + "direct-jump-kyoti": "0.2.0-experimental", "dejavu": "0.1.0-experimental", "arp-key-locks": "0.1.0-experimental", "temp-save": "0.1.1-experimental", diff --git a/src/engine/assets/descriptor-recipes.json b/src/engine/assets/descriptor-recipes.json index 7cfe0df583..00b0deffab 100644 --- a/src/engine/assets/descriptor-recipes.json +++ b/src/engine/assets/descriptor-recipes.json @@ -3629,7 +3629,7 @@ ] } ], - "sourceCommit": "ed4f006094266efdf576fda7ad65ea9ccc7b3c1f", + "sourceCommit": "bf0aa2577ece51efdadbec4f872a1154f0fdf1e2", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", @@ -3657,7 +3657,7 @@ "output-matrix": "0.1.1-experimental", "quantize-live-rec-toggle": "0.1.1-experimental", "apply-scene": "0.2.0-experimental", - "direct-jump-kyoti": "0.1.2-experimental", + "direct-jump-kyoti": "0.2.0-experimental", "dejavu": "0.1.0-experimental", "arp-key-locks": "0.1.0-experimental", "temp-save": "0.1.1-experimental", diff --git a/src/engine/assets/dsp-packages.json b/src/engine/assets/dsp-packages.json index f06bd6233f..c5fd2df756 100644 --- a/src/engine/assets/dsp-packages.json +++ b/src/engine/assets/dsp-packages.json @@ -2,7 +2,7 @@ "schema": 1, "revision": "b8deefc88b2c3e5f3c6158e364eb741df1924e1d", "license": "/licenses/octabam.txt", - "sourceCommit": "ed4f006094266efdf576fda7ad65ea9ccc7b3c1f", + "sourceCommit": "bf0aa2577ece51efdadbec4f872a1154f0fdf1e2", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", @@ -30,7 +30,7 @@ "output-matrix": "0.1.1-experimental", "quantize-live-rec-toggle": "0.1.1-experimental", "apply-scene": "0.2.0-experimental", - "direct-jump-kyoti": "0.1.2-experimental", + "direct-jump-kyoti": "0.2.0-experimental", "dejavu": "0.1.0-experimental", "arp-key-locks": "0.1.0-experimental", "temp-save": "0.1.1-experimental", diff --git a/src/engine/assets/menu-recipes.json b/src/engine/assets/menu-recipes.json index 3d9ed0f0e8..84a0365179 100644 --- a/src/engine/assets/menu-recipes.json +++ b/src/engine/assets/menu-recipes.json @@ -1021,7 +1021,7 @@ "caveLimit": 1074625596 } ], - "sourceCommit": "ed4f006094266efdf576fda7ad65ea9ccc7b3c1f", + "sourceCommit": "bf0aa2577ece51efdadbec4f872a1154f0fdf1e2", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", @@ -1049,7 +1049,7 @@ "output-matrix": "0.1.1-experimental", "quantize-live-rec-toggle": "0.1.1-experimental", "apply-scene": "0.2.0-experimental", - "direct-jump-kyoti": "0.1.2-experimental", + "direct-jump-kyoti": "0.2.0-experimental", "dejavu": "0.1.0-experimental", "arp-key-locks": "0.1.0-experimental", "temp-save": "0.1.1-experimental", diff --git a/src/engine/assets/module-build.json b/src/engine/assets/module-build.json index 95f1a1c3cf..29c6eff304 100644 --- a/src/engine/assets/module-build.json +++ b/src/engine/assets/module-build.json @@ -1,9 +1,9 @@ { "schemaVersion": 1, "kind": "source-packages", - "sourceCommit": "ed4f006094266efdf576fda7ad65ea9ccc7b3c1f", + "sourceCommit": "bf0aa2577ece51efdadbec4f872a1154f0fdf1e2", "nativeRevision": "b8deefc88b2c3e5f3c6158e364eb741df1924e1d", - "sourceTreeSha256": "44eb3d341ce29a2504513c72b1b9cecd7e13450bf6b226475de6abe8e8710d79", + "sourceTreeSha256": "ff61ed9f29249cac027e271e85658b31623bf1fdfce168a85bc45ed15c5bbea4", "compilerSha256": "97a6eb3ba96f9c1a44aec13f6fb3d5a83327770b8c34725a625582c1afa7c328", "moduleVersions": { "miniverb": "0.2.3-experimental", @@ -32,7 +32,7 @@ "output-matrix": "0.1.1-experimental", "quantize-live-rec-toggle": "0.1.1-experimental", "apply-scene": "0.2.0-experimental", - "direct-jump-kyoti": "0.1.2-experimental", + "direct-jump-kyoti": "0.2.0-experimental", "dejavu": "0.1.0-experimental", "arp-key-locks": "0.1.0-experimental", "temp-save": "0.1.1-experimental", @@ -44,47 +44,47 @@ "files": { "dsp-packages.json": { "bytes": 77212, - "sha256": "697122935477ff971c9dd228f4b74d2a2d3f44d743ceb466e5e0eb4ef78dec67" + "sha256": "5079615b1c866fab08450bbe111111f1a7bf75072cfebd4d46b0acfdb237c5f9" }, "resident-dsp.json": { "bytes": 8432, - "sha256": "c127347d2b203e5cc4b2c91bd842a6fda7351c3f6ea2179f53f64b4037922f82" + "sha256": "3f8731475bfbb3dd6322b7cab41bf17b5f75d06bad092d7b51c930cc35752fa2" }, "coldfire-packages.json": { "bytes": 363671, - "sha256": "185a6993440c41a7027f7bf6c171fed08310d0d25cfbee3707672134eb107fc7" + "sha256": "6b9df07450ed533eddbe1f01c525b7904719038feffaf510c6e0fd259c3043c7" }, "rom-packages.json": { "bytes": 29951, - "sha256": "0cecce42c0b8fa3753799a8c5b3a9e80a436e1f43307e6b13d1ff8a924794b9d" + "sha256": "f92398103a614796984995818c72f2ffcf95bedac7f97b2612fe72d690e3517a" }, "bootstrap-package.json": { "bytes": 4058, - "sha256": "a9fa1d01dd72ba7785871607929d5ec9fcab14412cc5b5002b9876d12c0e4535" + "sha256": "edde060a0f392d4e209636bb0c8ea380b0c0d08d5325181a438a07df2704a123" }, "menu-recipes.json": { "bytes": 26082, - "sha256": "884b14003e0f2976b0da6511c92c6bc8b78eadb824d4dbfc0635cf706f741934" + "sha256": "4bc7034f18110ee994f69c82079d4900209b6a53e9ede345166175596073ecec" }, "descriptor-recipes.json": { "bytes": 70184, - "sha256": "f35d7bbdcd8c43a4e0be33ff2a2cf4a12cee41f5b1be7676cfabc0654d36d3a6" + "sha256": "0a929c6e8737e3b9a8f770d72c3879b394bd771551eb4c8adeb97addff1c5812" }, "platform-writes.json": { "bytes": 17036, - "sha256": "27b2a1cb06f98c8a1299e406b9d6d44bcb3773c4aa21f34d6e64b63f00b7f05a" + "sha256": "5bc0093bfea392b273cda04814d9725be0f72bd73f8a84885c3f299a2474657d" }, "requested-packages.json": { - "bytes": 1331942, - "sha256": "e21463ea490bd60753c6595dccad98f7c594651bf962304339c35c92c6590894" + "bytes": 1340399, + "sha256": "fc4a80e98943e72f15132bd4779938e7abeb622f0c7c13d3e502c13296a61d40" }, "utility-packages.json": { "bytes": 13186, - "sha256": "81602a690ea568af61b9e7bb22d3539045d7e4b710368f865284b117a4cbfd37" + "sha256": "fbc053a48ca6548720ebc8c31a75f0b0a435b43c79eb6718c6623d16b8d48d2b" }, "usb-audio-packages.json": { "bytes": 737828, - "sha256": "6266ce7e830ddd824c95f460b26a8852a8141920de439e3212999fb4e4e6de22" + "sha256": "e047f2410ff9244897b27b7e7f53fc54bece03889f673e30afe2d0aec8fce475" } }, "approval": null, diff --git a/src/engine/assets/platform-writes.json b/src/engine/assets/platform-writes.json index 92feae3664..98536d5b95 100644 --- a/src/engine/assets/platform-writes.json +++ b/src/engine/assets/platform-writes.json @@ -492,7 +492,7 @@ "sha256": "8a5b26c7f7c97f1e945c2274fb2632e05fc94e7babb941e8b7c80f7e0f24bf61" } ], - "sourceCommit": "ed4f006094266efdf576fda7ad65ea9ccc7b3c1f", + "sourceCommit": "bf0aa2577ece51efdadbec4f872a1154f0fdf1e2", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", @@ -520,7 +520,7 @@ "output-matrix": "0.1.1-experimental", "quantize-live-rec-toggle": "0.1.1-experimental", "apply-scene": "0.2.0-experimental", - "direct-jump-kyoti": "0.1.2-experimental", + "direct-jump-kyoti": "0.2.0-experimental", "dejavu": "0.1.0-experimental", "arp-key-locks": "0.1.0-experimental", "temp-save": "0.1.1-experimental", diff --git a/src/engine/assets/requested-packages.json b/src/engine/assets/requested-packages.json index 3d4184768c..fdc621e255 100644 --- a/src/engine/assets/requested-packages.json +++ b/src/engine/assets/requested-packages.json @@ -1,7 +1,7 @@ { "schema": 1, "revision": "b8deefc88b2c3e5f3c6158e364eb741df1924e1d", - "sourceCommit": "ed4f006094266efdf576fda7ad65ea9ccc7b3c1f", + "sourceCommit": "bf0aa2577ece51efdadbec4f872a1154f0fdf1e2", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", @@ -29,7 +29,7 @@ "output-matrix": "0.1.1-experimental", "quantize-live-rec-toggle": "0.1.1-experimental", "apply-scene": "0.2.0-experimental", - "direct-jump-kyoti": "0.1.2-experimental", + "direct-jump-kyoti": "0.2.0-experimental", "dejavu": "0.1.0-experimental", "arp-key-locks": "0.1.0-experimental", "temp-save": "0.1.1-experimental", @@ -1087,7 +1087,7 @@ { "label": "dj7", "moduleId": "direct-jump-kyoti", - "version": "0.1.2-experimental", + "version": "0.2.0-experimental", "key": "DIRECT_JUMP_KYOTI", "author": "Zac-Kyoti", "nativeAuthor": "Zac-Kyoti", @@ -1096,12 +1096,12 @@ "caveAddress": null, "source": "modules/direct-jump-kyoti/patch_directjump_v7.s", "sources": { - "modules/direct-jump-kyoti/patch_directjump_v7.s": "c66436aa1b07ee4c094175249a561a50a8db6af1f5813ae5b2c006638c56d011", - "modules/direct-jump-kyoti/manifest.py": "cb692249697b3c982f2ac984b7a50f7933b7ad9dcd50b02600b966df04b53c8e" + "modules/direct-jump-kyoti/patch_directjump_v7.s": "cae97228230f43214ff3ca6ac8fb84a082397f4dec67c59ca772e56f95b4b841", + "modules/direct-jump-kyoti/manifest.py": "f449e3af81f61d400cabbdc73c4b5d1f8f1332d6f651cc0b118f6c020aefc9f1" }, - "bytes": 6772, - "code": "7f454c460102010000000000000000000001000400000001000000000000000000001934000000260034000000000028000800077001b0af00086600005c2039460d17425380660000504ab9460d1aec660000464ab9460e5cd06600003c203a077c0a800000000102800000000123c00000000041fa00344a80670441fa001c487800442f084eb94005a2b8508f700123c0460d173e4e754e75444952454354204a554d50204f4e0000444952454354204a554d50204f4646004fefffc448d77fff7001b0b9800065b8670842b900000000600652b9000000004aba0700670000847001b0b9800065b8660000784ab9460d1aec6600006e4ab98000654666000064103a06d26700007e0c000003660e6100065a423900000000600001ae0c000001660001a61039800065c0b03a06ac660c1039800065bfb03a06a167104239800066874239000000006000003a1039800066870c000001660001706100017c60000168103a06700c000001660642398000668742390000000070ff13c000000000600001461039800065c00c00ffff67e2b039800065be66501039800065bfb039800065bd6642103a062d0c00ffff6700ffc2b039800065be660e103a061bb039800065bd6700ffac70001039800065be2f0070001039800065bd2f004eb94009e884508f6000ff8c1039800065c0b03a05e5660c1039800065bfb03a05db67341039800065c013c0000000001039800065bf13c00000000070001039800065c02f0070001039800065bf2f004eb94009e884508f4a39800066876e00008c70001039800065bf72001239800065c0610003326100034e2e3a05860687000000007c002007d086610004644a806d12223a057e24004c4120024c012800b082670e52860c86000000786dd86000003c1039800065c013c0000000001039800065bf13c0000000002206528113c1800066870c810000000166086100001e6000000a700113c0000000004cd77fff4fef003c1039800066874e751039800065be13c0800065c11039800065bd13c0800065c21039800065c013c0800065be1039800065bf13c0800065bd70001039800065bd223c0009b3404c01080072001239800065be243c00008ed84c021800d08145f9400e21e0d5c06100026a2e3a04a206870000000023c700000000263a049a2007d0835380223a0494670c24004c4120024c012800908228004c43400423c4800066382a009a83528541f98000651643f98000653647fa046c49fa04787c107200121b20054c4100007400141c7202b2826e0e22004c4210014c02180090816002700030c04219538666d4610003304279800066264279800066804279800066824279800066841039800065bd13c0400d816841f9400d816761000026610000721039800065be13c0400d816c41f9400d816b6100000c700213c0000000004e752f084879460d17ae43f940000c3c4e91508f4e75103a03ae0c000002660e700313c0000000004a3a039e4e754a398000002a4e754ab9460d1e706708700123c0460d1e6c4879400bf0f24ef94004341e223c00008e571032180013c0400d816a41f9400d81696100ff98780376532c3c0000091a610000ce23c446c7fa8020394610757c23c0800019e41039800065bd13c046c7ff40223c00008e571032180013c046c7ff627803263c000048fb2c3c000008b06100008e23c446c7a1207a004a3980001860661610398000002808000000670a4ab946104ca867027a012039461075644a85660606800000313823c046c76aa6700123c046c76a222039461075644a8567080480000041a0600604800000106823c046c76aaa1039800065bd13c046c7a850223c00008e571032180013c046c7a9344878ffff4eb9400a539c588f4e757a0810323800671a0c000001670e0c00ffff660e4a398000004f67067001eba88880d68652857010b08566d64e75243c0009b3404c020800243c00008ed84c021800d08145f9400e21e0d5c04e7541f9400aba50203c00008e551e32080072004a076624203c00008e54123208007006b2806302720226301c00203c00008e537800183208006026203c00008e52123208007006b2806302720226301c00203c00008e503832080048c46e02780023c30000000020044c03080023c0000000002a0347fa01da49fa01e64bf98000663e7c007008b0866f12203c0000091a4c060800068000000050601420065180223c000008b04c0108000680000048f843f208004a2900046708720012356800601672004a07660c203c00008e54123208006004122900017006b2806306243a0164600424301c0016c24a07660418c4600218d1200522024a81671426004c4130034c013800908326002001220360e84c4050054c02580052867010b0866600ff6423c5000000004e75263a0118d0835380223a0114670c24004c4120024c0128009082908352804e752a394610757c41f98000190443f946c7e99847f946c7fe44612c41f98000198447f946c7fe8c43f946c7faa461182a394610756441f946c76a2643f946c769c047f946c77be27c007800700010336800090067182204e789d28624301c0094856b0a42b11c0009801780680052847003b08466d652867008b08666cc4e7541f9400aba50700010398000663d7206b0816302700226300c007a00223a0062670c92835281b2ba00506e027a0143f98000663e45f9800065d37c0072004a85671a70001031680022030c8000000006620422300c0092836a0272001581680052867010b08666d44e7500ff00ffffff0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000100000000000000000000000003000003000000000000000000000000030000040000000100000001000000000000fff100000011460d1742000000000000fff10000001a460d173e000000000000fff100000023460e5cd0000000000000fff100000029460d1aec000000000000fff10000003180006546000000000000fff10000003b4005a2b8000000000000fff100000042460d1e70000000000000fff100000050460d1e6c000000000000fff1000000614004341e000000000000fff10000007600000044000000000000fff100000083800065b8000000000000fff10000008f800065bd000000000000fff100000098800065be000000000000fff1000000a0800065bf000000000000fff1000000aa800065c0000000000000fff1000000b3800065c1000000000000fff1000000bc800065c2000000000000fff1000000c6800065b2000000000000fff1000000d2800065b6000000000000fff1000000db8000663d000000000000fff1000000e4400aba50000000000000fff1000000ec00000006000000000000fff1000000f600000002000000000000fff1000000ff80006687000000000000fff10000010a80006516000000000000fff10000011480006536000000000000fff10000011e80006638000000000000fff10000012780006626000000000000fff10000013180006680000000000000fff10000013a80006682000000000000fff10000014380006684000000000000fff10000014c8000002a000000000000fff1000001564009e884000000000000fff10000015e40013a08000000000000fff10000016640000c3c000000000000fff10000016c460d17ae000000000000fff100000175400d8167000000000000fff100000181400d8168000000000000fff100000191400d8169000000000000fff10000019a400d816a000000000000fff1000001a700008e57000000000000fff1000001ae00000003000000000000fff1000001b78000004f000000000000fff1000001c246c7fa80000000000000fff1000001cd800019e4000000000000fff1000001d746c7ff40000000000000fff1000001e146c7ff62000000000000fff1000001eb46c7a120000000000000fff1000001f646c76aa6000000000000fff10000020146c76a22000000000000fff10000020b46c76aaa000000000000fff10000021646c7a850000000000000fff10000022046c7a934000000000000fff10000022a400a539c000000000000fff100000235400d816b000000000000fff10000023d400d816c000000000000fff100000249400e21e0000000000000fff1000002520009b340000000000000fff10000025e00008ed8000000000000fff10000026900008e53000000000000fff10000027400008e50000000000000fff10000028000008e55000000000000fff10000028d00000050000000000000fff1000002930000091a000000000000fff10000029c000048f8000000000000fff1000002a2000008b0000000000000fff1000002ab00000000000000000000fff1000002b300000001000000000000fff1000002bc00000002000000000000fff1000002c700000003000000000000fff1000002d08000663e000000000000fff1000002da800065d3000000000000fff1000002e100008e54000000000000fff1000002eb00008e52000000000000fff1000002f400000000000000000000fff1000002fa00000001000000000000fff10000030000000004000000000000fff1000003074610757c000000000000fff10000030c46107564000000000000fff10000031100000000000000000000fff10000031900000064000000000000000100000323000007a800000000000000010000032b000000760000000000000001000003360000004c00000000000000010000033f00000066000000000000000100000349000000a0000000000000000100000350000007ac000000000000000100000355000000a600000000000000010000035d00000130000000000000000100000364000007a200000000000000010000036d00000152000000000000000100000375000000ea00000000000000010000037f0000073800000000000000010000038800000296000000000000000100000390000007a600000000000000010000039a0000010a0000000000000001000003a3000007a70000000000000001000003ae0000011a0000000000000001000003b6000002a60000000000000001000003c0000001400000000000000001000003c9000007a30000000000000001000003d2000001b60000000000000001000003da000001960000000000000001000003e3000007a50000000000000001000003ed000001ce0000000000000001000003f7000002020000000000000001000003fe0000055000000000000000010000040600000570000000000000000100000411000002300000000000000001000004190000069a0000000000000001000004230000024e00000000000000010000042b000007bc0000000000000001000004300000025c0000000000000001000004390000028e000000000000000100000441000007b000000000000000010000044a000007b4000000000000000100000452000007b80000000000000001000004570000033400000000000000010000045e000007c0000000000000000100000465000007d000000000000000010000046c0000035c0000000000000001000004740000037e00000000000000010000047d00000380000000000000000100000486000006ba00000000000000010000048f000003de0000000000000001000004970000042e0000000000000001000004a20000040a0000000000000001000004ab000007a40000000000000001000004b3000004220000000000000001000004bc000005220000000000000001000004c4000004bc0000000000000001000004ca000004cc0000000000000001000004d1000004ec0000000000000001000004d8000004f20000000000000001000004df000005240000000000000001000004e5000005440000000000000001000004eb0000053e0000000000000001000004f2000005aa0000000000000001000004f8000005d00000000000000001000004fd000005f40000000000000001000005050000060c00000000000000010000050d0000062000000000000000010000051500000632000000000000000100000520000006480000000000000001000005270000064400000000000000010000053000000662000000000000000100000539000006640000000000000001000005400000066800000000000000010000054700000680000000000000000100000550000006b400000000000000010000055700000700000000000000000100000560000007020000000000000001000005670000070400000000000000010000056f000007260000000000000001000005770000076600000000000000010000057d000007740000000000000001000005850000079400000000000000010000058e00000000000000001000000100000598000000860000000010000001000005a0000003f20000000010000001000005a800000412000000001000000100444a5f4d4f44455f494e5f434156450050544e5f4d4f44450050544e5f5553454400504f505550004152525f41435400434841494e5f414354004e4f54494659004e4f544946595f48414e444c45004e4f544946595f434f554e54444f574e0050544e5f4c415945525f52454c5f524553554d4500444a5f544f4153545f445552005452414e53504f52545f4c004143545f42414e4b004143545f5041540050454e445f42414e4b0050454e445f50415400505245565f50415400505245565f42414e4b004d41535445525f53544550005449434b5f435452005343414c455f4958004c454e5f54424c005343414c455f4d4158005343414c455f3158004c414e445f434e54444e00534e41505f5354455000534e41505f5449434b00524553554d455f4c00484f4c445f4d41534b00524553594e43383000524553594e43383200524553594e433834004d4944495f53454e440050435f53454e4400535052494e5446004b504f53540055495f5155455545004d53475f42414e4b504154004d53475f42414e4b5041545f415247004d53475f50415254004d53475f504152545f41524700505f5041525400545f53494c454e540053494c454e545f44454600454e475f41464c41475300454e475f4154494d4500454e475f4142414e4b00454e475f415041525400454e475f4d464c41475300454e475f4d54494d453100454e475f4d464c414700454e475f4d54494d453200454e475f4d42414e4b00454e475f4d5041525400434f4e445f5245534554004d53475f504154004d53475f5041545f415247005041545f424153450042414e4b5f535452494445005041545f53545249444500505f4c454e5f4259544500505f4d4c454e5f574f524400505f5343414c455f4d4f444500415f4c454e00415f535452494445004d5f4c454e004d5f5354524944450053545f49444c450053545f41524d45440053545f4c414e44494e470053545f46495855500054524b5f5343414c450052454c4f414400505f5343414c455f4e00505f4d5343414c4500545f4c454e00545f53434c00545f464c41470053434c4b004d434c4b00444a5f544f465300646a745f73746f636b00444a5f4d4f444500646a5f6d73675f6f666600646a745f73686f7700646a5f6d73675f6f6e0064745f72756e00646a5f540064745f646f6e6500646c5f6f666600646a5f737461746500646c5f69646c6500646c5f6e6f7466697800646c5f666978757000646c5f646f6e6500646a5f61726d7061740064615f726563756500646a5f61726d62616e6b0064615f73616d6500646c5f636f6d6d697400646c5f636c65617200646a5f706370617400646c5f7265616c00646c5f706366697800646a5f706362616e6b00646c5f706373656e6400646c5f61726d00646a5f626c6f6200646a5f62706172616d730064615f7363616e00646a5f747072696d650064615f6e65787400646a5f4c0064615f666f756e6400646c5f61726d3200646a5f746c616e6400646a5f7470734d00646a5f430064635f6e6f6300646a5f74707300646a5f6c656e0064635f6c6f6f700064635f73746570300064635f73746f726500646a5f707572676500646a5f706f737400646a5f68616e646f666600646e5f73746f636b00646a5f7a65726f006470725f646f6e6500686f5f6269747300686f5f6d7400686f5f6d743100686f5f6d743200686f5f6d743300686f5f6c7000686f5f6e7800686f5f7365740062705f70740062705f630062705f6c6f6f700062705f6d6964690062705f626173650062705f626c6f6273636c0062705f73636c0062705f707473636c0062705f70746c656e0062705f6c636d0062705f6763640062705f6763646f6b0074705f6e6f630070675f7461626c650070675f74726b0070675f736c6f740070675f6e6578740066785f676f0066785f6c6f6f700066785f73746f726500646a5f746f67676c6500646a5f6c616e6400646a5f6e6f666100646a5f70746e72656c0000000000003c00000101000007a80000009a00000101000007ac000000a200000101000007ac000000e200000101000007a20000011200000101000007a20000014200000101000007a20000014a00000101000007a3000001d600000101000007a3000001e200000101000007a50000026400000101000007a60000027000000101000007a70000029200000101000007a20000031400000101000007b0000003d800000101000007a20000040000000101000007a2000005d200000101000007b4000005de00000101000007b80000069400000101000007bc002e73796d746162002e737472746162002e7368737472746162002e72656c612e74657874002e64617461002e62737300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000001000000060000000000000034000007e0000000000000000000000004000000000000001b00000004000000400000000000001828000000d80000000500000001000000040000000c000000260000000100000003000000000000081400000000000000000000000000000004000000000000002c000000080000000300000000000008140000000000000000000000000000000400000000000000010000000200000000000000000000081400000a6000000006000000a200000004000000100000000900000003000000000000000000001274000005b20000000000000000000000010000000000000011000000030000000000000000000019000000003100000000000000000000000100000000", - "sha256": "a8d5e79c0823996e80b5ae7bf788b34179410956bea69f0aaf3c864de30e9330", + "bytes": 10608, + "code": "7f454c460102010000000000000000000001000400000001000000000000000000002830000000260034000000000028000800077001b0af00086600005c2039460d17425380660000504ab9460d1aec660000464ab9460e5cd06600003c203a0efa0a800000000102800000000123c00000000041fa00344a80670441fa001c487800442f084eb94005a2b8508f700123c0460d173e4e754e75444952454354204a554d50204f4e0000444952454354204a554d50204f4646004fefffc448d77fff610003327001b0b9800065b8670e42b90000000042b900000000600652b9000000004aba0e74670000887001b0b9800065b86600007c4ab9460d1aec660000724ab98000654666000068103a0dd86700008c0c00000366126100094c610008ee423900000000600001ba0c000001660001b21039800065c0b03a0dae660c1039800065bfb03a0da36710423980006687423900000000600000441039800066870c0000016600017c610002e8600001744a3a0d79670461000b1e103a0d680c000001660642398000668742390000000070ff13c000000000600001481039800065c00c00ffff67e2b039800065be66501039800065bfb039800065bd6642103a0d250c00ffff6700ffc2b039800065be660e103a0d13b039800065bd6700ffac70001039800065be2f0070001039800065bd2f004eb94009e884508f6000ff8c1039800065c0b03a0cdd660c1039800065bfb03a0cd367341039800065c013c0000000001039800065bf13c00000000070001039800065c02f0070001039800065bf2f004eb94009e884508f4a39800066876e00008e70001039800065bf72001239800065c0610005a2610005be2e3a0cec0687000000007c002007d0865280610006d24a806d12223a0ce624004c4120024c012800b082670e52860c86000000786dd66000003c1039800065c013c0000000001039800065bf13c0000000002206528113c1800066870c810000000166086100017e6000000a700113c0000000004a3a0c0767046100095c103a0bf60c0000016604610000124cd77fff4fef003c1039800066874e754a398000667e660000e070001039800065bd72001239800065be610004e4720012398000663d7006b2806302720241f9400aba5024301c001239800065b649c15281b2826d0000a274003439800065b2528202820000ffff203c00008e561232080049c16a0812398000004e49c141f9400d80dc26301c004a836f0a20024c4308014a81674220398000662c72ffb0816706b0826e526030203c00008e554a320800670e203c00008e503232080048c1600c203c00008e531232080049c170ffb2806724b2826e201039800065be13c0800065c01039800065bd13c0800065bf700113c0000000004e754a3a0af467564239000000001039800065c0b039800065be66421039800065bfb039800065bd6634103a0aca13c0800065c0103a0ac113c0800065bf1039800065be13c0400d816c4879400d816b4879460d17ae4eb940000c3c508f4e754a3a0a9767046100083c1039800065be13c0800065c11039800065bd13c0800065c21039800065c013c0800065be1039800065bf13c0800065bd70001039800065bd223c0009b3404c01080072001239800065be243c00008ed84c021800d08145f9400e21e0d5c06100036e2e3a0a9c068700000000263a0a9e203a0a924c030800de8023c7000000002007d0835380223a0a88670c24004c4120024c012800908228004c43400423c4800066382a009a83548541f98000651643f98000653647fa0a6049fa0a6c7c107200121b20054c4100007400141c7202b2826e0e22004c4210014c02180090816002700030c04219538666d4610004364279800066264279800066804279800066824279800066841039800065bd13c0400d81684879400d81674879460d17ae4eb940000c3c508f610000901039800065be13c0400d816c4879400d816b4879460d17ae4eb940000c3c508f700213c0000000004e75103a09300c0000026636700313c0000000002f082f0141f9800065d372101010538010c0538166f61039800065b6538013c0800065b6221f205f4a3a08f84e754a398000002a4e754ab9460d1e706708700123c0460d1e6c4879400bf0f24ef94004341e223c00008e571032180013c0400d816a4879400d81694879460d17ae4eb940000c3c508f780376532c3c0000091a6100019623c446c7fa8023c40000000020394610757c068000285ff023c0800019e41039800065bd13c046c7ff40223c00008e571032180013c046c7ff627803263c000048fb2c3c000008b06100014a23c446c7a12023c4000000007a004a3980001860661610398000002808000000670a4ab946104ca867027a012039461075640680000041a04a85660606800000313823c046c76aa6700123c046c76a222039461075640680000041a04a8567080480000041a0600604800000106823c046c76aaa1039800065bd13c046c7a850223c00008e571032180013c046c7a934610003c2600000022e3a08366a027e004aba0836671e2c3a0830200690ba08262c4020074c4600002a404c06080022079280244147fa081a49fa082641f94610791843f9461079797a107800181b7600161c660276014c0438004aba07ec660c2007d08453804c430000603e200ed08422004c43100124014c032800908224014a80670252822c0d4c026800240ad48453824c432002b481630224014a806706b5ce630252822006d08220c012fc000153856600ff964e757a0810323800671a0c000001670e0c00ffff660e4a398000004f67067001eba88880d68652857010b08566d64e75243c0009b3404c020800243c00008ed84c021800d08145f9400e21e0d5c04e7541f9400aba50203c00008e551e32080072004a076624203c00008e54123208007006b2806302720226301c00203c00008e537800183208006026203c00008e52123208007006b2806302720226301c00203c00008e503832080048c46e02780023c30000000020044c03080023c0000000002a0347fa06d449fa06e04bf98000663e7c007008b0866f12203c0000091a4c060800068000000050601420065180223c000008b04c0108000680000048f843f208004a2900046708720012356800601672004a07660c203c00008e54123208006004122900017006b2806306243a065e600424301c0016c24a07660418c4600218d1200522024a81671426004c4130034c013800908326002001220360e84c4050054c02580052867010b0866600ff6423c5000000004e75263a0612223a06064c031800d081d08353806b12223a0602670c24004c4120024c0128009082908352804e752a394610757c263c00142ff841f98000190443f946c7e99847f946c7fe44613241f98000198443f946c7faa447f946c7fe8c611e2a3946107564263c000020d041f946c76a2643f946c769c047f946c77be27c0078007000103368000900671a2204e789d28624301c009485b4836d0a42b11c0009801780680052847003b08466d452867008b08666ca4e75283a04e27a00200550800104670a2f054eb940008f84588f52857008b08566e64e75700010398000663d0c80000000066302700241f9400aba5020300c00448023c00000000070003039800065b223c0000000004ef9400a539c41f9400aba50700010398000663d7206b0816302700226300c007a00223a04e8670c92835281b2ba04d66e027a0143f98000663e45f9800065d37c0072004a85671a70001031680022030c8000000006620422300c0092836a0272001581680052867010b08666d44e754a3a041a670a423900000000b0804e754a39800000504e754a398000005066024e751039800065bd13c000000000223c00008e571032180013c0000000002a394610757c068500142ff82839461075640684000020d07c007e02203a03c40c86000000086504203a03bc22060281000000075081030066102006610000484a8067062e3c0000fffe2006d08041fa039a31870800d08041fa03b0218508000c860000000865042184080052867010b0866600ffa6700113c00000000013c0000000004e7526000c80000000086412223c0000091a4c01080041f20800725060185180223c000008b04c0108000680000048d041f208007228700010301800223c00008e554a321800660c223c00008e537000103218002428000426107220b081640c76007201e1a95381c48160160480000000200c800000002064087201e1a95381c681848320024e754fefffe848d7070e70001039800065bd72001239800065be6100fbd620066100ff5a4cd7070e4fef00184e757c0076002206d28141fa02a8700030301800672c0c800000fffe6614610000d44a8066186100ffae4a806710760160105380318018006704760160046100003c52867010b08666bc13c3000000004e757c002006d08041fa025a4a70080067046100001852867010b08666e64239000000004239000000004e752006d08041fa02324270080020060c8000000008650251802f007000103a02102f00103a02092f000c860000000864084eb940001f186004610000e64fef000c4e75202f000c0c800000000864064ef940001f1851802f40000c600000c4700113c0000000002f2f00082f2f00084eb940009e00508f4e754fefffe448d70c3e2006e58841fa01d22830080026060c8600000008642024394610757c2a3c00142ff8247c46c7fe44207c80001904227c46c7e998602051832439461075642a3c000020d0247c46c77be2207c46c76a26227c46c769c07200700010323800030067262001e788d083264020310c00080000026714200b20300c00264090846b08200b9082b0856d0c52817003b08166c87000600270014cd70c3e4fef001c4e754fefffec48d70c1c202f0018222f001c242f0020263c0009b3404c003800247c40170f60d5c3263c000018b24c013800d5c376444c023800207c46c76dc0d1c32602eb8b224ad3fc000003e2d3c3782010d9538466fa76244c023800224ad3fc000004e2d3c32649d7fc00000009782410d9538466fa78001033480049c0720ab0816f4804800000000b224ad3fc000017922200e989d3c12202d281d282d284207c46c7738c2601e98bd1c3761010d9538366fa224ad3fc00001812d080d3c0207c46c7750cd281d1c1309152840c840000000366a2207c8000666e202f001811802800202f001c118028082002e588207c8000664e42b008004cd70c1c4fef00144e7500ff00ffffff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000100000000000000000000000003000003000000000000000000000000030000040000000100000001000000000000fff100000011460d1742000000000000fff10000001a460d173e000000000000fff100000023460e5cd0000000000000fff100000029460d1aec000000000000fff10000003180006546000000000000fff10000003b4005a2b8000000000000fff100000042460d1e70000000000000fff100000050460d1e6c000000000000fff1000000614004341e000000000000fff10000007600000044000000000000fff100000083800065b8000000000000fff10000008f800065bd000000000000fff100000098800065be000000000000fff1000000a0800065bf000000000000fff1000000aa800065c0000000000000fff1000000b3800065c1000000000000fff1000000bc800065c2000000000000fff1000000c6800065b2000000000000fff1000000d2800065b6000000000000fff1000000db8000663d000000000000fff1000000e4400aba50000000000000fff1000000ec00000006000000000000fff1000000f600000002000000000000fff1000000ff80006687000000000000fff10000010a80006516000000000000fff10000011480006536000000000000fff10000011e80006638000000000000fff10000012780006626000000000000fff10000013180006680000000000000fff10000013a80006682000000000000fff10000014380006684000000000000fff10000014c8000002a000000000000fff1000001564009e884000000000000fff10000015e40013a08000000000000fff10000016640000c3c000000000000fff10000016c460d17ae000000000000fff100000175400d8167000000000000fff100000181400d8168000000000000fff100000191400d8169000000000000fff10000019a400d816a000000000000fff1000001a700008e57000000000000fff1000001ae00000003000000000000fff1000001b78000004f000000000000fff1000001c246c7fa80000000000000fff1000001cd800019e4000000000000fff1000001d746c7ff40000000000000fff1000001e146c7ff62000000000000fff1000001eb46c7a120000000000000fff1000001f646c76aa6000000000000fff10000020146c76a22000000000000fff10000020b46c76aaa000000000000fff10000021646c7a850000000000000fff10000022046c7a934000000000000fff10000022a400a539c000000000000fff10000023500008e56000000000000fff10000023e8000004e000000000000fff100000249400d80dc000000000000fff1000002538000662c000000000000fff10000025c8000667e000000000000fff10000026540001f18000000000000fff10000026f0008ed80000000000000fff100000278000018b2000000000000fff10000027f46c76dc0000000000000fff10000028446c7738c000000000000fff10000028946c7750c000000000000fff10000021a8000666e000000000000fff10000028e8000664e000000000000fff100000294000048d0000000000000fff10000029a40008f84000000000000fff1000002a3400d816b000000000000fff1000002ab400d816c000000000000fff1000002b7400e21e0000000000000fff1000002c00009b340000000000000fff1000002cc00008ed8000000000000fff1000002d700008e53000000000000fff1000002e200008e50000000000000fff1000002ee00008e55000000000000fff1000002fb00000050000000000000fff1000003010000091a000000000000fff10000030a000048f8000000000000fff100000310000008b0000000000000fff10000031900000000000000000000fff10000032100000001000000000000fff10000032a00000002000000000000fff10000033500000003000000000000fff10000033e8000663e000000000000fff100000348800065d3000000000000fff10000034f00008e54000000000000fff10000035900008e52000000000000fff10000036200000000000000000000fff10000036800000001000000000000fff10000036e00000004000000000000fff1000003754610757c000000000000fff10000037a46107564000000000000fff10000037f00285ff0000000000000fff100000386000041a0000000000000fff10000038d00000000000000000000fff1000003950000006400000000000000010000039f00000f260000000000000001000003a7000000760000000000000001000003b20000004c0000000000000001000003bb000000660000000000000001000003c5000003c20000000000000001000003cf000000aa0000000000000001000003d600000f2a0000000000000001000003db00000f2e0000000000000001000003e2000000b00000000000000001000003ea0000013e0000000000000001000003f100000eb20000000000000001000003fa0000016a000000000000000100000402000000f800000000000000010000040c00000a34000000000000000100000415000009da00000000000000010000041f000002b000000000000000010000042700000eb60000000000000001000004310000011800000000000000010000043a00000eb70000000000000001000004450000012800000000000000010000044d0000042000000000000000010000045700000eb900000000000000010000045e00000c640000000000000001000004690000015800000000000000010000047200000eb300000000000000010000047b000001ce000000000000000100000483000001ae00000000000000010000048c00000eb5000000000000000100000496000001e60000000000000001000004a00000021a0000000000000001000004a7000007d80000000000000001000004af000007f80000000000000001000004ba000002480000000000000001000004c2000009220000000000000001000004cc000002680000000000000001000004d400000f3e0000000000000001000004d9000002760000000000000001000004e2000002a80000000000000001000004ea00000c140000000000000001000004f2000002c80000000000000001000004f9000002d8000000000000000100000501000003c00000000000000001000005070000035e00000000000000010000050e000003a00000000000000001000005150000037000000000000000010000051c00000eb80000000000000001000005230000041e00000000000000010000052a00000f3600000000000000010000053200000f3200000000000000010000053b00000f3a000000000000000100000540000004c200000000000000010000054700000f4200000000000000010000054e00000f52000000000000000100000555000004ea00000000000000010000055d0000050c0000000000000001000005660000050e00000000000000010000056f0000094e000000000000000100000578000005e4000000000000000100000583000005c000000000000000010000058c0000059e00000000000000010000059200000eb400000000000000010000059a000005d80000000000000001000005a3000007aa0000000000000001000005ab00000ebe0000000000000001000005b300000ec20000000000000001000005bb0000068e0000000000000001000005c1000006a40000000000000001000005c8000006ca0000000000000001000005cf000006d00000000000000001000005d600000ab60000000000000001000005df000006fa0000000000000001000005e7000007260000000000000001000005ef0000073c0000000000000001000005f70000075e0000000000000001000005fe0000079c000000000000000100000607000007ac00000000000000010000060d000007cc000000000000000100000613000007c600000000000000010000061a00000832000000000000000100000620000008580000000000000001000006250000087c00000000000000010000062d00000894000000000000000100000635000008a800000000000000010000063d000008ba000000000000000100000648000008d000000000000000010000064f000008cc000000000000000100000658000008ea000000000000000100000661000008ec000000000000000100000668000008f000000000000000010000066f000009080000000000000001000006780000094800000000000000010000067f000009a0000000000000000100000688000009a200000000000000010000068f000009a4000000000000000100000697000009c800000000000000010000069f000009e00000000000000001000006a400000a620000000000000001000006aa00000a700000000000000001000006b200000a900000000000000001000006bb00000eba0000000000000001000006c400000aae0000000000000001000006cd00000ebb0000000000000001000006d500000ebc0000000000000001000006dd00000af60000000000000001000006e200000b260000000000000001000006e900000b620000000000000001000006f200000ec60000000000000001000006f900000ee600000000000000010000070100000be800000000000000010000070c00000c1800000000000000010000071100000c5400000000000000010000071600000c4400000000000000010000071d00000d0600000000000000010000072700000c5000000000000000010000072d00000c8e00000000000000010000073500000c6600000000000000010000073a00000c7800000000000000010000073f00000dae00000000000000010000074900000d4400000000000000010000074e00000d6400000000000000010000075400000d6600000000000000010000075900000d9600000000000000010000075e00000da200000000000000010000076500000da400000000000000010000076c00000dfe00000000000000010000077100000e1e00000000000000010000077600000e2600000000000000010000077b00000e7a00000000000000010000078100000e5c0000000000000001000007860000000000000000100000010000079000000086000000001000000100000798000005800000000010000001000007a0000005c80000000010000001000007aa000009fc0000000010000001000007b300000a9e0000000010000001000007bb00000cd00000000010000001000007c300000cec000000001000000100444a5f4d4f44455f494e5f434156450050544e5f4d4f44450050544e5f5553454400504f505550004152525f41435400434841494e5f414354004e4f54494659004e4f544946595f48414e444c45004e4f544946595f434f554e54444f574e0050544e5f4c415945525f52454c5f524553554d4500444a5f544f4153545f445552005452414e53504f52545f4c004143545f42414e4b004143545f5041540050454e445f42414e4b0050454e445f50415400505245565f50415400505245565f42414e4b004d41535445525f53544550005449434b5f435452005343414c455f4958004c454e5f54424c005343414c455f4d4158005343414c455f3158004c414e445f434e54444e00534e41505f5354455000534e41505f5449434b00524553554d455f4c00484f4c445f4d41534b00524553594e43383000524553594e43383200524553594e433834004d4944495f53454e440050435f53454e4400535052494e5446004b504f53540055495f5155455545004d53475f42414e4b504154004d53475f42414e4b5041545f415247004d53475f50415254004d53475f504152545f41524700505f5041525400545f53494c454e540053494c454e545f44454600454e475f41464c41475300454e475f4154494d4500454e475f4142414e4b00454e475f415041525400454e475f4d464c41475300454e475f4d54494d453100454e475f4d464c414700454e475f4d54494d453200454e475f4d42414e4b00454e475f4d5041525400434f4e445f524553455400505f434841494e510050524f4a5f5155414e54005155414e545f54424c00454e445f535445500053544f505f454e440054524b5f4150504c5900504152545f4f46460050415254535a004d454e47004d444553004d534c50004d5a45524f004d5f524543004e4f54455f4f4646004d53475f504154004d53475f5041545f415247005041545f424153450042414e4b5f535452494445005041545f53545249444500505f4c454e5f4259544500505f4d4c454e5f574f524400505f5343414c455f4d4f444500415f4c454e00415f535452494445004d5f4c454e004d5f5354524944450053545f49444c450053545f41524d45440053545f4c414e44494e470053545f46495855500054524b5f5343414c450052454c4f414400505f5343414c455f4e00505f4d5343414c4500545f4c454e00545f53434c00545f464c41470053434c4b004d434c4b005449434b5f41005449434b5f4d00444a5f544f465300646a745f73746f636b00444a5f4d4f444500646a5f6d73675f6f666600646a745f73686f7700646a5f6d73675f6f6e00646a5f756e686964650064745f72756e00646a5f5400646a5f72736d0064745f646f6e6500646c5f6f666600646a5f737461746500646c5f69646c6500646c5f6e6f7466697800646c5f666978757000646a5f72656c73696c00646c5f646f6e6500646a5f61726d7061740064615f726563756500646a5f61726d62616e6b0064615f73616d6500646c5f636f6d6d697400646a5f73706e00646a5f7370666c75736800646c5f636c65617200646a5f706370617400646c5f7265616c00646c5f706366697800646a5f706362616e6b00646c5f706373656e6400646c5f61726d00646a5f626c6f6200646a5f62706172616d730064615f7363616e00646a5f747072696d650064615f6e65787400646a5f4c0064615f666f756e6400646c5f61726d3200646a5f7370646f00646c5f6f757400646a5f686964650064685f6e6f0064685f656e640064685f7965730064685f6c656e00646a5f6869640064755f6f757400646a5f7470734d00646a5f746c616e6400646a5f430064635f6e6f6300646a5f74707300646a5f6c656e0064635f6c6f6f700064635f73746570300064635f73746f726500646a5f707572676500646a5f68616e646f666600646e5f73746f636b00646e5f726c00646a5f7a65726f006470725f646f6e6500686f5f6269747300646a5f73696c4100646a5f73696c4d00686f5f6d7400686f5f6d743100686f5f6d743200686f5f6d743300646a5f737061726d00646a5f636f6e6400636e5f696e697400636e5f6c6f6f7000636e5f63796300636e5f73746f726500686f5f6c7000686f5f6e7800686f5f7365740062705f70740062705f630062705f6c6f6f700062705f6d6964690062705f626173650062705f626c6f6273636c0062705f73636c0062705f707473636c0062705f70746c656e0062705f6c636d0062705f6763640062705f6763646f6b0074705f6e6f630070675f7461626c650070675f74726b0070675f736c6f740070675f6e6578740072735f6c0066785f676f0066785f6c6f6f700066785f73746f726500646a5f6465666572006c715f73746f636b00646a5f7370626b00646a5f737070740073615f6c0073615f73657400646a5f746d61736b00646a5f73706400646a5f7370746d00646a5f6861737472696700736f5f6c00736f5f6e00736f5f64656300646a5f73707472696700736f5f676f00646a5f707562310073665f6c0073665f6e00646a5f6d6170706c790073745f6d0073745f676f0073745f6c0073745f6e0073745f7965730073745f6f7574006d615f70006d615f73006d615f64006d615f646e006d615f7700646a5f746f67676c6500646a5f6c616e6400646a5f6e6f666100646a5f70746e72656c00646a5f737772657300646a5f6c666f7100646a5f7470756200646a5f7077696465000000003c0000010100000f260000009e0000010100000f2a000000a40000010100000f2e000000ac0000010100000f2a000000f00000010100000eb2000001200000010100000eb20000015a0000010100000eb2000001620000010100000eb3000001ee0000010100000eb3000001fa0000010100000eb50000027e0000010100000eb60000028a0000010100000eb7000002ac0000010100000eb2000003bc0000010100000eb8000003ca0000010100000eb8000004a60000010100000f320000057a0000010100000eb20000058e0000010100000eb20000061e0000010100000ebe0000066a0000010100000ec20000085a0000010100000f36000008660000010100000f3a0000091c0000010100000f3e00000a1c0000010100000f2a00000a2a0000010100000f2e00000aa60000010100000eba00000ac80000010100000ebb00000ad80000010100000ebc00000b560000010100000eb900000b5c0000010100000eba00000c5e0000010100000eb900000c820000010100000eb900000c880000010100000eba00000cf00000010100000eba002e73796d746162002e737472746162002e7368737472746162002e72656c612e74657874002e64617461002e6273730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000100000006000000000000003400000f62000000000000000000000004000000000000001b00000004000000400000000000002664000001980000000500000001000000040000000c0000002600000001000000030000000000000f9800000000000000000000000000000004000000000000002c00000008000000030000000000000f9800000000000000000000000000000004000000000000000100000002000000000000000000000f9800000f0000000006000000e800000004000000100000000900000003000000000000000000001e98000007cc0000000000000000000000010000000000000011000000030000000000000000000027fc0000003100000000000000000000000100000000", + "sha256": "df6e739561e93b2402a1bf35fd0802051facd2d25bc7dc00fd863673a2699b36", "stockCopies": [], "placement": "linked", "poolBaseLiterals": 0, @@ -1133,7 +1133,7 @@ { "label": "ts", "moduleId": "direct-jump-kyoti", - "version": "0.1.2-experimental", + "version": "0.2.0-experimental", "key": "DIRECT_JUMP_KYOTI", "author": "Zac-Kyoti", "nativeAuthor": "Zac-Kyoti", @@ -1142,12 +1142,12 @@ "caveAddress": null, "source": "modules/direct-jump-kyoti/patch_trigscale.s", "sources": { - "modules/direct-jump-kyoti/patch_trigscale.s": "f657f576c14cf61e23cc563eab54a07ef4f9774ddfca0c8bf3286c13bb76068f", - "modules/direct-jump-kyoti/manifest.py": "cb692249697b3c982f2ac984b7a50f7933b7ad9dcd50b02600b966df04b53c8e" + "modules/direct-jump-kyoti/patch_trigscale.s": "bd3978d7fc75d228ca02e4e4fa10c75b2095e23de1a84d5749c52485e565857f", + "modules/direct-jump-kyoti/manifest.py": "f449e3af81f61d400cabbdc73c4b5d1f8f1332d6f651cc0b118f6c020aefc9f1" }, "bytes": 672, - "code": "7f454c460102010000000000000000000001000400000001000000000000000000000188000000260034000000000028000700067007b0836d18203c0000091a4c0308002041d08241f008514ef94009b704200351802c3c000008b04c060800d0820680000048f92041d1c04ef94009b70400000000000000000000000000000000000000000000000000000000000003000001000000000000000000000000030000020000000000000000000000000300000300000001000008b0000000000000fff10000000d000048f9000000000000fff10000001c0000091a000000000000fff10000002900000051000000000000fff1000000394009b704000000000000fff10000003e000000000000000010000001004d4944495f535452494445004d4944495f5343414c455f4f464600415544494f5f53545249444500415544494f5f5343414c455f4f4646004241434b0074735f6361766500002e73796d746162002e737472746162002e7368737472746162002e74657874002e64617461002e627373000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b000000010000000600000000000000340000003e0000000000000000000000040000000000000021000000010000000300000000000000740000000000000000000000000000000400000000000000270000000800000003000000000000007400000000000000000000000000000004000000000000000100000002000000000000000000000074000000a00000000500000009000000040000001000000009000000030000000000000000000001140000004600000000000000000000000100000000000000110000000300000000000000000000015a0000002c00000000000000000000000100000000", - "sha256": "652ced000713288260d0d0d422f8e365136d3d9b2ae3c4f1af5f672b21de6d1a", + "code": "7f454c460102010000000000000000000001000400000001000000000000000000000188000000260034000000000028000700067007b0836d18203c0000091a4c030800d082204141f008514ef94009b704200351802c3c000008b04c060800d0820680000048f92041d1c04ef94009b70400000000000000000000000000000000000000000000000000000000000003000001000000000000000000000000030000020000000000000000000000000300000300000001000008b0000000000000fff10000000d000048f9000000000000fff10000001c0000091a000000000000fff10000002900000051000000000000fff1000000394009b704000000000000fff10000003e000000000000000010000001004d4944495f535452494445004d4944495f5343414c455f4f464600415544494f5f53545249444500415544494f5f5343414c455f4f4646004241434b0074735f6361766500002e73796d746162002e737472746162002e7368737472746162002e74657874002e64617461002e627373000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b000000010000000600000000000000340000003e0000000000000000000000040000000000000021000000010000000300000000000000740000000000000000000000000000000400000000000000270000000800000003000000000000007400000000000000000000000000000004000000000000000100000002000000000000000000000074000000a00000000500000009000000040000001000000009000000030000000000000000000001140000004600000000000000000000000100000000000000110000000300000000000000000000015a0000002c00000000000000000000000100000000", + "sha256": "eb511b51f839f22f9ebd35a398b611c1628b09f0eae9fd08df49779a3fd421e1", "stockCopies": [], "placement": "linked", "poolBaseLiterals": 0, @@ -5504,6 +5504,28 @@ "writeLength": 6, "note": "[PTN] release: keep the chooser shut after [PTN]+[YES]" }, + { + "address": 1073782462, + "guardLength": 6, + "guardSha256": "37edecfc18058ca757b701a5e909152025e5ceb96e33328800af3bea09dd5e94", + "unit": "dj7", + "symbol": "dj_lfoq", + "target": null, + "kind": "jsr", + "writeLength": 6, + "note": "light Part apply: per-track part deferred to each track's first trig" + }, + { + "address": 1074415696, + "guardLength": 6, + "guardSha256": "3eb71e079e73b289302dbd71e2397466226349dc505a46c2cc16a49a1595c7db", + "unit": "dj7", + "symbol": "dj_swres", + "target": null, + "kind": "jsr", + "writeLength": 6, + "note": "stock pattern switch: the jump's clock restarts there" + }, { "address": 1074378482, "guardLength": 18, diff --git a/src/engine/assets/resident-dsp.json b/src/engine/assets/resident-dsp.json index a9e2a4b4f4..ba5280eaf7 100644 --- a/src/engine/assets/resident-dsp.json +++ b/src/engine/assets/resident-dsp.json @@ -97,7 +97,7 @@ "baselineDescriptors": [] } ], - "sourceCommit": "ed4f006094266efdf576fda7ad65ea9ccc7b3c1f", + "sourceCommit": "bf0aa2577ece51efdadbec4f872a1154f0fdf1e2", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", @@ -125,7 +125,7 @@ "output-matrix": "0.1.1-experimental", "quantize-live-rec-toggle": "0.1.1-experimental", "apply-scene": "0.2.0-experimental", - "direct-jump-kyoti": "0.1.2-experimental", + "direct-jump-kyoti": "0.2.0-experimental", "dejavu": "0.1.0-experimental", "arp-key-locks": "0.1.0-experimental", "temp-save": "0.1.1-experimental", diff --git a/src/engine/assets/rom-packages.json b/src/engine/assets/rom-packages.json index b09336cf5a..4003f2bc27 100644 --- a/src/engine/assets/rom-packages.json +++ b/src/engine/assets/rom-packages.json @@ -423,7 +423,7 @@ "sha256": "fdba0ffd31b7932ceb1ded3bde9a976b6f148ae96fc73a4efc4fedf6fb692341" } ], - "sourceCommit": "ed4f006094266efdf576fda7ad65ea9ccc7b3c1f", + "sourceCommit": "bf0aa2577ece51efdadbec4f872a1154f0fdf1e2", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", @@ -451,7 +451,7 @@ "output-matrix": "0.1.1-experimental", "quantize-live-rec-toggle": "0.1.1-experimental", "apply-scene": "0.2.0-experimental", - "direct-jump-kyoti": "0.1.2-experimental", + "direct-jump-kyoti": "0.2.0-experimental", "dejavu": "0.1.0-experimental", "arp-key-locks": "0.1.0-experimental", "temp-save": "0.1.1-experimental", diff --git a/src/engine/assets/usb-audio-packages.json b/src/engine/assets/usb-audio-packages.json index 04286a8b37..746ef37095 100644 --- a/src/engine/assets/usb-audio-packages.json +++ b/src/engine/assets/usb-audio-packages.json @@ -553,7 +553,7 @@ } ] }, - "sourceCommit": "ed4f006094266efdf576fda7ad65ea9ccc7b3c1f", + "sourceCommit": "bf0aa2577ece51efdadbec4f872a1154f0fdf1e2", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", @@ -581,7 +581,7 @@ "output-matrix": "0.1.1-experimental", "quantize-live-rec-toggle": "0.1.1-experimental", "apply-scene": "0.2.0-experimental", - "direct-jump-kyoti": "0.1.2-experimental", + "direct-jump-kyoti": "0.2.0-experimental", "dejavu": "0.1.0-experimental", "arp-key-locks": "0.1.0-experimental", "temp-save": "0.1.1-experimental", diff --git a/src/engine/assets/utility-packages.json b/src/engine/assets/utility-packages.json index 24502ee90a..3628f53eab 100644 --- a/src/engine/assets/utility-packages.json +++ b/src/engine/assets/utility-packages.json @@ -3,7 +3,7 @@ "kind": "authored-utility-packages", "stockRead": false, "revision": "b8deefc88b2c3e5f3c6158e364eb741df1924e1d", - "sourceCommit": "ed4f006094266efdf576fda7ad65ea9ccc7b3c1f", + "sourceCommit": "bf0aa2577ece51efdadbec4f872a1154f0fdf1e2", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", @@ -31,7 +31,7 @@ "output-matrix": "0.1.1-experimental", "quantize-live-rec-toggle": "0.1.1-experimental", "apply-scene": "0.2.0-experimental", - "direct-jump-kyoti": "0.1.2-experimental", + "direct-jump-kyoti": "0.2.0-experimental", "dejavu": "0.1.0-experimental", "arp-key-locks": "0.1.0-experimental", "temp-save": "0.1.1-experimental", From b3c89d410d4366e0b953e72cc71448a708f43fec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Wed, 18 Nov 2026 14:21:17 +0100 Subject: [PATCH 029/415] WIP: Batch A effect CPU prices measured on the unit; device:price refuses a failed pick and takes --fx-name Not ready: modules:check refuses the price-only change (qualification source SHA-256), see session notes. Co-Authored-By: Claude Opus 5.5 --- scripts/octatrack-price.mjs | 12 +++-- scripts/octatrack-price.test.mjs | 8 ++- sdk/module-cpu-prices-pending.json | 8 --- .../modules/bbd/evidence/cpu-price.json | 53 +++++++++++++++++++ sdk/octatrack/modules/bbd/octamod.module.json | 9 ++++ .../modules/euclid/evidence/cpu-price.json | 53 +++++++++++++++++++ .../modules/euclid/octamod.module.json | 9 ++++ .../modules/everb/evidence/cpu-price.json | 53 +++++++++++++++++++ .../modules/everb/octamod.module.json | 9 ++++ .../modules/lofi2/evidence/cpu-price.json | 53 +++++++++++++++++++ .../modules/lofi2/octamod.module.json | 9 ++++ .../modules/miniverb/evidence/cpu-price.json | 53 +++++++++++++++++++ .../modules/miniverb/octamod.module.json | 9 ++++ .../modules/ring-sc/evidence/cpu-price.json | 53 +++++++++++++++++++ .../modules/ring-sc/octamod.module.json | 9 ++++ .../modules/tapeecho/evidence/cpu-price.json | 53 +++++++++++++++++++ .../modules/tapeecho/octamod.module.json | 9 ++++ .../modules/tapehead/evidence/cpu-price.json | 53 +++++++++++++++++++ .../modules/tapehead/octamod.module.json | 9 ++++ 19 files changed, 512 insertions(+), 12 deletions(-) create mode 100644 sdk/octatrack/modules/bbd/evidence/cpu-price.json create mode 100644 sdk/octatrack/modules/euclid/evidence/cpu-price.json create mode 100644 sdk/octatrack/modules/everb/evidence/cpu-price.json create mode 100644 sdk/octatrack/modules/lofi2/evidence/cpu-price.json create mode 100644 sdk/octatrack/modules/miniverb/evidence/cpu-price.json create mode 100644 sdk/octatrack/modules/ring-sc/evidence/cpu-price.json create mode 100644 sdk/octatrack/modules/tapeecho/evidence/cpu-price.json create mode 100644 sdk/octatrack/modules/tapehead/evidence/cpu-price.json diff --git a/scripts/octatrack-price.mjs b/scripts/octatrack-price.mjs index da9c007f2f..045fbb2067 100644 --- a/scripts/octatrack-price.mjs +++ b/scripts/octatrack-price.mjs @@ -3,7 +3,7 @@ // Copyright (c) 2026 Jannik Aßfalg (repeat98) // What a module costs an Octatrack, measured on a unit: the frame interrupt's share, the CPU meter and both DSPs, // before the module, with it installed but used nowhere (at rest), and for an effect on one slot (in use). -// npm run device:price -- [--out FILE.json] [--base ID --scene TEXT] [--seconds 8] [--slot T1] ID|FILE.mwrm… (none: every USB package) +// npm run device:price -- [--out FILE.json] [--base ID --scene TEXT] [--seconds 8] [--slot T1] [--fx-name ID=NAME…] ID|FILE.mwrm… (none: every USB package) // --write (needs --base and --scene): each module measured cleanly gets its price in octamod.module.json (resources.cpuPrice) and // its readings in evidence/cpu-price.json, and leaves the pending list; modules:check recomputes the price from those readings. // It needs a development twin of the base (the guard request) behind `npm run device -- serve --share @@ -30,6 +30,8 @@ export function reading(text) { cpu: tenth(mean(stats.map(m => m[1] / 10))), dsp1to4: tenth(mean(stats.map(m => m[2] / 10))), dsp5to8: tenth(mean(stats.map(m => m[3] / 10))) } } /** What the second reading added to the first, in points, one decimal. */ +/** What went wrong with a pick, from the session's reply (device.mjs pick's errors), or null when the slot runs it. */ +export const pickFailure = reply => /error|refused|not admitted|timed out/i.test(reply) ? reply.trim().split('\n').find(line => /error|refused|not admitted|timed out/i.test(line)).slice(0, 200) : null export const added = (before, after) => Object.fromEntries(['frame', 'cpu', 'dsp1to4', 'dsp5to8'].map(key => [key, tenth(after[key] - before[key])])) /** --write for one module's result: its price into its manifest, its readings beside it, its line off the pending list. What it did. */ @@ -61,8 +63,9 @@ export function writePrice({ root, result, base, scene, seconds, measuredAt }) { if (import.meta.filename === process.argv[1]) { const { values: args, positionals } = parseArgs({ allowPositionals: true, options: { out: { type: 'string' }, seconds: { type: 'string', default: '8' }, - slot: { type: 'string', default: 'T1' }, base: { type: 'string' }, scene: { type: 'string' }, write: { type: 'boolean' }, socket: { type: 'string', default: '/tmp/modwerk-dev.sock' }, share: { type: 'string', default: '/tmp/modwerk-share.sock' } } }) + slot: { type: 'string', default: 'T1' }, 'fx-name': { type: 'string', multiple: true }, base: { type: 'string' }, scene: { type: 'string' }, write: { type: 'boolean' }, socket: { type: 'string', default: '/tmp/modwerk-dev.sock' }, share: { type: 'string', default: '/tmp/modwerk-share.sock' } } }) const root = resolve(import.meta.dirname, '..'), seconds = Number(args.seconds), measuredAt = new Date().toISOString() + const fxNames = new Map((args['fx-name'] ?? []).map(pair => { const at = pair.indexOf('='); if (at < 1) throw new Error('--fx-name takes ID=NAME, the name the FX chooser shows'); return [pair.slice(0, at), pair.slice(at + 1)] })) if (args.write && !(args.base && args.scene)) throw new Error('--write needs --base and --scene: the price names the base and what played (model, project, pattern)') const catalogue = JSON.parse(readFileSync(resolve(root, 'src/engine/assets/octatrack-module-packages.json'), 'utf8')).packages // An ID is a catalogue row; a path to a .mwrm is that file, for a build that is not published yet. In the order given. @@ -110,7 +113,10 @@ if (import.meta.filename === process.argv[1]) { if (fx) try { // an effect: on the slot, measured, and the slot's own effect picked back const was = (await slotNames())[Number(fx)] if (!was) throw new Error('could not read what ' + args.slot + ' FX' + fx + ' runs, so nothing was picked') - await send(`pick:${args.slot}:FX${fx}:${row.name.replaceAll(' ', '_')}`) + // The chooser shows the effect descriptor's name, which can differ from the package's (Ring SC: "RINGMOD SC", its + // package "SC Ringmod"): --fx-name ID=NAME names it. A pick that fails must not be measured as the effect in use. + const name = fxNames.get(row.id) ?? row.name, failed = pickFailure(await send(`pick:${args.slot}:FX${fx}:${name.replaceAll(' ', '_')}`)) + if (failed) throw new Error('picking ' + name + ': ' + failed) result.inUse = await measure(); result.inUseAdds = added(before, result.inUse); result.inUseOn = args.slot + ' FX' + fx const back = await send(`pick:${args.slot}:FX${fx}:${was.replaceAll(' ', '_')}`) if (/error|refus|timed out/i.test(back)) result.restore = 'picking ' + was + ' back: ' + back.trim().slice(0, 120) diff --git a/scripts/octatrack-price.test.mjs b/scripts/octatrack-price.test.mjs index 9e9c345b9c..be99c764a1 100644 --- a/scripts/octatrack-price.test.mjs +++ b/scripts/octatrack-price.test.mjs @@ -1,7 +1,7 @@ // SPDX-License-Identifier: Elastic-2.0 // Copyright (c) 2026 Jannik Aßfalg (repeat98) import { expect, it } from 'vitest' -import { added, reading, writePrice } from './octatrack-price.mjs' +import { added, pickFailure, reading, writePrice } from './octatrack-price.mjs' it('reads the guard window and the mean of the meter readings, and what a module added', () => { const guard = share => `frame max 112.2 %, latest start 12.2 %, in the frame interrupt ${share} % over 22000 frames, skipped 2 on T1 T3, share 80.0 %\n` @@ -40,3 +40,9 @@ it('writes a clean reading as the module\'s price, its readings beside it, and t expect(write({})).toMatch(/machine-render/) } finally { rmSync(root, { recursive: true, force: true }) } }) + +it('takes a failed pick for a failure, so the slot is not measured as the effect in use', () => { + expect(pickFailure('error: No SC Ringmod in the FX2 chooser.\n')).toBe('error: No SC Ringmod in the FX2 chooser.') + expect(pickFailure('error: RINGMOD SC refused on T1 FX2 (the loader said no; its screen: /tmp/x.png)\n')).toContain('refused') + expect(pickFailure('T1 FX2 RINGMOD SC (running 119 ms after YES)\n')).toBeNull() +}) diff --git a/sdk/module-cpu-prices-pending.json b/sdk/module-cpu-prices-pending.json index 9a4a2825d2..b1cb22358f 100644 --- a/sdk/module-cpu-prices-pending.json +++ b/sdk/module-cpu-prices-pending.json @@ -6,15 +6,10 @@ "apply-scene": "price not yet measured", "arp-key-locks": "price not yet measured", "bar-led": "price not yet measured", - "bbd": "price not yet measured", "beat-slicer": "price not yet measured", "cc-map": "price not yet measured", "dejavu": "price not yet measured", "direct-jump-kyoti": "price not yet measured", - "euclid": "price not yet measured", - "everb": "price not yet measured", - "lofi2": "price not yet measured", - "miniverb": "price not yet measured", "mute-modes": "price not yet measured", "output-matrix": "price not yet measured", "pattern-sample-locks": "price not yet measured", @@ -24,13 +19,10 @@ "quantize-live-rec-toggle": "price not yet measured", "quantizer": "price not yet measured", "recorder-loop-fix": "price not yet measured", - "ring-sc": "price not yet measured", "sidechain-compressor": "price not yet measured", "slow-lfo": "price not yet measured", "stem-rec": "price not yet measured", "syntiz": "price not yet measured", - "tapeecho": "price not yet measured", - "tapehead": "price not yet measured", "temp-save": "price not yet measured", "tiempos": "price not yet measured", "track-solo": "price not yet measured", diff --git a/sdk/octatrack/modules/bbd/evidence/cpu-price.json b/sdk/octatrack/modules/bbd/evidence/cpu-price.json new file mode 100644 index 0000000000..c0fae359f3 --- /dev/null +++ b/sdk/octatrack/modules/bbd/evidence/cpu-price.json @@ -0,0 +1,53 @@ +{ + "module": "bbd", + "version": "0.1.2-experimental", + "base": "development twin d3d71297 of base 0.7.8 (main 02dfa20ca)", + "scene": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2 before the module: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; the effect measured on T1 FX2 in place of NONE", + "seconds": 8, + "measuredAt": "2026-11-18T13:14:59.997Z", + "result": { + "id": "bbd", + "version": "0.1.2-experimental", + "before": { + "frame": 41, + "frameMax": 76.2, + "frames": 22787, + "skipped": 0, + "cpu": 60, + "dsp1to4": 38.9, + "dsp5to8": 45 + }, + "atRest": { + "frame": 40.9, + "frameMax": 74, + "frames": 22771, + "skipped": 0, + "cpu": 59.5, + "dsp1to4": 38.9, + "dsp5to8": 45 + }, + "atRestAdds": { + "frame": -0.1, + "cpu": -0.5, + "dsp1to4": 0, + "dsp5to8": 0 + }, + "inUse": { + "frame": 41, + "frameMax": 74.2, + "frames": 22769, + "skipped": 0, + "cpu": 61.1, + "dsp1to4": 49.7, + "dsp5to8": 45.6 + }, + "inUseAdds": { + "frame": 0, + "cpu": 1.1, + "dsp1to4": 10.8, + "dsp5to8": 0.6 + }, + "inUseOn": "T1 FX2", + "rolledBack": true + } +} diff --git a/sdk/octatrack/modules/bbd/octamod.module.json b/sdk/octatrack/modules/bbd/octamod.module.json index ab654c27ae..c0f4596fc8 100644 --- a/sdk/octatrack/modules/bbd/octamod.module.json +++ b/sdk/octatrack/modules/bbd/octamod.module.json @@ -162,6 +162,15 @@ "rationale": "1,112 program words per core in the space of SPRING REV and PLATE REV, a 91-word X block per instance, the 16K-word FX2 delay buffer every delay already gets.", "source": "TESTING.md" } + }, + "cpuPrice": { + "value": 0, + "unit": "percent-of-frame", + "measure": "frame-interrupt", + "tool": "npm run device:price -- --write", + "date": "2026-11-18", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2 before the module: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; the effect measured on T1 FX2 in place of NONE; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 40.9 % installed and used nowhere, 41 % on T1 FX2; CPU meter 60 % before, 59.5 % at rest, 61.1 % in use.", + "source": "evidence/cpu-price.json" } }, "tests": { diff --git a/sdk/octatrack/modules/euclid/evidence/cpu-price.json b/sdk/octatrack/modules/euclid/evidence/cpu-price.json new file mode 100644 index 0000000000..cfba0e8f94 --- /dev/null +++ b/sdk/octatrack/modules/euclid/evidence/cpu-price.json @@ -0,0 +1,53 @@ +{ + "module": "euclid", + "version": "0.1.5-experimental", + "base": "development twin d3d71297 of base 0.7.8 (main 02dfa20ca)", + "scene": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2 before the module: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; the effect measured on T1 FX2 in place of NONE", + "seconds": 8, + "measuredAt": "2026-11-18T13:14:59.997Z", + "result": { + "id": "euclid", + "version": "0.1.5-experimental", + "before": { + "frame": 41, + "frameMax": 75, + "frames": 22775, + "skipped": 0, + "cpu": 59.5, + "dsp1to4": 38.9, + "dsp5to8": 45.6 + }, + "atRest": { + "frame": 43.5, + "frameMax": 76.2, + "frames": 22764, + "skipped": 0, + "cpu": 61.8, + "dsp1to4": 35.5, + "dsp5to8": 45.6 + }, + "atRestAdds": { + "frame": 2.5, + "cpu": 2.3, + "dsp1to4": -3.4, + "dsp5to8": 0 + }, + "inUse": { + "frame": 48.2, + "frameMax": 78.1, + "frames": 22765, + "skipped": 0, + "cpu": 64.9, + "dsp1to4": 44.4, + "dsp5to8": 45 + }, + "inUseAdds": { + "frame": 7.2, + "cpu": 5.4, + "dsp1to4": 5.5, + "dsp5to8": -0.6 + }, + "inUseOn": "T1 FX2", + "rolledBack": true + } +} diff --git a/sdk/octatrack/modules/euclid/octamod.module.json b/sdk/octatrack/modules/euclid/octamod.module.json index bcdd574feb..2fd0840895 100644 --- a/sdk/octatrack/modules/euclid/octamod.module.json +++ b/sdk/octatrack/modules/euclid/octamod.module.json @@ -381,6 +381,15 @@ "rationale": "The README states DSP state is private to each instance and no audio buffer is allocated. Small rhythm/control state, code and tables remain; low is an estimate, not an exact total memory claim.", "source": "README.md" } + }, + "cpuPrice": { + "value": 7.2, + "unit": "percent-of-frame", + "measure": "frame-interrupt", + "tool": "npm run device:price -- --write", + "date": "2026-11-18", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2 before the module: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; the effect measured on T1 FX2 in place of NONE; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 43.5 % installed and used nowhere, 48.2 % on T1 FX2; CPU meter 59.5 % before, 61.8 % at rest, 64.9 % in use.", + "source": "evidence/cpu-price.json" } }, "tests": { diff --git a/sdk/octatrack/modules/everb/evidence/cpu-price.json b/sdk/octatrack/modules/everb/evidence/cpu-price.json new file mode 100644 index 0000000000..bab45d836f --- /dev/null +++ b/sdk/octatrack/modules/everb/evidence/cpu-price.json @@ -0,0 +1,53 @@ +{ + "module": "everb", + "version": "0.1.2-experimental", + "base": "development twin d3d71297 of base 0.7.8 (main 02dfa20ca)", + "scene": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2 before the module: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; the effect measured on T1 FX2 in place of NONE", + "seconds": 8, + "measuredAt": "2026-11-18T13:14:59.997Z", + "result": { + "id": "everb", + "version": "0.1.2-experimental", + "before": { + "frame": 41, + "frameMax": 75, + "frames": 22782, + "skipped": 0, + "cpu": 60.8, + "dsp1to4": 38.9, + "dsp5to8": 45 + }, + "atRest": { + "frame": 41, + "frameMax": 73.8, + "frames": 22763, + "skipped": 0, + "cpu": 60.6, + "dsp1to4": 38.9, + "dsp5to8": 45 + }, + "atRestAdds": { + "frame": 0, + "cpu": -0.2, + "dsp1to4": 0, + "dsp5to8": 0 + }, + "inUse": { + "frame": 41, + "frameMax": 74.3, + "frames": 22771, + "skipped": 0, + "cpu": 61.2, + "dsp1to4": 52.2, + "dsp5to8": 45.6 + }, + "inUseAdds": { + "frame": 0, + "cpu": 0.4, + "dsp1to4": 13.3, + "dsp5to8": 0.6 + }, + "inUseOn": "T1 FX2", + "rolledBack": true + } +} diff --git a/sdk/octatrack/modules/everb/octamod.module.json b/sdk/octatrack/modules/everb/octamod.module.json index 2059b3e061..d10a86c639 100644 --- a/sdk/octatrack/modules/everb/octamod.module.json +++ b/sdk/octatrack/modules/everb/octamod.module.json @@ -171,6 +171,15 @@ "rationale": "1,602 program words per core in two given-up stock reverbs' space, a 132-word X block per instance, and 15,870 words of the 16K-word FX2 delay buffer every reverb already gets.", "source": "TESTING.md" } + }, + "cpuPrice": { + "value": 0, + "unit": "percent-of-frame", + "measure": "frame-interrupt", + "tool": "npm run device:price -- --write", + "date": "2026-11-18", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2 before the module: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; the effect measured on T1 FX2 in place of NONE; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 41 % installed and used nowhere, 41 % on T1 FX2; CPU meter 60.8 % before, 60.6 % at rest, 61.2 % in use.", + "source": "evidence/cpu-price.json" } }, "tests": { diff --git a/sdk/octatrack/modules/lofi2/evidence/cpu-price.json b/sdk/octatrack/modules/lofi2/evidence/cpu-price.json new file mode 100644 index 0000000000..0fb7d9e7d4 --- /dev/null +++ b/sdk/octatrack/modules/lofi2/evidence/cpu-price.json @@ -0,0 +1,53 @@ +{ + "module": "lofi2", + "version": "0.1.1-experimental", + "base": "development twin d3d71297 of base 0.7.8 (main 02dfa20ca)", + "scene": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2 before the module: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; the effect measured on T1 FX2 in place of NONE", + "seconds": 8, + "measuredAt": "2026-11-18T13:14:59.997Z", + "result": { + "id": "lofi2", + "version": "0.1.1-experimental", + "before": { + "frame": 41, + "frameMax": 73.9, + "frames": 22799, + "skipped": 0, + "cpu": 60.5, + "dsp1to4": 38.8, + "dsp5to8": 45.6 + }, + "atRest": { + "frame": 41, + "frameMax": 74.4, + "frames": 22767, + "skipped": 0, + "cpu": 59.4, + "dsp1to4": 38.7, + "dsp5to8": 45.6 + }, + "atRestAdds": { + "frame": 0, + "cpu": -1.1, + "dsp1to4": -0.1, + "dsp5to8": 0 + }, + "inUse": { + "frame": 41, + "frameMax": 73.8, + "frames": 22767, + "skipped": 0, + "cpu": 60.9, + "dsp1to4": 49.1, + "dsp5to8": 45.2 + }, + "inUseAdds": { + "frame": 0, + "cpu": 0.4, + "dsp1to4": 10.3, + "dsp5to8": -0.4 + }, + "inUseOn": "T1 FX2", + "rolledBack": true + } +} diff --git a/sdk/octatrack/modules/lofi2/octamod.module.json b/sdk/octatrack/modules/lofi2/octamod.module.json index 3a5fb0490e..7b2b0ea635 100644 --- a/sdk/octatrack/modules/lofi2/octamod.module.json +++ b/sdk/octatrack/modules/lofi2/octamod.module.json @@ -166,6 +166,15 @@ "rationale": "1,354 contiguous program-memory words on each DSP core (838 code, 516 table), more than any single stock reverb's span (SPRING REV 1,063, DARK REV 1,067), so a static build gives up two adjacent reverbs. 132 state words per instance in the existing r7 block; no buffer.", "source": "TESTING.md" } + }, + "cpuPrice": { + "value": 0, + "unit": "percent-of-frame", + "measure": "frame-interrupt", + "tool": "npm run device:price -- --write", + "date": "2026-11-18", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2 before the module: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; the effect measured on T1 FX2 in place of NONE; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 41 % installed and used nowhere, 41 % on T1 FX2; CPU meter 60.5 % before, 59.4 % at rest, 60.9 % in use.", + "source": "evidence/cpu-price.json" } }, "tests": { diff --git a/sdk/octatrack/modules/miniverb/evidence/cpu-price.json b/sdk/octatrack/modules/miniverb/evidence/cpu-price.json new file mode 100644 index 0000000000..49764fd31a --- /dev/null +++ b/sdk/octatrack/modules/miniverb/evidence/cpu-price.json @@ -0,0 +1,53 @@ +{ + "module": "miniverb", + "version": "0.2.3-experimental", + "base": "development twin d3d71297 of base 0.7.8 (main 02dfa20ca)", + "scene": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2 before the module: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; the effect measured on T1 FX2 in place of NONE", + "seconds": 8, + "measuredAt": "2026-11-18T13:14:59.997Z", + "result": { + "id": "miniverb", + "version": "0.2.3-experimental", + "before": { + "frame": 41.2, + "frameMax": 76.1, + "frames": 22780, + "skipped": 0, + "cpu": 63.1, + "dsp1to4": 38.3, + "dsp5to8": 45.5 + }, + "atRest": { + "frame": 41.1, + "frameMax": 75, + "frames": 22775, + "skipped": 0, + "cpu": 63.9, + "dsp1to4": 38.3, + "dsp5to8": 45.6 + }, + "atRestAdds": { + "frame": -0.1, + "cpu": 0.8, + "dsp1to4": 0, + "dsp5to8": 0.1 + }, + "inUse": { + "frame": 41, + "frameMax": 74.1, + "frames": 22775, + "skipped": 0, + "cpu": 60.8, + "dsp1to4": 52.4, + "dsp5to8": 45 + }, + "inUseAdds": { + "frame": -0.2, + "cpu": -2.3, + "dsp1to4": 14.1, + "dsp5to8": -0.5 + }, + "inUseOn": "T1 FX2", + "rolledBack": true + } +} diff --git a/sdk/octatrack/modules/miniverb/octamod.module.json b/sdk/octatrack/modules/miniverb/octamod.module.json index 5c16b0a4e7..e1dcc66592 100644 --- a/sdk/octatrack/modules/miniverb/octamod.module.json +++ b/sdk/octatrack/modules/miniverb/octamod.module.json @@ -134,6 +134,15 @@ "rationale": "Inherited 16K Y allocation, of which the ring uses 15,870 words, and the X reservation; 402,972 logical bytes for eight instances including both programs and full hardware stack capacity. Complete runtime bounds and hardware canaries remain unverified.", "source": "TESTING.md" } + }, + "cpuPrice": { + "value": 0, + "unit": "percent-of-frame", + "measure": "frame-interrupt", + "tool": "npm run device:price -- --write", + "date": "2026-11-18", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2 before the module: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; the effect measured on T1 FX2 in place of NONE; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41.2 % before, 41.1 % installed and used nowhere, 41 % on T1 FX2; CPU meter 63.1 % before, 63.9 % at rest, 60.8 % in use.", + "source": "evidence/cpu-price.json" } }, "tests": { diff --git a/sdk/octatrack/modules/ring-sc/evidence/cpu-price.json b/sdk/octatrack/modules/ring-sc/evidence/cpu-price.json new file mode 100644 index 0000000000..6cac08277e --- /dev/null +++ b/sdk/octatrack/modules/ring-sc/evidence/cpu-price.json @@ -0,0 +1,53 @@ +{ + "module": "ring-sc", + "version": "0.2.1-experimental", + "base": "development twin d3d71297 of base 0.7.8 (main 02dfa20ca)", + "scene": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2 before the module: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; the effect measured on T1 FX2 in place of NONE", + "seconds": 8, + "measuredAt": "2026-11-18T13:14:59.997Z", + "result": { + "id": "ring-sc", + "version": "0.2.1-experimental", + "before": { + "frame": 41, + "frameMax": 74.2, + "frames": 22772, + "skipped": 0, + "cpu": 60.5, + "dsp1to4": 38.4, + "dsp5to8": 45.6 + }, + "atRest": { + "frame": 41, + "frameMax": 74.2, + "frames": 22766, + "skipped": 0, + "cpu": 59.5, + "dsp1to4": 38.9, + "dsp5to8": 45.6 + }, + "atRestAdds": { + "frame": 0, + "cpu": -1, + "dsp1to4": 0.5, + "dsp5to8": 0 + }, + "inUse": { + "frame": 41, + "frameMax": 74.7, + "frames": 22762, + "skipped": 0, + "cpu": 60.8, + "dsp1to4": 45.9, + "dsp5to8": 46.5 + }, + "inUseAdds": { + "frame": 0, + "cpu": 0.3, + "dsp1to4": 7.5, + "dsp5to8": 0.9 + }, + "inUseOn": "T1 FX2", + "rolledBack": true + } +} diff --git a/sdk/octatrack/modules/ring-sc/octamod.module.json b/sdk/octatrack/modules/ring-sc/octamod.module.json index d063442112..eb12a8aec7 100644 --- a/sdk/octatrack/modules/ring-sc/octamod.module.json +++ b/sdk/octatrack/modules/ring-sc/octamod.module.json @@ -160,6 +160,15 @@ "rationale": "351 words of DSP program per core and 22 words of state in each instance's existing block; the key bus's memory is the base's.", "source": "TESTING.md" } + }, + "cpuPrice": { + "value": 0, + "unit": "percent-of-frame", + "measure": "frame-interrupt", + "tool": "npm run device:price -- --write", + "date": "2026-11-18", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2 before the module: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; the effect measured on T1 FX2 in place of NONE; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 41 % installed and used nowhere, 41 % on T1 FX2; CPU meter 60.5 % before, 59.5 % at rest, 60.8 % in use.", + "source": "evidence/cpu-price.json" } }, "tests": { diff --git a/sdk/octatrack/modules/tapeecho/evidence/cpu-price.json b/sdk/octatrack/modules/tapeecho/evidence/cpu-price.json new file mode 100644 index 0000000000..c0dfda1df2 --- /dev/null +++ b/sdk/octatrack/modules/tapeecho/evidence/cpu-price.json @@ -0,0 +1,53 @@ +{ + "module": "tapeecho", + "version": "0.1.6-experimental", + "base": "development twin d3d71297 of base 0.7.8 (main 02dfa20ca)", + "scene": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2 before the module: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; the effect measured on T1 FX2 in place of NONE", + "seconds": 8, + "measuredAt": "2026-11-18T13:14:59.997Z", + "result": { + "id": "tapeecho", + "version": "0.1.6-experimental", + "before": { + "frame": 41, + "frameMax": 73.9, + "frames": 22774, + "skipped": 0, + "cpu": 60.3, + "dsp1to4": 38.9, + "dsp5to8": 45 + }, + "atRest": { + "frame": 41.4, + "frameMax": 75.1, + "frames": 22774, + "skipped": 0, + "cpu": 60.3, + "dsp1to4": 38.9, + "dsp5to8": 45 + }, + "atRestAdds": { + "frame": 0.4, + "cpu": 0, + "dsp1to4": 0, + "dsp5to8": 0 + }, + "inUse": { + "frame": 48.7, + "frameMax": 81.4, + "frames": 22767, + "skipped": 0, + "cpu": 70.3, + "dsp1to4": 38.8, + "dsp5to8": 45.6 + }, + "inUseAdds": { + "frame": 7.7, + "cpu": 10, + "dsp1to4": -0.1, + "dsp5to8": 0.6 + }, + "inUseOn": "T1 FX2", + "rolledBack": true + } +} diff --git a/sdk/octatrack/modules/tapeecho/octamod.module.json b/sdk/octatrack/modules/tapeecho/octamod.module.json index d1e20885ab..1301c6fa10 100644 --- a/sdk/octatrack/modules/tapeecho/octamod.module.json +++ b/sdk/octatrack/modules/tapeecho/octamod.module.json @@ -126,6 +126,15 @@ "rationale": "The module adds 200 bytes of state per track plus code and coefficient tables, while reusing stock delay rings. The common 10 MiB DRAM platform arena is shared rather than additive per instance. Moderate is an incremental footprint estimate.", "source": "README.md" } + }, + "cpuPrice": { + "value": 7.7, + "unit": "percent-of-frame", + "measure": "frame-interrupt", + "tool": "npm run device:price -- --write", + "date": "2026-11-18", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2 before the module: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; the effect measured on T1 FX2 in place of NONE; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 41.4 % installed and used nowhere, 48.7 % on T1 FX2; CPU meter 60.3 % before, 60.3 % at rest, 70.3 % in use.", + "source": "evidence/cpu-price.json" } }, "tests": { diff --git a/sdk/octatrack/modules/tapehead/evidence/cpu-price.json b/sdk/octatrack/modules/tapehead/evidence/cpu-price.json new file mode 100644 index 0000000000..ef9fa3149d --- /dev/null +++ b/sdk/octatrack/modules/tapehead/evidence/cpu-price.json @@ -0,0 +1,53 @@ +{ + "module": "tapehead", + "version": "0.1.2-experimental", + "base": "development twin d3d71297 of base 0.7.8 (main 02dfa20ca)", + "scene": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2 before the module: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; the effect measured on T1 FX2 in place of NONE", + "seconds": 8, + "measuredAt": "2026-11-18T13:14:59.997Z", + "result": { + "id": "tapehead", + "version": "0.1.2-experimental", + "before": { + "frame": 41.3, + "frameMax": 75.6, + "frames": 22776, + "skipped": 0, + "cpu": 63.5, + "dsp1to4": 38.5, + "dsp5to8": 45.6 + }, + "atRest": { + "frame": 41.1, + "frameMax": 75.8, + "frames": 22768, + "skipped": 0, + "cpu": 63.8, + "dsp1to4": 38.7, + "dsp5to8": 45.6 + }, + "atRestAdds": { + "frame": -0.2, + "cpu": 0.3, + "dsp1to4": 0.2, + "dsp5to8": 0 + }, + "inUse": { + "frame": 41, + "frameMax": 74.3, + "frames": 22770, + "skipped": 0, + "cpu": 61.3, + "dsp1to4": 47.8, + "dsp5to8": 45.3 + }, + "inUseAdds": { + "frame": -0.3, + "cpu": -2.2, + "dsp1to4": 9.3, + "dsp5to8": -0.3 + }, + "inUseOn": "T1 FX2", + "rolledBack": true + } +} diff --git a/sdk/octatrack/modules/tapehead/octamod.module.json b/sdk/octatrack/modules/tapehead/octamod.module.json index d8c84907da..d4f7690a90 100644 --- a/sdk/octatrack/modules/tapehead/octamod.module.json +++ b/sdk/octatrack/modules/tapehead/octamod.module.json @@ -115,6 +115,15 @@ "rationale": "422 words of DSP program per payload and 31 words of state in each instance's existing r7 block. No allocator buffer, tables or Y memory, where SPRING REV takes 1,063 words and a 16,384-word instance buffer.", "source": "TESTING.md" } + }, + "cpuPrice": { + "value": 0, + "unit": "percent-of-frame", + "measure": "frame-interrupt", + "tool": "npm run device:price -- --write", + "date": "2026-11-18", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2 before the module: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; the effect measured on T1 FX2 in place of NONE; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41.3 % before, 41.1 % installed and used nowhere, 41 % on T1 FX2; CPU meter 63.5 % before, 63.8 % at rest, 61.3 % in use.", + "source": "evidence/cpu-price.json" } }, "tests": { From d46c873de7d6fe3f1154e64179d11074be9098d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Wed, 18 Nov 2026 14:25:26 +0100 Subject: [PATCH 030/415] Improvement: a measured CPU price keeps a published module qualified; Batch A effect prices modules:check treats a folder that differs from its qualified one only by resources.cpuPrice and evidence/cpu-price.json as retained (manifestWithoutPrice shares --write's serialiser), and the price record is not native source. Measured on an MKII, twin d3d71297 of base 0.7.8: Tape Echo 7.7, Euclid 7.2, BBD, E-Verb, LOFI2, Mini Verb, TapeHead and Ring SC 0. Co-Authored-By: Claude Opus 5.5 --- .../2026-11-17-device-price-writes-price.md | 2 +- docs/MODULE_PERFORMANCE.md | 2 +- scripts/module-cpu-price.mjs | 12 ++++ scripts/module-qualification.mjs | 16 ++++- scripts/module-qualification.test.mjs | 23 +++++- scripts/octatrack-price.mjs | 7 +- src/catalog/module-documents.json | 72 +++++++++++++++++++ 7 files changed, 125 insertions(+), 9 deletions(-) diff --git a/changelog/2026-11-17-device-price-writes-price.md b/changelog/2026-11-17-device-price-writes-price.md index 9a7552b25c..e9cd89e589 100644 --- a/changelog/2026-11-17-device-price-writes-price.md +++ b/changelog/2026-11-17-device-price-writes-price.md @@ -1 +1 @@ -SDK: `npm run device:price -- --write --base ID --scene TEXT ` now writes a module's measured CPU price into its manifest itself (`resources.cpuPrice`), keeps the readings in the module's `evidence/cpu-price.json` and takes the module off the pending list. `modules:check`, so CI and `pr:ready`, and `module:doctor` recompute a price from those readings and refuse one that differs, so a measured price is never typed by hand. Prices written by hand before keep their TESTING.md source. A `.mwrm` build of a published effect is now measured on a slot as well. A machine is still priced on a playing track (`npm run device -- do`). +SDK: `npm run device:price -- --write --base ID --scene TEXT ` now writes a module's measured CPU price into its manifest itself (`resources.cpuPrice`), keeps the readings in the module's `evidence/cpu-price.json` and takes the module off the pending list. `modules:check`, so CI and `pr:ready`, and `module:doctor` recompute a price from those readings and refuse one that differs, so a measured price is never typed by hand. Prices written by hand before keep their TESTING.md source. A `.mwrm` build of a published effect is now measured on a slot as well. A machine is still priced on a playing track (`npm run device -- do`). Adding a measured price no longer counts as a change to a published module, so it needs no new release. A pick that fails is no longer measured as the effect in use, and `--fx-name ID=NAME` names an effect the chooser shows under another name. First prices measured this way on an MKII: Tape Echo 7.7 % of a frame, Euclid 7.2 %, and 0 for BBD, E-Verb, LOFI2, Mini Verb, TapeHead and Ring SC, whose sound runs on the DSP. diff --git a/docs/MODULE_PERFORMANCE.md b/docs/MODULE_PERFORMANCE.md index 9464797215..262ea5ba59 100644 --- a/docs/MODULE_PERFORMANCE.md +++ b/docs/MODULE_PERFORMANCE.md @@ -14,7 +14,7 @@ New FX should aim for DSP cost in the **same ballpark as stock SPRING REV at its **A module that runs only on a key press.** ColdFire code with no MIDI path and no work in the frame interrupt (a save, a slice or a lock applied when a key is pressed) runs in the UI task, outside the audio frame. Its record (`template key`) needs no static bound, no stock benchmark and no flood. The dearest press, measured as executed instructions in `ot_emu` or timed on the unit, must fit 26,600,000 cycles (100 ms at 266 MHz, a responsiveness target), and that press, repeated at least 20 times while the sequencer plays with a STOP and a Part change between, must not hang it. `module:doctor` refuses this record for a MIDI or machine module (owner, 5 November 2026). -**Every module names its CPU price** (owner, 16 November 2026): `resources.cpuPrice` in `octamod.module.json`, as `{"value", "unit": "percent-of-frame", "measure", "tool", "date", "conditions", "source"}`, measured on a unit. A machine's `measure` is `machine-render`, a whole percent read with `npm run device -- do` and `guard` (below), and its descriptor's `reserved[0]` carries the same number (a ported machine's comes from `"cpuPrice"` in its `machine-ports.json` entry). Every other module's is `frame-interrupt`, the share `npm run device:price -- ` reports, to a tenth of a point; with `--write --base ID --scene TEXT` the tool writes that price itself, with its readings in `evidence/cpu-price.json`, and the checks recompute the price from them, so it is never typed; the base reads no effect or hook price yet, so for those it is a declaration the next base can admit by. `conditions` names the model, the base, what played and for how long, and `source` the file holding the run's output (TESTING.md). `modules:check` (so CI and `pr:ready`) and `module:doctor` refuse a module without one, or a machine whose two numbers differ. The modules listed before 17 November 2026 wait on `sdk/module-cpu-prices-pending.json` until measured; the list only shrinks, and a module that names its price deletes its line in the same pull request. A ported machine's descriptor is generated by `machine_ports.py` from `"cpuPrice"` in its `machine-ports.json` entry. +**Every module names its CPU price** (owner, 16 November 2026): `resources.cpuPrice` in `octamod.module.json`, as `{"value", "unit": "percent-of-frame", "measure", "tool", "date", "conditions", "source"}`, measured on a unit. A machine's `measure` is `machine-render`, a whole percent read with `npm run device -- do` and `guard` (below), and its descriptor's `reserved[0]` carries the same number (a ported machine's comes from `"cpuPrice"` in its `machine-ports.json` entry). Every other module's is `frame-interrupt`, the share `npm run device:price -- ` reports, to a tenth of a point; with `--write --base ID --scene TEXT` the tool writes that price itself, with its readings in `evidence/cpu-price.json`, and the checks recompute the price from them, so it is never typed. A price and its readings change no module: a published version stays qualified without a new release, as long as nothing else in its folder changed. Set the measured slot (`--slot`, T1 by default) to NONE first and read `ui` again before you record the scene: right after a bank change it can still show the last bank's effects. A pick by the package's name fails where the chooser shows the effect's own name (Ring SC's "RINGMOD SC"); `--fx-name ID=NAME` gives it, and a failed pick writes no price; the base reads no effect or hook price yet, so for those it is a declaration the next base can admit by. `conditions` names the model, the base, what played and for how long, and `source` the file holding the run's output (TESTING.md). `modules:check` (so CI and `pr:ready`) and `module:doctor` refuse a module without one, or a machine whose two numbers differ. The modules listed before 17 November 2026 wait on `sdk/module-cpu-prices-pending.json` until measured; the list only shrinks, and a module that names its price deletes its line in the same pull request. A ported machine's descriptor is generated by `machine_ports.py` from `"cpuPrice"` in its `machine-ports.json` entry. **A machine that renders on the ColdFire names its CPU price.** The Octatrack base admits a Part's machines against a CPU budget, as it admits effects against the DSP's: a pick past the allowance is refused with a CPU FULL box, and a track past it after a load renders silence, instead of the frame guard dropping renders unannounced. The price is `reserved[0]` of the machine's descriptor (`modwerk_events.h`): what one track of the machine adds to the frame interrupt while it plays, in percent of a frame, rounded up (owner, 17 November 2026: its mean cost, not its worst render; the frame guard covers the peaks, and the base adds prices up against the CPU meter, which is a mean). Measure it on a unit: one track on the machine with a trig on every step and every voice it can sound playing, `npm run device -- do 'PLAY w2500 guard w6000 guard STOP'`, the second `guard` line's "in the frame interrupt"; then the same with that track's trigs removed, and take the difference. On an MKII that day, with default sounds, FM Synth 0.1.3 added 4.6 points and SYNTIZ 0.1.0 11.2, while their longest single renders were 26.6 % and 37.6 % of a frame: priced by the worst render, the fourth FM Synth track was refused although eight played at the load of eight sample tracks. `modwerk_events.h` still says "worst render" until the next base rebuild. A machine that names none is charged the base's default; a DSP voice that names none, nothing. A renderer a module writes into stock's renderer table or a track's slots itself is still refused and guarded: the base checks every renderer at the frame builder's two calls, and a stock track that reaches the module's renderer falls back to stock's own when the frame is full. diff --git a/scripts/module-cpu-price.mjs b/scripts/module-cpu-price.mjs index 1775d22c29..84ed41ad0d 100644 --- a/scripts/module-cpu-price.mjs +++ b/scripts/module-cpu-price.mjs @@ -14,6 +14,18 @@ export const CPU_PRICE_PENDING_REASON = 'price not yet measured' const PORTS = 'sdk/machines/octatrack/module-adapters' // device:price --write keeps its readings here, in the module's folder; the checks recompute the price from them. export const CPU_PRICE_RECORD = 'evidence/cpu-price.json' +/** A manifest as device:price --write writes it: two-space JSON, \u-escaped when the text it came from was. */ +export function manifestJson(document, originalText) { + const json = JSON.stringify(document, null, 2) + '\n' + return /\\u[0-9a-fA-F]{4}/.test(originalText) ? json.replace(/[\u007f-\uffff]/g, c => '\\u' + c.charCodeAt(0).toString(16).padStart(4, '0')) : json +} +/** A manifest's text as it read before --write gave it a price; null when it names none. */ +export function manifestWithoutPrice(text) { + const document = JSON.parse(text) + if (!document.resources?.cpuPrice) return null + delete document.resources.cpuPrice + return manifestJson(document, text) +} /** The price a device:price reading gives: the larger of what the module added at rest and in use, never below 0. */ export const measuredPrice = result => Math.max(0, result.atRestAdds.frame, result.inUseAdds?.frame ?? 0) diff --git a/scripts/module-qualification.mjs b/scripts/module-qualification.mjs index 1ce6780ffd..8d7a30b002 100644 --- a/scripts/module-qualification.mjs +++ b/scripts/module-qualification.mjs @@ -10,6 +10,7 @@ import { requireRetainedEvidence } from './retained-evidence.mjs' import { requireModuleQualificationForPublication, requireModuleUiForPublication } from '../src/catalog/module-contract.ts' import { compareModuleVersions } from '../src/catalog/versions.ts' import { requireModuleDocumentation } from './module-documentation.mjs' +import { CPU_PRICE_RECORD, manifestWithoutPrice } from './module-cpu-price.mjs' export const BASELINE_PATH = 'sdk/approvals/module-qualification-baseline.json' export const WAIVERS_PATH = 'sdk/approvals/module-release-waivers.json' @@ -32,13 +33,24 @@ async function fingerprint(folder, paths) { return sha(JSON.stringify(hashes)) } export async function moduleFolderSha256(folder) { return fingerprint(folder,await inventory(folder)) } +// A measured CPU price changes no module (owner, 18 November 2026): the folder without the price's readings and its +// manifest without resources.cpuPrice must still be the folder that was qualified; modules:check recomputes the price +// from those readings itself (module-cpu-price.mjs). +export async function modulePricelessFolderSha256(folder) { + const hashes={} + for(const path of (await inventory(folder)).filter(path=>path!==CPU_PRICE_RECORD)) { + const bytes=await readFile(resolve(folder,path)) + hashes[path]=sha(path==='octamod.module.json'?manifestWithoutPrice(bytes.toString('utf8'))??bytes:bytes) + } + return sha(JSON.stringify(hashes)) +} export function qualificationReports(document) { const q=document.tests.qualification return q?[...new Set([...q.cycles.map(c=>c.report),q.memory.report,q.hardware.report])]:document.tests.releaseWaiver?[document.tests.releaseWaiver.report]:[] } async function nativePaths(folder, document) { const reports=new Set(qualificationReports(document)) - return (await inventory(folder)).filter(path=>!['octamod.module.json','qualification.example.json'].includes(path)&&!path.startsWith('media/')&&!/\.md$/i.test(path)&&!/(^|\/)(LICENSE|LICENCE|COPYING)(\.|$)/i.test(path)&&!reports.has(path)) + return (await inventory(folder)).filter(path=>!['octamod.module.json','qualification.example.json',CPU_PRICE_RECORD].includes(path)&&!path.startsWith('media/')&&!/\.md$/i.test(path)&&!/(^|\/)(LICENSE|LICENCE|COPYING)(\.|$)/i.test(path)&&!reports.has(path)) } export async function moduleNativeSourceSha256(folder, document) { return fingerprint(folder,await nativePaths(folder,document)) @@ -99,7 +111,7 @@ export async function requireFolderQualification(folder, document, baseline, wai return requireRetainedEvidence(root,folder,document,baseline,waivers,requireFolderQualification,options) } const existing=baseline.get(document.id) - if(existing?.version===document.version&&existing.folderSha256===await moduleFolderSha256(folder)) return 'retained' + if(existing?.version===document.version&&(existing.folderSha256===await moduleFolderSha256(folder)||existing.folderSha256===await modulePricelessFolderSha256(folder))) return 'retained' const declaration=document.tests.releaseWaiver if(document.id==='synth'&&document.version==='0.1.1-experimental'&&declaration?.approvedOn==='2026-10-06') return requireSynthRelease(options.root??fileURLToPath(new URL('../',import.meta.url)),folder,document,moduleNativeSourceSha256) const waiver=waivers.get(document.id) diff --git a/scripts/module-qualification.test.mjs b/scripts/module-qualification.test.mjs index ce06716faf..4359f3e67c 100644 --- a/scripts/module-qualification.test.mjs +++ b/scripts/module-qualification.test.mjs @@ -3,7 +3,7 @@ import { execFileSync } from 'node:child_process' import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from 'node:fs' import { tmpdir } from 'node:os' import { dirname, join } from 'node:path' -import { evidenceOnBaseProblem, testingVersionProblem } from './module-qualification.mjs' +import { evidenceOnBaseProblem, moduleFolderSha256, moduleNativeSourceSha256, modulePricelessFolderSha256, testingVersionProblem } from './module-qualification.mjs' const roots = [] afterEach(() => { for (const root of roots.splice(0)) rmSync(root, { recursive: true, force: true }) }) @@ -47,3 +47,24 @@ it('asks a new version\'s TESTING.md to name it, and leaves an unchanged version write(folder + 'TESTING.md', 'Ran 10.2.0 and 0.2.01.') expect(testingVersionProblem({ root, base: main })).toMatch(/does not name/) }) + +it('keeps a qualified folder retained when only a measured CPU price and its readings were added, and nothing else', async () => { + const folder = mkdtempSync(join(tmpdir(), 'priced-')); roots.push(folder) + const document = { id: 'echo', version: '0.1.0-experimental', author: { name: 'Jannik A\u00dffalg' }, resources: { memory: 'small' } } + writeFileSync(join(folder, 'octamod.module.json'), JSON.stringify(document, null, 2).replace(/\u00df/g, '\\u00df') + '\n') + writeFileSync(join(folder, 'echo.c'), 'int echo;\n') + const qualified = await moduleFolderSha256(folder), source = await moduleNativeSourceSha256(folder, { tests: {} }) + // What device:price --write adds: resources.cpuPrice, in the file's own escaping, and evidence/cpu-price.json. + const priced = { ...document, resources: { ...document.resources, cpuPrice: { value: 7.7, unit: 'percent-of-frame', measure: 'frame-interrupt', source: 'evidence/cpu-price.json' } } } + writeFileSync(join(folder, 'octamod.module.json'), JSON.stringify(priced, null, 2).replace(/\u00df/g, '\\u00df') + '\n') + mkdirSync(join(folder, 'evidence')); writeFileSync(join(folder, 'evidence/cpu-price.json'), '{}\n') + expect(await moduleFolderSha256(folder)).not.toBe(qualified) + expect(await modulePricelessFolderSha256(folder)).toBe(qualified) + expect(await moduleNativeSourceSha256(folder, { tests: {} })).toBe(source) + // Anything else changed beside the price is a changed module. + writeFileSync(join(folder, 'octamod.module.json'), JSON.stringify({ ...priced, version: '0.1.1-experimental' }, null, 2).replace(/\u00df/g, '\\u00df') + '\n') + expect(await modulePricelessFolderSha256(folder)).not.toBe(qualified) + writeFileSync(join(folder, 'octamod.module.json'), JSON.stringify(priced, null, 2).replace(/\u00df/g, '\\u00df') + '\n') + writeFileSync(join(folder, 'echo.c'), 'int echo = 1;\n') + expect(await modulePricelessFolderSha256(folder)).not.toBe(qualified) +}) diff --git a/scripts/octatrack-price.mjs b/scripts/octatrack-price.mjs index 045fbb2067..5884d3adc8 100644 --- a/scripts/octatrack-price.mjs +++ b/scripts/octatrack-price.mjs @@ -18,7 +18,7 @@ import { connect } from 'node:net' import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs' import { basename, dirname, resolve } from 'node:path' import { parseArgs } from 'node:util' -import { CPU_PRICE_PENDING_PATH, CPU_PRICE_RECORD, machineDescriptors, measuredPrice } from './module-cpu-price.mjs' +import { CPU_PRICE_PENDING_PATH, CPU_PRICE_RECORD, machineDescriptors, manifestJson, measuredPrice } from './module-cpu-price.mjs' const mean = values => values.reduce((sum, value) => sum + value, 0) / values.length, tenth = value => Math.round(value * 10) / 10 /** One reading from the session's `guard` line and `stats` lines: percent of a frame, percent of the meter, per mille of a DSP. */ @@ -52,9 +52,8 @@ export function writePrice({ root, result, base, scene, seconds, measuredAt }) { '; CPU meter ' + before.cpu + ' % before, ' + atRest.cpu + ' % at rest' + (inUse ? ', ' + inUse.cpu + ' % in use' : '') + '.').slice(0, 1000), source: CPU_PRICE_RECORD } // shortcut: a hand-formatted manifest (an object on one line) comes back as plain two-space JSON; keep it if review asks. - let json = JSON.stringify(document, null, 2) + '\n' - if (/\\u[0-9a-fA-F]{4}/.test(text)) json = json.replace(/[\u007f-\uffff]/g, c => '\\u' + c.charCodeAt(0).toString(16).padStart(4, '0')) // the file's own escaping - writeFileSync(manifest, json) + // modules:check strips the price with the same serialiser to see that nothing else changed (manifestWithoutPrice). + writeFileSync(manifest, manifestJson(document, text)) const pendingPath = resolve(root, CPU_PRICE_PENDING_PATH), pending = existsSync(pendingPath) ? JSON.parse(readFileSync(pendingPath, 'utf8')) : null const wasPending = Boolean(pending?.pending?.[id]) if (wasPending) { delete pending.pending[id]; writeFileSync(pendingPath, JSON.stringify(pending, null, 1) + '\n') } diff --git a/src/catalog/module-documents.json b/src/catalog/module-documents.json index 4c92356113..062548824d 100644 --- a/src/catalog/module-documents.json +++ b/src/catalog/module-documents.json @@ -151,6 +151,15 @@ "rationale": "Inherited 16K Y allocation, of which the ring uses 15,870 words, and the X reservation; 402,972 logical bytes for eight instances including both programs and full hardware stack capacity. Complete runtime bounds and hardware canaries remain unverified.", "source": "TESTING.md" } + }, + "cpuPrice": { + "value": 0, + "unit": "percent-of-frame", + "measure": "frame-interrupt", + "tool": "npm run device:price -- --write", + "date": "2026-11-18", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2 before the module: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; the effect measured on T1 FX2 in place of NONE; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41.2 % before, 41.1 % installed and used nowhere, 41 % on T1 FX2; CPU meter 63.1 % before, 63.9 % at rest, 60.8 % in use.", + "source": "evidence/cpu-price.json" } }, "tests": { @@ -372,6 +381,15 @@ "rationale": "The module adds 200 bytes of state per track plus code and coefficient tables, while reusing stock delay rings. The common 10 MiB DRAM platform arena is shared rather than additive per instance. Moderate is an incremental footprint estimate.", "source": "README.md" } + }, + "cpuPrice": { + "value": 7.7, + "unit": "percent-of-frame", + "measure": "frame-interrupt", + "tool": "npm run device:price -- --write", + "date": "2026-11-18", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2 before the module: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; the effect measured on T1 FX2 in place of NONE; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 41.4 % installed and used nowhere, 48.7 % on T1 FX2; CPU meter 60.3 % before, 60.3 % at rest, 70.3 % in use.", + "source": "evidence/cpu-price.json" } }, "tests": { @@ -837,6 +855,15 @@ "rationale": "The README states DSP state is private to each instance and no audio buffer is allocated. Small rhythm/control state, code and tables remain; low is an estimate, not an exact total memory claim.", "source": "README.md" } + }, + "cpuPrice": { + "value": 7.2, + "unit": "percent-of-frame", + "measure": "frame-interrupt", + "tool": "npm run device:price -- --write", + "date": "2026-11-18", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2 before the module: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; the effect measured on T1 FX2 in place of NONE; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 43.5 % installed and used nowhere, 48.2 % on T1 FX2; CPU meter 59.5 % before, 61.8 % at rest, 64.9 % in use.", + "source": "evidence/cpu-price.json" } }, "tests": { @@ -1229,6 +1256,15 @@ "rationale": "422 words of DSP program per payload and 31 words of state in each instance's existing r7 block. No allocator buffer, tables or Y memory, where SPRING REV takes 1,063 words and a 16,384-word instance buffer.", "source": "TESTING.md" } + }, + "cpuPrice": { + "value": 0, + "unit": "percent-of-frame", + "measure": "frame-interrupt", + "tool": "npm run device:price -- --write", + "date": "2026-11-18", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2 before the module: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; the effect measured on T1 FX2 in place of NONE; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41.3 % before, 41.1 % installed and used nowhere, 41 % on T1 FX2; CPU meter 63.5 % before, 63.8 % at rest, 61.3 % in use.", + "source": "evidence/cpu-price.json" } }, "tests": { @@ -1854,6 +1890,15 @@ "rationale": "1,602 program words per core in two given-up stock reverbs' space, a 132-word X block per instance, and 15,870 words of the 16K-word FX2 delay buffer every reverb already gets.", "source": "TESTING.md" } + }, + "cpuPrice": { + "value": 0, + "unit": "percent-of-frame", + "measure": "frame-interrupt", + "tool": "npm run device:price -- --write", + "date": "2026-11-18", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2 before the module: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; the effect measured on T1 FX2 in place of NONE; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 41 % installed and used nowhere, 41 % on T1 FX2; CPU meter 60.8 % before, 60.6 % at rest, 61.2 % in use.", + "source": "evidence/cpu-price.json" } }, "tests": { @@ -2165,6 +2210,15 @@ "rationale": "1,112 program words per core in the space of SPRING REV and PLATE REV, a 91-word X block per instance, the 16K-word FX2 delay buffer every delay already gets.", "source": "TESTING.md" } + }, + "cpuPrice": { + "value": 0, + "unit": "percent-of-frame", + "measure": "frame-interrupt", + "tool": "npm run device:price -- --write", + "date": "2026-11-18", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2 before the module: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; the effect measured on T1 FX2 in place of NONE; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 40.9 % installed and used nowhere, 41 % on T1 FX2; CPU meter 60 % before, 59.5 % at rest, 61.1 % in use.", + "source": "evidence/cpu-price.json" } }, "tests": { @@ -2581,6 +2635,15 @@ "rationale": "1,354 contiguous program-memory words on each DSP core (838 code, 516 table), more than any single stock reverb's span (SPRING REV 1,063, DARK REV 1,067), so a static build gives up two adjacent reverbs. 132 state words per instance in the existing r7 block; no buffer.", "source": "TESTING.md" } + }, + "cpuPrice": { + "value": 0, + "unit": "percent-of-frame", + "measure": "frame-interrupt", + "tool": "npm run device:price -- --write", + "date": "2026-11-18", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2 before the module: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; the effect measured on T1 FX2 in place of NONE; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 41 % installed and used nowhere, 41 % on T1 FX2; CPU meter 60.5 % before, 59.4 % at rest, 60.9 % in use.", + "source": "evidence/cpu-price.json" } }, "tests": { @@ -2979,6 +3042,15 @@ "rationale": "351 words of DSP program per core and 22 words of state in each instance's existing block; the key bus's memory is the base's.", "source": "TESTING.md" } + }, + "cpuPrice": { + "value": 0, + "unit": "percent-of-frame", + "measure": "frame-interrupt", + "tool": "npm run device:price -- --write", + "date": "2026-11-18", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2 before the module: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; the effect measured on T1 FX2 in place of NONE; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 41 % installed and used nowhere, 41 % on T1 FX2; CPU meter 60.5 % before, 59.5 % at rest, 60.8 % in use.", + "source": "evidence/cpu-price.json" } }, "tests": { From c34befcc1fb0dec17a5ecdf82d4b823ebc08c7ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Wed, 18 Nov 2026 15:11:04 +0100 Subject: [PATCH 031/415] Fix: an imported module's manifest pin accepts a measured CPU price too TapeHead's octamod.module.json is pinned by sdk/imports/tapehead-f890330.json, so its price failed test_requested_imports and tapehead.test.ts in CI. verifyImportedFile now also accepts the module's manifest when only resources.cpuPrice was added (manifestWithoutPrice), the same rule as modules:check. Co-Authored-By: Claude Opus 5.5 --- scripts/sdk-imports.mjs | 8 ++++++++ src/tooling/sdk-imports.test.ts | 15 +++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/scripts/sdk-imports.mjs b/scripts/sdk-imports.mjs index ce47d7c052..33fed5c480 100644 --- a/scripts/sdk-imports.mjs +++ b/scripts/sdk-imports.mjs @@ -3,6 +3,7 @@ import { createHash } from 'node:crypto' import { lstatSync, readdirSync, readFileSync } from 'node:fs' import { dirname, resolve, basename } from 'node:path' import { fileURLToPath } from 'node:url' +import { manifestWithoutPrice } from './module-cpu-price.mjs' const localGuides = new Set(['README.md', 'TESTING.md', 'CPU.md']) export function verifyImportedFile(path, expected, moduleRoot = null) { @@ -16,6 +17,13 @@ export function verifyImportedFile(path, expected, moduleRoot = null) { return true } const actual = createHash('sha256').update(bytes).digest('hex') + // A measured CPU price changes no module (owner, 18 November 2026): an imported manifest still matches when only + // device:price --write's resources.cpuPrice was added (module-qualification.mjs keeps the same rule). + if (actual !== expected && moduleRoot && basename(path) === 'octamod.module.json' && basename(dirname(resolve(path))) === basename(resolve(moduleRoot))) { // the module's manifest, or its generated sdk/octabam copy + let priceless + try { priceless = manifestWithoutPrice(bytes.toString('utf8')) } catch { priceless = null } + if (priceless !== null && createHash('sha256').update(priceless).digest('hex') === expected) return false + } if (actual !== expected) throw new Error(`Imported source checksum mismatch: ${path}\nExpected ${expected}\nActual ${actual}`) return false } diff --git a/src/tooling/sdk-imports.test.ts b/src/tooling/sdk-imports.test.ts index 47b02fa9ed..858a62b303 100644 --- a/src/tooling/sdk-imports.test.ts +++ b/src/tooling/sdk-imports.test.ts @@ -56,3 +56,18 @@ it.skipIf(process.platform === 'win32')('rejects symlinked guides', () => fixtur symlinkSync(target, path) expect(() => verifyImportedFile(path, checksum, root)).toThrow('regular file') })) + +it('lets a measured CPU price into an imported manifest, and nothing else', () => fixture(root => { + const path = join(root, 'octamod.module.json'), document = { id: 'echo', author: { name: 'Jannik A\u00dffalg' }, resources: { memory: 'small' } } + const text = (value: object) => JSON.stringify(value, null, 2).replace(/\u00df/g, '\\u00df') + '\n' + const imported = createHash('sha256').update(text(document)).digest('hex') + const priced = { ...document, resources: { ...document.resources, cpuPrice: { value: 0, unit: 'percent-of-frame', measure: 'frame-interrupt', source: 'evidence/cpu-price.json' } } } + writeFileSync(path, text(priced)) + expect(verifyImportedFile(path, imported, root)).toBe(false) + expect(() => verifyImportedFile(path, imported)).toThrow('checksum mismatch') + writeFileSync(path, text({ ...priced, id: 'other' })) + expect(() => verifyImportedFile(path, imported, root)).toThrow('checksum mismatch') + const other = join(root, 'other.json') + writeFileSync(other, text(priced)) + expect(() => verifyImportedFile(other, imported, root)).toThrow('checksum mismatch') +})) From e7413c26d97e5b4f9dfbd3dcabefe40c37ef1a43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Wed, 18 Nov 2026 15:32:36 +0100 Subject: [PATCH 032/415] Improvement: Batch B CPU prices, and an owner waiver's folder pin accepts a price Eleven key-press, menu and sequencer modules priced on the MKII (twin d3d71297 of base 0.7.8), the non-zero ones repeated: Track Solo 0.3, Direct Jump Kyoti, Tiempos, Tuner 0.1, the rest 0. Preview Volume ships under the 2 October owner waiver, whose folder pin now also accepts the price-free fingerprint, as the qualification and import pins do. Co-Authored-By: Claude Opus 5.5 --- .../2026-11-17-device-price-writes-price.md | 2 +- scripts/module-qualification.mjs | 2 +- sdk/module-cpu-prices-pending.json | 11 --- .../apply-scene/evidence/cpu-price.json | 37 +++++++ .../modules/apply-scene/octamod.module.json | 9 ++ .../modules/bar-led/evidence/cpu-price.json | 37 +++++++ .../modules/bar-led/octamod.module.json | 9 ++ .../modules/dejavu/evidence/cpu-price.json | 37 +++++++ .../modules/dejavu/octamod.module.json | 9 ++ .../direct-jump-kyoti/evidence/cpu-price.json | 37 +++++++ .../direct-jump-kyoti/octamod.module.json | 9 ++ .../previewvol/evidence/cpu-price.json | 37 +++++++ .../modules/previewvol/octamod.module.json | 9 ++ .../evidence/cpu-price.json | 37 +++++++ .../octamod.module.json | 9 ++ .../modules/quantizer/evidence/cpu-price.json | 37 +++++++ .../modules/quantizer/octamod.module.json | 9 ++ .../modules/temp-save/evidence/cpu-price.json | 37 +++++++ .../modules/temp-save/octamod.module.json | 9 ++ .../modules/tiempos/evidence/cpu-price.json | 37 +++++++ .../modules/tiempos/octamod.module.json | 9 ++ .../track-solo/evidence/cpu-price.json | 37 +++++++ .../modules/track-solo/octamod.module.json | 9 ++ .../modules/tuner/evidence/cpu-price.json | 37 +++++++ .../modules/tuner/octamod.module.json | 9 ++ src/catalog/module-documents.json | 99 +++++++++++++++++++ 26 files changed, 607 insertions(+), 13 deletions(-) create mode 100644 sdk/octatrack/modules/apply-scene/evidence/cpu-price.json create mode 100644 sdk/octatrack/modules/bar-led/evidence/cpu-price.json create mode 100644 sdk/octatrack/modules/dejavu/evidence/cpu-price.json create mode 100644 sdk/octatrack/modules/direct-jump-kyoti/evidence/cpu-price.json create mode 100644 sdk/octatrack/modules/previewvol/evidence/cpu-price.json create mode 100644 sdk/octatrack/modules/quantize-live-rec-toggle/evidence/cpu-price.json create mode 100644 sdk/octatrack/modules/quantizer/evidence/cpu-price.json create mode 100644 sdk/octatrack/modules/temp-save/evidence/cpu-price.json create mode 100644 sdk/octatrack/modules/tiempos/evidence/cpu-price.json create mode 100644 sdk/octatrack/modules/track-solo/evidence/cpu-price.json create mode 100644 sdk/octatrack/modules/tuner/evidence/cpu-price.json diff --git a/changelog/2026-11-17-device-price-writes-price.md b/changelog/2026-11-17-device-price-writes-price.md index e9cd89e589..357a457c44 100644 --- a/changelog/2026-11-17-device-price-writes-price.md +++ b/changelog/2026-11-17-device-price-writes-price.md @@ -1 +1 @@ -SDK: `npm run device:price -- --write --base ID --scene TEXT ` now writes a module's measured CPU price into its manifest itself (`resources.cpuPrice`), keeps the readings in the module's `evidence/cpu-price.json` and takes the module off the pending list. `modules:check`, so CI and `pr:ready`, and `module:doctor` recompute a price from those readings and refuse one that differs, so a measured price is never typed by hand. Prices written by hand before keep their TESTING.md source. A `.mwrm` build of a published effect is now measured on a slot as well. A machine is still priced on a playing track (`npm run device -- do`). Adding a measured price no longer counts as a change to a published module, so it needs no new release. A pick that fails is no longer measured as the effect in use, and `--fx-name ID=NAME` names an effect the chooser shows under another name. First prices measured this way on an MKII: Tape Echo 7.7 % of a frame, Euclid 7.2 %, and 0 for BBD, E-Verb, LOFI2, Mini Verb, TapeHead and Ring SC, whose sound runs on the DSP. +SDK: `npm run device:price -- --write --base ID --scene TEXT ` now writes a module's measured CPU price into its manifest itself (`resources.cpuPrice`), keeps the readings in the module's `evidence/cpu-price.json` and takes the module off the pending list. `modules:check`, so CI and `pr:ready`, and `module:doctor` recompute a price from those readings and refuse one that differs, so a measured price is never typed by hand. Prices written by hand before keep their TESTING.md source. A `.mwrm` build of a published effect is now measured on a slot as well. A machine is still priced on a playing track (`npm run device -- do`). Adding a measured price no longer counts as a change to a published module, so it needs no new release. A pick that fails is no longer measured as the effect in use, and `--fx-name ID=NAME` names an effect the chooser shows under another name. First prices measured this way on an MKII: Tape Echo 7.7 % of a frame, Euclid 7.2 %, and 0 for BBD, E-Verb, LOFI2, Mini Verb, TapeHead and Ring SC, whose sound runs on the DSP. Then eleven modules that act on a key press, a menu or the sequencer: Track Solo 0.3 %, Direct Jump Kyoti, Tiempos and Tuner 0.1 %, and 0 for Apply Scene, Bar LED, Deja Vu, Preview Volume, Quantize Live Rec Toggle, Quantizer and Temp Save. diff --git a/scripts/module-qualification.mjs b/scripts/module-qualification.mjs index 8d7a30b002..b928d8cfe2 100644 --- a/scripts/module-qualification.mjs +++ b/scripts/module-qualification.mjs @@ -116,7 +116,7 @@ export async function requireFolderQualification(folder, document, baseline, wai if(document.id==='synth'&&document.version==='0.1.1-experimental'&&declaration?.approvedOn==='2026-10-06') return requireSynthRelease(options.root??fileURLToPath(new URL('../',import.meta.url)),folder,document,moduleNativeSourceSha256) const waiver=waivers.get(document.id) if(waiver?.version===document.version&&declaration) { - if(declaration.moduleVersion!==document.version||declaration.sourceSha256!==waiver.sourceSha256||await moduleNativeSourceSha256(folder,document)!==waiver.sourceSha256||await moduleFolderSha256(folder)!==waiver.folderSha256) throw new Error(document.id+': owner waiver does not cover this exact source and complete module folder') + if(declaration.moduleVersion!==document.version||declaration.sourceSha256!==waiver.sourceSha256||await moduleNativeSourceSha256(folder,document)!==waiver.sourceSha256||await moduleFolderSha256(folder)!==waiver.folderSha256&&await modulePricelessFolderSha256(folder)!==waiver.folderSha256) throw new Error(document.id+': owner waiver does not cover this exact source and complete module folder') if(document.tests.hardwareStatus!=='untested'||document.tests.qualification||document.build||document.resources.processing.value!==null||document.resources.processing.method!=='unmeasured') throw new Error(document.id+': owner-waived hardware and chip timing must remain explicitly untested/unmeasured') const report=JSON.parse(await readFile(resolve(folder,declaration.report),'utf8')) if(report.schemaVersion!==1||report.id!==document.id||report.moduleVersion!==document.version||report.sourceSha256!==waiver.sourceSha256||report.imageSha256!==declaration.imageSha256||report.hardwareStatus!=='untested'||report.chipWorstCaseCycles!==null||report.nativeBrowserParity?.status!=='passed'||report.nativeBrowserParity.selections!==1024||report.nativeBrowserParity.exactImages!==522||report.nativeBrowserParity.matchingRefusals!==502||report.nativePackaging?.status!=='passed'||report.nativePackaging.exactContainersAndUpgrades!==8||report.rejections?.status!=='passed'||!report.memory?.romBytes) throw new Error(document.id+': incomplete or stale software verification report') diff --git a/sdk/module-cpu-prices-pending.json b/sdk/module-cpu-prices-pending.json index b1cb22358f..43bc49b69a 100644 --- a/sdk/module-cpu-prices-pending.json +++ b/sdk/module-cpu-prices-pending.json @@ -3,30 +3,19 @@ "pending": { "amiga": "price not yet measured", "analog-bassdrum": "price not yet measured", - "apply-scene": "price not yet measured", "arp-key-locks": "price not yet measured", - "bar-led": "price not yet measured", "beat-slicer": "price not yet measured", "cc-map": "price not yet measured", - "dejavu": "price not yet measured", - "direct-jump-kyoti": "price not yet measured", "mute-modes": "price not yet measured", "output-matrix": "price not yet measured", "pattern-sample-locks": "price not yet measured", "playmodes": "price not yet measured", "poly8": "price not yet measured", - "previewvol": "price not yet measured", - "quantize-live-rec-toggle": "price not yet measured", - "quantizer": "price not yet measured", "recorder-loop-fix": "price not yet measured", "sidechain-compressor": "price not yet measured", "slow-lfo": "price not yet measured", "stem-rec": "price not yet measured", "syntiz": "price not yet measured", - "temp-save": "price not yet measured", - "tiempos": "price not yet measured", - "track-solo": "price not yet measured", - "tuner": "price not yet measured", "usb-audio-out-tracks-main-cue": "price not yet measured", "vector": "price not yet measured" } diff --git a/sdk/octatrack/modules/apply-scene/evidence/cpu-price.json b/sdk/octatrack/modules/apply-scene/evidence/cpu-price.json new file mode 100644 index 0000000000..d0ff07068e --- /dev/null +++ b/sdk/octatrack/modules/apply-scene/evidence/cpu-price.json @@ -0,0 +1,37 @@ +{ + "module": "apply-scene", + "version": "0.2.0-experimental", + "base": "development twin d3d71297 of base 0.7.8 (main 02dfa20ca)", + "scene": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting", + "seconds": 8, + "measuredAt": "2026-11-18T14:13:51.819Z", + "result": { + "id": "apply-scene", + "version": "0.2.0-experimental", + "before": { + "frame": 41, + "frameMax": 74.3, + "frames": 22896, + "skipped": 0, + "cpu": 60.6, + "dsp1to4": 38.9, + "dsp5to8": 45 + }, + "atRest": { + "frame": 41, + "frameMax": 74.1, + "frames": 22796, + "skipped": 0, + "cpu": 60.5, + "dsp1to4": 38.9, + "dsp5to8": 45.3 + }, + "atRestAdds": { + "frame": 0, + "cpu": -0.1, + "dsp1to4": 0, + "dsp5to8": 0.3 + }, + "rolledBack": true + } +} diff --git a/sdk/octatrack/modules/apply-scene/octamod.module.json b/sdk/octatrack/modules/apply-scene/octamod.module.json index e769c54b8f..8e9712acb3 100644 --- a/sdk/octatrack/modules/apply-scene/octamod.module.json +++ b/sdk/octatrack/modules/apply-scene/octamod.module.json @@ -100,6 +100,15 @@ "rationale": "2,062 bytes of ColdFire code and state (101 bytes of it state: the YES press and the TRIG + SCENE chord); no DSP memory and no saved data of its own.", "source": "TESTING.md" } + }, + "cpuPrice": { + "value": 0, + "unit": "percent-of-frame", + "measure": "frame-interrupt", + "tool": "npm run device:price -- --write", + "date": "2026-11-18", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 41 % installed and used nowhere; CPU meter 60.6 % before, 60.5 % at rest.", + "source": "evidence/cpu-price.json" } }, "tests": { diff --git a/sdk/octatrack/modules/bar-led/evidence/cpu-price.json b/sdk/octatrack/modules/bar-led/evidence/cpu-price.json new file mode 100644 index 0000000000..ab9ce862b0 --- /dev/null +++ b/sdk/octatrack/modules/bar-led/evidence/cpu-price.json @@ -0,0 +1,37 @@ +{ + "module": "bar-led", + "version": "0.1.0-experimental", + "base": "development twin d3d71297 of base 0.7.8 (main 02dfa20ca)", + "scene": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting", + "seconds": 8, + "measuredAt": "2026-11-18T14:13:51.819Z", + "result": { + "id": "bar-led", + "version": "0.1.0-experimental", + "before": { + "frame": 41, + "frameMax": 73.7, + "frames": 22793, + "skipped": 0, + "cpu": 60.4, + "dsp1to4": 38.9, + "dsp5to8": 45 + }, + "atRest": { + "frame": 40.9, + "frameMax": 74.2, + "frames": 22866, + "skipped": 0, + "cpu": 59.6, + "dsp1to4": 38.9, + "dsp5to8": 45 + }, + "atRestAdds": { + "frame": -0.1, + "cpu": -0.8, + "dsp1to4": 0, + "dsp5to8": 0 + }, + "rolledBack": true + } +} diff --git a/sdk/octatrack/modules/bar-led/octamod.module.json b/sdk/octatrack/modules/bar-led/octamod.module.json index c62e292c4a..a5f9cc8542 100644 --- a/sdk/octatrack/modules/bar-led/octamod.module.json +++ b/sdk/octatrack/modules/bar-led/octamod.module.json @@ -91,6 +91,15 @@ "rationale": "64 bytes of code and state.", "source": "TESTING.md" } + }, + "cpuPrice": { + "value": 0, + "unit": "percent-of-frame", + "measure": "frame-interrupt", + "tool": "npm run device:price -- --write", + "date": "2026-11-18", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 40.9 % installed and used nowhere; CPU meter 60.4 % before, 59.6 % at rest.", + "source": "evidence/cpu-price.json" } }, "tests": { diff --git a/sdk/octatrack/modules/dejavu/evidence/cpu-price.json b/sdk/octatrack/modules/dejavu/evidence/cpu-price.json new file mode 100644 index 0000000000..c7ed9b7484 --- /dev/null +++ b/sdk/octatrack/modules/dejavu/evidence/cpu-price.json @@ -0,0 +1,37 @@ +{ + "module": "dejavu", + "version": "0.1.0-experimental", + "base": "development twin d3d71297 of base 0.7.8 (main 02dfa20ca)", + "scene": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting", + "seconds": 8, + "measuredAt": "2026-11-18T14:13:51.819Z", + "result": { + "id": "dejavu", + "version": "0.1.0-experimental", + "before": { + "frame": 40.9, + "frameMax": 73.8, + "frames": 22773, + "skipped": 0, + "cpu": 59.4, + "dsp1to4": 38.4, + "dsp5to8": 45.6 + }, + "atRest": { + "frame": 40.9, + "frameMax": 74.4, + "frames": 22785, + "skipped": 0, + "cpu": 60.5, + "dsp1to4": 38.3, + "dsp5to8": 45.6 + }, + "atRestAdds": { + "frame": 0, + "cpu": 1.1, + "dsp1to4": -0.1, + "dsp5to8": 0 + }, + "rolledBack": true + } +} diff --git a/sdk/octatrack/modules/dejavu/octamod.module.json b/sdk/octatrack/modules/dejavu/octamod.module.json index 30a6598c08..6b9ab0f8dc 100644 --- a/sdk/octatrack/modules/dejavu/octamod.module.json +++ b/sdk/octatrack/modules/dejavu/octamod.module.json @@ -84,6 +84,15 @@ "rationale": "2,784 bytes of code and tables and 2,784 bytes of state in the DRAM reserve, plus 32 bytes of stock writes; no DSP memory and no saved data.", "source": "TESTING.md" } + }, + "cpuPrice": { + "value": 0, + "unit": "percent-of-frame", + "measure": "frame-interrupt", + "tool": "npm run device:price -- --write", + "date": "2026-11-18", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 40.9 % before, 40.9 % installed and used nowhere; CPU meter 59.4 % before, 60.5 % at rest.", + "source": "evidence/cpu-price.json" } }, "tests": { diff --git a/sdk/octatrack/modules/direct-jump-kyoti/evidence/cpu-price.json b/sdk/octatrack/modules/direct-jump-kyoti/evidence/cpu-price.json new file mode 100644 index 0000000000..58e25cdb21 --- /dev/null +++ b/sdk/octatrack/modules/direct-jump-kyoti/evidence/cpu-price.json @@ -0,0 +1,37 @@ +{ + "module": "direct-jump-kyoti", + "version": "0.1.2-experimental", + "base": "development twin d3d71297 of base 0.7.8 (main 02dfa20ca)", + "scene": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting", + "seconds": 8, + "measuredAt": "2026-11-18T14:13:51.819Z", + "result": { + "id": "direct-jump-kyoti", + "version": "0.1.2-experimental", + "before": { + "frame": 40.9, + "frameMax": 73.9, + "frames": 22788, + "skipped": 0, + "cpu": 60.6, + "dsp1to4": 38.3, + "dsp5to8": 46 + }, + "atRest": { + "frame": 41, + "frameMax": 74, + "frames": 22880, + "skipped": 0, + "cpu": 60.5, + "dsp1to4": 38.7, + "dsp5to8": 45.6 + }, + "atRestAdds": { + "frame": 0.1, + "cpu": -0.1, + "dsp1to4": 0.4, + "dsp5to8": -0.4 + }, + "rolledBack": true + } +} diff --git a/sdk/octatrack/modules/direct-jump-kyoti/octamod.module.json b/sdk/octatrack/modules/direct-jump-kyoti/octamod.module.json index e1fee00f3b..dc3929a7f2 100644 --- a/sdk/octatrack/modules/direct-jump-kyoti/octamod.module.json +++ b/sdk/octatrack/modules/direct-jump-kyoti/octamod.module.json @@ -122,6 +122,15 @@ "rationale": "2,078 bytes of ColdFire code and state in the DRAM reserve (62 bytes of state) and 28 bytes of stock writes; no DSP memory and no saved data.", "source": "TESTING.md" } + }, + "cpuPrice": { + "value": 0.1, + "unit": "percent-of-frame", + "measure": "frame-interrupt", + "tool": "npm run device:price -- --write", + "date": "2026-11-18", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 40.9 % before, 41 % installed and used nowhere; CPU meter 60.6 % before, 60.5 % at rest.", + "source": "evidence/cpu-price.json" } }, "tests": { diff --git a/sdk/octatrack/modules/previewvol/evidence/cpu-price.json b/sdk/octatrack/modules/previewvol/evidence/cpu-price.json new file mode 100644 index 0000000000..26650581e6 --- /dev/null +++ b/sdk/octatrack/modules/previewvol/evidence/cpu-price.json @@ -0,0 +1,37 @@ +{ + "module": "previewvol", + "version": "0.1.2-experimental", + "base": "development twin d3d71297 of base 0.7.8 (main 02dfa20ca)", + "scene": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting", + "seconds": 8, + "measuredAt": "2026-11-18T14:13:51.819Z", + "result": { + "id": "previewvol", + "version": "0.1.2-experimental", + "before": { + "frame": 40.9, + "frameMax": 74.2, + "frames": 22782, + "skipped": 0, + "cpu": 60.4, + "dsp1to4": 38.9, + "dsp5to8": 45 + }, + "atRest": { + "frame": 40.9, + "frameMax": 73.8, + "frames": 22782, + "skipped": 0, + "cpu": 59.4, + "dsp1to4": 38.9, + "dsp5to8": 45 + }, + "atRestAdds": { + "frame": 0, + "cpu": -1, + "dsp1to4": 0, + "dsp5to8": 0 + }, + "rolledBack": true + } +} diff --git a/sdk/octatrack/modules/previewvol/octamod.module.json b/sdk/octatrack/modules/previewvol/octamod.module.json index 25888d2251..493b23fd63 100644 --- a/sdk/octatrack/modules/previewvol/octamod.module.json +++ b/sdk/octatrack/modules/previewvol/octamod.module.json @@ -109,6 +109,15 @@ "rationale": "36 authored ROM bytes, up to 127 alignment bytes, no newly allocated heap or persistent RAM. Existing stock state is reused.", "source": "TESTING.md" } + }, + "cpuPrice": { + "value": 0, + "unit": "percent-of-frame", + "measure": "frame-interrupt", + "tool": "npm run device:price -- --write", + "date": "2026-11-18", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 40.9 % before, 40.9 % installed and used nowhere; CPU meter 60.4 % before, 59.4 % at rest.", + "source": "evidence/cpu-price.json" } }, "tests": { diff --git a/sdk/octatrack/modules/quantize-live-rec-toggle/evidence/cpu-price.json b/sdk/octatrack/modules/quantize-live-rec-toggle/evidence/cpu-price.json new file mode 100644 index 0000000000..ec3b1918b6 --- /dev/null +++ b/sdk/octatrack/modules/quantize-live-rec-toggle/evidence/cpu-price.json @@ -0,0 +1,37 @@ +{ + "module": "quantize-live-rec-toggle", + "version": "0.1.1-experimental", + "base": "development twin d3d71297 of base 0.7.8 (main 02dfa20ca)", + "scene": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting", + "seconds": 8, + "measuredAt": "2026-11-18T14:13:51.819Z", + "result": { + "id": "quantize-live-rec-toggle", + "version": "0.1.1-experimental", + "before": { + "frame": 41, + "frameMax": 74.1, + "frames": 22870, + "skipped": 0, + "cpu": 59.5, + "dsp1to4": 38.9, + "dsp5to8": 45 + }, + "atRest": { + "frame": 40.9, + "frameMax": 73.7, + "frames": 22772, + "skipped": 0, + "cpu": 60.6, + "dsp1to4": 38.9, + "dsp5to8": 45 + }, + "atRestAdds": { + "frame": -0.1, + "cpu": 1.1, + "dsp1to4": 0, + "dsp5to8": 0 + }, + "rolledBack": true + } +} diff --git a/sdk/octatrack/modules/quantize-live-rec-toggle/octamod.module.json b/sdk/octatrack/modules/quantize-live-rec-toggle/octamod.module.json index 18c6e4aec3..87435a4553 100644 --- a/sdk/octatrack/modules/quantize-live-rec-toggle/octamod.module.json +++ b/sdk/octatrack/modules/quantize-live-rec-toggle/octamod.module.json @@ -118,6 +118,15 @@ "rationale": "208 bytes of ROM; no RAM or audio memory of its own.", "source": "TESTING.md" } + }, + "cpuPrice": { + "value": 0, + "unit": "percent-of-frame", + "measure": "frame-interrupt", + "tool": "npm run device:price -- --write", + "date": "2026-11-18", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 40.9 % installed and used nowhere; CPU meter 59.5 % before, 60.6 % at rest.", + "source": "evidence/cpu-price.json" } }, "tests": { diff --git a/sdk/octatrack/modules/quantizer/evidence/cpu-price.json b/sdk/octatrack/modules/quantizer/evidence/cpu-price.json new file mode 100644 index 0000000000..5349a27d2d --- /dev/null +++ b/sdk/octatrack/modules/quantizer/evidence/cpu-price.json @@ -0,0 +1,37 @@ +{ + "module": "quantizer", + "version": "0.1.4-experimental", + "base": "development twin d3d71297 of base 0.7.8 (main 02dfa20ca)", + "scene": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting", + "seconds": 8, + "measuredAt": "2026-11-18T14:16:50.230Z", + "result": { + "id": "quantizer", + "version": "0.1.4-experimental", + "before": { + "frame": 41, + "frameMax": 74.7, + "frames": 22787, + "skipped": 0, + "cpu": 60.4, + "dsp1to4": 38.5, + "dsp5to8": 45.6 + }, + "atRest": { + "frame": 41, + "frameMax": 74.8, + "frames": 22775, + "skipped": 0, + "cpu": 59.5, + "dsp1to4": 38.6, + "dsp5to8": 45 + }, + "atRestAdds": { + "frame": 0, + "cpu": -0.9, + "dsp1to4": 0.1, + "dsp5to8": -0.6 + }, + "rolledBack": true + } +} diff --git a/sdk/octatrack/modules/quantizer/octamod.module.json b/sdk/octatrack/modules/quantizer/octamod.module.json index eb3bb3eb28..8a874b6f2a 100644 --- a/sdk/octatrack/modules/quantizer/octamod.module.json +++ b/sdk/octatrack/modules/quantizer/octamod.module.json @@ -284,6 +284,15 @@ "rationale": "The card build has a 255-byte ROM core/stub/trampoline footprint plus small settings. DRAM code, menus and loader overhead are additional. Minimal is a relative source estimate, not a claim that total memory is only 255 bytes.", "source": "TESTING.md" } + }, + "cpuPrice": { + "value": 0, + "unit": "percent-of-frame", + "measure": "frame-interrupt", + "tool": "npm run device:price -- --write", + "date": "2026-11-18", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 41 % installed and used nowhere; CPU meter 60.4 % before, 59.5 % at rest.", + "source": "evidence/cpu-price.json" } }, "tests": { diff --git a/sdk/octatrack/modules/temp-save/evidence/cpu-price.json b/sdk/octatrack/modules/temp-save/evidence/cpu-price.json new file mode 100644 index 0000000000..6ca2187d3c --- /dev/null +++ b/sdk/octatrack/modules/temp-save/evidence/cpu-price.json @@ -0,0 +1,37 @@ +{ + "module": "temp-save", + "version": "0.1.1-experimental", + "base": "development twin d3d71297 of base 0.7.8 (main 02dfa20ca)", + "scene": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting", + "seconds": 8, + "measuredAt": "2026-11-18T14:16:50.230Z", + "result": { + "id": "temp-save", + "version": "0.1.1-experimental", + "before": { + "frame": 41, + "frameMax": 74.2, + "frames": 22795, + "skipped": 0, + "cpu": 59.5, + "dsp1to4": 41.8, + "dsp5to8": 45.6 + }, + "atRest": { + "frame": 40.9, + "frameMax": 74.4, + "frames": 22822, + "skipped": 0, + "cpu": 60.7, + "dsp1to4": 38.9, + "dsp5to8": 45.6 + }, + "atRestAdds": { + "frame": -0.1, + "cpu": 1.2, + "dsp1to4": -2.9, + "dsp5to8": 0 + }, + "rolledBack": true + } +} diff --git a/sdk/octatrack/modules/temp-save/octamod.module.json b/sdk/octatrack/modules/temp-save/octamod.module.json index c9b5629bde..e59f066976 100644 --- a/sdk/octatrack/modules/temp-save/octamod.module.json +++ b/sdk/octatrack/modules/temp-save/octamod.module.json @@ -90,6 +90,15 @@ "rationale": "A 42,892-byte buffer for one pattern and one Part, plus 892 bytes of code: on USB about a sixth of the 256 KB module pool all modules share; no saved data.", "source": "TESTING.md" } + }, + "cpuPrice": { + "value": 0, + "unit": "percent-of-frame", + "measure": "frame-interrupt", + "tool": "npm run device:price -- --write", + "date": "2026-11-18", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 40.9 % installed and used nowhere; CPU meter 59.5 % before, 60.7 % at rest.", + "source": "evidence/cpu-price.json" } }, "tests": { diff --git a/sdk/octatrack/modules/tiempos/evidence/cpu-price.json b/sdk/octatrack/modules/tiempos/evidence/cpu-price.json new file mode 100644 index 0000000000..ce5e4545e6 --- /dev/null +++ b/sdk/octatrack/modules/tiempos/evidence/cpu-price.json @@ -0,0 +1,37 @@ +{ + "module": "tiempos", + "version": "0.1.0-experimental", + "base": "development twin d3d71297 of base 0.7.8 (main 02dfa20ca)", + "scene": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting", + "seconds": 8, + "measuredAt": "2026-11-18T14:16:50.230Z", + "result": { + "id": "tiempos", + "version": "0.1.0-experimental", + "before": { + "frame": 40.9, + "frameMax": 74.2, + "frames": 22775, + "skipped": 0, + "cpu": 60.4, + "dsp1to4": 38.9, + "dsp5to8": 45 + }, + "atRest": { + "frame": 41, + "frameMax": 74, + "frames": 22766, + "skipped": 0, + "cpu": 59.7, + "dsp1to4": 38.3, + "dsp5to8": 45.6 + }, + "atRestAdds": { + "frame": 0.1, + "cpu": -0.7, + "dsp1to4": -0.6, + "dsp5to8": 0.6 + }, + "rolledBack": true + } +} diff --git a/sdk/octatrack/modules/tiempos/octamod.module.json b/sdk/octatrack/modules/tiempos/octamod.module.json index 1e46524d49..b999d5dd8f 100644 --- a/sdk/octatrack/modules/tiempos/octamod.module.json +++ b/sdk/octatrack/modules/tiempos/octamod.module.json @@ -87,6 +87,15 @@ "rationale": "2,892 bytes of ColdFire code, data and state in DRAM, from the package header.", "source": "TESTING.md" } + }, + "cpuPrice": { + "value": 0.1, + "unit": "percent-of-frame", + "measure": "frame-interrupt", + "tool": "npm run device:price -- --write", + "date": "2026-11-18", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 40.9 % before, 41 % installed and used nowhere; CPU meter 60.4 % before, 59.7 % at rest.", + "source": "evidence/cpu-price.json" } }, "tests": { diff --git a/sdk/octatrack/modules/track-solo/evidence/cpu-price.json b/sdk/octatrack/modules/track-solo/evidence/cpu-price.json new file mode 100644 index 0000000000..5c45ed7628 --- /dev/null +++ b/sdk/octatrack/modules/track-solo/evidence/cpu-price.json @@ -0,0 +1,37 @@ +{ + "module": "track-solo", + "version": "0.2.5-experimental", + "base": "development twin d3d71297 of base 0.7.8 (main 02dfa20ca)", + "scene": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting", + "seconds": 8, + "measuredAt": "2026-11-18T14:16:50.230Z", + "result": { + "id": "track-solo", + "version": "0.2.5-experimental", + "before": { + "frame": 41, + "frameMax": 73.8, + "frames": 22795, + "skipped": 0, + "cpu": 59.5, + "dsp1to4": 38.9, + "dsp5to8": 45 + }, + "atRest": { + "frame": 41.3, + "frameMax": 74.5, + "frames": 22771, + "skipped": 0, + "cpu": 60.9, + "dsp1to4": 38.9, + "dsp5to8": 45 + }, + "atRestAdds": { + "frame": 0.3, + "cpu": 1.4, + "dsp1to4": 0, + "dsp5to8": 0 + }, + "rolledBack": true + } +} diff --git a/sdk/octatrack/modules/track-solo/octamod.module.json b/sdk/octatrack/modules/track-solo/octamod.module.json index 7945e5f7ef..1c52c82ee1 100644 --- a/sdk/octatrack/modules/track-solo/octamod.module.json +++ b/sdk/octatrack/modules/track-solo/octamod.module.json @@ -88,6 +88,15 @@ "rationale": "A 1,500-byte image with 44 writable bytes, zero BSS, and a 2,544-byte loader extent, with no buffers or per-track allocation.", "source": "evidence/resource-accounting.md" } + }, + "cpuPrice": { + "value": 0.3, + "unit": "percent-of-frame", + "measure": "frame-interrupt", + "tool": "npm run device:price -- --write", + "date": "2026-11-18", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 41.3 % installed and used nowhere; CPU meter 59.5 % before, 60.9 % at rest.", + "source": "evidence/cpu-price.json" } }, "tests": { diff --git a/sdk/octatrack/modules/tuner/evidence/cpu-price.json b/sdk/octatrack/modules/tuner/evidence/cpu-price.json new file mode 100644 index 0000000000..05c4c4b26a --- /dev/null +++ b/sdk/octatrack/modules/tuner/evidence/cpu-price.json @@ -0,0 +1,37 @@ +{ + "module": "tuner", + "version": "0.1.0-experimental", + "base": "development twin d3d71297 of base 0.7.8 (main 02dfa20ca)", + "scene": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting", + "seconds": 8, + "measuredAt": "2026-11-18T14:16:50.230Z", + "result": { + "id": "tuner", + "version": "0.1.0-experimental", + "before": { + "frame": 41, + "frameMax": 74, + "frames": 22788, + "skipped": 0, + "cpu": 60.8, + "dsp1to4": 38.4, + "dsp5to8": 45.6 + }, + "atRest": { + "frame": 41.1, + "frameMax": 74.6, + "frames": 22769, + "skipped": 0, + "cpu": 60.6, + "dsp1to4": 38.5, + "dsp5to8": 45.6 + }, + "atRestAdds": { + "frame": 0.1, + "cpu": -0.2, + "dsp1to4": 0.1, + "dsp5to8": 0 + }, + "rolledBack": true + } +} diff --git a/sdk/octatrack/modules/tuner/octamod.module.json b/sdk/octatrack/modules/tuner/octamod.module.json index 8bdf43ef32..03d823044b 100644 --- a/sdk/octatrack/modules/tuner/octamod.module.json +++ b/sdk/octatrack/modules/tuner/octamod.module.json @@ -114,6 +114,15 @@ "rationale": "One global sample ring and detector workspace; no per-track allocation or new sample storage. Current linked allocation, loader overhead and stack maximum are unmeasured.", "source": "upstream/tuner.s" } + }, + "cpuPrice": { + "value": 0.1, + "unit": "percent-of-frame", + "measure": "frame-interrupt", + "tool": "npm run device:price -- --write", + "date": "2026-11-18", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 41.1 % installed and used nowhere; CPU meter 60.8 % before, 60.6 % at rest.", + "source": "evidence/cpu-price.json" } }, "tests": { diff --git a/src/catalog/module-documents.json b/src/catalog/module-documents.json index 062548824d..2dee073ca1 100644 --- a/src/catalog/module-documents.json +++ b/src/catalog/module-documents.json @@ -4253,6 +4253,15 @@ "rationale": "The card build has a 255-byte ROM core/stub/trampoline footprint plus small settings. DRAM code, menus and loader overhead are additional. Minimal is a relative source estimate, not a claim that total memory is only 255 bytes.", "source": "TESTING.md" } + }, + "cpuPrice": { + "value": 0, + "unit": "percent-of-frame", + "measure": "frame-interrupt", + "tool": "npm run device:price -- --write", + "date": "2026-11-18", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 41 % installed and used nowhere; CPU meter 60.4 % before, 59.5 % at rest.", + "source": "evidence/cpu-price.json" } }, "tests": { @@ -4933,6 +4942,15 @@ "rationale": "36 authored ROM bytes, up to 127 alignment bytes, no newly allocated heap or persistent RAM. Existing stock state is reused.", "source": "TESTING.md" } + }, + "cpuPrice": { + "value": 0, + "unit": "percent-of-frame", + "measure": "frame-interrupt", + "tool": "npm run device:price -- --write", + "date": "2026-11-18", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 40.9 % before, 40.9 % installed and used nowhere; CPU meter 60.4 % before, 59.4 % at rest.", + "source": "evidence/cpu-price.json" } }, "tests": { @@ -7895,6 +7913,15 @@ "rationale": "208 bytes of ROM; no RAM or audio memory of its own.", "source": "TESTING.md" } + }, + "cpuPrice": { + "value": 0, + "unit": "percent-of-frame", + "measure": "frame-interrupt", + "tool": "npm run device:price -- --write", + "date": "2026-11-18", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 40.9 % installed and used nowhere; CPU meter 59.5 % before, 60.6 % at rest.", + "source": "evidence/cpu-price.json" } }, "tests": { @@ -8187,6 +8214,15 @@ "rationale": "2,062 bytes of ColdFire code and state (101 bytes of it state: the YES press and the TRIG + SCENE chord); no DSP memory and no saved data of its own.", "source": "TESTING.md" } + }, + "cpuPrice": { + "value": 0, + "unit": "percent-of-frame", + "measure": "frame-interrupt", + "tool": "npm run device:price -- --write", + "date": "2026-11-18", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 41 % installed and used nowhere; CPU meter 60.6 % before, 60.5 % at rest.", + "source": "evidence/cpu-price.json" } }, "tests": { @@ -8547,6 +8583,15 @@ "rationale": "2,078 bytes of ColdFire code and state in the DRAM reserve (62 bytes of state) and 28 bytes of stock writes; no DSP memory and no saved data.", "source": "TESTING.md" } + }, + "cpuPrice": { + "value": 0.1, + "unit": "percent-of-frame", + "measure": "frame-interrupt", + "tool": "npm run device:price -- --write", + "date": "2026-11-18", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 40.9 % before, 41 % installed and used nowhere; CPU meter 60.6 % before, 60.5 % at rest.", + "source": "evidence/cpu-price.json" } }, "tests": { @@ -8823,6 +8868,15 @@ "rationale": "2,784 bytes of code and tables and 2,784 bytes of state in the DRAM reserve, plus 32 bytes of stock writes; no DSP memory and no saved data.", "source": "TESTING.md" } + }, + "cpuPrice": { + "value": 0, + "unit": "percent-of-frame", + "measure": "frame-interrupt", + "tool": "npm run device:price -- --write", + "date": "2026-11-18", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 40.9 % before, 40.9 % installed and used nowhere; CPU meter 59.4 % before, 60.5 % at rest.", + "source": "evidence/cpu-price.json" } }, "tests": { @@ -9589,6 +9643,15 @@ "rationale": "A 42,892-byte buffer for one pattern and one Part, plus 892 bytes of code: on USB about a sixth of the 256 KB module pool all modules share; no saved data.", "source": "TESTING.md" } + }, + "cpuPrice": { + "value": 0, + "unit": "percent-of-frame", + "measure": "frame-interrupt", + "tool": "npm run device:price -- --write", + "date": "2026-11-18", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 40.9 % installed and used nowhere; CPU meter 59.5 % before, 60.7 % at rest.", + "source": "evidence/cpu-price.json" } }, "tests": { @@ -10075,6 +10138,15 @@ "rationale": "One global sample ring and detector workspace; no per-track allocation or new sample storage. Current linked allocation, loader overhead and stack maximum are unmeasured.", "source": "upstream/tuner.s" } + }, + "cpuPrice": { + "value": 0.1, + "unit": "percent-of-frame", + "measure": "frame-interrupt", + "tool": "npm run device:price -- --write", + "date": "2026-11-18", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 41.1 % installed and used nowhere; CPU meter 60.8 % before, 60.6 % at rest.", + "source": "evidence/cpu-price.json" } }, "tests": { @@ -10699,6 +10771,15 @@ "rationale": "64 bytes of code and state.", "source": "TESTING.md" } + }, + "cpuPrice": { + "value": 0, + "unit": "percent-of-frame", + "measure": "frame-interrupt", + "tool": "npm run device:price -- --write", + "date": "2026-11-18", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 40.9 % installed and used nowhere; CPU meter 60.4 % before, 59.6 % at rest.", + "source": "evidence/cpu-price.json" } }, "tests": { @@ -11408,6 +11489,15 @@ "rationale": "2,892 bytes of ColdFire code, data and state in DRAM, from the package header.", "source": "TESTING.md" } + }, + "cpuPrice": { + "value": 0.1, + "unit": "percent-of-frame", + "measure": "frame-interrupt", + "tool": "npm run device:price -- --write", + "date": "2026-11-18", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 40.9 % before, 41 % installed and used nowhere; CPU meter 60.4 % before, 59.7 % at rest.", + "source": "evidence/cpu-price.json" } }, "tests": { @@ -12329,6 +12419,15 @@ "rationale": "A 1,500-byte image with 44 writable bytes, zero BSS, and a 2,544-byte loader extent, with no buffers or per-track allocation.", "source": "evidence/resource-accounting.md" } + }, + "cpuPrice": { + "value": 0.3, + "unit": "percent-of-frame", + "measure": "frame-interrupt", + "tool": "npm run device:price -- --write", + "date": "2026-11-18", + "conditions": "MKII, the owner's project Tresor Prep bank A pattern A01 Part 1 playing at 138 BPM (four-on-the-floor kick on T1, sample tracks sounding on T2, T5 and T6); FX1/FX2: T1 FILTER/NONE, T2 FILTER/DELAY, T3-T4 CHORUS/NONE, T5-T8 FILTER/DELAY; installed and not used by any key press, menu or setting; base development twin d3d71297 of base 0.7.8 (main 02dfa20ca); 8 s per reading. Frame interrupt 41 % before, 41.3 % installed and used nowhere; CPU meter 59.5 % before, 60.9 % at rest.", + "source": "evidence/cpu-price.json" } }, "tests": { From 73fa956ef172b14dfde3208ee0f55891cf241404 Mon Sep 17 00:00:00 2001 From: jonathanwardle1992-beep Date: Wed, 18 Nov 2026 17:17:56 +0000 Subject: [PATCH 033/415] Record the 18 November Screen Off Keep and power cycle. Co-authored-by: Cursor --- sdk/drafts/screen-off/README.md | 2 +- sdk/drafts/screen-off/TESTING.md | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/sdk/drafts/screen-off/README.md b/sdk/drafts/screen-off/README.md index 0086f4de85..120eec3a3d 100644 --- a/sdk/drafts/screen-off/README.md +++ b/sdk/drafts/screen-off/README.md @@ -49,7 +49,7 @@ The blank clears the pixels of the composed frame. On a MKII that leaves the OLE The blank is forgotten when you power off. It is not part of the Part or the project. The stock saver still dims and switches off on its own schedule when this blank is off. -The author reports that on a MKII the chord blanks the screen and brings it back. An MKI, the stock saver and a power cycle are not tried. +The author reports that on a MKII the chord blanks the screen and brings it back, and that after a power cycle the screen comes back on with the module still installed. An MKI and the stock saver are not tried. ## Tests and measurements diff --git a/sdk/drafts/screen-off/TESTING.md b/sdk/drafts/screen-off/TESTING.md index 1f18bf351c..4c4c5b357b 100644 --- a/sdk/drafts/screen-off/TESTING.md +++ b/sdk/drafts/screen-off/TESTING.md @@ -34,6 +34,12 @@ The same package was tried again without `--accept`, from 21:08:12. The slot was 16 November 2026. A later RAM trial of the same package, SHA-256 `14aea62fbfef825e2ea23cc4baf6e01a2f2b0bf44b215db28748c1a546aeae0c`, was running without `--accept` on `OCTATRACK 1.40C`, base `3ee0515a0f474149…`. It was not kept. The person at the unit reported that hold UP, tap NO works as it should in a list, the sample editor, the arranger, the Modwerk status page, and beside Tiempos. The tick word is `(toggles << 1) | blank`. The log stayed `0x0` through 30 s. The first non-zero was `0x4` at 31 s: 2 toggles, blank off. The latest line read while this note was written was `0x54` at 432 s: 42 toggles, blank off. The trial process was still running. No SAVE, no flash, no power cycle, no Keep. +## Keep and power cycle + +18 November 2026. The same package, SHA-256 `14aea62fbfef825e2ea23cc4baf6e01a2f2b0bf44b215db28748c1a546aeae0c` (352 bytes), source `7105ec60e`, was added with `npm run device -- set` and `--accept` on `OCTATRACK 1.40C`, base `931a91bd7e571216…`. The offer was one change. The trial ran 5 s, the tick word stayed `0x0`, and the verdict was no crash, stall, freeze or skipped track. It printed `accepted` and left upload mode in 392 ms, then `normal, generation 1, active 9eba3924f12be60e…`. The inventory named the modules that were already kept, plus `screen-off`. + +The person at the unit then held UP, tapped NO, and power cycled. They report that the expected behaviour was correct: the screen came back on, and the module was still installed. A read after that answered `normal, generation 0, active 931a91bd7e571216…`, tick word `0x4` (2 toggles, blank off). The inventory still named those modules, including `screen-off`. No SAVE, no flash. + ## Not tested - An MKI, and a card install. The MKII chord above is a report from the person at the unit, on 7 November and again on 16 November, both RAM trials of package `14aea62fbfef825e2ea23cc4baf6e01a2f2b0bf44b215db28748c1a546aeae0c`. @@ -41,4 +47,4 @@ The same package was tried again without `--accept`, from 21:08:12. The slot was - The stock screen saver while this blank is on, and while a pattern plays. - Whether the MKII panel can be powered down as well as painted black. - Whether the MKI backlight stays lit behind the blank glass. -- Part save, project save and a power cycle. The blank is only a byte in the module's RAM, so a power cycle should turn the screen back on. That has not been seen. +- Part save and project save. A power cycle on 18 November brought the screen back on, as the person at the unit reported, with the module still installed. From 93e7000f4b6ee630f473726aa6c6774a9608e7be Mon Sep 17 00:00:00 2001 From: jonathanwardle1992-beep Date: Wed, 18 Nov 2026 17:27:53 +0000 Subject: [PATCH 034/415] Record the 18 November Screen Off removal while the screen was black. Co-authored-by: Cursor --- sdk/drafts/screen-off/TESTING.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sdk/drafts/screen-off/TESTING.md b/sdk/drafts/screen-off/TESTING.md index 4c4c5b357b..c726d3a0ad 100644 --- a/sdk/drafts/screen-off/TESTING.md +++ b/sdk/drafts/screen-off/TESTING.md @@ -40,6 +40,12 @@ The same package was tried again without `--accept`, from 21:08:12. The slot was The person at the unit then held UP, tapped NO, and power cycled. They report that the expected behaviour was correct: the screen came back on, and the module was still installed. A read after that answered `normal, generation 0, active 931a91bd7e571216…`, tick word `0x4` (2 toggles, blank off). The inventory still named those modules, including `screen-off`. No SAVE, no flash. +## Removal while the screen is black + +18 November 2026. The same package, SHA-256 `14aea62fbfef825e2ea23cc4baf6e01a2f2b0bf44b215db28748c1a546aeae0c`, was removed with `npm run device -- remove` and `--accept` on `OCTATRACK 1.40C`, base `931a91bd7e571216…`, while the person at the unit had the screen black. The trial ran 5 s. The tick word read `0x10000`, the slot stayed running, and refusals stayed at 0. The verdict was no crash, stall, freeze or skipped track. It printed `accepted` and left upload mode in 395 ms, then `normal, generation 1, active 9993a6d3bd0f59c4…`. + +The person at the unit then held UP and tapped NO. They report that the expected behaviour was correct: the page came back, and the chord no longer blanks the screen. A later inventory on the same base named the modules that were already kept, and did not name `screen-off`: Mini Verb, Tape Echo, Euclid, Repitch, TapeHead, Air Chorus, Analog BD, FM Synth, Preview Vol, Play Modes, Mute Modes, Quant Live Rec, DirectJmp Kyoti, Arp Key Locks, beat-slicer, Slow LFO, Bar LED, tiempos, syntiz, Track Solo, Amiga, Kits. No SAVE, no flash, no power cycle. + ## Not tested - An MKI, and a card install. The MKII chord above is a report from the person at the unit, on 7 November and again on 16 November, both RAM trials of package `14aea62fbfef825e2ea23cc4baf6e01a2f2b0bf44b215db28748c1a546aeae0c`. From ee09fc0446086a10af45c986371b9de5392b1daf Mon Sep 17 00:00:00 2001 From: claptom-music <350865352+Claptom-music@users.noreply.github.com> Date: Wed, 18 Nov 2026 18:41:00 +0100 Subject: [PATCH 035/415] Plan the Digitakt II machine list and record the OS 1.17 sites checked so far Static reads of the machine descriptor lookup, the descriptor records, the parameter table and the shared page lookup. Nothing is built yet. --- .../elekloader/modwerk/MACHINES.md | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md new file mode 100644 index 0000000000..7f80c6f03f --- /dev/null +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md @@ -0,0 +1,27 @@ +# Digitakt II machine list (work in progress) + +The Digitakt II base will let modules add track machines beside the seven stock types, as `ot_machines` does on the Octatrack and `core_machines` on the Digitakt. The first subscriber is Mikrotakt, a grain sampler. Nothing here is built yet; this file records the plan and the OS 1.17 sites checked so far. Addresses, lengths and behaviour only: no stock bytes. + +## Plan + +1. **ColdFire side.** A base table `core_machines` (four entries to start) of records naming the machine, its five knob labels, parameter ranges and formatters. The base maps each record to a machine type after the stock ones, so the machine menu lists it, the SRC page draws its knobs and kits save it. Its values live in the track's ten machine-parameter slots (sound slots 25-34), so parameter locks, live recording and the LFO work as on stock machines. A kit that names a type no installed module provides falls back to the stock sample machine. +2. **Sound-chip side.** For a track whose type is an added machine, the voice loop calls the module's routine instead of the stock sample renderer, with the track's sample slot record, its note and its knob values. The stock filter, amp envelope and LFO still process the output. Mono first; stereo is a separate decision. +3. **Mikrotakt** subscribes to both, as its own module pull request. + +## Sites checked on OS 1.17 (`Digitakt_II_OS1.17.syx`, SHA-256 `26c22f6652625ac2cfd47f7ee970d388ed8b6427dae3563c0a6a2f2d334350d5`) + +Read from the decoded main image (load address `0x40000400`) on 18 November 2026. Static reads only, not yet traced in an emulator. + +| Site | What it does | Use | +| --- | --- | --- | +| `0x400c89a4` | Machine descriptor lookup: types 0-6 return a 44-byte record at `0x4293b960 + type * 44`; any other type returns a default record at `0x4293ba68`. Six absolute references (`0x40017cf2`, `0x40042004`, `0x40049b72`, `0x40049fa4`, `0x4006217e`, `0x4006a5ae`). | The base answers added types here, as the Mixer already does for page ids at `0x400c898a`. | +| `0x4293b960` | The seven machine descriptors, built at start-up (`0x401c4aae` and `0x401c515e`/`0x401c519e`). | RAM, not image data. | +| `0x4020f59c` | Parameter table, `0x3c`-byte rows, formatter pointer at row `+0x34`; 53 absolute references, so rows cannot be appended in place. | Added machines' parameter rows need a lookup hook, not a longer table. | +| `0x400c898a` | Page descriptor lookup (ids up to 32, 44-byte records at `0x4293ba94`). | Already the base's (Mixer pages); the machine list must share that entry. | + +## Still to check + +- Every reader of the type byte and every per-type table: MIDI CC/NRPN tables, the machine menu list, the per-type parameter-code table, the SRC page view. +- Kit and project save and load of an added type, and the stock OS's behaviour when it loads one. +- The sound chip's per-voice dispatch and the sample slot record it passes. +- Free sound-chip time per block on a real unit, and whether an inactive track's voice still costs time (decides LINK). From 7cb4d538c79c95baa443b81a60b7fe5f43870cb8 Mon Sep 17 00:00:00 2001 From: claptom-music <350865352+Claptom-music@users.noreply.github.com> Date: Wed, 18 Nov 2026 18:48:57 +0100 Subject: [PATCH 036/415] Record the Digitakt II sound-chip voice dispatch and sample lookup sites Static reads of OS 1.17's per-voice loop, its machine-type dispatch, the per-voice sample setter and the sample slot lookup. --- .../digitakt-ii/elekloader/modwerk/MACHINES.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md index 7f80c6f03f..30a5f498fd 100644 --- a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md @@ -19,6 +19,21 @@ Read from the decoded main image (load address `0x40000400`) on 18 November 2026 | `0x4020f59c` | Parameter table, `0x3c`-byte rows, formatter pointer at row `+0x34`; 53 absolute references, so rows cannot be appended in place. | Added machines' parameter rows need a lookup hook, not a longer table. | | `0x400c898a` | Page descriptor lookup (ids up to 32, 44-byte records at `0x4293ba94`). | Already the base's (Mixer pages); the machine list must share that entry. | +## Sound-chip sites (SHARC section 7, short-word addresses) + +Static reads on 18 November 2026; not yet traced. + +| Site | What it does | Use | +| --- | --- | --- | +| `0x1c642a` | The per-voice loop. For each voice it reads the voice's machine type from its record, then dispatches the type's setup. | Where an added machine's voice is handed to its module. | +| `0x1c6550`-`0x1c6579` | The type check and dispatch: a type of 6 or more skips to the shared continuation at `0x1c65fe`; a type below 6 jumps through an eight-byte-stride table at `0x8055c840` (first entry `0x1c65bd`, the sample setup). An added type (7 or more) would take the skip path and get no setup. | The base's site: route added types to `core_machines` before the skip. | +| `0x1c4afe` | Per-voice sample setter, called three times from the loop (`0x1c65f4`, `0x1c6774`, `0x1c6982`) every block: step from note and TUNE, direction, loop flag, START/LEN positions. | What Mikrotakt replaces or reads around. | +| `0x1c3f78` | Sample slot lookup: slot numbers up to `0x400`, 20-byte rows (address fields, length, rate, stereo). Ten callers, including the trigger-time load in `0x1c3289`. | How a module machine finds its sample's memory. | + +## Design choice still open + +Mikrotakt either stands in for the stock sample machine (the stock setup loads the slot and positions, the module replaces only the playback) or takes its own type with its own setup. Standing in keeps sample choice, the sample view and stock behaviour; its own type gives a clean voice. To decide after a trace in the emulator. + ## Still to check - Every reader of the type byte and every per-type table: MIDI CC/NRPN tables, the machine menu list, the per-type parameter-code table, the SRC page view. From 3976b41fde1b35322e4b0811796bebdca4950c36 Mon Sep 17 00:00:00 2001 From: claptom-music <350865352+Claptom-music@users.noreply.github.com> Date: Wed, 18 Nov 2026 18:51:02 +0100 Subject: [PATCH 037/415] Give added Digitakt II machines their own type and record the per-type parameter sites Static reads of the parameter-code lookup, the SRC view's type getter and the MIDI CC and NRPN mappings. --- sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md index 30a5f498fd..00af9dc94d 100644 --- a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md @@ -17,6 +17,10 @@ Read from the decoded main image (load address `0x40000400`) on 18 November 2026 | `0x400c89a4` | Machine descriptor lookup: types 0-6 return a 44-byte record at `0x4293b960 + type * 44`; any other type returns a default record at `0x4293ba68`. Six absolute references (`0x40017cf2`, `0x40042004`, `0x40049b72`, `0x40049fa4`, `0x4006217e`, `0x4006a5ae`). | The base answers added types here, as the Mixer already does for page ids at `0x400c898a`. | | `0x4293b960` | The seven machine descriptors, built at start-up (`0x401c4aae` and `0x401c515e`/`0x401c519e`). | RAM, not image data. | | `0x4020f59c` | Parameter table, `0x3c`-byte rows, formatter pointer at row `+0x34`; 53 absolute references, so rows cannot be appended in place. | Added machines' parameter rows need a lookup hook, not a longer table. | +| `0x400da3a2` | Parameter code for (sound slot, machine type): slots 25-34 with a type up to 6 read a per-type table; a higher type returns 0 (no parameter). Six references (`0x4000ffa8`, `0x4003a960`, `0x400430cc`, `0x40050b4c`, `0x40050d1c`, `0x400e650c`). | The base answers the five knob slots for added types here. | +| `0x4005f6bc` | The SRC page view's machine type for the current track (three callers in the SRC view: `0x4001702c`, `0x40017736`, `0x40017bd2`). | Decides the SRC page's second page (sample view) per type. | +| `0x400dab9e`, `0x400dac80` | MIDI CC (up to 127) and NRPN (up to 398) to parameter mapping, five callers each. | Added machines' knobs must answer MIDI like stock knobs. | +| `0x400c89c6` | A second per-type lookup with six entries (bound 5), 44-byte records at `0x4293b858`; callers `0x40041fde`, `0x4006a5d2`, `0x40074888`. | To identify. | | `0x400c898a` | Page descriptor lookup (ids up to 32, 44-byte records at `0x4293ba94`). | Already the base's (Mixer pages); the machine list must share that entry. | ## Sound-chip sites (SHARC section 7, short-word addresses) @@ -30,9 +34,9 @@ Static reads on 18 November 2026; not yet traced. | `0x1c4afe` | Per-voice sample setter, called three times from the loop (`0x1c65f4`, `0x1c6774`, `0x1c6982`) every block: step from note and TUNE, direction, loop flag, START/LEN positions. | What Mikrotakt replaces or reads around. | | `0x1c3f78` | Sample slot lookup: slot numbers up to `0x400`, 20-byte rows (address fields, length, rate, stereo). Ten callers, including the trigger-time load in `0x1c3289`. | How a module machine finds its sample's memory. | -## Design choice still open +## Decision: an added machine is its own type -Mikrotakt either stands in for the stock sample machine (the stock setup loads the slot and positions, the module replaces only the playback) or takes its own type with its own setup. Standing in keeps sample choice, the sample view and stock behaviour; its own type gives a clean voice. To decide after a trace in the emulator. +Decided with the developer on 18 November 2026: each added machine gets its own machine type after the stock seven, with its own voice setup, rather than standing in for a stock machine. The base dispatches added types at `0x1c6550`; the module's voice routine loads its sample through the slot lookup at trigger time and renders the voice. A machine that plays a sample keeps knob D as its sample slot, so sample choice works as on stock machines. ## Still to check From 364ff4f44828cf4aabec72fe951063443ea6fb2b Mon Sep 17 00:00:00 2001 From: claptom-music <350865352+Claptom-music@users.noreply.github.com> Date: Wed, 18 Nov 2026 18:51:40 +0100 Subject: [PATCH 038/415] Draft the record a Digitakt II machine module contributes Describes the stock machine descriptor's layout and the core_machines entry: names, five knob rows, the sample flag and the sound-chip routines. --- .../digitakt-ii/elekloader/modwerk/MACHINES.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md index 00af9dc94d..3f25ab7639 100644 --- a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md @@ -23,6 +23,23 @@ Read from the decoded main image (load address `0x40000400`) on 18 November 2026 | `0x400c89c6` | A second per-type lookup with six entries (bound 5), 44-byte records at `0x4293b858`; callers `0x40041fde`, `0x4006a5d2`, `0x40074888`. | To identify. | | `0x400c898a` | Page descriptor lookup (ids up to 32, 44-byte records at `0x4293ba94`). | Already the base's (Mixer pages); the machine list must share that entry. | +### The stock descriptor + +Start-up code (from `0x401c4aa6`) fills each 44-byte machine descriptor with the machine's name, a second label and eight parameter codes, one per knob A-H, then a final word. SAMPLE's knob C code is 0 (no parameter), as on every stock machine. Each code is a row of the parameter table at `0x4020f59c`, which holds the knob's name, short name, range, default and formatter. + +## The record a module contributes (draft) + +One `core_machines` entry per machine: + +| Field | Meaning | +| --- | --- | +| name, short name | As the machine menu and the SRC page header show them (stock lengths). | +| five knob rows | Knobs B, C, E, F and G: name, short name, minimum, maximum, default, and a formatter (the stock ones, or the module's). Knob A stays TUNE, D the sample slot, H the track level. | +| sample flag | Whether knob D selects a sample (a sampler) or is unused (a synth). | +| sound-chip routines | Note-on and render for one voice, in the module's sound-chip package, with the voice's note, the five knob values and, for a sampler, its slot record. | + +The base gives each entry a machine type after the stock seven in contribution order, answers the descriptor lookup (`0x400c89a4`), the parameter-code lookup (`0x400da3a2`) and the parameter-row reads for those types, and dispatches the voice at `0x1c6550`. Type numbers are saved in kits, so each machine also claims a fixed id on the agent board and keeps it once released, as `core_machines` ids do on the Digitakt. + ## Sound-chip sites (SHARC section 7, short-word addresses) Static reads on 18 November 2026; not yet traced. From 6e3893efd7e090752a44e417721ef8bcaeb33044 Mon Sep 17 00:00:00 2001 From: jonathanwardle1992-beep Date: Wed, 18 Nov 2026 17:54:33 +0000 Subject: [PATCH 039/415] Record the 18 November Screen Off try that rolled back. Co-authored-by: Cursor --- sdk/drafts/screen-off/TESTING.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sdk/drafts/screen-off/TESTING.md b/sdk/drafts/screen-off/TESTING.md index c726d3a0ad..9d2ced6ad5 100644 --- a/sdk/drafts/screen-off/TESTING.md +++ b/sdk/drafts/screen-off/TESTING.md @@ -46,6 +46,12 @@ The person at the unit then held UP, tapped NO, and power cycled. They report th The person at the unit then held UP and tapped NO. They report that the expected behaviour was correct: the page came back, and the chord no longer blanks the screen. A later inventory on the same base named the modules that were already kept, and did not name `screen-off`: Mini Verb, Tape Echo, Euclid, Repitch, TapeHead, Air Chorus, Analog BD, FM Synth, Preview Vol, Play Modes, Mute Modes, Quant Live Rec, DirectJmp Kyoti, Arp Key Locks, beat-slicer, Slow LFO, Bar LED, tiempos, syntiz, Track Solo, Amiga, Kits. No SAVE, no flash, no power cycle. +## Try, then undo + +18 November 2026. The live site cannot try this unpublished draft, and a Sync on the site keeps a set at once, so nobody pressed Undo there. The same check was `npm run device -- try` of package SHA-256 `14aea62fbfef825e2ea23cc4baf6e01a2f2b0bf44b215db28748c1a546aeae0c`, without `--accept`, on `OCTATRACK 1.40C`, base `931a91bd7e571216…`. The trial ran 5 s. The tick word stayed `0x0`, the slot stayed running, and refusals stayed at 0. The verdict was no crash, stall, freeze or skipped track. It printed `rolled back` and left upload mode in 5 ms, then `normal, generation 3, active 9993a6d3bd0f59c4…`. + +A later status answered the same line, `normal, generation 3, active 9993a6d3bd0f59c4…`, with tick word `65536` (`0x10000`) and refusals at 0. The inventory on that base named the modules that were already kept, and did not name `screen-off`: Mini Verb, Tape Echo, Euclid, Repitch, TapeHead, Air Chorus, Analog BD, FM Synth, Preview Vol, Play Modes, Mute Modes, Quant Live Rec, DirectJmp Kyoti, Arp Key Locks, beat-slicer, Slow LFO, Bar LED, tiempos, syntiz, Track Solo, Amiga, Kits. No SAVE, no flash, no power cycle, no Keep. + ## Not tested - An MKI, and a card install. The MKII chord above is a report from the person at the unit, on 7 November and again on 16 November, both RAM trials of package `14aea62fbfef825e2ea23cc4baf6e01a2f2b0bf44b215db28748c1a546aeae0c`. From 6114a05f1e4a82d4bbd8250f93541f24e3945093 Mon Sep 17 00:00:00 2001 From: claptom-music <350865352+Claptom-music@users.noreply.github.com> Date: Wed, 18 Nov 2026 18:56:10 +0100 Subject: [PATCH 040/415] Record the Digitakt II descriptor layout and why the parameter table must be relocated Counts the parameter table's absolute references and bound checks on OS 1.17 and plans a first test machine on stock rows. --- sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md index 3f25ab7639..3116ec4e34 100644 --- a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md @@ -27,6 +27,12 @@ Read from the decoded main image (load address `0x40000400`) on 18 November 2026 Start-up code (from `0x401c4aa6`) fills each 44-byte machine descriptor with the machine's name, a second label and eight parameter codes, one per knob A-H, then a final word. SAMPLE's knob C code is 0 (no parameter), as on every stock machine. Each code is a row of the parameter table at `0x4020f59c`, which holds the knob's name, short name, range, default and formatter. +Layout read from the start-up code: `+0x00` the name and `+0x04` the second label (each set by a string routine from a C string), `+0x08` to `+0x24` the eight parameter codes for knobs A-H, `+0x28` a final word. + +### The parameter table cannot grow in place + +The 275 rows at `0x4020f59c` are image data. 53 absolute references load the table and about 45 bound checks compare a code with 275 (`cmpi.l #0x113`: 24 with `d0`, 2 with `d1`, 10 with `d2`) or 274 (9 with `d0`), many inline. New knob names therefore need the table relocated: a copy in the base's memory with rows appended, a pointer site at each reference and a bytes site at each bound. The Elekloader builder supports both kinds of site (`ptr` and `bytes`, and relocatable data copies). The base owns them all; no module may patch them. First step before that: a test machine whose knobs use stock rows, to prove the descriptor and parameter-code hooks in the emulator. + ## The record a module contributes (draft) One `core_machines` entry per machine: From 3729b80905fbf6dc07ce0bc63de98544ed5135b3 Mon Sep 17 00:00:00 2001 From: claptom-music <350865352+Claptom-music@users.noreply.github.com> Date: Wed, 18 Nov 2026 18:58:37 +0100 Subject: [PATCH 041/415] Add the core_machines table and its first two hooks to the Digitakt II base Added machine types (7 and up) answer the machine descriptor and parameter-code lookups with the stock type they stand for. A development base adds a test machine that stands for SAMPLE. The released base is not rebuilt or recorded yet. --- sdk/machines/digitakt-ii/elekloader/base.json | 14 +++- .../elekloader/modwerk/machines-entry.s | 67 +++++++++++++++++++ .../digitakt-ii/elekloader/modwerk/machines.c | 27 ++++++++ .../modwerk/tests/machines-fixture.c | 5 ++ .../digitakt-ii/include/mk2/machines.h | 24 +++++++ 5 files changed, 136 insertions(+), 1 deletion(-) create mode 100644 sdk/machines/digitakt-ii/elekloader/modwerk/machines-entry.s create mode 100644 sdk/machines/digitakt-ii/elekloader/modwerk/machines.c create mode 100644 sdk/machines/digitakt-ii/elekloader/modwerk/tests/machines-fixture.c create mode 100644 sdk/machines/digitakt-ii/include/mk2/machines.h diff --git a/sdk/machines/digitakt-ii/elekloader/base.json b/sdk/machines/digitakt-ii/elekloader/base.json index 812f371873..de2cb67d2a 100644 --- a/sdk/machines/digitakt-ii/elekloader/base.json +++ b/sdk/machines/digitakt-ii/elekloader/base.json @@ -36,6 +36,8 @@ "../modwerk/project-kitdata.c", "../modwerk/mixer.c", "../modwerk/mixer-entry.s", + "../modwerk/machines.c", + "../modwerk/machines-entry.s", "../modwerk/fw-bindings.s" ], "defsym": { @@ -67,6 +69,8 @@ {"addr":"0x40066e02","len":6,"stockSha256":"210b33b627af0389b1bddbc2f87f7980cacebd89ef5ac3ba7c4646a7800bc064","op":"jmp","target":"core_mixer_list_entry"}, {"addr":"0x400c898a","len":6,"stockSha256":"4804747ca9c54fb6cf82b4a21415559c390b2b2f9fc4f3cea86546d00ee4dc72","op":"jmp","target":"core_mixer_descriptor_entry"}, {"addr":"0x400763ac","len":8,"stockSha256":"f884edfcc4fdbe8c922f8080094cae67fdc2e7e87655c90c4eb6b79282f65f60","op":"jmp","target":"core_mixer_draw_entry"}, + {"addr":"0x400c89a4","len":6,"stockSha256":"90d4add99e5a31399efe8b6d7879deb65375e21f97ebcdfd761b45d0fa6f5b13","op":"jmp","target":"core_machine_descriptor_entry"}, + {"addr":"0x400da3a2","len":6,"stockSha256":"7004f7c54162426867d6e17e181d3ea5de00a97027c223cf901c7be0b6a6a967","op":"jmp","target":"core_machine_param_entry"}, { "addr": "0x40041b52", "len": 6, @@ -130,7 +134,15 @@ "ev_seq_audio_phrase": 4, "core_mixer_pages": 4, "ev_audio_frame": 4, - "core_project_archive": 4 + "core_project_archive": 4, + "core_machines": 4 } + }, + "dev": { + "about": "A development base adds one test machine (type 7) that stands for SAMPLE, to check the machine hooks in the emulator. Never released.", + "sources": ["../modwerk/tests/machines-fixture.c"], + "contribute": [ + {"to": "core_machines", "order": 50, "data": "00000000", "relocs": [[0, "abs32", "sym:dt2_test_machine", 0]]} + ] } } diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/machines-entry.s b/sdk/machines/digitakt-ii/elekloader/modwerk/machines-entry.s new file mode 100644 index 0000000000..befea16c72 --- /dev/null +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/machines-entry.s @@ -0,0 +1,67 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +/* Added machine types: the machine descriptor lookup (0x400c89a4) and the parameter-code lookup + * (0x400da3a2) answer a type core_machines names with the stock type it stands for. Every other type + * replays the displaced stock instructions and continues in stock. a0 and a1 are kept, as stock + * leaves them. */ + .text + .even + .globl core_machine_descriptor_entry, core_machine_param_entry + +core_machine_descriptor_entry: + moveq #7,%d1 + move.l 4(%sp),%d0 + cmp.l %d1,%d0 + bcs.s 2f + move.l %a0,-(%sp) + move.l %a1,-(%sp) + move.l %d0,-(%sp) + jsr core_machine_stands_for + addq.l #4,%sp + move.l (%sp)+,%a1 + move.l (%sp)+,%a0 + tst.l %d0 + bmi.s 1f + move.l %d0,-(%sp) + bsr.s stock_descriptor + addq.l #4,%sp + rts +1: move.l 4(%sp),%d0 +2: moveq #6,%d1 + jmp 0x400c89aa +stock_descriptor: + moveq #6,%d1 + move.l 4(%sp),%d0 + jmp 0x400c89aa + +/* (slot, type, out) */ +core_machine_param_entry: + moveq #7,%d1 + move.l 8(%sp),%d0 + cmp.l %d1,%d0 + bcs.s 1f + move.l %a0,-(%sp) + move.l %a1,-(%sp) + move.l %d0,-(%sp) + jsr core_machine_stands_for + addq.l #4,%sp + move.l (%sp)+,%a1 + move.l (%sp)+,%a0 + tst.l %d0 + bmi.s 1f + move.l 12(%sp),-(%sp) + move.l %d0,-(%sp) + move.l 12(%sp),-(%sp) + bsr.s stock_param_code + lea 12(%sp),%sp + rts +1: move.l %a2,-(%sp) + moveq #70,%d1 + move.l %d2,-(%sp) + jmp 0x400da3a8 +stock_param_code: + move.l %a2,-(%sp) + moveq #70,%d1 + move.l %d2,-(%sp) + jmp 0x400da3a8 + + .section .note.GNU-stack,"",@progbits diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/machines.c b/sdk/machines/digitakt-ii/elekloader/modwerk/machines.c new file mode 100644 index 0000000000..a56948151a --- /dev/null +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/machines.c @@ -0,0 +1,27 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +#include + +const struct dt2_machine *dt2_machine_at( + uint32_t type, const struct dt2_machine *const machines[DT2_MACHINE_COUNT]) +{ + uint32_t slot = type - DT2_MACHINE_FIRST; + if (slot >= DT2_MACHINE_COUNT) { + return 0; + } + for (uint32_t i = 0; i <= slot; ++i) { + if (!machines[i]) { + return 0; + } + } + const struct dt2_machine *machine = machines[slot]; + return machine->stands_for < DT2_MACHINE_FIRST ? machine : 0; +} + +extern const struct dt2_machine *const core_machines[DT2_MACHINE_COUNT]; + +/* The stock type an added machine borrows, or -1 for a stock type or an empty entry. */ +int32_t core_machine_stands_for(uint32_t type) +{ + const struct dt2_machine *machine = dt2_machine_at(type, core_machines); + return machine ? (int32_t)machine->stands_for : -1; +} diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/tests/machines-fixture.c b/sdk/machines/digitakt-ii/elekloader/modwerk/tests/machines-fixture.c new file mode 100644 index 0000000000..75d4e416c4 --- /dev/null +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/tests/machines-fixture.c @@ -0,0 +1,5 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +/* Development base only: one added machine (type 7) that stands for SAMPLE (type 0). */ +#include + +const struct dt2_machine dt2_test_machine = { .stands_for = 0 }; diff --git a/sdk/machines/digitakt-ii/include/mk2/machines.h b/sdk/machines/digitakt-ii/include/mk2/machines.h new file mode 100644 index 0000000000..b983590c00 --- /dev/null +++ b/sdk/machines/digitakt-ii/include/mk2/machines.h @@ -0,0 +1,24 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +#ifndef MODWERK_DT2_MACHINES_H +#define MODWERK_DT2_MACHINES_H + +#include + +/* Machines added after the seven stock types. The linker's collection index owns the type: entry n of + * core_machines is machine type DT2_MACHINE_FIRST + n. The table ends at its first null entry. */ +enum { + DT2_MACHINE_FIRST = 7, + DT2_MACHINE_COUNT = 4, +}; + +/* Draft record. stands_for names the stock type (0-6) whose descriptor and parameter codes the machine + * borrows until the base has its own parameter rows. */ +struct dt2_machine { + uint32_t stands_for; +}; + +/* The record for a machine type, or 0 when the type is stock or has no complete record. */ +const struct dt2_machine *dt2_machine_at( + uint32_t type, const struct dt2_machine *const machines[DT2_MACHINE_COUNT]); + +#endif From ba7311a138ed5866ac5823c1a647f3effa3d5dd0 Mon Sep 17 00:00:00 2001 From: claptom-music <350865352+Claptom-music@users.noreply.github.com> Date: Wed, 18 Nov 2026 19:01:02 +0100 Subject: [PATCH 042/415] Record the emulator check of the first machine hooks A test machine at type 7 shows SAMPLE's knobs on the SRC page; the unchanged base shows the default descriptor. The header name and the machine menu are still to do. --- .../digitakt-ii/elekloader/modwerk/MACHINES.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md index 3116ec4e34..faf9122e19 100644 --- a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md @@ -61,8 +61,21 @@ Static reads on 18 November 2026; not yet traced. Decided with the developer on 18 November 2026: each added machine gets its own machine type after the stock seven, with its own voice setup, rather than standing in for a stock machine. The base dispatches added types at `0x1c6550`; the module's voice routine loads its sample through the slot lookup at trigger time and renders the voice. A machine that plays a sample keeps knob D as its sample slot, so sample choice works as on stock machines. +## Emulator check of the first hooks (18 November 2026) + +Development base `7edbd8bf` (29 sites; `.run` 10,732 bytes, 284 more than base `0e3cbcd0`) with one test machine at type 7 standing for SAMPLE, linked into a private OS 1.17 image (RAM `0x47f00000`-`0x47f050e4`, 241,436 bytes spare; fast SRAM unused). Digikit `panel_persist_probe` booted it, opened track 1's SRC page, set track 1's type byte (`0x4265338e`, active kit `+0x34 + 0xa2`) to 7 and opened SRC again. + +- Type 7 with the hooks: the SRC page shows SAMPLE's knobs (TUNE, PLAY, SAMP, LEV; STRT, LEN, LOOP, LEV). No fault. +- Type 7 on base `0e3cbcd0` (control): the SRC page shows the default descriptor's knobs (SLICE, LEN). So the two hooks are what changed the page. +- In both, the header reads ERROR: the machine name comes from another per-type table, still to find. +- Emulator only. Sound not checked (the sound chip still skips type 7). + ## Still to check +- The machine name shown in the SRC header and the machine menu. +- The machine menu list (built once at start-up) and the type check in the machine setter (`0x400dcab8`, types above 6 refused). +- Kit and project load: the stock load turns a stored type of 7 or more into 0 (SAMPLE). That is the safe fallback on a unit without the base; with the base installed the load must keep the added types. + - Every reader of the type byte and every per-type table: MIDI CC/NRPN tables, the machine menu list, the per-type parameter-code table, the SRC page view. - Kit and project save and load of an added type, and the stock OS's behaviour when it loads one. - The sound chip's per-voice dispatch and the sample slot record it passes. From 56da1aaac7eb55e64a6dc1e6797140394ae09338 Mon Sep 17 00:00:00 2001 From: claptom-music <350865352+Claptom-music@users.noreply.github.com> Date: Wed, 18 Nov 2026 19:04:52 +0100 Subject: [PATCH 043/415] Give added Digitakt II machines their own name, short name and menu title The three machine-string lookups answer from the core_machines record. Emulator: the SRC header shows the test machine's name. --- sdk/machines/digitakt-ii/elekloader/base.json | 3 ++ .../elekloader/modwerk/MACHINES.md | 3 +- .../elekloader/modwerk/machines-entry.s | 34 +++++++++++++++++++ .../digitakt-ii/elekloader/modwerk/machines.c | 8 +++++ .../modwerk/tests/machines-fixture.c | 5 ++- .../digitakt-ii/include/mk2/machines.h | 10 +++++- 6 files changed, 59 insertions(+), 4 deletions(-) diff --git a/sdk/machines/digitakt-ii/elekloader/base.json b/sdk/machines/digitakt-ii/elekloader/base.json index de2cb67d2a..13773ae002 100644 --- a/sdk/machines/digitakt-ii/elekloader/base.json +++ b/sdk/machines/digitakt-ii/elekloader/base.json @@ -71,6 +71,9 @@ {"addr":"0x400763ac","len":8,"stockSha256":"f884edfcc4fdbe8c922f8080094cae67fdc2e7e87655c90c4eb6b79282f65f60","op":"jmp","target":"core_mixer_draw_entry"}, {"addr":"0x400c89a4","len":6,"stockSha256":"90d4add99e5a31399efe8b6d7879deb65375e21f97ebcdfd761b45d0fa6f5b13","op":"jmp","target":"core_machine_descriptor_entry"}, {"addr":"0x400da3a2","len":6,"stockSha256":"7004f7c54162426867d6e17e181d3ea5de00a97027c223cf901c7be0b6a6a967","op":"jmp","target":"core_machine_param_entry"}, + {"addr":"0x400da6ac","len":6,"stockSha256":"90d4add99e5a31399efe8b6d7879deb65375e21f97ebcdfd761b45d0fa6f5b13","op":"jmp","target":"core_machine_name_entry"}, + {"addr":"0x400da6d2","len":6,"stockSha256":"90d4add99e5a31399efe8b6d7879deb65375e21f97ebcdfd761b45d0fa6f5b13","op":"jmp","target":"core_machine_short_entry"}, + {"addr":"0x400da6f8","len":6,"stockSha256":"90d4add99e5a31399efe8b6d7879deb65375e21f97ebcdfd761b45d0fa6f5b13","op":"jmp","target":"core_machine_menu_entry"}, { "addr": "0x40041b52", "len": 6, diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md index faf9122e19..5459af31cf 100644 --- a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md @@ -67,12 +67,11 @@ Development base `7edbd8bf` (29 sites; `.run` 10,732 bytes, 284 more than base ` - Type 7 with the hooks: the SRC page shows SAMPLE's knobs (TUNE, PLAY, SAMP, LEV; STRT, LEN, LOOP, LEV). No fault. - Type 7 on base `0e3cbcd0` (control): the SRC page shows the default descriptor's knobs (SLICE, LEN). So the two hooks are what changed the page. -- In both, the header reads ERROR: the machine name comes from another per-type table, still to find. +- In both, the header read ERROR: the machine strings come from 12-byte records at `0x4020ef78` (name, short name, menu title), read by `0x400da6ac`, `0x400da6d2` and `0x400da6f8`, which return ERROR or ERR above type 6. With those three answered too (development base `4485c4c1`, 32 sites, `.run` 11,050 bytes), the header reads the test machine's name and the knobs are unchanged. - Emulator only. Sound not checked (the sound chip still skips type 7). ## Still to check -- The machine name shown in the SRC header and the machine menu. - The machine menu list (built once at start-up) and the type check in the machine setter (`0x400dcab8`, types above 6 refused). - Kit and project load: the stock load turns a stored type of 7 or more into 0 (SAMPLE). That is the safe fallback on a unit without the base; with the base installed the load must keep the added types. diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/machines-entry.s b/sdk/machines/digitakt-ii/elekloader/modwerk/machines-entry.s index befea16c72..7b0b5ec8de 100644 --- a/sdk/machines/digitakt-ii/elekloader/modwerk/machines-entry.s +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/machines-entry.s @@ -64,4 +64,38 @@ stock_param_code: move.l %d2,-(%sp) jmp 0x400da3a8 +/* The three machine-string lookups (type): name, short name and menu title. An added type answers + * from its record, others replay `moveq #6,%d1; move.l 4(%sp),%d0` and continue in stock. */ + .macro STRING_ENTRY label, field, cont + .globl \label +\label: + move.l 4(%sp),%d0 + moveq #7,%d1 + cmp.l %d1,%d0 + bcs.s 2f + move.l %a0,-(%sp) + move.l %a1,-(%sp) + move.l %d0,-(%sp) + jsr core_machine_stands_for + addq.l #4,%sp + tst.l %d0 + bmi.s 1f + move.l #\field,-(%sp) + move.l 16(%sp),-(%sp) + jsr core_machine_string + addq.l #8,%sp + move.l (%sp)+,%a1 + move.l (%sp)+,%a0 + rts +1: move.l (%sp)+,%a1 + move.l (%sp)+,%a0 + move.l 4(%sp),%d0 +2: moveq #6,%d1 + jmp \cont + .endm + + STRING_ENTRY core_machine_name_entry, 0, 0x400da6b2 + STRING_ENTRY core_machine_short_entry, 1, 0x400da6d8 + STRING_ENTRY core_machine_menu_entry, 2, 0x400da6fe + .section .note.GNU-stack,"",@progbits diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/machines.c b/sdk/machines/digitakt-ii/elekloader/modwerk/machines.c index a56948151a..8b437595bb 100644 --- a/sdk/machines/digitakt-ii/elekloader/modwerk/machines.c +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/machines.c @@ -25,3 +25,11 @@ int32_t core_machine_stands_for(uint32_t type) const struct dt2_machine *machine = dt2_machine_at(type, core_machines); return machine ? (int32_t)machine->stands_for : -1; } + +/* One of a machine's strings (DT2_MACHINE_NAME, _SHORT or _MENU); call only for a type + * core_machine_stands_for answers. */ +const char *core_machine_string(uint32_t type, uint32_t field) +{ + const struct dt2_machine *machine = dt2_machine_at(type, core_machines); + return machine && field <= DT2_MACHINE_MENU ? machine->strings[field] : 0; +} diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/tests/machines-fixture.c b/sdk/machines/digitakt-ii/elekloader/modwerk/tests/machines-fixture.c index 75d4e416c4..8bdbe5f1fd 100644 --- a/sdk/machines/digitakt-ii/elekloader/modwerk/tests/machines-fixture.c +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/tests/machines-fixture.c @@ -2,4 +2,7 @@ /* Development base only: one added machine (type 7) that stands for SAMPLE (type 0). */ #include -const struct dt2_machine dt2_test_machine = { .stands_for = 0 }; +const struct dt2_machine dt2_test_machine = { + .stands_for = 0, + .strings = { "Testgrain", "TGR", 0 }, +}; diff --git a/sdk/machines/digitakt-ii/include/mk2/machines.h b/sdk/machines/digitakt-ii/include/mk2/machines.h index b983590c00..7aa927d415 100644 --- a/sdk/machines/digitakt-ii/include/mk2/machines.h +++ b/sdk/machines/digitakt-ii/include/mk2/machines.h @@ -11,10 +11,18 @@ enum { DT2_MACHINE_COUNT = 4, }; +enum { + DT2_MACHINE_NAME = 0, /* shown in the SRC header and the machine menu, as "Oneshot" */ + DT2_MACHINE_SHORT = 1, /* up to four capitals, as "ONE" */ + DT2_MACHINE_MENU = 2, /* a machine's own menu title, as "Slice Menu"; usually none */ +}; + /* Draft record. stands_for names the stock type (0-6) whose descriptor and parameter codes the machine - * borrows until the base has its own parameter rows. */ + * borrows until the base has its own parameter rows. strings[] follow the DT2_MACHINE_* order; a null + * string is shown as none. */ struct dt2_machine { uint32_t stands_for; + const char *strings[3]; }; /* The record for a machine type, or 0 when the type is stock or has no complete record. */ From cf953a2697650a31a990f31be32ccc9c6f516893 Mon Sep 17 00:00:00 2001 From: claptom-music <350865352+Claptom-music@users.noreply.github.com> Date: Wed, 18 Nov 2026 19:07:15 +0100 Subject: [PATCH 044/415] List added Digitakt II machines in the machine menu and let a track take one The menu's list getter appends the added types and the permission check answers them as the stock type they stand for. Emulator: the test machine appears after MIDI and selecting it sets the track's type to 7. --- sdk/machines/digitakt-ii/elekloader/base.json | 2 + .../elekloader/modwerk/MACHINES.md | 7 ++- .../elekloader/modwerk/machines-entry.s | 45 +++++++++++++++++++ .../digitakt-ii/elekloader/modwerk/machines.c | 34 ++++++++++++++ 4 files changed, 87 insertions(+), 1 deletion(-) diff --git a/sdk/machines/digitakt-ii/elekloader/base.json b/sdk/machines/digitakt-ii/elekloader/base.json index 13773ae002..223858d78f 100644 --- a/sdk/machines/digitakt-ii/elekloader/base.json +++ b/sdk/machines/digitakt-ii/elekloader/base.json @@ -71,6 +71,8 @@ {"addr":"0x400763ac","len":8,"stockSha256":"f884edfcc4fdbe8c922f8080094cae67fdc2e7e87655c90c4eb6b79282f65f60","op":"jmp","target":"core_mixer_draw_entry"}, {"addr":"0x400c89a4","len":6,"stockSha256":"90d4add99e5a31399efe8b6d7879deb65375e21f97ebcdfd761b45d0fa6f5b13","op":"jmp","target":"core_machine_descriptor_entry"}, {"addr":"0x400da3a2","len":6,"stockSha256":"7004f7c54162426867d6e17e181d3ea5de00a97027c223cf901c7be0b6a6a967","op":"jmp","target":"core_machine_param_entry"}, + {"addr":"0x400da514","len":8,"stockSha256":"db448c4c3bfa3ffd560154abc31cbfd90268d767f02135f4bad97068c40800d3","op":"jmp","target":"core_machine_permit_entry"}, + {"addr":"0x40052a08","len":8,"stockSha256":"3df2a4fe58f85e06d5e747d7222e4f771af0e1b77b0543ac228c30636a57aecc","op":"jmp","target":"core_machine_list_entry"}, {"addr":"0x400da6ac","len":6,"stockSha256":"90d4add99e5a31399efe8b6d7879deb65375e21f97ebcdfd761b45d0fa6f5b13","op":"jmp","target":"core_machine_name_entry"}, {"addr":"0x400da6d2","len":6,"stockSha256":"90d4add99e5a31399efe8b6d7879deb65375e21f97ebcdfd761b45d0fa6f5b13","op":"jmp","target":"core_machine_short_entry"}, {"addr":"0x400da6f8","len":6,"stockSha256":"90d4add99e5a31399efe8b6d7879deb65375e21f97ebcdfd761b45d0fa6f5b13","op":"jmp","target":"core_machine_menu_entry"}, diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md index 5459af31cf..9c5bd8631f 100644 --- a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md @@ -70,9 +70,14 @@ Development base `7edbd8bf` (29 sites; `.run` 10,732 bytes, 284 more than base ` - In both, the header read ERROR: the machine strings come from 12-byte records at `0x4020ef78` (name, short name, menu title), read by `0x400da6ac`, `0x400da6d2` and `0x400da6f8`, which return ERROR or ERR above type 6. With those three answered too (development base `4485c4c1`, 32 sites, `.run` 11,050 bytes), the header reads the test machine's name and the knobs are unchanged. - Emulator only. Sound not checked (the sound chip still skips type 7). +### The machine menu (development base `16de57f4`, 34 sites, `.run` 11,358 bytes) + +- The menu's list getter (`0x40052a08`, entered with the result vector in `a0` and one stack argument; two callers) copies a sorted static list of the seven stock types. The base runs it, then appends each added type. The stock buffer it replaces is not freed (a few words, once per list build). +- The permission check (`0x400da514`, type and track class; above type 6 it refuses) answers an added type as the stock type it stands for. The setter (`0x40051712`) then stores the type byte. +- Emulator: FUNC+SRC lists TESTGRAIN after MIDI; DOWN to it and YES twice set track 1's type byte to 7; the SRC header then reads Testgrain. The SRC page opened on its second page (the sample view), whose centre is empty for a type above 6: the view's own type test (`0x4005f6bc` callers) knows only 0-6. Still to fix. + ## Still to check -- The machine menu list (built once at start-up) and the type check in the machine setter (`0x400dcab8`, types above 6 refused). - Kit and project load: the stock load turns a stored type of 7 or more into 0 (SAMPLE). That is the safe fallback on a unit without the base; with the base installed the load must keep the added types. - Every reader of the type byte and every per-type table: MIDI CC/NRPN tables, the machine menu list, the per-type parameter-code table, the SRC page view. diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/machines-entry.s b/sdk/machines/digitakt-ii/elekloader/modwerk/machines-entry.s index 7b0b5ec8de..fcf99dc866 100644 --- a/sdk/machines/digitakt-ii/elekloader/modwerk/machines-entry.s +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/machines-entry.s @@ -64,6 +64,51 @@ stock_param_code: move.l %d2,-(%sp) jmp 0x400da3a8 +/* Permission (type, track class): an added type answers as the stock type it stands for. Replays + * `move.l %d2,-(%sp); moveq #6,%d2; move.l 8(%sp),%d0`. */ + .globl core_machine_permit_entry +core_machine_permit_entry: + move.l 4(%sp),%d0 + moveq #7,%d1 + cmp.l %d1,%d0 + bcs.s 1f + move.l %a0,-(%sp) + move.l %a1,-(%sp) + move.l %d0,-(%sp) + jsr core_machine_stands_for + addq.l #4,%sp + move.l (%sp)+,%a1 + move.l (%sp)+,%a0 + tst.l %d0 + bmi.s 1f + move.l 8(%sp),-(%sp) + move.l %d0,-(%sp) + bsr.s stock_permit + addq.l #8,%sp + rts +1: +stock_permit: + move.l %d2,-(%sp) + moveq #6,%d2 + move.l 8(%sp),%d0 + jmp 0x400da51c + +/* The machine menu's list getter (a0: the result vector; one stack argument): run stock, then let the + * base append the added types. Replays `lea -24(%sp),%sp; movem.l %d2-%d5/%a2-%a3,(%sp)`. */ + .globl core_machine_list_entry +core_machine_list_entry: + move.l 4(%sp),-(%sp) + bsr.s stock_list + addq.l #4,%sp + move.l %d0,-(%sp) + jsr core_machine_list_extend + move.l (%sp)+,%d0 + rts +stock_list: + lea -24(%sp),%sp + movem.l %d2-%d5/%a2-%a3,(%sp) + jmp 0x40052a10 + /* The three machine-string lookups (type): name, short name and menu title. An added type answers * from its record, others replay `moveq #6,%d1; move.l 4(%sp),%d0` and continue in stock. */ .macro STRING_ENTRY label, field, cont diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/machines.c b/sdk/machines/digitakt-ii/elekloader/modwerk/machines.c index 8b437595bb..bf2b5f54a5 100644 --- a/sdk/machines/digitakt-ii/elekloader/modwerk/machines.c +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/machines.c @@ -26,6 +26,40 @@ int32_t core_machine_stands_for(uint32_t type) return machine ? (int32_t)machine->stands_for : -1; } +/* The machine menu's list: the stock getter fills a vector of machine types ({begin, end, capacity}); + * the base appends the added types after the stock ones. The OS builds the list at start-up; the stock + * buffer it replaces is a few words and is not freed. */ +struct type_vector { + uint32_t *begin, *end, *capacity; +}; + +extern void *OP_NEW(uint32_t size); + +void core_machine_list_extend(struct type_vector *list) +{ + uint32_t added = 0; + while (added < DT2_MACHINE_COUNT && dt2_machine_at(DT2_MACHINE_FIRST + added, core_machines)) { + ++added; + } + if (!added || !list || !list->begin) { + return; + } + uint32_t count = (uint32_t)(list->end - list->begin); + uint32_t *types = OP_NEW((count + added) * sizeof(uint32_t)); + if (!types) { + return; + } + for (uint32_t i = 0; i < count; ++i) { + types[i] = list->begin[i]; + } + for (uint32_t i = 0; i < added; ++i) { + types[count + i] = DT2_MACHINE_FIRST + i; + } + list->begin = types; + list->end = types + count + added; + list->capacity = list->end; +} + /* One of a machine's strings (DT2_MACHINE_NAME, _SHORT or _MENU); call only for a type * core_machine_stands_for answers. */ const char *core_machine_string(uint32_t type, uint32_t field) From 6c076b55cba091385453134e26b8cffe08679d4a Mon Sep 17 00:00:00 2001 From: claptom-music <350865352+Claptom-music@users.noreply.github.com> Date: Wed, 18 Nov 2026 19:13:12 +0100 Subject: [PATCH 045/415] Keep added Digitakt II machine types when a kit or project loads The sound load keeps an installed added type and still turns any other unknown type into SAMPLE. Emulator: a saved project reloads with the test machine; without the hook it reloads as SAMPLE. --- sdk/machines/digitakt-ii/elekloader/base.json | 1 + .../digitakt-ii/elekloader/modwerk/MACHINES.md | 7 ++++++- .../elekloader/modwerk/machines-entry.s | 15 +++++++++++++++ .../digitakt-ii/elekloader/modwerk/machines.c | 11 +++++++++++ 4 files changed, 33 insertions(+), 1 deletion(-) diff --git a/sdk/machines/digitakt-ii/elekloader/base.json b/sdk/machines/digitakt-ii/elekloader/base.json index 223858d78f..0cc72b6495 100644 --- a/sdk/machines/digitakt-ii/elekloader/base.json +++ b/sdk/machines/digitakt-ii/elekloader/base.json @@ -71,6 +71,7 @@ {"addr":"0x400763ac","len":8,"stockSha256":"f884edfcc4fdbe8c922f8080094cae67fdc2e7e87655c90c4eb6b79282f65f60","op":"jmp","target":"core_mixer_draw_entry"}, {"addr":"0x400c89a4","len":6,"stockSha256":"90d4add99e5a31399efe8b6d7879deb65375e21f97ebcdfd761b45d0fa6f5b13","op":"jmp","target":"core_machine_descriptor_entry"}, {"addr":"0x400da3a2","len":6,"stockSha256":"7004f7c54162426867d6e17e181d3ea5de00a97027c223cf901c7be0b6a6a967","op":"jmp","target":"core_machine_param_entry"}, + {"addr":"0x400db47a","len":16,"stockSha256":"8686c14efc6286fbc78202ff9e239a5206ce5b2dfb5cd85b3124e6437a613f38","op":"jmp","target":"core_machine_kit_type_entry"}, {"addr":"0x400da514","len":8,"stockSha256":"db448c4c3bfa3ffd560154abc31cbfd90268d767f02135f4bad97068c40800d3","op":"jmp","target":"core_machine_permit_entry"}, {"addr":"0x40052a08","len":8,"stockSha256":"3df2a4fe58f85e06d5e747d7222e4f771af0e1b77b0543ac228c30636a57aecc","op":"jmp","target":"core_machine_list_entry"}, {"addr":"0x400da6ac","len":6,"stockSha256":"90d4add99e5a31399efe8b6d7879deb65375e21f97ebcdfd761b45d0fa6f5b13","op":"jmp","target":"core_machine_name_entry"}, diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md index 9c5bd8631f..9b4b22cad4 100644 --- a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md @@ -76,9 +76,14 @@ Development base `7edbd8bf` (29 sites; `.run` 10,732 bytes, 284 more than base ` - The permission check (`0x400da514`, type and track class; above type 6 it refuses) answers an added type as the stock type it stands for. The setter (`0x40051712`) then stores the type byte. - Emulator: FUNC+SRC lists TESTGRAIN after MIDI; DOWN to it and YES twice set track 1's type byte to 7; the SRC header then reads Testgrain. The SRC page opened on its second page (the sample view), whose centre is empty for a type above 6: the view's own type test (`0x4005f6bc` callers) knows only 0-6. Still to fix. +### Saved kits and projects (development base `e31255b2`, 35 sites, `.run` 11,466 bytes) + +- Save copies the runtime type byte (sound `+0xa2`) to the stored sound record (`+0xd2`) unchanged (`0x400dbb3c`). +- Load (`0x400db476`) keeps a stored type only if it is 0-6 or `0xff` and turns anything else into 0 (SAMPLE). The base replaces the 16-byte test at `0x400db47a`: it also keeps an added type whose machine is installed. A type with no installed machine still becomes SAMPLE, as on the stock OS. +- Emulator, digikit's persistence card image: choose the test machine for track 1, SAVE PROJECT, set the type byte to 0, LOAD PROJECT. With the hook the type reads 7 again and the SRC page shows the test machine; with the previous development base (`16de57f4`, no load hook) it reads 0. So the project round trip keeps the machine only with the hook. A stock OS opening the same project would load it as SAMPLE (static read; not run). + ## Still to check -- Kit and project load: the stock load turns a stored type of 7 or more into 0 (SAMPLE). That is the safe fallback on a unit without the base; with the base installed the load must keep the added types. - Every reader of the type byte and every per-type table: MIDI CC/NRPN tables, the machine menu list, the per-type parameter-code table, the SRC page view. - Kit and project save and load of an added type, and the stock OS's behaviour when it loads one. diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/machines-entry.s b/sdk/machines/digitakt-ii/elekloader/modwerk/machines-entry.s index fcf99dc866..9d23d22ca3 100644 --- a/sdk/machines/digitakt-ii/elekloader/modwerk/machines-entry.s +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/machines-entry.s @@ -109,6 +109,21 @@ stock_list: movem.l %d2-%d5/%a2-%a3,(%sp) jmp 0x40052a10 +/* Sound load (0x400db47a, 16 bytes): d0 holds the stored type byte. Stock keeps 0-6 and 0xff and turns + * anything else into 0; the base also keeps an installed added type. Leaves d2 = 7, as the replaced + * code does, and stores nothing itself: stock stores d0 at 0x400db48a. */ + .globl core_machine_kit_type_entry +core_machine_kit_type_entry: + move.l %a0,-(%sp) + move.l %a1,-(%sp) + move.l %d0,-(%sp) + jsr core_machine_kit_type + addq.l #4,%sp + move.l (%sp)+,%a1 + move.l (%sp)+,%a0 + moveq #7,%d2 + jmp 0x400db48a + /* The three machine-string lookups (type): name, short name and menu title. An added type answers * from its record, others replay `moveq #6,%d1; move.l 4(%sp),%d0` and continue in stock. */ .macro STRING_ENTRY label, field, cont diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/machines.c b/sdk/machines/digitakt-ii/elekloader/modwerk/machines.c index bf2b5f54a5..259cc9decf 100644 --- a/sdk/machines/digitakt-ii/elekloader/modwerk/machines.c +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/machines.c @@ -60,6 +60,17 @@ void core_machine_list_extend(struct type_vector *list) list->capacity = list->end; } +/* A sound's stored machine type as a load keeps it: stock types and 0xff as stock does, an added type + * whose machine is installed, and SAMPLE (0) for anything else, as the stock OS does. */ +uint32_t core_machine_kit_type(uint32_t stored) +{ + uint32_t type = stored & 0xff; + if ((uint8_t)(type + 1) < DT2_MACHINE_FIRST + 1) { + return type; + } + return dt2_machine_at(type, core_machines) ? type : 0; +} + /* One of a machine's strings (DT2_MACHINE_NAME, _SHORT or _MENU); call only for a type * core_machine_stands_for answers. */ const char *core_machine_string(uint32_t type, uint32_t field) From 47aeec9e1ab4bcf1ec4ad0eb19837fc7831b187a Mon Sep 17 00:00:00 2001 From: claptom-music <350865352+Claptom-music@users.noreply.github.com> Date: Wed, 18 Nov 2026 19:14:59 +0100 Subject: [PATCH 046/415] Design the sound-chip hook for added Digitakt II machines Names the voice-loop site, the dispatcher's job, how machine packages carry their sound-chip code and what the SHARC builder must learn. What is left to trace before building it is listed. --- sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md index 9b4b22cad4..1dba8169f6 100644 --- a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md @@ -82,6 +82,14 @@ Development base `7edbd8bf` (29 sites; `.run` 10,732 bytes, 284 more than base ` - Load (`0x400db476`) keeps a stored type only if it is 0-6 or `0xff` and turns anything else into 0 (SAMPLE). The base replaces the 16-byte test at `0x400db47a`: it also keeps an added type whose machine is installed. A type with no installed machine still becomes SAMPLE, as on the stock OS. - Emulator, digikit's persistence card image: choose the test machine for track 1, SAVE PROJECT, set the type byte to 0, LOAD PROJECT. With the hook the type reads 7 again and the SRC page shows the test machine; with the previous development base (`16de57f4`, no load hook) it reads 0. So the project round trip keeps the machine only with the hook. A stock OS opening the same project would load it as SAMPLE (static read; not run). +## Sound-chip hook: design (not built) + +- **Site.** The type test in the per-voice loop (short-word PC `0x1c654e`-`0x1c6561`; section-7 byte address `0x28000000 + 2 * PC`, so `0x2838ca9c` onwards). Today a type of 6 or more skips the per-type setup and an added type plays nothing. The base replaces one 48-bit instruction there with a jump to its machine dispatcher, guarded by SHA-256 like the render and receive sites. +- **Dispatcher.** A base-owned SHARC routine: for a type below 7 it replays the displaced instruction and returns to stock; for an added type with a sound-chip routine it saves the registers the voice loop keeps, calls the module's voice routine with the voice record, and resumes at the shared continuation (`0x1c65fe`) so the stock filter, amp envelope and panning still process the voice. +- **Module routines.** Each machine package carries its sound-chip code in L2 (the free range `0x2001ab7c`-`0x200fa000`, as the render subscribers do) and names a note-on and a render entry; the base keeps a table of them by machine type. +- **Builder.** `src/engine/elektron/dt2-sharc.ts` patches exactly two fixed sites (render and receive). It needs a list of base sites and per-machine allocations, in the same verified way. +- **Still to trace in the emulator (SHARC):** where a per-type setup hands the voice to the sample renderer (`0x1c4f81` has no direct caller, so it is reached through a pointer, probably the table at `0x8055c840`), which buffer a voice renders into, which registers the loop keeps live across `0x1c6550`-`0x1c65fe`, and the cost per voice. A module's voice routine must stay inside the block's time budget with all 16 tracks playing. + ## Still to check From 5880676d137c0fa2ff2f43ac15c05a8bb52ec7ba Mon Sep 17 00:00:00 2001 From: repeat98 Date: Wed, 18 Nov 2026 21:47:05 +0100 Subject: [PATCH 047/415] Octatrack base 0.7.10: a pick is judged as if every quiet delay were awake Base 0.7.7 leaves out the delay routine's ring transfers on tracks whose delay is quiet: up to 7.4 CPU meter points on an MKII. A scene that opens the sends takes all of it back from the next frame, but picks were judged against the lower meter, so a set put together while the delays were quiet could tip past the 85 % line mid-performance (aLinG_ on Discord). modwerk_status_cpu_load now adds 10 per mille for each track whose read status.s left out, so the saving only buys margin. The busy box's "WAS BUSY PLAYING" follows the last play's figure, not the added amount. AGENTS.md: base changes collect on one cumulative draft base pull request per machine (owner, 18 November 2026). Co-Authored-By: Claude Opus 5.5 --- AGENTS.md | 2 +- changelog/2026-11-18-delay-wake-admission.md | 1 + sdk/machines/octatrack/base-binding.json | 20 +- sdk/machines/octatrack/base-sizes.json | 34 + sdk/machines/octatrack/base-versions.json | 12 + sdk/machines/octatrack/elekloader/README.md | 2 +- .../octatrack/elekloader/base-version.json | 2 +- sdk/machines/octatrack/elekloader/status.c | 19 +- .../octatrack/elekloader/test_status.c | 12 + src/engine/assets/octatrack-base-sources.json | 6 +- .../assets/octatrack-base-variants.json | 2 +- src/engine/assets/octatrack-base.elemod | 4699 +++++++++-------- .../assets/octatrack-module-packages.json | 10 +- 13 files changed, 2481 insertions(+), 2340 deletions(-) create mode 100644 changelog/2026-11-18-delay-wake-admission.md diff --git a/AGENTS.md b/AGENTS.md index 99016efeaf..9cba5cfacb 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -47,7 +47,7 @@ Skills load on clone: Claude Code reads `.claude/skills/`, Codex the identical ` ## Pull requests -- Work on a branch off current `main`; a push to `main` deploys, so never push to it. Add this session's work to your open pull request with an updated description; open another only when none is open, for each `/modwerk-contribute` change, and for a module release or new module, which ships alone. Push once the developer says their testing is done, then `gh pr create` before you report the work as done; a built package or base opens as a draft until that exact build ran on a unit, named in the description. [Machine maintainers](docs/DEVELOPER_WORKFLOW.md#who-reviews-a-first-release) or the owner merge every module's first release; registered authors then release their own updates ([docs/MODULE_AUTHOR_UPDATES.md](docs/MODULE_AUTHOR_UPDATES.md)). +- Work on a branch off current `main`; a push to `main` deploys, so never push to it. Add this session's work to your open pull request with an updated description; open another only when none is open, for each `/modwerk-contribute` change, and for a module release or new module, which ships alone. A base change goes on its machine's one cumulative draft base pull request (branch `base/-next`, opened when none is open; a contributor's base pull request is merged into it), never a base release of its own: the owner decides when it ships. Push once the developer says their testing is done, then `gh pr create` before you report the work as done; a built package or base opens as a draft until that exact build ran on a unit, named in the description. [Machine maintainers](docs/DEVELOPER_WORKFLOW.md#who-reviews-a-first-release) or the owner merge every module's first release; registered authors then release their own updates ([docs/MODULE_AUTHOR_UPDATES.md](docs/MODULE_AUTHOR_UPDATES.md)). - Fold what you learn back into the context. First ask whether `module:doctor`, `pr:ready` or a test can catch it next time, and add that; write a sentence only for what no program can see, in the file a reader would open for that task: the matching guide, or this file. Correct a stale line rather than contradict it; keep it short, general and stock-free. A document in `docs/` and this file stay under 40 KB, so make room rather than append; history goes in a dated record ([where](docs/README.md)). Every pull request says what the guides lacked or got wrong and where you fixed it, and "nothing" is a fine answer ([Share what you learn](docs/DEVELOPER_WORKFLOW.md#share-what-you-learn)). - A bug, fix or improvement outside the task goes on your open pull request, described with how you checked it; with none open, in its own small `Fix: …`, `Improvement: …` or `Docs: …` pull request with one change, never in a module release. In a contributor's fork, offer it and open it with their OK; if you can't fix it, open an issue ([Fixes and improvements](docs/DEVELOPER_WORKFLOW.md#fixes-and-improvements)). diff --git a/changelog/2026-11-18-delay-wake-admission.md b/changelog/2026-11-18-delay-wake-admission.md new file mode 100644 index 0000000000..2da66213da --- /dev/null +++ b/changelog/2026-11-18-delay-wake-admission.md @@ -0,0 +1 @@ +Octatrack base: a module pick is now judged as if every quiet delay were awake. The base saves up to 7 CPU points by leaving out silent delays, but a scene that opens the delay sends takes all of it back at once, so a set put together while the delays were quiet could tip over mid-performance. That saving now only adds margin. diff --git a/sdk/machines/octatrack/base-binding.json b/sdk/machines/octatrack/base-binding.json index 2cbb77ad84..42bbbcc447 100644 --- a/sdk/machines/octatrack/base-binding.json +++ b/sdk/machines/octatrack/base-binding.json @@ -1,13 +1,13 @@ { "schema": 1, - "identity": "dfa438130710fea9dfac40296d1a7db79b6ba3efc45c77b043ae6d45f44d3921", + "identity": "0d52edc1b4dffbd9d6dfe66c1b3ccb7e42b30fce7ff6701525c67bba783cabb7", "arena": 1089834464, "pool": 1087861072, "symbols": { "modwerk_controller_write_begin": 1084872416, "modwerk_controller_write_end": 1084872444, - "modwerk_cue_cfg_clamp": 1085109268, - "modwerk_raise_ev_mute_keep": 1085112166 + "modwerk_cue_cfg_clamp": 1085109324, + "modwerk_raise_ev_mute_keep": 1085112222 }, "controllers": { "sidechain-compressor": "50f6630fd2aefb1d7b33699722dfdfb2e291ea60bf56982c2b337f1d7cc0ee4f", @@ -15,12 +15,12 @@ "analog-bassdrum": "c6c06f25c6a9abc771139b39d8ed803a05e5f8512a7aea9f60de07e044d332a6" }, "variants": { - "tracks-main-cue": "dfa438130710fea9dfac40296d1a7db79b6ba3efc45c77b043ae6d45f44d3921", - "tracks": "3ca03a64d530f3af6e7d7f321147a22244099d9b7db403a3da2e389be8353635", - "tracks-post": "75fda57321600983e464409308aec0586d09f5d36a02819d3bd2b829f1cd5f3b", - "main-cue": "435939cb714eb6f464033ac3b5c3e2ec071d911019b3d4dbac5f6d6fbb64adf0", - "main": "567509736687c7b78cd8b2b645f6476cbed15854bb854d70084aa2383233c878", - "master": "afc3cacef947ee6e3b1877963ec4874c1ce2f237e43b613411e36907d0f9a143", - "off": "c889442d9b119d5f7e4dd5e056a8bd1552e55717d2fe4fa290b0b6ada5bc55ac" + "tracks-main-cue": "0d52edc1b4dffbd9d6dfe66c1b3ccb7e42b30fce7ff6701525c67bba783cabb7", + "tracks": "16ef05c1da3de47871ce73f80155d3e658df7c62bc05028f694ac1e405232d24", + "tracks-post": "08ee39dfee67ed19761e0d04917b5fdc08eb33b03b6121644f82e4324f53e983", + "main-cue": "ad8c5256987836fbfc9f6f36f671e09730ab5e0ef7dd4ccd2aa28d28af4af1ad", + "main": "78ac84091f96f057be1588ab9edd47fcdb80e871c474cc2b89e79d89395ec9c7", + "master": "f4a19eb0ea98f99dd46ada8532fe79b8d522c418c721ef3fbec78a62008e9288", + "off": "3399ca6053330dc208118d73f0cf304c3b888ecf0a685d04cc5c2277fcea7abd" } } diff --git a/sdk/machines/octatrack/base-sizes.json b/sdk/machines/octatrack/base-sizes.json index e52f0b1fb9..4c32a2087c 100644 --- a/sdk/machines/octatrack/base-sizes.json +++ b/sdk/machines/octatrack/base-sizes.json @@ -340,6 +340,40 @@ "container": 803472 } } + }, + { + "base": "0.7.10", + "identity": "0d52edc1b4dffbd9d6dfe66c1b3ccb7e42b30fce7ff6701525c67bba783cabb7", + "layouts": { + "tracks-main-cue": { + "main": 1324986, + "container": 805536 + }, + "tracks": { + "main": 1324843, + "container": 805388 + }, + "tracks-post": { + "main": 1326444, + "container": 807120 + }, + "main-cue": { + "main": 1324750, + "container": 805284 + }, + "main": { + "main": 1324617, + "container": 805192 + }, + "master": { + "main": 1324640, + "container": 805132 + }, + "off": { + "main": 1323209, + "container": 803552 + } + } } ] } diff --git a/sdk/machines/octatrack/base-versions.json b/sdk/machines/octatrack/base-versions.json index 429b4e00c6..cff13db1be 100644 --- a/sdk/machines/octatrack/base-versions.json +++ b/sdk/machines/octatrack/base-versions.json @@ -108,6 +108,18 @@ "afc3cacef947ee6e3b1877963ec4874c1ce2f237e43b613411e36907d0f9a143", "c889442d9b119d5f7e4dd5e056a8bd1552e55717d2fe4fa290b0b6ada5bc55ac" ] + }, + { + "version": "0.7.10", + "identities": [ + "0d52edc1b4dffbd9d6dfe66c1b3ccb7e42b30fce7ff6701525c67bba783cabb7", + "16ef05c1da3de47871ce73f80155d3e658df7c62bc05028f694ac1e405232d24", + "08ee39dfee67ed19761e0d04917b5fdc08eb33b03b6121644f82e4324f53e983", + "ad8c5256987836fbfc9f6f36f671e09730ab5e0ef7dd4ccd2aa28d28af4af1ad", + "78ac84091f96f057be1588ab9edd47fcdb80e871c474cc2b89e79d89395ec9c7", + "f4a19eb0ea98f99dd46ada8532fe79b8d522c418c721ef3fbec78a62008e9288", + "3399ca6053330dc208118d73f0cf304c3b888ecf0a685d04cc5c2277fcea7abd" + ] } ] } diff --git a/sdk/machines/octatrack/elekloader/README.md b/sdk/machines/octatrack/elekloader/README.md index 4a4d7d40c1..f80a6189e0 100644 --- a/sdk/machines/octatrack/elekloader/README.md +++ b/sdk/machines/octatrack/elekloader/README.md @@ -340,7 +340,7 @@ counts of zero (-120 dBFS) with its send gain at zero for 16,384 frames in a row whose echoes have died), its read and write are left out and only the dry gain is applied, as stock ramps it. Stock's filter never comes back to exact zero after a send, so this drops a residue below -120 dBFS rather than being bit-identical. A send that opens starts from silent taps. A module that takes the routine's seam before it (Tape Echo, -`0x4000361a`) restarts the count. The A/B harness and the unit figures are in `delay-harness/`. +`0x4000361a`) restarts the count. A pick is still judged as if every quiet delay were awake (`modwerk_status_cpu_load` adds a point a quiet track), since a scene that opens the sends takes the whole saving back from the next frame: the skip buys margin, never admission. The A/B harness and the unit figures are in `delay-harness/`. `status.c` also keeps the frame interrupt's share of each frame from the frame guard's sums, over the last four seconds (the last play's while stopped), and the box after a pick shows it in its CPU row against `mw_frame_line`, the share where the guard starts to drop renders. diff --git a/sdk/machines/octatrack/elekloader/base-version.json b/sdk/machines/octatrack/elekloader/base-version.json index 2151bb2bc7..e10ca181c1 100644 --- a/sdk/machines/octatrack/elekloader/base-version.json +++ b/sdk/machines/octatrack/elekloader/base-version.json @@ -1,5 +1,5 @@ { "major": 0, "minor": 7, - "patch": 9 + "patch": 10 } diff --git a/sdk/machines/octatrack/elekloader/status.c b/sdk/machines/octatrack/elekloader/status.c index 0b12924348..fe54d04036 100644 --- a/sdk/machines/octatrack/elekloader/status.c +++ b/sdk/machines/octatrack/elekloader/status.c @@ -1095,15 +1095,26 @@ uint32_t modwerk_status_cpu_recent(void) { return recent_mean(); } * picks made stopped at 62 to 74 % left a Part that played at 87 to 97 %, where a knob turn waits 0.1 to 0.2 s for * its redraw. The kept figure goes stale when the unit is made lighter while stopped (a stock pick, another * project): four seconds of playing replace it. */ +static unsigned load_was_played(void) { return modwerk_machine_stopped() && cpu_played > recent_mean(); } +/* status.s leaves out the delay routine's ring transfers on a track whose delay is quiet: 7.4 meter points with all + * eight (MKII, 16 November 2026: 41.2 % to 33.8 % stopped), all of it back from the frame a scene opens the sends. The + * 85 % line was set from bases that always paid it, so a pick is judged as if every delay were awake: the skip buys + * margin and is never spent. */ +#define DELAY_WAKE 10u /* per mille a quiet track */ +static uint32_t delays_asleep(void) +{ + uint32_t n = 0; + for (unsigned t = 0; t < 8u; ++t) n += ((volatile uint32_t *)mw_delay)[17u + t] != 0; /* status.s: no read this frame */ + return n * DELAY_WAKE; +} uint32_t modwerk_status_cpu_load(void) { - uint32_t now = recent_mean(); - return modwerk_machine_stopped() && cpu_played > now ? cpu_played : now; + return (load_was_played() ? cpu_played : recent_mean()) + delays_asleep(); } void modwerk_status_cpu_hot(unsigned track, const char *label, uint32_t cpu) { modwerk_status_cpu_refused(track, label, cpu, 0); - if (open == REFUSED && refused_reason == 4u && refused[1] == track) refused[0] = 5u, refused_played = cpu > recent_mean(); + if (open == REFUSED && refused_reason == 4u && refused[1] == track) refused[0] = 5u, refused_played = load_was_played(); } /* selection.c's guard (build_core.py's edit), before stock writes an FX pick: 1 when the pick asks for a module's * effect (`id`, on slot 0-15: FX1 T1-T8, then FX2) while the unit is busy, and the pick is then not made. A module @@ -1120,7 +1131,7 @@ int modwerk_status_effect_busy(unsigned slot, unsigned id) mw_cpu_refusals = mw_cpu_refusals + 1u, mw_cpu_refusal_tracks |= 1u << (slot & 7u); modwerk_status_cpu_refused(slot & 7u, name, cpu, 0); if (open == REFUSED && refused_reason == 4u && refused[0] == 4u) - refused[0] = 5u, refused[1] = slot, refused_machine = 0, refused_played = cpu > recent_mean(); + refused[0] = 5u, refused[1] = slot, refused_machine = 0, refused_played = load_was_played(); return 1; } static void refused_box(unsigned char *frame) diff --git a/sdk/machines/octatrack/elekloader/test_status.c b/sdk/machines/octatrack/elekloader/test_status.c index 042130d908..0d4688a262 100644 --- a/sdk/machines/octatrack/elekloader/test_status.c +++ b/sdk/machines/octatrack/elekloader/test_status.c @@ -466,6 +466,18 @@ int main(void) CHECK(!modwerk_status_effect_busy(11, 27) && open == CLOSED); /* 70 % playing, 62 % now: passes */ cpu_played = 0, play_readings = 0; for (unsigned i = 0; i < 8u; ++i) cpu_recent[i] = 0; } + /* A quiet delay (status.s left its read out) counts as awake: a pick is judged at what the unit costs once a + * scene opens the sends, and the box does not call that figure the last play's. */ + { for (unsigned i = 0; i < 8u; ++i) cpu_recent[i] = 780u; + mw_delay[17] = mw_delay[20] = mw_delay[24] = 1; + CHECK(modwerk_status_cpu_recent() == 780u && modwerk_status_cpu_load() == 810u); + CHECK(!modwerk_status_effect_busy(11, 27)); /* 81 %: passes */ + for (unsigned t = 0; t < 8u; ++t) mw_delay[17u + t] = 1; + CHECK(modwerk_status_cpu_load() == 860u); + CHECK(modwerk_status_effect_busy(11, 27) == 1 && refused_booked == 860 && !refused_played); /* 78 % now, 86 % awake */ + for (unsigned i = 0; i < 180u; ++i) memory_tick(); + for (unsigned t = 0; t < 8u; ++t) mw_delay[17u + t] = 0; + for (unsigned i = 0; i < 8u; ++i) cpu_recent[i] = 0; } /* The frame share: the frame guard's sums between two readings, per mille of a frame. The guard's development read * clears them: that reading is left out. */ { mw_frame_count = 1000u, mw_frame_busy = 187u * 600u; frame_note(0); diff --git a/src/engine/assets/octatrack-base-sources.json b/src/engine/assets/octatrack-base-sources.json index 66d17b6114..a63a39ae02 100644 --- a/src/engine/assets/octatrack-base-sources.json +++ b/src/engine/assets/octatrack-base-sources.json @@ -22,7 +22,7 @@ "sdk/firmware_codec/transport.py": "30f1b71c28cf4c57fdbe38c0e535465cc2f29503ef348888a68940f93f070ae5", "sdk/machines/octatrack/dsp-sites.json": "16b491f0a22ce571178af7d2f323701adbe7dba2b3dcd5e3928b464860811f9d", "sdk/machines/octatrack/dsp_sites.py": "581b9dd7a1f39a0da8b691d5a64fd28c3322acf47bdd500049042f1ec1b53633", - "sdk/machines/octatrack/elekloader/base-version.json": "b6e2423b8c8b5bf695c929a6381352cad868168ca8b0e5af6b2c20e3667f647c", + "sdk/machines/octatrack/elekloader/base-version.json": "fec58a27b0fc0067951eb19a8a9b1f7ef5545e7a2ed7637fb8094d353e9f9a1e", "sdk/machines/octatrack/elekloader/boot.c": "8b865330d684580ce9ca99de04d7e45a9b4861dfb02d6b91fe0009873b7354f6", "sdk/machines/octatrack/elekloader/boot.h": "bda50491aa150bdb686af653031f792c7107e4ad5a0b7960fd96636096e148d7", "sdk/machines/octatrack/elekloader/boot.s": "43d21b7bf863bd39bd9c53b94f3e6b47f2dd3e12b30be6b4830580d7b93eb123", @@ -78,7 +78,7 @@ "sdk/machines/octatrack/elekloader/selftest.h": "a1b96f2e38935ce78f4c157643a7b6d28f7874b24bee74460bb2bd955eebc946", "sdk/machines/octatrack/elekloader/slots.c": "f177b407d274b7e51035e6fd655a014810149e61f3f08686d28168de93711f2d", "sdk/machines/octatrack/elekloader/slots.h": "66acbc424a221cf3a74d60d51e912e887df318bc438ba038724efbb0e0aa3acb", - "sdk/machines/octatrack/elekloader/status.c": "5710bcb60a45827d2fef12ee4974cb91587423eb967446b0851ffc7a5d85763b", + "sdk/machines/octatrack/elekloader/status.c": "4c628b7f420a6747c387986729691a1e7883f39f944fcbe36b854eafbc436db8", "sdk/machines/octatrack/elekloader/status.h": "9eebff43074ca9d1d999cbae1ad82f5679b3975466483b87fc4ec535635f903a", "sdk/machines/octatrack/elekloader/status.s": "2aaaf7c38fcb30b401dc8ffb9a74e6e11c0c6aa7e930b6e26228c3a2c0749acf", "sdk/machines/octatrack/elekloader/stock_dsp_worst.py": "3705e5b086a896fe48f30661eb52053b34ff4c51bf9e5bfc26a4d1bad6df3500", @@ -103,7 +103,7 @@ "sdk/machines/octatrack/elekloader/test_sample_memory.c": "7709896d2390ee31ae417516a7708de8a2f571c94c38e2101ef9d27fe10a9d7f", "sdk/machines/octatrack/elekloader/test_selftest.c": "bc077eb252a14a93436f88ba646a9955e4f214f17161d8de9293cc488822ce98", "sdk/machines/octatrack/elekloader/test_sets.c": "6cbcf4b94be868ff3a53f95229d6b23e0eb65e6e19719ed8e34ac5d34d939935", - "sdk/machines/octatrack/elekloader/test_status.c": "56c4a275194c7d71d410a7a09dfe450a356ebf7ad54fa436f236ce8a049ea73f", + "sdk/machines/octatrack/elekloader/test_status.c": "3fb96a3f920afd0d95d8fb6070a2b16679fd4ac43fd571b95257ff7258aebc5d", "sdk/machines/octatrack/elekloader/test_window_buffers.c": "f6314f43943b935deb1ee3d5f81f2e39cb1f10c748b6b27a8c19b389c567f6e6", "sdk/machines/octatrack/elekloader/usb_base.py": "21e20795b09462bd7114cd0f3b7c113f71d35d9a8516beee251695778bb90796", "sdk/machines/octatrack/elekloader/usb_bridge.py": "9271b7b0140b4c0bca50cf31cc64d0300308b77bd43c4329a7c3125e07609798", diff --git a/src/engine/assets/octatrack-base-variants.json b/src/engine/assets/octatrack-base-variants.json index 8d84fa71de..68e81994e6 100644 --- a/src/engine/assets/octatrack-base-variants.json +++ b/src/engine/assets/octatrack-base-variants.json @@ -1 +1 @@ -{"schema":1,"packageSha256":"13a37eefaf86756a38dfe59363d4468b07ddb7807c99435fecf3ebcf031c1bf8","variants":[{"layout":"tracks","identity":"3ca03a64d530f3af6e7d7f321147a22244099d9b7db403a3da2e389be8353635","packageSha256":"de8c134c8a1c95538d5f3826e8afd95c4de652ef770d937d301f7c0cb41608ad","patch":[[15817,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202000200000005250101010905820200020000000525010103080b04020100200009040400000101200009240100020a2e000008240a100105000011240211030600\""]],[15821,1,[" \"0x400bf48c\","," 10"," ],"," ["," \"hex\","," \"0c24031201010011100000000904050000010220000904050101010220001024011200010100\""," ],"," ["," \"stock\","," \"0x400ba484\","]],[15826,1,[" \"06240201041807058305000302082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000090703010601\""]],[15858,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202000200000005250101010905820200020000000525010103080b04020100200009040400000101200009240100020a2e000008240a100105000011240211030600\""]],[15862,1,[" \"0x400bf48c\","," 10"," ],"," ["," \"hex\","," \"0c24031201010011100000000904050000010220000904050101010220001024011200010100\""," ],"," ["," \"stock\","," \"0x400ba484\","]],[15867,1,[" \"06240201041807058305000302082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[16061,1,[" \"0000000071b946c8ce0c7205b2806600002c71b946c8ce0a4a80670a700113c000000000600a4239000000006100059a4eb94001d5244ef94001de742039fc0b01c44ef94001dd0a71b946c8ce0c7205b280660c4879000000004ef94001d81e4879400e20a14ef94001d81e4eb94001d6b86100001a70404ef94001e9226100000e2039fc0b01404ef94001e9584239000000004e75201023c04ec950280280fffff00006800000100023c04ec9502c4ef94001d4b84feffff848d700032039fc0b01bc223c00080000c081670c223c0008000023c1fc0b01bc4cd700034fef00084ef9000000004a3900000000670000b271b9000000000c8000000002664c740020026100009e2228000408010007670c52820c820000000465e64e75203900000000220092b9000000000481000000406f1223c10000000004800000004023c00000000042390000000070042f00610000a24a806704539766f4588f71b9000000000c80000000016608700213c0000000002039fc0b01b82239fc0b01b08081028000080000661875b900000000610000244a80670a6100003e52b9000000004e75028000000003eb88207c00000000d1c04e75760320026100ffe82228000408010007660a528253836aea70004e75284870014e75227900000000234c000842a9000c203c00080000\""]],[16070,1,[" \"71b9000000002c406100ffa62228000408010007660002384a39000000006700022e203900000000223900000000240094810c8200000400631a52b900000000220004810000040023c100000000243c000004004a3900000000661cb4b900000000640623c200000000b4b900000000630623c2000000002639000000002a39000000004a390000000066282002048000000040e3800c80000000c86f06203c000000c80c80ffffff386c06203cffffff38da80d6852e3c000003e828034c4740042a044c0750002c039c85b484640a52b9000000006000017623c60000000023c40000000023c200000000200ee188e588220ee1899081267c00000000d7c0224b26042239000000000281000003ff203c0000040090814a3900000000672c45f900000000ed89d5c1b6806208200361000120604096802a436100011645f900000000200d6100010a602a45f900000000e789d5c1b6806208200361000116601496802a436100010c45f900000000200d61000100283900000000d9b9000000002c044a39000000006704ed8e6002e78e72012081214b0008220b0281fffff0000681000010002141000c220648410081000000802141000428482a48200e53806100fdec2448204d202a000408000007676224882039fc0b01b0028000080000665674102039fc0b0140008000004000\""]],[16097,1,[" \"ffffbfff23c0fc0b01404a81660c240e52826100fd8e6100fdac200e528002800000000313c00000000070014e7570004e754cd210fe48d110fe4cea10fe002048e910fe002045ea004043e90040538066e04e7522da22da538066f84e75227c00000000721f429953816afa227c0000000070017203228043e9002053816af64239000000004e752039fc0b01580280fffff8000c80400000006d0a0c80500000006c026006203c4ec948000680000001c023c00000000020404e75610000f66100ffc6720f429853816afa2079000000002039fc0b0184e088e088e088e4880280000000030c8000000002661c700113c000000000203c00002b1123c000000000203c630000006018423900000000203c0000ac4423c000000000203c61680000208042a8000470012140000842a8000c6100ff2a2039fc0b01cc02800000ffff00800084000023c0fc0b01cc2039000000000480000000406402700023c00000000042b900000000700113c00000000013c000000000\""]],[16106,1,[" \"0000000042b90000000042b9000000004e75610000202039fc0b01cc02800000ffff23c0fc0b01cc6100feb44239000000004e752f027210203c0008000023c0fc0b01b4243c000100002039fc0b01b40280000800006704538266ee2039fc0b01b80280000800006704538166ca241f4e754a390000000066204a39000000006618700113c0000000002039800000e423c000000000600001204a3900000000670a423900000000610001427200\""]],[16115,10,[" \"0c0000000c800800000057c122412039800000e42400b4b900000000660652b90000000023c200000000e188e58806808000319024402839000000002a040285000003ff2005ed8847f900000000d7c0e78d49f900000000d9c572082a7c007fffff2c7cff8000007c0f204a7a0076007e0724102002e2a0da80420202c226c2242800042002e2a0d680420202c226c241e8008053876a00ffda240520096600004eb48d6f04240d6006b48e6c02240e20390000000090826a0244800c8000032000650652b90000000023c2000000002002e18802c028c02003b08d6f04200d6006b08e6c02200ee18802c028c045ea000853866a00ff745084508423c40000000071b90000000073b900000000b28067104a8067066100fd6e600a6100fe3e60084a8167046100f97642b946104d4e4ef94000d9a62039000000000c8000000040640c06800000040023c000000000048000000040723f24000282000003ff2602ed8b41f900000000d1c3780f429853846afae78a41f900000000d1c242984290528053816ad04e7571b946c8ce080c80000000c0661c71b946c8ce090c80000000556600009c487900000000703c600000820c80000000a16600008671b946c8ce0c0c80000000046600007671b946c8ce0d0c80000000106600006671b946c8ce0b73b946c8ce090c8000000001671e0c8000000002660000480c81000000016600003e487900000000700160240c8100000001660a487900000000700460120c810000000266000018487900000000700eb082630220022f004ef94001de5c2039fc0b01c04ef94001de6a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[17914,1,[" \"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006461353561356435323733386564656538633131376663326537356466656339646336623233633635343261633437303235616366646431366533353732633200336361303361363464353330663361663665376437663332313134376132323234343039396439623764623430336133646132653338396265383335333633\""]],[17918,2,[" \"0x400cceb6\","," 14"]],[17923,1,[" \"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000312e34304300000000000000000000000033636130336136346435333066336166000100000095a80000002d00000352\""]],[18600,1,[" \"302e372e39003ca03a64d530f3af6e7d7f321147a22244099d9b7db403a3da2e389be8353635000000200000003200000044000000480000004c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[24091,1,[" 1"]],[24255,1,[" 64"]],[24263,1,[" 768"]],[24271,1,[" 768"]],[24307,1,[" 289288"]],[24323,1,[" 288228"]],[24329,4,[]],[24335,1,[" 288308"]],[24343,1,[" 288246"]],[24347,1,[" 288280"]],[24351,1,[" 4611744"]],[24363,1,[" 4611872"," ],"," \"aud_hs\": ["," \".run\","," 308315"]],[24369,1,[" \"audio_copy64\": ["," \".run\","," 288902"," ],"," \"aud_sum\": ["," \".bss\","," 4603552"," ],"," \"audio_copy8\": ["," \".run\","," 288936"," ],"," \"audio_dtds_clear\": ["]],[24373,12,[]],[24387,1,[" 288988"]],[24391,1,[" 289040"]],[24399,1,[" 289254"]],[24411,1,[" 289728"]],[24415,1,[" 289408"]],[25779,1,[" 289812"]],[27391,1,[" 289350"]],[85945,1,[" 289812"]],[86222,8,[" 288104,"]],[86236,1,[" 288118,"]],[86243,1,[" 288130,"]],[86250,1,[" 288136,"," \"abs32\","," \"sec:.run\","," 308314"," ],"," ["," \".run\","," 288160,"]],[86264,8,[" 288204,"]],[86278,1,[" 288222,"]],[86285,1,[" 288238,"]],[86288,1,[" 138829472"]],[86292,1,[" 288282,"]],[86299,1,[" 288310,"]],[86306,1,[" 288334,"]],[86313,1,[" 288344,"]],[86320,1,[" 288350,"]],[86323,1,[" 308244"," ],"," ["," \".run\","," 288368,"," \"abs32\","," \"sec:.run\","," 308252"]],[86334,1,[" 288394,"]],[86337,1,[" 308314"]],[86341,1,[" 288402,"," \"abs32\","," \"sec:.run\","," 308288"," ],"," ["," \".run\","," 288410,"," \"abs32\","," \"sec:.run\","," 308288"," ],"," ["," \".run\","," 288416,"," \"abs32\","," \"sec:.run\","," 308292"," ],"," ["," \".run\","," 288424,"," \"abs32\","," \"sec:.run\","," 308292"," ],"," ["," \".run\","," 288430,"," \"abs32\","," \"sec:.run\","," 308248"," ],"," ["," \".run\","," 288436,"," \"abs32\","," \"sec:.run\","," 308308"," ],"," ["," \".run\","," 288442,"," \"abs32\","," \"sec:.run\","," 308314"," ],"," ["," \".run\","," 288518,"," \"abs32\","," \"sec:.run\","," 308256"," ],"," ["," \".run\","," 288528,"," \"abs32\","," \"sec:.run\","," 308248"," ],"," ["," \".run\","," 288534,"," \"abs32\","," \"sec:.run\","," 308260"," ],"," ["," \".run\","," 288540,"," \"abs32\","," \"sec:.run\","," 308264"," ],"," ["," \".run\","," 288558,"," \"abs32\","," \"sec:.bss\","," 138829600"," ],"," ["," \".run\","," 288570,"]],[86348,1,[" 288590,"," \"abs32\","," \"sec:.run\","," 308315"," ],"," ["," \".run\","," 288598,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 288628,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 288642,"," \"abs32\","," \"sec:.bss\","," 4603552"," ],"," ["," \".run\","," 288672,"," \"abs32\","," \"sec:.bss\","," 4603552"," ],"," ["," \".run\","," 288684,"," \"abs32\","," \"sec:.run\","," 308260"," ],"," ["," \".run\","," 288690,"," \"abs32\","," \"sec:.run\","," 308244"," ],"," ["," \".run\","," 288698,"," \"abs32\","," \"sec:.run\","," 308315"," ],"," ["," \".run\","," 288890,"," \"abs32\","," \"sec:.run\","," 308316"," ],"," ["," \".run\","," 288948,"," \"abs32\","," \"sec:.bss\","," 138829472"," ],"," ["," \".run\","," 288962,"," \"abs32\","," \"sec:.bss\","," 138829472"," ],"," ["," \".run\","," 288982,"," \"abs32\","," \"sec:.run\","," 308316"," ],"," ["," \".run\","," 289032,"," \"abs32\","," \"sec:.run\","," 308304"," ],"," ["," \".run\","," 289058,"," \"abs32\","," \"sec:.run\","," 308304"," ],"," ["," \".run\","," 289094,"," \"abs32\","," \"sec:.run\","," 308315"," ],"," ["," \".run\","," 289106,"," \"abs32\","," \"sec:.run\","," 308308"," ],"," ["," \".run\","," 289120,"," \"abs32\","," \"sec:.run\","," 308315"," ],"," ["," \".run\","," 289132,"," \"abs32\","," \"sec:.run\","," 308308"," ],"," ["," \".run\","," 289188,"," \"abs32\","," \"sec:.run\","," 308300"," ],"," ["," \".run\","," 289204,"," \"abs32\","," \"sec:.run\","," 308244"," ],"," ["," \".run\","," 289210,"," \"abs32\","," \"sec:.run\","," 308248"," ],"," ["," \".run\","," 289218,"," \"abs32\","," \"sec:.run\","," 308313"," ],"," ["," \".run\","," 289224,"]],[86355,1,[" 289236,"]],[86362,8,[" 289242,"]],[86376,1,[" 289248,"]],[86379,1,[" 308296"]],[86383,1,[" 289282,"]],[86386,1,[" 308313"]],[86390,1,[" 289352,"]],[86393,1,[" 308312"]],[86397,1,[" 289360,"]],[86400,1,[" 308318"]],[86404,1,[" 289370,"]],[86407,1,[" 308317"]],[86411,1,[" 289382,"]],[86414,1,[" 308268"]],[86418,1,[" 289392,"]],[86421,1,[" 308317"]],[86425,1,[" 289400,"]],[86428,1,[" 308317"]],[86432,1,[" 289442,"]],[86434,2,[" \"sec:.run\","," 308268"]],[86439,1,[" 289450,"," \"abs32\","," \"sec:.run\","," 308272"," ],"," ["," \".run\","," 289456,"," \"abs32\","," \"sec:.run\","," 308268"," ],"," ["," \".run\","," 289474,"," \"abs32\","," \"sec:.run\","," 308300"," ],"," ["," \".run\","," 289492,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 289502,"," \"abs32\","," \"sec:.bss\","," 4603552"," ],"," ["," \".run\","," 289596,"," \"abs32\","," \"sec:.run\","," 308276"," ],"," ["," \".run\","," 289616,"," \"abs32\","," \"sec:.run\","," 308280"," ],"," ["," \".run\","," 289622,"," \"abs32\","," \"sec:.run\","," 308276"," ],"," ["," \".run\","," 289672,"," \"abs32\","," \"sec:.run\","," 308300"," ],"," ["," \".run\","," 289678,"," \"abs32\","," \"sec:.run\","," 308312"," ],"," ["," \".run\","," 289684,"," \"abs32\","," \"sec:.run\","," 308313"," ],"," ["," \".run\","," 289730,"," \"abs32\","," \"sec:.run\","," 308300"," ],"," ["," \".run\","," 289750,"," \"abs32\","," \"sec:.run\","," 308300"," ],"," ["," \".run\","," 289776,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 289794,"," \"abs32\","," \"sec:.bss\","," 4603552"," ],"," ["," \".run\","," 289844,"]],[86446,372,[" 289938,"]],[86824,1,[" 289956,"]],[86831,1,[" 289976,"]],[93970,1,[" \"identity.c\": \"138260faced3d6ceef5324ea0610f5a4257ede6b7443beb1761825d28b24be52\","]],[94030,1,[" \"usb_base.s\": \"13d93cad9b23c165269865825cf71512650c20f3ffc7741a8b65db6a86adac9c\","]],[94034,1,[" \"usb_reserve.s\": \"6344ae08c3b9aab50bdb9f30ef45b06ead5efffc188f3fd7e50047aeaef38c35\""]]],"fills":[{"tag":"A","shared":2001,"first":0,"count":286,"site":"0x400f0ee3","offset":0},{"tag":"A","shared":2287,"first":0,"count":35,"site":"0x400f0ee3","offset":858},{"tag":"A","shared":2322,"first":0,"count":93,"site":"0x400f0ee3","offset":963},{"tag":"B","shared":1425,"first":0,"count":286,"site":"0x40103e34","offset":0},{"tag":"B","shared":1711,"first":0,"count":35,"site":"0x40103e34","offset":858},{"tag":"B","shared":1746,"first":0,"count":93,"site":"0x40103e34","offset":963},{"tag":"A","fx":4,"first":0,"count":441,"section":".run","offset":334940},{"tag":"A","fx":5,"first":0,"count":261,"section":".run","offset":334150},{"tag":"A","fx":12,"first":0,"count":282,"section":".run","offset":333288},{"tag":"A","fx":13,"first":0,"count":345,"section":".run","offset":332238},{"tag":"A","fx":16,"first":0,"count":207,"section":".run","offset":331602},{"tag":"A","fx":17,"first":0,"count":289,"section":".run","offset":330704},{"tag":"A","fx":18,"first":0,"count":329,"section":".run","offset":329680},{"tag":"A","fx":19,"first":0,"count":277,"section":".run","offset":328818},{"tag":"A","fx":20,"first":0,"count":594,"section":".run","offset":327016},{"tag":"A","fx":21,"first":0,"count":1063,"section":".run","offset":323784},{"tag":"A","fx":22,"first":0,"count":1067,"section":".run","offset":320522},{"tag":"A","fx":24,"first":2,"count":11,"section":".run","offset":319932},{"tag":"A","fx":24,"first":15,"count":165,"section":".run","offset":319971},{"tag":"A","fx":28,"first":0,"count":537,"section":".run","offset":318300},{"tag":"B","fx":4,"first":65,"count":1,"section":".run","offset":317808},{"tag":"B","fx":4,"first":73,"count":1,"section":".run","offset":317811},{"tag":"B","fx":4,"first":158,"count":1,"section":".run","offset":317814},{"tag":"B","fx":4,"first":163,"count":1,"section":".run","offset":317817},{"tag":"B","fx":4,"first":172,"count":1,"section":".run","offset":317820},{"tag":"B","fx":4,"first":182,"count":1,"section":".run","offset":317823},{"tag":"B","fx":4,"first":194,"count":1,"section":".run","offset":317826},{"tag":"B","fx":4,"first":199,"count":1,"section":".run","offset":317829},{"tag":"B","fx":4,"first":207,"count":1,"section":".run","offset":317832},{"tag":"B","fx":4,"first":215,"count":1,"section":".run","offset":317835},{"tag":"B","fx":4,"first":220,"count":1,"section":".run","offset":317838},{"tag":"B","fx":4,"first":225,"count":1,"section":".run","offset":317841},{"tag":"B","fx":4,"first":229,"count":1,"section":".run","offset":317844},{"tag":"B","fx":4,"first":248,"count":1,"section":".run","offset":317847},{"tag":"B","fx":4,"first":266,"count":1,"section":".run","offset":317850},{"tag":"B","fx":4,"first":281,"count":1,"section":".run","offset":317853},{"tag":"B","fx":4,"first":286,"count":1,"section":".run","offset":317856},{"tag":"B","fx":4,"first":290,"count":1,"section":".run","offset":317859},{"tag":"B","fx":4,"first":307,"count":1,"section":".run","offset":317862},{"tag":"B","fx":4,"first":325,"count":1,"section":".run","offset":317865},{"tag":"B","fx":4,"first":374,"count":1,"section":".run","offset":317868},{"tag":"B","fx":5,"first":25,"count":1,"section":".run","offset":317778},{"tag":"B","fx":5,"first":42,"count":1,"section":".run","offset":317781},{"tag":"B","fx":5,"first":62,"count":1,"section":".run","offset":317784},{"tag":"B","fx":5,"first":91,"count":1,"section":".run","offset":317787},{"tag":"B","fx":5,"first":179,"count":1,"section":".run","offset":317790},{"tag":"B","fx":5,"first":181,"count":1,"section":".run","offset":317793},{"tag":"B","fx":12,"first":62,"count":1,"section":".run","offset":317698},{"tag":"B","fx":12,"first":64,"count":1,"section":".run","offset":317701},{"tag":"B","fx":12,"first":68,"count":1,"section":".run","offset":317704},{"tag":"B","fx":12,"first":70,"count":1,"section":".run","offset":317707},{"tag":"B","fx":12,"first":91,"count":1,"section":".run","offset":317710},{"tag":"B","fx":12,"first":93,"count":1,"section":".run","offset":317713},{"tag":"B","fx":12,"first":97,"count":1,"section":".run","offset":317716},{"tag":"B","fx":12,"first":99,"count":1,"section":".run","offset":317719},{"tag":"B","fx":12,"first":165,"count":1,"section":".run","offset":317722},{"tag":"B","fx":12,"first":170,"count":1,"section":".run","offset":317725},{"tag":"B","fx":12,"first":172,"count":1,"section":".run","offset":317728},{"tag":"B","fx":12,"first":174,"count":1,"section":".run","offset":317731},{"tag":"B","fx":12,"first":176,"count":1,"section":".run","offset":317734},{"tag":"B","fx":12,"first":180,"count":1,"section":".run","offset":317737},{"tag":"B","fx":12,"first":182,"count":1,"section":".run","offset":317740},{"tag":"B","fx":12,"first":193,"count":1,"section":".run","offset":317743},{"tag":"B","fx":13,"first":259,"count":1,"section":".run","offset":317692},{"tag":"B","fx":16,"first":23,"count":1,"section":".run","offset":317676},{"tag":"B","fx":16,"first":27,"count":1,"section":".run","offset":317679},{"tag":"B","fx":16,"first":206,"count":1,"section":".run","offset":317682},{"tag":"B","fx":17,"first":30,"count":1,"section":".run","offset":317656},{"tag":"B","fx":17,"first":34,"count":1,"section":".run","offset":317659},{"tag":"B","fx":17,"first":118,"count":1,"section":".run","offset":317662},{"tag":"B","fx":17,"first":288,"count":1,"section":".run","offset":317665},{"tag":"B","fx":18,"first":48,"count":1,"section":".run","offset":317626},{"tag":"B","fx":18,"first":82,"count":1,"section":".run","offset":317629},{"tag":"B","fx":18,"first":87,"count":1,"section":".run","offset":317632},{"tag":"B","fx":18,"first":91,"count":1,"section":".run","offset":317635},{"tag":"B","fx":18,"first":260,"count":1,"section":".run","offset":317638},{"tag":"B","fx":18,"first":328,"count":1,"section":".run","offset":317641},{"tag":"B","fx":19,"first":109,"count":1,"section":".run","offset":317610},{"tag":"B","fx":19,"first":149,"count":1,"section":".run","offset":317613},{"tag":"B","fx":19,"first":276,"count":1,"section":".run","offset":317616},{"tag":"B","fx":20,"first":102,"count":1,"section":".run","offset":317550},{"tag":"B","fx":20,"first":107,"count":1,"section":".run","offset":317553},{"tag":"B","fx":20,"first":116,"count":1,"section":".run","offset":317556},{"tag":"B","fx":20,"first":167,"count":1,"section":".run","offset":317559},{"tag":"B","fx":20,"first":185,"count":1,"section":".run","offset":317562},{"tag":"B","fx":20,"first":239,"count":1,"section":".run","offset":317565},{"tag":"B","fx":20,"first":322,"count":1,"section":".run","offset":317568},{"tag":"B","fx":20,"first":403,"count":1,"section":".run","offset":317571},{"tag":"B","fx":20,"first":425,"count":1,"section":".run","offset":317574},{"tag":"B","fx":20,"first":517,"count":1,"section":".run","offset":317577},{"tag":"B","fx":20,"first":550,"count":1,"section":".run","offset":317580},{"tag":"B","fx":20,"first":590,"count":1,"section":".run","offset":317583},{"tag":"B","fx":21,"first":15,"count":1,"section":".run","offset":317504},{"tag":"B","fx":21,"first":374,"count":1,"section":".run","offset":317507},{"tag":"B","fx":21,"first":406,"count":1,"section":".run","offset":317510},{"tag":"B","fx":21,"first":432,"count":1,"section":".run","offset":317513},{"tag":"B","fx":21,"first":470,"count":1,"section":".run","offset":317516},{"tag":"B","fx":21,"first":478,"count":1,"section":".run","offset":317519},{"tag":"B","fx":21,"first":481,"count":1,"section":".run","offset":317522},{"tag":"B","fx":21,"first":574,"count":1,"section":".run","offset":317525},{"tag":"B","fx":21,"first":800,"count":1,"section":".run","offset":317528},{"tag":"B","fx":22,"first":202,"count":1,"section":".run","offset":317434},{"tag":"B","fx":22,"first":315,"count":1,"section":".run","offset":317437},{"tag":"B","fx":22,"first":402,"count":1,"section":".run","offset":317440},{"tag":"B","fx":22,"first":404,"count":1,"section":".run","offset":317443},{"tag":"B","fx":22,"first":417,"count":1,"section":".run","offset":317446},{"tag":"B","fx":22,"first":457,"count":1,"section":".run","offset":317449},{"tag":"B","fx":22,"first":461,"count":1,"section":".run","offset":317452},{"tag":"B","fx":22,"first":465,"count":1,"section":".run","offset":317455},{"tag":"B","fx":22,"first":492,"count":1,"section":".run","offset":317458},{"tag":"B","fx":22,"first":719,"count":1,"section":".run","offset":317461},{"tag":"B","fx":22,"first":746,"count":1,"section":".run","offset":317464},{"tag":"B","fx":22,"first":800,"count":1,"section":".run","offset":317467},{"tag":"B","fx":22,"first":842,"count":1,"section":".run","offset":317470},{"tag":"B","fx":22,"first":1051,"count":1,"section":".run","offset":317473}]},{"layout":"tracks-post","identity":"75fda57321600983e464409308aec0586d09f5d36a02819d3bd2b829f1cd5f3b","packageSha256":"15c407bdb7b4b59f5aaa3ded348f0a525654d55bd6d36ea0a2532005bca147b0","patch":[[15817,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202000200000005250101010905820200020000000525010103080b04020100200009040400000101200009240100020a2e000008240a100105000011240211030600\""]],[15821,1,[" \"0x400bf48c\","," 10"," ],"," ["," \"hex\","," \"0c24031201010011100000000904050000010220000904050101010220001024011200010100\""," ],"," ["," \"stock\","," \"0x400ba484\","]],[15826,1,[" \"06240201041807058305000302082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000090703010601\""]],[15858,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202000200000005250101010905820200020000000525010103080b04020100200009040400000101200009240100020a2e000008240a100105000011240211030600\""]],[15862,1,[" \"0x400bf48c\","," 10"," ],"," ["," \"hex\","," \"0c24031201010011100000000904050000010220000904050101010220001024011200010100\""," ],"," ["," \"stock\","," \"0x400ba484\","]],[15867,1,[" \"06240201041807058305000302082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[16061,1,[" \"0000000071b946c8ce0c7205b2806600002c71b946c8ce0a4a80670a700113c000000000600a423900000000610005c64eb94001d5244ef94001de742039fc0b01c44ef94001dd0a71b946c8ce0c7205b280660c4879000000004ef94001d81e4879400e20a14ef94001d81e4eb94001d6b86100001a70404ef94001e9226100000e2039fc0b01404ef94001e9584239000000004e75201023c04ec950280280fffff00006800000100023c04ec9502c4ef94001d4b8\""," ],"," ["," \"stock\","," \"0x40000d7e\","," 8"," ],"," ["," \"hex\","," \"4a39000000006724\""," ],"," ["," \"stock\","," \"0x4001d42c\","," 10"," ],"," ["," \"hex\","," \"67084239000000006010\""," ],"," ["," \"stock\","," \"0x4001e68e\","," 10"," ],"," ["," \"hex\","," \"670461000a4c2039fc0b01bc223c00080000c081670c223c0008000023c1fc0b01bc\""," ],"," ["," \"stock\","," \"0x40000d9a\","," 8"," ],"," ["," \"hex\","," \"4ef9000000004a3900000000670000b271b9000000000c8000000002664c740020026100009e2228000408010007670c52820c820000000465e64e75203900000000220092b9000000000481000000406f1223c10000000004800000004023c00000000042390000000070042f00610000a24a806704539766f4588f71b9000000000c80000000016608700213c0000000002039fc0b01b82239fc0b01b08081028000080000661875b900000000610000244a80670a6100003e52b9000000004e75028000000003eb88207c00000000d1c04e75760320026100ffe82228000408010007660a528253836aea70004e75284870014e75227900000000234c000842a9000c203c00080000\""]],[16070,1,[" \"71b9000000002c406100ffa62228000408010007660002384a39000000006700022e203900000000223900000000240094810c8200000400631a52b900000000220004810000040023c100000000243c000004004a3900000000661cb4b900000000640623c200000000b4b900000000630623c2000000002639000000002a39000000004a390000000066282002048000000040e3800c80000000c86f06203c000000c80c80ffffff386c06203cffffff38da80d6852e3c000003e828034c4740042a044c0750002c039c85b484640a52b9000000006000017623c60000000023c40000000023c200000000200ee188e588220ee1899081267c00000000d7c0224b26042239000000000281000003ff203c0000040090814a3900000000672c45f900000000ed89d5c1b6806208200361000120604096802a436100011645f900000000200d6100010a602a45f900000000e789d5c1b6806208200361000116601496802a436100010c45f900000000200d61000100283900000000d9b9000000002c044a39000000006704ed8e6002e78e72012081214b0008220b0281fffff0000681000010002141000c220648410081000000802141000428482a48200e53806100fdec2448204d202a000408000007676224882039fc0b01b0028000080000665674102039fc0b0140008000004000\""]],[16097,1,[" \"ffffbfff23c0fc0b01404a81660c240e52826100fd8e6100fdac200e528002800000000313c00000000070014e7570004e754cd210fe48d110fe4cea10fe002048e910fe002045ea004043e90040538066e04e7522da22da538066f84e75227c00000000721f429953816afa227c0000000070017203228043e9002053816af64239000000004e752039fc0b01580280fffff8000c80400000006d0a0c80500000006c026006203c4ec948000680000001c023c00000000020404e75610000f66100ffc6720f429853816afa2079000000002039fc0b0184e088e088e088e4880280000000030c8000000002661c700113c000000000203c00002b1123c000000000203c630000006018423900000000203c0000ac4423c000000000203c61680000208042a8000470012140000842a8000c6100ff2a2039fc0b01cc02800000ffff00800084000023c0fc0b01cc2039000000000480000000406402700023c00000000042b900000000700113c00000000013c000000000\""]],[16106,1,[" \"0000000042b90000000042b9000000004e75610000202039fc0b01cc02800000ffff23c0fc0b01cc6100feb44239000000004e752f027210203c0008000023c0fc0b01b4243c000100002039fc0b01b40280000800006704538266ee2039fc0b01b80280000800006704538166ca241f4e754a3900000000662a4a39000000006622700113c0000000002039800000e423c0000000007000610001f461000330600001644a3900000000670a423900000000610001867001610001d47200\""]],[16115,1,[" \"0c0000000c800800000057c12039800000e42400b4b900000000660652b90000000023c200000000e188e58806808000319024402839000000002a040285000003ff2005ed8847f900000000d7c0e78d49f900000000d9c543f9000000002a7c007fffff2c7cff8000007c0f4a0166000084204a7a0076007e07241042022011a4000800a1c22002e080da80420202c226c22428000442022019a4000800a1c22002e080d680420202c226c241e8008053876a00ffc62405b48d6f04240d6006b48e6c02240e23c200000000e18a02c228c2b68d6f04260d6006b68e6c02260ee18b02c328c345ea000853866a00ff8460000040204a7e07241042022011a4000800a1c2420202c226c22428000442022019a4000800a1c2420202c226c241e8008053876a00ffd245ea000853866a00ffc45084508423c400000000610001ca71b90000000073b900000000b28067104a8067066100fd20600a6100fdf060084a8167046100f92842b946104d4e4ef94000d9a62039000000000c8000000040640c06800000040023c000000000048000000040723f24000282000003ff2602ed8b41f900000000d1c3780f429853846afae78a41f900000000d1c242984290528053816ad04e752c40a98123c1000000007200a901ab8123c100000000a1c123c1000000007220a901203900000000220052817403c28223c100000000ed8841f900000000d1c0227980003c1045f90000000047f90000000049f9000000007e07755077e8000279e8000430a900023169000400023169000600044c022800ee820c82007fffff6f06243c007fffffee8b0283000000ff26343c00e483e18ae18ba6020800a1c2e082700fc8802a122c2a0004202a0008b0846f02200425440008220e4a81661c26064c003800da8326029685e883721092844c031800da816000004e7210928498802a4b4a8067122605e18be58b2a834bed0020da86538066ee4a8467102605e18be58b2a834bed0020538466f62c029c85e8862605e18be58b2a834bed0020da86538166ee260624852543000445ea000c50885089588b53876a00ff1e4e757000a900203900000000a100203900000000ab00203900000000a9004e7571b946c8ce080c80000000c0661c71b946c8ce090c800000005566000160487900000000703c6000008c0c8000000021670000900c80000000a16600014071b946c8ce0c0c80000000046600013071b946c8ce0d0c80000000106600012071b946c8ce0b73b946c8ce090c8000000001671e0c8000000002660001020c8100000001660000f8487900000000700160240c8100000001660a487900000000700460120c8100000002660000d2487900000000700eb082630220022f004ef94001de5c71b946c8ce0c0c8000000004660000ac71b946c8ce0d0c80000000106600009c71b946c8ce0b0c80000000016600008c71b946c8ce090c80000000016600007c7004b48066000074\""]],[16119,1,[" \"0x4001d13a\","," 10"," ],"," ["," \"hex\","," \"5004\""," ],"," ["," \"stock\","," \"0x4001d530\","," 10"," ],"," ["," \"hex\","," \"5008\""," ],"," ["," \"stock\","," \"0x4001ca96\","," 10"," ],"," ["," \"hex\","," \"5000207946c8ce18203c4ec95000\""," ],"," ["," \"stock\","," \"0x4001d3fa\","," 10"," ],"," ["," \"hex\","," \"7201\""," ],"," ["," \"stock\","," \"0x4001cabc\","]],[16124,1,[" \"223c000186a020394ec95004080000076712538166f0700113c0000000004ef94001de74610000144ef94001de742039fc0b01c04ef94001de6a\""," ],"," ["," \"stock\","," \"0x4001e69c\","," 8"," ],"," ["," \"hex\","," \"42390000000020394ec960000c8044ac000066084eb94001d5244e75\""," ],"," ["," \"stock\","," \"0x4001de64\","," 16"," ],"," ["," \"stock\","," \"0x40003198\","," 8"," ],"," ["," \"hex\","," \"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[17914,10,[" \"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003331323132383334633933383632353030386532663165643238616461653864383430343562393336326332633338353637373138333262353130663839303900373566646135373332313630303938336534363434303933303861656330353836643039663564333661303238313964336264326238323966316364356633620000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000312e34304300000000000000000000000037356664613537333231363030393833000100000095a80000002d00000352\""]],[18145,1,[" \"00000000000000000000000000000000000000000000000000000000000000000000000000002b11000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""," ],"," ["," \"hex\","," \"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000460c8122460d0ffa460bf218460c80f0000000000000000000000000000000000000000000000000000000000000000000000000151315141515151615171518151916141715181619131914191519161917191819191b131b141b151b161b171b181b191c131c161c191d131d161d191e131e161e191f131f1921132114211521162117211821192218231623172418251325142515251625172518251959135914591559165917591859195a135a165a195b135b165b195c135c165c195d145d155d175d185f135f145f155f165f175f185f1960136016601961136116611962136216621963136319651366136713671467156716671767186719681369136b146b156b166b176b186b196c136c166d136d166e136e166f146f156f166f176f186f1900151305070000000011001b13050700001100120021130507000023001201591305070000350014015f1305070000490012016513050700005b000b016b130507000066001207ff07ff00030006000c001800300018000c0006000307ff07ff00000000000001fc03fe07070603060306030603070703fe01fc00000000000007ff07ff06030603060306030707038e01fc00f8\""]],[18600,1,[" \"302e372e390075fda57321600983e464409308aec0586d09f5d36a02819d3bd2b829f1cd5f3b000000200000003200000044000000480000004c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[24091,1,[" 5"]],[24117,0,[" \"LAYOUT_TRACKS_POST\": ["," \"abs\","," 5"," ],"]],[24120,0,[" ],"," \"TRACKS16\": ["," \"abs\","," 4294967295"]],[24197,0,[" \"SETUPSTAT\": ["," \"abs\","," 4228579756"," ],"," \"EP0CTRL\": ["," \"abs\","," 4228579776"," ],"," \"EP0OUT_DTD\": ["," \"abs\","," 1321816064"," ],"," \"EP0_BUF\": ["," \"abs\","," 1321820160"," ],"," \"QH0_OUT_PTR\": ["," \"abs\","," 1187565080"," ],"]],[24255,1,[" 64"]],[24263,1,[" 768"]],[24271,1,[" 768"]],[24307,1,[" 289332"]],[24313,0,[" \"uac2_set_pending\": ["," \".run\","," 308313"," ],"," \"uac2_set_done\": ["," \".run\","," 290676"," ],"]],[24315,1,[" 288084"]],[24319,1,[" 308315"]],[24323,1,[" 288272"]],[24329,1,[" \"audio_pkt_build\": ["]],[24331,1,[" 288352"]],[24333,1,[" \"aud_tail\": ["," \".run\","," 308317"," ],"," \"audio_oldest\": ["," \".run\","," 288290"," ],"," \"audio_prime\": ["]],[24337,12,[]],[24351,1,[" 4611744"]],[24363,1,[" 4611872"," ],"," \"aud_hs\": ["," \".run\","," 308316"]],[24369,1,[" \"audio_copy64\": ["]],[24375,1,[" 4603552"]],[24379,1,[" 288980"]],[24383,1,[" 288990"]],[24387,1,[" 289032"]],[24391,1,[" 289084"]],[24395,1,[" 308314"]],[24399,1,[" 289298"]],[24403,1,[" 308319"]],[24407,1,[" 308318"," ],"," \"post_frame\": ["," \".run\","," 289934"," ],"," \"post_emac_leave\": ["," \".run\","," 290254"]],[24411,1,[" 289850"]],[24413,1,[" \"post_gtab\": ["]],[24415,1,[" 308688"]],[24420,0,[" ],"," \"SNAP_PTR\": ["," \"abs\","," 2147499024"," ],"," \"post_emac\": ["," \".run\","," 308324"," ],"," \"post_hidx\": ["," \".run\","," 308320"," ],"," \"post_hist\": ["," \".run\","," 308336"," ],"," \"post_state\": ["," \".run\","," 308592"," ],"," \"post_xlv\": ["," \".run\","," 309200"]],[25779,1,[" 290284"]],[27391,1,[" 289394"]],[85945,1,[" 290284"]],[86194,1,[" 288000,"," \"abs32\","," \"sec:.run\","," 308313"," ],"," ["," \".run\","," 288020,"," \"abs32\","," \"sec:.run\","," 308313"," ],"," ["," \".run\","," 288080,"]],[86201,1,[" 288086,"]],[86208,1,[" 288096,"," \"abs32\","," \"sec:.run\","," 308315"," ],"," ["," \".run\","," 288140,"," \"abs32\","," \"sec:.run\","," 308300"," ],"," ["," \".run\","," 288148,"," \"abs32\","," \"sec:.run\","," 308244"," ],"," ["," \".run\","," 288162,"," \"abs32\","," \"sec:.run\","," 308296"," ],"," ["," \".run\","," 288174,"," \"abs32\","," \"sec:.run\","," 308244"," ],"," ["," \".run\","," 288180,"," \"abs32\","," \"sec:.run\","," 308315"," ],"," ["," \".run\","," 288204,"," \"abs32\","," \"sec:.run\","," 308315"," ],"," ["," \".run\","," 288220,"," \"abs32\","," \"sec:.run\","," 308315"," ],"," ["," \".run\","," 288248,"," \"abs32\","," \"sec:.run\","," 308317"," ],"," ["," \".run\","," 288266,"," \"abs32\","," \"sec:.run\","," 308284"," ],"," ["," \".run\","," 288282,"," \"abs32\","," \"sec:.bss\","," 138829472"," ],"," ["," \".run\","," 288326,"," \"abs32\","," \"sec:.run\","," 308304"," ],"," ["," \".run\","," 288354,"," \"abs32\","," \"sec:.run\","," 308317"," ],"," ["," \".run\","," 288378,"," \"abs32\","," \"sec:.run\","," 308312"," ],"," ["," \".run\","," 288388,"," \"abs32\","," \"sec:.run\","," 308300"," ],"," ["," \".run\","," 288394,"," \"abs32\","," \"sec:.run\","," 308244"," ],"," ["," \".run\","," 288412,"," \"abs32\","," \"sec:.run\","," 308252"," ],"," ["," \".run\","," 288426,"," \"abs32\","," \"sec:.run\","," 308244"," ],"," ["," \".run\","," 288438,"," \"abs32\","," \"sec:.run\","," 308315"," ],"," ["," \".run\","," 288446,"," \"abs32\","," \"sec:.run\","," 308288"," ],"," ["," \".run\","," 288454,"," \"abs32\","," \"sec:.run\","," 308288"," ],"," ["," \".run\","," 288460,"," \"abs32\","," \"sec:.run\","," 308292"," ],"," ["," \".run\","," 288468,"," \"abs32\","," \"sec:.run\","," 308292"," ],"," ["," \".run\","," 288474,"," \"abs32\","," \"sec:.run\","," 308248"," ],"," ["," \".run\","," 288480,"," \"abs32\","," \"sec:.run\","," 308308"," ],"," ["," \".run\","," 288486,"," \"abs32\","," \"sec:.run\","," 308315"," ],"," ["," \".run\","," 288562,"," \"abs32\","," \"sec:.run\","," 308256"," ],"," ["," \".run\","," 288572,"," \"abs32\","," \"sec:.run\","," 308248"," ],"," ["," \".run\","," 288578,"," \"abs32\","," \"sec:.run\","," 308260"," ],"," ["," \".run\","," 288584,"," \"abs32\","," \"sec:.run\","," 308264"," ],"," ["," \".run\","," 288602,"," \"abs32\","," \"sec:.bss\","," 138829600"," ],"," ["," \".run\","," 288614,"," \"abs32\","," \"sec:.run\","," 308244"," ],"," ["," \".run\","," 288634,"," \"abs32\","," \"sec:.run\","," 308316"," ],"," ["," \".run\","," 288642,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 288672,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 288686,"," \"abs32\","," \"sec:.bss\","," 4603552"," ],"," ["," \".run\","," 288716,"," \"abs32\","," \"sec:.bss\","," 4603552"," ],"," ["," \".run\","," 288728,"," \"abs32\","," \"sec:.run\","," 308260"," ],"," ["," \".run\","," 288734,"," \"abs32\","," \"sec:.run\","," 308244"," ],"," ["," \".run\","," 288742,"," \"abs32\","," \"sec:.run\","," 308316"," ],"," ["," \".run\","," 288934,"," \"abs32\","," \"sec:.run\","," 308317"," ],"," ["," \".run\","," 288992,"," \"abs32\","," \"sec:.bss\","," 138829472"," ],"," ["," \".run\","," 289006,"," \"abs32\","," \"sec:.bss\","," 138829472"," ],"," ["," \".run\","," 289026,"," \"abs32\","," \"sec:.run\","," 308317"," ],"," ["," \".run\","," 289076,"," \"abs32\","," \"sec:.run\","," 308304"," ],"," ["," \".run\","," 289102,"," \"abs32\","," \"sec:.run\","," 308304"," ],"," ["," \".run\","," 289138,"," \"abs32\","," \"sec:.run\","," 308316"," ],"," ["," \".run\","," 289150,"," \"abs32\","," \"sec:.run\","," 308308"," ],"," ["," \".run\","," 289164,"," \"abs32\","," \"sec:.run\","," 308316"," ],"," ["," \".run\","," 289176,"," \"abs32\","," \"sec:.run\","," 308308"," ],"," ["," \".run\","," 289232,"," \"abs32\","," \"sec:.run\","," 308300"," ],"," ["," \".run\","," 289248,"," \"abs32\","," \"sec:.run\","," 308244"," ],"," ["," \".run\","," 289254,"," \"abs32\","," \"sec:.run\","," 308248"," ],"," ["," \".run\","," 289262,"]],[86215,8,[" 289268,"]],[86229,1,[" 289280,"]],[86232,1,[" 308288"]],[86236,1,[" 289286,"," \"abs32\","," \"sec:.run\","," 308292"," ],"," ["," \".run\","," 289292,"]],[86243,8,[" 289326,"]],[86257,50,[" 289396,"]],[86313,1,[" 289404,"]],[86316,1,[" 308319"]],[86320,330,[" 289414,"]],[86656,1,[" 289426,"]],[86659,1,[" 308268"," ],"," ["," \".run\","," 289446,"," \"abs32\","," \"sec:.run\","," 308318"]],[86666,0,[" 308318"," ],"," ["," \".run\","," 289500,"," \"abs32\","," \"sec:.run\","]],[86670,1,[" 289508,"]],[86673,8,[" 308272"]],[86691,15,[" 289532,"]],[86712,1,[" 289550,"]],[86719,1,[" 289560,"]],[86722,1,[" 4603552"]],[86726,1,[" 289568,"]],[86728,2,[" \"sec:.run\","," 308688"]],[86733,8,[" 289678,"]],[86747,15,[" 289790,"]],[86768,1,[" 289800,"]],[86775,1,[" 289806,"," \"abs32\","," \"sec:.run\","," 308314"," ],"," ["," \".run\","," 289852,"," \"abs32\","," \"sec:.run\","," 308300"," ],"," ["," \".run\","," 289872,"," \"abs32\","," \"sec:.run\","," 308300"," ],"," ["," \".run\","," 289898,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 289916,"," \"abs32\","," \"sec:.bss\","," 4603552"," ],"," ["," \".run\","," 289940,"," \"abs32\","," \"sec:.run\","," 308324"," ],"," ["," \".run\","," 289952,"," \"abs32\","," \"sec:.run\","," 308332"," ],"," ["," \".run\","," 289960,"," \"abs32\","," \"sec:.run\","," 308328"," ],"," ["," \".run\","," 289970,"," \"abs32\","," \"sec:.run\","," 308320"," ],"," ["," \".run\","," 289984,"," \"abs32\","," \"sec:.run\","," 308320"," ],"," ["," \".run\","," 289992,"," \"abs32\","," \"sec:.run\","," 308336"," ],"," ["," \".run\","," 290006,"," \"abs32\","," \"sec:.run\","," 308592"," ],"," ["," \".run\","," 290012,"," \"abs32\","," \"sec:.run\","," 308688"," ],"," ["," \".run\","," 290018,"," \"abs32\","," \"sec:.run\","," 309200"," ],"," ["," \".run\","," 290260,"," \"abs32\","," \"sec:.run\","," 308328"," ],"," ["," \".run\","," 290268,"," \"abs32\","," \"sec:.run\","," 308332"," ],"," ["," \".run\","," 290276,"," \"abs32\","," \"sec:.run\","," 308324"," ],"," ["," \".run\","," 290316,"," \"abs32\","," \"sec:.run\","," 308244"," ],"," ["," \".run\","," 290420,"," \"abs32\","," \"sec:.run\","," 308242"," ],"," ["," \".run\","," 290438,"," \"abs32\","," \"sec:.run\","," 308224"," ],"," ["," \".run\","," 290458,"," \"abs32\","," \"sec:.run\","," 308228"," ],"," ["," \".run\","," 290644,"]],[86782,1,[" 290686,"]],[86785,50,[" 308313"]],[93970,1,[" \"identity.c\": \"363b7d7fb5e3a0667b5f90c2170e5935bc681717e1b6d27ae98fa300adb9c577\","]],[94030,1,[" \"usb_base.s\": \"13d93cad9b23c165269865825cf71512650c20f3ffc7741a8b65db6a86adac9c\","]],[94033,2,[" \"usbaudio.s\": \"5bd354a7c52ab8b4cf7d7515aa47ccbbd4ec3802bb6cf2682df81b86590dbd21\","," \"usb_reserve.s\": \"b87782d0ddb1c0649654596dc614ac1df144ad3ebe149164e2324be3b29d3c0b\""]]],"fills":[{"tag":"A","shared":2001,"first":0,"count":286,"site":"0x400f0ee3","offset":0},{"tag":"A","shared":2287,"first":0,"count":35,"site":"0x400f0ee3","offset":858},{"tag":"A","shared":2322,"first":0,"count":93,"site":"0x400f0ee3","offset":963},{"tag":"B","shared":1425,"first":0,"count":286,"site":"0x40103e34","offset":0},{"tag":"B","shared":1711,"first":0,"count":35,"site":"0x40103e34","offset":858},{"tag":"B","shared":1746,"first":0,"count":93,"site":"0x40103e34","offset":963},{"tag":"A","fx":4,"first":0,"count":441,"section":".run","offset":334940},{"tag":"A","fx":5,"first":0,"count":261,"section":".run","offset":334150},{"tag":"A","fx":12,"first":0,"count":282,"section":".run","offset":333288},{"tag":"A","fx":13,"first":0,"count":345,"section":".run","offset":332238},{"tag":"A","fx":16,"first":0,"count":207,"section":".run","offset":331602},{"tag":"A","fx":17,"first":0,"count":289,"section":".run","offset":330704},{"tag":"A","fx":18,"first":0,"count":329,"section":".run","offset":329680},{"tag":"A","fx":19,"first":0,"count":277,"section":".run","offset":328818},{"tag":"A","fx":20,"first":0,"count":594,"section":".run","offset":327016},{"tag":"A","fx":21,"first":0,"count":1063,"section":".run","offset":323784},{"tag":"A","fx":22,"first":0,"count":1067,"section":".run","offset":320522},{"tag":"A","fx":24,"first":2,"count":11,"section":".run","offset":319932},{"tag":"A","fx":24,"first":15,"count":165,"section":".run","offset":319971},{"tag":"A","fx":28,"first":0,"count":537,"section":".run","offset":318300},{"tag":"B","fx":4,"first":65,"count":1,"section":".run","offset":317808},{"tag":"B","fx":4,"first":73,"count":1,"section":".run","offset":317811},{"tag":"B","fx":4,"first":158,"count":1,"section":".run","offset":317814},{"tag":"B","fx":4,"first":163,"count":1,"section":".run","offset":317817},{"tag":"B","fx":4,"first":172,"count":1,"section":".run","offset":317820},{"tag":"B","fx":4,"first":182,"count":1,"section":".run","offset":317823},{"tag":"B","fx":4,"first":194,"count":1,"section":".run","offset":317826},{"tag":"B","fx":4,"first":199,"count":1,"section":".run","offset":317829},{"tag":"B","fx":4,"first":207,"count":1,"section":".run","offset":317832},{"tag":"B","fx":4,"first":215,"count":1,"section":".run","offset":317835},{"tag":"B","fx":4,"first":220,"count":1,"section":".run","offset":317838},{"tag":"B","fx":4,"first":225,"count":1,"section":".run","offset":317841},{"tag":"B","fx":4,"first":229,"count":1,"section":".run","offset":317844},{"tag":"B","fx":4,"first":248,"count":1,"section":".run","offset":317847},{"tag":"B","fx":4,"first":266,"count":1,"section":".run","offset":317850},{"tag":"B","fx":4,"first":281,"count":1,"section":".run","offset":317853},{"tag":"B","fx":4,"first":286,"count":1,"section":".run","offset":317856},{"tag":"B","fx":4,"first":290,"count":1,"section":".run","offset":317859},{"tag":"B","fx":4,"first":307,"count":1,"section":".run","offset":317862},{"tag":"B","fx":4,"first":325,"count":1,"section":".run","offset":317865},{"tag":"B","fx":4,"first":374,"count":1,"section":".run","offset":317868},{"tag":"B","fx":5,"first":25,"count":1,"section":".run","offset":317778},{"tag":"B","fx":5,"first":42,"count":1,"section":".run","offset":317781},{"tag":"B","fx":5,"first":62,"count":1,"section":".run","offset":317784},{"tag":"B","fx":5,"first":91,"count":1,"section":".run","offset":317787},{"tag":"B","fx":5,"first":179,"count":1,"section":".run","offset":317790},{"tag":"B","fx":5,"first":181,"count":1,"section":".run","offset":317793},{"tag":"B","fx":12,"first":62,"count":1,"section":".run","offset":317698},{"tag":"B","fx":12,"first":64,"count":1,"section":".run","offset":317701},{"tag":"B","fx":12,"first":68,"count":1,"section":".run","offset":317704},{"tag":"B","fx":12,"first":70,"count":1,"section":".run","offset":317707},{"tag":"B","fx":12,"first":91,"count":1,"section":".run","offset":317710},{"tag":"B","fx":12,"first":93,"count":1,"section":".run","offset":317713},{"tag":"B","fx":12,"first":97,"count":1,"section":".run","offset":317716},{"tag":"B","fx":12,"first":99,"count":1,"section":".run","offset":317719},{"tag":"B","fx":12,"first":165,"count":1,"section":".run","offset":317722},{"tag":"B","fx":12,"first":170,"count":1,"section":".run","offset":317725},{"tag":"B","fx":12,"first":172,"count":1,"section":".run","offset":317728},{"tag":"B","fx":12,"first":174,"count":1,"section":".run","offset":317731},{"tag":"B","fx":12,"first":176,"count":1,"section":".run","offset":317734},{"tag":"B","fx":12,"first":180,"count":1,"section":".run","offset":317737},{"tag":"B","fx":12,"first":182,"count":1,"section":".run","offset":317740},{"tag":"B","fx":12,"first":193,"count":1,"section":".run","offset":317743},{"tag":"B","fx":13,"first":259,"count":1,"section":".run","offset":317692},{"tag":"B","fx":16,"first":23,"count":1,"section":".run","offset":317676},{"tag":"B","fx":16,"first":27,"count":1,"section":".run","offset":317679},{"tag":"B","fx":16,"first":206,"count":1,"section":".run","offset":317682},{"tag":"B","fx":17,"first":30,"count":1,"section":".run","offset":317656},{"tag":"B","fx":17,"first":34,"count":1,"section":".run","offset":317659},{"tag":"B","fx":17,"first":118,"count":1,"section":".run","offset":317662},{"tag":"B","fx":17,"first":288,"count":1,"section":".run","offset":317665},{"tag":"B","fx":18,"first":48,"count":1,"section":".run","offset":317626},{"tag":"B","fx":18,"first":82,"count":1,"section":".run","offset":317629},{"tag":"B","fx":18,"first":87,"count":1,"section":".run","offset":317632},{"tag":"B","fx":18,"first":91,"count":1,"section":".run","offset":317635},{"tag":"B","fx":18,"first":260,"count":1,"section":".run","offset":317638},{"tag":"B","fx":18,"first":328,"count":1,"section":".run","offset":317641},{"tag":"B","fx":19,"first":109,"count":1,"section":".run","offset":317610},{"tag":"B","fx":19,"first":149,"count":1,"section":".run","offset":317613},{"tag":"B","fx":19,"first":276,"count":1,"section":".run","offset":317616},{"tag":"B","fx":20,"first":102,"count":1,"section":".run","offset":317550},{"tag":"B","fx":20,"first":107,"count":1,"section":".run","offset":317553},{"tag":"B","fx":20,"first":116,"count":1,"section":".run","offset":317556},{"tag":"B","fx":20,"first":167,"count":1,"section":".run","offset":317559},{"tag":"B","fx":20,"first":185,"count":1,"section":".run","offset":317562},{"tag":"B","fx":20,"first":239,"count":1,"section":".run","offset":317565},{"tag":"B","fx":20,"first":322,"count":1,"section":".run","offset":317568},{"tag":"B","fx":20,"first":403,"count":1,"section":".run","offset":317571},{"tag":"B","fx":20,"first":425,"count":1,"section":".run","offset":317574},{"tag":"B","fx":20,"first":517,"count":1,"section":".run","offset":317577},{"tag":"B","fx":20,"first":550,"count":1,"section":".run","offset":317580},{"tag":"B","fx":20,"first":590,"count":1,"section":".run","offset":317583},{"tag":"B","fx":21,"first":15,"count":1,"section":".run","offset":317504},{"tag":"B","fx":21,"first":374,"count":1,"section":".run","offset":317507},{"tag":"B","fx":21,"first":406,"count":1,"section":".run","offset":317510},{"tag":"B","fx":21,"first":432,"count":1,"section":".run","offset":317513},{"tag":"B","fx":21,"first":470,"count":1,"section":".run","offset":317516},{"tag":"B","fx":21,"first":478,"count":1,"section":".run","offset":317519},{"tag":"B","fx":21,"first":481,"count":1,"section":".run","offset":317522},{"tag":"B","fx":21,"first":574,"count":1,"section":".run","offset":317525},{"tag":"B","fx":21,"first":800,"count":1,"section":".run","offset":317528},{"tag":"B","fx":22,"first":202,"count":1,"section":".run","offset":317434},{"tag":"B","fx":22,"first":315,"count":1,"section":".run","offset":317437},{"tag":"B","fx":22,"first":402,"count":1,"section":".run","offset":317440},{"tag":"B","fx":22,"first":404,"count":1,"section":".run","offset":317443},{"tag":"B","fx":22,"first":417,"count":1,"section":".run","offset":317446},{"tag":"B","fx":22,"first":457,"count":1,"section":".run","offset":317449},{"tag":"B","fx":22,"first":461,"count":1,"section":".run","offset":317452},{"tag":"B","fx":22,"first":465,"count":1,"section":".run","offset":317455},{"tag":"B","fx":22,"first":492,"count":1,"section":".run","offset":317458},{"tag":"B","fx":22,"first":719,"count":1,"section":".run","offset":317461},{"tag":"B","fx":22,"first":746,"count":1,"section":".run","offset":317464},{"tag":"B","fx":22,"first":800,"count":1,"section":".run","offset":317467},{"tag":"B","fx":22,"first":842,"count":1,"section":".run","offset":317470},{"tag":"B","fx":22,"first":1051,"count":1,"section":".run","offset":317473},{"curve":"usb-post-xlv","tag":"A","first":0,"count":256,"section":".run","offset":309200}]},{"layout":"main-cue","identity":"435939cb714eb6f464033ac3b5c3e2ec071d911019b3d4dbac5f6d6fbb64adf0","packageSha256":"9afd890376301234951f46f92ea20ad6d1d8fb06415fab784eea0294f3b87626","patch":[[15817,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202000200000005250101010905820200020000000525010103080b04020100200009040400000101200009240100020a2e000008240a100105000011240211030600100400000000000000000c24031201010011100000000904050000010220000904050101010220001024011200010100\""]],[15821,1,[" \"0x400c6780\","]],[15826,1,[" \"06240201041807058305c00002082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000090703010601\""]],[15858,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202000200000005250101010905820200020000000525010103080b04020100200009040400000101200009240100020a2e000008240a100105000011240211030600100400000000000000000c24031201010011100000000904050000010220000904050101010220001024011200010100\""]],[15862,1,[" \"0x400c6780\","]],[15867,1,[" \"06240201041807058305c00002082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[16061,1,[" \"0000000071b946c8ce0c7205b2806600002c71b946c8ce0a4a80670a700113c000000000600a423900000000610005884eb94001d5244ef94001de742039fc0b01c44ef94001dd0a71b946c8ce0c7205b280660c4879000000004ef94001d81e4879400e20a14ef94001d81e4eb94001d6b86100001a70404ef94001e9226100000e2039fc0b01404ef94001e9584239000000004e75201023c04ec950280280fffff00006800000100023c04ec9502c4ef94001d4b84feffff848d700032039fc0b01bc223c00080000c081670c223c0008000023c1fc0b01bc4cd700034fef00084ef9000000004a3900000000670000b271b9000000000c8000000002664c740020026100009e2228000408010007670c52820c820000000465e64e75203900000000220092b9000000000481000000406f1223c10000000004800000004023c00000000042390000000070042f00610000a24a806704539766f4588f71b9000000000c80000000016608700213c0000000002039fc0b01b82239fc0b01b08081028000080000661875b900000000610000244a80670a6100003e52b9000000004e75028000000003eb88207c00000000d1c04e75760320026100ffe82228000408010007660a528253836aea70004e75284870014e75227900000000234c000842a9000c203c00080000\""]],[16070,1,[" \"71b9000000002c406100ffa62228000408010007660002324a390000000067000228203900000000223900000000240094810c8200000400631a52b900000000220004810000040023c100000000243c000004004a3900000000661cb4b900000000640623c200000000b4b900000000630623c2000000002639000000002a39000000004a390000000066282002048000000040e3800c80000000c86f06203c000000c80c80ffffff386c06203cffffff38da80d6852e3c000003e828034c4740042a044c0750002c039c85b484640a52b9000000006000017023c60000000023c40000000023c200000000200ee188e388267c00000000d7c0224b26042239000000000281000003ff203c0000040090814a3900000000672c45f900000000e989d5c1b6806208200361000120604096802a436100011645f900000000200d6100010a602a45f900000000e789d5c1b680620820036100010a601496802a436100010045f900000000200d610000f4283900000000d9b9000000002c044a39000000006704e98e6002e78e72012081214b0008220b0281fffff0000681000010002141000c220648410081000000802141000428482a48200e53806100fdf22448204d202a000408000007676224882039fc0b01b0028000080000665674102039fc0b0140008000004000\""]],[16097,1,[" \"ffffbfff23c0fc0b01404a81660c240e52826100fd946100fdb2200e528002800000000313c00000000070014e7570004e754cd2001e48d1001e45ea001043e90010538066ec4e7522da22da538066f84e75227c00000000721f429953816afa227c0000000070017203228043e9002053816af64239000000004e752039fc0b01580280fffff8000c80400000006d0a0c80500000006c026006203c4ec948000680000001c023c00000000020404e75610000f66100ffc6720f429853816afa2079000000002039fc0b0184e088e088e088e4880280000000030c8000000002661c700113c000000000203c00002b1123c000000000203c60c000006018423900000000203c0000ac4423c000000000203c61680000208042a8000470012140000842a8000c6100ff2a2039fc0b01cc02800000ffff00800084000023c0fc0b01cc2039000000000480000000406402700023c00000000042b900000000700113c00000000013c000000000\""]],[16106,1,[" \"0000000042b90000000042b9000000004e75610000202039fc0b01cc02800000ffff23c0fc0b01cc6100feb44239000000004e752f027210203c0008000023c0fc0b01b4243c000100002039fc0b01b40280000800006704538266ee2039fc0b01b80280000800006704538166ca241f4e754a390000000066204a39000000006618700113c0000000002039800000e423c000000000600000cc4a3900000000670a423900000000610000ee7200\""]],[16115,10,[" \"0c0000000c800800000057c122412839000000002a040285000003ffe98d47f900000000d7c52a040285000003ffe78d49f900000000d9c57c0f7e0f9e86e78f41f980005e60d1c72610420302c326c324280004420202c226c220096600000628c328c27e0f9e86de844a398000003467060687000000200287000003ffe98f45f900000000d5c724280080420202c224c224280084420202c22482508b53866a00ff985084508423c40000000071b90000000073b900000000b28067104a8067066100fdc2600a6100fe9260084a8167046100f9dc42b946104d4e4ef94000d9a62039000000000c8000000040640c06800000040023c000000000048000000040725f24000282000003ff2602e98b41f900000000d1c37803429853846afae78a41f900000000d1c242984290528053816ad04e7571b946c8ce080c80000000c0661c71b946c8ce090c80000000556600009c487900000000703c600000820c80000000a16600008671b946c8ce0c0c80000000046600007671b946c8ce0d0c80000000106600006671b946c8ce0b73b946c8ce090c8000000001671e0c8000000002660000480c81000000016600003e487900000000700160240c8100000001660a487900000000700460120c810000000266000018487900000000700eb082630220022f004ef94001de5c2039fc0b01c04ef94001de6a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[17914,1,[" \"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006461353561356435323733386564656538633131376663326537356466656339646336623233633635343261633437303235616366646431366533353732633200343335393339636237313465623666343634303333616333623563336532656330373164393131303139623364346462616335663664366662623634616466\""]],[17918,2,[" \"0x400c638e\","," 24"]],[17923,1,[" \"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000312e34304300000000000000000000000034333539333963623731346562366634000100000095a80000002d00000352\""]],[18600,1,[" \"302e372e3900435939cb714eb6f464033ac3b5c3e2ec071d911019b3d4dbac5f6d6fbb64adf0000000200000003200000044000000480000004c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[24091,1,[" 3"]],[24255,1,[" 16"]],[24263,1,[" 192"]],[24271,1,[" 512"]],[24307,1,[" 289270"]],[24323,1,[" 288228"]],[24329,4,[]],[24335,1,[" 288308"]],[24343,1,[" 288246"]],[24347,1,[" 288280"]],[24351,1,[" 4562592"]],[24363,1,[" 4562720"," ],"," \"aud_hs\": ["," \".run\","," 308315"]],[24369,1,[" \"audio_copy16\": ["]],[24371,1,[" 288896"]],[24375,1,[" 4554400"]],[24379,1,[" 288918"]],[24383,1,[" 288928"]],[24387,1,[" 288970"]],[24391,1,[" 289022"]],[24399,1,[" 289236"]],[24411,9,[" 289626"]],[24432,0,[" ],"," \"usbaudio_lastsamp\": ["," \".run\","," 308276"]],[25779,1,[" 289710"]],[27391,1,[" 289332"]],[85945,1,[" 289710"]],[86222,8,[" 288104,"]],[86236,1,[" 288118,"]],[86243,1,[" 288130,"]],[86250,1,[" 288136,"," \"abs32\","," \"sec:.run\","," 308314"," ],"," ["," \".run\","," 288160,"]],[86264,8,[" 288204,"]],[86278,1,[" 288222,"]],[86285,1,[" 288238,"]],[86288,1,[" 138780320"]],[86292,1,[" 288282,"]],[86299,1,[" 288310,"]],[86306,1,[" 288334,"]],[86313,1,[" 288344,"]],[86320,1,[" 288350,"]],[86323,1,[" 308244"," ],"," ["," \".run\","," 288368,"," \"abs32\","," \"sec:.run\","," 308252"]],[86334,1,[" 288394,"]],[86337,1,[" 308314"]],[86341,1,[" 288402,"," \"abs32\","," \"sec:.run\","," 308288"," ],"," ["," \".run\","," 288410,"," \"abs32\","," \"sec:.run\","," 308288"," ],"," ["," \".run\","," 288416,"," \"abs32\","," \"sec:.run\","," 308292"," ],"," ["," \".run\","," 288424,"," \"abs32\","," \"sec:.run\","," 308292"," ],"," ["," \".run\","," 288430,"," \"abs32\","," \"sec:.run\","," 308248"," ],"," ["," \".run\","," 288436,"," \"abs32\","," \"sec:.run\","," 308308"," ],"," ["," \".run\","," 288442,"," \"abs32\","," \"sec:.run\","," 308314"," ],"," ["," \".run\","," 288518,"," \"abs32\","," \"sec:.run\","," 308256"," ],"," ["," \".run\","," 288528,"," \"abs32\","," \"sec:.run\","," 308248"," ],"," ["," \".run\","," 288534,"," \"abs32\","," \"sec:.run\","," 308260"," ],"," ["," \".run\","," 288540,"," \"abs32\","," \"sec:.run\","," 308264"," ],"," ["," \".run\","," 288552,"," \"abs32\","," \"sec:.bss\","," 138780448"," ],"," ["," \".run\","," 288564,"]],[86348,1,[" 288584,"," \"abs32\","," \"sec:.run\","," 308315"," ],"," ["," \".run\","," 288592,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 288622,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 288636,"," \"abs32\","," \"sec:.bss\","," 4554400"," ],"," ["," \".run\","," 288666,"," \"abs32\","," \"sec:.bss\","," 4554400"," ],"," ["," \".run\","," 288678,"," \"abs32\","," \"sec:.run\","," 308260"," ],"," ["," \".run\","," 288684,"," \"abs32\","," \"sec:.run\","," 308244"," ],"," ["," \".run\","," 288692,"," \"abs32\","," \"sec:.run\","," 308315"," ],"," ["," \".run\","," 288884,"," \"abs32\","," \"sec:.run\","," 308316"," ],"," ["," \".run\","," 288930,"," \"abs32\","," \"sec:.bss\","," 138780320"," ],"," ["," \".run\","," 288944,"," \"abs32\","," \"sec:.bss\","," 138780320"," ],"," ["," \".run\","," 288964,"," \"abs32\","," \"sec:.run\","," 308316"," ],"," ["," \".run\","," 289014,"," \"abs32\","," \"sec:.run\","," 308304"," ],"," ["," \".run\","," 289040,"," \"abs32\","," \"sec:.run\","," 308304"," ],"," ["," \".run\","," 289076,"," \"abs32\","," \"sec:.run\","," 308315"," ],"," ["," \".run\","," 289088,"," \"abs32\","," \"sec:.run\","," 308308"," ],"," ["," \".run\","," 289102,"," \"abs32\","," \"sec:.run\","," 308315"," ],"," ["," \".run\","," 289114,"," \"abs32\","," \"sec:.run\","," 308308"," ],"," ["," \".run\","," 289170,"," \"abs32\","," \"sec:.run\","," 308300"," ],"," ["," \".run\","," 289186,"," \"abs32\","," \"sec:.run\","," 308244"," ],"," ["," \".run\","," 289192,"," \"abs32\","," \"sec:.run\","," 308248"," ],"," ["," \".run\","," 289200,"," \"abs32\","," \"sec:.run\","," 308313"," ],"," ["," \".run\","," 289206,"]],[86355,1,[" 289218,"]],[86362,8,[" 289224,"]],[86376,1,[" 289230,"]],[86379,1,[" 308296"]],[86383,1,[" 289264,"]],[86386,1,[" 308313"]],[86390,1,[" 289334,"]],[86393,1,[" 308312"]],[86397,1,[" 289342,"]],[86400,1,[" 308318"]],[86404,1,[" 289352,"]],[86407,1,[" 308317"]],[86411,1,[" 289364,"]],[86414,1,[" 308268"]],[86418,1,[" 289374,"]],[86421,1,[" 308317"]],[86425,1,[" 289382,"]],[86428,1,[" 308317"]],[86432,1,[" 289416,"]],[86434,2,[" \"sec:.run\","," 308300"]],[86439,1,[" 289432,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 289450,"," \"abs32\","," \"sec:.bss\","," 4554400"," ],"," ["," \".run\","," 289530,"," \"abs32\","," \"sec:.bss\","," 4538024"," ],"," ["," \".run\","," 289570,"," \"abs32\","," \"sec:.run\","," 308300"," ],"," ["," \".run\","," 289576,"," \"abs32\","," \"sec:.run\","," 308312"," ],"," ["," \".run\","," 289582,"," \"abs32\","," \"sec:.run\","," 308313"," ],"," ["," \".run\","," 289628,"," \"abs32\","," \"sec:.run\","," 308300"," ],"," ["," \".run\","," 289648,"," \"abs32\","," \"sec:.run\","," 308300"," ],"," ["," \".run\","," 289674,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 289692,"," \"abs32\","," \"sec:.bss\","," 4554400"," ],"," ["," \".run\","," 289742,"]],[86446,372,[" 289836,"]],[86824,1,[" 289854,"]],[86831,1,[" 289874,"]],[93970,1,[" \"identity.c\": \"392b87ae6ff5743e0bac4fa4c3349aab795070870db0879e710e6e362a6c7d2b\","]],[94030,1,[" \"usb_base.s\": \"5e34aa172c0959da20ab7a9663b8495a060e389b5198ed532c4da0e56ee1b262\","]],[94034,1,[" \"usb_reserve.s\": \"15d1f3ad805d3907c7dd3bfc1c4d53e2a02c76204604575c9219914e4ee19a55\""]]],"fills":[{"tag":"A","shared":2001,"first":0,"count":286,"site":"0x400f0ee3","offset":0},{"tag":"A","shared":2287,"first":0,"count":35,"site":"0x400f0ee3","offset":858},{"tag":"A","shared":2322,"first":0,"count":93,"site":"0x400f0ee3","offset":963},{"tag":"B","shared":1425,"first":0,"count":286,"site":"0x40103e34","offset":0},{"tag":"B","shared":1711,"first":0,"count":35,"site":"0x40103e34","offset":858},{"tag":"B","shared":1746,"first":0,"count":93,"site":"0x40103e34","offset":963},{"tag":"A","fx":4,"first":0,"count":441,"section":".run","offset":334940},{"tag":"A","fx":5,"first":0,"count":261,"section":".run","offset":334150},{"tag":"A","fx":12,"first":0,"count":282,"section":".run","offset":333288},{"tag":"A","fx":13,"first":0,"count":345,"section":".run","offset":332238},{"tag":"A","fx":16,"first":0,"count":207,"section":".run","offset":331602},{"tag":"A","fx":17,"first":0,"count":289,"section":".run","offset":330704},{"tag":"A","fx":18,"first":0,"count":329,"section":".run","offset":329680},{"tag":"A","fx":19,"first":0,"count":277,"section":".run","offset":328818},{"tag":"A","fx":20,"first":0,"count":594,"section":".run","offset":327016},{"tag":"A","fx":21,"first":0,"count":1063,"section":".run","offset":323784},{"tag":"A","fx":22,"first":0,"count":1067,"section":".run","offset":320522},{"tag":"A","fx":24,"first":2,"count":11,"section":".run","offset":319932},{"tag":"A","fx":24,"first":15,"count":165,"section":".run","offset":319971},{"tag":"A","fx":28,"first":0,"count":537,"section":".run","offset":318300},{"tag":"B","fx":4,"first":65,"count":1,"section":".run","offset":317808},{"tag":"B","fx":4,"first":73,"count":1,"section":".run","offset":317811},{"tag":"B","fx":4,"first":158,"count":1,"section":".run","offset":317814},{"tag":"B","fx":4,"first":163,"count":1,"section":".run","offset":317817},{"tag":"B","fx":4,"first":172,"count":1,"section":".run","offset":317820},{"tag":"B","fx":4,"first":182,"count":1,"section":".run","offset":317823},{"tag":"B","fx":4,"first":194,"count":1,"section":".run","offset":317826},{"tag":"B","fx":4,"first":199,"count":1,"section":".run","offset":317829},{"tag":"B","fx":4,"first":207,"count":1,"section":".run","offset":317832},{"tag":"B","fx":4,"first":215,"count":1,"section":".run","offset":317835},{"tag":"B","fx":4,"first":220,"count":1,"section":".run","offset":317838},{"tag":"B","fx":4,"first":225,"count":1,"section":".run","offset":317841},{"tag":"B","fx":4,"first":229,"count":1,"section":".run","offset":317844},{"tag":"B","fx":4,"first":248,"count":1,"section":".run","offset":317847},{"tag":"B","fx":4,"first":266,"count":1,"section":".run","offset":317850},{"tag":"B","fx":4,"first":281,"count":1,"section":".run","offset":317853},{"tag":"B","fx":4,"first":286,"count":1,"section":".run","offset":317856},{"tag":"B","fx":4,"first":290,"count":1,"section":".run","offset":317859},{"tag":"B","fx":4,"first":307,"count":1,"section":".run","offset":317862},{"tag":"B","fx":4,"first":325,"count":1,"section":".run","offset":317865},{"tag":"B","fx":4,"first":374,"count":1,"section":".run","offset":317868},{"tag":"B","fx":5,"first":25,"count":1,"section":".run","offset":317778},{"tag":"B","fx":5,"first":42,"count":1,"section":".run","offset":317781},{"tag":"B","fx":5,"first":62,"count":1,"section":".run","offset":317784},{"tag":"B","fx":5,"first":91,"count":1,"section":".run","offset":317787},{"tag":"B","fx":5,"first":179,"count":1,"section":".run","offset":317790},{"tag":"B","fx":5,"first":181,"count":1,"section":".run","offset":317793},{"tag":"B","fx":12,"first":62,"count":1,"section":".run","offset":317698},{"tag":"B","fx":12,"first":64,"count":1,"section":".run","offset":317701},{"tag":"B","fx":12,"first":68,"count":1,"section":".run","offset":317704},{"tag":"B","fx":12,"first":70,"count":1,"section":".run","offset":317707},{"tag":"B","fx":12,"first":91,"count":1,"section":".run","offset":317710},{"tag":"B","fx":12,"first":93,"count":1,"section":".run","offset":317713},{"tag":"B","fx":12,"first":97,"count":1,"section":".run","offset":317716},{"tag":"B","fx":12,"first":99,"count":1,"section":".run","offset":317719},{"tag":"B","fx":12,"first":165,"count":1,"section":".run","offset":317722},{"tag":"B","fx":12,"first":170,"count":1,"section":".run","offset":317725},{"tag":"B","fx":12,"first":172,"count":1,"section":".run","offset":317728},{"tag":"B","fx":12,"first":174,"count":1,"section":".run","offset":317731},{"tag":"B","fx":12,"first":176,"count":1,"section":".run","offset":317734},{"tag":"B","fx":12,"first":180,"count":1,"section":".run","offset":317737},{"tag":"B","fx":12,"first":182,"count":1,"section":".run","offset":317740},{"tag":"B","fx":12,"first":193,"count":1,"section":".run","offset":317743},{"tag":"B","fx":13,"first":259,"count":1,"section":".run","offset":317692},{"tag":"B","fx":16,"first":23,"count":1,"section":".run","offset":317676},{"tag":"B","fx":16,"first":27,"count":1,"section":".run","offset":317679},{"tag":"B","fx":16,"first":206,"count":1,"section":".run","offset":317682},{"tag":"B","fx":17,"first":30,"count":1,"section":".run","offset":317656},{"tag":"B","fx":17,"first":34,"count":1,"section":".run","offset":317659},{"tag":"B","fx":17,"first":118,"count":1,"section":".run","offset":317662},{"tag":"B","fx":17,"first":288,"count":1,"section":".run","offset":317665},{"tag":"B","fx":18,"first":48,"count":1,"section":".run","offset":317626},{"tag":"B","fx":18,"first":82,"count":1,"section":".run","offset":317629},{"tag":"B","fx":18,"first":87,"count":1,"section":".run","offset":317632},{"tag":"B","fx":18,"first":91,"count":1,"section":".run","offset":317635},{"tag":"B","fx":18,"first":260,"count":1,"section":".run","offset":317638},{"tag":"B","fx":18,"first":328,"count":1,"section":".run","offset":317641},{"tag":"B","fx":19,"first":109,"count":1,"section":".run","offset":317610},{"tag":"B","fx":19,"first":149,"count":1,"section":".run","offset":317613},{"tag":"B","fx":19,"first":276,"count":1,"section":".run","offset":317616},{"tag":"B","fx":20,"first":102,"count":1,"section":".run","offset":317550},{"tag":"B","fx":20,"first":107,"count":1,"section":".run","offset":317553},{"tag":"B","fx":20,"first":116,"count":1,"section":".run","offset":317556},{"tag":"B","fx":20,"first":167,"count":1,"section":".run","offset":317559},{"tag":"B","fx":20,"first":185,"count":1,"section":".run","offset":317562},{"tag":"B","fx":20,"first":239,"count":1,"section":".run","offset":317565},{"tag":"B","fx":20,"first":322,"count":1,"section":".run","offset":317568},{"tag":"B","fx":20,"first":403,"count":1,"section":".run","offset":317571},{"tag":"B","fx":20,"first":425,"count":1,"section":".run","offset":317574},{"tag":"B","fx":20,"first":517,"count":1,"section":".run","offset":317577},{"tag":"B","fx":20,"first":550,"count":1,"section":".run","offset":317580},{"tag":"B","fx":20,"first":590,"count":1,"section":".run","offset":317583},{"tag":"B","fx":21,"first":15,"count":1,"section":".run","offset":317504},{"tag":"B","fx":21,"first":374,"count":1,"section":".run","offset":317507},{"tag":"B","fx":21,"first":406,"count":1,"section":".run","offset":317510},{"tag":"B","fx":21,"first":432,"count":1,"section":".run","offset":317513},{"tag":"B","fx":21,"first":470,"count":1,"section":".run","offset":317516},{"tag":"B","fx":21,"first":478,"count":1,"section":".run","offset":317519},{"tag":"B","fx":21,"first":481,"count":1,"section":".run","offset":317522},{"tag":"B","fx":21,"first":574,"count":1,"section":".run","offset":317525},{"tag":"B","fx":21,"first":800,"count":1,"section":".run","offset":317528},{"tag":"B","fx":22,"first":202,"count":1,"section":".run","offset":317434},{"tag":"B","fx":22,"first":315,"count":1,"section":".run","offset":317437},{"tag":"B","fx":22,"first":402,"count":1,"section":".run","offset":317440},{"tag":"B","fx":22,"first":404,"count":1,"section":".run","offset":317443},{"tag":"B","fx":22,"first":417,"count":1,"section":".run","offset":317446},{"tag":"B","fx":22,"first":457,"count":1,"section":".run","offset":317449},{"tag":"B","fx":22,"first":461,"count":1,"section":".run","offset":317452},{"tag":"B","fx":22,"first":465,"count":1,"section":".run","offset":317455},{"tag":"B","fx":22,"first":492,"count":1,"section":".run","offset":317458},{"tag":"B","fx":22,"first":719,"count":1,"section":".run","offset":317461},{"tag":"B","fx":22,"first":746,"count":1,"section":".run","offset":317464},{"tag":"B","fx":22,"first":800,"count":1,"section":".run","offset":317467},{"tag":"B","fx":22,"first":842,"count":1,"section":".run","offset":317470},{"tag":"B","fx":22,"first":1051,"count":1,"section":".run","offset":317473}]},{"layout":"main","identity":"567509736687c7b78cd8b2b645f6476cbed15854bb854d70084aa2383233c878","packageSha256":"ec89746aa8aa1378d2f24451e578953bd17d9ff6d1d2d1924838037b65f44920","patch":[[15794,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202400000000005250101010905820240000000000525010103080b04020100200009040400000101200009240100020a2e000008240a1001050000112402110306001002\""]],[15798,1,[" \"0x400cb87e\","]],[15803,1,[" \"0c24031201010011100000000904050000010220000904050101010220001024011200010100000002030000000006240201041807058305680101082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000090203010601\""]],[15817,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202000200000005250101010905820200020000000525010103080b04020100200009040400000101200009240100020a2e000008240a1001050000112402110306001002\""]],[15821,1,[" \"0x400cb87e\","]],[15826,1,[" \"0c24031201010011100000000904050000010220000904050101010220001024011200010100000002030000000006240201041807058305600002082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000090703010601\""]],[15835,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202400000000005250101010905820240000000000525010103080b04020100200009040400000101200009240100020a2e000008240a1001050000112402110306001002\""]],[15839,1,[" \"0x400cb87e\","]],[15844,1,[" \"0c24031201010011100000000904050000010220000904050101010220001024011200010100000002030000000006240201041807058305680101082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000090703010601\""]],[15858,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202000200000005250101010905820200020000000525010103080b04020100200009040400000101200009240100020a2e000008240a1001050000112402110306001002\""]],[15862,1,[" \"0x400cb87e\","]],[15867,1,[" \"0c24031201010011100000000904050000010220000904050101010220001024011200010100000002030000000006240201041807058305600002082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[16061,1,[" \"0000000071b946c8ce0c7205b2806600002c71b946c8ce0a4a80670a700113c000000000600a423900000000610005724eb94001d5244ef94001de742039fc0b01c44ef94001dd0a71b946c8ce0c7205b280660c4879000000004ef94001d81e4879400e20a14ef94001d81e4eb94001d6b86100001a70404ef94001e9226100000e2039fc0b01404ef94001e9584239000000004e75201023c04ec950280280fffff00006800000100023c04ec9502c4ef94001d4b84feffff848d700032039fc0b01bc223c00080000c081670c223c0008000023c1fc0b01bc4cd700034fef00084ef9000000004a3900000000670000b271b9000000000c8000000002664c740020026100009e2228000408010007670c52820c820000000465e64e75203900000000220092b9000000000481000000406f1223c10000000004800000004023c00000000042390000000070042f00610000a24a806704539766f4588f71b9000000000c80000000016608700213c0000000002039fc0b01b82239fc0b01b08081028000080000661875b900000000610000244a80670a6100003e52b9000000004e75028000000003eb88207c00000000d1c04e75760320026100ffe82228000408010007660a528253836aea70004e75284870014e75227900000000234c000842a9000c203c00080000\""]],[16070,1,[" \"71b9000000002c406100ffa62228000408010007660002324a390000000067000228203900000000223900000000240094810c8200000400631a52b900000000220004810000040023c100000000243c000004004a3900000000661cb4b900000000640623c200000000b4b900000000630623c2000000002639000000002a39000000004a390000000066282002048000000040e3800c80000000c86f06203c000000c80c80ffffff386c06203cffffff38da80d6852e3c000003e828034c4740042a044c0750002c039c85b484640a52b9000000006000017023c60000000023c40000000023c200000000200ee188e388267c00000000d7c0224b26042239000000000281000003ff203c0000040090814a3900000000672c45f900000000e789d5c1b6806208200361000120604096802a436100011645f900000000200d6100010a602a45f900000000e789d5c1b68062082003610000f4601496802a43610000ea45f900000000200d610000de283900000000d9b9000000002c044a39000000006704e78e6002e78e72012081214b0008220b0281fffff0000681000010002141000c220648410081000000802141000428482a48200e53806100fdf22448204d202a000408000007676224882039fc0b01b0028000080000665674102039fc0b0140008000004000\""]],[16097,1,[" \"ffffbfff23c0fc0b01404a81660c240e52826100fd946100fdb2200e528002800000000313c00000000070014e7570004e7522da22da538066f84e75227c00000000721f429953816afa227c0000000070017203228043e9002053816af64239000000004e752039fc0b01580280fffff8000c80400000006d0a0c80500000006c026006203c4ec948000680000001c023c00000000020404e75610000f66100ffc6720f429853816afa2079000000002039fc0b0184e088e088e088e4880280000000030c8000000002661c700113c000000000203c00002b1123c000000000203c606000006018423900000000203c0000ac4423c000000000203c61680000208042a8000470012140000842a8000c6100ff2a2039fc0b01cc02800000ffff00800084000023c0fc0b01cc2039000000000480000000406402700023c00000000042b900000000700113c00000000013c000000000\""]],[16106,19,[" \"0000000042b90000000042b9000000004e75610000202039fc0b01cc02800000ffff23c0fc0b01cc6100feb44239000000004e752f027210203c0008000023c0fc0b01b4243c000100002039fc0b01b40280000800006704538266ee2039fc0b01b80280000800006704538166ca241f4e754a390000000066204a39000000006618700113c0000000002039800000e423c000000000600000524a3900000000670a423900000000610000742839000000002a040285000003ffe78d47f900000000d7c545f980005e607c0f241a420202c226c2241a420202c226c253866aec5084508423c40000000071b90000000073b900000000b28067104a8067066100fe3c600a6100ff0c60084a8167046100fa6c42b946104d4e4ef94000d9a62039000000000c8000000040640c06800000040023c000000000048000000040723f24000282000003ff2602e78b41f900000000d1c37801429853846afae78a41f900000000d1c242984290528053816ad04e7571b946c8ce080c80000000c0661c71b946c8ce090c80000000556600009c487900000000703c600000820c80000000a16600008671b946c8ce0c0c80000000046600007671b946c8ce0d0c80000000106600006671b946c8ce0b73b946c8ce090c8000000001671e0c8000000002660000480c81000000016600003e487900000000700160240c8100000001660a487900000000700460120c810000000266000018487900000000700eb082630220022f004ef94001de5c2039fc0b01c04ef94001de6a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[17914,1,[" \"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006461353561356435323733386564656538633131376663326537356466656339646336623233633635343261633437303235616366646431366533353732633200353637353039373336363837633762373863643862326236343566363437366362656431353835346262383534643730303834616132333833323333633837\""]],[17918,1,[" \"0x400ba556\","]],[17923,1,[" \"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000312e34304300000000000000000000000035363735303937333636383763376237000100000095a80000002d00000352\""]],[18600,1,[" \"302e372e3900567509736687c7b78cd8b2b645f6476cbed15854bb854d70084aa2383233c878000000200000003200000044000000480000004c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[24091,1,[" 4"]],[24119,1,[" 4294967295"]],[24255,1,[" 8"]],[24263,1,[" 96"]],[24271,1,[" 512"]],[24307,1,[" 289248"]],[24323,1,[" 288228"]],[24329,4,[]],[24335,1,[" 288308"]],[24343,1,[" 288246"]],[24347,1,[" 288280"]],[24351,1,[" 4546208"]],[24363,1,[" 4546336"," ],"," \"aud_hs\": ["," \".run\","," 308315"]],[24369,1,[" \"audio_copy8\": ["]],[24371,1,[" 288896"]],[24375,5,[" 4538016"]],[24383,1,[" 288906"]],[24387,1,[" 288948"]],[24391,1,[" 289000"]],[24399,1,[" 289214"]],[24411,9,[" 289482"]],[24432,0,[" ],"," \"usbaudio_lastsamp\": ["," \".run\","," 308276"]],[25779,1,[" 289566"]],[27391,1,[" 289310"]],[85945,1,[" 289566"]],[86222,8,[" 288104,"]],[86236,1,[" 288118,"]],[86243,1,[" 288130,"]],[86250,1,[" 288136,"," \"abs32\","," \"sec:.run\","," 308314"," ],"," ["," \".run\","," 288160,"]],[86264,8,[" 288204,"]],[86278,1,[" 288222,"]],[86285,1,[" 288238,"]],[86288,1,[" 138763936"]],[86292,1,[" 288282,"]],[86299,1,[" 288310,"]],[86306,1,[" 288334,"]],[86313,1,[" 288344,"]],[86320,1,[" 288350,"]],[86323,1,[" 308244"," ],"," ["," \".run\","," 288368,"," \"abs32\","," \"sec:.run\","," 308252"]],[86334,1,[" 288394,"]],[86337,1,[" 308314"]],[86341,1,[" 288402,"," \"abs32\","," \"sec:.run\","," 308288"," ],"," ["," \".run\","," 288410,"," \"abs32\","," \"sec:.run\","," 308288"," ],"," ["," \".run\","," 288416,"," \"abs32\","," \"sec:.run\","," 308292"," ],"," ["," \".run\","," 288424,"," \"abs32\","," \"sec:.run\","," 308292"," ],"," ["," \".run\","," 288430,"," \"abs32\","," \"sec:.run\","," 308248"," ],"," ["," \".run\","," 288436,"," \"abs32\","," \"sec:.run\","," 308308"," ],"," ["," \".run\","," 288442,"," \"abs32\","," \"sec:.run\","," 308314"," ],"," ["," \".run\","," 288518,"," \"abs32\","," \"sec:.run\","," 308256"," ],"," ["," \".run\","," 288528,"," \"abs32\","," \"sec:.run\","," 308248"," ],"," ["," \".run\","," 288534,"," \"abs32\","," \"sec:.run\","," 308260"," ],"," ["," \".run\","," 288540,"," \"abs32\","," \"sec:.run\","," 308264"," ],"," ["," \".run\","," 288552,"," \"abs32\","," \"sec:.bss\","," 138764064"," ],"," ["," \".run\","," 288564,"]],[86348,99,[" 288584,"]],[86453,1,[" 288592,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 288622,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 288636,"]],[86467,15,[" 288678,"]],[86488,1,[" 288684,"]],[86495,1,[" 288692,"]],[86502,1,[" 288884,"]],[86509,1,[" 288908,"]],[86512,1,[" 138763936"]],[86516,1,[" 288922,"]],[86519,1,[" 138763936"]],[86523,1,[" 288942,"]],[86530,1,[" 288992,"]],[86537,1,[" 289018,"]],[86544,1,[" 289054,"]],[86551,1,[" 289066,"]],[86558,1,[" 289080,"]],[86565,1,[" 289092,"]],[86572,1,[" 289148,"]],[86579,8,[" 289164,"]],[86593,1,[" 289170,"]],[86600,1,[" 289178,"]],[86607,1,[" 289184,"]],[86614,1,[" 289196,"]],[86621,1,[" 289202,"]],[86628,1,[" 289208,"]],[86635,1,[" 289242,"]],[86642,1,[" 289312,"]],[86649,1,[" 289320,"]],[86656,1,[" 289330,"]],[86663,1,[" 289342,"]],[86670,1,[" 289352,"]],[86677,1,[" 289360,"]],[86684,22,[" 289370,"]],[86712,1,[" 289386,"]],[86719,43,[" 289426,"]],[86768,1,[" 289432,"]],[86775,1,[" 289438,"]],[86782,1,[" 289484,"]],[86789,1,[" 289504,"]],[86796,1,[" 289530,"]],[86803,1,[" 289548,"]],[86806,1,[" 4538016"]],[86810,1,[" 289598,"]],[86817,1,[" 289692,"]],[86824,1,[" 289710,"]],[86831,1,[" 289730,"]],[93970,1,[" \"identity.c\": \"872b423098e41efc292dfde47fee90c008a5edd11156dbc0f8d0f3549ee6511a\","]],[94030,1,[" \"usb_base.s\": \"b7c69c3d8f1ef6b425d100958b491eb33da33f2cbf4e37676ea9c312cbee87b2\","]],[94034,1,[" \"usb_reserve.s\": \"7a6bcd93f67a050b9f647d8328f6e58348b50814e0f1a60e2c167a92ec986ff0\""]]],"fills":[{"tag":"A","shared":2001,"first":0,"count":286,"site":"0x400f0ee3","offset":0},{"tag":"A","shared":2287,"first":0,"count":35,"site":"0x400f0ee3","offset":858},{"tag":"A","shared":2322,"first":0,"count":93,"site":"0x400f0ee3","offset":963},{"tag":"B","shared":1425,"first":0,"count":286,"site":"0x40103e34","offset":0},{"tag":"B","shared":1711,"first":0,"count":35,"site":"0x40103e34","offset":858},{"tag":"B","shared":1746,"first":0,"count":93,"site":"0x40103e34","offset":963},{"tag":"A","fx":4,"first":0,"count":441,"section":".run","offset":334940},{"tag":"A","fx":5,"first":0,"count":261,"section":".run","offset":334150},{"tag":"A","fx":12,"first":0,"count":282,"section":".run","offset":333288},{"tag":"A","fx":13,"first":0,"count":345,"section":".run","offset":332238},{"tag":"A","fx":16,"first":0,"count":207,"section":".run","offset":331602},{"tag":"A","fx":17,"first":0,"count":289,"section":".run","offset":330704},{"tag":"A","fx":18,"first":0,"count":329,"section":".run","offset":329680},{"tag":"A","fx":19,"first":0,"count":277,"section":".run","offset":328818},{"tag":"A","fx":20,"first":0,"count":594,"section":".run","offset":327016},{"tag":"A","fx":21,"first":0,"count":1063,"section":".run","offset":323784},{"tag":"A","fx":22,"first":0,"count":1067,"section":".run","offset":320522},{"tag":"A","fx":24,"first":2,"count":11,"section":".run","offset":319932},{"tag":"A","fx":24,"first":15,"count":165,"section":".run","offset":319971},{"tag":"A","fx":28,"first":0,"count":537,"section":".run","offset":318300},{"tag":"B","fx":4,"first":65,"count":1,"section":".run","offset":317808},{"tag":"B","fx":4,"first":73,"count":1,"section":".run","offset":317811},{"tag":"B","fx":4,"first":158,"count":1,"section":".run","offset":317814},{"tag":"B","fx":4,"first":163,"count":1,"section":".run","offset":317817},{"tag":"B","fx":4,"first":172,"count":1,"section":".run","offset":317820},{"tag":"B","fx":4,"first":182,"count":1,"section":".run","offset":317823},{"tag":"B","fx":4,"first":194,"count":1,"section":".run","offset":317826},{"tag":"B","fx":4,"first":199,"count":1,"section":".run","offset":317829},{"tag":"B","fx":4,"first":207,"count":1,"section":".run","offset":317832},{"tag":"B","fx":4,"first":215,"count":1,"section":".run","offset":317835},{"tag":"B","fx":4,"first":220,"count":1,"section":".run","offset":317838},{"tag":"B","fx":4,"first":225,"count":1,"section":".run","offset":317841},{"tag":"B","fx":4,"first":229,"count":1,"section":".run","offset":317844},{"tag":"B","fx":4,"first":248,"count":1,"section":".run","offset":317847},{"tag":"B","fx":4,"first":266,"count":1,"section":".run","offset":317850},{"tag":"B","fx":4,"first":281,"count":1,"section":".run","offset":317853},{"tag":"B","fx":4,"first":286,"count":1,"section":".run","offset":317856},{"tag":"B","fx":4,"first":290,"count":1,"section":".run","offset":317859},{"tag":"B","fx":4,"first":307,"count":1,"section":".run","offset":317862},{"tag":"B","fx":4,"first":325,"count":1,"section":".run","offset":317865},{"tag":"B","fx":4,"first":374,"count":1,"section":".run","offset":317868},{"tag":"B","fx":5,"first":25,"count":1,"section":".run","offset":317778},{"tag":"B","fx":5,"first":42,"count":1,"section":".run","offset":317781},{"tag":"B","fx":5,"first":62,"count":1,"section":".run","offset":317784},{"tag":"B","fx":5,"first":91,"count":1,"section":".run","offset":317787},{"tag":"B","fx":5,"first":179,"count":1,"section":".run","offset":317790},{"tag":"B","fx":5,"first":181,"count":1,"section":".run","offset":317793},{"tag":"B","fx":12,"first":62,"count":1,"section":".run","offset":317698},{"tag":"B","fx":12,"first":64,"count":1,"section":".run","offset":317701},{"tag":"B","fx":12,"first":68,"count":1,"section":".run","offset":317704},{"tag":"B","fx":12,"first":70,"count":1,"section":".run","offset":317707},{"tag":"B","fx":12,"first":91,"count":1,"section":".run","offset":317710},{"tag":"B","fx":12,"first":93,"count":1,"section":".run","offset":317713},{"tag":"B","fx":12,"first":97,"count":1,"section":".run","offset":317716},{"tag":"B","fx":12,"first":99,"count":1,"section":".run","offset":317719},{"tag":"B","fx":12,"first":165,"count":1,"section":".run","offset":317722},{"tag":"B","fx":12,"first":170,"count":1,"section":".run","offset":317725},{"tag":"B","fx":12,"first":172,"count":1,"section":".run","offset":317728},{"tag":"B","fx":12,"first":174,"count":1,"section":".run","offset":317731},{"tag":"B","fx":12,"first":176,"count":1,"section":".run","offset":317734},{"tag":"B","fx":12,"first":180,"count":1,"section":".run","offset":317737},{"tag":"B","fx":12,"first":182,"count":1,"section":".run","offset":317740},{"tag":"B","fx":12,"first":193,"count":1,"section":".run","offset":317743},{"tag":"B","fx":13,"first":259,"count":1,"section":".run","offset":317692},{"tag":"B","fx":16,"first":23,"count":1,"section":".run","offset":317676},{"tag":"B","fx":16,"first":27,"count":1,"section":".run","offset":317679},{"tag":"B","fx":16,"first":206,"count":1,"section":".run","offset":317682},{"tag":"B","fx":17,"first":30,"count":1,"section":".run","offset":317656},{"tag":"B","fx":17,"first":34,"count":1,"section":".run","offset":317659},{"tag":"B","fx":17,"first":118,"count":1,"section":".run","offset":317662},{"tag":"B","fx":17,"first":288,"count":1,"section":".run","offset":317665},{"tag":"B","fx":18,"first":48,"count":1,"section":".run","offset":317626},{"tag":"B","fx":18,"first":82,"count":1,"section":".run","offset":317629},{"tag":"B","fx":18,"first":87,"count":1,"section":".run","offset":317632},{"tag":"B","fx":18,"first":91,"count":1,"section":".run","offset":317635},{"tag":"B","fx":18,"first":260,"count":1,"section":".run","offset":317638},{"tag":"B","fx":18,"first":328,"count":1,"section":".run","offset":317641},{"tag":"B","fx":19,"first":109,"count":1,"section":".run","offset":317610},{"tag":"B","fx":19,"first":149,"count":1,"section":".run","offset":317613},{"tag":"B","fx":19,"first":276,"count":1,"section":".run","offset":317616},{"tag":"B","fx":20,"first":102,"count":1,"section":".run","offset":317550},{"tag":"B","fx":20,"first":107,"count":1,"section":".run","offset":317553},{"tag":"B","fx":20,"first":116,"count":1,"section":".run","offset":317556},{"tag":"B","fx":20,"first":167,"count":1,"section":".run","offset":317559},{"tag":"B","fx":20,"first":185,"count":1,"section":".run","offset":317562},{"tag":"B","fx":20,"first":239,"count":1,"section":".run","offset":317565},{"tag":"B","fx":20,"first":322,"count":1,"section":".run","offset":317568},{"tag":"B","fx":20,"first":403,"count":1,"section":".run","offset":317571},{"tag":"B","fx":20,"first":425,"count":1,"section":".run","offset":317574},{"tag":"B","fx":20,"first":517,"count":1,"section":".run","offset":317577},{"tag":"B","fx":20,"first":550,"count":1,"section":".run","offset":317580},{"tag":"B","fx":20,"first":590,"count":1,"section":".run","offset":317583},{"tag":"B","fx":21,"first":15,"count":1,"section":".run","offset":317504},{"tag":"B","fx":21,"first":374,"count":1,"section":".run","offset":317507},{"tag":"B","fx":21,"first":406,"count":1,"section":".run","offset":317510},{"tag":"B","fx":21,"first":432,"count":1,"section":".run","offset":317513},{"tag":"B","fx":21,"first":470,"count":1,"section":".run","offset":317516},{"tag":"B","fx":21,"first":478,"count":1,"section":".run","offset":317519},{"tag":"B","fx":21,"first":481,"count":1,"section":".run","offset":317522},{"tag":"B","fx":21,"first":574,"count":1,"section":".run","offset":317525},{"tag":"B","fx":21,"first":800,"count":1,"section":".run","offset":317528},{"tag":"B","fx":22,"first":202,"count":1,"section":".run","offset":317434},{"tag":"B","fx":22,"first":315,"count":1,"section":".run","offset":317437},{"tag":"B","fx":22,"first":402,"count":1,"section":".run","offset":317440},{"tag":"B","fx":22,"first":404,"count":1,"section":".run","offset":317443},{"tag":"B","fx":22,"first":417,"count":1,"section":".run","offset":317446},{"tag":"B","fx":22,"first":457,"count":1,"section":".run","offset":317449},{"tag":"B","fx":22,"first":461,"count":1,"section":".run","offset":317452},{"tag":"B","fx":22,"first":465,"count":1,"section":".run","offset":317455},{"tag":"B","fx":22,"first":492,"count":1,"section":".run","offset":317458},{"tag":"B","fx":22,"first":719,"count":1,"section":".run","offset":317461},{"tag":"B","fx":22,"first":746,"count":1,"section":".run","offset":317464},{"tag":"B","fx":22,"first":800,"count":1,"section":".run","offset":317467},{"tag":"B","fx":22,"first":842,"count":1,"section":".run","offset":317470},{"tag":"B","fx":22,"first":1051,"count":1,"section":".run","offset":317473}]},{"layout":"master","identity":"afc3cacef947ee6e3b1877963ec4874c1ce2f237e43b613411e36907d0f9a143","packageSha256":"592b1048a3ed1df954a51d28efd0da866935f19e9563e586353da9f1472a77b9","patch":[[15794,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202400000000005250101010905820240000000000525010103080b04020100200009040400000101200009240100020a2e000008240a1001050000112402110306001002\""]],[15798,1,[" \"0x400cb87e\","]],[15803,1,[" \"0c24031201010011100000000904050000010220000904050101010220001024011200010100000002030000000006240201041807058305680101082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000090203010601\""]],[15817,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202000200000005250101010905820200020000000525010103080b04020100200009040400000101200009240100020a2e000008240a1001050000112402110306001002\""]],[15821,1,[" \"0x400cb87e\","]],[15826,1,[" \"0c24031201010011100000000904050000010220000904050101010220001024011200010100000002030000000006240201041807058305600002082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000090703010601\""]],[15835,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202400000000005250101010905820240000000000525010103080b04020100200009040400000101200009240100020a2e000008240a1001050000112402110306001002\""]],[15839,1,[" \"0x400cb87e\","]],[15844,1,[" \"0c24031201010011100000000904050000010220000904050101010220001024011200010100000002030000000006240201041807058305680101082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000090703010601\""]],[15858,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202000200000005250101010905820200020000000525010103080b04020100200009040400000101200009240100020a2e000008240a1001050000112402110306001002\""]],[15862,1,[" \"0x400cb87e\","]],[15867,1,[" \"0c24031201010011100000000904050000010220000904050101010220001024011200010100000002030000000006240201041807058305600002082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[16061,1,[" \"0000000071b946c8ce0c7205b2806600002c71b946c8ce0a4a80670a700113c000000000600a423900000000610005724eb94001d5244ef94001de742039fc0b01c44ef94001dd0a71b946c8ce0c7205b280660c4879000000004ef94001d81e4879400e20a14ef94001d81e4eb94001d6b86100001a70404ef94001e9226100000e2039fc0b01404ef94001e9584239000000004e75201023c04ec950280280fffff00006800000100023c04ec9502c4ef94001d4b84feffff848d700032039fc0b01bc223c00080000c081670c223c0008000023c1fc0b01bc4cd700034fef00084ef9000000004a3900000000670000b271b9000000000c8000000002664c740020026100009e2228000408010007670c52820c820000000465e64e75203900000000220092b9000000000481000000406f1223c10000000004800000004023c00000000042390000000070042f00610000a24a806704539766f4588f71b9000000000c80000000016608700213c0000000002039fc0b01b82239fc0b01b08081028000080000661875b900000000610000244a80670a6100003e52b9000000004e75028000000003eb88207c00000000d1c04e75760320026100ffe82228000408010007660a528253836aea70004e75284870014e75227900000000234c000842a9000c203c00080000\""]],[16070,1,[" \"71b9000000002c406100ffa62228000408010007660002324a390000000067000228203900000000223900000000240094810c8200000400631a52b900000000220004810000040023c100000000243c000004004a3900000000661cb4b900000000640623c200000000b4b900000000630623c2000000002639000000002a39000000004a390000000066282002048000000040e3800c80000000c86f06203c000000c80c80ffffff386c06203cffffff38da80d6852e3c000003e828034c4740042a044c0750002c039c85b484640a52b9000000006000017023c60000000023c40000000023c200000000200ee188e388267c00000000d7c0224b26042239000000000281000003ff203c0000040090814a3900000000672c45f900000000e789d5c1b6806208200361000120604096802a436100011645f900000000200d6100010a602a45f900000000e789d5c1b68062082003610000f4601496802a43610000ea45f900000000200d610000de283900000000d9b9000000002c044a39000000006704e78e6002e78e72012081214b0008220b0281fffff0000681000010002141000c220648410081000000802141000428482a48200e53806100fdf22448204d202a000408000007676224882039fc0b01b0028000080000665674102039fc0b0140008000004000\""]],[16097,1,[" \"ffffbfff23c0fc0b01404a81660c240e52826100fd946100fdb2200e528002800000000313c00000000070014e7570004e7522da22da538066f84e75227c00000000721f429953816afa227c0000000070017203228043e9002053816af64239000000004e752039fc0b01580280fffff8000c80400000006d0a0c80500000006c026006203c4ec948000680000001c023c00000000020404e75610000f66100ffc6720f429853816afa2079000000002039fc0b0184e088e088e088e4880280000000030c8000000002661c700113c000000000203c00002b1123c000000000203c606000006018423900000000203c0000ac4423c000000000203c61680000208042a8000470012140000842a8000c6100ff2a2039fc0b01cc02800000ffff00800084000023c0fc0b01cc2039000000000480000000406402700023c00000000042b900000000700113c00000000013c000000000\""]],[16106,19,[" \"0000000042b90000000042b9000000004e75610000202039fc0b01cc02800000ffff23c0fc0b01cc6100feb44239000000004e752f027210203c0008000023c0fc0b01b4243c000100002039fc0b01b40280000800006704538266ee2039fc0b01b80280000800006704538166ca241f4e754a390000000066204a39000000006618700113c0000000002039800000e423c000000000600000744a3900000000670a423900000000610000962039800000e42400b4b900000000660652b90000000023c200000000e188e58806808000351024402839000000002a040285000003ffe78d47f900000000d7c57c0f241a420202c226c2241a420202c226c253866aec5084508423c40000000071b90000000073b900000000b28067104a8067066100fe1a600a6100feea60084a8167046100fa4a42b946104d4e4ef94000d9a62039000000000c8000000040640c06800000040023c000000000048000000040723f24000282000003ff2602e78b41f900000000d1c37801429853846afae78a41f900000000d1c242984290528053816ad04e7571b946c8ce080c80000000c0661c71b946c8ce090c80000000556600009c487900000000703c600000820c80000000a16600008671b946c8ce0c0c80000000046600007671b946c8ce0d0c80000000106600006671b946c8ce0b73b946c8ce090c8000000001671e0c8000000002660000480c81000000016600003e487900000000700160240c8100000001660a487900000000700460120c810000000266000018487900000000700eb082630220022f004ef94001de5c2039fc0b01c04ef94001de6a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[17914,1,[" \"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006461353561356435323733386564656538633131376663326537356466656339646336623233633635343261633437303235616366646431366533353732633200616663336361636566393437656536653362313837373936336563343837346331636532663233376534336236313334313165333639303764306639613134\""]],[17918,1,[" \"0x400ba992\","]],[17923,1,[" \"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000312e34304300000000000000000000000061666333636163656639343765653665000100000095a80000002d00000352\""]],[18600,1,[" \"302e372e3900afc3cacef947ee6e3b1877963ec4874c1ce2f237e43b613411e36907d0f9a143000000200000003200000044000000480000004c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[24091,1,[" 2"]],[24119,1,[" 4294967295"]],[24255,1,[" 8"]],[24263,1,[" 96"]],[24271,1,[" 512"]],[24307,1,[" 289248"]],[24323,1,[" 288228"]],[24329,4,[]],[24335,1,[" 288308"]],[24343,1,[" 288246"]],[24347,1,[" 288280"]],[24351,1,[" 4546208"]],[24363,1,[" 4546336"," ],"," \"aud_hs\": ["," \".run\","," 308315"]],[24369,1,[" \"audio_copy8\": ["]],[24371,1,[" 288896"]],[24375,5,[" 4538016"]],[24383,1,[" 288906"]],[24387,1,[" 288948"]],[24391,1,[" 289000"]],[24399,1,[" 289214"]],[24411,9,[" 289516"]],[24432,0,[" ],"," \"usbaudio_lastsamp\": ["," \".run\","," 308276"]],[25779,1,[" 289600"]],[27391,1,[" 289310"]],[85945,1,[" 289600"]],[86222,8,[" 288104,"]],[86236,1,[" 288118,"]],[86243,1,[" 288130,"]],[86250,1,[" 288136,"," \"abs32\","," \"sec:.run\","," 308314"," ],"," ["," \".run\","," 288160,"]],[86264,8,[" 288204,"]],[86278,1,[" 288222,"]],[86285,1,[" 288238,"]],[86288,1,[" 138763936"]],[86292,1,[" 288282,"]],[86299,1,[" 288310,"]],[86306,1,[" 288334,"]],[86313,1,[" 288344,"]],[86320,1,[" 288350,"]],[86323,1,[" 308244"," ],"," ["," \".run\","," 288368,"," \"abs32\","," \"sec:.run\","," 308252"]],[86334,1,[" 288394,"]],[86337,1,[" 308314"]],[86341,1,[" 288402,"," \"abs32\","," \"sec:.run\","," 308288"," ],"," ["," \".run\","," 288410,"," \"abs32\","," \"sec:.run\","," 308288"," ],"," ["," \".run\","," 288416,"," \"abs32\","," \"sec:.run\","," 308292"," ],"," ["," \".run\","," 288424,"," \"abs32\","," \"sec:.run\","," 308292"," ],"," ["," \".run\","," 288430,"," \"abs32\","," \"sec:.run\","," 308248"," ],"," ["," \".run\","," 288436,"," \"abs32\","," \"sec:.run\","," 308308"," ],"," ["," \".run\","," 288442,"," \"abs32\","," \"sec:.run\","," 308314"," ],"," ["," \".run\","," 288518,"," \"abs32\","," \"sec:.run\","," 308256"," ],"," ["," \".run\","," 288528,"," \"abs32\","," \"sec:.run\","," 308248"," ],"," ["," \".run\","," 288534,"," \"abs32\","," \"sec:.run\","," 308260"," ],"," ["," \".run\","," 288540,"," \"abs32\","," \"sec:.run\","," 308264"," ],"," ["," \".run\","," 288552,"," \"abs32\","," \"sec:.bss\","," 138764064"," ],"," ["," \".run\","," 288564,"]],[86348,99,[" 288584,"]],[86453,1,[" 288592,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 288622,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 288636,"]],[86467,15,[" 288678,"]],[86488,1,[" 288684,"]],[86495,1,[" 288692,"]],[86502,1,[" 288884,"]],[86509,1,[" 288908,"]],[86512,1,[" 138763936"]],[86516,1,[" 288922,"]],[86519,1,[" 138763936"]],[86523,1,[" 288942,"]],[86530,1,[" 288992,"]],[86537,1,[" 289018,"]],[86544,1,[" 289054,"]],[86551,1,[" 289066,"]],[86558,1,[" 289080,"]],[86565,1,[" 289092,"]],[86572,1,[" 289148,"]],[86579,8,[" 289164,"]],[86593,1,[" 289170,"]],[86600,1,[" 289178,"]],[86607,1,[" 289184,"]],[86614,1,[" 289196,"]],[86621,1,[" 289202,"]],[86628,1,[" 289208,"]],[86635,1,[" 289242,"]],[86642,1,[" 289312,"]],[86649,1,[" 289320,"]],[86656,1,[" 289330,"]],[86663,1,[" 289342,"]],[86670,1,[" 289352,"]],[86677,1,[" 289360,"]],[86684,1,[" 289378,"]],[86691,1,[" 289386,"]],[86698,1,[" 289392,"]],[86705,1,[" 289410,"]],[86712,1,[" 289426,"]],[86719,43,[" 289460,"]],[86768,1,[" 289466,"]],[86775,1,[" 289472,"]],[86782,1,[" 289518,"]],[86789,1,[" 289538,"]],[86796,1,[" 289564,"]],[86803,1,[" 289582,"]],[86806,1,[" 4538016"]],[86810,1,[" 289632,"]],[86817,1,[" 289726,"]],[86824,1,[" 289744,"]],[86831,1,[" 289764,"]],[93970,1,[" \"identity.c\": \"3ce3d313e451dd25c1012565c74c659f836a75ce8b38a0697550d7a7149c62d8\","]],[94030,1,[" \"usb_base.s\": \"b7c69c3d8f1ef6b425d100958b491eb33da33f2cbf4e37676ea9c312cbee87b2\","]],[94034,1,[" \"usb_reserve.s\": \"fc4b91b9fabedd48ef8430ddf8a17b6bbb38606c02ab8775dcb9ec184fd13170\""]]],"fills":[{"tag":"A","shared":2001,"first":0,"count":286,"site":"0x400f0ee3","offset":0},{"tag":"A","shared":2287,"first":0,"count":35,"site":"0x400f0ee3","offset":858},{"tag":"A","shared":2322,"first":0,"count":93,"site":"0x400f0ee3","offset":963},{"tag":"B","shared":1425,"first":0,"count":286,"site":"0x40103e34","offset":0},{"tag":"B","shared":1711,"first":0,"count":35,"site":"0x40103e34","offset":858},{"tag":"B","shared":1746,"first":0,"count":93,"site":"0x40103e34","offset":963},{"tag":"A","fx":4,"first":0,"count":441,"section":".run","offset":334940},{"tag":"A","fx":5,"first":0,"count":261,"section":".run","offset":334150},{"tag":"A","fx":12,"first":0,"count":282,"section":".run","offset":333288},{"tag":"A","fx":13,"first":0,"count":345,"section":".run","offset":332238},{"tag":"A","fx":16,"first":0,"count":207,"section":".run","offset":331602},{"tag":"A","fx":17,"first":0,"count":289,"section":".run","offset":330704},{"tag":"A","fx":18,"first":0,"count":329,"section":".run","offset":329680},{"tag":"A","fx":19,"first":0,"count":277,"section":".run","offset":328818},{"tag":"A","fx":20,"first":0,"count":594,"section":".run","offset":327016},{"tag":"A","fx":21,"first":0,"count":1063,"section":".run","offset":323784},{"tag":"A","fx":22,"first":0,"count":1067,"section":".run","offset":320522},{"tag":"A","fx":24,"first":2,"count":11,"section":".run","offset":319932},{"tag":"A","fx":24,"first":15,"count":165,"section":".run","offset":319971},{"tag":"A","fx":28,"first":0,"count":537,"section":".run","offset":318300},{"tag":"B","fx":4,"first":65,"count":1,"section":".run","offset":317808},{"tag":"B","fx":4,"first":73,"count":1,"section":".run","offset":317811},{"tag":"B","fx":4,"first":158,"count":1,"section":".run","offset":317814},{"tag":"B","fx":4,"first":163,"count":1,"section":".run","offset":317817},{"tag":"B","fx":4,"first":172,"count":1,"section":".run","offset":317820},{"tag":"B","fx":4,"first":182,"count":1,"section":".run","offset":317823},{"tag":"B","fx":4,"first":194,"count":1,"section":".run","offset":317826},{"tag":"B","fx":4,"first":199,"count":1,"section":".run","offset":317829},{"tag":"B","fx":4,"first":207,"count":1,"section":".run","offset":317832},{"tag":"B","fx":4,"first":215,"count":1,"section":".run","offset":317835},{"tag":"B","fx":4,"first":220,"count":1,"section":".run","offset":317838},{"tag":"B","fx":4,"first":225,"count":1,"section":".run","offset":317841},{"tag":"B","fx":4,"first":229,"count":1,"section":".run","offset":317844},{"tag":"B","fx":4,"first":248,"count":1,"section":".run","offset":317847},{"tag":"B","fx":4,"first":266,"count":1,"section":".run","offset":317850},{"tag":"B","fx":4,"first":281,"count":1,"section":".run","offset":317853},{"tag":"B","fx":4,"first":286,"count":1,"section":".run","offset":317856},{"tag":"B","fx":4,"first":290,"count":1,"section":".run","offset":317859},{"tag":"B","fx":4,"first":307,"count":1,"section":".run","offset":317862},{"tag":"B","fx":4,"first":325,"count":1,"section":".run","offset":317865},{"tag":"B","fx":4,"first":374,"count":1,"section":".run","offset":317868},{"tag":"B","fx":5,"first":25,"count":1,"section":".run","offset":317778},{"tag":"B","fx":5,"first":42,"count":1,"section":".run","offset":317781},{"tag":"B","fx":5,"first":62,"count":1,"section":".run","offset":317784},{"tag":"B","fx":5,"first":91,"count":1,"section":".run","offset":317787},{"tag":"B","fx":5,"first":179,"count":1,"section":".run","offset":317790},{"tag":"B","fx":5,"first":181,"count":1,"section":".run","offset":317793},{"tag":"B","fx":12,"first":62,"count":1,"section":".run","offset":317698},{"tag":"B","fx":12,"first":64,"count":1,"section":".run","offset":317701},{"tag":"B","fx":12,"first":68,"count":1,"section":".run","offset":317704},{"tag":"B","fx":12,"first":70,"count":1,"section":".run","offset":317707},{"tag":"B","fx":12,"first":91,"count":1,"section":".run","offset":317710},{"tag":"B","fx":12,"first":93,"count":1,"section":".run","offset":317713},{"tag":"B","fx":12,"first":97,"count":1,"section":".run","offset":317716},{"tag":"B","fx":12,"first":99,"count":1,"section":".run","offset":317719},{"tag":"B","fx":12,"first":165,"count":1,"section":".run","offset":317722},{"tag":"B","fx":12,"first":170,"count":1,"section":".run","offset":317725},{"tag":"B","fx":12,"first":172,"count":1,"section":".run","offset":317728},{"tag":"B","fx":12,"first":174,"count":1,"section":".run","offset":317731},{"tag":"B","fx":12,"first":176,"count":1,"section":".run","offset":317734},{"tag":"B","fx":12,"first":180,"count":1,"section":".run","offset":317737},{"tag":"B","fx":12,"first":182,"count":1,"section":".run","offset":317740},{"tag":"B","fx":12,"first":193,"count":1,"section":".run","offset":317743},{"tag":"B","fx":13,"first":259,"count":1,"section":".run","offset":317692},{"tag":"B","fx":16,"first":23,"count":1,"section":".run","offset":317676},{"tag":"B","fx":16,"first":27,"count":1,"section":".run","offset":317679},{"tag":"B","fx":16,"first":206,"count":1,"section":".run","offset":317682},{"tag":"B","fx":17,"first":30,"count":1,"section":".run","offset":317656},{"tag":"B","fx":17,"first":34,"count":1,"section":".run","offset":317659},{"tag":"B","fx":17,"first":118,"count":1,"section":".run","offset":317662},{"tag":"B","fx":17,"first":288,"count":1,"section":".run","offset":317665},{"tag":"B","fx":18,"first":48,"count":1,"section":".run","offset":317626},{"tag":"B","fx":18,"first":82,"count":1,"section":".run","offset":317629},{"tag":"B","fx":18,"first":87,"count":1,"section":".run","offset":317632},{"tag":"B","fx":18,"first":91,"count":1,"section":".run","offset":317635},{"tag":"B","fx":18,"first":260,"count":1,"section":".run","offset":317638},{"tag":"B","fx":18,"first":328,"count":1,"section":".run","offset":317641},{"tag":"B","fx":19,"first":109,"count":1,"section":".run","offset":317610},{"tag":"B","fx":19,"first":149,"count":1,"section":".run","offset":317613},{"tag":"B","fx":19,"first":276,"count":1,"section":".run","offset":317616},{"tag":"B","fx":20,"first":102,"count":1,"section":".run","offset":317550},{"tag":"B","fx":20,"first":107,"count":1,"section":".run","offset":317553},{"tag":"B","fx":20,"first":116,"count":1,"section":".run","offset":317556},{"tag":"B","fx":20,"first":167,"count":1,"section":".run","offset":317559},{"tag":"B","fx":20,"first":185,"count":1,"section":".run","offset":317562},{"tag":"B","fx":20,"first":239,"count":1,"section":".run","offset":317565},{"tag":"B","fx":20,"first":322,"count":1,"section":".run","offset":317568},{"tag":"B","fx":20,"first":403,"count":1,"section":".run","offset":317571},{"tag":"B","fx":20,"first":425,"count":1,"section":".run","offset":317574},{"tag":"B","fx":20,"first":517,"count":1,"section":".run","offset":317577},{"tag":"B","fx":20,"first":550,"count":1,"section":".run","offset":317580},{"tag":"B","fx":20,"first":590,"count":1,"section":".run","offset":317583},{"tag":"B","fx":21,"first":15,"count":1,"section":".run","offset":317504},{"tag":"B","fx":21,"first":374,"count":1,"section":".run","offset":317507},{"tag":"B","fx":21,"first":406,"count":1,"section":".run","offset":317510},{"tag":"B","fx":21,"first":432,"count":1,"section":".run","offset":317513},{"tag":"B","fx":21,"first":470,"count":1,"section":".run","offset":317516},{"tag":"B","fx":21,"first":478,"count":1,"section":".run","offset":317519},{"tag":"B","fx":21,"first":481,"count":1,"section":".run","offset":317522},{"tag":"B","fx":21,"first":574,"count":1,"section":".run","offset":317525},{"tag":"B","fx":21,"first":800,"count":1,"section":".run","offset":317528},{"tag":"B","fx":22,"first":202,"count":1,"section":".run","offset":317434},{"tag":"B","fx":22,"first":315,"count":1,"section":".run","offset":317437},{"tag":"B","fx":22,"first":402,"count":1,"section":".run","offset":317440},{"tag":"B","fx":22,"first":404,"count":1,"section":".run","offset":317443},{"tag":"B","fx":22,"first":417,"count":1,"section":".run","offset":317446},{"tag":"B","fx":22,"first":457,"count":1,"section":".run","offset":317449},{"tag":"B","fx":22,"first":461,"count":1,"section":".run","offset":317452},{"tag":"B","fx":22,"first":465,"count":1,"section":".run","offset":317455},{"tag":"B","fx":22,"first":492,"count":1,"section":".run","offset":317458},{"tag":"B","fx":22,"first":719,"count":1,"section":".run","offset":317461},{"tag":"B","fx":22,"first":746,"count":1,"section":".run","offset":317464},{"tag":"B","fx":22,"first":800,"count":1,"section":".run","offset":317467},{"tag":"B","fx":22,"first":842,"count":1,"section":".run","offset":317470},{"tag":"B","fx":22,"first":1051,"count":1,"section":".run","offset":317473}]},{"layout":"off","identity":"c889442d9b119d5f7e4dd5e056a8bd1552e55717d2fe4fa290b0b6ada5bc55ac","packageSha256":"8fc3adea49ebf79b17392c4df31d0a375420566e099994c85a80c10afca68902","patch":[[15713,1,[" \"4e7500004eb9000000004ef94002dc6e4eb9000000004ef94002dc964eb9000000004ef94002dcca00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000022020c810000008d6306223c0000008d4ef94001d86422020c810000008d6306223c0000008d4ef94001d8a24feffff448d703024eb9000000004cd703024fef000c4a80671a72ffb081672072feb081672c2f39000000002f004ef94001de5c2039fc0b01c04ef94001de6a\""]],[15749,1,[" \"4ef9\""]],[15767,1,[" \"4ef90000\""]],[15785,1,[" \"4ef90000000000000000000009028d000401\""]],[15794,1,[" \"0904010000ff4d0100080b02020100000009040200000101000009240100010900010309040300020103000007240100012500062402010100062402020200092403010301020100092403020401010100090502024000000000052501010109058202400000000005250101\""]],[15798,2,[" \"0x400cb87e\","," 22"]],[15803,1,[" \"0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009028d000401\""]],[15817,1,[" \"0904010000ff4d0100080b02020100000009040200000101000009240100010900010309040300020103000007240100012500062402010100062402020200092403010301020100092403020401010100090502020002000000052501010109058202000200000005250101\""]],[15821,2,[" \"0x400cb87e\","," 22"]],[15826,1,[" \"0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009078d000401\""]],[15835,1,[" \"0904010000ff4d0100080b02020100000009040200000101000009240100010900010309040300020103000007240100012500062402010100062402020200092403010301020100092403020401010100090502024000000000052501010109058202400000000005250101\""]],[15839,2,[" \"0x400cb87e\","," 22"]],[15844,1,[" \"0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009078d000401\""]],[15858,1,[" \"0904010000ff4d0100080b02020100000009040200000101000009240100010900010309040300020103000007240100012500062402010100062402020200092403010301020100092403020401010100090502020002000000052501010109058202000200000005250101\""]],[15862,2,[" \"0x400cb87e\","," 22"]],[15867,1,[" \"000000000000000000000000000000000000000000000000\""]],[15885,1,[" \"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[16061,64,[" \"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[17914,10,[" \"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006633626364326638643932323231393432366365346239663139373630393666393565383339306636663336323335303166336663663538303934633834366300633838393434326439623131396435663765346464356530353661386264313535326535353731376432666534666132393062306236616461356263353561630000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000312e34304300000000000000000000000063383839343432643962313139643566000100000095a80000002d00000352\""]],[18127,19,[" \"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000460c8122460d0ffa460bf218460c80f0000000000000000000000000000000000000000000000000000000000000000000000000151315141515151615171518151916141715181619131914191519161917191819191b131b141b151b161b171b181b191c131c161c191d131d161d191e131e161e191f131f1921132114211521162117211821192218231623172418251325142515251625172518251959135914591559165917591859195a135a165a195b135b165b195c135c165c195d145d155d175d185f135f145f155f165f175f185f1960136016601961136116611962136216621963136319651366136713671467156716671767186719681369136b146b156b166b176b186b196c136c166d136d166e136e166f146f156f166f176f186f1900151305070000000011001b13050700001100120021130507000023001201591305070000350014015f1305070000490012016513050700005b000b016b130507000066001207ff07ff00030006000c001800300018000c0006000307ff07ff00000000000001fc03fe07070603060306030603070703fe01fc00000000000007ff07ff06030603060306030707038e01fc00f8\""]],[18600,1,[" \"302e372e3900c889442d9b119d5f7e4dd5e056a8bd1552e55717d2fe4fa290b0b6ada5bc55ac000000200000003200000044000000480000004c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[23891,1,[" 141"]],[23947,1,[" 284940"]],[23951,1,[" 285254"]],[23955,1,[" 285112"]],[23959,1,[" 285436"]],[23967,1,[" 285194"]],[23971,1,[" 285456"]],[23975,1,[" 285464"]],[23979,1,[" 285458"]],[23983,1,[" 285720"]],[23987,1,[" 285454"]],[24055,1,[" 286218"]],[24059,1,[" 286444"]],[24063,1,[" 286354"]],[24067,1,[" 286684"]],[24071,1,[" 286658"]],[24075,1,[" 286708"]],[24079,1,[" 286780"]],[24088,344,[]],[24515,1,[" 285453"]],[24595,1,[" 284852"]],[24779,5,[" 283904"]],[24807,1,[" 283302"]],[24811,1,[" 283392"]],[24824,4,[]],[25079,1,[" 284352"]],[25099,1,[" 285460"]],[25169,4,[]],[25179,1,[" 285002"]],[25231,1,[" 284416"]],[25433,4,[]],[25529,4,[]],[25551,1,[" 286290"]],[25777,4,[]],[25851,1,[" 284160"]],[25871,1,[" 283268"]],[25983,1,[" 285382"]],[26008,4,[]],[26103,1,[" 283648"]],[26127,1,[" 284672"]],[26257,4,[]],[26275,1,[" 286784"]],[26357,4,[]],[26375,1,[" 285976"]],[26539,1,[" 286272"]],[26691,1,[" 285334"]],[26764,4,[]],[26844,4,[]],[27015,1,[" 286036"]],[27028,4,[]],[27076,4,[]],[27255,1,[" 286700"]],[27389,4,[]],[27448,4,[]],[27621,4,[]],[27667,1,[" 283358"]],[27783,1,[" 285452"]],[27812,4,[]],[27951,1,[" 286306"]],[28021,4,[]],[28036,4,[]],[28064,4,[]],[28179,1,[" 286704"]],[28200,4,[]],[28319,8,[]],[29263,13,[]],[44442,1,[" 284672"]],[44631,1,[" 284416"]],[85942,8,[" 283278,"]],[85956,1,[" 283312,"]],[85963,7,[]],[85973,1,[" 286272"]],[85987,1,[" 286290"]],[85991,8,[" 283368,"]],[86005,1,[" 283382,"]],[86012,1,[" 284910,"]],[86015,1,[" 285452"]],[86019,1,[" 284916,"]],[86022,1,[" 285453"]],[86026,1,[" 285038,"]],[86029,1,[" 285453"]],[86033,1,[" 285108,"]],[86036,1,[" 283268"]],[86040,1,[" 285234,"]],[86043,1,[" 285456"]],[86047,1,[" 285246,"]],[86050,1,[" 285460"]],[86054,1,[" 285276,"]],[86057,1,[" 285453"]],[86061,1,[" 285282,"]],[86064,1,[" 285458"]],[86068,1,[" 285302,"]],[86071,1,[" 285456"]],[86075,1,[" 285402,"]],[86078,1,[" 285454"]],[86082,1,[" 286018,"]],[86085,1,[" 286700"]],[86089,1,[" 286032,"]],[86092,1,[" 284852"]],[86096,1,[" 286046,"]],[86099,1,[" 285452"]],[86103,1,[" 286164,"]],[86106,1,[" 286704"]],[86110,1,[" 286214,"]],[86113,1,[" 285002"]],[86117,1,[" 286322,"]],[86120,1,[" 285452"]],[86124,1,[" 286328,"]],[86127,1,[" 285453"]],[86131,1,[" 286334,"]],[86134,1,[" 285456"]],[86138,1,[" 286510,"]],[86141,1,[" 286700"]],[86145,1,[" 286624,"]],[86148,1,[" 286780"]],[86152,1,[" 286760,"]],[86155,1,[" 286780"]],[86159,1,[" 286770,"]],[86162,673,[" 286784"]],[91800,1,[" \"sym:usbmidi_rx_isr_shim\","]],[91831,60,[]],[93970,1,[" \"identity.c\": \"1b5f998de936bf3844e914321a9b5b3ce80b410d03d030f7b8443d1f70bc3a76\","]],[94030,1,[" \"usb_base.s\": \"1ae9d3f2371e79a433b4aa1d31aa30408836b51c5296133b960e8246175dec84\","]],[94033,2,[" \"usb_reserve.s\": \"0fde65d1387d49e9fd43eb2f7f53c0fc9bc64eb1a98b0a98ac9815eb6cf97870\""]]],"fills":[{"tag":"A","shared":2001,"first":0,"count":286,"site":"0x400f0ee3","offset":0},{"tag":"A","shared":2287,"first":0,"count":35,"site":"0x400f0ee3","offset":858},{"tag":"A","shared":2322,"first":0,"count":93,"site":"0x400f0ee3","offset":963},{"tag":"B","shared":1425,"first":0,"count":286,"site":"0x40103e34","offset":0},{"tag":"B","shared":1711,"first":0,"count":35,"site":"0x40103e34","offset":858},{"tag":"B","shared":1746,"first":0,"count":93,"site":"0x40103e34","offset":963},{"tag":"A","fx":4,"first":0,"count":441,"section":".run","offset":334940},{"tag":"A","fx":5,"first":0,"count":261,"section":".run","offset":334150},{"tag":"A","fx":12,"first":0,"count":282,"section":".run","offset":333288},{"tag":"A","fx":13,"first":0,"count":345,"section":".run","offset":332238},{"tag":"A","fx":16,"first":0,"count":207,"section":".run","offset":331602},{"tag":"A","fx":17,"first":0,"count":289,"section":".run","offset":330704},{"tag":"A","fx":18,"first":0,"count":329,"section":".run","offset":329680},{"tag":"A","fx":19,"first":0,"count":277,"section":".run","offset":328818},{"tag":"A","fx":20,"first":0,"count":594,"section":".run","offset":327016},{"tag":"A","fx":21,"first":0,"count":1063,"section":".run","offset":323784},{"tag":"A","fx":22,"first":0,"count":1067,"section":".run","offset":320522},{"tag":"A","fx":24,"first":2,"count":11,"section":".run","offset":319932},{"tag":"A","fx":24,"first":15,"count":165,"section":".run","offset":319971},{"tag":"A","fx":28,"first":0,"count":537,"section":".run","offset":318300},{"tag":"B","fx":4,"first":65,"count":1,"section":".run","offset":317808},{"tag":"B","fx":4,"first":73,"count":1,"section":".run","offset":317811},{"tag":"B","fx":4,"first":158,"count":1,"section":".run","offset":317814},{"tag":"B","fx":4,"first":163,"count":1,"section":".run","offset":317817},{"tag":"B","fx":4,"first":172,"count":1,"section":".run","offset":317820},{"tag":"B","fx":4,"first":182,"count":1,"section":".run","offset":317823},{"tag":"B","fx":4,"first":194,"count":1,"section":".run","offset":317826},{"tag":"B","fx":4,"first":199,"count":1,"section":".run","offset":317829},{"tag":"B","fx":4,"first":207,"count":1,"section":".run","offset":317832},{"tag":"B","fx":4,"first":215,"count":1,"section":".run","offset":317835},{"tag":"B","fx":4,"first":220,"count":1,"section":".run","offset":317838},{"tag":"B","fx":4,"first":225,"count":1,"section":".run","offset":317841},{"tag":"B","fx":4,"first":229,"count":1,"section":".run","offset":317844},{"tag":"B","fx":4,"first":248,"count":1,"section":".run","offset":317847},{"tag":"B","fx":4,"first":266,"count":1,"section":".run","offset":317850},{"tag":"B","fx":4,"first":281,"count":1,"section":".run","offset":317853},{"tag":"B","fx":4,"first":286,"count":1,"section":".run","offset":317856},{"tag":"B","fx":4,"first":290,"count":1,"section":".run","offset":317859},{"tag":"B","fx":4,"first":307,"count":1,"section":".run","offset":317862},{"tag":"B","fx":4,"first":325,"count":1,"section":".run","offset":317865},{"tag":"B","fx":4,"first":374,"count":1,"section":".run","offset":317868},{"tag":"B","fx":5,"first":25,"count":1,"section":".run","offset":317778},{"tag":"B","fx":5,"first":42,"count":1,"section":".run","offset":317781},{"tag":"B","fx":5,"first":62,"count":1,"section":".run","offset":317784},{"tag":"B","fx":5,"first":91,"count":1,"section":".run","offset":317787},{"tag":"B","fx":5,"first":179,"count":1,"section":".run","offset":317790},{"tag":"B","fx":5,"first":181,"count":1,"section":".run","offset":317793},{"tag":"B","fx":12,"first":62,"count":1,"section":".run","offset":317698},{"tag":"B","fx":12,"first":64,"count":1,"section":".run","offset":317701},{"tag":"B","fx":12,"first":68,"count":1,"section":".run","offset":317704},{"tag":"B","fx":12,"first":70,"count":1,"section":".run","offset":317707},{"tag":"B","fx":12,"first":91,"count":1,"section":".run","offset":317710},{"tag":"B","fx":12,"first":93,"count":1,"section":".run","offset":317713},{"tag":"B","fx":12,"first":97,"count":1,"section":".run","offset":317716},{"tag":"B","fx":12,"first":99,"count":1,"section":".run","offset":317719},{"tag":"B","fx":12,"first":165,"count":1,"section":".run","offset":317722},{"tag":"B","fx":12,"first":170,"count":1,"section":".run","offset":317725},{"tag":"B","fx":12,"first":172,"count":1,"section":".run","offset":317728},{"tag":"B","fx":12,"first":174,"count":1,"section":".run","offset":317731},{"tag":"B","fx":12,"first":176,"count":1,"section":".run","offset":317734},{"tag":"B","fx":12,"first":180,"count":1,"section":".run","offset":317737},{"tag":"B","fx":12,"first":182,"count":1,"section":".run","offset":317740},{"tag":"B","fx":12,"first":193,"count":1,"section":".run","offset":317743},{"tag":"B","fx":13,"first":259,"count":1,"section":".run","offset":317692},{"tag":"B","fx":16,"first":23,"count":1,"section":".run","offset":317676},{"tag":"B","fx":16,"first":27,"count":1,"section":".run","offset":317679},{"tag":"B","fx":16,"first":206,"count":1,"section":".run","offset":317682},{"tag":"B","fx":17,"first":30,"count":1,"section":".run","offset":317656},{"tag":"B","fx":17,"first":34,"count":1,"section":".run","offset":317659},{"tag":"B","fx":17,"first":118,"count":1,"section":".run","offset":317662},{"tag":"B","fx":17,"first":288,"count":1,"section":".run","offset":317665},{"tag":"B","fx":18,"first":48,"count":1,"section":".run","offset":317626},{"tag":"B","fx":18,"first":82,"count":1,"section":".run","offset":317629},{"tag":"B","fx":18,"first":87,"count":1,"section":".run","offset":317632},{"tag":"B","fx":18,"first":91,"count":1,"section":".run","offset":317635},{"tag":"B","fx":18,"first":260,"count":1,"section":".run","offset":317638},{"tag":"B","fx":18,"first":328,"count":1,"section":".run","offset":317641},{"tag":"B","fx":19,"first":109,"count":1,"section":".run","offset":317610},{"tag":"B","fx":19,"first":149,"count":1,"section":".run","offset":317613},{"tag":"B","fx":19,"first":276,"count":1,"section":".run","offset":317616},{"tag":"B","fx":20,"first":102,"count":1,"section":".run","offset":317550},{"tag":"B","fx":20,"first":107,"count":1,"section":".run","offset":317553},{"tag":"B","fx":20,"first":116,"count":1,"section":".run","offset":317556},{"tag":"B","fx":20,"first":167,"count":1,"section":".run","offset":317559},{"tag":"B","fx":20,"first":185,"count":1,"section":".run","offset":317562},{"tag":"B","fx":20,"first":239,"count":1,"section":".run","offset":317565},{"tag":"B","fx":20,"first":322,"count":1,"section":".run","offset":317568},{"tag":"B","fx":20,"first":403,"count":1,"section":".run","offset":317571},{"tag":"B","fx":20,"first":425,"count":1,"section":".run","offset":317574},{"tag":"B","fx":20,"first":517,"count":1,"section":".run","offset":317577},{"tag":"B","fx":20,"first":550,"count":1,"section":".run","offset":317580},{"tag":"B","fx":20,"first":590,"count":1,"section":".run","offset":317583},{"tag":"B","fx":21,"first":15,"count":1,"section":".run","offset":317504},{"tag":"B","fx":21,"first":374,"count":1,"section":".run","offset":317507},{"tag":"B","fx":21,"first":406,"count":1,"section":".run","offset":317510},{"tag":"B","fx":21,"first":432,"count":1,"section":".run","offset":317513},{"tag":"B","fx":21,"first":470,"count":1,"section":".run","offset":317516},{"tag":"B","fx":21,"first":478,"count":1,"section":".run","offset":317519},{"tag":"B","fx":21,"first":481,"count":1,"section":".run","offset":317522},{"tag":"B","fx":21,"first":574,"count":1,"section":".run","offset":317525},{"tag":"B","fx":21,"first":800,"count":1,"section":".run","offset":317528},{"tag":"B","fx":22,"first":202,"count":1,"section":".run","offset":317434},{"tag":"B","fx":22,"first":315,"count":1,"section":".run","offset":317437},{"tag":"B","fx":22,"first":402,"count":1,"section":".run","offset":317440},{"tag":"B","fx":22,"first":404,"count":1,"section":".run","offset":317443},{"tag":"B","fx":22,"first":417,"count":1,"section":".run","offset":317446},{"tag":"B","fx":22,"first":457,"count":1,"section":".run","offset":317449},{"tag":"B","fx":22,"first":461,"count":1,"section":".run","offset":317452},{"tag":"B","fx":22,"first":465,"count":1,"section":".run","offset":317455},{"tag":"B","fx":22,"first":492,"count":1,"section":".run","offset":317458},{"tag":"B","fx":22,"first":719,"count":1,"section":".run","offset":317461},{"tag":"B","fx":22,"first":746,"count":1,"section":".run","offset":317464},{"tag":"B","fx":22,"first":800,"count":1,"section":".run","offset":317467},{"tag":"B","fx":22,"first":842,"count":1,"section":".run","offset":317470},{"tag":"B","fx":22,"first":1051,"count":1,"section":".run","offset":317473}]}]} +{"schema":1,"packageSha256":"02e322e1259e6a1464b02b2cb223dfedbac74252dcf7056441939ba34b9956e5","variants":[{"layout":"tracks","identity":"16ef05c1da3de47871ce73f80155d3e658df7c62bc05028f694ac1e405232d24","packageSha256":"a5b12fb4b70013a0168bb67a9a8f7cf9642ad77a790139a81f0f6c6603867cf6","patch":[[15848,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202000200000005250101010905820200020000000525010103080b04020100200009040400000101200009240100020a2e000008240a100105000011240211030600\""]],[15852,1,[" \"0x400bf48c\","," 10"," ],"," ["," \"hex\","," \"0c24031201010011100000000904050000010220000904050101010220001024011200010100\""," ],"," ["," \"stock\","," \"0x400ba484\","]],[15857,1,[" \"06240201041807058305000302082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000090703010601\""]],[15889,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202000200000005250101010905820200020000000525010103080b04020100200009040400000101200009240100020a2e000008240a100105000011240211030600\""]],[15893,1,[" \"0x400bf48c\","," 10"," ],"," ["," \"hex\","," \"0c24031201010011100000000904050000010220000904050101010220001024011200010100\""," ],"," ["," \"stock\","," \"0x400ba484\","]],[15898,1,[" \"06240201041807058305000302082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[16092,1,[" \"0000000071b946c8ce0c7205b2806600002c71b946c8ce0a4a80670a700113c000000000600a4239000000006100059a4eb94001d5244ef94001de742039fc0b01c44ef94001dd0a71b946c8ce0c7205b280660c4879000000004ef94001d81e4879400e20a14ef94001d81e4eb94001d6b86100001a70404ef94001e9226100000e2039fc0b01404ef94001e9584239000000004e75201023c04ec950280280fffff00006800000100023c04ec9502c4ef94001d4b84feffff848d700032039fc0b01bc223c00080000c081670c223c0008000023c1fc0b01bc4cd700034fef00084ef9000000004a3900000000670000b271b9000000000c8000000002664c740020026100009e2228000408010007670c52820c820000000465e64e75203900000000220092b9000000000481000000406f1223c10000000004800000004023c00000000042390000000070042f00610000a24a806704539766f4588f71b9000000000c80000000016608700213c0000000002039fc0b01b82239fc0b01b08081028000080000661875b900000000610000244a80670a6100003e52b9000000004e75028000000003eb88207c00000000d1c04e75760320026100ffe82228000408010007660a528253836aea70004e75284870014e75227900000000234c000842a9000c203c00080000\""]],[16101,1,[" \"71b9000000002c406100ffa62228000408010007660002384a39000000006700022e203900000000223900000000240094810c8200000400631a52b900000000220004810000040023c100000000243c000004004a3900000000661cb4b900000000640623c200000000b4b900000000630623c2000000002639000000002a39000000004a390000000066282002048000000040e3800c80000000c86f06203c000000c80c80ffffff386c06203cffffff38da80d6852e3c000003e828034c4740042a044c0750002c039c85b484640a52b9000000006000017623c60000000023c40000000023c200000000200ee188e588220ee1899081267c00000000d7c0224b26042239000000000281000003ff203c0000040090814a3900000000672c45f900000000ed89d5c1b6806208200361000120604096802a436100011645f900000000200d6100010a602a45f900000000e789d5c1b6806208200361000116601496802a436100010c45f900000000200d61000100283900000000d9b9000000002c044a39000000006704ed8e6002e78e72012081214b0008220b0281fffff0000681000010002141000c220648410081000000802141000428482a48200e53806100fdec2448204d202a000408000007676224882039fc0b01b0028000080000665674102039fc0b0140008000004000\""]],[16128,1,[" \"ffffbfff23c0fc0b01404a81660c240e52826100fd8e6100fdac200e528002800000000313c00000000070014e7570004e754cd210fe48d110fe4cea10fe002048e910fe002045ea004043e90040538066e04e7522da22da538066f84e75227c00000000721f429953816afa227c0000000070017203228043e9002053816af64239000000004e752039fc0b01580280fffff8000c80400000006d0a0c80500000006c026006203c4ec948000680000001c023c00000000020404e75610000f66100ffc6720f429853816afa2079000000002039fc0b0184e088e088e088e4880280000000030c8000000002661c700113c000000000203c00002b1123c000000000203c630000006018423900000000203c0000ac4423c000000000203c61680000208042a8000470012140000842a8000c6100ff2a2039fc0b01cc02800000ffff00800084000023c0fc0b01cc2039000000000480000000406402700023c00000000042b900000000700113c00000000013c000000000\""]],[16137,1,[" \"0000000042b90000000042b9000000004e75610000202039fc0b01cc02800000ffff23c0fc0b01cc6100feb44239000000004e752f027210203c0008000023c0fc0b01b4243c000100002039fc0b01b40280000800006704538266ee2039fc0b01b80280000800006704538166ca241f4e754a390000000066204a39000000006618700113c0000000002039800000e423c000000000600001204a3900000000670a423900000000610001427200\""]],[16146,10,[" \"0c0000000c800800000057c122412039800000e42400b4b900000000660652b90000000023c200000000e188e58806808000319024402839000000002a040285000003ff2005ed8847f900000000d7c0e78d49f900000000d9c572082a7c007fffff2c7cff8000007c0f204a7a0076007e0724102002e2a0da80420202c226c2242800042002e2a0d680420202c226c241e8008053876a00ffda240520096600004eb48d6f04240d6006b48e6c02240e20390000000090826a0244800c8000032000650652b90000000023c2000000002002e18802c028c02003b08d6f04200d6006b08e6c02200ee18802c028c045ea000853866a00ff745084508423c40000000071b90000000073b900000000b28067104a8067066100fd6e600a6100fe3e60084a8167046100f97642b946104d4e4ef94000d9a62039000000000c8000000040640c06800000040023c000000000048000000040723f24000282000003ff2602ed8b41f900000000d1c3780f429853846afae78a41f900000000d1c242984290528053816ad04e7571b946c8ce080c80000000c0661c71b946c8ce090c80000000556600009c487900000000703c600000820c80000000a16600008671b946c8ce0c0c80000000046600007671b946c8ce0d0c80000000106600006671b946c8ce0b73b946c8ce090c8000000001671e0c8000000002660000480c81000000016600003e487900000000700160240c8100000001660a487900000000700460120c810000000266000018487900000000700eb082630220022f004ef94001de5c2039fc0b01c04ef94001de6a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[17945,1,[" \"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006565663266363436666462373864633966653638353763306239326337386237323331663266373632333565653938646235313465303861323630313362356400313665663035633164613364653437383731636537336638303135356433653635386466376336326263303530323866363934616331653430353233326432\""," ],"," ["," \"stock\","," \"0x400ba95e\","," 26"," ],"," ["," \"hex\","," \"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000312e34304300000000000000000000000031366566303563316461336465343738000100000095a80000002d00000352\""]],[18622,1,[" \"302e372e31300016ef05c1da3de47871ce73f80155d3e658df7c62bc05028f694ac1e405232d2400000000200000003200000044000000480000004c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[24113,1,[" 1"]],[24277,1,[" 64"]],[24285,1,[" 768"]],[24293,1,[" 768"]],[24329,1,[" 289288"]],[24345,1,[" 288228"]],[24351,4,[]],[24357,1,[" 288308"]],[24365,1,[" 288246"]],[24369,1,[" 288280"]],[24373,1,[" 4611744"]],[24385,1,[" 4611872"," ],"," \"aud_hs\": ["," \".run\","," 308315"]],[24391,1,[" \"audio_copy64\": ["," \".run\","," 288902"," ],"," \"aud_sum\": ["," \".bss\","," 4603552"," ],"," \"audio_copy8\": ["," \".run\","," 288936"," ],"," \"audio_dtds_clear\": ["]],[24395,12,[]],[24409,1,[" 288988"]],[24413,1,[" 289040"]],[24421,1,[" 289254"]],[24433,1,[" 289728"]],[24437,1,[" 289408"]],[25801,1,[" 289812"]],[27413,1,[" 289350"]],[86016,1,[" 289812"]],[86293,8,[" 288104,"]],[86307,1,[" 288118,"]],[86314,1,[" 288130,"]],[86321,1,[" 288136,"," \"abs32\","," \"sec:.run\","," 308314"," ],"," ["," \".run\","," 288160,"]],[86335,8,[" 288204,"]],[86349,1,[" 288222,"]],[86356,1,[" 288238,"]],[86359,1,[" 138829472"]],[86363,1,[" 288282,"]],[86370,1,[" 288310,"]],[86377,1,[" 288334,"]],[86384,1,[" 288344,"]],[86391,1,[" 288350,"]],[86394,1,[" 308244"," ],"," ["," \".run\","," 288368,"," \"abs32\","," \"sec:.run\","," 308252"]],[86405,1,[" 288394,"]],[86408,1,[" 308314"]],[86412,1,[" 288402,"," \"abs32\","," \"sec:.run\","," 308288"," ],"," ["," \".run\","," 288410,"," \"abs32\","," \"sec:.run\","," 308288"," ],"," ["," \".run\","," 288416,"," \"abs32\","," \"sec:.run\","," 308292"," ],"," ["," \".run\","," 288424,"," \"abs32\","," \"sec:.run\","," 308292"," ],"," ["," \".run\","," 288430,"," \"abs32\","," \"sec:.run\","," 308248"," ],"," ["," \".run\","," 288436,"," \"abs32\","," \"sec:.run\","," 308308"," ],"," ["," \".run\","," 288442,"," \"abs32\","," \"sec:.run\","," 308314"," ],"," ["," \".run\","," 288518,"," \"abs32\","," \"sec:.run\","," 308256"," ],"," ["," \".run\","," 288528,"," \"abs32\","," \"sec:.run\","," 308248"," ],"," ["," \".run\","," 288534,"," \"abs32\","," \"sec:.run\","," 308260"," ],"," ["," \".run\","," 288540,"," \"abs32\","," \"sec:.run\","," 308264"," ],"," ["," \".run\","," 288558,"," \"abs32\","," \"sec:.bss\","," 138829600"," ],"," ["," \".run\","," 288570,"]],[86419,1,[" 288590,"," \"abs32\","," \"sec:.run\","," 308315"," ],"," ["," \".run\","," 288598,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 288628,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 288642,"," \"abs32\","," \"sec:.bss\","," 4603552"," ],"," ["," \".run\","," 288672,"," \"abs32\","," \"sec:.bss\","," 4603552"," ],"," ["," \".run\","," 288684,"," \"abs32\","," \"sec:.run\","," 308260"," ],"," ["," \".run\","," 288690,"," \"abs32\","," \"sec:.run\","," 308244"," ],"," ["," \".run\","," 288698,"," \"abs32\","," \"sec:.run\","," 308315"," ],"," ["," \".run\","," 288890,"," \"abs32\","," \"sec:.run\","," 308316"," ],"," ["," \".run\","," 288948,"," \"abs32\","," \"sec:.bss\","," 138829472"," ],"," ["," \".run\","," 288962,"," \"abs32\","," \"sec:.bss\","," 138829472"," ],"," ["," \".run\","," 288982,"," \"abs32\","," \"sec:.run\","," 308316"," ],"," ["," \".run\","," 289032,"," \"abs32\","," \"sec:.run\","," 308304"," ],"," ["," \".run\","," 289058,"," \"abs32\","," \"sec:.run\","," 308304"," ],"," ["," \".run\","," 289094,"," \"abs32\","," \"sec:.run\","," 308315"," ],"," ["," \".run\","," 289106,"," \"abs32\","," \"sec:.run\","," 308308"," ],"," ["," \".run\","," 289120,"," \"abs32\","," \"sec:.run\","," 308315"," ],"," ["," \".run\","," 289132,"," \"abs32\","," \"sec:.run\","," 308308"," ],"," ["," \".run\","," 289188,"," \"abs32\","," \"sec:.run\","," 308300"," ],"," ["," \".run\","," 289204,"," \"abs32\","," \"sec:.run\","," 308244"," ],"," ["," \".run\","," 289210,"," \"abs32\","," \"sec:.run\","," 308248"," ],"," ["," \".run\","," 289218,"," \"abs32\","," \"sec:.run\","," 308313"," ],"," ["," \".run\","," 289224,"]],[86426,1,[" 289236,"]],[86433,8,[" 289242,"]],[86447,1,[" 289248,"]],[86450,1,[" 308296"]],[86454,1,[" 289282,"]],[86457,1,[" 308313"]],[86461,1,[" 289352,"]],[86464,1,[" 308312"]],[86468,1,[" 289360,"]],[86471,1,[" 308318"]],[86475,1,[" 289370,"]],[86478,1,[" 308317"]],[86482,1,[" 289382,"]],[86485,1,[" 308268"]],[86489,1,[" 289392,"]],[86492,1,[" 308317"]],[86496,1,[" 289400,"]],[86499,1,[" 308317"]],[86503,1,[" 289442,"]],[86505,2,[" \"sec:.run\","," 308268"]],[86510,1,[" 289450,"," \"abs32\","," \"sec:.run\","," 308272"," ],"," ["," \".run\","," 289456,"," \"abs32\","," \"sec:.run\","," 308268"," ],"," ["," \".run\","," 289474,"," \"abs32\","," \"sec:.run\","," 308300"," ],"," ["," \".run\","," 289492,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 289502,"," \"abs32\","," \"sec:.bss\","," 4603552"," ],"," ["," \".run\","," 289596,"," \"abs32\","," \"sec:.run\","," 308276"," ],"," ["," \".run\","," 289616,"," \"abs32\","," \"sec:.run\","," 308280"," ],"," ["," \".run\","," 289622,"," \"abs32\","," \"sec:.run\","," 308276"," ],"," ["," \".run\","," 289672,"," \"abs32\","," \"sec:.run\","," 308300"," ],"," ["," \".run\","," 289678,"," \"abs32\","," \"sec:.run\","," 308312"," ],"," ["," \".run\","," 289684,"," \"abs32\","," \"sec:.run\","," 308313"," ],"," ["," \".run\","," 289730,"," \"abs32\","," \"sec:.run\","," 308300"," ],"," ["," \".run\","," 289750,"," \"abs32\","," \"sec:.run\","," 308300"," ],"," ["," \".run\","," 289776,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 289794,"," \"abs32\","," \"sec:.bss\","," 4603552"," ],"," ["," \".run\","," 289844,"]],[86517,372,[" 289938,"]],[86895,1,[" 289956,"]],[86902,1,[" 289976,"]],[94041,1,[" \"identity.c\": \"f208df0919d08de4db40e2c80dc04a58819acbbce2208389004b45ecb96b3bc8\","]],[94101,1,[" \"usb_base.s\": \"13d93cad9b23c165269865825cf71512650c20f3ffc7741a8b65db6a86adac9c\","]],[94105,1,[" \"usb_reserve.s\": \"6344ae08c3b9aab50bdb9f30ef45b06ead5efffc188f3fd7e50047aeaef38c35\""]]],"fills":[{"tag":"A","shared":2001,"first":0,"count":286,"site":"0x400f0ee3","offset":0},{"tag":"A","shared":2287,"first":0,"count":35,"site":"0x400f0ee3","offset":858},{"tag":"A","shared":2322,"first":0,"count":93,"site":"0x400f0ee3","offset":963},{"tag":"B","shared":1425,"first":0,"count":286,"site":"0x40103e34","offset":0},{"tag":"B","shared":1711,"first":0,"count":35,"site":"0x40103e34","offset":858},{"tag":"B","shared":1746,"first":0,"count":93,"site":"0x40103e34","offset":963},{"tag":"A","fx":4,"first":0,"count":441,"section":".run","offset":334940},{"tag":"A","fx":5,"first":0,"count":261,"section":".run","offset":334150},{"tag":"A","fx":12,"first":0,"count":282,"section":".run","offset":333288},{"tag":"A","fx":13,"first":0,"count":345,"section":".run","offset":332238},{"tag":"A","fx":16,"first":0,"count":207,"section":".run","offset":331602},{"tag":"A","fx":17,"first":0,"count":289,"section":".run","offset":330704},{"tag":"A","fx":18,"first":0,"count":329,"section":".run","offset":329680},{"tag":"A","fx":19,"first":0,"count":277,"section":".run","offset":328818},{"tag":"A","fx":20,"first":0,"count":594,"section":".run","offset":327016},{"tag":"A","fx":21,"first":0,"count":1063,"section":".run","offset":323784},{"tag":"A","fx":22,"first":0,"count":1067,"section":".run","offset":320522},{"tag":"A","fx":24,"first":2,"count":11,"section":".run","offset":319932},{"tag":"A","fx":24,"first":15,"count":165,"section":".run","offset":319971},{"tag":"A","fx":28,"first":0,"count":537,"section":".run","offset":318300},{"tag":"B","fx":4,"first":65,"count":1,"section":".run","offset":317808},{"tag":"B","fx":4,"first":73,"count":1,"section":".run","offset":317811},{"tag":"B","fx":4,"first":158,"count":1,"section":".run","offset":317814},{"tag":"B","fx":4,"first":163,"count":1,"section":".run","offset":317817},{"tag":"B","fx":4,"first":172,"count":1,"section":".run","offset":317820},{"tag":"B","fx":4,"first":182,"count":1,"section":".run","offset":317823},{"tag":"B","fx":4,"first":194,"count":1,"section":".run","offset":317826},{"tag":"B","fx":4,"first":199,"count":1,"section":".run","offset":317829},{"tag":"B","fx":4,"first":207,"count":1,"section":".run","offset":317832},{"tag":"B","fx":4,"first":215,"count":1,"section":".run","offset":317835},{"tag":"B","fx":4,"first":220,"count":1,"section":".run","offset":317838},{"tag":"B","fx":4,"first":225,"count":1,"section":".run","offset":317841},{"tag":"B","fx":4,"first":229,"count":1,"section":".run","offset":317844},{"tag":"B","fx":4,"first":248,"count":1,"section":".run","offset":317847},{"tag":"B","fx":4,"first":266,"count":1,"section":".run","offset":317850},{"tag":"B","fx":4,"first":281,"count":1,"section":".run","offset":317853},{"tag":"B","fx":4,"first":286,"count":1,"section":".run","offset":317856},{"tag":"B","fx":4,"first":290,"count":1,"section":".run","offset":317859},{"tag":"B","fx":4,"first":307,"count":1,"section":".run","offset":317862},{"tag":"B","fx":4,"first":325,"count":1,"section":".run","offset":317865},{"tag":"B","fx":4,"first":374,"count":1,"section":".run","offset":317868},{"tag":"B","fx":5,"first":25,"count":1,"section":".run","offset":317778},{"tag":"B","fx":5,"first":42,"count":1,"section":".run","offset":317781},{"tag":"B","fx":5,"first":62,"count":1,"section":".run","offset":317784},{"tag":"B","fx":5,"first":91,"count":1,"section":".run","offset":317787},{"tag":"B","fx":5,"first":179,"count":1,"section":".run","offset":317790},{"tag":"B","fx":5,"first":181,"count":1,"section":".run","offset":317793},{"tag":"B","fx":12,"first":62,"count":1,"section":".run","offset":317698},{"tag":"B","fx":12,"first":64,"count":1,"section":".run","offset":317701},{"tag":"B","fx":12,"first":68,"count":1,"section":".run","offset":317704},{"tag":"B","fx":12,"first":70,"count":1,"section":".run","offset":317707},{"tag":"B","fx":12,"first":91,"count":1,"section":".run","offset":317710},{"tag":"B","fx":12,"first":93,"count":1,"section":".run","offset":317713},{"tag":"B","fx":12,"first":97,"count":1,"section":".run","offset":317716},{"tag":"B","fx":12,"first":99,"count":1,"section":".run","offset":317719},{"tag":"B","fx":12,"first":165,"count":1,"section":".run","offset":317722},{"tag":"B","fx":12,"first":170,"count":1,"section":".run","offset":317725},{"tag":"B","fx":12,"first":172,"count":1,"section":".run","offset":317728},{"tag":"B","fx":12,"first":174,"count":1,"section":".run","offset":317731},{"tag":"B","fx":12,"first":176,"count":1,"section":".run","offset":317734},{"tag":"B","fx":12,"first":180,"count":1,"section":".run","offset":317737},{"tag":"B","fx":12,"first":182,"count":1,"section":".run","offset":317740},{"tag":"B","fx":12,"first":193,"count":1,"section":".run","offset":317743},{"tag":"B","fx":13,"first":259,"count":1,"section":".run","offset":317692},{"tag":"B","fx":16,"first":23,"count":1,"section":".run","offset":317676},{"tag":"B","fx":16,"first":27,"count":1,"section":".run","offset":317679},{"tag":"B","fx":16,"first":206,"count":1,"section":".run","offset":317682},{"tag":"B","fx":17,"first":30,"count":1,"section":".run","offset":317656},{"tag":"B","fx":17,"first":34,"count":1,"section":".run","offset":317659},{"tag":"B","fx":17,"first":118,"count":1,"section":".run","offset":317662},{"tag":"B","fx":17,"first":288,"count":1,"section":".run","offset":317665},{"tag":"B","fx":18,"first":48,"count":1,"section":".run","offset":317626},{"tag":"B","fx":18,"first":82,"count":1,"section":".run","offset":317629},{"tag":"B","fx":18,"first":87,"count":1,"section":".run","offset":317632},{"tag":"B","fx":18,"first":91,"count":1,"section":".run","offset":317635},{"tag":"B","fx":18,"first":260,"count":1,"section":".run","offset":317638},{"tag":"B","fx":18,"first":328,"count":1,"section":".run","offset":317641},{"tag":"B","fx":19,"first":109,"count":1,"section":".run","offset":317610},{"tag":"B","fx":19,"first":149,"count":1,"section":".run","offset":317613},{"tag":"B","fx":19,"first":276,"count":1,"section":".run","offset":317616},{"tag":"B","fx":20,"first":102,"count":1,"section":".run","offset":317550},{"tag":"B","fx":20,"first":107,"count":1,"section":".run","offset":317553},{"tag":"B","fx":20,"first":116,"count":1,"section":".run","offset":317556},{"tag":"B","fx":20,"first":167,"count":1,"section":".run","offset":317559},{"tag":"B","fx":20,"first":185,"count":1,"section":".run","offset":317562},{"tag":"B","fx":20,"first":239,"count":1,"section":".run","offset":317565},{"tag":"B","fx":20,"first":322,"count":1,"section":".run","offset":317568},{"tag":"B","fx":20,"first":403,"count":1,"section":".run","offset":317571},{"tag":"B","fx":20,"first":425,"count":1,"section":".run","offset":317574},{"tag":"B","fx":20,"first":517,"count":1,"section":".run","offset":317577},{"tag":"B","fx":20,"first":550,"count":1,"section":".run","offset":317580},{"tag":"B","fx":20,"first":590,"count":1,"section":".run","offset":317583},{"tag":"B","fx":21,"first":15,"count":1,"section":".run","offset":317504},{"tag":"B","fx":21,"first":374,"count":1,"section":".run","offset":317507},{"tag":"B","fx":21,"first":406,"count":1,"section":".run","offset":317510},{"tag":"B","fx":21,"first":432,"count":1,"section":".run","offset":317513},{"tag":"B","fx":21,"first":470,"count":1,"section":".run","offset":317516},{"tag":"B","fx":21,"first":478,"count":1,"section":".run","offset":317519},{"tag":"B","fx":21,"first":481,"count":1,"section":".run","offset":317522},{"tag":"B","fx":21,"first":574,"count":1,"section":".run","offset":317525},{"tag":"B","fx":21,"first":800,"count":1,"section":".run","offset":317528},{"tag":"B","fx":22,"first":202,"count":1,"section":".run","offset":317434},{"tag":"B","fx":22,"first":315,"count":1,"section":".run","offset":317437},{"tag":"B","fx":22,"first":402,"count":1,"section":".run","offset":317440},{"tag":"B","fx":22,"first":404,"count":1,"section":".run","offset":317443},{"tag":"B","fx":22,"first":417,"count":1,"section":".run","offset":317446},{"tag":"B","fx":22,"first":457,"count":1,"section":".run","offset":317449},{"tag":"B","fx":22,"first":461,"count":1,"section":".run","offset":317452},{"tag":"B","fx":22,"first":465,"count":1,"section":".run","offset":317455},{"tag":"B","fx":22,"first":492,"count":1,"section":".run","offset":317458},{"tag":"B","fx":22,"first":719,"count":1,"section":".run","offset":317461},{"tag":"B","fx":22,"first":746,"count":1,"section":".run","offset":317464},{"tag":"B","fx":22,"first":800,"count":1,"section":".run","offset":317467},{"tag":"B","fx":22,"first":842,"count":1,"section":".run","offset":317470},{"tag":"B","fx":22,"first":1051,"count":1,"section":".run","offset":317473}]},{"layout":"tracks-post","identity":"08ee39dfee67ed19761e0d04917b5fdc08eb33b03b6121644f82e4324f53e983","packageSha256":"2a3b192723efd501fe7bf7a44999adf3717a2da679535c41824d6472a63a3fac","patch":[[15848,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202000200000005250101010905820200020000000525010103080b04020100200009040400000101200009240100020a2e000008240a100105000011240211030600\""]],[15852,1,[" \"0x400bf48c\","," 10"," ],"," ["," \"hex\","," \"0c24031201010011100000000904050000010220000904050101010220001024011200010100\""," ],"," ["," \"stock\","," \"0x400ba484\","]],[15857,1,[" \"06240201041807058305000302082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000090703010601\""]],[15889,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202000200000005250101010905820200020000000525010103080b04020100200009040400000101200009240100020a2e000008240a100105000011240211030600\""]],[15893,1,[" \"0x400bf48c\","," 10"," ],"," ["," \"hex\","," \"0c24031201010011100000000904050000010220000904050101010220001024011200010100\""," ],"," ["," \"stock\","," \"0x400ba484\","]],[15898,1,[" \"06240201041807058305000302082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[16092,1,[" \"0000000071b946c8ce0c7205b2806600002c71b946c8ce0a4a80670a700113c000000000600a423900000000610005c64eb94001d5244ef94001de742039fc0b01c44ef94001dd0a71b946c8ce0c7205b280660c4879000000004ef94001d81e4879400e20a14ef94001d81e4eb94001d6b86100001a70404ef94001e9226100000e2039fc0b01404ef94001e9584239000000004e75201023c04ec950280280fffff00006800000100023c04ec9502c4ef94001d4b8\""," ],"," ["," \"stock\","," \"0x40000d7e\","," 8"," ],"," ["," \"hex\","," \"4a39000000006724\""," ],"," ["," \"stock\","," \"0x4001d42c\","," 10"," ],"," ["," \"hex\","," \"67084239000000006010\""," ],"," ["," \"stock\","," \"0x4001e68e\","," 10"," ],"," ["," \"hex\","," \"670461000a4c2039fc0b01bc223c00080000c081670c223c0008000023c1fc0b01bc\""," ],"," ["," \"stock\","," \"0x40000d9a\","," 8"," ],"," ["," \"hex\","," \"4ef9000000004a3900000000670000b271b9000000000c8000000002664c740020026100009e2228000408010007670c52820c820000000465e64e75203900000000220092b9000000000481000000406f1223c10000000004800000004023c00000000042390000000070042f00610000a24a806704539766f4588f71b9000000000c80000000016608700213c0000000002039fc0b01b82239fc0b01b08081028000080000661875b900000000610000244a80670a6100003e52b9000000004e75028000000003eb88207c00000000d1c04e75760320026100ffe82228000408010007660a528253836aea70004e75284870014e75227900000000234c000842a9000c203c00080000\""]],[16101,1,[" \"71b9000000002c406100ffa62228000408010007660002384a39000000006700022e203900000000223900000000240094810c8200000400631a52b900000000220004810000040023c100000000243c000004004a3900000000661cb4b900000000640623c200000000b4b900000000630623c2000000002639000000002a39000000004a390000000066282002048000000040e3800c80000000c86f06203c000000c80c80ffffff386c06203cffffff38da80d6852e3c000003e828034c4740042a044c0750002c039c85b484640a52b9000000006000017623c60000000023c40000000023c200000000200ee188e588220ee1899081267c00000000d7c0224b26042239000000000281000003ff203c0000040090814a3900000000672c45f900000000ed89d5c1b6806208200361000120604096802a436100011645f900000000200d6100010a602a45f900000000e789d5c1b6806208200361000116601496802a436100010c45f900000000200d61000100283900000000d9b9000000002c044a39000000006704ed8e6002e78e72012081214b0008220b0281fffff0000681000010002141000c220648410081000000802141000428482a48200e53806100fdec2448204d202a000408000007676224882039fc0b01b0028000080000665674102039fc0b0140008000004000\""]],[16128,1,[" \"ffffbfff23c0fc0b01404a81660c240e52826100fd8e6100fdac200e528002800000000313c00000000070014e7570004e754cd210fe48d110fe4cea10fe002048e910fe002045ea004043e90040538066e04e7522da22da538066f84e75227c00000000721f429953816afa227c0000000070017203228043e9002053816af64239000000004e752039fc0b01580280fffff8000c80400000006d0a0c80500000006c026006203c4ec948000680000001c023c00000000020404e75610000f66100ffc6720f429853816afa2079000000002039fc0b0184e088e088e088e4880280000000030c8000000002661c700113c000000000203c00002b1123c000000000203c630000006018423900000000203c0000ac4423c000000000203c61680000208042a8000470012140000842a8000c6100ff2a2039fc0b01cc02800000ffff00800084000023c0fc0b01cc2039000000000480000000406402700023c00000000042b900000000700113c00000000013c000000000\""]],[16137,1,[" \"0000000042b90000000042b9000000004e75610000202039fc0b01cc02800000ffff23c0fc0b01cc6100feb44239000000004e752f027210203c0008000023c0fc0b01b4243c000100002039fc0b01b40280000800006704538266ee2039fc0b01b80280000800006704538166ca241f4e754a3900000000662a4a39000000006622700113c0000000002039800000e423c0000000007000610001f461000330600001644a3900000000670a423900000000610001867001610001d47200\""]],[16146,1,[" \"0c0000000c800800000057c12039800000e42400b4b900000000660652b90000000023c200000000e188e58806808000319024402839000000002a040285000003ff2005ed8847f900000000d7c0e78d49f900000000d9c543f9000000002a7c007fffff2c7cff8000007c0f4a0166000084204a7a0076007e07241042022011a4000800a1c22002e080da80420202c226c22428000442022019a4000800a1c22002e080d680420202c226c241e8008053876a00ffc62405b48d6f04240d6006b48e6c02240e23c200000000e18a02c228c2b68d6f04260d6006b68e6c02260ee18b02c328c345ea000853866a00ff8460000040204a7e07241042022011a4000800a1c2420202c226c22428000442022019a4000800a1c2420202c226c241e8008053876a00ffd245ea000853866a00ffc45084508423c400000000610001ca71b90000000073b900000000b28067104a8067066100fd20600a6100fdf060084a8167046100f92842b946104d4e4ef94000d9a62039000000000c8000000040640c06800000040023c000000000048000000040723f24000282000003ff2602ed8b41f900000000d1c3780f429853846afae78a41f900000000d1c242984290528053816ad04e752c40a98123c1000000007200a901ab8123c100000000a1c123c1000000007220a901203900000000220052817403c28223c100000000ed8841f900000000d1c0227980003c1045f90000000047f90000000049f9000000007e07755077e8000279e8000430a900023169000400023169000600044c022800ee820c82007fffff6f06243c007fffffee8b0283000000ff26343c00e483e18ae18ba6020800a1c2e082700fc8802a122c2a0004202a0008b0846f02200425440008220e4a81661c26064c003800da8326029685e883721092844c031800da816000004e7210928498802a4b4a8067122605e18be58b2a834bed0020da86538066ee4a8467102605e18be58b2a834bed0020538466f62c029c85e8862605e18be58b2a834bed0020da86538166ee260624852543000445ea000c50885089588b53876a00ff1e4e757000a900203900000000a100203900000000ab00203900000000a9004e7571b946c8ce080c80000000c0661c71b946c8ce090c800000005566000160487900000000703c6000008c0c8000000021670000900c80000000a16600014071b946c8ce0c0c80000000046600013071b946c8ce0d0c80000000106600012071b946c8ce0b73b946c8ce090c8000000001671e0c8000000002660001020c8100000001660000f8487900000000700160240c8100000001660a487900000000700460120c8100000002660000d2487900000000700eb082630220022f004ef94001de5c71b946c8ce0c0c8000000004660000ac71b946c8ce0d0c80000000106600009c71b946c8ce0b0c80000000016600008c71b946c8ce090c80000000016600007c7004b48066000074\""]],[16150,1,[" \"0x4001d13a\","," 10"," ],"," ["," \"hex\","," \"5004\""," ],"," ["," \"stock\","," \"0x4001d530\","," 10"," ],"," ["," \"hex\","," \"5008\""," ],"," ["," \"stock\","," \"0x4001ca96\","," 10"," ],"," ["," \"hex\","," \"5000207946c8ce18203c4ec95000\""," ],"," ["," \"stock\","," \"0x4001d3fa\","," 10"," ],"," ["," \"hex\","," \"7201\""," ],"," ["," \"stock\","," \"0x4001cabc\","]],[16155,1,[" \"223c000186a020394ec95004080000076712538166f0700113c0000000004ef94001de74610000144ef94001de742039fc0b01c04ef94001de6a\""," ],"," ["," \"stock\","," \"0x4001e69c\","," 8"," ],"," ["," \"hex\","," \"42390000000020394ec960000c8044ac000066084eb94001d5244e75\""," ],"," ["," \"stock\","," \"0x4001de64\","," 16"," ],"," ["," \"stock\","," \"0x40003198\","," 8"," ],"," ["," \"hex\","," \"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[17945,1,[" \"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003331316563303463336539663432323161336632326137376430306130633238626664366431363363316331613338326431333563373661313534316530306300303865653339646665653637656431393736316530643034393137623566646330386562333362303362363132313634346638326534333234663533653938\""," ],"," ["," \"stock\","," \"0x400ba992\","," 26"," ],"," ["," \"hex\","," \"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000312e34304300000000000000000000000030386565333964666565363765643139000100000095a80000002d00000352\""]],[18167,1,[" \"00000000000000000000000000000000000000000000000000000000000000000000000000002b11000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""," ],"," ["," \"hex\","," \"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000460c8122460d0ffa460bf218460c80f0000000000000000000000000000000000000000000000000000000000000000000000000151315141515151615171518151916141715181619131914191519161917191819191b131b141b151b161b171b181b191c131c161c191d131d161d191e131e161e191f131f1921132114211521162117211821192218231623172418251325142515251625172518251959135914591559165917591859195a135a165a195b135b165b195c135c165c195d145d155d175d185f135f145f155f165f175f185f1960136016601961136116611962136216621963136319651366136713671467156716671767186719681369136b146b156b166b176b186b196c136c166d136d166e136e166f146f156f166f176f186f1900151305070000000011001b13050700001100120021130507000023001201591305070000350014015f1305070000490012016513050700005b000b016b130507000066001207ff07ff00030006000c001800300018000c0006000307ff07ff00000000000001fc03fe07070603060306030603070703fe01fc00000000000007ff07ff06030603060306030707038e01fc00f8\""]],[18622,1,[" \"302e372e31300008ee39dfee67ed19761e0d04917b5fdc08eb33b03b6121644f82e4324f53e98300000000200000003200000044000000480000004c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[24113,1,[" 5"]],[24139,0,[" \"LAYOUT_TRACKS_POST\": ["," \"abs\","," 5"," ],"]],[24142,0,[" ],"," \"TRACKS16\": ["," \"abs\","," 4294967295"]],[24219,0,[" \"SETUPSTAT\": ["," \"abs\","," 4228579756"," ],"," \"EP0CTRL\": ["," \"abs\","," 4228579776"," ],"," \"EP0OUT_DTD\": ["," \"abs\","," 1321816064"," ],"," \"EP0_BUF\": ["," \"abs\","," 1321820160"," ],"," \"QH0_OUT_PTR\": ["," \"abs\","," 1187565080"," ],"]],[24277,1,[" 64"]],[24285,1,[" 768"]],[24293,1,[" 768"]],[24329,1,[" 289332"]],[24335,0,[" \"uac2_set_pending\": ["," \".run\","," 308313"," ],"," \"uac2_set_done\": ["," \".run\","," 290676"," ],"]],[24337,1,[" 288084"]],[24341,1,[" 308315"]],[24345,1,[" 288272"]],[24351,1,[" \"audio_pkt_build\": ["]],[24353,1,[" 288352"]],[24355,1,[" \"aud_tail\": ["," \".run\","," 308317"," ],"," \"audio_oldest\": ["," \".run\","," 288290"," ],"," \"audio_prime\": ["]],[24359,12,[]],[24373,1,[" 4611744"]],[24385,1,[" 4611872"," ],"," \"aud_hs\": ["," \".run\","," 308316"]],[24391,1,[" \"audio_copy64\": ["]],[24397,1,[" 4603552"]],[24401,1,[" 288980"]],[24405,1,[" 288990"]],[24409,1,[" 289032"]],[24413,1,[" 289084"]],[24417,1,[" 308314"]],[24421,1,[" 289298"]],[24425,1,[" 308319"]],[24429,1,[" 308318"," ],"," \"post_frame\": ["," \".run\","," 289934"," ],"," \"post_emac_leave\": ["," \".run\","," 290254"]],[24433,1,[" 289850"]],[24435,1,[" \"post_gtab\": ["]],[24437,1,[" 308688"]],[24442,0,[" ],"," \"SNAP_PTR\": ["," \"abs\","," 2147499024"," ],"," \"post_emac\": ["," \".run\","," 308324"," ],"," \"post_hidx\": ["," \".run\","," 308320"," ],"," \"post_hist\": ["," \".run\","," 308336"," ],"," \"post_state\": ["," \".run\","," 308592"," ],"," \"post_xlv\": ["," \".run\","," 309200"]],[25801,1,[" 290284"]],[27413,1,[" 289394"]],[86016,1,[" 290284"]],[86265,1,[" 288000,"," \"abs32\","," \"sec:.run\","," 308313"," ],"," ["," \".run\","," 288020,"," \"abs32\","," \"sec:.run\","," 308313"," ],"," ["," \".run\","," 288080,"]],[86272,1,[" 288086,"]],[86279,1,[" 288096,"," \"abs32\","," \"sec:.run\","," 308315"," ],"," ["," \".run\","," 288140,"," \"abs32\","," \"sec:.run\","," 308300"," ],"," ["," \".run\","," 288148,"," \"abs32\","," \"sec:.run\","," 308244"," ],"," ["," \".run\","," 288162,"," \"abs32\","," \"sec:.run\","," 308296"," ],"," ["," \".run\","," 288174,"," \"abs32\","," \"sec:.run\","," 308244"," ],"," ["," \".run\","," 288180,"," \"abs32\","," \"sec:.run\","," 308315"," ],"," ["," \".run\","," 288204,"," \"abs32\","," \"sec:.run\","," 308315"," ],"," ["," \".run\","," 288220,"," \"abs32\","," \"sec:.run\","," 308315"," ],"," ["," \".run\","," 288248,"," \"abs32\","," \"sec:.run\","," 308317"," ],"," ["," \".run\","," 288266,"," \"abs32\","," \"sec:.run\","," 308284"," ],"," ["," \".run\","," 288282,"," \"abs32\","," \"sec:.bss\","," 138829472"," ],"," ["," \".run\","," 288326,"," \"abs32\","," \"sec:.run\","," 308304"," ],"," ["," \".run\","," 288354,"," \"abs32\","," \"sec:.run\","," 308317"," ],"," ["," \".run\","," 288378,"," \"abs32\","," \"sec:.run\","," 308312"," ],"," ["," \".run\","," 288388,"," \"abs32\","," \"sec:.run\","," 308300"," ],"," ["," \".run\","," 288394,"," \"abs32\","," \"sec:.run\","," 308244"," ],"," ["," \".run\","," 288412,"," \"abs32\","," \"sec:.run\","," 308252"," ],"," ["," \".run\","," 288426,"," \"abs32\","," \"sec:.run\","," 308244"," ],"," ["," \".run\","," 288438,"," \"abs32\","," \"sec:.run\","," 308315"," ],"," ["," \".run\","," 288446,"," \"abs32\","," \"sec:.run\","," 308288"," ],"," ["," \".run\","," 288454,"," \"abs32\","," \"sec:.run\","," 308288"," ],"," ["," \".run\","," 288460,"," \"abs32\","," \"sec:.run\","," 308292"," ],"," ["," \".run\","," 288468,"," \"abs32\","," \"sec:.run\","," 308292"," ],"," ["," \".run\","," 288474,"," \"abs32\","," \"sec:.run\","," 308248"," ],"," ["," \".run\","," 288480,"," \"abs32\","," \"sec:.run\","," 308308"," ],"," ["," \".run\","," 288486,"," \"abs32\","," \"sec:.run\","," 308315"," ],"," ["," \".run\","," 288562,"," \"abs32\","," \"sec:.run\","," 308256"," ],"," ["," \".run\","," 288572,"," \"abs32\","," \"sec:.run\","," 308248"," ],"," ["," \".run\","," 288578,"," \"abs32\","," \"sec:.run\","," 308260"," ],"," ["," \".run\","," 288584,"," \"abs32\","," \"sec:.run\","," 308264"," ],"," ["," \".run\","," 288602,"," \"abs32\","," \"sec:.bss\","," 138829600"," ],"," ["," \".run\","," 288614,"," \"abs32\","," \"sec:.run\","," 308244"," ],"," ["," \".run\","," 288634,"," \"abs32\","," \"sec:.run\","," 308316"," ],"," ["," \".run\","," 288642,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 288672,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 288686,"," \"abs32\","," \"sec:.bss\","," 4603552"," ],"," ["," \".run\","," 288716,"," \"abs32\","," \"sec:.bss\","," 4603552"," ],"," ["," \".run\","," 288728,"," \"abs32\","," \"sec:.run\","," 308260"," ],"," ["," \".run\","," 288734,"," \"abs32\","," \"sec:.run\","," 308244"," ],"," ["," \".run\","," 288742,"," \"abs32\","," \"sec:.run\","," 308316"," ],"," ["," \".run\","," 288934,"," \"abs32\","," \"sec:.run\","," 308317"," ],"," ["," \".run\","," 288992,"," \"abs32\","," \"sec:.bss\","," 138829472"," ],"," ["," \".run\","," 289006,"," \"abs32\","," \"sec:.bss\","," 138829472"," ],"," ["," \".run\","," 289026,"," \"abs32\","," \"sec:.run\","," 308317"," ],"," ["," \".run\","," 289076,"," \"abs32\","," \"sec:.run\","," 308304"," ],"," ["," \".run\","," 289102,"," \"abs32\","," \"sec:.run\","," 308304"," ],"," ["," \".run\","," 289138,"," \"abs32\","," \"sec:.run\","," 308316"," ],"," ["," \".run\","," 289150,"," \"abs32\","," \"sec:.run\","," 308308"," ],"," ["," \".run\","," 289164,"," \"abs32\","," \"sec:.run\","," 308316"," ],"," ["," \".run\","," 289176,"," \"abs32\","," \"sec:.run\","," 308308"," ],"," ["," \".run\","," 289232,"," \"abs32\","," \"sec:.run\","," 308300"," ],"," ["," \".run\","," 289248,"," \"abs32\","," \"sec:.run\","," 308244"," ],"," ["," \".run\","," 289254,"," \"abs32\","," \"sec:.run\","," 308248"," ],"," ["," \".run\","," 289262,"]],[86286,8,[" 289268,"]],[86300,1,[" 289280,"]],[86303,1,[" 308288"]],[86307,1,[" 289286,"," \"abs32\","," \"sec:.run\","," 308292"," ],"," ["," \".run\","," 289292,"]],[86314,8,[" 289326,"]],[86328,50,[" 289396,"]],[86384,1,[" 289404,"]],[86387,1,[" 308319"]],[86391,330,[" 289414,"]],[86727,1,[" 289426,"]],[86730,1,[" 308268"," ],"," ["," \".run\","," 289446,"," \"abs32\","," \"sec:.run\","," 308318"]],[86737,0,[" 308318"," ],"," ["," \".run\","," 289500,"," \"abs32\","," \"sec:.run\","]],[86741,1,[" 289508,"]],[86744,8,[" 308272"]],[86762,15,[" 289532,"]],[86783,1,[" 289550,"]],[86790,1,[" 289560,"]],[86793,1,[" 4603552"]],[86797,1,[" 289568,"]],[86799,2,[" \"sec:.run\","," 308688"]],[86804,8,[" 289678,"]],[86818,15,[" 289790,"]],[86839,1,[" 289800,"]],[86846,1,[" 289806,"," \"abs32\","," \"sec:.run\","," 308314"," ],"," ["," \".run\","," 289852,"," \"abs32\","," \"sec:.run\","," 308300"," ],"," ["," \".run\","," 289872,"," \"abs32\","," \"sec:.run\","," 308300"," ],"," ["," \".run\","," 289898,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 289916,"," \"abs32\","," \"sec:.bss\","," 4603552"," ],"," ["," \".run\","," 289940,"," \"abs32\","," \"sec:.run\","," 308324"," ],"," ["," \".run\","," 289952,"," \"abs32\","," \"sec:.run\","," 308332"," ],"," ["," \".run\","," 289960,"," \"abs32\","," \"sec:.run\","," 308328"," ],"," ["," \".run\","," 289970,"," \"abs32\","," \"sec:.run\","," 308320"," ],"," ["," \".run\","," 289984,"," \"abs32\","," \"sec:.run\","," 308320"," ],"," ["," \".run\","," 289992,"," \"abs32\","," \"sec:.run\","," 308336"," ],"," ["," \".run\","," 290006,"," \"abs32\","," \"sec:.run\","," 308592"," ],"," ["," \".run\","," 290012,"," \"abs32\","," \"sec:.run\","," 308688"," ],"," ["," \".run\","," 290018,"," \"abs32\","," \"sec:.run\","," 309200"," ],"," ["," \".run\","," 290260,"," \"abs32\","," \"sec:.run\","," 308328"," ],"," ["," \".run\","," 290268,"," \"abs32\","," \"sec:.run\","," 308332"," ],"," ["," \".run\","," 290276,"," \"abs32\","," \"sec:.run\","," 308324"," ],"," ["," \".run\","," 290316,"," \"abs32\","," \"sec:.run\","," 308244"," ],"," ["," \".run\","," 290420,"," \"abs32\","," \"sec:.run\","," 308242"," ],"," ["," \".run\","," 290438,"," \"abs32\","," \"sec:.run\","," 308224"," ],"," ["," \".run\","," 290458,"," \"abs32\","," \"sec:.run\","," 308228"," ],"," ["," \".run\","," 290644,"]],[86853,1,[" 290686,"]],[86856,50,[" 308313"]],[94041,1,[" \"identity.c\": \"044cfc0591bbf317e21a14fe3d5081169aa95e889e60db1dd971f4d4273cacf6\","]],[94101,1,[" \"usb_base.s\": \"13d93cad9b23c165269865825cf71512650c20f3ffc7741a8b65db6a86adac9c\","]],[94104,2,[" \"usbaudio.s\": \"5bd354a7c52ab8b4cf7d7515aa47ccbbd4ec3802bb6cf2682df81b86590dbd21\","," \"usb_reserve.s\": \"b87782d0ddb1c0649654596dc614ac1df144ad3ebe149164e2324be3b29d3c0b\""]]],"fills":[{"tag":"A","shared":2001,"first":0,"count":286,"site":"0x400f0ee3","offset":0},{"tag":"A","shared":2287,"first":0,"count":35,"site":"0x400f0ee3","offset":858},{"tag":"A","shared":2322,"first":0,"count":93,"site":"0x400f0ee3","offset":963},{"tag":"B","shared":1425,"first":0,"count":286,"site":"0x40103e34","offset":0},{"tag":"B","shared":1711,"first":0,"count":35,"site":"0x40103e34","offset":858},{"tag":"B","shared":1746,"first":0,"count":93,"site":"0x40103e34","offset":963},{"tag":"A","fx":4,"first":0,"count":441,"section":".run","offset":334940},{"tag":"A","fx":5,"first":0,"count":261,"section":".run","offset":334150},{"tag":"A","fx":12,"first":0,"count":282,"section":".run","offset":333288},{"tag":"A","fx":13,"first":0,"count":345,"section":".run","offset":332238},{"tag":"A","fx":16,"first":0,"count":207,"section":".run","offset":331602},{"tag":"A","fx":17,"first":0,"count":289,"section":".run","offset":330704},{"tag":"A","fx":18,"first":0,"count":329,"section":".run","offset":329680},{"tag":"A","fx":19,"first":0,"count":277,"section":".run","offset":328818},{"tag":"A","fx":20,"first":0,"count":594,"section":".run","offset":327016},{"tag":"A","fx":21,"first":0,"count":1063,"section":".run","offset":323784},{"tag":"A","fx":22,"first":0,"count":1067,"section":".run","offset":320522},{"tag":"A","fx":24,"first":2,"count":11,"section":".run","offset":319932},{"tag":"A","fx":24,"first":15,"count":165,"section":".run","offset":319971},{"tag":"A","fx":28,"first":0,"count":537,"section":".run","offset":318300},{"tag":"B","fx":4,"first":65,"count":1,"section":".run","offset":317808},{"tag":"B","fx":4,"first":73,"count":1,"section":".run","offset":317811},{"tag":"B","fx":4,"first":158,"count":1,"section":".run","offset":317814},{"tag":"B","fx":4,"first":163,"count":1,"section":".run","offset":317817},{"tag":"B","fx":4,"first":172,"count":1,"section":".run","offset":317820},{"tag":"B","fx":4,"first":182,"count":1,"section":".run","offset":317823},{"tag":"B","fx":4,"first":194,"count":1,"section":".run","offset":317826},{"tag":"B","fx":4,"first":199,"count":1,"section":".run","offset":317829},{"tag":"B","fx":4,"first":207,"count":1,"section":".run","offset":317832},{"tag":"B","fx":4,"first":215,"count":1,"section":".run","offset":317835},{"tag":"B","fx":4,"first":220,"count":1,"section":".run","offset":317838},{"tag":"B","fx":4,"first":225,"count":1,"section":".run","offset":317841},{"tag":"B","fx":4,"first":229,"count":1,"section":".run","offset":317844},{"tag":"B","fx":4,"first":248,"count":1,"section":".run","offset":317847},{"tag":"B","fx":4,"first":266,"count":1,"section":".run","offset":317850},{"tag":"B","fx":4,"first":281,"count":1,"section":".run","offset":317853},{"tag":"B","fx":4,"first":286,"count":1,"section":".run","offset":317856},{"tag":"B","fx":4,"first":290,"count":1,"section":".run","offset":317859},{"tag":"B","fx":4,"first":307,"count":1,"section":".run","offset":317862},{"tag":"B","fx":4,"first":325,"count":1,"section":".run","offset":317865},{"tag":"B","fx":4,"first":374,"count":1,"section":".run","offset":317868},{"tag":"B","fx":5,"first":25,"count":1,"section":".run","offset":317778},{"tag":"B","fx":5,"first":42,"count":1,"section":".run","offset":317781},{"tag":"B","fx":5,"first":62,"count":1,"section":".run","offset":317784},{"tag":"B","fx":5,"first":91,"count":1,"section":".run","offset":317787},{"tag":"B","fx":5,"first":179,"count":1,"section":".run","offset":317790},{"tag":"B","fx":5,"first":181,"count":1,"section":".run","offset":317793},{"tag":"B","fx":12,"first":62,"count":1,"section":".run","offset":317698},{"tag":"B","fx":12,"first":64,"count":1,"section":".run","offset":317701},{"tag":"B","fx":12,"first":68,"count":1,"section":".run","offset":317704},{"tag":"B","fx":12,"first":70,"count":1,"section":".run","offset":317707},{"tag":"B","fx":12,"first":91,"count":1,"section":".run","offset":317710},{"tag":"B","fx":12,"first":93,"count":1,"section":".run","offset":317713},{"tag":"B","fx":12,"first":97,"count":1,"section":".run","offset":317716},{"tag":"B","fx":12,"first":99,"count":1,"section":".run","offset":317719},{"tag":"B","fx":12,"first":165,"count":1,"section":".run","offset":317722},{"tag":"B","fx":12,"first":170,"count":1,"section":".run","offset":317725},{"tag":"B","fx":12,"first":172,"count":1,"section":".run","offset":317728},{"tag":"B","fx":12,"first":174,"count":1,"section":".run","offset":317731},{"tag":"B","fx":12,"first":176,"count":1,"section":".run","offset":317734},{"tag":"B","fx":12,"first":180,"count":1,"section":".run","offset":317737},{"tag":"B","fx":12,"first":182,"count":1,"section":".run","offset":317740},{"tag":"B","fx":12,"first":193,"count":1,"section":".run","offset":317743},{"tag":"B","fx":13,"first":259,"count":1,"section":".run","offset":317692},{"tag":"B","fx":16,"first":23,"count":1,"section":".run","offset":317676},{"tag":"B","fx":16,"first":27,"count":1,"section":".run","offset":317679},{"tag":"B","fx":16,"first":206,"count":1,"section":".run","offset":317682},{"tag":"B","fx":17,"first":30,"count":1,"section":".run","offset":317656},{"tag":"B","fx":17,"first":34,"count":1,"section":".run","offset":317659},{"tag":"B","fx":17,"first":118,"count":1,"section":".run","offset":317662},{"tag":"B","fx":17,"first":288,"count":1,"section":".run","offset":317665},{"tag":"B","fx":18,"first":48,"count":1,"section":".run","offset":317626},{"tag":"B","fx":18,"first":82,"count":1,"section":".run","offset":317629},{"tag":"B","fx":18,"first":87,"count":1,"section":".run","offset":317632},{"tag":"B","fx":18,"first":91,"count":1,"section":".run","offset":317635},{"tag":"B","fx":18,"first":260,"count":1,"section":".run","offset":317638},{"tag":"B","fx":18,"first":328,"count":1,"section":".run","offset":317641},{"tag":"B","fx":19,"first":109,"count":1,"section":".run","offset":317610},{"tag":"B","fx":19,"first":149,"count":1,"section":".run","offset":317613},{"tag":"B","fx":19,"first":276,"count":1,"section":".run","offset":317616},{"tag":"B","fx":20,"first":102,"count":1,"section":".run","offset":317550},{"tag":"B","fx":20,"first":107,"count":1,"section":".run","offset":317553},{"tag":"B","fx":20,"first":116,"count":1,"section":".run","offset":317556},{"tag":"B","fx":20,"first":167,"count":1,"section":".run","offset":317559},{"tag":"B","fx":20,"first":185,"count":1,"section":".run","offset":317562},{"tag":"B","fx":20,"first":239,"count":1,"section":".run","offset":317565},{"tag":"B","fx":20,"first":322,"count":1,"section":".run","offset":317568},{"tag":"B","fx":20,"first":403,"count":1,"section":".run","offset":317571},{"tag":"B","fx":20,"first":425,"count":1,"section":".run","offset":317574},{"tag":"B","fx":20,"first":517,"count":1,"section":".run","offset":317577},{"tag":"B","fx":20,"first":550,"count":1,"section":".run","offset":317580},{"tag":"B","fx":20,"first":590,"count":1,"section":".run","offset":317583},{"tag":"B","fx":21,"first":15,"count":1,"section":".run","offset":317504},{"tag":"B","fx":21,"first":374,"count":1,"section":".run","offset":317507},{"tag":"B","fx":21,"first":406,"count":1,"section":".run","offset":317510},{"tag":"B","fx":21,"first":432,"count":1,"section":".run","offset":317513},{"tag":"B","fx":21,"first":470,"count":1,"section":".run","offset":317516},{"tag":"B","fx":21,"first":478,"count":1,"section":".run","offset":317519},{"tag":"B","fx":21,"first":481,"count":1,"section":".run","offset":317522},{"tag":"B","fx":21,"first":574,"count":1,"section":".run","offset":317525},{"tag":"B","fx":21,"first":800,"count":1,"section":".run","offset":317528},{"tag":"B","fx":22,"first":202,"count":1,"section":".run","offset":317434},{"tag":"B","fx":22,"first":315,"count":1,"section":".run","offset":317437},{"tag":"B","fx":22,"first":402,"count":1,"section":".run","offset":317440},{"tag":"B","fx":22,"first":404,"count":1,"section":".run","offset":317443},{"tag":"B","fx":22,"first":417,"count":1,"section":".run","offset":317446},{"tag":"B","fx":22,"first":457,"count":1,"section":".run","offset":317449},{"tag":"B","fx":22,"first":461,"count":1,"section":".run","offset":317452},{"tag":"B","fx":22,"first":465,"count":1,"section":".run","offset":317455},{"tag":"B","fx":22,"first":492,"count":1,"section":".run","offset":317458},{"tag":"B","fx":22,"first":719,"count":1,"section":".run","offset":317461},{"tag":"B","fx":22,"first":746,"count":1,"section":".run","offset":317464},{"tag":"B","fx":22,"first":800,"count":1,"section":".run","offset":317467},{"tag":"B","fx":22,"first":842,"count":1,"section":".run","offset":317470},{"tag":"B","fx":22,"first":1051,"count":1,"section":".run","offset":317473},{"curve":"usb-post-xlv","tag":"A","first":0,"count":256,"section":".run","offset":309200}]},{"layout":"main-cue","identity":"ad8c5256987836fbfc9f6f36f671e09730ab5e0ef7dd4ccd2aa28d28af4af1ad","packageSha256":"52d886cdd6595a01caa91b4ed5852736431ffb561c2dc35bd96957d5a29a6bf7","patch":[[15848,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202000200000005250101010905820200020000000525010103080b04020100200009040400000101200009240100020a2e000008240a100105000011240211030600100400000000000000000c24031201010011100000000904050000010220000904050101010220001024011200010100\""]],[15852,1,[" \"0x400c6780\","]],[15857,1,[" \"06240201041807058305c00002082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000090703010601\""]],[15889,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202000200000005250101010905820200020000000525010103080b04020100200009040400000101200009240100020a2e000008240a100105000011240211030600100400000000000000000c24031201010011100000000904050000010220000904050101010220001024011200010100\""]],[15893,1,[" \"0x400c6780\","]],[15898,1,[" \"06240201041807058305c00002082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[16092,1,[" \"0000000071b946c8ce0c7205b2806600002c71b946c8ce0a4a80670a700113c000000000600a423900000000610005884eb94001d5244ef94001de742039fc0b01c44ef94001dd0a71b946c8ce0c7205b280660c4879000000004ef94001d81e4879400e20a14ef94001d81e4eb94001d6b86100001a70404ef94001e9226100000e2039fc0b01404ef94001e9584239000000004e75201023c04ec950280280fffff00006800000100023c04ec9502c4ef94001d4b84feffff848d700032039fc0b01bc223c00080000c081670c223c0008000023c1fc0b01bc4cd700034fef00084ef9000000004a3900000000670000b271b9000000000c8000000002664c740020026100009e2228000408010007670c52820c820000000465e64e75203900000000220092b9000000000481000000406f1223c10000000004800000004023c00000000042390000000070042f00610000a24a806704539766f4588f71b9000000000c80000000016608700213c0000000002039fc0b01b82239fc0b01b08081028000080000661875b900000000610000244a80670a6100003e52b9000000004e75028000000003eb88207c00000000d1c04e75760320026100ffe82228000408010007660a528253836aea70004e75284870014e75227900000000234c000842a9000c203c00080000\""]],[16101,1,[" \"71b9000000002c406100ffa62228000408010007660002324a390000000067000228203900000000223900000000240094810c8200000400631a52b900000000220004810000040023c100000000243c000004004a3900000000661cb4b900000000640623c200000000b4b900000000630623c2000000002639000000002a39000000004a390000000066282002048000000040e3800c80000000c86f06203c000000c80c80ffffff386c06203cffffff38da80d6852e3c000003e828034c4740042a044c0750002c039c85b484640a52b9000000006000017023c60000000023c40000000023c200000000200ee188e388267c00000000d7c0224b26042239000000000281000003ff203c0000040090814a3900000000672c45f900000000e989d5c1b6806208200361000120604096802a436100011645f900000000200d6100010a602a45f900000000e789d5c1b680620820036100010a601496802a436100010045f900000000200d610000f4283900000000d9b9000000002c044a39000000006704e98e6002e78e72012081214b0008220b0281fffff0000681000010002141000c220648410081000000802141000428482a48200e53806100fdf22448204d202a000408000007676224882039fc0b01b0028000080000665674102039fc0b0140008000004000\""]],[16128,1,[" \"ffffbfff23c0fc0b01404a81660c240e52826100fd946100fdb2200e528002800000000313c00000000070014e7570004e754cd2001e48d1001e45ea001043e90010538066ec4e7522da22da538066f84e75227c00000000721f429953816afa227c0000000070017203228043e9002053816af64239000000004e752039fc0b01580280fffff8000c80400000006d0a0c80500000006c026006203c4ec948000680000001c023c00000000020404e75610000f66100ffc6720f429853816afa2079000000002039fc0b0184e088e088e088e4880280000000030c8000000002661c700113c000000000203c00002b1123c000000000203c60c000006018423900000000203c0000ac4423c000000000203c61680000208042a8000470012140000842a8000c6100ff2a2039fc0b01cc02800000ffff00800084000023c0fc0b01cc2039000000000480000000406402700023c00000000042b900000000700113c00000000013c000000000\""]],[16137,1,[" \"0000000042b90000000042b9000000004e75610000202039fc0b01cc02800000ffff23c0fc0b01cc6100feb44239000000004e752f027210203c0008000023c0fc0b01b4243c000100002039fc0b01b40280000800006704538266ee2039fc0b01b80280000800006704538166ca241f4e754a390000000066204a39000000006618700113c0000000002039800000e423c000000000600000cc4a3900000000670a423900000000610000ee7200\""]],[16146,10,[" \"0c0000000c800800000057c122412839000000002a040285000003ffe98d47f900000000d7c52a040285000003ffe78d49f900000000d9c57c0f7e0f9e86e78f41f980005e60d1c72610420302c326c324280004420202c226c220096600000628c328c27e0f9e86de844a398000003467060687000000200287000003ffe98f45f900000000d5c724280080420202c224c224280084420202c22482508b53866a00ff985084508423c40000000071b90000000073b900000000b28067104a8067066100fdc2600a6100fe9260084a8167046100f9dc42b946104d4e4ef94000d9a62039000000000c8000000040640c06800000040023c000000000048000000040725f24000282000003ff2602e98b41f900000000d1c37803429853846afae78a41f900000000d1c242984290528053816ad04e7571b946c8ce080c80000000c0661c71b946c8ce090c80000000556600009c487900000000703c600000820c80000000a16600008671b946c8ce0c0c80000000046600007671b946c8ce0d0c80000000106600006671b946c8ce0b73b946c8ce090c8000000001671e0c8000000002660000480c81000000016600003e487900000000700160240c8100000001660a487900000000700460120c810000000266000018487900000000700eb082630220022f004ef94001de5c2039fc0b01c04ef94001de6a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[17945,1,[" \"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006565663266363436666462373864633966653638353763306239326337386237323331663266373632333565653938646235313465303861323630313362356400616438633532353639383738333666626663396636663336663637316530393733306162356530656637646434636364326161323864323861663461663161640000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000312e34304300000000000000000000000061643863353235363938373833366662000100000095a80000002d00000352\""]],[18622,1,[" \"302e372e313000ad8c5256987836fbfc9f6f36f671e09730ab5e0ef7dd4ccd2aa28d28af4af1ad00000000200000003200000044000000480000004c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[24113,1,[" 3"]],[24277,1,[" 16"]],[24285,1,[" 192"]],[24293,1,[" 512"]],[24329,1,[" 289270"]],[24345,1,[" 288228"]],[24351,4,[]],[24357,1,[" 288308"]],[24365,1,[" 288246"]],[24369,1,[" 288280"]],[24373,1,[" 4562592"]],[24385,1,[" 4562720"," ],"," \"aud_hs\": ["," \".run\","," 308315"]],[24391,1,[" \"audio_copy16\": ["]],[24393,1,[" 288896"]],[24397,1,[" 4554400"]],[24401,1,[" 288918"]],[24405,1,[" 288928"]],[24409,1,[" 288970"]],[24413,1,[" 289022"]],[24421,1,[" 289236"]],[24433,9,[" 289626"]],[24454,0,[" ],"," \"usbaudio_lastsamp\": ["," \".run\","," 308276"]],[25801,1,[" 289710"]],[27413,1,[" 289332"]],[86016,1,[" 289710"]],[86293,8,[" 288104,"]],[86307,1,[" 288118,"]],[86314,1,[" 288130,"]],[86321,1,[" 288136,"," \"abs32\","," \"sec:.run\","," 308314"," ],"," ["," \".run\","," 288160,"]],[86335,8,[" 288204,"]],[86349,1,[" 288222,"]],[86356,1,[" 288238,"]],[86359,1,[" 138780320"]],[86363,1,[" 288282,"]],[86370,1,[" 288310,"]],[86377,1,[" 288334,"]],[86384,1,[" 288344,"]],[86391,1,[" 288350,"]],[86394,1,[" 308244"," ],"," ["," \".run\","," 288368,"," \"abs32\","," \"sec:.run\","," 308252"]],[86405,1,[" 288394,"]],[86408,1,[" 308314"]],[86412,1,[" 288402,"," \"abs32\","," \"sec:.run\","," 308288"," ],"," ["," \".run\","," 288410,"," \"abs32\","," \"sec:.run\","," 308288"," ],"," ["," \".run\","," 288416,"," \"abs32\","," \"sec:.run\","," 308292"," ],"," ["," \".run\","," 288424,"," \"abs32\","," \"sec:.run\","," 308292"," ],"," ["," \".run\","," 288430,"," \"abs32\","," \"sec:.run\","," 308248"," ],"," ["," \".run\","," 288436,"," \"abs32\","," \"sec:.run\","," 308308"," ],"," ["," \".run\","," 288442,"," \"abs32\","," \"sec:.run\","," 308314"," ],"," ["," \".run\","," 288518,"," \"abs32\","," \"sec:.run\","," 308256"," ],"," ["," \".run\","," 288528,"," \"abs32\","," \"sec:.run\","," 308248"," ],"," ["," \".run\","," 288534,"," \"abs32\","," \"sec:.run\","," 308260"," ],"," ["," \".run\","," 288540,"," \"abs32\","," \"sec:.run\","," 308264"," ],"," ["," \".run\","," 288552,"," \"abs32\","," \"sec:.bss\","," 138780448"," ],"," ["," \".run\","," 288564,"]],[86419,1,[" 288584,"," \"abs32\","," \"sec:.run\","," 308315"," ],"," ["," \".run\","," 288592,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 288622,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 288636,"," \"abs32\","," \"sec:.bss\","," 4554400"," ],"," ["," \".run\","," 288666,"," \"abs32\","," \"sec:.bss\","," 4554400"," ],"," ["," \".run\","," 288678,"," \"abs32\","," \"sec:.run\","," 308260"," ],"," ["," \".run\","," 288684,"," \"abs32\","," \"sec:.run\","," 308244"," ],"," ["," \".run\","," 288692,"," \"abs32\","," \"sec:.run\","," 308315"," ],"," ["," \".run\","," 288884,"," \"abs32\","," \"sec:.run\","," 308316"," ],"," ["," \".run\","," 288930,"," \"abs32\","," \"sec:.bss\","," 138780320"," ],"," ["," \".run\","," 288944,"," \"abs32\","," \"sec:.bss\","," 138780320"," ],"," ["," \".run\","," 288964,"," \"abs32\","," \"sec:.run\","," 308316"," ],"," ["," \".run\","," 289014,"," \"abs32\","," \"sec:.run\","," 308304"," ],"," ["," \".run\","," 289040,"," \"abs32\","," \"sec:.run\","," 308304"," ],"," ["," \".run\","," 289076,"," \"abs32\","," \"sec:.run\","," 308315"," ],"," ["," \".run\","," 289088,"," \"abs32\","," \"sec:.run\","," 308308"," ],"," ["," \".run\","," 289102,"," \"abs32\","," \"sec:.run\","," 308315"," ],"," ["," \".run\","," 289114,"," \"abs32\","," \"sec:.run\","," 308308"," ],"," ["," \".run\","," 289170,"," \"abs32\","," \"sec:.run\","," 308300"," ],"," ["," \".run\","," 289186,"," \"abs32\","," \"sec:.run\","," 308244"," ],"," ["," \".run\","," 289192,"," \"abs32\","," \"sec:.run\","," 308248"," ],"," ["," \".run\","," 289200,"," \"abs32\","," \"sec:.run\","," 308313"," ],"," ["," \".run\","," 289206,"]],[86426,1,[" 289218,"]],[86433,8,[" 289224,"]],[86447,1,[" 289230,"]],[86450,1,[" 308296"]],[86454,1,[" 289264,"]],[86457,1,[" 308313"]],[86461,1,[" 289334,"]],[86464,1,[" 308312"]],[86468,1,[" 289342,"]],[86471,1,[" 308318"]],[86475,1,[" 289352,"]],[86478,1,[" 308317"]],[86482,1,[" 289364,"]],[86485,1,[" 308268"]],[86489,1,[" 289374,"]],[86492,1,[" 308317"]],[86496,1,[" 289382,"]],[86499,1,[" 308317"]],[86503,1,[" 289416,"]],[86505,2,[" \"sec:.run\","," 308300"]],[86510,1,[" 289432,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 289450,"," \"abs32\","," \"sec:.bss\","," 4554400"," ],"," ["," \".run\","," 289530,"," \"abs32\","," \"sec:.bss\","," 4538024"," ],"," ["," \".run\","," 289570,"," \"abs32\","," \"sec:.run\","," 308300"," ],"," ["," \".run\","," 289576,"," \"abs32\","," \"sec:.run\","," 308312"," ],"," ["," \".run\","," 289582,"," \"abs32\","," \"sec:.run\","," 308313"," ],"," ["," \".run\","," 289628,"," \"abs32\","," \"sec:.run\","," 308300"," ],"," ["," \".run\","," 289648,"," \"abs32\","," \"sec:.run\","," 308300"," ],"," ["," \".run\","," 289674,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 289692,"," \"abs32\","," \"sec:.bss\","," 4554400"," ],"," ["," \".run\","," 289742,"]],[86517,372,[" 289836,"]],[86895,1,[" 289854,"]],[86902,1,[" 289874,"]],[94041,1,[" \"identity.c\": \"375ad73701cc0e3ea1bf279bacfc65ef5032d6e192335a103f06cb4505e5b04d\","]],[94101,1,[" \"usb_base.s\": \"5e34aa172c0959da20ab7a9663b8495a060e389b5198ed532c4da0e56ee1b262\","]],[94105,1,[" \"usb_reserve.s\": \"15d1f3ad805d3907c7dd3bfc1c4d53e2a02c76204604575c9219914e4ee19a55\""]]],"fills":[{"tag":"A","shared":2001,"first":0,"count":286,"site":"0x400f0ee3","offset":0},{"tag":"A","shared":2287,"first":0,"count":35,"site":"0x400f0ee3","offset":858},{"tag":"A","shared":2322,"first":0,"count":93,"site":"0x400f0ee3","offset":963},{"tag":"B","shared":1425,"first":0,"count":286,"site":"0x40103e34","offset":0},{"tag":"B","shared":1711,"first":0,"count":35,"site":"0x40103e34","offset":858},{"tag":"B","shared":1746,"first":0,"count":93,"site":"0x40103e34","offset":963},{"tag":"A","fx":4,"first":0,"count":441,"section":".run","offset":334940},{"tag":"A","fx":5,"first":0,"count":261,"section":".run","offset":334150},{"tag":"A","fx":12,"first":0,"count":282,"section":".run","offset":333288},{"tag":"A","fx":13,"first":0,"count":345,"section":".run","offset":332238},{"tag":"A","fx":16,"first":0,"count":207,"section":".run","offset":331602},{"tag":"A","fx":17,"first":0,"count":289,"section":".run","offset":330704},{"tag":"A","fx":18,"first":0,"count":329,"section":".run","offset":329680},{"tag":"A","fx":19,"first":0,"count":277,"section":".run","offset":328818},{"tag":"A","fx":20,"first":0,"count":594,"section":".run","offset":327016},{"tag":"A","fx":21,"first":0,"count":1063,"section":".run","offset":323784},{"tag":"A","fx":22,"first":0,"count":1067,"section":".run","offset":320522},{"tag":"A","fx":24,"first":2,"count":11,"section":".run","offset":319932},{"tag":"A","fx":24,"first":15,"count":165,"section":".run","offset":319971},{"tag":"A","fx":28,"first":0,"count":537,"section":".run","offset":318300},{"tag":"B","fx":4,"first":65,"count":1,"section":".run","offset":317808},{"tag":"B","fx":4,"first":73,"count":1,"section":".run","offset":317811},{"tag":"B","fx":4,"first":158,"count":1,"section":".run","offset":317814},{"tag":"B","fx":4,"first":163,"count":1,"section":".run","offset":317817},{"tag":"B","fx":4,"first":172,"count":1,"section":".run","offset":317820},{"tag":"B","fx":4,"first":182,"count":1,"section":".run","offset":317823},{"tag":"B","fx":4,"first":194,"count":1,"section":".run","offset":317826},{"tag":"B","fx":4,"first":199,"count":1,"section":".run","offset":317829},{"tag":"B","fx":4,"first":207,"count":1,"section":".run","offset":317832},{"tag":"B","fx":4,"first":215,"count":1,"section":".run","offset":317835},{"tag":"B","fx":4,"first":220,"count":1,"section":".run","offset":317838},{"tag":"B","fx":4,"first":225,"count":1,"section":".run","offset":317841},{"tag":"B","fx":4,"first":229,"count":1,"section":".run","offset":317844},{"tag":"B","fx":4,"first":248,"count":1,"section":".run","offset":317847},{"tag":"B","fx":4,"first":266,"count":1,"section":".run","offset":317850},{"tag":"B","fx":4,"first":281,"count":1,"section":".run","offset":317853},{"tag":"B","fx":4,"first":286,"count":1,"section":".run","offset":317856},{"tag":"B","fx":4,"first":290,"count":1,"section":".run","offset":317859},{"tag":"B","fx":4,"first":307,"count":1,"section":".run","offset":317862},{"tag":"B","fx":4,"first":325,"count":1,"section":".run","offset":317865},{"tag":"B","fx":4,"first":374,"count":1,"section":".run","offset":317868},{"tag":"B","fx":5,"first":25,"count":1,"section":".run","offset":317778},{"tag":"B","fx":5,"first":42,"count":1,"section":".run","offset":317781},{"tag":"B","fx":5,"first":62,"count":1,"section":".run","offset":317784},{"tag":"B","fx":5,"first":91,"count":1,"section":".run","offset":317787},{"tag":"B","fx":5,"first":179,"count":1,"section":".run","offset":317790},{"tag":"B","fx":5,"first":181,"count":1,"section":".run","offset":317793},{"tag":"B","fx":12,"first":62,"count":1,"section":".run","offset":317698},{"tag":"B","fx":12,"first":64,"count":1,"section":".run","offset":317701},{"tag":"B","fx":12,"first":68,"count":1,"section":".run","offset":317704},{"tag":"B","fx":12,"first":70,"count":1,"section":".run","offset":317707},{"tag":"B","fx":12,"first":91,"count":1,"section":".run","offset":317710},{"tag":"B","fx":12,"first":93,"count":1,"section":".run","offset":317713},{"tag":"B","fx":12,"first":97,"count":1,"section":".run","offset":317716},{"tag":"B","fx":12,"first":99,"count":1,"section":".run","offset":317719},{"tag":"B","fx":12,"first":165,"count":1,"section":".run","offset":317722},{"tag":"B","fx":12,"first":170,"count":1,"section":".run","offset":317725},{"tag":"B","fx":12,"first":172,"count":1,"section":".run","offset":317728},{"tag":"B","fx":12,"first":174,"count":1,"section":".run","offset":317731},{"tag":"B","fx":12,"first":176,"count":1,"section":".run","offset":317734},{"tag":"B","fx":12,"first":180,"count":1,"section":".run","offset":317737},{"tag":"B","fx":12,"first":182,"count":1,"section":".run","offset":317740},{"tag":"B","fx":12,"first":193,"count":1,"section":".run","offset":317743},{"tag":"B","fx":13,"first":259,"count":1,"section":".run","offset":317692},{"tag":"B","fx":16,"first":23,"count":1,"section":".run","offset":317676},{"tag":"B","fx":16,"first":27,"count":1,"section":".run","offset":317679},{"tag":"B","fx":16,"first":206,"count":1,"section":".run","offset":317682},{"tag":"B","fx":17,"first":30,"count":1,"section":".run","offset":317656},{"tag":"B","fx":17,"first":34,"count":1,"section":".run","offset":317659},{"tag":"B","fx":17,"first":118,"count":1,"section":".run","offset":317662},{"tag":"B","fx":17,"first":288,"count":1,"section":".run","offset":317665},{"tag":"B","fx":18,"first":48,"count":1,"section":".run","offset":317626},{"tag":"B","fx":18,"first":82,"count":1,"section":".run","offset":317629},{"tag":"B","fx":18,"first":87,"count":1,"section":".run","offset":317632},{"tag":"B","fx":18,"first":91,"count":1,"section":".run","offset":317635},{"tag":"B","fx":18,"first":260,"count":1,"section":".run","offset":317638},{"tag":"B","fx":18,"first":328,"count":1,"section":".run","offset":317641},{"tag":"B","fx":19,"first":109,"count":1,"section":".run","offset":317610},{"tag":"B","fx":19,"first":149,"count":1,"section":".run","offset":317613},{"tag":"B","fx":19,"first":276,"count":1,"section":".run","offset":317616},{"tag":"B","fx":20,"first":102,"count":1,"section":".run","offset":317550},{"tag":"B","fx":20,"first":107,"count":1,"section":".run","offset":317553},{"tag":"B","fx":20,"first":116,"count":1,"section":".run","offset":317556},{"tag":"B","fx":20,"first":167,"count":1,"section":".run","offset":317559},{"tag":"B","fx":20,"first":185,"count":1,"section":".run","offset":317562},{"tag":"B","fx":20,"first":239,"count":1,"section":".run","offset":317565},{"tag":"B","fx":20,"first":322,"count":1,"section":".run","offset":317568},{"tag":"B","fx":20,"first":403,"count":1,"section":".run","offset":317571},{"tag":"B","fx":20,"first":425,"count":1,"section":".run","offset":317574},{"tag":"B","fx":20,"first":517,"count":1,"section":".run","offset":317577},{"tag":"B","fx":20,"first":550,"count":1,"section":".run","offset":317580},{"tag":"B","fx":20,"first":590,"count":1,"section":".run","offset":317583},{"tag":"B","fx":21,"first":15,"count":1,"section":".run","offset":317504},{"tag":"B","fx":21,"first":374,"count":1,"section":".run","offset":317507},{"tag":"B","fx":21,"first":406,"count":1,"section":".run","offset":317510},{"tag":"B","fx":21,"first":432,"count":1,"section":".run","offset":317513},{"tag":"B","fx":21,"first":470,"count":1,"section":".run","offset":317516},{"tag":"B","fx":21,"first":478,"count":1,"section":".run","offset":317519},{"tag":"B","fx":21,"first":481,"count":1,"section":".run","offset":317522},{"tag":"B","fx":21,"first":574,"count":1,"section":".run","offset":317525},{"tag":"B","fx":21,"first":800,"count":1,"section":".run","offset":317528},{"tag":"B","fx":22,"first":202,"count":1,"section":".run","offset":317434},{"tag":"B","fx":22,"first":315,"count":1,"section":".run","offset":317437},{"tag":"B","fx":22,"first":402,"count":1,"section":".run","offset":317440},{"tag":"B","fx":22,"first":404,"count":1,"section":".run","offset":317443},{"tag":"B","fx":22,"first":417,"count":1,"section":".run","offset":317446},{"tag":"B","fx":22,"first":457,"count":1,"section":".run","offset":317449},{"tag":"B","fx":22,"first":461,"count":1,"section":".run","offset":317452},{"tag":"B","fx":22,"first":465,"count":1,"section":".run","offset":317455},{"tag":"B","fx":22,"first":492,"count":1,"section":".run","offset":317458},{"tag":"B","fx":22,"first":719,"count":1,"section":".run","offset":317461},{"tag":"B","fx":22,"first":746,"count":1,"section":".run","offset":317464},{"tag":"B","fx":22,"first":800,"count":1,"section":".run","offset":317467},{"tag":"B","fx":22,"first":842,"count":1,"section":".run","offset":317470},{"tag":"B","fx":22,"first":1051,"count":1,"section":".run","offset":317473}]},{"layout":"main","identity":"78ac84091f96f057be1588ab9edd47fcdb80e871c474cc2b89e79d89395ec9c7","packageSha256":"19dfd31f7820567f660c25c3d32f7e5d3a4c4052e98a74358ce531b640d8de17","patch":[[15825,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202400000000005250101010905820240000000000525010103080b04020100200009040400000101200009240100020a2e000008240a1001050000112402110306001002\""]],[15829,1,[" \"0x400cb87e\","]],[15834,1,[" \"0c24031201010011100000000904050000010220000904050101010220001024011200010100000002030000000006240201041807058305680101082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000090203010601\""]],[15848,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202000200000005250101010905820200020000000525010103080b04020100200009040400000101200009240100020a2e000008240a1001050000112402110306001002\""]],[15852,1,[" \"0x400cb87e\","]],[15857,1,[" \"0c24031201010011100000000904050000010220000904050101010220001024011200010100000002030000000006240201041807058305600002082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000090703010601\""]],[15866,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202400000000005250101010905820240000000000525010103080b04020100200009040400000101200009240100020a2e000008240a1001050000112402110306001002\""]],[15870,1,[" \"0x400cb87e\","]],[15875,1,[" \"0c24031201010011100000000904050000010220000904050101010220001024011200010100000002030000000006240201041807058305680101082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000090703010601\""]],[15889,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202000200000005250101010905820200020000000525010103080b04020100200009040400000101200009240100020a2e000008240a1001050000112402110306001002\""]],[15893,1,[" \"0x400cb87e\","]],[15898,1,[" \"0c24031201010011100000000904050000010220000904050101010220001024011200010100000002030000000006240201041807058305600002082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[16092,1,[" \"0000000071b946c8ce0c7205b2806600002c71b946c8ce0a4a80670a700113c000000000600a423900000000610005724eb94001d5244ef94001de742039fc0b01c44ef94001dd0a71b946c8ce0c7205b280660c4879000000004ef94001d81e4879400e20a14ef94001d81e4eb94001d6b86100001a70404ef94001e9226100000e2039fc0b01404ef94001e9584239000000004e75201023c04ec950280280fffff00006800000100023c04ec9502c4ef94001d4b84feffff848d700032039fc0b01bc223c00080000c081670c223c0008000023c1fc0b01bc4cd700034fef00084ef9000000004a3900000000670000b271b9000000000c8000000002664c740020026100009e2228000408010007670c52820c820000000465e64e75203900000000220092b9000000000481000000406f1223c10000000004800000004023c00000000042390000000070042f00610000a24a806704539766f4588f71b9000000000c80000000016608700213c0000000002039fc0b01b82239fc0b01b08081028000080000661875b900000000610000244a80670a6100003e52b9000000004e75028000000003eb88207c00000000d1c04e75760320026100ffe82228000408010007660a528253836aea70004e75284870014e75227900000000234c000842a9000c203c00080000\""]],[16101,1,[" \"71b9000000002c406100ffa62228000408010007660002324a390000000067000228203900000000223900000000240094810c8200000400631a52b900000000220004810000040023c100000000243c000004004a3900000000661cb4b900000000640623c200000000b4b900000000630623c2000000002639000000002a39000000004a390000000066282002048000000040e3800c80000000c86f06203c000000c80c80ffffff386c06203cffffff38da80d6852e3c000003e828034c4740042a044c0750002c039c85b484640a52b9000000006000017023c60000000023c40000000023c200000000200ee188e388267c00000000d7c0224b26042239000000000281000003ff203c0000040090814a3900000000672c45f900000000e789d5c1b6806208200361000120604096802a436100011645f900000000200d6100010a602a45f900000000e789d5c1b68062082003610000f4601496802a43610000ea45f900000000200d610000de283900000000d9b9000000002c044a39000000006704e78e6002e78e72012081214b0008220b0281fffff0000681000010002141000c220648410081000000802141000428482a48200e53806100fdf22448204d202a000408000007676224882039fc0b01b0028000080000665674102039fc0b0140008000004000\""]],[16128,1,[" \"ffffbfff23c0fc0b01404a81660c240e52826100fd946100fdb2200e528002800000000313c00000000070014e7570004e7522da22da538066f84e75227c00000000721f429953816afa227c0000000070017203228043e9002053816af64239000000004e752039fc0b01580280fffff8000c80400000006d0a0c80500000006c026006203c4ec948000680000001c023c00000000020404e75610000f66100ffc6720f429853816afa2079000000002039fc0b0184e088e088e088e4880280000000030c8000000002661c700113c000000000203c00002b1123c000000000203c606000006018423900000000203c0000ac4423c000000000203c61680000208042a8000470012140000842a8000c6100ff2a2039fc0b01cc02800000ffff00800084000023c0fc0b01cc2039000000000480000000406402700023c00000000042b900000000700113c00000000013c000000000\""]],[16137,19,[" \"0000000042b90000000042b9000000004e75610000202039fc0b01cc02800000ffff23c0fc0b01cc6100feb44239000000004e752f027210203c0008000023c0fc0b01b4243c000100002039fc0b01b40280000800006704538266ee2039fc0b01b80280000800006704538166ca241f4e754a390000000066204a39000000006618700113c0000000002039800000e423c000000000600000524a3900000000670a423900000000610000742839000000002a040285000003ffe78d47f900000000d7c545f980005e607c0f241a420202c226c2241a420202c226c253866aec5084508423c40000000071b90000000073b900000000b28067104a8067066100fe3c600a6100ff0c60084a8167046100fa6c42b946104d4e4ef94000d9a62039000000000c8000000040640c06800000040023c000000000048000000040723f24000282000003ff2602e78b41f900000000d1c37801429853846afae78a41f900000000d1c242984290528053816ad04e7571b946c8ce080c80000000c0661c71b946c8ce090c80000000556600009c487900000000703c600000820c80000000a16600008671b946c8ce0c0c80000000046600007671b946c8ce0d0c80000000106600006671b946c8ce0b73b946c8ce090c8000000001671e0c8000000002660000480c81000000016600003e487900000000700160240c8100000001660a487900000000700460120c810000000266000018487900000000700eb082630220022f004ef94001de5c2039fc0b01c04ef94001de6a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[17945,1,[" \"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006565663266363436666462373864633966653638353763306239326337386237323331663266373632333565653938646235313465303861323630313362356400373861633834303931663936663035376265313538386162396564643437666364623830653837316334373463633262383965373964383933393565633963370000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000312e34304300000000000000000000000037386163383430393166393666303537000100000095a80000002d00000352\""]],[18622,1,[" \"302e372e31300078ac84091f96f057be1588ab9edd47fcdb80e871c474cc2b89e79d89395ec9c700000000200000003200000044000000480000004c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[24113,1,[" 4"]],[24141,1,[" 4294967295"]],[24277,1,[" 8"]],[24285,1,[" 96"]],[24293,1,[" 512"]],[24329,1,[" 289248"]],[24345,1,[" 288228"]],[24351,4,[]],[24357,1,[" 288308"]],[24365,1,[" 288246"]],[24369,1,[" 288280"]],[24373,1,[" 4546208"]],[24385,1,[" 4546336"," ],"," \"aud_hs\": ["," \".run\","," 308315"]],[24391,1,[" \"audio_copy8\": ["]],[24393,1,[" 288896"]],[24397,5,[" 4538016"]],[24405,1,[" 288906"]],[24409,1,[" 288948"]],[24413,1,[" 289000"]],[24421,1,[" 289214"]],[24433,9,[" 289482"]],[24454,0,[" ],"," \"usbaudio_lastsamp\": ["," \".run\","," 308276"]],[25801,1,[" 289566"]],[27413,1,[" 289310"]],[86016,1,[" 289566"]],[86293,8,[" 288104,"]],[86307,1,[" 288118,"]],[86314,1,[" 288130,"]],[86321,1,[" 288136,"," \"abs32\","," \"sec:.run\","," 308314"," ],"," ["," \".run\","," 288160,"]],[86335,8,[" 288204,"]],[86349,1,[" 288222,"]],[86356,1,[" 288238,"]],[86359,1,[" 138763936"]],[86363,1,[" 288282,"]],[86370,1,[" 288310,"]],[86377,1,[" 288334,"]],[86384,1,[" 288344,"]],[86391,1,[" 288350,"]],[86394,1,[" 308244"," ],"," ["," \".run\","," 288368,"," \"abs32\","," \"sec:.run\","," 308252"]],[86405,1,[" 288394,"]],[86408,1,[" 308314"]],[86412,1,[" 288402,"," \"abs32\","," \"sec:.run\","," 308288"," ],"," ["," \".run\","," 288410,"," \"abs32\","," \"sec:.run\","," 308288"," ],"," ["," \".run\","," 288416,"," \"abs32\","," \"sec:.run\","," 308292"," ],"," ["," \".run\","," 288424,"," \"abs32\","," \"sec:.run\","," 308292"," ],"," ["," \".run\","," 288430,"," \"abs32\","," \"sec:.run\","," 308248"," ],"," ["," \".run\","," 288436,"," \"abs32\","," \"sec:.run\","," 308308"," ],"," ["," \".run\","," 288442,"," \"abs32\","," \"sec:.run\","," 308314"," ],"," ["," \".run\","," 288518,"," \"abs32\","," \"sec:.run\","," 308256"," ],"," ["," \".run\","," 288528,"," \"abs32\","," \"sec:.run\","," 308248"," ],"," ["," \".run\","," 288534,"," \"abs32\","," \"sec:.run\","," 308260"," ],"," ["," \".run\","," 288540,"," \"abs32\","," \"sec:.run\","," 308264"," ],"," ["," \".run\","," 288552,"," \"abs32\","," \"sec:.bss\","," 138764064"," ],"," ["," \".run\","," 288564,"]],[86419,99,[" 288584,"]],[86524,1,[" 288592,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 288622,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 288636,"]],[86538,15,[" 288678,"]],[86559,1,[" 288684,"]],[86566,1,[" 288692,"]],[86573,1,[" 288884,"]],[86580,1,[" 288908,"]],[86583,1,[" 138763936"]],[86587,1,[" 288922,"]],[86590,1,[" 138763936"]],[86594,1,[" 288942,"]],[86601,1,[" 288992,"]],[86608,1,[" 289018,"]],[86615,1,[" 289054,"]],[86622,1,[" 289066,"]],[86629,1,[" 289080,"]],[86636,1,[" 289092,"]],[86643,1,[" 289148,"]],[86650,8,[" 289164,"]],[86664,1,[" 289170,"]],[86671,1,[" 289178,"]],[86678,1,[" 289184,"]],[86685,1,[" 289196,"]],[86692,1,[" 289202,"]],[86699,1,[" 289208,"]],[86706,1,[" 289242,"]],[86713,1,[" 289312,"]],[86720,1,[" 289320,"]],[86727,1,[" 289330,"]],[86734,1,[" 289342,"]],[86741,1,[" 289352,"]],[86748,1,[" 289360,"]],[86755,22,[" 289370,"]],[86783,1,[" 289386,"]],[86790,43,[" 289426,"]],[86839,1,[" 289432,"]],[86846,1,[" 289438,"]],[86853,1,[" 289484,"]],[86860,1,[" 289504,"]],[86867,1,[" 289530,"]],[86874,1,[" 289548,"]],[86877,1,[" 4538016"]],[86881,1,[" 289598,"]],[86888,1,[" 289692,"]],[86895,1,[" 289710,"]],[86902,1,[" 289730,"]],[94041,1,[" \"identity.c\": \"44a8e5b4c4d9bd8cdd8db875ccf7f15d5ee1f2ee3984843e50f19380b2c20607\","]],[94101,1,[" \"usb_base.s\": \"b7c69c3d8f1ef6b425d100958b491eb33da33f2cbf4e37676ea9c312cbee87b2\","]],[94105,1,[" \"usb_reserve.s\": \"7a6bcd93f67a050b9f647d8328f6e58348b50814e0f1a60e2c167a92ec986ff0\""]]],"fills":[{"tag":"A","shared":2001,"first":0,"count":286,"site":"0x400f0ee3","offset":0},{"tag":"A","shared":2287,"first":0,"count":35,"site":"0x400f0ee3","offset":858},{"tag":"A","shared":2322,"first":0,"count":93,"site":"0x400f0ee3","offset":963},{"tag":"B","shared":1425,"first":0,"count":286,"site":"0x40103e34","offset":0},{"tag":"B","shared":1711,"first":0,"count":35,"site":"0x40103e34","offset":858},{"tag":"B","shared":1746,"first":0,"count":93,"site":"0x40103e34","offset":963},{"tag":"A","fx":4,"first":0,"count":441,"section":".run","offset":334940},{"tag":"A","fx":5,"first":0,"count":261,"section":".run","offset":334150},{"tag":"A","fx":12,"first":0,"count":282,"section":".run","offset":333288},{"tag":"A","fx":13,"first":0,"count":345,"section":".run","offset":332238},{"tag":"A","fx":16,"first":0,"count":207,"section":".run","offset":331602},{"tag":"A","fx":17,"first":0,"count":289,"section":".run","offset":330704},{"tag":"A","fx":18,"first":0,"count":329,"section":".run","offset":329680},{"tag":"A","fx":19,"first":0,"count":277,"section":".run","offset":328818},{"tag":"A","fx":20,"first":0,"count":594,"section":".run","offset":327016},{"tag":"A","fx":21,"first":0,"count":1063,"section":".run","offset":323784},{"tag":"A","fx":22,"first":0,"count":1067,"section":".run","offset":320522},{"tag":"A","fx":24,"first":2,"count":11,"section":".run","offset":319932},{"tag":"A","fx":24,"first":15,"count":165,"section":".run","offset":319971},{"tag":"A","fx":28,"first":0,"count":537,"section":".run","offset":318300},{"tag":"B","fx":4,"first":65,"count":1,"section":".run","offset":317808},{"tag":"B","fx":4,"first":73,"count":1,"section":".run","offset":317811},{"tag":"B","fx":4,"first":158,"count":1,"section":".run","offset":317814},{"tag":"B","fx":4,"first":163,"count":1,"section":".run","offset":317817},{"tag":"B","fx":4,"first":172,"count":1,"section":".run","offset":317820},{"tag":"B","fx":4,"first":182,"count":1,"section":".run","offset":317823},{"tag":"B","fx":4,"first":194,"count":1,"section":".run","offset":317826},{"tag":"B","fx":4,"first":199,"count":1,"section":".run","offset":317829},{"tag":"B","fx":4,"first":207,"count":1,"section":".run","offset":317832},{"tag":"B","fx":4,"first":215,"count":1,"section":".run","offset":317835},{"tag":"B","fx":4,"first":220,"count":1,"section":".run","offset":317838},{"tag":"B","fx":4,"first":225,"count":1,"section":".run","offset":317841},{"tag":"B","fx":4,"first":229,"count":1,"section":".run","offset":317844},{"tag":"B","fx":4,"first":248,"count":1,"section":".run","offset":317847},{"tag":"B","fx":4,"first":266,"count":1,"section":".run","offset":317850},{"tag":"B","fx":4,"first":281,"count":1,"section":".run","offset":317853},{"tag":"B","fx":4,"first":286,"count":1,"section":".run","offset":317856},{"tag":"B","fx":4,"first":290,"count":1,"section":".run","offset":317859},{"tag":"B","fx":4,"first":307,"count":1,"section":".run","offset":317862},{"tag":"B","fx":4,"first":325,"count":1,"section":".run","offset":317865},{"tag":"B","fx":4,"first":374,"count":1,"section":".run","offset":317868},{"tag":"B","fx":5,"first":25,"count":1,"section":".run","offset":317778},{"tag":"B","fx":5,"first":42,"count":1,"section":".run","offset":317781},{"tag":"B","fx":5,"first":62,"count":1,"section":".run","offset":317784},{"tag":"B","fx":5,"first":91,"count":1,"section":".run","offset":317787},{"tag":"B","fx":5,"first":179,"count":1,"section":".run","offset":317790},{"tag":"B","fx":5,"first":181,"count":1,"section":".run","offset":317793},{"tag":"B","fx":12,"first":62,"count":1,"section":".run","offset":317698},{"tag":"B","fx":12,"first":64,"count":1,"section":".run","offset":317701},{"tag":"B","fx":12,"first":68,"count":1,"section":".run","offset":317704},{"tag":"B","fx":12,"first":70,"count":1,"section":".run","offset":317707},{"tag":"B","fx":12,"first":91,"count":1,"section":".run","offset":317710},{"tag":"B","fx":12,"first":93,"count":1,"section":".run","offset":317713},{"tag":"B","fx":12,"first":97,"count":1,"section":".run","offset":317716},{"tag":"B","fx":12,"first":99,"count":1,"section":".run","offset":317719},{"tag":"B","fx":12,"first":165,"count":1,"section":".run","offset":317722},{"tag":"B","fx":12,"first":170,"count":1,"section":".run","offset":317725},{"tag":"B","fx":12,"first":172,"count":1,"section":".run","offset":317728},{"tag":"B","fx":12,"first":174,"count":1,"section":".run","offset":317731},{"tag":"B","fx":12,"first":176,"count":1,"section":".run","offset":317734},{"tag":"B","fx":12,"first":180,"count":1,"section":".run","offset":317737},{"tag":"B","fx":12,"first":182,"count":1,"section":".run","offset":317740},{"tag":"B","fx":12,"first":193,"count":1,"section":".run","offset":317743},{"tag":"B","fx":13,"first":259,"count":1,"section":".run","offset":317692},{"tag":"B","fx":16,"first":23,"count":1,"section":".run","offset":317676},{"tag":"B","fx":16,"first":27,"count":1,"section":".run","offset":317679},{"tag":"B","fx":16,"first":206,"count":1,"section":".run","offset":317682},{"tag":"B","fx":17,"first":30,"count":1,"section":".run","offset":317656},{"tag":"B","fx":17,"first":34,"count":1,"section":".run","offset":317659},{"tag":"B","fx":17,"first":118,"count":1,"section":".run","offset":317662},{"tag":"B","fx":17,"first":288,"count":1,"section":".run","offset":317665},{"tag":"B","fx":18,"first":48,"count":1,"section":".run","offset":317626},{"tag":"B","fx":18,"first":82,"count":1,"section":".run","offset":317629},{"tag":"B","fx":18,"first":87,"count":1,"section":".run","offset":317632},{"tag":"B","fx":18,"first":91,"count":1,"section":".run","offset":317635},{"tag":"B","fx":18,"first":260,"count":1,"section":".run","offset":317638},{"tag":"B","fx":18,"first":328,"count":1,"section":".run","offset":317641},{"tag":"B","fx":19,"first":109,"count":1,"section":".run","offset":317610},{"tag":"B","fx":19,"first":149,"count":1,"section":".run","offset":317613},{"tag":"B","fx":19,"first":276,"count":1,"section":".run","offset":317616},{"tag":"B","fx":20,"first":102,"count":1,"section":".run","offset":317550},{"tag":"B","fx":20,"first":107,"count":1,"section":".run","offset":317553},{"tag":"B","fx":20,"first":116,"count":1,"section":".run","offset":317556},{"tag":"B","fx":20,"first":167,"count":1,"section":".run","offset":317559},{"tag":"B","fx":20,"first":185,"count":1,"section":".run","offset":317562},{"tag":"B","fx":20,"first":239,"count":1,"section":".run","offset":317565},{"tag":"B","fx":20,"first":322,"count":1,"section":".run","offset":317568},{"tag":"B","fx":20,"first":403,"count":1,"section":".run","offset":317571},{"tag":"B","fx":20,"first":425,"count":1,"section":".run","offset":317574},{"tag":"B","fx":20,"first":517,"count":1,"section":".run","offset":317577},{"tag":"B","fx":20,"first":550,"count":1,"section":".run","offset":317580},{"tag":"B","fx":20,"first":590,"count":1,"section":".run","offset":317583},{"tag":"B","fx":21,"first":15,"count":1,"section":".run","offset":317504},{"tag":"B","fx":21,"first":374,"count":1,"section":".run","offset":317507},{"tag":"B","fx":21,"first":406,"count":1,"section":".run","offset":317510},{"tag":"B","fx":21,"first":432,"count":1,"section":".run","offset":317513},{"tag":"B","fx":21,"first":470,"count":1,"section":".run","offset":317516},{"tag":"B","fx":21,"first":478,"count":1,"section":".run","offset":317519},{"tag":"B","fx":21,"first":481,"count":1,"section":".run","offset":317522},{"tag":"B","fx":21,"first":574,"count":1,"section":".run","offset":317525},{"tag":"B","fx":21,"first":800,"count":1,"section":".run","offset":317528},{"tag":"B","fx":22,"first":202,"count":1,"section":".run","offset":317434},{"tag":"B","fx":22,"first":315,"count":1,"section":".run","offset":317437},{"tag":"B","fx":22,"first":402,"count":1,"section":".run","offset":317440},{"tag":"B","fx":22,"first":404,"count":1,"section":".run","offset":317443},{"tag":"B","fx":22,"first":417,"count":1,"section":".run","offset":317446},{"tag":"B","fx":22,"first":457,"count":1,"section":".run","offset":317449},{"tag":"B","fx":22,"first":461,"count":1,"section":".run","offset":317452},{"tag":"B","fx":22,"first":465,"count":1,"section":".run","offset":317455},{"tag":"B","fx":22,"first":492,"count":1,"section":".run","offset":317458},{"tag":"B","fx":22,"first":719,"count":1,"section":".run","offset":317461},{"tag":"B","fx":22,"first":746,"count":1,"section":".run","offset":317464},{"tag":"B","fx":22,"first":800,"count":1,"section":".run","offset":317467},{"tag":"B","fx":22,"first":842,"count":1,"section":".run","offset":317470},{"tag":"B","fx":22,"first":1051,"count":1,"section":".run","offset":317473}]},{"layout":"master","identity":"f4a19eb0ea98f99dd46ada8532fe79b8d522c418c721ef3fbec78a62008e9288","packageSha256":"f03284b79c9cf2b3f698724b7b264f79ba837f24b8648f7a3874a5c34f814309","patch":[[15825,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202400000000005250101010905820240000000000525010103080b04020100200009040400000101200009240100020a2e000008240a1001050000112402110306001002\""]],[15829,1,[" \"0x400cb87e\","]],[15834,1,[" \"0c24031201010011100000000904050000010220000904050101010220001024011200010100000002030000000006240201041807058305680101082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000090203010601\""]],[15848,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202000200000005250101010905820200020000000525010103080b04020100200009040400000101200009240100020a2e000008240a1001050000112402110306001002\""]],[15852,1,[" \"0x400cb87e\","]],[15857,1,[" \"0c24031201010011100000000904050000010220000904050101010220001024011200010100000002030000000006240201041807058305600002082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000090703010601\""]],[15866,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202400000000005250101010905820240000000000525010103080b04020100200009040400000101200009240100020a2e000008240a1001050000112402110306001002\""]],[15870,1,[" \"0x400cb87e\","]],[15875,1,[" \"0c24031201010011100000000904050000010220000904050101010220001024011200010100000002030000000006240201041807058305680101082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000090703010601\""]],[15889,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202000200000005250101010905820200020000000525010103080b04020100200009040400000101200009240100020a2e000008240a1001050000112402110306001002\""]],[15893,1,[" \"0x400cb87e\","]],[15898,1,[" \"0c24031201010011100000000904050000010220000904050101010220001024011200010100000002030000000006240201041807058305600002082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[16092,1,[" \"0000000071b946c8ce0c7205b2806600002c71b946c8ce0a4a80670a700113c000000000600a423900000000610005724eb94001d5244ef94001de742039fc0b01c44ef94001dd0a71b946c8ce0c7205b280660c4879000000004ef94001d81e4879400e20a14ef94001d81e4eb94001d6b86100001a70404ef94001e9226100000e2039fc0b01404ef94001e9584239000000004e75201023c04ec950280280fffff00006800000100023c04ec9502c4ef94001d4b84feffff848d700032039fc0b01bc223c00080000c081670c223c0008000023c1fc0b01bc4cd700034fef00084ef9000000004a3900000000670000b271b9000000000c8000000002664c740020026100009e2228000408010007670c52820c820000000465e64e75203900000000220092b9000000000481000000406f1223c10000000004800000004023c00000000042390000000070042f00610000a24a806704539766f4588f71b9000000000c80000000016608700213c0000000002039fc0b01b82239fc0b01b08081028000080000661875b900000000610000244a80670a6100003e52b9000000004e75028000000003eb88207c00000000d1c04e75760320026100ffe82228000408010007660a528253836aea70004e75284870014e75227900000000234c000842a9000c203c00080000\""]],[16101,1,[" \"71b9000000002c406100ffa62228000408010007660002324a390000000067000228203900000000223900000000240094810c8200000400631a52b900000000220004810000040023c100000000243c000004004a3900000000661cb4b900000000640623c200000000b4b900000000630623c2000000002639000000002a39000000004a390000000066282002048000000040e3800c80000000c86f06203c000000c80c80ffffff386c06203cffffff38da80d6852e3c000003e828034c4740042a044c0750002c039c85b484640a52b9000000006000017023c60000000023c40000000023c200000000200ee188e388267c00000000d7c0224b26042239000000000281000003ff203c0000040090814a3900000000672c45f900000000e789d5c1b6806208200361000120604096802a436100011645f900000000200d6100010a602a45f900000000e789d5c1b68062082003610000f4601496802a43610000ea45f900000000200d610000de283900000000d9b9000000002c044a39000000006704e78e6002e78e72012081214b0008220b0281fffff0000681000010002141000c220648410081000000802141000428482a48200e53806100fdf22448204d202a000408000007676224882039fc0b01b0028000080000665674102039fc0b0140008000004000\""]],[16128,1,[" \"ffffbfff23c0fc0b01404a81660c240e52826100fd946100fdb2200e528002800000000313c00000000070014e7570004e7522da22da538066f84e75227c00000000721f429953816afa227c0000000070017203228043e9002053816af64239000000004e752039fc0b01580280fffff8000c80400000006d0a0c80500000006c026006203c4ec948000680000001c023c00000000020404e75610000f66100ffc6720f429853816afa2079000000002039fc0b0184e088e088e088e4880280000000030c8000000002661c700113c000000000203c00002b1123c000000000203c606000006018423900000000203c0000ac4423c000000000203c61680000208042a8000470012140000842a8000c6100ff2a2039fc0b01cc02800000ffff00800084000023c0fc0b01cc2039000000000480000000406402700023c00000000042b900000000700113c00000000013c000000000\""]],[16137,19,[" \"0000000042b90000000042b9000000004e75610000202039fc0b01cc02800000ffff23c0fc0b01cc6100feb44239000000004e752f027210203c0008000023c0fc0b01b4243c000100002039fc0b01b40280000800006704538266ee2039fc0b01b80280000800006704538166ca241f4e754a390000000066204a39000000006618700113c0000000002039800000e423c000000000600000744a3900000000670a423900000000610000962039800000e42400b4b900000000660652b90000000023c200000000e188e58806808000351024402839000000002a040285000003ffe78d47f900000000d7c57c0f241a420202c226c2241a420202c226c253866aec5084508423c40000000071b90000000073b900000000b28067104a8067066100fe1a600a6100feea60084a8167046100fa4a42b946104d4e4ef94000d9a62039000000000c8000000040640c06800000040023c000000000048000000040723f24000282000003ff2602e78b41f900000000d1c37801429853846afae78a41f900000000d1c242984290528053816ad04e7571b946c8ce080c80000000c0661c71b946c8ce090c80000000556600009c487900000000703c600000820c80000000a16600008671b946c8ce0c0c80000000046600007671b946c8ce0d0c80000000106600006671b946c8ce0b73b946c8ce090c8000000001671e0c8000000002660000480c81000000016600003e487900000000700160240c8100000001660a487900000000700460120c810000000266000018487900000000700eb082630220022f004ef94001de5c2039fc0b01c04ef94001de6a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[17945,1,[" \"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006565663266363436666462373864633966653638353763306239326337386237323331663266373632333565653938646235313465303861323630313362356400663461313965623065613938663939646434366164613835333266653739623864353232633431386337323165663366626563373861363230303865393238\""," ],"," ["," \"stock\","," \"0x400ba556\","," 26"," ],"," ["," \"hex\","," \"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000312e34304300000000000000000000000066346131396562306561393866393964000100000095a80000002d00000352\""]],[18622,1,[" \"302e372e313000f4a19eb0ea98f99dd46ada8532fe79b8d522c418c721ef3fbec78a62008e928800000000200000003200000044000000480000004c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[24113,1,[" 2"]],[24141,1,[" 4294967295"]],[24277,1,[" 8"]],[24285,1,[" 96"]],[24293,1,[" 512"]],[24329,1,[" 289248"]],[24345,1,[" 288228"]],[24351,4,[]],[24357,1,[" 288308"]],[24365,1,[" 288246"]],[24369,1,[" 288280"]],[24373,1,[" 4546208"]],[24385,1,[" 4546336"," ],"," \"aud_hs\": ["," \".run\","," 308315"]],[24391,1,[" \"audio_copy8\": ["]],[24393,1,[" 288896"]],[24397,5,[" 4538016"]],[24405,1,[" 288906"]],[24409,1,[" 288948"]],[24413,1,[" 289000"]],[24421,1,[" 289214"]],[24433,9,[" 289516"]],[24454,0,[" ],"," \"usbaudio_lastsamp\": ["," \".run\","," 308276"]],[25801,1,[" 289600"]],[27413,1,[" 289310"]],[86016,1,[" 289600"]],[86293,8,[" 288104,"]],[86307,1,[" 288118,"]],[86314,1,[" 288130,"]],[86321,1,[" 288136,"," \"abs32\","," \"sec:.run\","," 308314"," ],"," ["," \".run\","," 288160,"]],[86335,8,[" 288204,"]],[86349,1,[" 288222,"]],[86356,1,[" 288238,"]],[86359,1,[" 138763936"]],[86363,1,[" 288282,"]],[86370,1,[" 288310,"]],[86377,1,[" 288334,"]],[86384,1,[" 288344,"]],[86391,1,[" 288350,"]],[86394,1,[" 308244"," ],"," ["," \".run\","," 288368,"," \"abs32\","," \"sec:.run\","," 308252"]],[86405,1,[" 288394,"]],[86408,1,[" 308314"]],[86412,1,[" 288402,"," \"abs32\","," \"sec:.run\","," 308288"," ],"," ["," \".run\","," 288410,"," \"abs32\","," \"sec:.run\","," 308288"," ],"," ["," \".run\","," 288416,"," \"abs32\","," \"sec:.run\","," 308292"," ],"," ["," \".run\","," 288424,"," \"abs32\","," \"sec:.run\","," 308292"," ],"," ["," \".run\","," 288430,"," \"abs32\","," \"sec:.run\","," 308248"," ],"," ["," \".run\","," 288436,"," \"abs32\","," \"sec:.run\","," 308308"," ],"," ["," \".run\","," 288442,"," \"abs32\","," \"sec:.run\","," 308314"," ],"," ["," \".run\","," 288518,"," \"abs32\","," \"sec:.run\","," 308256"," ],"," ["," \".run\","," 288528,"," \"abs32\","," \"sec:.run\","," 308248"," ],"," ["," \".run\","," 288534,"," \"abs32\","," \"sec:.run\","," 308260"," ],"," ["," \".run\","," 288540,"," \"abs32\","," \"sec:.run\","," 308264"," ],"," ["," \".run\","," 288552,"," \"abs32\","," \"sec:.bss\","," 138764064"," ],"," ["," \".run\","," 288564,"]],[86419,99,[" 288584,"]],[86524,1,[" 288592,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 288622,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 288636,"]],[86538,15,[" 288678,"]],[86559,1,[" 288684,"]],[86566,1,[" 288692,"]],[86573,1,[" 288884,"]],[86580,1,[" 288908,"]],[86583,1,[" 138763936"]],[86587,1,[" 288922,"]],[86590,1,[" 138763936"]],[86594,1,[" 288942,"]],[86601,1,[" 288992,"]],[86608,1,[" 289018,"]],[86615,1,[" 289054,"]],[86622,1,[" 289066,"]],[86629,1,[" 289080,"]],[86636,1,[" 289092,"]],[86643,1,[" 289148,"]],[86650,8,[" 289164,"]],[86664,1,[" 289170,"]],[86671,1,[" 289178,"]],[86678,1,[" 289184,"]],[86685,1,[" 289196,"]],[86692,1,[" 289202,"]],[86699,1,[" 289208,"]],[86706,1,[" 289242,"]],[86713,1,[" 289312,"]],[86720,1,[" 289320,"]],[86727,1,[" 289330,"]],[86734,1,[" 289342,"]],[86741,1,[" 289352,"]],[86748,1,[" 289360,"]],[86755,1,[" 289378,"]],[86762,1,[" 289386,"]],[86769,1,[" 289392,"]],[86776,1,[" 289410,"]],[86783,1,[" 289426,"]],[86790,43,[" 289460,"]],[86839,1,[" 289466,"]],[86846,1,[" 289472,"]],[86853,1,[" 289518,"]],[86860,1,[" 289538,"]],[86867,1,[" 289564,"]],[86874,1,[" 289582,"]],[86877,1,[" 4538016"]],[86881,1,[" 289632,"]],[86888,1,[" 289726,"]],[86895,1,[" 289744,"]],[86902,1,[" 289764,"]],[94041,1,[" \"identity.c\": \"4fd113dfa8a63f611bda4ad9a588e20db2bb6cf9c326204e789c95c8d4a23d22\","]],[94101,1,[" \"usb_base.s\": \"b7c69c3d8f1ef6b425d100958b491eb33da33f2cbf4e37676ea9c312cbee87b2\","]],[94105,1,[" \"usb_reserve.s\": \"fc4b91b9fabedd48ef8430ddf8a17b6bbb38606c02ab8775dcb9ec184fd13170\""]]],"fills":[{"tag":"A","shared":2001,"first":0,"count":286,"site":"0x400f0ee3","offset":0},{"tag":"A","shared":2287,"first":0,"count":35,"site":"0x400f0ee3","offset":858},{"tag":"A","shared":2322,"first":0,"count":93,"site":"0x400f0ee3","offset":963},{"tag":"B","shared":1425,"first":0,"count":286,"site":"0x40103e34","offset":0},{"tag":"B","shared":1711,"first":0,"count":35,"site":"0x40103e34","offset":858},{"tag":"B","shared":1746,"first":0,"count":93,"site":"0x40103e34","offset":963},{"tag":"A","fx":4,"first":0,"count":441,"section":".run","offset":334940},{"tag":"A","fx":5,"first":0,"count":261,"section":".run","offset":334150},{"tag":"A","fx":12,"first":0,"count":282,"section":".run","offset":333288},{"tag":"A","fx":13,"first":0,"count":345,"section":".run","offset":332238},{"tag":"A","fx":16,"first":0,"count":207,"section":".run","offset":331602},{"tag":"A","fx":17,"first":0,"count":289,"section":".run","offset":330704},{"tag":"A","fx":18,"first":0,"count":329,"section":".run","offset":329680},{"tag":"A","fx":19,"first":0,"count":277,"section":".run","offset":328818},{"tag":"A","fx":20,"first":0,"count":594,"section":".run","offset":327016},{"tag":"A","fx":21,"first":0,"count":1063,"section":".run","offset":323784},{"tag":"A","fx":22,"first":0,"count":1067,"section":".run","offset":320522},{"tag":"A","fx":24,"first":2,"count":11,"section":".run","offset":319932},{"tag":"A","fx":24,"first":15,"count":165,"section":".run","offset":319971},{"tag":"A","fx":28,"first":0,"count":537,"section":".run","offset":318300},{"tag":"B","fx":4,"first":65,"count":1,"section":".run","offset":317808},{"tag":"B","fx":4,"first":73,"count":1,"section":".run","offset":317811},{"tag":"B","fx":4,"first":158,"count":1,"section":".run","offset":317814},{"tag":"B","fx":4,"first":163,"count":1,"section":".run","offset":317817},{"tag":"B","fx":4,"first":172,"count":1,"section":".run","offset":317820},{"tag":"B","fx":4,"first":182,"count":1,"section":".run","offset":317823},{"tag":"B","fx":4,"first":194,"count":1,"section":".run","offset":317826},{"tag":"B","fx":4,"first":199,"count":1,"section":".run","offset":317829},{"tag":"B","fx":4,"first":207,"count":1,"section":".run","offset":317832},{"tag":"B","fx":4,"first":215,"count":1,"section":".run","offset":317835},{"tag":"B","fx":4,"first":220,"count":1,"section":".run","offset":317838},{"tag":"B","fx":4,"first":225,"count":1,"section":".run","offset":317841},{"tag":"B","fx":4,"first":229,"count":1,"section":".run","offset":317844},{"tag":"B","fx":4,"first":248,"count":1,"section":".run","offset":317847},{"tag":"B","fx":4,"first":266,"count":1,"section":".run","offset":317850},{"tag":"B","fx":4,"first":281,"count":1,"section":".run","offset":317853},{"tag":"B","fx":4,"first":286,"count":1,"section":".run","offset":317856},{"tag":"B","fx":4,"first":290,"count":1,"section":".run","offset":317859},{"tag":"B","fx":4,"first":307,"count":1,"section":".run","offset":317862},{"tag":"B","fx":4,"first":325,"count":1,"section":".run","offset":317865},{"tag":"B","fx":4,"first":374,"count":1,"section":".run","offset":317868},{"tag":"B","fx":5,"first":25,"count":1,"section":".run","offset":317778},{"tag":"B","fx":5,"first":42,"count":1,"section":".run","offset":317781},{"tag":"B","fx":5,"first":62,"count":1,"section":".run","offset":317784},{"tag":"B","fx":5,"first":91,"count":1,"section":".run","offset":317787},{"tag":"B","fx":5,"first":179,"count":1,"section":".run","offset":317790},{"tag":"B","fx":5,"first":181,"count":1,"section":".run","offset":317793},{"tag":"B","fx":12,"first":62,"count":1,"section":".run","offset":317698},{"tag":"B","fx":12,"first":64,"count":1,"section":".run","offset":317701},{"tag":"B","fx":12,"first":68,"count":1,"section":".run","offset":317704},{"tag":"B","fx":12,"first":70,"count":1,"section":".run","offset":317707},{"tag":"B","fx":12,"first":91,"count":1,"section":".run","offset":317710},{"tag":"B","fx":12,"first":93,"count":1,"section":".run","offset":317713},{"tag":"B","fx":12,"first":97,"count":1,"section":".run","offset":317716},{"tag":"B","fx":12,"first":99,"count":1,"section":".run","offset":317719},{"tag":"B","fx":12,"first":165,"count":1,"section":".run","offset":317722},{"tag":"B","fx":12,"first":170,"count":1,"section":".run","offset":317725},{"tag":"B","fx":12,"first":172,"count":1,"section":".run","offset":317728},{"tag":"B","fx":12,"first":174,"count":1,"section":".run","offset":317731},{"tag":"B","fx":12,"first":176,"count":1,"section":".run","offset":317734},{"tag":"B","fx":12,"first":180,"count":1,"section":".run","offset":317737},{"tag":"B","fx":12,"first":182,"count":1,"section":".run","offset":317740},{"tag":"B","fx":12,"first":193,"count":1,"section":".run","offset":317743},{"tag":"B","fx":13,"first":259,"count":1,"section":".run","offset":317692},{"tag":"B","fx":16,"first":23,"count":1,"section":".run","offset":317676},{"tag":"B","fx":16,"first":27,"count":1,"section":".run","offset":317679},{"tag":"B","fx":16,"first":206,"count":1,"section":".run","offset":317682},{"tag":"B","fx":17,"first":30,"count":1,"section":".run","offset":317656},{"tag":"B","fx":17,"first":34,"count":1,"section":".run","offset":317659},{"tag":"B","fx":17,"first":118,"count":1,"section":".run","offset":317662},{"tag":"B","fx":17,"first":288,"count":1,"section":".run","offset":317665},{"tag":"B","fx":18,"first":48,"count":1,"section":".run","offset":317626},{"tag":"B","fx":18,"first":82,"count":1,"section":".run","offset":317629},{"tag":"B","fx":18,"first":87,"count":1,"section":".run","offset":317632},{"tag":"B","fx":18,"first":91,"count":1,"section":".run","offset":317635},{"tag":"B","fx":18,"first":260,"count":1,"section":".run","offset":317638},{"tag":"B","fx":18,"first":328,"count":1,"section":".run","offset":317641},{"tag":"B","fx":19,"first":109,"count":1,"section":".run","offset":317610},{"tag":"B","fx":19,"first":149,"count":1,"section":".run","offset":317613},{"tag":"B","fx":19,"first":276,"count":1,"section":".run","offset":317616},{"tag":"B","fx":20,"first":102,"count":1,"section":".run","offset":317550},{"tag":"B","fx":20,"first":107,"count":1,"section":".run","offset":317553},{"tag":"B","fx":20,"first":116,"count":1,"section":".run","offset":317556},{"tag":"B","fx":20,"first":167,"count":1,"section":".run","offset":317559},{"tag":"B","fx":20,"first":185,"count":1,"section":".run","offset":317562},{"tag":"B","fx":20,"first":239,"count":1,"section":".run","offset":317565},{"tag":"B","fx":20,"first":322,"count":1,"section":".run","offset":317568},{"tag":"B","fx":20,"first":403,"count":1,"section":".run","offset":317571},{"tag":"B","fx":20,"first":425,"count":1,"section":".run","offset":317574},{"tag":"B","fx":20,"first":517,"count":1,"section":".run","offset":317577},{"tag":"B","fx":20,"first":550,"count":1,"section":".run","offset":317580},{"tag":"B","fx":20,"first":590,"count":1,"section":".run","offset":317583},{"tag":"B","fx":21,"first":15,"count":1,"section":".run","offset":317504},{"tag":"B","fx":21,"first":374,"count":1,"section":".run","offset":317507},{"tag":"B","fx":21,"first":406,"count":1,"section":".run","offset":317510},{"tag":"B","fx":21,"first":432,"count":1,"section":".run","offset":317513},{"tag":"B","fx":21,"first":470,"count":1,"section":".run","offset":317516},{"tag":"B","fx":21,"first":478,"count":1,"section":".run","offset":317519},{"tag":"B","fx":21,"first":481,"count":1,"section":".run","offset":317522},{"tag":"B","fx":21,"first":574,"count":1,"section":".run","offset":317525},{"tag":"B","fx":21,"first":800,"count":1,"section":".run","offset":317528},{"tag":"B","fx":22,"first":202,"count":1,"section":".run","offset":317434},{"tag":"B","fx":22,"first":315,"count":1,"section":".run","offset":317437},{"tag":"B","fx":22,"first":402,"count":1,"section":".run","offset":317440},{"tag":"B","fx":22,"first":404,"count":1,"section":".run","offset":317443},{"tag":"B","fx":22,"first":417,"count":1,"section":".run","offset":317446},{"tag":"B","fx":22,"first":457,"count":1,"section":".run","offset":317449},{"tag":"B","fx":22,"first":461,"count":1,"section":".run","offset":317452},{"tag":"B","fx":22,"first":465,"count":1,"section":".run","offset":317455},{"tag":"B","fx":22,"first":492,"count":1,"section":".run","offset":317458},{"tag":"B","fx":22,"first":719,"count":1,"section":".run","offset":317461},{"tag":"B","fx":22,"first":746,"count":1,"section":".run","offset":317464},{"tag":"B","fx":22,"first":800,"count":1,"section":".run","offset":317467},{"tag":"B","fx":22,"first":842,"count":1,"section":".run","offset":317470},{"tag":"B","fx":22,"first":1051,"count":1,"section":".run","offset":317473}]},{"layout":"off","identity":"3399ca6053330dc208118d73f0cf304c3b888ecf0a685d04cc5c2277fcea7abd","packageSha256":"8e059084cb50ac1539d258026acf9cdc2a8c2a2100c0348414bb6e5c1418eb18","patch":[[15744,1,[" \"4e7500004eb9000000004ef94002dc6e4eb9000000004ef94002dc964eb9000000004ef94002dcca0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000022020c810000008d6306223c0000008d4ef94001d86422020c810000008d6306223c0000008d4ef94001d8a24feffff448d703024eb9000000004cd703024fef000c4a80671a72ffb081672072feb081672c2f39000000002f004ef94001de5c2039fc0b01c04ef94001de6a\""]],[15780,1,[" \"4ef9\""]],[15798,1,[" \"4ef90000\""]],[15816,1,[" \"4ef90000000000000000000009028d000401\""]],[15825,1,[" \"0904010000ff4d0100080b02020100000009040200000101000009240100010900010309040300020103000007240100012500062402010100062402020200092403010301020100092403020401010100090502024000000000052501010109058202400000000005250101\""]],[15829,2,[" \"0x400cb87e\","," 22"]],[15834,1,[" \"0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009028d000401\""]],[15848,1,[" \"0904010000ff4d0100080b02020100000009040200000101000009240100010900010309040300020103000007240100012500062402010100062402020200092403010301020100092403020401010100090502020002000000052501010109058202000200000005250101\""]],[15852,2,[" \"0x400cb87e\","," 22"]],[15857,1,[" \"0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009078d000401\""]],[15866,1,[" \"0904010000ff4d0100080b02020100000009040200000101000009240100010900010309040300020103000007240100012500062402010100062402020200092403010301020100092403020401010100090502024000000000052501010109058202400000000005250101\""]],[15870,2,[" \"0x400cb87e\","," 22"]],[15875,1,[" \"0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009078d000401\""]],[15889,1,[" \"0904010000ff4d0100080b02020100000009040200000101000009240100010900010309040300020103000007240100012500062402010100062402020200092403010301020100092403020401010100090502020002000000052501010109058202000200000005250101\""]],[15893,2,[" \"0x400cb87e\","," 22"]],[15898,1,[" \"000000000000000000000000000000000000000000000000\""]],[15916,1,[" \"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[16092,64,[" \"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[17945,1,[" \"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006330633832613931373264656461306239363566623763366532336633313636613565313361313536326638613036633536363538613565336430333936393000333339396361363035333333306463323038313138643733663063663330346333623838386563663061363835643034636335633232373766636561376162640000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000312e34304300000000000000000000000033333939636136303533333330646332000100000095a80000002d00000352\""]],[18149,19,[" \"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000460c8122460d0ffa460bf218460c80f0000000000000000000000000000000000000000000000000000000000000000000000000151315141515151615171518151916141715181619131914191519161917191819191b131b141b151b161b171b181b191c131c161c191d131d161d191e131e161e191f131f1921132114211521162117211821192218231623172418251325142515251625172518251959135914591559165917591859195a135a165a195b135b165b195c135c165c195d145d155d175d185f135f145f155f165f175f185f1960136016601961136116611962136216621963136319651366136713671467156716671767186719681369136b146b156b166b176b186b196c136c166d136d166e136e166f146f156f166f176f186f1900151305070000000011001b13050700001100120021130507000023001201591305070000350014015f1305070000490012016513050700005b000b016b130507000066001207ff07ff00030006000c001800300018000c0006000307ff07ff00000000000001fc03fe07070603060306030603070703fe01fc00000000000007ff07ff06030603060306030707038e01fc00f8\""]],[18622,1,[" \"302e372e3130003399ca6053330dc208118d73f0cf304c3b888ecf0a685d04cc5c2277fcea7abd00000000200000003200000044000000480000004c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[23913,1,[" 141"]],[23969,1,[" 284940"]],[23973,1,[" 285254"]],[23977,1,[" 285112"]],[23981,1,[" 285436"]],[23989,1,[" 285194"]],[23993,1,[" 285456"]],[23997,1,[" 285464"]],[24001,1,[" 285458"]],[24005,1,[" 285720"]],[24009,1,[" 285454"]],[24077,1,[" 286218"]],[24081,1,[" 286444"]],[24085,1,[" 286354"]],[24089,1,[" 286684"]],[24093,1,[" 286658"]],[24097,1,[" 286708"]],[24101,1,[" 286780"]],[24110,344,[]],[24537,1,[" 285453"]],[24617,1,[" 284852"]],[24801,5,[" 283904"]],[24829,1,[" 283302"]],[24833,1,[" 283392"]],[24846,4,[]],[25101,1,[" 284352"]],[25121,1,[" 285460"]],[25191,4,[]],[25201,1,[" 285002"]],[25253,1,[" 284416"]],[25455,4,[]],[25551,4,[]],[25573,1,[" 286290"]],[25799,4,[]],[25873,1,[" 284160"]],[25893,1,[" 283268"]],[26005,1,[" 285382"]],[26030,4,[]],[26125,1,[" 283648"]],[26149,1,[" 284672"]],[26279,4,[]],[26297,1,[" 286784"]],[26379,4,[]],[26397,1,[" 285976"]],[26561,1,[" 286272"]],[26713,1,[" 285334"]],[26786,4,[]],[26866,4,[]],[27037,1,[" 286036"]],[27050,4,[]],[27098,4,[]],[27277,1,[" 286700"]],[27411,4,[]],[27470,4,[]],[27643,4,[]],[27689,1,[" 283358"]],[27805,1,[" 285452"]],[27834,4,[]],[27973,1,[" 286306"]],[28043,4,[]],[28058,4,[]],[28086,4,[]],[28201,1,[" 286704"]],[28222,4,[]],[28341,8,[]],[29285,13,[]],[44464,1,[" 284672"]],[44653,1,[" 284416"]],[86013,8,[" 283278,"]],[86027,1,[" 283312,"]],[86034,7,[]],[86044,1,[" 286272"]],[86058,1,[" 286290"]],[86062,8,[" 283368,"]],[86076,1,[" 283382,"]],[86083,1,[" 284910,"]],[86086,1,[" 285452"]],[86090,1,[" 284916,"]],[86093,1,[" 285453"]],[86097,1,[" 285038,"]],[86100,1,[" 285453"]],[86104,1,[" 285108,"]],[86107,1,[" 283268"]],[86111,1,[" 285234,"]],[86114,1,[" 285456"]],[86118,1,[" 285246,"]],[86121,1,[" 285460"]],[86125,1,[" 285276,"]],[86128,1,[" 285453"]],[86132,1,[" 285282,"]],[86135,1,[" 285458"]],[86139,1,[" 285302,"]],[86142,1,[" 285456"]],[86146,1,[" 285402,"]],[86149,1,[" 285454"]],[86153,1,[" 286018,"]],[86156,1,[" 286700"]],[86160,1,[" 286032,"]],[86163,1,[" 284852"]],[86167,1,[" 286046,"]],[86170,1,[" 285452"]],[86174,1,[" 286164,"]],[86177,1,[" 286704"]],[86181,1,[" 286214,"]],[86184,1,[" 285002"]],[86188,1,[" 286322,"]],[86191,1,[" 285452"]],[86195,1,[" 286328,"]],[86198,1,[" 285453"]],[86202,1,[" 286334,"]],[86205,1,[" 285456"]],[86209,1,[" 286510,"]],[86212,1,[" 286700"]],[86216,1,[" 286624,"]],[86219,1,[" 286780"]],[86223,1,[" 286760,"]],[86226,1,[" 286780"]],[86230,1,[" 286770,"]],[86233,673,[" 286784"]],[91871,1,[" \"sym:usbmidi_rx_isr_shim\","]],[91902,60,[]],[94041,1,[" \"identity.c\": \"b2226d5786a3f9274f46335ec9069c5746b44ec6d4b5fbe1b90819bb4ceeca87\","]],[94101,1,[" \"usb_base.s\": \"1ae9d3f2371e79a433b4aa1d31aa30408836b51c5296133b960e8246175dec84\","]],[94104,2,[" \"usb_reserve.s\": \"0fde65d1387d49e9fd43eb2f7f53c0fc9bc64eb1a98b0a98ac9815eb6cf97870\""]]],"fills":[{"tag":"A","shared":2001,"first":0,"count":286,"site":"0x400f0ee3","offset":0},{"tag":"A","shared":2287,"first":0,"count":35,"site":"0x400f0ee3","offset":858},{"tag":"A","shared":2322,"first":0,"count":93,"site":"0x400f0ee3","offset":963},{"tag":"B","shared":1425,"first":0,"count":286,"site":"0x40103e34","offset":0},{"tag":"B","shared":1711,"first":0,"count":35,"site":"0x40103e34","offset":858},{"tag":"B","shared":1746,"first":0,"count":93,"site":"0x40103e34","offset":963},{"tag":"A","fx":4,"first":0,"count":441,"section":".run","offset":334940},{"tag":"A","fx":5,"first":0,"count":261,"section":".run","offset":334150},{"tag":"A","fx":12,"first":0,"count":282,"section":".run","offset":333288},{"tag":"A","fx":13,"first":0,"count":345,"section":".run","offset":332238},{"tag":"A","fx":16,"first":0,"count":207,"section":".run","offset":331602},{"tag":"A","fx":17,"first":0,"count":289,"section":".run","offset":330704},{"tag":"A","fx":18,"first":0,"count":329,"section":".run","offset":329680},{"tag":"A","fx":19,"first":0,"count":277,"section":".run","offset":328818},{"tag":"A","fx":20,"first":0,"count":594,"section":".run","offset":327016},{"tag":"A","fx":21,"first":0,"count":1063,"section":".run","offset":323784},{"tag":"A","fx":22,"first":0,"count":1067,"section":".run","offset":320522},{"tag":"A","fx":24,"first":2,"count":11,"section":".run","offset":319932},{"tag":"A","fx":24,"first":15,"count":165,"section":".run","offset":319971},{"tag":"A","fx":28,"first":0,"count":537,"section":".run","offset":318300},{"tag":"B","fx":4,"first":65,"count":1,"section":".run","offset":317808},{"tag":"B","fx":4,"first":73,"count":1,"section":".run","offset":317811},{"tag":"B","fx":4,"first":158,"count":1,"section":".run","offset":317814},{"tag":"B","fx":4,"first":163,"count":1,"section":".run","offset":317817},{"tag":"B","fx":4,"first":172,"count":1,"section":".run","offset":317820},{"tag":"B","fx":4,"first":182,"count":1,"section":".run","offset":317823},{"tag":"B","fx":4,"first":194,"count":1,"section":".run","offset":317826},{"tag":"B","fx":4,"first":199,"count":1,"section":".run","offset":317829},{"tag":"B","fx":4,"first":207,"count":1,"section":".run","offset":317832},{"tag":"B","fx":4,"first":215,"count":1,"section":".run","offset":317835},{"tag":"B","fx":4,"first":220,"count":1,"section":".run","offset":317838},{"tag":"B","fx":4,"first":225,"count":1,"section":".run","offset":317841},{"tag":"B","fx":4,"first":229,"count":1,"section":".run","offset":317844},{"tag":"B","fx":4,"first":248,"count":1,"section":".run","offset":317847},{"tag":"B","fx":4,"first":266,"count":1,"section":".run","offset":317850},{"tag":"B","fx":4,"first":281,"count":1,"section":".run","offset":317853},{"tag":"B","fx":4,"first":286,"count":1,"section":".run","offset":317856},{"tag":"B","fx":4,"first":290,"count":1,"section":".run","offset":317859},{"tag":"B","fx":4,"first":307,"count":1,"section":".run","offset":317862},{"tag":"B","fx":4,"first":325,"count":1,"section":".run","offset":317865},{"tag":"B","fx":4,"first":374,"count":1,"section":".run","offset":317868},{"tag":"B","fx":5,"first":25,"count":1,"section":".run","offset":317778},{"tag":"B","fx":5,"first":42,"count":1,"section":".run","offset":317781},{"tag":"B","fx":5,"first":62,"count":1,"section":".run","offset":317784},{"tag":"B","fx":5,"first":91,"count":1,"section":".run","offset":317787},{"tag":"B","fx":5,"first":179,"count":1,"section":".run","offset":317790},{"tag":"B","fx":5,"first":181,"count":1,"section":".run","offset":317793},{"tag":"B","fx":12,"first":62,"count":1,"section":".run","offset":317698},{"tag":"B","fx":12,"first":64,"count":1,"section":".run","offset":317701},{"tag":"B","fx":12,"first":68,"count":1,"section":".run","offset":317704},{"tag":"B","fx":12,"first":70,"count":1,"section":".run","offset":317707},{"tag":"B","fx":12,"first":91,"count":1,"section":".run","offset":317710},{"tag":"B","fx":12,"first":93,"count":1,"section":".run","offset":317713},{"tag":"B","fx":12,"first":97,"count":1,"section":".run","offset":317716},{"tag":"B","fx":12,"first":99,"count":1,"section":".run","offset":317719},{"tag":"B","fx":12,"first":165,"count":1,"section":".run","offset":317722},{"tag":"B","fx":12,"first":170,"count":1,"section":".run","offset":317725},{"tag":"B","fx":12,"first":172,"count":1,"section":".run","offset":317728},{"tag":"B","fx":12,"first":174,"count":1,"section":".run","offset":317731},{"tag":"B","fx":12,"first":176,"count":1,"section":".run","offset":317734},{"tag":"B","fx":12,"first":180,"count":1,"section":".run","offset":317737},{"tag":"B","fx":12,"first":182,"count":1,"section":".run","offset":317740},{"tag":"B","fx":12,"first":193,"count":1,"section":".run","offset":317743},{"tag":"B","fx":13,"first":259,"count":1,"section":".run","offset":317692},{"tag":"B","fx":16,"first":23,"count":1,"section":".run","offset":317676},{"tag":"B","fx":16,"first":27,"count":1,"section":".run","offset":317679},{"tag":"B","fx":16,"first":206,"count":1,"section":".run","offset":317682},{"tag":"B","fx":17,"first":30,"count":1,"section":".run","offset":317656},{"tag":"B","fx":17,"first":34,"count":1,"section":".run","offset":317659},{"tag":"B","fx":17,"first":118,"count":1,"section":".run","offset":317662},{"tag":"B","fx":17,"first":288,"count":1,"section":".run","offset":317665},{"tag":"B","fx":18,"first":48,"count":1,"section":".run","offset":317626},{"tag":"B","fx":18,"first":82,"count":1,"section":".run","offset":317629},{"tag":"B","fx":18,"first":87,"count":1,"section":".run","offset":317632},{"tag":"B","fx":18,"first":91,"count":1,"section":".run","offset":317635},{"tag":"B","fx":18,"first":260,"count":1,"section":".run","offset":317638},{"tag":"B","fx":18,"first":328,"count":1,"section":".run","offset":317641},{"tag":"B","fx":19,"first":109,"count":1,"section":".run","offset":317610},{"tag":"B","fx":19,"first":149,"count":1,"section":".run","offset":317613},{"tag":"B","fx":19,"first":276,"count":1,"section":".run","offset":317616},{"tag":"B","fx":20,"first":102,"count":1,"section":".run","offset":317550},{"tag":"B","fx":20,"first":107,"count":1,"section":".run","offset":317553},{"tag":"B","fx":20,"first":116,"count":1,"section":".run","offset":317556},{"tag":"B","fx":20,"first":167,"count":1,"section":".run","offset":317559},{"tag":"B","fx":20,"first":185,"count":1,"section":".run","offset":317562},{"tag":"B","fx":20,"first":239,"count":1,"section":".run","offset":317565},{"tag":"B","fx":20,"first":322,"count":1,"section":".run","offset":317568},{"tag":"B","fx":20,"first":403,"count":1,"section":".run","offset":317571},{"tag":"B","fx":20,"first":425,"count":1,"section":".run","offset":317574},{"tag":"B","fx":20,"first":517,"count":1,"section":".run","offset":317577},{"tag":"B","fx":20,"first":550,"count":1,"section":".run","offset":317580},{"tag":"B","fx":20,"first":590,"count":1,"section":".run","offset":317583},{"tag":"B","fx":21,"first":15,"count":1,"section":".run","offset":317504},{"tag":"B","fx":21,"first":374,"count":1,"section":".run","offset":317507},{"tag":"B","fx":21,"first":406,"count":1,"section":".run","offset":317510},{"tag":"B","fx":21,"first":432,"count":1,"section":".run","offset":317513},{"tag":"B","fx":21,"first":470,"count":1,"section":".run","offset":317516},{"tag":"B","fx":21,"first":478,"count":1,"section":".run","offset":317519},{"tag":"B","fx":21,"first":481,"count":1,"section":".run","offset":317522},{"tag":"B","fx":21,"first":574,"count":1,"section":".run","offset":317525},{"tag":"B","fx":21,"first":800,"count":1,"section":".run","offset":317528},{"tag":"B","fx":22,"first":202,"count":1,"section":".run","offset":317434},{"tag":"B","fx":22,"first":315,"count":1,"section":".run","offset":317437},{"tag":"B","fx":22,"first":402,"count":1,"section":".run","offset":317440},{"tag":"B","fx":22,"first":404,"count":1,"section":".run","offset":317443},{"tag":"B","fx":22,"first":417,"count":1,"section":".run","offset":317446},{"tag":"B","fx":22,"first":457,"count":1,"section":".run","offset":317449},{"tag":"B","fx":22,"first":461,"count":1,"section":".run","offset":317452},{"tag":"B","fx":22,"first":465,"count":1,"section":".run","offset":317455},{"tag":"B","fx":22,"first":492,"count":1,"section":".run","offset":317458},{"tag":"B","fx":22,"first":719,"count":1,"section":".run","offset":317461},{"tag":"B","fx":22,"first":746,"count":1,"section":".run","offset":317464},{"tag":"B","fx":22,"first":800,"count":1,"section":".run","offset":317467},{"tag":"B","fx":22,"first":842,"count":1,"section":".run","offset":317470},{"tag":"B","fx":22,"first":1051,"count":1,"section":".run","offset":317473}]}]} diff --git a/src/engine/assets/octatrack-base.elemod b/src/engine/assets/octatrack-base.elemod index 64f6cfcb66..b8eb40e2fe 100644 --- a/src/engine/assets/octatrack-base.elemod +++ b/src/engine/assets/octatrack-base.elemod @@ -10797,30 +10797,52 @@ ], [ "hex", - "4eb900000000242e000842b90000000042b9000000007003720123c00000000041eefffc42b900000000202efff842b90000000023d0000000002f0042b90000000023c10000000023c20000000023c10000000023c0000000004eb9000000004fef000c41f90000000023c000000000202efff841f00c0023d0000000004a806700009020390000000042404840420123c00000000042b90000000042b90000000042b90000000042b90000000013c1000000004aae000c673c206e000c43f90000000010105288220024000681ffffff9f0682ffffffe073812d42fff44a0067147419b4816504102efff712c0b3fc0000000066ce242efff07006223c000000b423c00000000023c1000000004e5e4e7520390000000071c06000ff7270fbc0b9000000002f032f024a80660000d07007b0af000c650000c6420341ef0018700423d00000000023c000000000700141ef001442b90000000042b90000000042b90000000042b90000000042b90000000023c00000000042b90000000042b90000000042b90000000042b90000000013c300000000262f000c23d00000000023c300000000760423c3000000004aaf0010673643f900000000206f00101010528822000681ffffff9f24000682ffffffe073814a0067127619b6816502100212c0b3fc0000000066d47006263c000000b423c00000000023c300000000241f261f4e7541f9000000004280d098b1fc0000000066f6e6884e752f0241f9000000004282d498b1fc0000000066f6e68a4eb9000000004a80670a203900000000b08262062002241f4e7524002002241f" + "4eb900000000242e000842b90000000042b9000000007003720123c00000000041eefffc42b900000000202efff842b90000000023d0000000002f0042b90000000023c10000000023c20000000023c10000000023c0000000004eb9000000004fef000c41f90000000023c000000000202efff841f00c0023d0000000004a806700009020390000000042404840420123c00000000042b90000000042b90000000042b90000000042b90000000013c1000000004aae000c673c206e000c43f90000000010105288220024000681ffffff9f0682ffffffe073812d42fff44a0067147419b4816504102efff712c0b3fc0000000066ce242efff07006223c000000b423c00000000023c1000000004e5e4e7520390000000071c06000ff7270fbc0b9000000002f032f024a80660000d07007b0af000c650000c6420341ef0018700423d00000000023c000000000700141ef001442b90000000042b90000000042b90000000042b90000000042b90000000023c00000000042b90000000042b90000000042b90000000042b90000000013c300000000262f000c23d00000000023c300000000760423c3000000004aaf0010673643f900000000206f00101010528822000681ffffff9f24000682ffffffe073814a0067127619b6816502100212c0b3fc0000000066d47006263c000000b423c00000000023c300000000241f261f4e7541f9000000004280d098b1fc0000000066f6e6884e752f024eb9000000004a80674441f9000000004280d098b1fc0000000066f6e688227900000000b3c0632641f9000000004280243c000000004a9856c173019081b1c266f4720a4c010800241fd0894e7541f9000000004280d098b1fc0000000066f6e68841f900000000243c000000002240428060c242a7" ], [ "stock", - "0x4001588a", + "0x40027d38", + 12 + ], + [ + "hex", + "4ebafe7e" + ], + [ + "stock", + "0x4003575e", + 8 + ], + [ + "hex", + "0000000067024e757004b0b90000000066f4202f0004b0b90000000066e8700523c0000000004eb9000000004a80672241f9000000004280223c00000000d098b1c166fae688b0b900000000" + ], + [ + "stock", + "0x4007d8dc", 8 ], + [ + "hex", + "000000004e754fefffec2f024ebaff0e720fb2af001c650000a241f900000000727f2f50000c41f9000000002f50001041f9000000002f50001441f9000000002f500008b2af00206570721fc2af0020242f0020ea8a20772c0824080302675ab0b9000000006552486f00082f2f00242f40000c4eb90000000042a77207c2af0028202f001052b9000000002f007001486f0018e3a82f0181b9000000004ebafd804fef00187006b0b90000000067147001" + ], [ "stock", - "0x40027d38", + "0x4003d4c0", 8 ], [ "hex", - "4ebafebc" + "241f" ], [ "stock", - "0x4003575e", + "0x4001be0e", 8 ], [ "hex", - "0000000067024e757004b0b90000000066f4202f0004b0b90000000066e8700523c00000000041f9000000004280d098b1fc0000000066f6e688b0af000c" + "7204b2b90000000066e27404b4b90000000066d8222f001c700523c00000000042b90000000023c1000000004eb9000000004a80672241f9000000004280223c00000000d098b1c166fae688b0b900000000" ], [ "stock", @@ -10829,7 +10851,7 @@ ], [ "hex", - "000000004e754feffff042802f0e4df9000000002f02204ed098b1fc0000000066f62400e68a4eb9000000004a80670c203900000000b082620000b0700fb0af001c6500009a41f900000000707f2f50000c41f9000000002f50001041f9000000002f50001441f9000000002f500008b0af00206568701fc0af0020222f0020ea8922371c0801016754b4b900000000654c486f00082f2f00244eb90000000042a772077001c2af00282f02486f001852b900000000e3a82f0181b9000000004ebafdaa4fef00187006b0b900000000671e7001241f2c5f4fef00104e75241f42802c5f4fef00104e7524006000ff4e7004b0b90000000066d87004b0b90000000066ce206f001c700523c00000000042b90000000023c8000000004280d09ebdfc0000000066f6e688b48052c07100448023c000000000700160984e56ff34720148d73cfc2a390000000020055380b28064000b7c4a856600093c2039000000007204b280670015ba6d0001fc7402b480670011407603b6806700029e53804a80660001da246e000843f90000000041f9000000002d4aff641011528852891140ffff670a4210b3fc0000000066ea206eff644879000000002f082d4800084ebad89c508f226e000841f9000000002d49ff642018b08563022a00b1fc0000000066f0246eff6442a72d4a000845f9000000004e92588f22390000000026004a806716b280620026d6203c000003e84c0018004c4310012601" + "000000007001608c4e56ff34720148d73cfc2a390000000020055380b28064000b7c4a856600093c2039000000007204b280670015ba6d0001fc7402b480670011407603b6806700029e53804a80660001da246e000843f90000000041f9000000002d4aff641011528852891140ffff670a4210b3fc0000000066ea206eff644879000000002f082d4800084ebad866508f226e000841f9000000002d49ff642018b08563022a00b1fc0000000066f0246eff6442a72d4a000845f9000000004e92588f22390000000026004a806716b280620026d6203c000003e84c0018004c4310012601" ], [ "stock", @@ -10838,7 +10860,7 @@ ], [ "hex", - "22390000000028004a806716b28062002704243c000003e84c0218004c441001280142a745f9000000004e92588fb08362001996487800014e9245f900000000588f41f9000000002d50ffc243f9000000002d51ffc62d52ffcab0846200178c47f900000000742b2c0e0686ffffffda2e3c0000000045fad9102d53ffde2d44ffce4bf9000000002d46ff64220a280e2d45ffda2a3c00000000202e000824472d43ffd242aeffe642aeffea0684ffffffc22e012c002d55ffe22f1a" + "22390000000028004a806716b28062002704243c000003e84c0218004c441001280142a745f9000000004e92588fb08362001996487800014e9245f900000000588f41f9000000002d50ffc243f9000000002d51ffc62d52ffcab0846200178c47f900000000742b2c0e0686ffffffda2e3c0000000045fad8da2d53ffde2d44ffce4bf9000000002d46ff64220a280e2d45ffda2a3c00000000202e000824472d43ffd242aeffe642aeffea0684ffffffc22e012c002d55ffe22f1a" ], [ "stock", @@ -10856,7 +10878,7 @@ ], [ "hex", - "226eff6420442618703c90822f192f0348780004487800282f00487800382f062808204758aeff644e904fef00302e83703b90822f004878006420450682fffffff74e904fef000c70feb08266942039000000002d46000890b9000000004a806e001cb44cee3cfcff344e5e4e757c06bc8067000b667e07be80670001f05b804a8066e04879000000004eb900000000588f22390000000058812d40ff6cb28063107404b48063027004598023c0000000004879000000002f2e00084ebad6a6508f4aaeff6c660003e0487900000000" + "226eff6420442618703c90822f192f0348780004487800282f00487800382f062808204758aeff644e904fef00302e83703b90822f004878006420450682fffffff74e904fef000c70feb08266942039000000002d46000890b9000000004a806e001cb44cee3cfcff344e5e4e757c06bc8067000b667e07be80670001f05b804a8066e04879000000004eb900000000588f22390000000058812d40ff6cb28063107404b48063027004598023c0000000004879000000002f2e00084ebad670508f4aaeff6c660003e0487900000000" ], [ "stock", @@ -10874,7 +10896,7 @@ ], [ "hex", - "4ab90000000066001ee6487900000000487800344878005d2f2e00084ebad73c4fef00104cee3cfcff344e5e4e7548790000000079b9000000002f2e00084ebad632508f4a8466001638487900000000" + "4ab90000000066001ee6487900000000487800344878005d2f2e00084ebad7064fef00104cee3cfcff344e5e4e7548790000000079b9000000002f2e00084ebad5fc508f4a8466001638487900000000" ], [ "stock", @@ -10919,7 +10941,7 @@ ], [ "hex", - "487900000000487800344878005d2f2e00084ebad5ea4fef00106000feac4879000000002f2e00084ebad4ec2c3900000000508f4a86662e487900000000" + "487900000000487800344878005d2f2e00084ebad5b44fef00106000feac4879000000002f2e00084ebad4b62c3900000000508f4a86662e487900000000" ], [ "stock", @@ -10973,7 +10995,7 @@ ], [ "hex", - "51874fef00242c3900000000b8856600fefe206eff682839000000002d4800084a8466001a0c5a84bc84620019dc2039000000000c800000000067001a444a80671222390000000092b9000000004a816e001a004ab90000000066001a64487900000000487800344878005f2f2e000845fad41a4e924fef00104cee3cfcff344e5e4e75263c000000006000ff3e327c0058347c0080703b90872d47ff642c072e0553862a00703e9086b0856524703f90852200e6897807c880538041f11800d1eeff68220a1610e8a982831081bc8066e05285508952867070b08966c82a072e2eff646000fe9e487900000000243c" + "51874fef00242c3900000000b8856600fefe206eff682839000000002d4800084a8466001a0c5a84bc84620019dc2039000000000c800000000067001a444a80671222390000000092b9000000004a816e001a004ab90000000066001a64487900000000487800344878005f2f2e000845fad3e44e924fef00104cee3cfcff344e5e4e75263c000000006000ff3e327c0058347c0080703b90872d47ff642c072e0553862a00703e9086b0856524703f90852200e6897807c880538041f11800d1eeff68220a1610e8a982831081bc8066e05285508952867070b08966c82a072e2eff646000fe9e487900000000243c" ], [ "stock", @@ -11090,7 +11112,7 @@ ], [ "hex", - "6000faba74016000fdc6246e0008227c400bf10a41f900000000223c0000000093c82d4aff642031880020c0b1c166f6266eff64283c0000008093c923cb00000000723f2001e6887607c68141f108005381d1eeff6420041410e6a84680c082108070ffb08166dc5089b3fc0000040066d0206eff64283c00000080487900000000487800022d48000845fac69e4e92508f266e000893c92d4bff64703f2200e6897607c68041f118005380d1eeff6422041410e6a9b58110817236b28066de5089b3fc0000040066d2206eff647201283900000000200457802d480008b2806400194241f900000000760520304cecb68467000e1a7a08ba8467000e125f844a84670016602f004878000d4e9224390000000042a7" + "6000faba74016000fdc6246e0008227c400bf10a41f900000000223c0000000093c82d4aff642031880020c0b1c166f6266eff64283c0000008093c923cb00000000723f2001e6887607c68141f108005381d1eeff6420041410e6a84680c082108070ffb08166dc5089b3fc0000040066d0206eff64283c00000080487900000000487800022d48000845fac6684e92508f266e000893c92d4bff64703f2200e6897607c68041f118005380d1eeff6422041410e6a9b58110817236b28066de5089b3fc0000040066d2206eff647201283900000000200457802d480008b2806400194241f900000000760520304cecb68467000e1a7a08ba8467000e125f844a84670016602f004878000d4e9224390000000042a7" ], [ "stock", @@ -11099,7 +11121,7 @@ ], [ "hex", - "006c487800154878000a2f2e00084ebad2364fef002420027e0a5a804c470000226e" + "006c487800154878000a2f2e00084ebad2004fef002420027e0a5a804c470000226e" ], [ "stock", @@ -11126,7 +11148,7 @@ ], [ "hex", - "ffc220402241d1c312e0b68866fa327c250020412a6eff642d4d0008318908002f01487800234e92246e0008508f206e00085488222e00080681000004022d4aff6410107408508880821140fff8b1c166f0206eff64247c40012bd8487800304878000c2f084ebacaaa487900000000" + "ffc220402241d1c312e0b68866fa327c250020412a6eff642d4d0008318908002f01487800234e92246e0008508f206e00085488222e00080681000004022d4aff6410107408508880821140fff8b1c166f0206eff64247c40012bd8487800304878000c2f084ebaca74487900000000" ], [ "stock", @@ -11162,7 +11184,7 @@ ], [ "hex", - "00184cee3cfcff344e5e4e75246e0008227c400bf10a41f900000000223c0000000093c82d4aff642031880020c0b1c166f6266eff64283c00000080327c007023cb0000000072332001e6887607c68141f108005381d1eeff6420041410e6a84680c0821080700bb08166dc5089b3fc0000039066d04878003348780071206eff644878000c4878000e2f082d4800084ebacbe64879000000004878000f45fac4524e924fef001c206e0008226e0008222e000806810000039541e800752d49ff6410107440508880821140fff8b1c166f0206eff6470012d480008b0b90000000067000c3c203c000000002f004878001b4e92243900000000508f7201b2b900000000670018fa" + "00184cee3cfcff344e5e4e75246e0008227c400bf10a41f900000000223c0000000093c82d4aff642031880020c0b1c166f6266eff64283c00000080327c007023cb0000000072332001e6887607c68141f108005381d1eeff6420041410e6a84680c0821080700bb08166dc5089b3fc0000039066d04878003348780071206eff644878000c4878000e2f082d4800084ebacbb04879000000004878000f45fac41c4e924fef001c206e0008226e0008222e000806810000039541e800752d49ff6410107440508880821140fff8b1c166f0206eff6470012d480008b0b90000000067000c3c203c000000002f004878001b4e92243900000000508f7201b2b900000000670018fa" ], [ "stock", @@ -11171,7 +11193,7 @@ ], [ "hex", - "00094878005848780024487800142f2e00084ebad0084cee3cfcff344fef001c4e5e4e7542031d8308da4a806700f8322442d5c06000f800367c005f2a0e0685ffffffb8702d49eeffb953871d40ffb842142f054878ffff2f3c" + "00094878005848780024487800142f2e00084ebacfd24cee3cfcff344fef001c4e5e4e7542031d8308da4a806700f8322442d5c06000f800367c005f2a0e0685ffffffb8702d49eeffb953871d40ffb842142f054878ffff2f3c" ], [ "stock", @@ -11198,7 +11220,7 @@ ], [ "hex", - "2f082d4800084ebac9e24fef001442402239000000007454363c204678583d40ffbe7007c0811d42ffb83d43ffba1d44ffbc2439000000000680000000311d40ffb9bc8165000c8476311d43ffbd4ab900000000670e3e3c535270433d47ffbb1d40ffbd7203b2b900000000670018322039000000007804b880670018a2b28067001be62e3c000000002f07247c" + "2f082d4800084ebac9ac4fef001442402239000000007454363c204678583d40ffbe7007c0811d42ffb83d43ffba1d44ffbc2439000000000680000000311d40ffb9bc8165000c8476311d43ffbd4ab900000000670e3e3c535270433d47ffbb1d40ffbd7203b2b900000000670018322039000000007804b880670018a2b28067001be62e3c000000002f07247c" ], [ "stock", @@ -11288,7 +11310,7 @@ ], [ "hex", - "00302e842f054878002a2f2e00084e932f054878002a487800594e954fef001c4cee3cfcff344e5e4e754eb900000000487900000000243c000000002f2e00084ebac792508f4ab900000000667672012042b290676e487900000000247c" + "00302e842f054878002a2f2e00084e932f054878002a487800594e954fef001c4cee3cfcff344e5e4e754eb900000000487900000000243c000000002f2e00084ebac75c508f4ab900000000667672012042b290676e487900000000247c" ], [ "stock", @@ -11315,7 +11337,7 @@ ], [ "hex", - "002c2ebc0000000048780032487800592f2e00084ebac8084fef00104cee3cfcff344e5e4e75224270012d51ff642479000000002d4aff68b0aeff6467000e0242857207b2b90000000067000f1e7601b6b90000000067000f124ab900000000660014722c39000000002039000000000280000004014a806600171a203c0000000055862f004879000000004878000e42a747fabd0a4e934fef00104a8666000fbc203c000000002f004879000000004878000e" + "002c2ebc0000000048780032487800592f2e00084ebac7d24fef00104cee3cfcff344e5e4e75224270012d51ff642479000000002d4aff68b0aeff6467000e0242857207b2b90000000067000f1e7601b6b90000000067000f124ab900000000660014722c39000000002039000000000280000004014a806600171a203c0000000055862f004879000000004878000e42a747fabcd44e934fef00104a8666000fbc203c000000002f004879000000004878000e" ], [ "stock", @@ -11333,7 +11355,7 @@ ], [ "hex", - "001041f900000000082800010002660011a44a85660014427001b0aeff6467001a2c203c000000002f004879000000004878001c42a74e932e0e0687ffffffb84fef00102039000000002047226e00082239000000002d49ff6c2a01760a4c4350044c4350052608528822410684000000301144ffff22057809b88965dc206eff6c72019287d2832d48000849eeffda2047224cd1c112e0b1c766fa2e0cde81204710fc002f43eeffae260820492a00780a4c4450014c4450052c085288280006810000003020057a091141ffffba8465dc45f17801206eff6c7a019a89da862d48000841f15800220ad285244195c814a0b1c966f62243d3c542117020206eff6c2a092d48000841f9000000009a8845f05800528814801010b1fc0000000066ee42002a6eff6c2d4d0008134000044aaeff68670010dc487900000000263c00000000200c2e0e2f002a3c000000004878001c7819487800014e9345f9000000000687ffffffc24fef00102843264741f9000000002d50ffc243f9000000002a6e00082d51ffc62d52ffca45fac5d2260a24452d4dff682f1c" + "001041f900000000082800010002660011a44a85660014427001b0aeff6467001a2c203c000000002f004879000000004878001c42a74e932e0e0687ffffffb84fef00102039000000002047226e00082239000000002d49ff6c2a01760a4c4350044c4350052608528822410684000000301144ffff22057809b88965dc206eff6c72019287d2832d48000849eeffda2047224cd1c112e0b1c766fa2e0cde81204710fc002f43eeffae260820492a00780a4c4450014c4450052c085288280006810000003020057a091141ffffba8465dc45f17801206eff6c7a019a89da862d48000841f15800220ad285244195c814a0b1c966f62243d3c542117020206eff6c2a092d48000841f9000000009a8845f05800528814801010b1fc0000000066ee42002a6eff6c2d4d0008134000044aaeff68670010dc487900000000263c00000000200c2e0e2f002a3c000000004878001c7819487800014e9345f9000000000687ffffffc24fef00102843264741f9000000002d50ffc243f9000000002a6e00082d51ffc62d52ffca45fac59c260a24452d4dff682f1c" ], [ "stock", @@ -11378,7 +11400,7 @@ ], [ "hex", - "487900000000487800344878005f2f2e00084ebac4344fef00284cee3cfcff344e5e4e75486effa44eb9000000004878000145f90000000024004e92508f2239000000004a806718b280620011cc263c000003e84c03180028014c404004200442a72d40ffc24e92588f2239000000004a806718b280620012922c3c000003e84c0618002e014c40700720072d40ffc60c82000c000062000f66700c48407a0c4845283c000003e8246e0008227c400bf10a41f90000000093c82d4aff6490824c0408004c450000223c000000002d40ffca2031880020c0b1c166f6266eff64283c00000080327c009023cb0000000072332001e6887607c68141f108005381d1eeff6420041410e6a84680c0821080700cb08166dc5089b3fc0000037066d0487800324878006d206eff64" + "487900000000487800344878005f2f2e00084ebac3fe4fef00284cee3cfcff344e5e4e75486effa44eb9000000004878000145f90000000024004e92508f2239000000004a806718b280620011cc263c000003e84c03180028014c404004200442a72d40ffc24e92588f2239000000004a806718b280620012922c3c000003e84c0618002e014c40700720072d40ffc60c82000c000062000f66700c48407a0c4845283c000003e8246e0008227c400bf10a41f90000000093c82d4aff6490824c0408004c450000223c000000002d40ffca2031880020c0b1c166f6266eff64283c00000080327c009023cb0000000072332001e6887607c68141f108005381d1eeff6420041410e6a84680c0821080700cb08166dc5089b3fc0000037066d0487800324878006d206eff64" ], [ "stock", @@ -11387,7 +11409,7 @@ ], [ "hex", - "2f082d4800084ebac1024fef00142039000000004a806c0003d84879000000007a404878ffff2f3c" + "2f082d4800084ebac0cc4fef00142039000000004a806c0003d84879000000007a404878ffff2f3c" ], [ "stock", @@ -11414,7 +11436,7 @@ ], [ "hex", - "0024206e0008226e0008222e000806810000037541e800952d49ff6410107440508880821140fff8b1c166f02a3c00000000742145fac2e22e3c000000002c0e0686ffffffc2200a2646244528472a002f1c4878ffff763b2f02487800174879000000002f3c" + "0024206e0008226e0008222e000806810000037541e800952d49ff6410107440508880821140fff8b1c166f02a3c00000000742145fac2ac2e3c000000002c0e0686ffffffc2200a2646244528472a002f1c4878ffff763b2f02487800174879000000002f3c" ], [ "stock", @@ -11459,7 +11481,7 @@ ], [ "hex", - "487800154878000a2f2e00084ebac42e246e00084fef0024206e00085488222e00080681000004022d4aff646000f274203c000000006000f3c42a0e0685ffffffb82007223c00000ded367c005f2d45ff6842876000ef7628002c0e47f9000000000686ffffffda2e3c00000000742b45fac1842d53ffde2d44ffce4bf9000000002d46ff64220a280e2d45ffda2a3c00000000202e000824472d43ffd242aeffe642aeffea0684ffffffc22e012c002d55ffe26000e872226e00082e0e4282428349f9000000000687ffffffd247f9000000002d44ff682d49ff642039000000002c00dc83bcaeff68640016e870184c06080045eeffc2204a43f408001019781922000681ffffff9f73812a000685ffffffe0b8816502100510c0b1c766de4205102effc21d45ffd24a33680066000a564a00670008aa200e0680ffffffc22f00702c4878ffff90822f004878000e4879000000002f3c" + "487800154878000a2f2e00084ebac3f8246e00084fef0024206e00085488222e00080681000004022d4aff646000f274203c000000006000f3c42a0e0685ffffffb82007223c00000ded367c005f2d45ff6842876000ef7628002c0e47f9000000000686ffffffda2e3c00000000742b45fac14e2d53ffde2d44ffce4bf9000000002d46ff64220a280e2d45ffda2a3c00000000202e000824472d43ffd242aeffe642aeffea0684ffffffc22e012c002d55ffe26000e872226e00082e0e4282428349f9000000000687ffffffd247f9000000002d44ff682d49ff642039000000002c00dc83bcaeff68640016e870184c06080045eeffc2204a43f408001019781922000681ffffff9f73812a000685ffffffe0b8816502100510c0b1c766de4205102effc21d45ffd24a33680066000a564a00670008aa200e0680ffffffc22f00702c4878ffff90822f004878000e4879000000002f3c" ], [ "stock", @@ -11477,7 +11499,7 @@ ], [ "hex", - "0000000042a745fab48ce5880680000000002f002f05" + "0000000042a745fab456e5880680000000002f002f05" ], [ "stock", @@ -11513,7 +11535,7 @@ ], [ "hex", - "006d2f2e00084ebabc1c4fef00106000e8a22003d0b90000000048780001e5880680000000002f002f054e924fef000c6000ff724878000126004e9245f900000000588f41f9000000002d50ffc243f9000000002d51ffc62d52ffcab0846300e66c6000fdf276326000f37c486effda2f004eb900000000508f4a806700fc1842402239000000007a077454363c204678583d40ffb47007c0811d42ffae3d43ffb01d44ffb20680000000311d40ffafba816d00127272314206102effee1d41ffb343eeffee1d46fffd4a006734246e000820492d4aff6422000681ffffff9f73810680ffffffe07419b481650210801028000152884a0066de206eff642d4800082f09247c" + "006d2f2e00084ebabbe64fef00106000e8a22003d0b90000000048780001e5880680000000002f002f054e924fef000c6000ff724878000126004e9245f900000000588f41f9000000002d50ffc243f9000000002d51ffc62d52ffcab0846300e66c6000fdf276326000f37c486effda2f004eb900000000508f4a806700fc1842402239000000007a077454363c204678583d40ffb47007c0811d42ffae3d43ffb01d44ffb20680000000311d40ffafba816d00127272314206102effee1d41ffb343eeffee1d46fffd4a006734246e000820492d4aff6422000681ffffff9f73810680ffffffe07419b481650210801028000152884a0066de206eff642d4800082f09247c" ], [ "stock", @@ -11567,7 +11589,7 @@ ], [ "hex", - "4879000000002f3c400ba8762e004c4470074eb940012bd82f02742b2f054878001a45fabf1c2f2e00084e922a0e0685ffffff90226e000828074fef002820451d42ffb82d49ff642406720a4c4120004c41200222485288" + "4879000000002f3c400ba8762e004c4470074eb940012bd82f02742b2f054878001a45fabee62f2e00084e922a0e0685ffffff90226e000828074fef002820451d42ffb82d49ff642406720a4c4120004c41200222485288" ], [ "stock", @@ -11648,7 +11670,7 @@ ], [ "hex", - "4878002a4878002d2f2e00084ebabbbc4fef00302e824878002a487800594ebab8aa" + "4878002a4878002d2f2e00084ebabb864fef00302e824878002a487800594ebab874" ], [ "stock", @@ -11657,7 +11679,7 @@ ], [ "hex", - "ff344e5e4e75246e0008283c00000080327c00702d4aff6472102001e6887607c68141f108005381d1eeff6420041410e6a84680c08274031080b48166dc5089b3fc0000039066d04878003b48780071206eff644878002f4878000e2f084ebab8d24879000000004878ffff2f3c" + "ff344e5e4e75246e0008283c00000080327c00702d4aff6472102001e6887607c68141f108005381d1eeff6420041410e6a84680c08274031080b48166dc5089b3fc0000039066d04878003b48780071206eff644878002f4878000e2f084ebab89c4879000000004878ffff2f3c" ], [ "stock", @@ -11675,7 +11697,7 @@ ], [ "hex", - "4cee3cfcff344e5e4e7542a74878002f4878006d2f2e00084ebab7084fef00102039000000000c80000000006600e6126050" + "4cee3cfcff344e5e4e7542a74878002f4878006d2f2e00084ebab6d24fef00102039000000000c80000000006600e6126050" ], [ "stock", @@ -11684,7 +11706,7 @@ ], [ "hex", - "4878006d2f2e00084ebab6de4fef00105a84bc846300e5e060b62f00" + "4878006d2f2e00084ebab6a84fef00105a84bc846300e5e060b62f00" ], [ "stock", @@ -11711,7 +11733,7 @@ ], [ "hex", - "2f304fef000c7267b2806d000a6e2039000000004a806600e59a6000e5a8b0b90000000055c071002a0044856000f1f2487900000000487800344878000c2f2e000845fab9b84e92487900000000" + "2f304fef000c7267b2806d000a6e2039000000004a806600e59a6000e5a8b0b90000000055c071002a0044856000f1f2487900000000487800344878000c2f2e000845fab9824e92487900000000" ], [ "stock", @@ -11738,7 +11760,7 @@ ], [ "hex", - "e56042a748780031487800462f2e00084ebab5f44fef00106000e86e2f002639000000004878000d4e924a8357c0243900000000" + "e56042a748780031487800462f2e00084ebab5be4fef00106000e86e2f002639000000004878000d4e924a8357c0243900000000" ], [ "stock", @@ -11752,7 +11774,7 @@ ], [ "hex", - "487800154878000a2f2e00084ebabbca" + "487800154878000a2f2e00084ebabb94" ], [ "stock", @@ -11779,7 +11801,7 @@ ], [ "hex", - "487900000000487800344878005f2f2e00084ebab8be4fef00286000f488283900000000b8b9000000006600f0e22039000000000280000004014a8066000bc44879000000004879000000004878000e42a747faadfe4e93" + "487900000000487800344878005f2f2e00084ebab8884fef00286000f488283900000000b8b9000000006600f0e22039000000000280000004014a8066000bc44879000000004879000000004878000e42a747faadc84e93" ], [ "stock", @@ -11797,7 +11819,7 @@ ], [ "hex", - "487800462f2e00084ebab4ea4fef00102039000000005880b0aeff6c6400e7586000fece" + "487800462f2e00084ebab4b44fef00102039000000005880b0aeff6c6400e7586000fece" ], [ "stock", @@ -11806,7 +11828,7 @@ ], [ "hex", - "4878006d2f2e00084ebab4be4fef00102039000000006000f87c283c000003e84c0408004c41000022004a836600edf42600266e00082403220942847020d4b9000000005e81244941f9000000002d4bff646000ee084879000000004879000000004878000e42a747faad4a4e93" + "4878006d2f2e00084ebab4884fef00102039000000006000f87c283c000003e84c0408004c41000022004a836600edf42600266e00082403220942847020d4b9000000005e81244941f9000000002d4bff646000ee084879000000004879000000004878000e42a747faad144e93" ], [ "stock", @@ -11833,7 +11855,7 @@ ], [ "hex", - "b8836502120212c17a0cba8066d21210226eff642d49000843f208004a016722266e00082d4bff641281528820095289121066f42a6eff640480000000002d4d0008420115810800223c000000002f016000f2327403b4846700049c4878000d487800392f2e00084ebab2604fef000c203c000000002f004878001d4e92508f226e0008206e000843e903b341e800532d49ff6410107280508880811140fff8b1eeff6466ee57844a84670003f64879000000004878002d4e92487900000000487800354e924cee3cfcff34" + "b8836502120212c17a0cba8066d21210226eff642d49000843f208004a016722266e00082d4bff641281528820095289121066f42a6eff640480000000002d4d0008420115810800223c000000002f016000f2327403b4846700049c4878000d487800392f2e00084ebab22a4fef000c203c000000002f004878001d4e92508f226e0008206e000843e903b341e800532d49ff6410107280508880811140fff8b1eeff6466ee57844a84670003f64879000000004878002d4e92487900000000487800354e924cee3cfcff34" ], [ "stock", @@ -11842,7 +11864,7 @@ ], [ "hex", - "223c00000c306000ebb24a00660002f0704d41f90000000014c052881010b1fc0000000066f2307c000642012a0e0685ffffffda22451d8188c2102effc2670c41eeffc212c05288101066f87020220924495c8141f90000000014c052881010b5c166f642047c2c9c8245faaa1e134400062f05" + "223c00000c306000ebb24a00660002f0704d41f90000000014c052881010b1fc0000000066f2307c000642012a0e0685ffffffda22451d8188c2102effc2670c41eeffc212c05288101066f87020220924495c8141f90000000014c052881010b5c166f642047c2c9c8245faa9e8134400062f05" ], [ "stock", @@ -11887,7 +11909,7 @@ ], [ "hex", - "00006000eddc487900000000203c000000002f00263c000000004878001c2a3c000000004878000178194e9345f9000000002e0e0687ffffffc24fef001041f9000000002d50ffc243f9000000002a6e000828432d51ffc626472d52ffca45fab4f4260a24452d4dff686000ef2042a72f02487800094878004248780024487800142f2e00084ebab7122f02487800264878005b4ebab1be4fef00284cee3cfcff344e5e4e75246e0008203c000003e841f900000000227c400bf10a2d40ffca223c0000000093c82d4aff646000f0ac4ab9000000006600065e4211283c312d34202a3c46554c4c2f0c4878ffff" + "00006000eddc487900000000203c000000002f00263c000000004878001c2a3c000000004878000178194e9345f9000000002e0e0687ffffffc24fef001041f9000000002d50ffc243f9000000002a6e000828432d51ffc626472d52ffca45fab4be260a24452d4dff686000ef2042a72f02487800094878004248780024487800142f2e00084ebab6dc2f02487800264878005b4ebab1884fef00284cee3cfcff344e5e4e75246e0008203c000003e841f900000000227c400bf10a2d40ffca223c0000000093c82d4aff646000f0ac4ab9000000006600065e4211283c312d34202a3c46554c4c2f0c4878ffff" ], [ "stock", @@ -11941,7 +11963,7 @@ ], [ "hex", - "00304cee3cfcff344e5e4e752e3c000000006000e7e22039000000000280000004014a806600fb5c4879000000004879000000004878000e42a747faa8a4" + "00304cee3cfcff344e5e4e752e3c000000006000e7e22039000000000280000004014a806600fb5c4879000000004879000000004878000e42a747faa86e" ], [ "stock", @@ -11959,7 +11981,7 @@ ], [ "hex", - "203c000003e82d40ffc24e92588f2239000000004a806700ee5a6000ee3e42a7283c000003e845f9000000004e92588fb0836300d90a6000f29a162801d5142801dd122801e51a2801ed70187e16327c00272c3c000000808680703084807060364580812a3c000001e8114301d5114201dd220b284070c082802641320c340b114101e5114201ed703e9089b0876524200954802200e6897607c68053802041d1c5d1eeff6422061410e6a982821081b3c066e0538750855289762fb68966c8206eff64203c000000002f004878001d2d4800084e92508f226e0008206e000843e903b341e800532d49ff646000faea203c000003e86000ed7a487900000000487800344878000c2f2e000845fab1204e92487900000000" + "203c000003e82d40ffc24e92588f2239000000004a806700ee5a6000ee3e42a7283c000003e845f9000000004e92588fb0836300d90a6000f29a162801d5142801dd122801e51a2801ed70187e16327c00272c3c000000808680703084807060364580812a3c000001e8114301d5114201dd220b284070c082802641320c340b114101e5114201ed703e9089b0876524200954802200e6897607c68053802041d1c5d1eeff6422061410e6a982821081b3c066e0538750855289762fb68966c8206eff64203c000000002f004878001d2d4800084e92508f226e0008206e000843e903b341e800532d49ff646000faea203c000003e86000ed7a487900000000487800344878000c2f2e000845fab0ea4e92487900000000" ], [ "stock", @@ -11986,7 +12008,7 @@ ], [ "hex", - "48780040487800364878000c2f2e00084e9248790000000048780034487800502f2e00084ebab09a4fef002c4cee3cfcff344e5e4e75203c0000000055862f004879000000004878000e42a747faa5f24e93" + "48780040487800364878000c2f2e00084e9248790000000048780034487800502f2e00084ebab0644fef002c4cee3cfcff344e5e4e75203c0000000055862f004879000000004878000e42a747faa5bc4e93" ], [ "stock", @@ -12031,7 +12053,7 @@ ], [ "hex", - "002c42972439000000002f02487800222f2e00084ebab1c02f0248780022487800594ebaad344fef001c4ab9000000006700028a203c000000002f00" + "002c42972439000000002f02487800222f2e00084ebab18a2f0248780022487800594ebaacfe4fef001c4ab9000000006700028a203c000000002f00" ], [ "stock", @@ -12094,7 +12116,7 @@ ], [ "hex", - "00302039000000002400d4b9000000002f002f02487800222f2e00084ebaafda2f0248780022487800594ebaab4e487900000000" + "00302039000000002400d4b9000000002f002f02487800222f2e00084ebaafa42f0248780022487800594ebaab18487900000000" ], [ "stock", @@ -12184,7 +12206,7 @@ ], [ "hex", - "6000fd762839000000002e3c000003e82a3c000003e842812439000000004c0748004c4340042039000000004c0508004c43000026012a00da846000e2e44879000000004879000000004878000e42a747faa23c" + "6000fd762839000000002e3c000003e82a3c000003e842812439000000004c0748004c4340042039000000004c0508004c43000026012a00da846000e2e44879000000004879000000004878000e42a747faa206" ], [ "stock", @@ -12220,7 +12242,7 @@ ], [ "hex", - "2f022f054878001a742b45faadc842832a0e0685ffffff902f2e00084e924fef0028226e000820451d42ffb82d49ff646000eeaa4879000000006000fc98223c000000006000e732223c000000006000e728487900000000243c000003e8" + "2f022f054878001a742b45faad9242832a0e0685ffffff902f2e00084e924fef0028226e000820451d42ffb82d49ff646000eeaa4879000000006000fc98223c000000006000e732223c000000006000e728487900000000243c000003e8" ], [ "stock", @@ -12247,7 +12269,7 @@ ], [ "hex", - "4878002a4878002d2f2e00084ebaabc04fef00302e824878002a487800594ebaa8ae4fef000c6000f00242a7203c000003e82f004878000548780040487800364878000c2f2e00084e9248790000000048780034487800502f2e00084ebaab0c4fef002c6000fa707c64243c000003e86000ed48266e000845f90000000041f9000000002d4bff64224a26426000f3d22a3c000003e86000ed00487900000000283c000003e84878ffff" + "4878002a4878002d2f2e00084ebaab8a4fef00302e824878002a487800594ebaa8784fef000c6000f00242a7203c000003e82f004878000548780040487800364878000c2f2e00084e9248790000000048780034487800502f2e00084ebaaad64fef002c6000fa707c64243c000003e86000ed48266e000845f90000000041f9000000002d4bff64224a26426000f3d22a3c000003e86000ed00487900000000283c000003e84878ffff" ], [ "stock", @@ -12265,7 +12287,7 @@ ], [ "hex", - "2f022f054878001a742b45faac7c2a0e0685ffffff902f2e00084e924fef0028226e000820451d42ffb82d49ff646000ed60263c000003e86000ecec2002760a5a804c430000722b226e" + "2f022f054878001a742b45faac462a0e0685ffffff902f2e00084e924fef0028226e000820451d42ffb82d49ff646000ed60263c000003e86000ecec2002760a5a804c430000722b226e" ], [ "stock", @@ -12274,7 +12296,16 @@ ], [ "hex", - "ff9a20432d49ff641d41ffb86000ee14266e000845f90000000041f9000000002d4bff64224a26426000f320223c000000006000e5a6223c000000006000e59c223c000000006000e592223c000000006000e588223c000000006000e57e266e000845f90000000041f9000000002d4bff64224a26426000f2d2223c000000006000e558226eff782d4900084a806700d8d06000f158246eff64282eff682d4a00084a806700ea0e6000f16e266e000845f90000000041f9000000002d4bff64224a26426000f284266e000845f90000000041f9000000002d4bff64224a26426000f268266e000845f90000000041f9000000002d4bff64224a26426000f24c266e000845f90000000041f9000000002d4bff64224a26426000f2302f0a246f00082f2a00042f124eb900000000508f2279000000004a8967082f4a0008" + "ff9a20432d49ff641d41ffb86000ee14266e000845f90000000041f9000000002d4bff64224a26426000f320223c000000006000e5a6223c000000006000e59c223c000000006000e592223c000000006000e588223c000000006000e57e266e000845f90000000041f9000000002d4bff64224a26426000f2d2223c000000006000e558226eff782d4900084a806700d8d06000f158246eff64282eff682d4a00084a806700ea0e6000f16e266e000845f90000000041f9000000002d4bff64224a26426000f284266e000845f90000000041f9000000002d4bff64224a26426000f268266e000845f90000000041f9000000002d4bff64224a26426000f24c266e000845f90000000041f9000000002d4bff64224a26426000f230" + ], + [ + "stock", + "0x400200aa", + 8 + ], + [ + "hex", + "2f2a00042f124eb900000000508f2279000000004a8967082f4a0008" ], [ "stock", @@ -15711,7 +15742,7 @@ ], [ "hex", - "4e7500004eb9000000004ef94002dc6e4eb9000000004ef94002dc964eb9000000004ef94002dcca00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000022020c81000001036306223c000001034ef94001d86422020c81000001036306223c000001034ef94001d8a24feffff448d703024eb9000000004cd703024fef000c4a80671a72ffb081671a72feb08167262f39000000002f004ef94001de5c4ef900000000" + "4e7500004eb9000000004ef94002dc6e4eb9000000004ef94002dc964eb9000000004ef94002dcca0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000022020c81000001036306223c000001034ef94001d86422020c81000001036306223c000001034ef94001d8a24feffff448d703024eb9000000004cd703024fef000c4a80671a72ffb081671a72feb08167262f39000000002f004ef94001de5c4ef900000000" ], [ "stock", @@ -17912,16 +17943,7 @@ ], [ "hex", - "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006461353561356435323733386564656538633131376663326537356466656339646336623233633635343261633437303235616366646431366533353732633200646661343338313330373130666561396466616334303239366431613764623739623662613365666334356337376230343361653664343566343464333932" - ], - [ - "stock", - "0x400ba944", - 26 - ], - [ - "hex", - "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000312e34304300000000000000000000000064666134333831333037313066656139000100000095a80000002d00000352" + "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006565663266363436666462373864633966653638353763306239326337386237323331663266373632333565653938646235313465303861323630313362356400306435326564633162346466666264396436646665363663316233636362376534326233306663653766663637303135323563363762626137383363616262370000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000312e34304300000000000000000000000030643532656463316234646666626439000100000095a80000002d00000352" ], [ "stock", @@ -18598,7 +18620,7 @@ ], [ "hex", - "302e372e3900dfa438130710fea9dfac40296d1a7db79b6ba3efc45c77b043ae6d45f44d3921000000200000003200000044000000480000004c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "302e372e3130000d52edc1b4dffbd9d6dfe66c1b3ccb7e42b30fce7ff6701525c67bba783cabb700000000200000003200000044000000480000004c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" ], [ "stock", @@ -19222,7 +19244,7 @@ ], [ "hex", - "27d0400b27dc400b282c40065b1440065d9203030304400b2a34400b2a74400b2ac040068e004006907c1002010c445350204c4f4144204641494c454400445350204d454d4f52592046554c4c004453502046554c4c004d5756530000004d574d440200" + "27d0400b27dc400b282c40065b1440065d9203030304400b2a34400b2a74400b2ac040068e004006907c1002010c445350204c4f4144204641494c454400445350204d454d4f52592046554c4c004453502046554c4c004d575653004d574d440200" ], [ "stock", @@ -19593,23 +19615,23 @@ ], "park": [ ".run", - 267562 + 267618 ], "putpanel": [ ".run", - 267728 + 267784 ], "txempty": [ ".run", - 267740 + 267796 ], "parkcore": [ ".run", - 267680 + 267736 ], "drain": [ ".run", - 267630 + 267686 ], "mw_run_next": [ ".boot", @@ -21565,15 +21587,15 @@ ], "staged_row": [ ".run", - 337404 + 337406 ], "event_room": [ ".run", - 338692 + 338694 ], "event_rests": [ ".run", - 337148 + 337150 ], "by_order": [ ".bss", @@ -21605,11 +21627,11 @@ ], "event_span": [ ".run", - 338896 + 338898 ], "owned_span": [ ".run", - 337812 + 337814 ], "refused_event": [ ".bss", @@ -21657,7 +21679,7 @@ ], "no_dsp": [ ".run", - 336758 + 336760 ], "modwerk_runtime_owner_held.part.0": [ ".run", @@ -21713,11 +21735,11 @@ ], "CSWTCH.264": [ ".run", - 336666 + 336668 ], "raise_entry": [ ".run", - 337200 + 337202 ], "slot": [ ".bss", @@ -21725,7 +21747,7 @@ ], "event_table": [ ".run", - 338640 + 338642 ], "restoring": [ ".bss", @@ -21769,7 +21791,7 @@ ], "retirements": [ ".run", - 339314 + 339316 ], "bytes": [ ".run", @@ -21821,7 +21843,7 @@ ], "known": [ ".run", - 339367 + 339369 ], "guarded.part.0": [ ".run", @@ -21897,11 +21919,11 @@ ], "moveq.3": [ ".run", - 339346 + 339348 ], "clamp.2": [ ".run", - 339326 + 339328 ], "look.constprop.0": [ ".run", @@ -21961,7 +21983,7 @@ ], "compressor_slots": [ ".run", - 339362 + 339364 ], "late": [ ".bss", @@ -22325,11 +22347,11 @@ ], "mg_arp_setup_slots": [ ".run", - 339391 + 339393 ], "mg_arp_page": [ ".run", - 339397 + 339399 ], "mg_seen": [ ".bss", @@ -22345,7 +22367,7 @@ ], "mg_keys": [ ".run", - 339387 + 339389 ], "runtime_set_parse": [ ".run", @@ -22661,27 +22683,27 @@ ], "pm_part_icon": [ ".run", - 339760 + 339762 ], "fragments_A": [ ".run", - 339984 + 339986 ], "records_A": [ ".run", - 339920 + 339922 ], "fragments_B": [ ".run", - 339884 + 339886 ], "records_B": [ ".run", - 339836 + 339838 ], "mw_engine_exits": [ ".run", - 340032 + 340034 ], "mw_engine_buffer_0": [ ".bss", @@ -22693,43 +22715,43 @@ ], "mw_engine_words_0_1": [ ".run", - 346226 + 346228 ], "mw_engine_relocations_0_1": [ ".run", - 346204 + 346206 ], "mw_engine_words_0_2": [ ".run", - 343504 + 343506 ], "mw_engine_relocations_0_2": [ ".run", - 343450 + 343452 ], "mw_engine_words_0_8": [ ".run", - 343062 + 343064 ], "mw_engine_relocations_0_8": [ ".run", - 343060 + 343062 ], "mw_engine_words_1_1": [ ".run", - 340608 + 340610 ], "mw_engine_relocations_1_1": [ ".run", - 340586 + 340588 ], "mw_engine_words_1_8": [ ".run", - 340198 + 340200 ], "mw_engine_relocations_1_8": [ ".run", - 340196 + 340198 ], "add_span": [ ".run", @@ -22765,7 +22787,7 @@ ], "CSWTCH.32": [ ".run", - 348678 + 348680 ], "packaged_generation": [ ".bss", @@ -22785,7 +22807,7 @@ ], "tasks": [ ".run", - 348710 + 348712 ], "drawn_epoch": [ ".bss", @@ -23065,7 +23087,7 @@ ], "k.0": [ ".run", - 348982 + 348984 ], "missing_where": [ ".run", @@ -23413,7 +23435,7 @@ ], "idle_cycles": [ ".run", - 349298 + 349300 ], "on_queue": [ ".bss", @@ -23481,19 +23503,19 @@ ], "names.4": [ ".run", - 349278 + 349280 ], "step.3": [ ".run", - 349262 + 349264 ], "names.1": [ ".run", - 349238 + 349240 ], "names.2": [ ".run", - 349250 + 349252 ], "named.0": [ ".bss", @@ -23501,7 +23523,7 @@ ], "exception_hook": [ ".run", - 244900 + 244956 ], "previous_exception": [ ".run", @@ -23537,59 +23559,59 @@ ], "byte.part.0.isra.0": [ ".run", - 247040 + 247096 ], "word": [ ".run", - 247292 + 247348 ], "valid": [ ".run", - 248952 + 249008 ], "meets": [ ".run", - 249038 + 249094 ], "fx2": [ ".run", - 349356 + 349358 ], "fx1": [ ".run", - 349388 + 349390 ], "CSWTCH.4": [ ".run", - 349560 + 349562 ], "families": [ ".run", - 350728 + 350730 ], "arrays": [ ".run", - 253618 + 253674 ], "machine_without_table": [ ".run", - 254444 + 254500 ], "owned_upload_valid": [ ".run", - 256404 + 256460 ], "owned_command_valid": [ ".run", - 256630 + 256686 ], "owned_reset_valid": [ ".run", - 256940 + 256996 ], "owned_reserve": [ ".run", - 257302 + 257358 ], "jobs": [ ".bss", @@ -23621,11 +23643,11 @@ ], "owned_idle": [ ".run", - 257864 + 257920 ], "packet": [ ".run", - 257910 + 257966 ], "age": [ ".bss", @@ -23649,23 +23671,23 @@ ], "copy": [ ".run", - 262220 + 262276 ], "equal": [ ".run", - 262250 + 262306 ], "read32": [ ".run", - 266212 + 266268 ], "write32": [ ".run", - 266220 + 266276 ], "bytes.constprop.0": [ ".run", - 266230 + 266286 ], "REC": [ "abs", @@ -23681,23 +23703,23 @@ ], "dl_idle": [ ".run", - 267972 + 268028 ], "dl_return": [ ".run", - 268426 + 268482 ], "dl_next": [ ".run", - 268038 + 268094 ], "dl_complete": [ ".run", - 268056 + 268112 ], "dl_write": [ ".run", - 268146 + 268202 ], "dl_pin_sent": [ ".run", @@ -23705,27 +23727,27 @@ ], "dl_send": [ ".run", - 268182 + 268238 ], "dl_read": [ ".run", - 268308 + 268364 ], "dl_select_return": [ ".run", - 268600 + 268656 ], "dl_fx1_body": [ ".run", - 268542 + 268598 ], "dl_fx2_body": [ ".run", - 268586 + 268642 ], "dl_part_body": [ ".run", - 268638 + 268694 ], "STATE3": [ "abs", @@ -23761,19 +23783,19 @@ ], "mw_delay_silent": [ ".run", - 269260 + 269316 ], "mw_delay_quiet": [ ".run", - 269282 + 269338 ], "modwerk_raise_row": [ ".run", - 272822 + 272878 ], "modwerk_after_row": [ ".run", - 272942 + 272998 ], "BANK_PTR": [ "abs", @@ -23785,35 +23807,35 @@ ], "mw_row_type": [ ".run", - 273044 + 273100 ], ".main_refuse": [ ".run", - 273142 + 273198 ], "mw_src_common": [ ".run", - 273172 + 273228 ], ".src_refuse": [ ".run", - 273234 + 273290 ], "mw_chooser_row_type": [ ".run", - 273438 + 273494 ], "mw_name_pick": [ ".run", - 273356 + 273412 ], "mw_pool_kind": [ ".run", - 273472 + 273528 ], "mw_render_call": [ ".run", - 274044 + 274100 ], "mg_list_keys": [ ".run", @@ -23829,39 +23851,39 @@ ], "service_context": [ ".run", - 275982 + 276038 ], "mvs_copy": [ ".run", - 274334 + 274390 ], "quarantine": [ ".run", - 274362 + 274418 ], "settle": [ ".run", - 274390 + 274446 ], "rollback": [ ".run", - 274424 + 274480 ], "mvs_different.constprop.0": [ ".run", - 274502 + 274558 ], "mvs_fill.constprop.0": [ ".run", - 274550 + 274606 ], "mvs_copy.constprop.0": [ ".run", - 274568 + 274624 ], "cache": [ ".run", - 274592 + 274648 ], "kept.2": [ ".bss", @@ -23877,11 +23899,11 @@ ], "same": [ ".run", - 279792 + 279848 ], "same_view": [ ".run", - 279838 + 279894 ], "board": [ ".bss", @@ -24441,7 +24463,7 @@ ], "dl_hook_reset_start": [ ".run", - 259200 + 259256 ], "modwerk_dsp_meter_bits": [ ".bss", @@ -24453,19 +24475,19 @@ ], "mw_resolve_pb": [ ".run", - 273726 + 273782 ], "modwerk_stock_4004fbfe_6": [ ".run", - 271030 + 271086 ], "mw_stock_hooks_tick": [ ".run", - 251916 + 251972 ], "modwerk_site_40006820": [ ".run", - 270002 + 270058 ], "mw_foreign_render": [ ".run", @@ -24473,15 +24495,15 @@ ], "dl_sum_start": [ ".run", - 259062 + 259118 ], "modwerk_stock_4007a1ec_6": [ ".run", - 271858 + 271914 ], "mw_seq_get_none": [ ".run", - 274138 + 274194 ], "modwerk_machine_stack": [ ".run", @@ -24505,7 +24527,7 @@ ], "mw_stock_hooks_retire": [ ".run", - 252564 + 252620 ], "mw_resident_records_A_3": [ ".boot", @@ -24517,7 +24539,7 @@ ], "modwerk_stock_400035ba_8": [ ".run", - 269374 + 269430 ], "modwerk_table_declarations": [ ".run", @@ -24545,7 +24567,7 @@ ], "mw_engine_buffer": [ ".run", - 340060 + 340062 ], "modwerk_dsp_meter": [ ".bss", @@ -24557,11 +24579,11 @@ ], "modwerk_raise_ev_bank_loaded": [ ".run", - 272772 + 272828 ], "modwerk_raise_ev_project_stored": [ ".run", - 272792 + 272848 ], "modwerk_modset_notice_tick": [ ".run", @@ -24569,7 +24591,7 @@ ], "modwerk_site_4004a9c4": [ ".run", - 270764 + 270820 ], "modwerk_status_load": [ ".run", @@ -24577,7 +24599,7 @@ ], "modwerk_stock_40090504_8": [ ".run", - 272400 + 272456 ], "core_midi": [ ".run", @@ -24597,7 +24619,7 @@ ], "modwerk_site_4008ee74": [ ".run", - 272214 + 272270 ], "modwerk_runtime_refused": [ ".run", @@ -24609,7 +24631,7 @@ ], "dl_owned_reset_reserve": [ ".run", - 261084 + 261140 ], "core_draw": [ ".run", @@ -24621,15 +24643,15 @@ ], "modwerk_stock_4000362a_6": [ ".run", - 269698 + 269754 ], "mw_hook_buffer_permitted_held": [ ".run", - 249422 + 249478 ], "dl_state3": [ ".run", - 268652 + 268708 ], "modwerk_dsp_flags": [ ".run", @@ -24637,7 +24659,7 @@ ], "mw_validate_hook": [ ".run", - 273812 + 273868 ], "mw_engines_placed_count": [ ".bss", @@ -24665,11 +24687,11 @@ ], "mu_commit": [ ".run", - 263650 + 263706 ], "modwerk_stock_4008f180_8": [ ".run", - 272326 + 272382 ], "mw_engines_poll": [ ".run", @@ -24681,11 +24703,11 @@ ], "mw_hook_buffer_clear_of": [ ".run", - 250490 + 250546 ], "modwerk_stock_4003cd98_8": [ ".run", - 273688 + 273744 ], "modwerk_dsp_booked": [ ".run", @@ -24709,19 +24731,19 @@ ], "modwerk_runtime_set_backend": [ ".run", - 336686 + 336688 ], "mw_list_draw": [ ".run", - 273962 + 274018 ], "modwerk_machine_journal_admit": [ ".run", - 280012 + 280068 ], "mg_page_site": [ ".run", - 274196 + 274252 ], "mw_cpu_refusals": [ ".bss", @@ -24729,7 +24751,7 @@ ], "olog_stock_close": [ ".run", - 267354 + 267410 ], "dl_selection_part_guard": [ ".run", @@ -24753,11 +24775,11 @@ ], "mw_stock_pool_open": [ ".run", - 273868 + 273924 ], "modwerk_stock_4006d784_8": [ ".run", - 273996 + 274052 ], "mw_name": [ ".run", @@ -24797,7 +24819,7 @@ ], "modwerk_stub_code_bytes": [ ".run", - 350476 + 350478 ], "mw_resident_records_B_1": [ ".boot", @@ -24817,11 +24839,11 @@ ], "mw_chooser_name": [ ".run", - 273388 + 273444 ], "modwerk_machine_journal_commit_ready": [ ".run", - 281558 + 281614 ], "audio_sessend_shim": [ ".run", @@ -24829,7 +24851,7 @@ ], "modwerk_runtime_backend": [ ".run", - 336722 + 336724 ], "modwerk_machine_tables_changed": [ ".run", @@ -24837,11 +24859,11 @@ ], "mw_setup_draw6": [ ".run", - 273632 + 273688 ], "mw_setup_open": [ ".run", - 273254 + 273310 ], "dl_stub_at_boot": [ ".run", @@ -24849,11 +24871,11 @@ ], "mu_request": [ ".run", - 266262 + 266318 ], "modwerk_raise_ev_modules_ready": [ ".run", - 272812 + 272868 ], "mw_sample_editor_replace": [ ".run", @@ -24865,7 +24887,7 @@ ], "mu_abort": [ ".run", - 264162 + 264218 ], "modwerk_set_retire": [ ".run", @@ -24873,23 +24895,23 @@ ], "mw_seq_set_none": [ ".run", - 274144 + 274200 ], "modwerk_volatile_tick": [ ".run", - 275854 + 275910 ], "mw_setup_edit6": [ ".run", - 273516 + 273572 ], "dl_tick": [ ".run", - 268440 + 268496 ], "mw_hook_driver_export_idle": [ ".run", - 247482 + 247538 ], "modwerk_fxmap_machines_read": [ ".bss", @@ -24909,11 +24931,11 @@ ], "modwerk_stock_4000d9a6_10": [ ".run", - 274110 + 274166 ], "modwerk_status_cpu_hot": [ ".run", - 231990 + 232052 ], "modwerk_machine_declarations": [ ".run", @@ -24957,7 +24979,7 @@ ], "modwerk_stock_400909d8_10": [ ".run", - 272558 + 272614 ], "mw_open_pool": [ ".run", @@ -24981,11 +25003,11 @@ ], "modwerk_site_400909d8": [ ".run", - 272520 + 272576 ], "modwerk_stock_4004fbde_6": [ ".run", - 270946 + 271002 ], "olog_source": [ ".run", @@ -24993,15 +25015,15 @@ ], "mv_tick": [ ".run", - 265660 + 265716 ], "modwerk_stock_400858c0_6": [ ".run", - 282478 + 282534 ], "mw_seq_none": [ ".run", - 274146 + 274202 ], "core_key": [ ".run", @@ -25009,7 +25031,7 @@ ], "modwerk_raise_ev_bank_written": [ ".run", - 272782 + 272838 ], "modwerk_idle_gap": [ ".bss", @@ -25057,7 +25079,7 @@ ], "modwerk_site_400866cc": [ ".run", - 271956 + 272012 ], "mw_controller_slot_write_allowed": [ ".run", @@ -25069,7 +25091,7 @@ ], "modwerk_site_40004100": [ ".run", - 269872 + 269928 ], "modwerk_fxmap_describe": [ ".run", @@ -25085,7 +25107,7 @@ ], "modwerk_stock_4000e746_6": [ ".run", - 270286 + 270342 ], "mw_sample_editor_answer": [ ".run", @@ -25109,15 +25131,15 @@ ], "modwerk_stock_4004a9d0_8": [ ".run", - 270860 + 270916 ], "modwerk_stock_4000d440_4": [ ".run", - 274020 + 274076 ], "dl_fx2_guard": [ ".run", - 268556 + 268612 ], "modwerk_status_tick": [ ".run", @@ -25125,11 +25147,11 @@ ], "octamod_log_platform_init": [ ".run", - 244942 + 244998 ], "modwerk_site_40044968": [ ".run", - 270486 + 270542 ], "memcpy": [ ".run", @@ -25141,7 +25163,7 @@ ], "dl_abort": [ ".run", - 260792 + 260848 ], "mw_controller_registry_init": [ ".run", @@ -25153,7 +25175,7 @@ ], "modwerk_site_40004d0c": [ ".run", - 269940 + 269996 ], "modwerk_modset_keep": [ ".run", @@ -25173,7 +25195,7 @@ ], "mw_part_menu_at_4002dc68": [ ".run", - 282704 + 282760 ], "usbmidi_isr_shim": [ ".run", @@ -25185,11 +25207,11 @@ ], "mw_engine_units": [ ".run", - 340068 + 340070 ], "mw_stock_hooks_begin": [ ".run", - 251480 + 251536 ], "modwerk_runtime_draw": [ ".run", @@ -25213,7 +25235,7 @@ ], "modwerk_stock_400905d4_8": [ ".run", - 272484 + 272540 ], "mw_engines_admit": [ ".run", @@ -25249,7 +25271,7 @@ ], "mw_stock_hooks_observed": [ ".run", - 252406 + 252462 ], "dl_publication_poll": [ ".run", @@ -25261,7 +25283,7 @@ ], "mw_part_menu_at_4002dcc4": [ ".run", - 282728 + 282784 ], "modwerk_controller_write_resolve": [ ".run", @@ -25325,7 +25347,7 @@ ], "modwerk_site_40055170": [ ".run", - 271688 + 271744 ], "mw_pool_left": [ ".run", @@ -25333,11 +25355,11 @@ ], "olog_idle_hook": [ ".run", - 267180 + 267236 ], "modwerk_stock_4004fd06_4": [ ".run", - 271404 + 271460 ], "mw_engines_refused": [ ".bss", @@ -25381,7 +25403,7 @@ ], "modwerk_site_4000dfd4": [ ".run", - 270114 + 270170 ], "dl_allocator_retire": [ ".run", @@ -25393,7 +25415,7 @@ ], "modwerk_site_4008f180": [ ".run", - 272288 + 272344 ], "dl_selection_requested": [ ".bss", @@ -25409,11 +25431,11 @@ ], "table_metadata_admission": [ ".run", - 254974 + 255030 ], "dl_owned_holder": [ ".run", - 262010 + 262066 ], "machine_ui_lifetime": [ ".run", @@ -25421,7 +25443,7 @@ ], "dl_frame": [ ".run", - 259510 + 259566 ], "modwerk_upload_busy": [ ".run", @@ -25449,11 +25471,11 @@ ], "modwerk_stock_40055170_6": [ ".run", - 271770 + 271826 ], "mw_knob_step": [ ".run", - 269094 + 269150 ], "modwerk_status_enc": [ ".run", @@ -25465,7 +25487,7 @@ ], "modwerk_stock_4000332a_6": [ ".run", - 269346 + 269402 ], "mw_part_menu_tick": [ ".run", @@ -25481,19 +25503,19 @@ ], "modwerk_site_400905d4": [ ".run", - 272436 + 272492 ], "octamod_log_ticks": [ ".run", - 244984 + 245040 ], "dl_job_release": [ ".run", - 259454 + 259510 ], "modwerk_after_4008ee74": [ ".run", - 272910 + 272966 ], "modwerk_machine_invalidate_code": [ ".run", @@ -25533,15 +25555,15 @@ ], "mw_project_end": [ ".run", - 268968 + 269024 ], "modwerk_stock_400449be_8": [ ".run", - 270654 + 270710 ], "mg_tap_site": [ ".run", - 274148 + 274204 ], "machine_contributor_validate": [ ".run", @@ -25553,11 +25575,11 @@ ], "dl_fx1_guard": [ ".run", - 268514 + 268570 ], "mw_main_commit": [ ".run", - 273078 + 273134 ], "modwerk_fxpage_build": [ ".run", @@ -25565,11 +25587,11 @@ ], "mu_disconnect": [ ".run", - 264546 + 264602 ], "octamod_log_can_flush": [ ".run", - 244992 + 245048 ], "slot_pick": [ ".run", @@ -25589,11 +25611,11 @@ ], "modwerk_stock_4003a52e_8": [ ".run", - 273618 + 273674 ], "modwerk_stock_4007981c_6": [ ".run", - 273130 + 273186 ], "modwerk_fxmap_where": [ ".run", @@ -25601,7 +25623,7 @@ ], "mw_ts_gate": [ ".run", - 269228 + 269284 ], "modwerk_fxmap_write": [ ".run", @@ -25609,7 +25631,7 @@ ], "mu_verify": [ ".run", - 263400 + 263456 ], "slot_read": [ ".run", @@ -25621,7 +25643,7 @@ ], "modwerk_stock_40002318_8": [ ".run", - 273818 + 273874 ], "machine_metadata_admission": [ ".run", @@ -25653,7 +25675,7 @@ ], "modwerk_cue_cfg_clamp": [ ".run", - 269844 + 269900 ], "mw_controller_cancel": [ ".run", @@ -25689,7 +25711,7 @@ ], "olog_open_hook": [ ".run", - 246816 + 246872 ], "mw_resident_records_A_2": [ ".boot", @@ -25717,7 +25739,7 @@ ], "mw_pool_title": [ ".run", - 273882 + 273938 ], "mw_manager_journal_stage": [ ".run", @@ -25725,19 +25747,19 @@ ], "olog_replay_write": [ ".run", - 267340 + 267396 ], "modwerk_status_draw": [ ".run", - 232402 + 232456 ], "modwerk_site_40050e60": [ ".run", - 271590 + 271646 ], "modwerk_machine_journal_commit_consume": [ ".run", - 281738 + 281794 ], "slot_stub_whole": [ ".run", @@ -25745,11 +25767,11 @@ ], "modwerk_machine_journal_association": [ ".run", - 279996 + 280052 ], "dl_owned_job_release": [ ".run", - 261794 + 261850 ], "mw_sample_action_decode": [ ".run", @@ -25789,7 +25811,7 @@ ], "mw_hook_driver_retire": [ ".run", - 248946 + 249002 ], "slot_record_check": [ ".run", @@ -25801,7 +25823,7 @@ ], "mw_hook_ranges_idle": [ ".run", - 249760 + 249816 ], "modwerk_dsp_keybus_charge": [ ".run", @@ -25829,7 +25851,7 @@ ], "modwerk_stock_4004fce0_6": [ ".run", - 271312 + 271368 ], "modwerk_base_version": [ ".run", @@ -25841,7 +25863,7 @@ ], "mw_setup_row": [ ".run", - 273372 + 273428 ], "modwerk_fxmap_loaded": [ ".run", @@ -25853,7 +25875,7 @@ ], "modwerk_events_code": [ ".run", - 269872 + 269928 ], "dl_buffers_next": [ ".run", @@ -25865,7 +25887,7 @@ ], "modwerk_stock_400791e4_8": [ ".run", - 273868 + 273924 ], "modwerk_ep0_poll_shim": [ ".run", @@ -25881,11 +25903,11 @@ ], "mw_chooser_column": [ ".run", - 273302 + 273358 ], "modwerk_after_4008f180": [ ".run", - 272926 + 272982 ], "modwerk_controller_admit": [ ".run", @@ -25893,7 +25915,7 @@ ], "modwerk_stub_code": [ ".run", - 349576 + 349578 ], "modwerk_boot_loop": [ ".run", @@ -25901,7 +25923,7 @@ ], "mv_init": [ ".run", - 264696 + 264752 ], "slot_fnv": [ ".run", @@ -25909,7 +25931,7 @@ ], "mw_sample_select_entry": [ ".run", - 282490 + 282546 ], "modwerk_runtime_calls": [ ".run", @@ -25917,7 +25939,7 @@ ], "mw_hook_buffer_permitted": [ ".run", - 249666 + 249722 ], "modwerk_stock_hook_buffer_policy": [ ".run", @@ -25925,7 +25947,7 @@ ], "modwerk_machine_journal_transition": [ ".run", - 280034 + 280090 ], "modwerk_runtime_journal_prepare": [ ".run", @@ -25945,7 +25967,7 @@ ], "mw_machine_name": [ ".run", - 273014 + 273070 ], "modwerk_runtime_owner_epoch": [ ".run", @@ -25953,7 +25975,7 @@ ], "modwerk_machine_journal_trial": [ ".run", - 280000 + 280056 ], "modwerk_machine_patchable": [ ".run", @@ -25965,7 +25987,7 @@ ], "modwerk_site_4004fbfe": [ ".run", - 270958 + 271014 ], "modwerk_modset_accepted": [ ".run", @@ -25997,7 +26019,7 @@ ], "mw_frame_leave": [ ".run", - 274104 + 274160 ], "dl_bypass_unbound": [ ".run", @@ -26005,7 +26027,7 @@ ], "mw_src_commit2": [ ".run", - 273166 + 273222 ], "usbaudio_maxfill": [ ".run", @@ -26029,7 +26051,7 @@ ], "dl_owned_lease_release": [ ".run", - 262164 + 262220 ], "mw_setup_knob": [ ".run", @@ -26041,7 +26063,7 @@ ], "olog_stock_read": [ ".run", - 267326 + 267382 ], "modwerk_crash_tick": [ ".run", @@ -26049,11 +26071,11 @@ ], "modwerk_machine_journal_roots_clear": [ ".run", - 281898 + 281954 ], "modwerk_after_400905d4": [ ".run", - 272878 + 272934 ], "modwerk_runtime_active": [ ".run", @@ -26073,7 +26095,7 @@ ], "modwerk_stub_head": [ ".run", - 350480 + 350482 ], "mw_resident_upload_B_end": [ ".bss", @@ -26081,11 +26103,11 @@ ], "modwerk_after_40090504": [ ".run", - 272862 + 272918 ], "dl_owned_upload_reserve": [ ".run", - 261028 + 261084 ], "modwerk_dsp_miss": [ ".bss", @@ -26105,7 +26127,7 @@ ], "mw_source_render": [ ".run", - 274010 + 274066 ], "octamod_log_flush": [ ".run", @@ -26149,7 +26171,7 @@ ], "table_metadata_family": [ ".run", - 254126 + 254182 ], "modwerk_dsp_last_flags": [ ".bss", @@ -26161,7 +26183,7 @@ ], "olog_replay_transport": [ ".run", - 267298 + 267354 ], "modwerk_set_restore": [ ".run", @@ -26193,7 +26215,7 @@ ], "mw_delay_read": [ ".run", - 269364 + 269420 ], "mw_controller_start": [ ".run", @@ -26213,7 +26235,7 @@ ], "modwerk_stock_400917c8_8": [ ".run", - 272612 + 272668 ], "modwerk_modset_off_list": [ ".run", @@ -26281,27 +26303,27 @@ ], "modwerk_stock_4000d47e_4": [ ".run", - 272978 + 273034 ], "modwerk_status_effect_busy": [ ".run", - 232092 + 232168 ], "dl_owned_submit": [ ".run", - 261194 + 261250 ], "olog_read_hook": [ ".run", - 246880 + 246936 ], "dl_owned_command_reserve": [ ".run", - 260924 + 260980 ], "mg_stock_note_draw": [ ".run", - 274282 + 274338 ], "mw_sample_editor_begin": [ ".run", @@ -26313,7 +26335,7 @@ ], "mu_init": [ ".run", - 262440 + 262496 ], "modwerk_dsp_arena_now": [ ".run", @@ -26321,7 +26343,7 @@ ], "modwerk_site_400917c8": [ ".run", - 272574 + 272630 ], "mw_sample_ui_tick": [ ".run", @@ -26329,11 +26351,11 @@ ], "mu_leave": [ ".run", - 264444 + 264500 ], "olog_replay_read": [ ".run", - 267326 + 267382 ], "dl_selection_cancel": [ ".run", @@ -26361,7 +26383,7 @@ ], "mw_src_commit": [ ".run", - 273158 + 273214 ], "dl_c1_isr": [ ".run", @@ -26389,7 +26411,7 @@ ], "modwerk_machine_journal_enabled": [ ".run", - 279992 + 280048 ], "mw_type": [ ".run", @@ -26421,11 +26443,11 @@ ], "dl_upload_start": [ ".run", - 258752 + 258808 ], "mv_setup": [ ".run", - 264926 + 264982 ], "machine_contribution": [ ".run", @@ -26477,7 +26499,7 @@ ], "mw_name_a": [ ".run", - 273336 + 273392 ], "machine_part_lifetime": [ ".run", @@ -26501,7 +26523,7 @@ ], "octamod_log_capture_state": [ ".run", - 246352 + 246408 ], "modwerk_stock_hook_export_idle": [ ".run", @@ -26513,11 +26535,11 @@ ], "mw_hook_claim_permitted": [ ".run", - 250080 + 250136 ], "mw_chooser_open": [ ".run", - 273282 + 273338 ], "mw_frame_t0": [ ".bss", @@ -26525,7 +26547,7 @@ ], "mw_lfo_pb": [ ".run", - 273760 + 273816 ], "modwerk_modset_count": [ ".bss", @@ -26545,11 +26567,11 @@ ], "mu_enter": [ ".run", - 262706 + 262762 ], "mw_render_second": [ ".run", - 274030 + 274086 ], "modwerk_fx_modules": [ ".run", @@ -26569,11 +26591,11 @@ ], "modwerk_stock_4000aad0_8": [ ".run", - 274078 + 274134 ], "mv_reset": [ ".run", - 265612 + 265668 ], "core_tick": [ ".run", @@ -26597,7 +26619,7 @@ ], "modwerk_boot_reset": [ ".run", - 267434 + 267490 ], "mw_pool_right": [ ".run", @@ -26625,7 +26647,7 @@ ], "mw_wide_dial": [ ".run", - 269008 + 269064 ], "dl_refusal": [ ".bss", @@ -26641,7 +26663,7 @@ ], "dl_job_status": [ ".run", - 259378 + 259434 ], "modwerk_runtime_journal_abort": [ ".run", @@ -26649,7 +26671,7 @@ ], "mv_abandon": [ ".run", - 264902 + 264958 ], "modwerk_dsp_miss_bits": [ ".bss", @@ -26657,7 +26679,7 @@ ], "modwerk_stock_4000d52e_4": [ ".run", - 274034 + 274090 ], "core_enc": [ ".run", @@ -26673,15 +26695,15 @@ ], "octamod_log_start_slot": [ ".run", - 245088 + 245144 ], "dl_owned_cancel": [ ".run", - 261330 + 261386 ], "mw_hook_driver_tick": [ ".run", - 247962 + 248018 ], "modwerk_fxmap_machines_written": [ ".bss", @@ -26693,7 +26715,7 @@ ], "mw_stock_hooks_ready": [ ".run", - 250790 + 250846 ], "dl_c1_phase": [ ".run", @@ -26701,7 +26723,7 @@ ], "modwerk_raise_ev_trig_muted": [ ".run", - 272752 + 272808 ], "modwerk_fxmap_assign_checked": [ ".run", @@ -26777,15 +26799,15 @@ ], "modwerk_stock_4004fd20_4": [ ".run", - 271494 + 271550 ], "mw_sample_waveform_entry": [ ".run", - 282436 + 282492 ], "olog_replay_open": [ ".run", - 267312 + 267368 ], "mg_arp_setup": [ ".run", @@ -26793,7 +26815,7 @@ ], "modwerk_events_code_end": [ ".run", - 272968 + 273024 ], "dl_engine_evac_failures": [ ".bss", @@ -26833,15 +26855,15 @@ ], "modwerk_site_4004a9d0": [ ".run", - 270816 + 270872 ], "modwerk_raise_ev_mute_keep": [ ".run", - 272742 + 272798 ], "modwerk_stock_40050e60_10": [ ".run", - 271672 + 271728 ], "audio_setiface_shim": [ ".run", @@ -26865,11 +26887,11 @@ ], "modwerk_site_40010212": [ ".run", - 270298 + 270354 ], "mw_delay_idle": [ ".run", - 269394 + 269450 ], "modwerk_modset_candidate": [ ".run", @@ -26877,7 +26899,7 @@ ], "mv_service": [ ".run", - 265736 + 265792 ], "dl_frames": [ ".bss", @@ -26925,7 +26947,7 @@ ], "mw_project_line": [ ".run", - 268902 + 268958 ], "modwerk_backend_prepare": [ ".run", @@ -26933,15 +26955,15 @@ ], "mw_project_write": [ ".run", - 268938 + 268994 ], "dl_owned_lease_acquire": [ ".run", - 262074 + 262130 ], "olog_stock_write": [ ".run", - 267340 + 267396 ], "modwerk_fx2_id2pos": [ ".run", @@ -26949,11 +26971,11 @@ ], "olog_close_hook": [ ".run", - 246992 + 247048 ], "modwerk_hook_boot": [ ".run", - 339796 + 339798 ], "mw_frame_shed_tracks": [ ".bss", @@ -26969,7 +26991,7 @@ ], "modwerk_volatile_init": [ ".run", - 275130 + 275186 ], "modwerk_dsp_used": [ ".run", @@ -26997,7 +27019,7 @@ ], "dl_command_start": [ ".run", - 258938 + 258994 ], "modwerk_flash_tick": [ ".run", @@ -27005,7 +27027,7 @@ ], "modwerk_volatile_busy": [ ".run", - 275096 + 275152 ], "modwerk_fxmap_generation": [ ".run", @@ -27017,7 +27039,7 @@ ], "olog_job_hook": [ ".run", - 267220 + 267276 ], "modwerk_selftest": [ ".bss", @@ -27025,7 +27047,7 @@ ], "modwerk_site_40090504": [ ".run", - 272362 + 272418 ], "usbaudio_anchor": [ ".run", @@ -27041,15 +27063,15 @@ ], "mw_sample_menu_call": [ ".run", - 282424 + 282480 ], "modwerk_site_4004fce0": [ ".run", - 271240 + 271296 ], "modwerk_volatile_queue": [ ".run", - 275454 + 275510 ], "dl_engine_release": [ ".run", @@ -27057,7 +27079,7 @@ ], "modwerk_site_4009fb58": [ ".run", - 272648 + 272704 ], "dl_parked": [ ".run", @@ -27081,7 +27103,7 @@ ], "mw_name_b": [ ".run", - 273346 + 273402 ], "mw_sample_selection_leave": [ ".run", @@ -27097,11 +27119,11 @@ ], "mw_part_menu_at_4002dc90": [ ".run", - 282716 + 282772 ], "modwerk_machine_journal_idle": [ ".run", - 282360 + 282416 ], "modwerk_dsp_moves_idle": [ ".run", @@ -27121,15 +27143,15 @@ ], "modwerk_stock_4004fc58_10": [ ".run", - 271132 + 271188 ], "mw_stock_validate": [ ".run", - 273818 + 273874 ], "olog_transport_hook": [ ".run", - 267270 + 267326 ], "modwerk_fx1_id2pos": [ ".run", @@ -27141,15 +27163,15 @@ ], "dl_tick2": [ ".run", - 268480 + 268536 ], "mw_sample_select_return": [ ".run", - 282650 + 282706 ], "modwerk_stock_40050254_8": [ ".run", - 271576 + 271632 ], "modwerk_set_prepare": [ ".run", @@ -27209,7 +27231,7 @@ ], "mw_tick_hook": [ ".run", - 273702 + 273758 ], "dl_reinit_enabled": [ ".run", @@ -27225,7 +27247,7 @@ ], "olog_write_hook": [ ".run", - 246936 + 246992 ], "modwerk_menu_list": [ ".run", @@ -27265,7 +27287,7 @@ ], "mw_sample_select_tail": [ ".run", - 282594 + 282650 ], "octamod_log": [ ".run", @@ -27277,7 +27299,7 @@ ], "olog_stock_open": [ ".run", - 267312 + 267368 ], "modwerk_return_4008ee74": [ ".run", @@ -27285,7 +27307,7 @@ ], "mw_stock_hooks_busy": [ ".run", - 250774 + 250830 ], "mw_frame_exit": [ ".run", @@ -27293,7 +27315,7 @@ ], "mu_rollback": [ ".run", - 264246 + 264302 ], "modwerk_ep0_bus_reset": [ ".run", @@ -27301,11 +27323,11 @@ ], "mu_chunk": [ ".run", - 263198 + 263254 ], "modwerk_stock_40036548_8": [ ".run", - 274282 + 274338 ], "modwerk_fxmap_name": [ ".run", @@ -27317,15 +27339,15 @@ ], "mw_stock_hooks_reset_begin": [ ".run", - 250872 + 250928 ], "mw_hook_default_claim": [ ".run", - 249332 + 249388 ], "modwerk_after_400917c8": [ ".run", - 272894 + 272950 ], "mw_arena_clear": [ ".run", @@ -27353,11 +27375,11 @@ ], "mw_chooser_row": [ ".run", - 273408 + 273464 ], "octamod_log_write_checkpoint": [ ".run", - 245360 + 245416 ], "mg_list_layer": [ ".run", @@ -27385,7 +27407,7 @@ ], "mu_accept": [ ".run", - 264032 + 264088 ], "audio_frame_shim": [ ".run", @@ -27397,7 +27419,7 @@ ], "mw_crash": [ ".run", - 267756 + 267812 ], "modwerk_fxpage_current": [ ".run", @@ -27433,19 +27455,19 @@ ], "modwerk_stock_40010212_6": [ ".run", - 270380 + 270436 ], "dl_state7": [ ".run", - 267896 + 267952 ], "mw_stock_hooks_init": [ ".run", - 250740 + 250796 ], "mg_setup_site": [ ".run", - 274242 + 274298 ], "usbaudio_acc": [ ".run", @@ -27473,7 +27495,7 @@ ], "dl_owned_fail_closed": [ ".run", - 261986 + 262042 ], "modwerk_idle_counts": [ ".bss", @@ -27485,7 +27507,7 @@ ], "modwerk_stock_40025ac2_6": [ ".run", - 270474 + 270530 ], "dl_rx": [ ".bss", @@ -27501,7 +27523,7 @@ ], "dl_owned_closed": [ ".run", - 262042 + 262098 ], "mw_ab_board_check": [ ".run", @@ -27513,11 +27535,11 @@ ], "mw_delay_read0": [ ".run", - 269334 + 269390 ], "modwerk_raise_ev_project_reloaded": [ ".run", - 272802 + 272858 ], "modwerk_load_label": [ ".run", @@ -27557,7 +27579,7 @@ ], "modwerk_stock_4008ee74_8": [ ".run", - 272252 + 272308 ], "modwerk_stock_hook_retire": [ ".run", @@ -27569,11 +27591,11 @@ ], "modwerk_site_400867a2": [ ".run", - 272042 + 272098 ], "mw_render_first": [ ".run", - 274016 + 274072 ], "modwerk_modset_due": [ ".run", @@ -27585,11 +27607,11 @@ ], "modwerk_stock_4000dfd4_6": [ ".run", - 270190 + 270246 ], "dl_owned_job_poll": [ ".run", - 261496 + 261552 ], "mg_knob": [ ".run", @@ -27637,7 +27659,7 @@ ], "modwerk_stock_400888aa_8": [ ".run", - 272200 + 272256 ], "dl_selection_guard": [ ".run", @@ -27649,7 +27671,7 @@ ], "olog_replay_idle": [ ".run", - 267208 + 267264 ], "modwerk_machine_assigned": [ ".bss", @@ -27661,7 +27683,7 @@ ], "modwerk_site_40045918": [ ".run", - 270668 + 270724 ], "modwerk_idle_hook": [ ".run", @@ -27673,11 +27695,11 @@ ], "mw_stock_list_draw": [ ".run", - 273996 + 274052 ], "mw_hook_driver_begin": [ ".run", - 247724 + 247780 ], "modwerk_modset_switch_result": [ ".bss", @@ -27693,7 +27715,7 @@ ], "modwerk_volatile_status": [ ".run", - 275740 + 275796 ], "modwerk_track_machines": [ ".run", @@ -27717,7 +27739,7 @@ ], "olog_replay_job": [ ".run", - 267258 + 267314 ], "mw_ab_restore_apply": [ ".run", @@ -27729,7 +27751,7 @@ ], "modwerk_stock_4006d8f4_6": [ ".run", - 282564 + 282620 ], "modwerk_modset_check_set": [ ".run", @@ -27737,7 +27759,7 @@ ], "modwerk_site_40050254": [ ".run", - 271504 + 271560 ], "mw_sample_commit_spans": [ ".bss", @@ -27761,7 +27783,7 @@ ], "dl_part_guard": [ ".run", - 268602 + 268658 ], "modwerk_fx_rows": [ ".run", @@ -27785,11 +27807,11 @@ ], "modwerk_stock_4007a2ec_8": [ ".run", - 271942 + 271998 ], "mv_service_held": [ ".run", - 266018 + 266074 ], "modwerk_controller_write_policy_count": [ ".run", @@ -27797,7 +27819,7 @@ ], "modwerk_raise_ev_banks_loaded": [ ".run", - 272762 + 272818 ], "modwerk_controller_write_stack": [ ".run", @@ -27817,15 +27839,15 @@ ], "modwerk_site_4004fc58": [ ".run", - 271050 + 271106 ], "modwerk_stock_40004d0c_10": [ ".run", - 269986 + 270042 ], "mw_project_begin": [ ".run", - 268852 + 268908 ], "modwerk_runtime_set_refresh": [ ".run", @@ -27837,7 +27859,7 @@ ], "modwerk_volatile_service": [ ".run", - 274296 + 274352 ], "modwerk_boot_recording": [ ".run", @@ -27853,11 +27875,11 @@ ], "modwerk_volatile_reset": [ ".run", - 275824 + 275880 ], "table_machine_association": [ ".run", - 254640 + 254696 ], "dl_publication_idle": [ ".run", @@ -27873,7 +27895,7 @@ ], "modwerk_site_4004fc94": [ ".run", - 271148 + 271204 ], "modwerk_compact_left": [ ".run", @@ -27881,7 +27903,7 @@ ], "mw_stock_hooks_reset_done": [ ".run", - 251318 + 251374 ], "modwerk_session_end_shim": [ ".run", @@ -27889,7 +27911,7 @@ ], "mw_stock_hooks_held": [ ".run", - 249216 + 249272 ], "mw_controller_transport_poll": [ ".run", @@ -27897,11 +27919,11 @@ ], "modwerk_site_4000e746": [ ".run", - 270210 + 270266 ], "modwerk_site_4004fbde": [ ".run", - 270874 + 270930 ], "octamod_log_flushed": [ ".run", @@ -27909,7 +27931,7 @@ ], "mw_seq_draw": [ ".run", - 274120 + 274176 ], "modwerk_diag_tick": [ ".run", @@ -27917,7 +27939,7 @@ ], "mw_hook_driver_init": [ ".run", - 247670 + 247726 ], "mw_resident_records_A_3_end": [ ".boot", @@ -27941,7 +27963,7 @@ ], "modwerk_site_400449be": [ ".run", - 270572 + 270628 ], "modwerk_ep0_reply": [ ".bss", @@ -27985,7 +28007,7 @@ ], "modwerk_stock_400867a2_8": [ ".run", - 272114 + 272170 ], "modwerk_runtime_volatile_busy": [ ".run", @@ -27993,7 +28015,7 @@ ], "modwerk_site_400888aa": [ ".run", - 272128 + 272184 ], "mg_page_layer": [ ".run", @@ -28013,11 +28035,11 @@ ], "modwerk_stock_400866cc_8": [ ".run", - 272028 + 272084 ], "modwerk_base_digest": [ ".run", - 336634 + 336635 ], "usbaudio_underruns": [ ".run", @@ -28069,15 +28091,15 @@ ], "mw_source_start": [ ".run", - 272968 + 273024 ], "modwerk_boot_quiesce": [ ".run", - 267368 + 267424 ], "mu_begin": [ ".run", - 262816 + 262872 ], "modwerk_runtime_capabilities": [ ".run", @@ -28089,7 +28111,7 @@ ], "mw_sample_editor_api": [ ".run", - 348842 + 348844 ], "mw_controller_reserve": [ ".run", @@ -28097,11 +28119,11 @@ ], "modwerk_site_4004fd20": [ ".run", - 271422 + 271478 ], "mv_data": [ ".run", - 265568 + 265624 ], "mw_controller_release_job": [ ".run", @@ -28121,7 +28143,7 @@ ], "modwerk_stock_40045918_8": [ ".run", - 270750 + 270806 ], "modwerk_dsp_missing": [ ".bss", @@ -28129,7 +28151,7 @@ ], "olog_replay_close": [ ".run", - 267354 + 267410 ], "mw_sample_engine_idle": [ ".run", @@ -28137,7 +28159,7 @@ ], "modwerk_site_4007a1ec": [ ".run", - 271782 + 271838 ], "modwerk_machine_unmask": [ ".run", @@ -28153,11 +28175,11 @@ ], "modwerk_stock_40044968_8": [ ".run", - 270558 + 270614 ], "modwerk_stock_4004fc94_6": [ ".run", - 271220 + 271276 ], "modwerk_status_machine_refused": [ ".run", @@ -28193,11 +28215,11 @@ ], "modwerk_stock_4004a9c4_10": [ ".run", - 270806 + 270862 ], "modwerk_machine_journal_accept": [ ".run", - 282050 + 282106 ], "audio_reset_shim": [ ".run", @@ -28209,7 +28231,7 @@ ], "mw_frame_entry": [ ".run", - 274078 + 274134 ], "modwerk_machine_lock": [ ".run", @@ -28217,7 +28239,7 @@ ], "modwerk_site_4004fd06": [ ".run", - 271332 + 271388 ], "slot_record": [ ".run", @@ -28233,7 +28255,7 @@ ], "modwerk_runtime_event_row": [ ".run", - 337608 + 337610 ], "dl_publication_arm": [ ".run", @@ -28249,11 +28271,11 @@ ], "mw_pool_open": [ ".run", - 273832 + 273888 ], "dl_ui": [ ".run", - 260650 + 260706 ], "dl_rejected": [ ".bss", @@ -28281,7 +28303,7 @@ ], "modwerk_site_4007a2ec": [ ".run", - 271870 + 271926 ], "mw_part_menu_draw": [ ".run", @@ -28293,7 +28315,7 @@ ], "mw_idle": [ ".run", - 269188 + 269244 ], "modwerk_test_label": [ ".run", @@ -28301,7 +28323,7 @@ ], "modwerk_site_40025ac2": [ ".run", - 270392 + 270448 ], "modwerk_dsp_packing": [ ".run", @@ -29642,14 +29664,14 @@ 4878, "abs32", "sec:.run", - 336666 + 336667 ], [ ".run", 4888, "abs32", "sec:.run", - 336634 + 336635 ], [ ".run", @@ -29663,7 +29685,7 @@ 4930, "abs32", "sec:.run", - 336686 + 336688 ], [ ".run", @@ -29677,7 +29699,7 @@ 4992, "abs32", "sec:.run", - 336722 + 336724 ], [ ".run", @@ -29712,7 +29734,7 @@ 5148, "abs32", "sec:.run", - 336722 + 336724 ], [ ".run", @@ -29824,14 +29846,14 @@ 5336, "abs32", "sec:.run", - 336686 + 336688 ], [ ".run", 5356, "abs32", "sec:.run", - 336722 + 336724 ], [ ".run", @@ -29936,14 +29958,14 @@ 5498, "abs32", "sec:.run", - 336686 + 336688 ], [ ".run", 5526, "abs32", "sec:.run", - 336722 + 336724 ], [ ".run", @@ -30013,28 +30035,28 @@ 5640, "abs32", "sec:.run", - 336686 + 336688 ], [ ".run", 5658, "abs32", "sec:.run", - 336722 + 336724 ], [ ".run", 5676, "abs32", "sec:.run", - 336734 + 336736 ], [ ".run", 5684, "abs32", "sec:.run", - 336730 + 336732 ], [ ".run", @@ -30048,7 +30070,7 @@ 5718, "abs32", "sec:.run", - 336726 + 336728 ], [ ".run", @@ -30097,7 +30119,7 @@ 5934, "abs32", "sec:.run", - 336726 + 336728 ], [ ".run", @@ -30146,7 +30168,7 @@ 6018, "abs32", "sec:.run", - 336686 + 336688 ], [ ".run", @@ -30174,7 +30196,7 @@ 6062, "abs32", "sec:.run", - 336686 + 336688 ], [ ".run", @@ -30202,7 +30224,7 @@ 6106, "abs32", "sec:.run", - 336686 + 336688 ], [ ".run", @@ -30230,7 +30252,7 @@ 6150, "abs32", "sec:.run", - 336686 + 336688 ], [ ".run", @@ -30258,7 +30280,7 @@ 6194, "abs32", "sec:.run", - 336686 + 336688 ], [ ".run", @@ -30286,7 +30308,7 @@ 6238, "abs32", "sec:.run", - 336686 + 336688 ], [ ".run", @@ -30314,7 +30336,7 @@ 6282, "abs32", "sec:.run", - 336686 + 336688 ], [ ".run", @@ -30342,7 +30364,7 @@ 6324, "abs32", "sec:.run", - 336686 + 336688 ], [ ".run", @@ -30370,70 +30392,70 @@ 6368, "abs32", "sec:.run", - 336686 + 336688 ], [ ".run", 6402, "abs32", "sec:.run", - 336722 + 336724 ], [ ".run", 6412, "abs32", "sec:.run", - 336722 + 336724 ], [ ".run", 6422, "abs32", "sec:.run", - 336722 + 336724 ], [ ".run", 6432, "abs32", "sec:.run", - 336722 + 336724 ], [ ".run", 6442, "abs32", "sec:.run", - 336722 + 336724 ], [ ".run", 6452, "abs32", "sec:.run", - 336722 + 336724 ], [ ".run", 6462, "abs32", "sec:.run", - 336722 + 336724 ], [ ".run", 6472, "abs32", "sec:.run", - 336722 + 336724 ], [ ".run", 6486, "abs32", "sec:.run", - 336722 + 336724 ], [ ".run", @@ -30573,14 +30595,14 @@ 6958, "abs32", "sec:.run", - 267368 + 267424 ], [ ".run", 6964, "abs32", "sec:.run", - 267434 + 267490 ], [ ".run", @@ -31343,7 +31365,7 @@ 20148, "abs32", "sec:.run", - 262042 + 262098 ], [ ".run", @@ -31406,14 +31428,14 @@ 20452, "abs32", "sec:.run", - 260924 + 260980 ], [ ".run", 20468, "abs32", "sec:.run", - 261194 + 261250 ], [ ".run", @@ -31434,7 +31456,7 @@ 20572, "abs32", "sec:.run", - 261084 + 261140 ], [ ".run", @@ -31455,21 +31477,21 @@ 20654, "abs32", "sec:.run", - 261084 + 261140 ], [ ".run", 20670, "abs32", "sec:.run", - 261330 + 261386 ], [ ".run", 20688, "abs32", "sec:.run", - 261986 + 262042 ], [ ".run", @@ -31490,7 +31512,7 @@ 20758, "abs32", "sec:.run", - 260924 + 260980 ], [ ".run", @@ -31504,7 +31526,7 @@ 20818, "abs32", "sec:.run", - 261084 + 261140 ], [ ".run", @@ -32176,14 +32198,14 @@ 22728, "abs32", "sec:.run", - 261496 + 261552 ], [ ".run", 22758, "abs32", "sec:.run", - 261794 + 261850 ], [ ".run", @@ -32302,7 +32324,7 @@ 23256, "abs32", "sec:.run", - 261986 + 262042 ], [ ".run", @@ -32946,7 +32968,7 @@ 25028, "abs32", "sec:.run", - 261794 + 261850 ], [ ".run", @@ -32974,7 +32996,7 @@ 25176, "abs32", "sec:.run", - 261794 + 261850 ], [ ".run", @@ -33534,7 +33556,7 @@ 28126, "abs32", "sec:.run", - 262042 + 262098 ], [ ".run", @@ -33807,7 +33829,7 @@ 30764, "abs32", "sec:.run", - 261194 + 261250 ], [ ".run", @@ -33863,7 +33885,7 @@ 31652, "abs32", "sec:.run", - 260924 + 260980 ], [ ".run", @@ -33884,7 +33906,7 @@ 31936, "abs32", "sec:.run", - 261330 + 261386 ], [ ".run", @@ -33905,7 +33927,7 @@ 32188, "abs32", "sec:.run", - 261084 + 261140 ], [ ".run", @@ -33919,7 +33941,7 @@ 32346, "abs32", "sec:.run", - 261986 + 262042 ], [ ".run", @@ -33947,7 +33969,7 @@ 32554, "abs32", "sec:.run", - 261794 + 261850 ], [ ".run", @@ -33975,14 +33997,14 @@ 32718, "abs32", "sec:.run", - 261496 + 261552 ], [ ".run", 32782, "abs32", "sec:.run", - 261986 + 262042 ], [ ".run", @@ -33996,7 +34018,7 @@ 32860, "abs32", "sec:.run", - 261986 + 262042 ], [ ".run", @@ -34017,14 +34039,14 @@ 32926, "abs32", "sec:.run", - 261986 + 262042 ], [ ".run", 32946, "abs32", "sec:.run", - 261986 + 262042 ], [ ".run", @@ -34822,7 +34844,7 @@ 36112, "abs32", "sec:.run", - 267756 + 267812 ], [ ".run", @@ -35473,7 +35495,7 @@ 38372, "abs32", "sec:.run", - 336634 + 336635 ], [ ".run", @@ -36264,7 +36286,7 @@ 43138, "abs32", "sec:.run", - 258938 + 258994 ], [ ".run", @@ -36915,7 +36937,7 @@ 48266, "abs32", "sec:.run", - 281558 + 281614 ], [ ".run", @@ -37076,7 +37098,7 @@ 49850, "abs32", "sec:.run", - 281738 + 281794 ], [ ".run", @@ -37650,7 +37672,7 @@ 53736, "abs32", "sec:.run", - 258938 + 258994 ], [ ".run", @@ -38371,14 +38393,14 @@ 56124, "abs32", "sec:.run", - 247482 + 247538 ], [ ".run", 56134, "abs32", "sec:.run", - 339796 + 339798 ], [ ".run", @@ -38392,7 +38414,7 @@ 56146, "abs32", "sec:.run", - 247670 + 247726 ], [ ".run", @@ -38413,7 +38435,7 @@ 56168, "abs32", "sec:.run", - 247482 + 247538 ], [ ".run", @@ -38427,7 +38449,7 @@ 56238, "abs32", "sec:.run", - 249332 + 249388 ], [ ".run", @@ -38448,7 +38470,7 @@ 56302, "abs32", "sec:.run", - 249332 + 249388 ], [ ".run", @@ -38462,7 +38484,7 @@ 56326, "abs32", "sec:.run", - 339796 + 339798 ], [ ".run", @@ -38476,7 +38498,7 @@ 56338, "abs32", "sec:.run", - 247670 + 247726 ], [ ".run", @@ -38511,7 +38533,7 @@ 56414, "abs32", "sec:.run", - 250490 + 250546 ], [ ".run", @@ -38525,7 +38547,7 @@ 56562, "abs32", "sec:.run", - 249216 + 249272 ], [ ".run", @@ -38588,7 +38610,7 @@ 56720, "abs32", "sec:.run", - 249422 + 249478 ], [ ".run", @@ -38637,7 +38659,7 @@ 56968, "abs32", "sec:.run", - 250080 + 250136 ], [ ".run", @@ -38714,14 +38736,14 @@ 57268, "abs32", "sec:.run", - 247724 + 247780 ], [ ".run", 57280, "abs32", "sec:.run", - 339796 + 339798 ], [ ".run", @@ -38735,7 +38757,7 @@ 57292, "abs32", "sec:.run", - 247670 + 247726 ], [ ".run", @@ -38770,14 +38792,14 @@ 57368, "abs32", "sec:.run", - 248946 + 249002 ], [ ".run", 57380, "abs32", "sec:.run", - 339796 + 339798 ], [ ".run", @@ -38791,7 +38813,7 @@ 57392, "abs32", "sec:.run", - 247670 + 247726 ], [ ".run", @@ -38826,7 +38848,7 @@ 57458, "abs32", "sec:.run", - 259378 + 259434 ], [ ".run", @@ -39309,7 +39331,7 @@ 58802, "abs32", "sec:.run", - 260792 + 260848 ], [ ".run", @@ -39421,7 +39443,7 @@ 59162, "abs32", "sec:.run", - 247962 + 248018 ], [ ".run", @@ -39435,7 +39457,7 @@ 59174, "abs32", "sec:.run", - 250774 + 250830 ], [ ".run", @@ -39603,7 +39625,7 @@ 59508, "abs32", "sec:.run", - 259378 + 259434 ], [ ".run", @@ -39631,7 +39653,7 @@ 59552, "abs32", "sec:.run", - 259454 + 259510 ], [ ".run", @@ -39897,7 +39919,7 @@ 60152, "abs32", "sec:.run", - 259378 + 259434 ], [ ".run", @@ -39911,7 +39933,7 @@ 60188, "abs32", "sec:.run", - 259454 + 259510 ], [ ".run", @@ -39953,7 +39975,7 @@ 60298, "abs32", "sec:.run", - 258938 + 258994 ], [ ".run", @@ -40247,7 +40269,7 @@ 60754, "abs32", "sec:.run", - 339796 + 339798 ], [ ".run", @@ -40261,7 +40283,7 @@ 60768, "abs32", "sec:.run", - 247670 + 247726 ], [ ".run", @@ -40289,7 +40311,7 @@ 60794, "abs32", "sec:.run", - 247962 + 248018 ], [ ".run", @@ -40303,7 +40325,7 @@ 60806, "abs32", "sec:.run", - 250774 + 250830 ], [ ".run", @@ -40366,7 +40388,7 @@ 60958, "abs32", "sec:.run", - 259378 + 259434 ], [ ".run", @@ -40821,7 +40843,7 @@ 62002, "abs32", "sec:.run", - 259454 + 259510 ], [ ".run", @@ -41052,7 +41074,7 @@ 62466, "abs32", "sec:.run", - 259454 + 259510 ], [ ".run", @@ -41164,7 +41186,7 @@ 62674, "abs32", "sec:.run", - 259378 + 259434 ], [ ".run", @@ -41339,7 +41361,7 @@ 62956, "abs32", "sec:.run", - 259378 + 259434 ], [ ".run", @@ -43040,14 +43062,14 @@ 65810, "abs32", "sec:.run", - 259378 + 259434 ], [ ".run", 65828, "abs32", "sec:.run", - 259454 + 259510 ], [ ".run", @@ -43418,7 +43440,7 @@ 66536, "abs32", "sec:.run", - 259378 + 259434 ], [ ".run", @@ -43495,7 +43517,7 @@ 66820, "abs32", "sec:.run", - 259062 + 259118 ], [ ".run", @@ -43845,14 +43867,14 @@ 67594, "abs32", "sec:.run", - 336634 + 336635 ], [ ".run", 67610, "abs32", "sec:.run", - 264696 + 264752 ], [ ".run", @@ -43915,7 +43937,7 @@ 67694, "abs32", "sec:.run", - 275824 + 275880 ], [ ".run", @@ -43943,7 +43965,7 @@ 67800, "abs32", "sec:.run", - 264902 + 264958 ], [ ".run", @@ -43957,7 +43979,7 @@ 67820, "abs32", "sec:.run", - 275454 + 275510 ], [ ".run", @@ -43992,7 +44014,7 @@ 67898, "abs32", "sec:.run", - 265568 + 265624 ], [ ".run", @@ -44062,7 +44084,7 @@ 68610, "abs32", "sec:.run", - 275096 + 275152 ], [ ".run", @@ -44118,7 +44140,7 @@ 68712, "abs32", "sec:.run", - 275096 + 275152 ], [ ".run", @@ -44223,7 +44245,7 @@ 69028, "abs32", "sec:.run", - 336634 + 336635 ], [ ".run", @@ -44237,7 +44259,7 @@ 69044, "abs32", "sec:.run", - 264696 + 264752 ], [ ".run", @@ -44265,7 +44287,7 @@ 69106, "abs32", "sec:.run", - 264926 + 264982 ], [ ".run", @@ -44321,7 +44343,7 @@ 69286, "abs32", "sec:.run", - 275824 + 275880 ], [ ".run", @@ -44356,7 +44378,7 @@ 69342, "abs32", "sec:.run", - 275096 + 275152 ], [ ".run", @@ -44622,7 +44644,7 @@ 70108, "abs32", "sec:.run", - 275740 + 275796 ], [ ".run", @@ -44671,7 +44693,7 @@ 70508, "abs32", "sec:.run", - 275096 + 275152 ], [ ".run", @@ -44923,7 +44945,7 @@ 71410, "abs32", "sec:.run", - 275824 + 275880 ], [ ".run", @@ -44965,7 +44987,7 @@ 71468, "abs32", "sec:.run", - 265612 + 265668 ], [ ".run", @@ -45007,7 +45029,7 @@ 71586, "abs32", "sec:.run", - 336634 + 336635 ], [ ".run", @@ -45021,7 +45043,7 @@ 71602, "abs32", "sec:.run", - 264696 + 264752 ], [ ".run", @@ -45280,7 +45302,7 @@ 72018, "abs32", "sec:.run", - 265660 + 265716 ], [ ".run", @@ -45350,7 +45372,7 @@ 72140, "abs32", "sec:.run", - 336634 + 336635 ], [ ".run", @@ -45364,7 +45386,7 @@ 72156, "abs32", "sec:.run", - 264696 + 264752 ], [ ".run", @@ -45420,7 +45442,7 @@ 72236, "abs32", "sec:.run", - 275854 + 275910 ], [ ".run", @@ -45539,7 +45561,7 @@ 72418, "abs32", "sec:.run", - 275824 + 275880 ], [ ".run", @@ -45644,7 +45666,7 @@ 72670, "abs32", "sec:.run", - 264902 + 264958 ], [ ".run", @@ -45658,7 +45680,7 @@ 72696, "abs32", "sec:.run", - 336634 + 336635 ], [ ".run", @@ -45672,7 +45694,7 @@ 72716, "abs32", "sec:.run", - 264696 + 264752 ], [ ".run", @@ -45693,7 +45715,7 @@ 72748, "abs32", "sec:.run", - 264902 + 264958 ], [ ".run", @@ -45763,7 +45785,7 @@ 72856, "abs32", "sec:.run", - 266018 + 266074 ], [ ".run", @@ -45784,14 +45806,14 @@ 72948, "abs32", "sec:.run", - 336634 + 336635 ], [ ".run", 72968, "abs32", "sec:.run", - 336666 + 336667 ], [ ".run", @@ -45819,14 +45841,14 @@ 73034, "abs32", "sec:.run", - 336634 + 336635 ], [ ".run", 73042, "abs32", "sec:.run", - 336634 + 336635 ], [ ".run", @@ -45840,7 +45862,7 @@ 73062, "abs32", "sec:.run", - 262440 + 262496 ], [ ".run", @@ -45875,7 +45897,7 @@ 73106, "abs32", "sec:.run", - 336634 + 336635 ], [ ".run", @@ -45889,7 +45911,7 @@ 73126, "abs32", "sec:.run", - 275130 + 275186 ], [ ".run", @@ -45917,7 +45939,7 @@ 73162, "abs32", "sec:.run", - 274296 + 274352 ], [ ".run", @@ -45938,7 +45960,7 @@ 73188, "abs32", "sec:.run", - 275096 + 275152 ], [ ".run", @@ -45959,7 +45981,7 @@ 73214, "abs32", "sec:.run", - 265736 + 265792 ], [ ".run", @@ -45980,7 +46002,7 @@ 73232, "abs32", "sec:.run", - 274296 + 274352 ], [ ".run", @@ -46330,28 +46352,28 @@ 74738, "abs32", "sec:.run", - 336634 + 336635 ], [ ".run", 74744, "abs32", "sec:.run", - 336666 + 336667 ], [ ".run", 74776, "abs32", "sec:.run", - 336634 + 336635 ], [ ".run", 74804, "abs32", "sec:.run", - 336666 + 336667 ], [ ".run", @@ -46750,7 +46772,7 @@ 76988, "abs32", "sec:.run", - 336634 + 336635 ], [ ".run", @@ -46841,7 +46863,7 @@ 77182, "abs32", "sec:.run", - 267368 + 267424 ], [ ".run", @@ -46869,7 +46891,7 @@ 77286, "abs32", "sec:.run", - 349320 + 349322 ], [ ".run", @@ -46890,7 +46912,7 @@ 77392, "abs32", "sec:.run", - 336634 + 336635 ], [ ".run", @@ -46988,14 +47010,14 @@ 77570, "abs32", "sec:.run", - 349576 + 349578 ], [ ".run", 77576, "abs32", "sec:.run", - 350718 + 350720 ], [ ".run", @@ -47051,7 +47073,7 @@ 77724, "abs32", "sec:.run", - 350476 + 350478 ], [ ".run", @@ -47072,7 +47094,7 @@ 77854, "abs32", "sec:.run", - 334078 + 334080 ], [ ".run", @@ -47121,14 +47143,14 @@ 78044, "abs32", "sec:.run", - 349576 + 349578 ], [ ".run", 78050, "abs32", "sec:.run", - 350718 + 350720 ], [ ".run", @@ -47268,7 +47290,7 @@ 78368, "abs32", "sec:.run", - 336634 + 336635 ], [ ".run", @@ -47478,14 +47500,14 @@ 78938, "abs32", "sec:.run", - 336634 + 336635 ], [ ".run", 78962, "abs32", "sec:.run", - 336666 + 336667 ], [ ".run", @@ -48626,21 +48648,21 @@ 88690, "abs32", "sec:.run", - 337404 + 337406 ], [ ".run", 88700, "abs32", "sec:.run", - 338692 + 338694 ], [ ".run", 88718, "abs32", "sec:.run", - 337148 + 337150 ], [ ".run", @@ -48682,28 +48704,28 @@ 88958, "abs32", "sec:.run", - 337199 + 337201 ], [ ".run", 89036, "abs32", "sec:.run", - 337404 + 337406 ], [ ".run", 89042, "abs32", "sec:.run", - 337608 + 337610 ], [ ".run", 89058, "abs32", "sec:.run", - 337608 + 337610 ], [ ".run", @@ -48836,14 +48858,14 @@ 89636, "abs32", "sec:.run", - 338896 + 338898 ], [ ".run", 89676, "abs32", "sec:.run", - 337812 + 337814 ], [ ".run", @@ -48857,7 +48879,7 @@ 89742, "abs32", "sec:.run", - 337812 + 337814 ], [ ".run", @@ -49081,14 +49103,14 @@ 90898, "abs32", "sec:.run", - 336758 + 336760 ], [ ".run", 90910, "abs32", "sec:.run", - 336758 + 336760 ], [ ".run", @@ -49403,7 +49425,7 @@ 93164, "abs32", "sec:.run", - 336758 + 336760 ], [ ".run", @@ -49508,21 +49530,21 @@ 93952, "abs32", "sec:.run", - 269872 + 269928 ], [ ".run", 93970, "abs32", "sec:.run", - 272968 + 273024 ], [ ".run", 94168, "abs32", "sec:.run", - 336758 + 336760 ], [ ".run", @@ -49550,7 +49572,7 @@ 94430, "abs32", "sec:.run", - 336758 + 336760 ], [ ".run", @@ -49578,7 +49600,7 @@ 94592, "abs32", "sec:.run", - 336758 + 336760 ], [ ".run", @@ -49662,14 +49684,14 @@ 94994, "abs32", "sec:.run", - 336666 + 336668 ], [ ".run", 95462, "abs32", "sec:.run", - 336758 + 336760 ], [ ".run", @@ -49690,28 +49712,28 @@ 95760, "abs32", "sec:.run", - 337200 + 337202 ], [ ".run", 95782, "abs32", "sec:.run", - 338868 + 338870 ], [ ".run", 95812, "abs32", "sec:.run", - 337184 + 337186 ], [ ".run", 96120, "abs32", "sec:.run", - 336758 + 336760 ], [ ".run", @@ -49732,7 +49754,7 @@ 97336, "abs32", "sec:.run", - 336758 + 336760 ], [ ".run", @@ -49921,7 +49943,7 @@ 102118, "abs32", "sec:.run", - 338692 + 338694 ], [ ".run", @@ -49956,7 +49978,7 @@ 102398, "abs32", "sec:.run", - 338636 + 338638 ], [ ".run", @@ -50145,7 +50167,7 @@ 103790, "abs32", "sec:.run", - 336758 + 336760 ], [ ".run", @@ -50166,7 +50188,7 @@ 103832, "abs32", "sec:.run", - 336758 + 336760 ], [ ".run", @@ -50348,7 +50370,7 @@ 105786, "abs32", "sec:.run", - 338900 + 338902 ], [ ".run", @@ -50663,7 +50685,7 @@ 108558, "abs32", "sec:.run", - 269872 + 269928 ], [ ".run", @@ -50719,7 +50741,7 @@ 108870, "abs32", "sec:.run", - 272968 + 273024 ], [ ".run", @@ -51132,7 +51154,7 @@ 110216, "abs32", "sec:.run", - 279992 + 280048 ], [ ".run", @@ -51433,7 +51455,7 @@ 111180, "abs32", "sec:.run", - 280012 + 280068 ], [ ".run", @@ -51538,7 +51560,7 @@ 111470, "abs32", "sec:.run", - 282050 + 282106 ], [ ".run", @@ -51622,7 +51644,7 @@ 111610, "abs32", "sec:.run", - 282360 + 282416 ], [ ".run", @@ -51727,7 +51749,7 @@ 111966, "abs32", "sec:.run", - 280034 + 280090 ], [ ".run", @@ -51853,7 +51875,7 @@ 112498, "abs32", "sec:.run", - 281898 + 281954 ], [ ".run", @@ -51916,7 +51938,7 @@ 112598, "abs32", "sec:.run", - 282360 + 282416 ], [ ".run", @@ -52959,14 +52981,14 @@ 115982, "abs32", "sec:.run", - 339304 + 339306 ], [ ".run", 116520, "abs32", "sec:.run", - 339309 + 339311 ], [ ".run", @@ -53022,7 +53044,7 @@ 117778, "abs32", "sec:.run", - 254126 + 254182 ], [ ".run", @@ -53036,7 +53058,7 @@ 117798, "abs32", "sec:.run", - 254126 + 254182 ], [ ".run", @@ -53085,7 +53107,7 @@ 117986, "abs32", "sec:.run", - 254640 + 254696 ], [ ".run", @@ -53141,7 +53163,7 @@ 118372, "abs32", "sec:.run", - 254974 + 255030 ], [ ".run", @@ -53155,7 +53177,7 @@ 118414, "abs32", "sec:.run", - 254126 + 254182 ], [ ".run", @@ -53176,7 +53198,7 @@ 119104, "abs32", "sec:.run", - 339314 + 339316 ], [ ".run", @@ -53225,7 +53247,7 @@ 122966, "abs32", "sec:.run", - 337708 + 337710 ], [ ".run", @@ -53302,21 +53324,21 @@ 123218, "abs32", "sec:.run", - 274146 + 274202 ], [ ".run", 123226, "abs32", "sec:.run", - 274138 + 274194 ], [ ".run", 123232, "abs32", "sec:.run", - 274144 + 274200 ], [ ".run", @@ -53337,7 +53359,7 @@ 123306, "abs32", "sec:.run", - 337704 + 337706 ], [ ".run", @@ -53393,21 +53415,21 @@ 123540, "abs32", "sec:.run", - 273818 + 273874 ], [ ".run", 123570, "abs32", "sec:.run", - 339367 + 339369 ], [ ".run", 123590, "abs32", "sec:.run", - 339383 + 339385 ], [ ".run", @@ -53603,7 +53625,7 @@ 125098, "abs32", "sec:.run", - 337740 + 337742 ], [ ".run", @@ -53680,7 +53702,7 @@ 126012, "abs32", "sec:.run", - 339362 + 339364 ], [ ".run", @@ -53701,21 +53723,21 @@ 126052, "abs32", "sec:.run", - 339346 + 339348 ], [ ".run", 126140, "abs32", "sec:.run", - 339326 + 339328 ], [ ".run", 126186, "abs32", "sec:.run", - 339346 + 339348 ], [ ".run", @@ -53778,7 +53800,7 @@ 126468, "abs32", "sec:.run", - 337704 + 337706 ], [ ".run", @@ -53834,7 +53856,7 @@ 126720, "abs32", "sec:.run", - 337704 + 337706 ], [ ".run", @@ -53848,7 +53870,7 @@ 127082, "abs32", "sec:.run", - 273868 + 273924 ], [ ".run", @@ -54044,7 +54066,7 @@ 129636, "abs32", "sec:.run", - 337704 + 337706 ], [ ".run", @@ -54184,7 +54206,7 @@ 131160, "abs32", "sec:.run", - 231990 + 232052 ], [ ".run", @@ -54338,21 +54360,21 @@ 133632, "abs32", "sec:.run", - 339362 + 339364 ], [ ".run", 133644, "abs32", "sec:.run", - 339367 + 339369 ], [ ".run", 134454, "abs32", "sec:.run", - 273996 + 274052 ], [ ".run", @@ -54541,7 +54563,7 @@ 135844, "abs32", "sec:.run", - 337704 + 337706 ], [ ".run", @@ -55689,7 +55711,7 @@ 142548, "abs32", "sec:.run", - 261330 + 261386 ], [ ".run", @@ -55703,7 +55725,7 @@ 142572, "abs32", "sec:.run", - 261330 + 261386 ], [ ".run", @@ -55738,7 +55760,7 @@ 142736, "abs32", "sec:.run", - 260924 + 260980 ], [ ".run", @@ -55752,14 +55774,14 @@ 142870, "abs32", "sec:.run", - 260924 + 260980 ], [ ".run", 142934, "abs32", "sec:.run", - 261028 + 261084 ], [ ".run", @@ -55794,7 +55816,7 @@ 143150, "abs32", "sec:.run", - 261194 + 261250 ], [ ".run", @@ -55822,7 +55844,7 @@ 143216, "abs32", "sec:.run", - 261496 + 261552 ], [ ".run", @@ -55836,7 +55858,7 @@ 143278, "abs32", "sec:.run", - 261794 + 261850 ], [ ".run", @@ -55990,7 +56012,7 @@ 144130, "abs32", "sec:.run", - 249332 + 249388 ], [ ".run", @@ -56011,7 +56033,7 @@ 144374, "abs32", "sec:.run", - 249332 + 249388 ], [ ".run", @@ -56452,14 +56474,14 @@ 146196, "abs32", "sec:.run", - 259378 + 259434 ], [ ".run", 146218, "abs32", "sec:.run", - 259454 + 259510 ], [ ".run", @@ -56508,7 +56530,7 @@ 146316, "abs32", "sec:.run", - 258938 + 258994 ], [ ".run", @@ -56522,14 +56544,14 @@ 146340, "abs32", "sec:.run", - 259378 + 259434 ], [ ".run", 146360, "abs32", "sec:.run", - 262010 + 262066 ], [ ".run", @@ -57166,7 +57188,7 @@ 147634, "abs32", "sec:.run", - 258938 + 258994 ], [ ".run", @@ -57180,14 +57202,14 @@ 147666, "abs32", "sec:.run", - 259378 + 259434 ], [ ".run", 147688, "abs32", "sec:.run", - 262010 + 262066 ], [ ".run", @@ -57418,14 +57440,14 @@ 148040, "abs32", "sec:.run", - 259378 + 259434 ], [ ".run", 148058, "abs32", "sec:.run", - 259454 + 259510 ], [ ".run", @@ -57635,7 +57657,7 @@ 148630, "abs32", "sec:.run", - 259378 + 259434 ], [ ".run", @@ -57649,7 +57671,7 @@ 148652, "abs32", "sec:.run", - 259454 + 259510 ], [ ".run", @@ -57754,7 +57776,7 @@ 148934, "abs32", "sec:.run", - 258938 + 258994 ], [ ".run", @@ -58608,14 +58630,14 @@ 150444, "abs32", "sec:.run", - 259378 + 259434 ], [ ".run", 150462, "abs32", "sec:.run", - 259454 + 259510 ], [ ".run", @@ -58797,7 +58819,7 @@ 151208, "abs32", "sec:.run", - 258938 + 258994 ], [ ".run", @@ -59021,7 +59043,7 @@ 151590, "abs32", "sec:.run", - 258938 + 258994 ], [ ".run", @@ -59343,7 +59365,7 @@ 152290, "abs32", "sec:.run", - 258938 + 258994 ], [ ".run", @@ -59616,7 +59638,7 @@ 152816, "abs32", "sec:.run", - 258752 + 258808 ], [ ".run", @@ -59819,7 +59841,7 @@ 153362, "abs32", "sec:.run", - 258938 + 258994 ], [ ".run", @@ -60036,7 +60058,7 @@ 153990, "abs32", "sec:.run", - 258938 + 258994 ], [ ".run", @@ -60057,7 +60079,7 @@ 154046, "abs32", "sec:.run", - 258938 + 258994 ], [ ".run", @@ -60358,7 +60380,7 @@ 154678, "abs32", "sec:.run", - 258752 + 258808 ], [ ".run", @@ -61814,7 +61836,7 @@ 158504, "abs32", "sec:.run", - 249760 + 249816 ], [ ".run", @@ -63207,7 +63229,7 @@ 164376, "abs32", "sec:.run", - 262074 + 262130 ], [ ".run", @@ -63508,7 +63530,7 @@ 166370, "abs32", "sec:.run", - 262164 + 262220 ], [ ".run", @@ -63613,7 +63635,7 @@ 166718, "abs32", "sec:.run", - 337716 + 337718 ], [ ".run", @@ -63655,7 +63677,7 @@ 167456, "abs32", "sec:.run", - 274282 + 274338 ], [ ".run", @@ -63704,7 +63726,7 @@ 167684, "abs32", "sec:.run", - 339383 + 339385 ], [ ".run", @@ -63872,49 +63894,49 @@ 168862, "abs32", "sec:.run", - 339391 + 339393 ], [ ".run", 168878, "abs32", "sec:.run", - 339397 + 339399 ], [ ".run", 168916, "abs32", "sec:.run", - 338392 + 338394 ], [ ".run", 169120, "abs32", "sec:.run", - 339403 + 339405 ], [ ".run", 169550, "abs32", "sec:.run", - 339391 + 339393 ], [ ".run", 169566, "abs32", "sec:.run", - 339397 + 339399 ], [ ".run", 169618, "abs32", "sec:.run", - 338392 + 338394 ], [ ".run", @@ -64089,7 +64111,7 @@ 170668, "abs32", "sec:.run", - 339387 + 339389 ], [ ".run", @@ -64194,7 +64216,7 @@ 171034, "abs32", "sec:.run", - 339387 + 339389 ], [ ".run", @@ -64215,7 +64237,7 @@ 171066, "abs32", "sec:.run", - 339387 + 339389 ], [ ".run", @@ -64376,7 +64398,7 @@ 171918, "abs32", "sec:.run", - 336634 + 336635 ], [ ".run", @@ -64418,7 +64440,7 @@ 172038, "abs32", "sec:.run", - 339403 + 339405 ], [ ".run", @@ -64432,14 +64454,14 @@ 172054, "abs32", "sec:.run", - 339431 + 339433 ], [ ".run", 172072, "abs32", "sec:.run", - 267312 + 267368 ], [ ".run", @@ -64453,7 +64475,7 @@ 172098, "abs32", "sec:.run", - 267326 + 267382 ], [ ".run", @@ -64481,14 +64503,14 @@ 172136, "abs32", "sec:.run", - 267354 + 267410 ], [ ".run", 172156, "abs32", "sec:.run", - 339417 + 339419 ], [ ".run", @@ -64544,7 +64566,7 @@ 172286, "abs32", "sec:.run", - 267354 + 267410 ], [ ".run", @@ -64614,7 +64636,7 @@ 172532, "abs32", "sec:.run", - 267354 + 267410 ], [ ".run", @@ -64642,7 +64664,7 @@ 172764, "abs32", "sec:.run", - 267354 + 267410 ], [ ".run", @@ -64859,7 +64881,7 @@ 173520, "abs32", "sec:.run", - 336634 + 336635 ], [ ".run", @@ -64873,7 +64895,7 @@ 173534, "abs32", "sec:.run", - 336666 + 336667 ], [ ".run", @@ -64929,14 +64951,14 @@ 173694, "abs32", "sec:.run", - 336722 + 336724 ], [ ".run", 173700, "abs32", "sec:.run", - 336726 + 336728 ], [ ".run", @@ -64971,7 +64993,7 @@ 173830, "abs32", "sec:.run", - 336734 + 336736 ], [ ".run", @@ -65062,7 +65084,7 @@ 174024, "abs32", "sec:.run", - 339459 + 339461 ], [ ".run", @@ -65090,14 +65112,14 @@ 174156, "abs32", "sec:.run", - 336738 + 336740 ], [ ".run", 174176, "abs32", "sec:.run", - 336746 + 336748 ], [ ".run", @@ -65111,7 +65133,7 @@ 174204, "abs32", "sec:.run", - 336742 + 336744 ], [ ".run", @@ -65202,7 +65224,7 @@ 174522, "abs32", "sec:.run", - 339476 + 339478 ], [ ".run", @@ -65286,7 +65308,7 @@ 174678, "abs32", "sec:.run", - 336754 + 336756 ], [ ".run", @@ -65300,7 +65322,7 @@ 174906, "abs32", "sec:.run", - 339449 + 339451 ], [ ".run", @@ -65328,7 +65350,7 @@ 174958, "abs32", "sec:.run", - 339515 + 339517 ], [ ".run", @@ -65342,7 +65364,7 @@ 174978, "abs32", "sec:.run", - 339496 + 339498 ], [ ".run", @@ -65356,7 +65378,7 @@ 175008, "abs32", "sec:.run", - 339433 + 339435 ], [ ".run", @@ -65370,14 +65392,14 @@ 175064, "abs32", "sec:.run", - 339433 + 339435 ], [ ".run", 175078, "abs32", "sec:.run", - 339449 + 339451 ], [ ".run", @@ -66609,7 +66631,7 @@ 179466, "abs32", "sec:.run", - 244992 + 245048 ], [ ".run", @@ -66658,7 +66680,7 @@ 179710, "abs32", "sec:.run", - 336634 + 336635 ], [ ".run", @@ -66700,7 +66722,7 @@ 179994, "abs32", "sec:.run", - 339530 + 339532 ], [ ".run", @@ -66791,7 +66813,7 @@ 180146, "abs32", "sec:.run", - 244992 + 245048 ], [ ".run", @@ -66931,7 +66953,7 @@ 180460, "abs32", "sec:.run", - 339403 + 339405 ], [ ".run", @@ -66945,14 +66967,14 @@ 180484, "abs32", "sec:.run", - 339559 + 339561 ], [ ".run", 180502, "abs32", "sec:.run", - 267312 + 267368 ], [ ".run", @@ -66966,7 +66988,7 @@ 180586, "abs32", "sec:.run", - 267354 + 267410 ], [ ".run", @@ -67050,7 +67072,7 @@ 180702, "abs32", "sec:.run", - 272812 + 272868 ], [ ".run", @@ -67064,35 +67086,35 @@ 180724, "abs32", "sec:.run", - 244992 + 245048 ], [ ".run", 180754, "abs32", "sec:.run", - 267340 + 267396 ], [ ".run", 180780, "abs32", "sec:.run", - 267354 + 267410 ], [ ".run", 180792, "abs32", "sec:.run", - 336634 + 336635 ], [ ".run", 180862, "abs32", "sec:.run", - 336634 + 336635 ], [ ".run", @@ -67239,7 +67261,7 @@ 181334, "abs32", "sec:.run", - 336722 + 336724 ], [ ".run", @@ -67253,7 +67275,7 @@ 181366, "abs32", "sec:.run", - 336726 + 336728 ], [ ".run", @@ -67274,7 +67296,7 @@ 181410, "abs32", "sec:.run", - 336738 + 336740 ], [ ".run", @@ -67288,7 +67310,7 @@ 181456, "abs32", "sec:.run", - 336746 + 336748 ], [ ".run", @@ -67302,14 +67324,14 @@ 181486, "abs32", "sec:.run", - 336742 + 336744 ], [ ".run", 181502, "abs32", "sec:.run", - 336734 + 336736 ], [ ".run", @@ -67330,14 +67352,14 @@ 181540, "abs32", "sec:.run", - 336754 + 336756 ], [ ".run", 181566, "abs32", "sec:.run", - 336734 + 336736 ], [ ".run", @@ -67393,7 +67415,7 @@ 181704, "abs32", "sec:.run", - 339417 + 339419 ], [ ".run", @@ -67442,7 +67464,7 @@ 181776, "abs32", "sec:.run", - 339546 + 339548 ], [ ".run", @@ -67491,7 +67513,7 @@ 181856, "abs32", "sec:.run", - 244992 + 245048 ], [ ".run", @@ -67512,14 +67534,14 @@ 181894, "abs32", "sec:.run", - 267340 + 267396 ], [ ".run", 181924, "abs32", "sec:.run", - 267354 + 267410 ], [ ".run", @@ -67561,7 +67583,7 @@ 182154, "abs32", "sec:.run", - 336722 + 336724 ], [ ".run", @@ -67575,14 +67597,14 @@ 182178, "abs32", "sec:.run", - 336726 + 336728 ], [ ".run", 182212, "abs32", "sec:.run", - 336738 + 336740 ], [ ".run", @@ -67715,7 +67737,7 @@ 183026, "abs32", "sec:.run", - 267354 + 267410 ], [ ".run", @@ -67729,14 +67751,14 @@ 183050, "abs32", "sec:.run", - 339431 + 339433 ], [ ".run", 183064, "abs32", "sec:.run", - 267312 + 267368 ], [ ".run", @@ -67757,7 +67779,7 @@ 183126, "abs32", "sec:.run", - 267326 + 267382 ], [ ".run", @@ -67799,7 +67821,7 @@ 183236, "abs32", "sec:.run", - 267326 + 267382 ], [ ".run", @@ -67827,7 +67849,7 @@ 183316, "abs32", "sec:.run", - 267354 + 267410 ], [ ".run", @@ -67855,98 +67877,98 @@ 183816, "abs32", "sec:.run", - 339561 + 339563 ], [ ".run", 183862, "abs32", "sec:.run", - 339568 + 339570 ], [ ".run", 183946, "abs32", "sec:.run", - 339599 + 339601 ], [ ".run", 184300, "abs32", "sec:.run", - 339595 + 339597 ], [ ".run", 184338, "abs32", "sec:.run", - 339598 + 339600 ], [ ".run", 184810, "abs32", "sec:.run", - 339598 + 339600 ], [ ".run", 185086, "abs32", "sec:.run", - 339568 + 339570 ], [ ".run", 185160, "abs32", "sec:.run", - 339595 + 339597 ], [ ".run", 185188, "abs32", "sec:.run", - 339584 + 339586 ], [ ".run", 185226, "abs32", "sec:.run", - 339594 + 339596 ], [ ".run", 185288, "abs32", "sec:.run", - 339569 + 339571 ], [ ".run", 185322, "abs32", "sec:.run", - 339583 + 339585 ], [ ".run", 185354, "abs32", "sec:.run", - 339583 + 339585 ], [ ".run", 185374, "abs32", "sec:.run", - 339594 + 339596 ], [ ".run", @@ -67960,238 +67982,238 @@ 186706, "abs32", "sec:.run", - 339735 + 339737 ], [ ".run", 187380, "abs32", "sec:.run", - 339616 + 339618 ], [ ".run", 187406, "abs32", "sec:.run", - 339633 + 339635 ], [ ".run", 187416, "abs32", "sec:.run", - 339634 + 339636 ], [ ".run", 187442, "abs32", "sec:.run", - 339642 + 339644 ], [ ".run", 187490, "abs32", "sec:.run", - 339643 + 339645 ], [ ".run", 187524, "abs32", "sec:.run", - 339648 + 339650 ], [ ".run", 187576, "abs32", "sec:.run", - 339649 + 339651 ], [ ".run", 187608, "abs32", "sec:.run", - 339659 + 339661 ], [ ".run", 187660, "abs32", "sec:.run", - 339660 + 339662 ], [ ".run", 187692, "abs32", "sec:.run", - 339676 + 339678 ], [ ".run", 187742, "abs32", "sec:.run", - 339677 + 339679 ], [ ".run", 187776, "abs32", "sec:.run", - 339686 + 339688 ], [ ".run", 187828, "abs32", "sec:.run", - 339687 + 339689 ], [ ".run", 187860, "abs32", "sec:.run", - 339693 + 339695 ], [ ".run", 187912, "abs32", "sec:.run", - 339694 + 339696 ], [ ".run", 187944, "abs32", "sec:.run", - 339700 + 339702 ], [ ".run", 187994, "abs32", "sec:.run", - 339701 + 339703 ], [ ".run", 188028, "abs32", "sec:.run", - 339710 + 339712 ], [ ".run", 188080, "abs32", "sec:.run", - 339711 + 339713 ], [ ".run", 188112, "abs32", "sec:.run", - 339722 + 339724 ], [ ".run", 188332, "abs32", "sec:.run", - 339723 + 339725 ], [ ".run", 188358, "abs32", "sec:.run", - 339734 + 339736 ], [ ".run", 188368, "abs32", "sec:.run", - 339599 + 339601 ], [ ".run", 188618, "abs32", "sec:.run", - 339711 + 339713 ], [ ".run", 188632, "abs32", "sec:.run", - 339701 + 339703 ], [ ".run", 188646, "abs32", "sec:.run", - 339694 + 339696 ], [ ".run", 188660, "abs32", "sec:.run", - 339687 + 339689 ], [ ".run", 188674, "abs32", "sec:.run", - 339677 + 339679 ], [ ".run", 188688, "abs32", "sec:.run", - 339660 + 339662 ], [ ".run", 188702, "abs32", "sec:.run", - 339649 + 339651 ], [ ".run", 188716, "abs32", "sec:.run", - 339643 + 339645 ], [ ".run", 188730, "abs32", "sec:.run", - 339723 + 339725 ], [ ".run", 188936, "abs32", "sec:.run", - 244984 + 245040 ], [ ".run", @@ -68345,7 +68367,7 @@ 189160, "abs32", "sec:.run", - 245360 + 245416 ], [ ".run", @@ -68506,7 +68528,7 @@ 189428, "abs32", "sec:.run", - 245088 + 245144 ], [ ".run", @@ -68646,7 +68668,7 @@ 189600, "abs32", "sec:.run", - 244942 + 244998 ], [ ".run", @@ -68667,7 +68689,7 @@ 189630, "abs32", "sec:.run", - 244984 + 245040 ], [ ".run", @@ -68695,7 +68717,7 @@ 189694, "abs32", "sec:.run", - 244984 + 245040 ], [ ".run", @@ -68730,7 +68752,7 @@ 189778, "abs32", "sec:.run", - 244984 + 245040 ], [ ".run", @@ -68779,7 +68801,7 @@ 189876, "abs32", "sec:.run", - 244992 + 245048 ], [ ".run", @@ -68842,14 +68864,14 @@ 189980, "abs32", "sec:.run", - 246352 + 246408 ], [ ".run", 189992, "abs32", "sec:.run", - 244984 + 245040 ], [ ".run", @@ -68877,7 +68899,7 @@ 190052, "abs32", "sec:.run", - 246352 + 246408 ], [ ".run", @@ -68905,7 +68927,7 @@ 190088, "abs32", "sec:.run", - 244992 + 245048 ], [ ".run", @@ -68940,7 +68962,7 @@ 190160, "abs32", "sec:.run", - 246352 + 246408 ], [ ".run", @@ -68996,7 +69018,7 @@ 190248, "abs32", "sec:.run", - 244984 + 245040 ], [ ".run", @@ -69031,7 +69053,7 @@ 190320, "abs32", "sec:.run", - 244984 + 245040 ], [ ".run", @@ -69087,7 +69109,7 @@ 190436, "abs32", "sec:.run", - 244984 + 245040 ], [ ".run", @@ -69143,7 +69165,7 @@ 190564, "abs32", "sec:.run", - 244984 + 245040 ], [ ".run", @@ -69255,7 +69277,7 @@ 190804, "abs32", "sec:.run", - 337804 + 337806 ], [ ".run", @@ -69773,7 +69795,7 @@ 193004, "abs32", "sec:.run", - 339749 + 339751 ], [ ".run", @@ -69794,7 +69816,7 @@ 193374, "abs32", "sec:.run", - 339760 + 339762 ], [ ".run", @@ -69857,7 +69879,7 @@ 194352, "abs32", "sec:.run", - 339744 + 339746 ], [ ".run", @@ -69878,7 +69900,7 @@ 194582, "abs32", "sec:.run", - 340032 + 340034 ], [ ".run", @@ -69976,28 +69998,28 @@ 195426, "abs32", "sec:.run", - 260924 + 260980 ], [ ".run", 195452, "abs32", "sec:.run", - 261194 + 261250 ], [ ".run", 195470, "abs32", "sec:.run", - 261330 + 261386 ], [ ".run", 195506, "abs32", "sec:.run", - 340060 + 340062 ], [ ".run", @@ -70018,7 +70040,7 @@ 195622, "abs32", "sec:.run", - 340068 + 340070 ], [ ".run", @@ -70039,7 +70061,7 @@ 195750, "abs32", "sec:.run", - 261028 + 261084 ], [ ".run", @@ -70060,7 +70082,7 @@ 195822, "abs32", "sec:.run", - 261986 + 262042 ], [ ".run", @@ -70109,7 +70131,7 @@ 196024, "abs32", "sec:.run", - 348678 + 348680 ], [ ".run", @@ -70193,14 +70215,14 @@ 196168, "abs32", "sec:.run", - 261496 + 261552 ], [ ".run", 196204, "abs32", "sec:.run", - 261794 + 261850 ], [ ".run", @@ -70221,7 +70243,7 @@ 196346, "abs32", "sec:.run", - 261794 + 261850 ], [ ".run", @@ -70235,7 +70257,7 @@ 196414, "abs32", "sec:.run", - 261986 + 262042 ], [ ".run", @@ -70277,7 +70299,7 @@ 196612, "abs32", "sec:.run", - 348678 + 348680 ], [ ".run", @@ -70298,7 +70320,7 @@ 196670, "abs32", "sec:.run", - 340076 + 340078 ], [ ".run", @@ -70312,7 +70334,7 @@ 196812, "abs32", "sec:.run", - 348678 + 348680 ], [ ".run", @@ -70347,7 +70369,7 @@ 196918, "abs32", "sec:.run", - 340068 + 340070 ], [ ".run", @@ -70396,7 +70418,7 @@ 197152, "abs32", "sec:.run", - 340068 + 340070 ], [ ".run", @@ -70410,7 +70432,7 @@ 197240, "abs32", "sec:.run", - 262042 + 262098 ], [ ".run", @@ -70494,7 +70516,7 @@ 198090, "abs32", "sec:.run", - 340068 + 340070 ], [ ".run", @@ -70641,14 +70663,14 @@ 199060, "abs32", "sec:.run", - 348678 + 348680 ], [ ".run", 199082, "abs32", "sec:.run", - 340068 + 340070 ], [ ".run", @@ -70662,7 +70684,7 @@ 199106, "abs32", "sec:.run", - 340076 + 340078 ], [ ".run", @@ -70711,7 +70733,7 @@ 199656, "abs32", "sec:.run", - 262042 + 262098 ], [ ".run", @@ -70732,7 +70754,7 @@ 199756, "abs32", "sec:.run", - 340076 + 340078 ], [ ".run", @@ -70788,7 +70810,7 @@ 200190, "abs32", "sec:.run", - 340076 + 340078 ], [ ".run", @@ -70865,42 +70887,42 @@ 201078, "abs32", "sec:.run", - 348710 + 348712 ], [ ".run", 201096, "abs32", "sec:.run", - 348842 + 348844 ], [ ".run", 201148, "abs32", "sec:.run", - 348842 + 348844 ], [ ".run", 201308, "abs32", "sec:.run", - 348842 + 348844 ], [ ".run", 201348, "abs32", "sec:.run", - 348842 + 348844 ], [ ".run", 201368, "abs32", "sec:.run", - 348710 + 348712 ], [ ".run", @@ -71348,7 +71370,7 @@ 205436, "abs32", "sec:.run", - 348866 + 348868 ], [ ".run", @@ -71530,7 +71552,7 @@ 205732, "abs32", "sec:.run", - 348866 + 348868 ], [ ".run", @@ -71698,7 +71720,7 @@ 206174, "abs32", "sec:.run", - 348866 + 348868 ], [ ".run", @@ -72167,7 +72189,7 @@ 206958, "abs32", "sec:.run", - 348906 + 348908 ], [ ".run", @@ -72181,7 +72203,7 @@ 206988, "abs32", "sec:.run", - 348894 + 348896 ], [ ".run", @@ -72265,7 +72287,7 @@ 207356, "abs32", "sec:.run", - 337736 + 337738 ], [ ".run", @@ -72979,7 +73001,7 @@ 209178, "abs32", "sec:.run", - 348931 + 348933 ], [ ".run", @@ -73049,7 +73071,7 @@ 209282, "abs32", "sec:.run", - 348950 + 348952 ], [ ".run", @@ -73147,7 +73169,7 @@ 209472, "abs32", "sec:.run", - 348931 + 348933 ], [ ".run", @@ -73161,7 +73183,7 @@ 209492, "abs32", "sec:.run", - 348842 + 348844 ], [ ".run", @@ -73175,7 +73197,7 @@ 209550, "abs32", "sec:.run", - 348966 + 348968 ], [ ".run", @@ -73210,7 +73232,7 @@ 209612, "abs32", "sec:.run", - 348921 + 348923 ], [ ".run", @@ -73294,7 +73316,7 @@ 213558, "abs32", "sec:.run", - 337800 + 337802 ], [ ".run", @@ -73770,7 +73792,7 @@ 216176, "abs32", "sec:.run", - 232092 + 232168 ], [ ".run", @@ -74197,21 +74219,21 @@ 217388, "abs32", "sec:.run", - 348982 + 348984 ], [ ".run", 217660, "abs32", "sec:.run", - 349238 + 349240 ], [ ".run", 217848, "abs32", "sec:.run", - 349238 + 349240 ], [ ".run", @@ -76738,7 +76760,7 @@ 227692, "abs32", "sec:.run", - 349298 + 349300 ], [ ".run", @@ -78711,22 +78733,22 @@ ".run", 231938, "abs32", - "sec:.bss", - 4362008 + "sec:.run", + 200748 ], [ ".run", 231948, "abs32", "sec:.bss", - 4362040 + 4362008 ], [ ".run", 231958, "abs32", - "sec:.run", - 200748 + "sec:.bss", + 4362040 ], [ ".run", @@ -78737,7189 +78759,7238 @@ ], [ ".run", - 232016, + 231978, "abs32", "sec:.bss", - 4361948 + 4347208 ], [ ".run", - 232028, + 231986, "abs32", "sec:.bss", - 4356530 + 4347240 ], [ ".run", - 232040, + 232016, "abs32", "sec:.bss", - 4356490 + 4362008 ], [ ".run", - 232050, + 232026, "abs32", "sec:.bss", - 4356486 + 4362040 ], [ ".run", - 232056, + 232036, "abs32", "sec:.bss", - 4362008 + 4347208 ], [ ".run", - 232066, + 232042, "abs32", "sec:.bss", - 4362040 + 4347240 ], [ ".run", - 232086, + 232078, "abs32", "sec:.bss", - 4361996 + 4361948 + ], + [ + ".run", + 232090, + "abs32", + "sec:.bss", + 4356530 ], [ ".run", 232102, "abs32", "sec:.bss", - 4362008 + 4356490 ], [ ".run", - 232114, + 232112, "abs32", "sec:.bss", - 4362040 + 4356486 ], [ ".run", - 232126, + 232118, "abs32", "sec:.run", 200748 ], + [ + ".run", + 232128, + "abs32", + "sec:.bss", + 4362008 + ], [ ".run", 232136, "abs32", "sec:.bss", + 4362040 + ], + [ + ".run", + 232150, + "abs32", + "sec:.bss", 4362004 ], [ ".run", - 232158, + 232162, + "abs32", + "sec:.bss", + 4361996 + ], + [ + ".run", + 232190, "abs32", "sec:.run", 336560 ], [ ".run", - 232170, + 232202, "abs32", "sec:.run", 336564 ], [ ".run", - 232180, + 232212, "abs32", "sec:.run", 336568 ], [ ".run", - 232190, + 232222, "abs32", "sec:.run", 336556 ], [ ".run", - 232226, + 232260, "abs32", "sec:.run", 307454 ], [ ".run", - 232242, + 232280, "abs32", "sec:.run", 80964 ], [ ".run", - 232264, + 232298, "abs32", "sec:.bss", 3453500 ], [ ".run", - 232274, + 232316, "abs32", "sec:.bss", 3453496 ], [ ".run", - 232290, + 232332, "abs32", "sec:.bss", 4361948 ], [ ".run", - 232330, + 232362, "abs32", "sec:.bss", 4356530 ], [ ".run", - 232340, + 232372, "abs32", "sec:.bss", 4356486 ], [ ".run", - 232354, + 232386, "abs32", "sec:.bss", 4356486 ], [ ".run", - 232360, + 232392, "abs32", "sec:.bss", 4356522 ], [ ".run", - 232366, + 232398, "abs32", "sec:.bss", 4356490 ], [ ".run", - 232376, + 232404, + "abs32", + "sec:.run", + 200748 + ], + [ + ".run", + 232414, + "abs32", + "sec:.bss", + 4362008 + ], + [ + ".run", + 232422, "abs32", "sec:.bss", 4362040 ], [ ".run", - 232394, + 232436, + "abs32", + "sec:.bss", + 4362004 + ], + [ + ".run", + 232448, "abs32", "sec:.bss", 4361996 ], [ ".run", - 232414, + 232468, "abs32", "sec:.bss", 4361944 ], [ ".run", - 232436, + 232490, "abs32", "sec:.bss", 4361948 ], [ ".run", - 232482, + 232536, "abs32", "sec:.run", 336628 ], [ ".run", - 232488, + 232542, "abs32", "sec:.run", 307593 ], [ ".run", - 232512, + 232566, "abs32", "sec:.run", 336637 ], [ ".run", - 232524, + 232578, "abs32", "sec:.run", 307580 ], [ ".run", - 232546, + 232600, "abs32", "sec:.bss", 4362008 ], [ ".run", - 232564, + 232618, "abs32", "sec:.bss", 4362040 ], [ ".run", - 232582, + 232636, "abs32", "sec:.run", 159100 ], [ ".run", - 232592, + 232646, "abs32", "sec:.bss", 3454614 ], [ ".run", - 232634, + 232688, "abs32", "sec:.bss", 3454618 ], [ ".run", - 232670, + 232724, "abs32", "sec:.run", 51486 ], [ ".run", - 232692, + 232746, "abs32", "sec:.bss", 4347096 ], [ ".run", - 232700, + 232754, "abs32", "sec:.bss", 4347092 ], [ ".run", - 232710, + 232764, "abs32", "sec:.bss", 4347104 ], [ ".run", - 232730, + 232784, "abs32", "sec:.bss", 4347108 ], [ ".run", - 232746, + 232800, "abs32", "sec:.run", - 349278 + 349280 ], [ ".run", - 232764, + 232818, "abs32", "sec:.bss", 4347100 ], [ ".run", - 232782, + 232836, "abs32", "sec:.run", 222016 ], [ ".run", - 232832, + 232886, "abs32", "sec:.bss", 4347646 ], [ ".run", - 232928, + 232982, "abs32", "sec:.bss", 4361888 ], [ ".run", - 232938, + 232992, "abs32", "sec:.bss", 4362044 ], [ ".run", - 232982, + 233036, "abs32", "sec:.bss", 4353372 ], [ ".run", - 232988, + 233042, "abs32", "sec:.run", 50922 ], [ ".run", - 232996, + 233050, "abs32", "sec:.bss", 4361896 ], [ ".run", - 233022, + 233076, "abs32", "sec:.bss", 4361896 ], [ ".run", - 233028, + 233082, "abs32", "sec:.run", 352928 ], [ ".run", - 233052, + 233106, "abs32", "sec:.run", 352940 ], [ ".run", - 233070, + 233124, "abs32", "sec:.bss", 4347646 ], [ ".run", - 233092, + 233146, "abs32", "sec:.bss", 4361896 ], [ ".run", - 233102, + 233156, "abs32", "sec:.run", 352821 ], [ ".run", - 233138, + 233192, "abs32", "sec:.run", 352785 ], [ ".run", - 233144, + 233198, "abs32", "sec:.bss", 4358427 ], [ ".run", - 233166, + 233220, "abs32", "sec:.run", 352801 ], [ ".run", - 233184, + 233238, "abs32", "sec:.bss", 4347646 ], [ ".run", - 233206, + 233260, "abs32", "sec:.bss", 4361900 ], [ ".run", - 233216, + 233270, "abs32", "sec:.bss", 4356552 ], [ ".run", - 233226, + 233280, "abs32", "sec:.bss", 4356542 ], [ ".run", - 233236, + 233290, "abs32", "sec:.bss", 4356556 ], [ ".run", - 233242, + 233296, "abs32", "sec:.bss", 4362044 ], [ ".run", - 233254, + 233308, "abs32", "sec:.bss", 4357656 ], [ ".run", - 233356, + 233410, "abs32", "sec:.run", 352316 ], [ ".run", - 233376, + 233430, "abs32", "sec:.run", 352330 ], [ ".run", - 233418, + 233472, "abs32", "sec:.bss", 4347646 ], [ ".run", - 233440, + 233494, "abs32", "sec:.run", 352821 ], [ ".run", - 233470, + 233524, "abs32", "sec:.run", 352886 ], [ ".run", - 233484, + 233538, "abs32", "sec:.bss", 4347734 ], [ ".run", - 233496, + 233550, "abs32", "sec:.run", 352940 ], [ ".run", - 233514, + 233568, "abs32", "sec:.bss", 4347646 ], [ ".run", - 233536, + 233590, "abs32", "sec:.bss", 4347734 ], [ ".run", - 233558, + 233612, "abs32", "sec:.bss", 4347738 ], [ ".run", - 233568, + 233622, "abs32", "sec:.bss", 4347726 ], [ ".run", - 233598, + 233652, "abs32", "sec:.bss", 4347742 ], [ ".run", - 233670, + 233724, "abs32", "sec:.bss", 4347726 ], [ ".run", - 233676, + 233730, "abs32", "sec:.bss", 4347730 ], [ ".run", - 233698, + 233752, "abs32", "sec:.bss", 4347646 ], [ ".run", - 233720, + 233774, "abs32", "sec:.bss", 4347712 ], [ ".run", - 233728, + 233782, "abs32", "sec:.bss", 4347722 ], [ ".run", - 233750, + 233804, "abs32", "sec:.run", 352561 ], [ ".run", - 233792, + 233846, "abs32", "sec:.bss", 4347646 ], [ ".run", - 233816, + 233870, "abs32", "sec:.bss", 4347734 ], [ ".run", - 233832, + 233886, "abs32", "sec:.bss", 4347726 ], [ ".run", - 233856, + 233910, "abs32", "sec:.bss", 4347706 ], [ ".run", - 233862, + 233916, "abs32", "sec:.bss", 4347674 ], [ ".run", - 233876, + 233930, "abs32", "sec:.bss", 4347714 ], [ ".run", - 233882, + 233936, "abs32", "sec:.bss", 4362044 ], [ ".run", - 233894, + 233948, "abs32", "sec:.bss", 4347734 ], [ ".run", - 233904, + 233958, "abs32", "sec:.run", 352818 ], [ ".run", - 233942, + 233996, "abs32", "sec:.run", 352342 ], [ ".run", - 234042, + 234096, "abs32", "sec:.run", 352962 ], [ ".run", - 234074, + 234128, "abs32", "sec:.run", 352962 ], [ ".run", - 234094, + 234148, "abs32", "sec:.bss", 4347646 ], [ ".run", - 234112, + 234166, "abs32", "sec:.run", 352967 ], [ ".run", - 234134, + 234188, "abs32", "sec:.run", 352967 ], [ ".run", - 234154, + 234208, "abs32", "sec:.bss", 4347646 ], [ ".run", - 234184, + 234238, "abs32", "sec:.bss", 4353393 ], [ ".run", - 234282, + 234336, "abs32", "sec:.bss", 4361896 ], [ ".run", - 234314, + 234368, "abs32", "sec:.bss", 4353372 ], [ ".run", - 234434, + 234488, "abs32", "sec:.bss", 4347646 ], [ ".run", - 234452, + 234506, "abs32", "sec:.bss", 4353372 ], [ ".run", - 234664, + 234718, "abs32", "sec:.bss", 4347646 ], [ ".run", - 234714, + 234768, "abs32", "sec:.bss", 4361896 ], [ ".run", - 234748, + 234802, "abs32", "sec:.run", 352972 ], [ ".run", - 234766, + 234820, "abs32", "sec:.bss", 4347646 ], [ ".run", - 234808, + 234862, "abs32", "sec:.bss", 4347646 ], [ ".run", - 234814, + 234868, "abs32", "sec:.bss", 4347674 ], [ ".run", - 234848, + 234902, "abs32", "sec:.bss", 4347658 ], [ ".run", - 234912, + 234966, "abs32", "sec:.run", 352614 ], [ ".run", - 234996, + 235050, "abs32", "sec:.bss", 4361944 ], [ ".run", - 235016, + 235070, "abs32", "sec:.run", - 349262 + 349264 ], [ ".run", - 235058, + 235112, "abs32", "sec:.bss", 4361924 ], [ ".run", - 235286, + 235340, "abs32", "sec:.run", 352684 ], [ ".run", - 235304, + 235358, "abs32", "sec:.bss", 4347646 ], [ ".run", - 235322, + 235376, "abs32", "sec:.run", 352626 ], [ ".run", - 235340, + 235394, "abs32", "sec:.bss", 4347646 ], [ ".run", - 235378, + 235432, "abs32", "sec:.bss", 4347646 ], [ ".run", - 235384, + 235438, "abs32", "sec:.bss", 4347674 ], [ ".run", - 235420, + 235474, "abs32", "sec:.bss", 4347658 ], [ ".run", - 235504, + 235558, "abs32", "sec:.run", 352601 ], [ ".run", - 235576, + 235630, "abs32", "sec:.bss", 4361944 ], [ ".run", - 235586, + 235640, "abs32", "sec:.run", 352162 ], [ ".run", - 235600, + 235654, "abs32", "sec:.bss", 4361924 ], [ ".run", - 235610, + 235664, "abs32", "sec:.bss", 4361944 ], [ ".run", - 235742, + 235796, "abs32", "sec:.bss", 4347646 ], [ ".run", - 235818, + 235872, "abs32", "sec:.run", 352127 ], [ ".run", - 235828, + 235882, "abs32", "sec:.run", 352564 ], [ ".run", - 235894, + 235948, "abs32", "sec:.bss", 4347646 ], [ ".run", - 235912, + 235966, "abs32", "sec:.bss", 4347674 ], [ ".run", - 235934, + 235988, "abs32", "sec:.bss", 4347658 ], [ ".run", - 236026, + 236080, "abs32", "sec:.bss", 4356490 ], [ ".run", - 236060, + 236114, "abs32", "sec:.bss", 4356526 ], [ ".run", - 236088, + 236142, "abs32", "sec:.bss", 4356522 ], [ ".run", - 236112, + 236166, "abs32", "sec:.bss", 4356486 ], [ ".run", - 236122, + 236176, "abs32", "sec:.bss", 4356530 ], [ ".run", - 236142, + 236196, "abs32", "sec:.run", 352217 ], [ ".run", - 236226, + 236280, "abs32", "sec:.bss", 4347646 ], [ ".run", - 236278, + 236332, "abs32", "sec:.bss", 4347646 ], [ ".run", - 236346, + 236400, "abs32", "sec:.bss", 4356456 ], [ ".run", - 236358, + 236412, "abs32", "sec:.run", 352589 ], [ ".run", - 236418, + 236472, "abs32", "sec:.bss", 4356486 ], [ ".run", - 236442, + 236496, "abs32", "sec:.bss", 4356530 ], [ ".run", - 236452, + 236506, "abs32", "sec:.bss", 4356502 ], [ ".run", - 236458, + 236512, "abs32", "sec:.bss", 4356474 ], [ ".run", - 236492, + 236546, "abs32", "sec:.bss", 4356478 ], [ ".run", - 236508, + 236562, "abs32", "sec:.bss", 4356482 ], [ ".run", - 236540, + 236594, "abs32", "sec:.run", 352263 ], [ ".run", - 236686, + 236740, "abs32", "sec:.run", 223166 ], [ ".run", - 236716, + 236770, "abs32", "sec:.bss", 4347646 ], [ ".run", - 236730, + 236784, "abs32", "sec:.run", 352765 ], [ ".run", - 236748, + 236802, "abs32", "sec:.bss", 4347646 ], [ ".run", - 236768, + 236822, "abs32", "sec:.run", 222016 ], [ ".run", - 236800, + 236854, "abs32", "sec:.run", 352769 ], [ ".run", - 236818, + 236872, "abs32", "sec:.bss", 4347646 ], [ ".run", - 236876, + 236930, "abs32", "sec:.run", 53846 ], [ ".run", - 236882, + 236936, "abs32", "sec:.run", 352835 ], [ ".run", - 236888, + 236942, "abs32", "sec:.bss", 1584444 ], [ ".run", - 236904, + 236958, "abs32", "sec:.bss", 4361884 ], [ ".run", - 236920, + 236974, "abs32", "sec:.run", 352845 ], [ ".run", - 236944, + 236998, "abs32", "sec:.bss", 4347646 ], [ ".run", - 236958, + 237012, "abs32", "sec:.run", 352866 ], [ ".run", - 236976, + 237030, "abs32", "sec:.bss", 4347646 ], [ ".run", - 236994, + 237048, "abs32", "sec:.run", 352818 ], [ ".run", - 237038, + 237092, "abs32", "sec:.bss", 1584460 ], [ ".run", - 237060, + 237114, "abs32", "sec:.bss", 1584504 ], [ ".run", - 237072, + 237126, "abs32", "sec:.bss", 1584504 ], [ ".run", - 237082, + 237136, "abs32", "sec:.bss", 1584512 ], [ ".run", - 237092, + 237146, "abs32", "sec:.bss", 1584504 ], [ ".run", - 237098, + 237152, "abs32", "sec:.bss", 1584452 ], [ ".run", - 237116, + 237170, "abs32", "sec:.run", 352336 ], [ ".run", - 237126, + 237180, "abs32", "sec:.run", 352886 ], [ ".run", - 237154, + 237208, "abs32", "sec:.run", 352336 ], [ ".run", - 237162, + 237216, "abs32", "sec:.run", 352894 ], [ ".run", - 237200, + 237254, "abs32", "sec:.bss", 1584452 ], [ ".run", - 237218, + 237272, "abs32", "sec:.run", 352336 ], [ ".run", - 237224, + 237278, "abs32", "sec:.run", 352900 ], [ ".run", - 237244, + 237298, "abs32", "sec:.bss", 1584452 ], [ ".run", - 237256, + 237310, "abs32", "sec:.run", 352331 ], [ ".run", - 237264, + 237318, "abs32", "sec:.run", 352905 ], [ ".run", - 237284, + 237338, "abs32", "sec:.bss", 1584452 ], [ ".run", - 237316, + 237370, "abs32", "sec:.run", 352336 ], [ ".run", - 237324, + 237378, "abs32", "sec:.run", 352912 ], [ ".run", - 237350, + 237404, "abs32", "sec:.bss", 1584460 ], [ ".run", - 237362, + 237416, "abs32", "sec:.bss", 1584468 ], [ ".run", - 237546, + 237600, "abs32", "sec:.run", 352346 ], [ ".run", - 237564, + 237618, "abs32", "sec:.run", 352350 ], [ ".run", - 237594, + 237648, "abs32", "sec:.run", 352341 ], [ ".run", - 237600, + 237654, "abs32", "sec:.run", - 349238 + 349240 ], [ ".run", - 237612, + 237666, "abs32", "sec:.run", 222016 ], [ ".run", - 237630, + 237684, "abs32", "sec:.bss", 1584476 ], [ ".run", - 237650, + 237704, "abs32", "sec:.bss", 1584480 ], [ ".run", - 237660, + 237714, "abs32", "sec:.bss", 1584472 ], [ ".run", - 237702, + 237756, "abs32", "sec:.bss", 4347646 ], [ ".run", - 237814, + 237868, "abs32", "sec:.bss", 1584452 ], [ ".run", - 237918, + 237972, "abs32", "sec:.run", 352469 ], [ ".run", - 237924, + 237978, "abs32", "sec:.bss", 1584520 ], [ ".run", - 237956, + 238010, "abs32", "sec:.bss", 4347646 ], [ ".run", - 237974, + 238028, "abs32", "sec:.run", 352818 ], [ ".run", - 238014, + 238068, "abs32", "sec:.run", 107236 ], [ ".run", - 238024, + 238078, "abs32", "sec:.run", 159100 ], [ ".run", - 238036, + 238090, "abs32", "sec:.bss", 3454618 ], [ ".run", - 238080, + 238134, "abs32", "sec:.bss", 3454614 ], [ ".run", - 238152, + 238206, "abs32", "sec:.bss", 4347646 ], [ ".run", - 238174, + 238228, "abs32", "sec:.bss", 4347674 ], [ ".run", - 238208, + 238262, "abs32", "sec:.bss", 4347658 ], [ ".run", - 238296, + 238350, "abs32", "sec:.run", 307604 ], [ ".run", - 238308, + 238362, "abs32", "sec:.run", 352773 ], [ ".run", - 238332, + 238386, "abs32", "sec:.run", 352773 ], [ ".run", - 238358, + 238412, "abs32", "sec:.bss", 4347646 ], [ ".run", - 238422, + 238476, "abs32", "sec:.run", 222016 ], [ ".run", - 238434, + 238488, "abs32", "sec:.run", - 349250 + 349252 ], [ ".run", - 238472, + 238526, "abs32", "sec:.bss", 4347646 ], [ ".run", - 238562, + 238616, "abs32", "sec:.bss", 4347646 ], [ ".run", - 238654, + 238708, "abs32", "sec:.bss", 4361924 ], [ ".run", - 238716, + 238770, "abs32", "sec:.run", 352144 ], [ ".run", - 238760, + 238814, "abs32", "sec:.bss", 4347108 ], [ ".run", - 238772, + 238826, "abs32", "sec:.run", - 349278 + 349280 ], [ ".run", - 238792, + 238846, "abs32", "sec:.bss", 4347100 ], [ ".run", - 238810, + 238864, "abs32", "sec:.run", 222016 ], [ ".run", - 238862, + 238916, "abs32", "sec:.bss", 4358436 ], [ ".run", - 238874, + 238928, "abs32", "sec:.bss", 4357664 ], [ ".run", - 238888, + 238942, "abs32", "sec:.bss", 4361900 ], [ ".run", - 239004, + 239058, "abs32", "sec:.bss", 4347646 ], [ ".run", - 239036, + 239090, "abs32", "sec:.bss", 4361900 ], [ ".run", - 239050, + 239104, "abs32", "sec:.bss", 4357848 ], [ ".run", - 239106, + 239160, "abs32", "sec:.bss", 4347646 ], [ ".run", - 239146, + 239200, "abs32", "sec:.bss", 4361900 ], [ ".run", - 239202, + 239256, "abs32", "sec:.bss", 4361900 ], [ ".run", - 239214, + 239268, "abs32", "sec:.bss", 4357848 ], [ ".run", - 239242, + 239296, "abs32", "sec:.bss", 4347096 ], [ ".run", - 239250, + 239304, "abs32", "sec:.bss", 4347092 ], [ ".run", - 239260, + 239314, "abs32", "sec:.bss", 4347104 ], [ ".run", - 239296, + 239350, "abs32", "sec:.run", 51118 ], [ ".run", - 239312, + 239366, "abs32", "sec:.run", 307604 ], [ ".run", - 239460, + 239514, "abs32", "sec:.bss", 4347646 ], [ ".run", - 239520, + 239574, "abs32", "sec:.bss", 4347646 ], [ ".run", - 239676, + 239730, "abs32", "sec:.bss", 4356448 ], [ ".run", - 239726, + 239780, "abs32", "sec:.run", 352765 ], [ ".run", - 239744, + 239798, "abs32", "sec:.bss", 4347646 ], [ ".run", - 239926, + 239980, "abs32", "sec:.bss", 4347646 ], [ ".run", - 239940, + 239994, "abs32", "sec:.run", 352769 ], [ ".run", - 239958, + 240012, "abs32", "sec:.bss", 4347646 ], [ ".run", - 240138, + 240192, "abs32", "sec:.bss", 4347646 ], [ ".run", - 240160, + 240214, "abs32", "sec:.run", 307670 ], [ ".run", - 240170, + 240224, "abs32", "sec:.bss", 4356444 ], [ ".run", - 240200, + 240254, "abs32", "sec:.run", 352761 ], [ ".run", - 240218, + 240272, "abs32", "sec:.bss", 4347646 ], [ ".run", - 240388, + 240442, "abs32", "sec:.run", 352990 ], [ ".run", - 240414, + 240468, "abs32", "sec:.run", 352990 ], [ ".run", - 240442, + 240496, "abs32", "sec:.bss", 4347646 ], [ ".run", - 240496, + 240550, "abs32", "sec:.bss", 4347706 ], [ ".run", - 240502, + 240556, "abs32", "sec:.bss", 4347674 ], [ ".run", - 240562, + 240616, "abs32", "sec:.bss", 4347646 ], [ ".run", - 240624, + 240678, "abs32", "sec:.bss", 4347706 ], [ ".run", - 240640, + 240694, "abs32", "sec:.bss", 1584448 ], [ ".run", - 240658, + 240712, "abs32", "sec:.run", 352821 ], [ ".run", - 240682, + 240736, "abs32", "sec:.run", 352983 ], [ ".run", - 240700, + 240754, "abs32", "sec:.bss", 4347646 ], [ ".run", - 240722, + 240776, "abs32", "sec:.run", 352818 ], [ ".run", - 240778, + 240832, "abs32", "sec:.bss", 4361924 ], [ ".run", - 240794, + 240848, "abs32", "sec:.bss", 4361924 ], [ ".run", - 240870, + 240924, "abs32", "sec:.run", 352300 ], [ ".run", - 240890, + 240944, "abs32", "sec:.bss", 4347646 ], [ ".run", - 240908, + 240962, "abs32", "sec:.run", 352818 ], [ ".run", - 240938, + 240992, "abs32", "sec:.bss", 1584512 ], [ ".run", - 240944, + 240998, "abs32", "sec:.bss", 1584508 ], [ ".run", - 240954, + 241008, "abs32", "sec:.bss", 1584452 ], [ ".run", - 240972, + 241026, "abs32", "sec:.run", 352336 ], [ ".run", - 240978, + 241032, "abs32", "sec:.run", 352886 ], [ ".run", - 241000, + 241054, "abs32", "sec:.run", 352336 ], [ ".run", - 241038, + 241092, "abs32", "sec:.bss", 4361896 ], [ ".run", - 241082, + 241136, "abs32", "sec:.bss", 4361900 ], [ ".run", - 241128, + 241182, "abs32", "sec:.bss", 4356482 ], [ ".run", - 241138, + 241192, "abs32", "sec:.run", 352263 ], [ ".run", - 241152, + 241206, "abs32", "sec:.run", 352331 ], [ ".run", - 241158, + 241212, "abs32", "sec:.run", 352886 ], [ ".run", - 241180, + 241234, "abs32", "sec:.run", 352339 ], [ ".run", - 241196, + 241250, "abs32", "sec:.run", 352285 ], [ ".run", - 241218, + 241272, "abs32", "sec:.bss", 4347646 ], [ ".run", - 241254, + 241308, "abs32", "sec:.bss", 1584452 ], [ ".run", - 241266, + 241320, "abs32", "sec:.bss", 1584452 ], [ ".run", - 241344, + 241398, "abs32", "sec:.bss", 4347248 ], [ ".run", - 241350, + 241404, "abs32", "sec:.run", 352543 ], [ ".run", - 241452, + 241506, "abs32", "sec:.bss", 4347247 ], [ ".run", - 241468, + 241522, "abs32", "sec:.bss", 4347248 ], [ ".run", - 241508, + 241562, "abs32", "sec:.run", 352190 ], [ ".run", - 241570, + 241624, "abs32", "sec:.run", 352626 ], [ ".run", - 241582, + 241636, "abs32", "sec:.run", 352644 ], [ ".run", - 241626, + 241680, "abs32", "sec:.run", 352271 ], [ ".run", - 241638, + 241692, "abs32", "sec:.run", 352277 ], [ ".run", - 241692, + 241746, "abs32", "sec:.run", 352278 ], [ ".run", - 241734, + 241788, "abs32", "sec:.bss", 4347646 ], [ ".run", - 241760, + 241814, "abs32", "sec:.bss", 4361900 ], [ ".run", - 241768, + 241822, "abs32", "sec:.bss", 4357848 ], [ ".run", - 241814, + 241868, "abs32", "sec:.run", 352331 ], [ ".run", - 241822, + 241876, "abs32", "sec:.run", 352912 ], [ ".run", - 241854, + 241908, "abs32", "sec:.bss", 1584460 ], [ ".run", - 241860, + 241914, "abs32", "sec:.bss", 1584468 ], [ ".run", - 241874, + 241928, "abs32", "sec:.run", 352339 ], [ ".run", - 241880, + 241934, "abs32", "sec:.run", 352900 ], [ ".run", - 241898, + 241952, "abs32", "sec:.run", 352339 ], [ ".run", - 241908, + 241962, "abs32", "sec:.run", 352341 ], [ ".run", - 241914, + 241968, "abs32", "sec:.run", 352351 ], [ ".run", - 241922, + 241976, "abs32", "sec:.run", - 349238 + 349240 ], [ ".run", - 241932, + 241986, "abs32", "sec:.run", 222016 ], [ ".run", - 241946, + 242000, "abs32", "sec:.bss", 1584476 ], [ ".run", - 241964, + 242018, "abs32", "sec:.bss", 1584480 ], [ ".run", - 241974, + 242028, "abs32", "sec:.bss", 1584472 ], [ ".run", - 242078, + 242132, "abs32", "sec:.bss", 4347646 ], [ ".run", - 242094, + 242148, "abs32", "sec:.bss", 4347674 ], [ ".run", - 242110, + 242164, "abs32", "sec:.bss", 4356518 ], [ ".run", - 242148, + 242202, "abs32", "sec:.bss", 4347646 ], [ ".run", - 242254, + 242308, "abs32", "sec:.bss", 4347646 ], [ ".run", - 242268, + 242322, "abs32", "sec:.run", 352744 ], [ ".run", - 242286, + 242340, "abs32", "sec:.bss", 4347646 ], [ ".run", - 242314, + 242368, "abs32", "sec:.run", 352200 ], [ ".run", - 242324, + 242378, "abs32", "sec:.bss", 1584452 ], [ ".run", - 242342, + 242396, "abs32", "sec:.run", 352336 ], [ ".run", - 242348, + 242402, "abs32", "sec:.run", 352886 ], [ ".run", - 242440, + 242494, "abs32", "sec:.run", 352208 ], [ ".run", - 242470, + 242524, "abs32", "sec:.run", 352358 ], [ ".run", - 242480, + 242534, "abs32", "sec:.run", 352369 ], [ ".run", - 242490, + 242544, "abs32", "sec:.run", 352342 ], [ ".run", - 242498, + 242552, "abs32", "sec:.run", 352912 ], [ ".run", - 242530, + 242584, "abs32", "sec:.bss", 1584460 ], [ ".run", - 242536, + 242590, "abs32", "sec:.bss", 1584468 ], [ ".run", - 242564, + 242618, "abs32", "sec:.bss", 3454618 ], [ ".run", - 242582, + 242636, "abs32", "sec:.run", 352665 ], [ ".run", - 242622, + 242676, "abs32", "sec:.bss", 3454614 ], [ ".run", - 242646, + 242700, "abs32", "sec:.run", 51486 ], [ ".run", - 242804, + 242858, "abs32", "sec:.run", 352179 ], [ ".run", - 242858, + 242912, "abs32", "sec:.run", 352821 ], [ ".run", - 242882, + 242936, "abs32", "sec:.run", 352825 ], [ ".run", - 242900, + 242954, "abs32", "sec:.bss", 4347646 ], [ ".run", - 242926, + 242980, "abs32", "sec:.bss", 1584488 ], [ ".run", - 242932, + 242986, "abs32", "sec:.bss", 1584484 ], [ ".run", - 242992, + 243046, "abs32", "sec:.run", 352919 ], [ ".run", - 243028, + 243082, "abs32", "sec:.run", 352331 ], [ ".run", - 243038, + 243092, "abs32", "sec:.run", 352886 ], [ ".run", - 243070, + 243124, "abs32", "sec:.run", 352336 ], [ ".run", - 243130, + 243184, "abs32", "sec:.bss", 4347646 ], [ ".run", - 243144, + 243198, "abs32", "sec:.run", 352761 ], [ ".run", - 243162, + 243216, "abs32", "sec:.bss", 4347646 ], [ ".run", - 243182, + 243236, "abs32", "sec:.bss", 4356482 ], [ ".run", - 243220, + 243274, "abs32", "sec:.bss", 4361996 ], [ ".run", - 243230, + 243284, "abs32", "sec:.run", 352233 ], [ ".run", - 243250, + 243304, "abs32", "sec:.bss", 4347646 ], [ ".run", - 243282, + 243336, "abs32", "sec:.run", 352038 ], [ ".run", - 243292, + 243346, "abs32", "sec:.bss", 4347714 ], [ ".run", - 243298, + 243352, "abs32", "sec:.run", 352568 ], [ ".run", - 243304, + 243358, "abs32", "sec:.bss", 4347706 ], [ ".run", - 243312, + 243366, "abs32", "sec:.bss", 4362044 ], [ ".run", - 243328, + 243382, "abs32", "sec:.run", 352331 ], [ ".run", - 243334, + 243388, "abs32", "sec:.run", 352900 ], [ ".run", - 243358, + 243412, "abs32", "sec:.bss", 1584448 ], [ ".run", - 243368, + 243422, "abs32", "sec:.bss", 1584452 ], [ ".run", - 243386, + 243440, "abs32", "sec:.run", 352331 ], [ ".run", - 243392, + 243446, "abs32", "sec:.run", 352900 ], [ ".run", - 243412, + 243466, "abs32", "sec:.bss", 1584448 ], [ ".run", - 243424, + 243478, "abs32", "sec:.bss", 1584448 ], [ ".run", - 243434, + 243488, "abs32", "sec:.run", 352342 ], [ ".run", - 243456, + 243510, "abs32", "sec:.run", 352263 ], [ ".run", - 243498, + 243552, "abs32", "sec:.bss", 4356502 ], [ ".run", - 243608, + 243662, "abs32", "sec:.bss", 4347646 ], [ ".run", - 243622, + 243676, "abs32", "sec:.run", 352761 ], [ ".run", - 243640, + 243694, "abs32", "sec:.bss", 4347646 ], [ ".run", - 243658, + 243712, "abs32", "sec:.bss", 4356502 ], [ ".run", - 243666, + 243720, "abs32", "sec:.bss", 4356482 ], [ ".run", - 243702, + 243756, "abs32", "sec:.run", 352744 ], [ ".run", - 243720, + 243774, "abs32", "sec:.bss", 4347646 ], [ ".run", - 243748, + 243802, "abs32", "sec:.run", 352697 ], [ ".run", - 243772, + 243826, "abs32", "sec:.bss", 4347646 ], [ ".run", - 243786, + 243840, "abs32", "sec:.run", 352713 ], [ ".run", - 243804, + 243858, "abs32", "sec:.bss", 4347646 ], [ ".run", - 243822, + 243876, "abs32", "sec:.run", 352728 ], [ ".run", - 243840, + 243894, "abs32", "sec:.bss", 4347646 ], [ ".run", - 243868, + 243922, "abs32", "sec:.run", 352377 ], [ ".run", - 243878, + 243932, "abs32", "sec:.run", 352250 ], [ ".run", - 243898, + 243952, "abs32", "sec:.bss", 4347646 ], [ ".run", - 243924, + 243978, "abs32", "sec:.bss", 4356506 ], [ ".run", - 243944, + 243998, "abs32", "sec:.bss", 4356482 ], [ ".run", - 243958, + 244012, "abs32", "sec:.bss", 4356478 ], [ ".run", - 243982, + 244036, "abs32", "sec:.run", 352331 ], [ ".run", - 243988, + 244042, "abs32", "sec:.run", 352886 ], [ ".run", - 244014, + 244068, "abs32", "sec:.run", 352341 ], [ ".run", - 244022, + 244076, "abs32", "sec:.run", 352912 ], [ ".run", - 244054, + 244108, "abs32", "sec:.bss", 1584460 ], [ ".run", - 244060, + 244114, "abs32", "sec:.bss", 1584468 ], [ ".run", - 244074, + 244128, "abs32", "sec:.run", 352341 ], [ ".run", - 244158, + 244212, "abs32", "sec:.run", 352341 ], [ ".run", - 244168, + 244222, "abs32", "sec:.run", 352765 ], [ ".run", - 244186, + 244240, "abs32", "sec:.bss", 4347646 ], [ ".run", - 244256, + 244310, "abs32", "sec:.run", 352342 ], [ ".run", - 244266, + 244320, "abs32", "sec:.run", 352391 ], [ ".run", - 244276, + 244330, "abs32", "sec:.run", 352404 ], [ ".run", - 244286, + 244340, "abs32", "sec:.run", 352761 ], [ ".run", - 244310, + 244364, "abs32", "sec:.bss", 4347646 ], [ ".run", - 244414, + 244468, "abs32", "sec:.run", 352919 ], [ ".run", - 244460, + 244514, "abs32", "sec:.bss", 4347248 ], [ ".run", - 244466, + 244520, "abs32", "sec:.run", 352490 ], [ ".run", - 244494, + 244548, "abs32", "sec:.run", 352765 ], [ ".run", - 244518, + 244572, "abs32", "sec:.bss", 4347646 ], [ ".run", - 244638, + 244692, "abs32", "sec:.bss", 4347248 ], [ ".run", - 244644, + 244698, "abs32", "sec:.run", 352498 ], [ ".run", - 244662, + 244716, "abs32", "sec:.run", 352419 ], [ ".run", - 244672, + 244726, "abs32", "sec:.run", 352483 ], [ ".run", - 244682, + 244736, "abs32", "sec:.run", 352088 ], [ ".run", - 244692, + 244746, "abs32", "sec:.run", 352456 ], [ ".run", - 244702, + 244756, "abs32", "sec:.run", 352443 ], [ ".run", - 244716, + 244770, "abs32", "sec:.bss", 4347248 ], [ ".run", - 244722, + 244776, "abs32", "sec:.run", 352553 ], [ ".run", - 244740, + 244794, "abs32", "sec:.run", 352431 ], [ ".run", - 244794, + 244848, "abs32", "sec:.bss", 4347248 ], [ ".run", - 244800, + 244854, "abs32", "sec:.run", 352533 ], [ ".run", - 244822, + 244876, "abs32", "sec:.bss", 4347248 ], [ ".run", - 244828, + 244882, "abs32", "sec:.run", 352527 ], [ ".run", - 244850, + 244904, "abs32", "sec:.bss", 4347248 ], [ ".run", - 244856, + 244910, "abs32", "sec:.run", 352516 ], [ ".run", - 244878, + 244932, "abs32", "sec:.bss", 4347248 ], [ ".run", - 244884, + 244938, "abs32", "sec:.run", 352507 ], [ ".run", - 244914, + 244970, "abs32", "sec:.run", 189762 ], [ ".run", - 244922, + 244978, "abs32", "sec:.run", 307688 ], [ ".run", - 244958, + 245014, "abs32", "sec:.run", - 244900 + 244956 ], [ ".run", - 244968, + 245024, "abs32", "sec:.run", 307688 ], [ ".run", - 245102, + 245158, "abs32", "sec:.bss", 138587648 ], [ ".run", - 245110, + 245166, "abs32", "sec:.run", - 349306 + 349308 ], [ ".run", - 245116, + 245172, "abs32", "sec:.run", - 349308 + 349310 ], [ ".run", - 245132, + 245188, "abs32", "sec:.run", - 267312 + 267368 ], [ ".run", - 245172, + 245228, "abs32", "sec:.run", - 267354 + 267410 ], [ ".run", - 245216, + 245272, "abs32", "sec:.bss", 4362160 ], [ ".run", - 245224, + 245280, "abs32", "sec:.run", - 267326 + 267382 ], [ ".run", - 245240, + 245296, "abs32", "sec:.bss", 4362160 ], [ ".run", - 245246, + 245302, "abs32", "sec:.run", - 349321 + 349323 ], [ ".run", - 245264, + 245320, "abs32", "sec:.bss", 4362177 ], [ ".run", - 245276, + 245332, "abs32", "sec:.run", - 267354 + 267410 ], [ ".run", - 245294, + 245350, "abs32", "sec:.run", - 349306 + 349308 ], [ ".run", - 245300, + 245356, "abs32", "sec:.run", - 349339 + 349341 ], [ ".run", - 245400, + 245456, "abs32", "sec:.run", - 349308 + 349310 ], [ ".run", - 245436, + 245492, "abs32", "sec:.bss", 138587648 ], [ ".run", - 245442, + 245498, "abs32", "sec:.run", - 349306 + 349308 ], [ ".run", - 245458, + 245514, "abs32", "sec:.run", - 267312 + 267368 ], [ ".run", - 245496, + 245552, "abs32", "sec:.run", - 267354 + 267410 ], [ ".run", - 245526, + 245582, "abs32", "sec:.run", - 349339 + 349341 ], [ ".run", - 245562, + 245618, "abs32", "sec:.bss", 138587648 ], [ ".run", - 245568, + 245624, "abs32", "sec:.run", - 349353 + 349355 ], [ ".run", - 245580, + 245636, "abs32", "sec:.run", - 267312 + 267368 ], [ ".run", - 245608, + 245664, "abs32", "sec:.run", 307740 ], [ ".run", - 245714, + 245770, "abs32", "sec:.run", - 267354 + 267410 ], [ ".run", - 245740, + 245796, "abs32", "sec:.bss", 4362160 ], [ ".run", - 245748, + 245804, "abs32", "sec:.run", - 267326 + 267382 ], [ ".run", - 245766, + 245822, "abs32", "sec:.bss", 4362160 ], [ ".run", - 245772, + 245828, "abs32", "sec:.run", - 349321 + 349323 ], [ ".run", - 245792, + 245848, "abs32", "sec:.bss", 4362177 ], [ ".run", - 245802, + 245858, "abs32", "sec:.run", - 267354 + 267410 ], [ ".run", - 245832, + 245888, "abs32", "sec:.run", - 267340 + 267396 ], [ ".run", - 245878, + 245934, "abs32", "sec:.run", - 267354 + 267410 ], [ ".run", - 245930, + 245986, "abs32", "sec:.run", - 267354 + 267410 ], [ ".run", - 246036, + 246092, "abs32", "sec:.run", - 267354 + 267410 ], [ ".run", - 246070, + 246126, "abs32", "sec:.run", - 267354 + 267410 ], [ ".run", - 246106, + 246162, "abs32", "sec:.bss", 138587648 ], [ ".run", - 246112, + 246168, "abs32", "sec:.run", - 349306 + 349308 ], [ ".run", - 246124, + 246180, "abs32", "sec:.run", - 267312 + 267368 ], [ ".run", - 246172, + 246228, "abs32", "sec:.bss", 4362160 ], [ ".run", - 246180, + 246236, "abs32", "sec:.run", - 267326 + 267382 ], [ ".run", - 246204, + 246260, "abs32", "sec:.bss", 4362160 ], [ ".run", - 246234, + 246290, "abs32", "sec:.bss", 4362672 ], [ ".run", - 246334, + 246390, "abs32", "sec:.run", - 267354 + 267410 ], [ ".run", - 246374, + 246430, "abs32", "sec:.run", 307696 ], [ ".run", - 246384, + 246440, "abs32", "sec:.run", 307692 ], [ ".run", - 246452, + 246508, "abs32", "sec:.run", 307736 ], [ ".run", - 246462, + 246518, "abs32", "sec:.run", 307736 ], [ ".run", - 246506, + 246562, "abs32", "sec:.run", 307704 ], [ ".run", - 246556, + 246612, "abs32", "sec:.run", 307700 ], [ ".run", - 246588, + 246644, "abs32", "sec:.run", 189682 ], [ ".run", - 246610, + 246666, "abs32", "sec:.run", 307700 ], [ ".run", - 246646, + 246702, "abs32", "sec:.run", 189682 ], [ ".run", - 246682, + 246738, "abs32", "sec:.run", 189682 ], [ ".run", - 246688, + 246744, "abs32", "sec:.run", 307692 ], [ ".run", - 246754, + 246810, "abs32", "sec:.run", 307736 ], [ ".run", - 246788, + 246844, "abs32", "sec:.run", 189682 ], [ ".run", - 246794, + 246850, "abs32", "sec:.run", 307696 ], [ ".run", - 246804, + 246860, "abs32", "sec:.run", 307692 ], [ ".run", - 246840, + 246896, "abs32", "sec:.run", - 267312 + 267368 ], [ ".run", - 246868, + 246924, "abs32", "sec:.run", 190486 ], [ ".run", - 246896, + 246952, "abs32", "sec:.run", - 267326 + 267382 ], [ ".run", - 246924, + 246980, "abs32", "sec:.run", 190486 ], [ ".run", - 246952, + 247008, "abs32", "sec:.run", - 267340 + 267396 ], [ ".run", - 246980, + 247036, "abs32", "sec:.run", 190486 ], [ ".run", - 247000, + 247056, "abs32", "sec:.run", - 267354 + 267410 ], [ ".run", - 247026, + 247082, "abs32", "sec:.run", 190486 ], [ ".run", - 247694, + 247750, "abs32", "sec:.run", 79066 ], [ ".run", - 247720, + 247776, "abs32", "sec:.run", - 250740 + 250796 ], [ ".run", - 247784, + 247840, "abs32", "sec:.run", - 250872 + 250928 ], [ ".run", - 247824, + 247880, "abs32", "sec:.run", 79066 ], [ ".run", - 247944, + 248000, "abs32", "sec:.run", - 251480 + 251536 ], [ ".run", - 248670, + 248726, "abs32", "sec:.run", - 251916 + 251972 ], [ ".run", - 248698, + 248754, "abs32", "sec:.run", - 251916 + 251972 ], [ ".run", - 248716, + 248772, "abs32", "sec:.run", - 251318 + 251374 ], [ ".run", - 248882, + 248938, "abs32", "sec:.run", - 251318 + 251374 ], [ ".run", - 248928, + 248984, "abs32", "sec:.run", - 251480 + 251536 ], [ ".run", - 248948, + 249004, "abs32", "sec:.run", - 252564 + 252620 ], [ ".run", - 249062, + 249118, "abs32", "sec:.run", - 349404 + 349406 ], [ ".run", - 249172, + 249228, "abs32", "sec:.run", - 349560 + 349562 ], [ ".run", - 249206, + 249262, "abs32", "sec:.run", - 349560 + 349562 ], [ ".run", - 249540, + 249596, "abs32", "sec:.run", - 349356 + 349358 ], [ ".run", - 249618, + 249674, "abs32", "sec:.run", - 349388 + 349390 ], [ ".run", - 250186, + 250242, "abs32", "sec:.run", - 349404 + 349406 ], [ ".run", - 250314, + 250370, "abs32", "sec:.run", - 349560 + 349562 ], [ ".run", - 250392, + 250448, "abs32", "sec:.run", - 349560 + 349562 ], [ ".run", - 250448, + 250504, "abs32", "sec:.run", - 349560 + 349562 ], [ ".run", - 250564, + 250620, "abs32", "sec:.run", - 349356 + 349358 ], [ ".run", - 250652, + 250708, "abs32", "sec:.run", - 349388 + 349390 ], [ ".run", - 250808, + 250864, "abs32", "sec:.run", - 349560 + 349562 ], [ ".run", - 250900, + 250956, "abs32", "sec:.run", - 349560 + 349562 ], [ ".run", - 251502, + 251558, "abs32", "sec:.run", - 349560 + 349562 ], [ ".run", - 252582, + 252638, "abs32", "sec:.run", - 349560 + 349562 ], [ ".run", - 252758, + 252814, "abs32", "sec:.run", - 350718 + 350720 ], [ ".run", - 253070, + 253126, "abs32", "sec:.run", - 350728 + 350730 ], [ ".run", - 253714, + 253770, "abs32", "sec:.run", - 350728 + 350730 ], [ ".run", - 253722, + 253778, "abs32", "sec:.run", - 350728 + 350730 ], [ ".run", - 253742, + 253798, "abs32", "sec:.run", - 350740 + 350742 ], [ ".run", - 253808, + 253864, "abs32", "sec:.run", - 350728 + 350730 ], [ ".run", - 254036, + 254092, "abs32", "sec:.run", - 350728 + 350730 ], [ ".run", - 254208, + 254264, "abs32", "sec:.run", - 350723 + 350725 ], [ ".run", - 254520, + 254576, "abs32", "sec:.run", - 350723 + 350725 ], [ ".run", - 254696, + 254752, "abs32", "sec:.run", 116760 ], [ ".run", - 255332, + 255388, "abs32", "sec:.run", - 350728 + 350730 ], [ ".run", - 255372, + 255428, "abs32", "sec:.run", 120738 ], [ ".run", - 255412, + 255468, "abs32", "sec:.run", - 350728 + 350730 ], [ ".run", - 255452, + 255508, "abs32", "sec:.run", 120738 ], [ ".run", - 255536, + 255592, "abs32", "sec:.run", 120738 ], [ ".run", - 256328, + 256384, "abs32", "sec:.run", - 350728 + 350730 ], [ ".run", - 256424, + 256480, "abs32", "sec:.run", 307756 ], [ ".run", - 256482, + 256538, "abs32", "sec:.run", 307748 ], [ ".run", - 256794, + 256850, "abs32", "sec:.run", 307748 ], [ ".run", - 256900, + 256956, "abs32", "sec:.run", 307748 ], [ ".run", - 257390, + 257446, "abs32", "sec:.bss", 4363188 ], [ ".run", - 257412, + 257468, "abs32", "sec:.bss", 4363268 ], [ ".run", - 257434, + 257490, "abs32", "sec:.bss", 4363140 ], [ ".run", - 257452, + 257508, "abs32", "sec:.bss", 4363132 ], [ ".run", - 257466, + 257522, "abs32", "sec:.bss", 4363124 ], [ ".run", - 257490, + 257546, "abs32", "sec:.bss", 4363134 ], [ ".run", - 257518, + 257574, "abs32", "sec:.bss", 4363272 ], [ ".run", - 257568, + 257624, "abs32", "sec:.bss", 4363134 ], [ ".run", - 257612, + 257668, "abs32", "sec:.bss", 4363272 ], [ ".run", - 257626, + 257682, "abs32", "sec:.bss", 4363128 ], [ ".run", - 257662, + 257718, "abs32", "sec:.bss", 4363152 ], [ ".run", - 257866, + 257922, "abs32", "sec:.bss", 4363216 ], [ ".run", - 257874, + 257930, "abs32", "sec:.bss", 4363246 ], [ ".run", - 257882, + 257938, "abs32", "sec:.bss", 4363144 ], [ ".run", - 257888, + 257944, "abs32", "sec:.bss", 4363268 ], [ ".run", - 257894, + 257950, "abs32", "sec:.bss", 4363168 ], [ ".run", - 257928, + 257984, "abs32", "sec:.bss", 4362864 ], [ ".run", - 257970, + 258026, "abs32", "sec:.bss", 4363140 ], [ ".run", - 257984, + 258040, "abs32", "sec:.bss", 4363128 ], [ ".run", - 258102, + 258158, "abs32", "sec:.bss", 4363188 ], [ ".run", - 258152, + 258208, "abs32", "sec:.bss", 4363268 ], [ ".run", - 258162, + 258218, "abs32", "sec:.bss", 4363264 ], [ ".run", - 258174, + 258230, "abs32", "sec:.run", 53486 ], [ ".run", - 258180, + 258236, "abs32", "sec:.bss", 4363248 ], [ ".run", - 258202, + 258258, "abs32", "sec:.bss", 4363272 ], [ ".run", - 258248, + 258304, "abs32", "sec:.bss", 4363132 ], [ ".run", - 258470, + 258526, "abs32", "sec:.bss", 4363188 ], [ ".run", - 258522, + 258578, "abs32", "sec:.bss", 4363188 ], [ ".run", - 258532, + 258588, "abs32", "sec:.run", 307756 ], [ ".run", - 258640, + 258696, "abs32", "sec:.bss", 4363188 ], [ ".run", - 258708, + 258764, "abs32", "sec:.bss", 4363188 ], [ ".run", - 258778, + 258834, "abs32", "sec:.bss", 4363188 ], [ ".run", - 258794, + 258850, "abs32", "sec:.bss", 4363124 ], [ ".run", - 258886, + 258942, "abs32", "sec:.bss", 4363188 ], [ ".run", - 258900, + 258956, "abs32", "sec:.bss", 4363188 ], [ ".run", - 258960, + 259016, "abs32", "sec:.bss", 4363188 ], [ ".run", - 258974, + 259030, "abs32", "sec:.bss", 4363124 ], [ ".run", - 259084, + 259140, "abs32", "sec:.bss", 4363188 ], [ ".run", - 259098, + 259154, "abs32", "sec:.bss", 4363124 ], [ ".run", - 259132, + 259188, "abs32", "sec:.run", 307748 ], [ ".run", - 259228, + 259284, "abs32", "sec:.bss", 4363188 ], [ ".run", - 259244, + 259300, "abs32", "sec:.bss", 4363124 ], [ ".run", - 259320, + 259376, "abs32", "sec:.bss", 4363188 ], [ ".run", - 259398, + 259454, "abs32", "sec:.bss", 4363144 ], [ ".run", - 259416, + 259472, "abs32", "sec:.bss", 4363216 ], [ ".run", - 259476, + 259532, "abs32", "sec:.bss", 4363144 ], [ ".run", - 259496, + 259552, "abs32", "sec:.bss", 4363216 ], [ ".run", - 259520, + 259576, "abs32", "sec:.bss", 4363120 ], [ ".run", - 259534, + 259590, "abs32", "sec:.bss", 4363120 ], [ ".run", - 259540, + 259596, "abs32", "sec:.bss", 4362672 ], [ ".run", - 259548, + 259604, "abs32", "sec:.bss", 4362672 ], [ ".run", - 259554, + 259610, "abs32", "sec:.bss", 4362720 ], [ ".run", - 259560, + 259616, "abs32", "sec:.run", 39272 ], [ ".run", - 259566, + 259622, "abs32", "sec:.bss", 138580592 ], [ ".run", - 259572, + 259628, "abs32", "sec:.bss", 4363196 ], [ ".run", - 259580, + 259636, "abs32", "sec:.bss", 4363264 ], [ ".run", - 259586, + 259642, "abs32", "sec:.bss", 4363268 ], [ ".run", - 259614, + 259670, "abs32", "sec:.bss", 4363208 ], [ ".run", - 259620, + 259676, "abs32", "sec:.bss", 4363270 ], [ ".run", - 259626, + 259682, "abs32", "sec:.bss", 4363268 ], [ ".run", - 259644, + 259700, "abs32", "sec:.bss", 4363216 ], [ ".run", - 259690, + 259746, "abs32", "sec:.bss", 4363216 ], [ ".run", - 259722, + 259778, "abs32", "sec:.run", 53486 ], [ ".run", - 259728, + 259784, "abs32", "sec:.bss", 4363248 ], [ ".run", - 259768, + 259824, "abs32", "sec:.bss", 4363188 ], [ ".run", - 259816, + 259872, "abs32", "sec:.bss", 4362712 ], [ ".run", - 259832, + 259888, "abs32", "sec:.bss", 4363188 ], [ ".run", - 259858, + 259914, "abs32", "sec:.bss", 4362696 ], [ ".run", - 259872, + 259928, "abs32", "sec:.bss", 4363188 ], [ ".run", - 259924, + 259980, "abs32", "sec:.bss", 4362692 ], [ ".run", - 259948, + 260004, "abs32", "sec:.bss", 4363260 ], [ ".run", - 259954, + 260010, "abs32", "sec:.bss", 4362688 ], [ ".run", - 259964, + 260020, "abs32", "sec:.bss", 4363268 ], [ ".run", - 259970, + 260026, "abs32", "sec:.bss", 4363124 ], [ ".run", - 259984, + 260040, "abs32", "sec:.bss", 4362684 ], [ ".run", - 260024, + 260080, "abs32", "sec:.bss", 4363132 ], [ ".run", - 260034, + 260090, "abs32", "sec:.bss", 4362700 ], [ ".run", - 260058, + 260114, "abs32", "sec:.bss", 4363216 ], [ ".run", - 260084, + 260140, "abs32", "sec:.bss", 4362680 ], [ ".run", - 260136, + 260192, "abs32", "sec:.bss", 4362688 ], [ ".run", - 260142, + 260198, "abs32", "sec:.bss", 4363260 ], [ ".run", - 260168, + 260224, "abs32", "sec:.bss", 4363256 ], [ ".run", - 260174, + 260230, "abs32", "sec:.bss", 4363268 ], [ ".run", - 260180, + 260236, "abs32", "sec:.bss", 4362684 ], [ ".run", - 260190, + 260246, "abs32", "sec:.bss", 4363124 ], [ ".run", - 260206, + 260262, "abs32", "sec:.bss", 4363216 ], [ ".run", - 260216, + 260272, "abs32", "sec:.bss", 4363246 ], [ ".run", - 260232, + 260288, "abs32", "sec:.bss", 4362684 ], [ ".run", - 260238, + 260294, "abs32", "sec:.bss", 4363256 ], [ ".run", - 260264, + 260320, "abs32", "sec:.bss", 4363268 ], [ ".run", - 260288, + 260344, "abs32", "sec:.bss", 4362704 ], [ ".run", - 260306, + 260362, "abs32", "sec:.bss", 4362700 ], [ ".run", - 260312, + 260368, "abs32", "sec:.bss", 4362680 ], [ ".run", - 260318, + 260374, "abs32", "sec:.bss", 4363188 ], [ ".run", - 260342, + 260398, "abs32", "sec:.bss", 4363188 ], [ ".run", - 260406, + 260462, "abs32", "sec:.bss", 4363188 ], [ ".run", - 260424, + 260480, "abs32", "sec:.bss", 4363216 ], [ ".run", - 260434, + 260490, "abs32", "sec:.bss", 4363246 ], [ ".run", - 260444, + 260500, "abs32", "sec:.bss", 4363256 ], [ ".run", - 260450, + 260506, "abs32", "sec:.bss", 4362684 ], [ ".run", - 260460, + 260516, "abs32", "sec:.bss", 4363216 ], [ ".run", - 260478, + 260534, "abs32", "sec:.bss", 4362680 ], [ ".run", - 260602, + 260658, "abs32", "sec:.bss", 4363188 ], [ ".run", - 260622, + 260678, "abs32", "sec:.bss", 4363256 ], [ ".run", - 260628, + 260684, "abs32", "sec:.bss", 4362684 ], [ ".run", - 260638, + 260694, "abs32", "sec:.bss", 4363216 ], [ ".run", - 260654, + 260710, "abs32", "sec:.run", 216624 ], [ ".run", - 260660, + 260716, "abs32", "sec:.run", 155128 ], [ ".run", - 260666, + 260722, "abs32", "sec:.bss", 4362680 ], [ ".run", - 260674, + 260730, "abs32", "sec:.bss", 4362680 ], [ ".run", - 260682, + 260738, "abs32", "sec:.bss", 4362680 ], [ ".run", - 260688, + 260744, "abs32", "sec:.bss", 4362676 ], [ ".run", - 260706, + 260762, "abs32", "sec:.run", - 350800 + 350802 ], [ ".run", - 260718, + 260774, "abs32", "sec:.run", 230698 ], [ ".run", - 260750, + 260806, "abs32", "sec:.run", - 350816 + 350818 ], [ ".run", - 260758, + 260814, "abs32", "sec:.run", 230698 ], [ ".run", - 260772, + 260828, "abs32", "sec:.run", - 350832 + 350834 ], [ ".run", - 260780, + 260836, "abs32", "sec:.run", 230698 ], [ ".run", - 260804, + 260860, "abs32", "sec:.bss", 4363268 ], [ ".run", - 260810, + 260866, "abs32", "sec:.bss", 138580592 ], [ ".run", - 260816, + 260872, "abs32", "sec:.bss", 4363188 ], [ ".run", - 260822, + 260878, "abs32", "sec:.bss", 4363132 ], [ ".run", - 260846, + 260902, "abs32", "sec:.bss", 4362700 ], [ ".run", - 261248, + 261304, "abs32", "sec:.bss", 4363140 ], [ ".run", - 261276, + 261332, "abs32", "sec:.bss", 4363188 ], [ ".run", - 261386, + 261442, "abs32", "sec:.bss", 4363140 ], [ ".run", - 261414, + 261470, "abs32", "sec:.bss", 4363188 ], [ ".run", - 261430, + 261486, "abs32", "sec:.bss", 4363128 ], [ ".run", - 261450, + 261506, "abs32", "sec:.bss", 4363144 ], [ ".run", - 261556, + 261612, "abs32", "sec:.bss", 4363140 ], [ ".run", - 261584, + 261640, "abs32", "sec:.bss", 4363188 ], [ ".run", - 261602, + 261658, "abs32", "sec:.bss", 4363128 ], [ ".run", - 261774, + 261830, "abs32", "sec:.bss", 4363132 ], [ ".run", - 261842, + 261898, "abs32", "sec:.bss", 4363140 ], [ ".run", - 261870, + 261926, "abs32", "sec:.bss", 4363188 ], [ ".run", - 261928, + 261984, "abs32", "sec:.bss", 4363144 ], [ ".run", - 261952, + 262008, "abs32", "sec:.bss", 4363132 ], [ ".run", - 261970, + 262026, "abs32", "sec:.bss", 4363144 ], [ ".run", - 262000, + 262056, "abs32", "sec:.bss", 4363132 ], [ ".run", - 262034, + 262090, "abs32", "sec:.bss", 4363144 ], [ ".run", - 262058, + 262114, "abs32", "sec:.bss", 4363132 ], [ ".run", - 262090, + 262146, "abs32", "sec:.bss", 4363124 ], [ ".run", - 262118, + 262174, "abs32", "sec:.bss", 4363260 ], [ ".run", - 262124, + 262180, "abs32", "sec:.bss", 4362688 ], [ ".run", - 262132, + 262188, "abs32", "sec:.bss", 4363256 ], [ ".run", - 262138, + 262194, "abs32", "sec:.bss", 4362684 ], [ ".run", - 262150, + 262206, "abs32", "sec:.bss", 4363124 ], [ ".run", - 262176, + 262232, "abs32", "sec:.bss", 4363124 ], [ ".run", - 262208, + 262264, "abs32", "sec:.bss", 4363124 ], [ ".run", - 262914, + 262970, "abs32", "sec:.run", - 262250 + 262306 ], [ ".run", - 263516, + 263572, "abs32", "sec:.run", 217936 ], [ ".run", - 263796, + 263852, "abs32", "sec:.run", 217936 ], [ ".run", - 264610, + 264666, "abs32", "sec:.bss", 4363276 ], [ ".run", - 264620, + 264676, "abs32", "sec:.bss", 4363276 ], [ ".run", - 265826, + 265882, "abs32", "sec:.run", - 264546 + 264602 ], [ ".run", - 265848, + 265904, "abs32", "sec:.run", - 264546 + 264602 ], [ ".run", - 265908, + 265964, "abs32", "sec:.run", - 266262 + 266318 ], [ ".run", - 265994, + 266050, "abs32", "sec:.run", - 264546 + 264602 ], [ ".run", - 266110, + 266166, "abs32", "sec:.run", - 264546 + 264602 ], [ ".run", - 266164, + 266220, "abs32", "sec:.run", - 264546 + 264602 ], [ ".run", - 266200, + 266256, "abs32", "sec:.run", - 264546 + 264602 ], [ ".run", - 266358, + 266414, "abs32", "sec:.run", - 266212 + 266268 ], [ ".run", - 266628, + 266684, "abs32", "sec:.run", - 262816 + 262872 ], [ ".run", - 266692, + 266748, "abs32", "sec:.run", - 263198 + 263254 ], [ ".run", - 266770, + 266826, "abs32", "sec:.run", - 262706 + 262762 ], [ ".run", - 266792, + 266848, "abs32", "sec:.run", - 263400 + 263456 ], [ ".run", - 266814, + 266870, "abs32", "sec:.run", - 263650 + 263706 ], [ ".run", - 266836, + 266892, "abs32", "sec:.run", - 264032 + 264088 ], [ ".run", - 266858, + 266914, "abs32", "sec:.run", - 264246 + 264302 ], [ ".run", - 266878, + 266934, "abs32", "sec:.run", - 264162 + 264218 ], [ ".run", - 266906, + 266962, "abs32", "sec:.run", - 264444 + 264500 ], [ ".run", - 266924, + 266980, "abs32", "sec:.run", - 264546 + 264602 ], [ ".run", - 267190, + 267246, "abs32", "sec:.run", 206094 ], [ ".run", - 267196, + 267252, "abs32", "sec:.run", 190056 ], [ ".run", - 267234, + 267290, "abs32", "sec:.run", 189916 ], [ ".run", - 267244, + 267300, "abs32", "sec:.run", 205596 ], [ ".run", - 267284, + 267340, "abs32", "sec:.run", 190396 ], [ ".run", - 267440, + 267496, "abs32", "sec:.bss", 134218480 ], [ ".run", - 267466, + 267522, "abs32", "sec:.bss", 134218480 ], [ ".run", - 267536, + 267592, "abs32", "sec:.bss", 134218480 ], [ ".run", - 267890, + 267946, "abs32", "sec:.run", - 267434 + 267490 ], [ ".run", - 267936, + 267992, "abs32", "sec:.run", 307772 ], [ ".run", - 267942, + 267998, "abs32", "sec:.run", 307764 ], [ ".run", - 267974, + 268030, "abs32", "sec:.run", 307764 ], [ ".run", - 267990, + 268046, "abs32", "sec:.run", 307768 ], [ ".run", - 268010, + 268066, "abs32", "sec:.run", 307776 ], [ ".run", - 268016, + 268072, "abs32", "sec:.run", - 259510 + 259566 ], [ ".run", - 268030, + 268086, "abs32", "sec:.run", 307764 ], [ ".run", - 268042, + 268098, "abs32", "sec:.run", 307764 ], [ ".run", - 268058, + 268114, "abs32", "sec:.run", 307784 ], [ ".run", - 268068, + 268124, "abs32", "sec:.run", 307784 ], [ ".run", - 268094, + 268150, "abs32", "sec:.run", 307780 ], [ ".run", - 268100, + 268156, "abs32", "sec:.run", 307768 ], [ ".run", - 268112, + 268168, "abs32", "sec:.run", 307764 ], [ ".run", - 268154, + 268210, "abs32", "sec:.bss", 4362864 ], [ ".run", - 268174, + 268230, "abs32", "sec:.run", 307764 ], [ ".run", - 268198, + 268254, "abs32", "sec:.run", 307784 ], [ ".run", - 268212, + 268268, "abs32", "sec:.bss", 4362864 ], [ ".run", - 268320, + 268376, "abs32", "sec:.bss", 4362736 ], [ ".run", - 268450, + 268506, "abs32", "sec:.run", - 260650 + 260706 ], [ ".run", - 268490, + 268546, "abs32", "sec:.run", - 260650 + 260706 ], [ ".run", - 268518, + 268574, "abs32", "sec:.run", 216482 ], [ ".run", - 268536, + 268592, "abs32", "sec:.run", 216588 ], [ ".run", - 268562, + 268618, "abs32", "sec:.run", 216482 ], [ ".run", - 268580, + 268636, "abs32", "sec:.run", 216588 ], [ ".run", - 268608, + 268664, "abs32", "sec:.run", 216510 ], [ ".run", - 268632, + 268688, "abs32", "sec:.run", 216588 ], [ ".run", - 268660, + 268716, "abs32", "sec:.run", 307796 ], [ ".run", - 268666, + 268722, "abs32", "sec:.run", 307788 ], [ ".run", - 268676, + 268732, "abs32", "sec:.bss", 4362992 ], [ ".run", - 268796, + 268852, "abs32", "sec:.run", 307788 ], [ ".run", - 268802, + 268858, "abs32", "sec:.run", 307792 ], [ ".run", - 268820, + 268876, "abs32", "sec:.run", 307788 ], [ ".run", - 268826, + 268882, "abs32", "sec:.bss", 4362992 ], [ ".run", - 268882, + 268938, "abs32", "sec:.run", 82044 ], [ ".run", - 268920, + 268976, "abs32", "sec:.run", 82150 ], [ ".run", - 268952, + 269008, "abs32", "sec:.run", 83290 ], [ ".run", - 268980, + 269036, "abs32", "sec:.run", 82786 ], [ ".run", - 269018, + 269074, "abs32", "sec:.bss", 2479100 ], [ ".run", - 269214, + 269270, "abs32", "sec:.bss", 4347240 ], [ ".run", - 269222, + 269278, "abs32", "sec:.bss", 4347244 ], [ ".run", - 269284, + 269340, "abs32", "sec:.bss", 4347140 ], [ ".run", - 269298, + 269354, "abs32", "sec:.bss", 4347140 ], [ ".run", - 269336, + 269392, "abs32", "sec:.bss", 4347140 ], [ ".run", - 269400, + 269456, "abs32", "sec:.bss", 4347140 ], [ ".run", - 269410, + 269466, "abs32", "sec:.bss", 4347140 ], [ ".run", - 269886, + 269942, "abs32", "sec:.run", - 337608 + 337610 ], [ ".run", - 269950, + 270006, "abs32", "sec:.run", - 337712 + 337714 ], [ ".run", - 270012, + 270068, "abs32", "sec:.run", - 337612 + 337614 ], [ ".run", - 270056, + 270112, "abs32", "sec:.run", - 337616 + 337618 ], [ ".run", - 270124, + 270180, "abs32", "sec:.run", - 337628 + 337630 ], [ ".run", - 270220, + 270276, "abs32", "sec:.run", - 337624 + 337626 ], [ ".run", - 270308, + 270364, "abs32", "sec:.run", - 337640 + 337642 ], [ ".run", - 270402, + 270458, "abs32", "sec:.run", - 337644 + 337646 ], [ ".run", - 270496, + 270552, "abs32", "sec:.run", - 337648 + 337650 ], [ ".run", - 270582, + 270638, "abs32", "sec:.run", - 337636 + 337638 ], [ ".run", - 270678, + 270734, "abs32", "sec:.run", - 337632 + 337634 ], [ ".run", - 270774, + 270830, "abs32", "sec:.run", - 337788 + 337790 ], [ ".run", - 270826, + 270882, "abs32", "sec:.run", - 337792 + 337794 ], [ ".run", - 270884, + 270940, "abs32", "sec:.run", - 337652 + 337654 ], [ ".run", - 270968, + 271024, "abs32", "sec:.run", - 337656 + 337658 ], [ ".run", - 271060, + 271116, "abs32", "sec:.run", - 337660 + 337662 ], [ ".run", - 271158, + 271214, "abs32", "sec:.run", - 337664 + 337666 ], [ ".run", - 271250, + 271306, "abs32", "sec:.run", - 337668 + 337670 ], [ ".run", - 271342, + 271398, "abs32", "sec:.run", - 337672 + 337674 ], [ ".run", - 271432, + 271488, "abs32", "sec:.run", - 337676 + 337678 ], [ ".run", - 271514, + 271570, "abs32", "sec:.run", - 337680 + 337682 ], [ ".run", - 271600, + 271656, "abs32", "sec:.run", - 337684 + 337686 ], [ ".run", - 271698, + 271754, "abs32", "sec:.run", - 337688 + 337690 ], [ ".run", - 271792, + 271848, "abs32", "sec:.run", - 337728 + 337730 ], [ ".run", - 271880, + 271936, "abs32", "sec:.run", - 337724 + 337726 ], [ ".run", - 271966, + 272022, "abs32", "sec:.run", - 337692 + 337694 ], [ ".run", - 272052, + 272108, "abs32", "sec:.run", - 337696 + 337698 ], [ ".run", - 272138, + 272194, "abs32", "sec:.run", - 337700 + 337702 ], [ ".run", - 272224, + 272280, "abs32", "sec:.run", - 337772 + 337774 ], [ ".run", - 272268, + 272324, "abs32", "sec:.run", 307812 ], [ ".run", - 272298, + 272354, "abs32", "sec:.run", - 337780 + 337782 ], [ ".run", - 272342, + 272398, "abs32", "sec:.run", 307816 ], [ ".run", - 272372, + 272428, "abs32", "sec:.run", - 337744 + 337746 ], [ ".run", - 272416, + 272472, "abs32", "sec:.run", 307800 ], [ ".run", - 272446, + 272502, "abs32", "sec:.run", - 337752 + 337754 ], [ ".run", - 272500, + 272556, "abs32", "sec:.run", 307804 ], [ ".run", - 272530, + 272586, "abs32", "sec:.run", - 337760 + 337762 ], [ ".run", - 272584, + 272640, "abs32", "sec:.run", - 337764 + 337766 ], [ ".run", - 272628, + 272684, "abs32", "sec:.run", 307808 ], [ ".run", - 272658, + 272714, "abs32", "sec:.run", - 337720 + 337722 ], [ ".run", - 272744, + 272800, "abs32", "sec:.run", - 337620 + 337622 ], [ ".run", - 272754, + 272810, "abs32", "sec:.run", - 337732 + 337734 ], [ ".run", - 272764, + 272820, "abs32", "sec:.run", - 337748 + 337750 ], [ ".run", - 272774, + 272830, "abs32", "sec:.run", - 337756 + 337758 ], [ ".run", - 272784, + 272840, "abs32", "sec:.run", - 337768 + 337770 ], [ ".run", - 272794, + 272850, "abs32", "sec:.run", - 337776 + 337778 ], [ ".run", - 272804, + 272860, "abs32", "sec:.run", - 337784 + 337786 ], [ ".run", - 272814, + 272870, "abs32", "sec:.run", - 337796 + 337798 ], [ ".run", - 272864, + 272920, "abs32", "sec:.run", 307800 ], [ ".run", - 272870, + 272926, "abs32", "sec:.run", - 337748 + 337750 ], [ ".run", - 272880, + 272936, "abs32", "sec:.run", 307804 ], [ ".run", - 272886, + 272942, "abs32", "sec:.run", - 337756 + 337758 ], [ ".run", - 272896, + 272952, "abs32", "sec:.run", 307808 ], [ ".run", - 272902, + 272958, "abs32", "sec:.run", - 337768 + 337770 ], [ ".run", - 272912, + 272968, "abs32", "sec:.run", 307812 ], [ ".run", - 272918, + 272974, "abs32", "sec:.run", - 337776 + 337778 ], [ ".run", - 272928, + 272984, "abs32", "sec:.run", 307816 ], [ ".run", - 272934, + 272990, "abs32", "sec:.run", - 337784 + 337786 ], [ ".run", - 272990, + 273046, "abs32", "sec:.run", 135110 ], [ ".run", - 273028, + 273084, "abs32", "sec:.run", 129854 ], [ ".run", - 273062, + 273118, "abs32", "sec:.run", 129950 ], [ ".run", - 273110, + 273166, "abs32", "sec:.run", 130320 ], [ ".run", - 273212, + 273268, "abs32", "sec:.run", 130320 ], [ ".run", - 273314, + 273370, "abs32", "sec:.run", 134552 ], [ ".run", - 273362, + 273418, "abs32", "sec:.bss", 3453562 ], [ ".run", - 273456, + 273512, "abs32", "sec:.run", 130114 ], [ ".run", - 273540, + 273596, "abs32", "sec:.run", 134952 ], [ ".run", - 273588, + 273644, "abs32", "sec:.run", 134718 ], [ ".run", - 273660, + 273716, "abs32", "sec:.run", 134834 ], [ ".run", - 273716, + 273772, "abs32", "sec:.run", 132510 ], [ ".run", - 273730, + 273786, "abs32", "sec:.run", 132980 ], [ ".run", - 273744, + 273800, "abs32", "sec:.bss", 3453510 ], [ ".run", - 273772, + 273828, "abs32", "sec:.run", 132980 ], [ ".run", - 273802, + 273858, "abs32", "sec:.bss", 3453510 ], [ ".run", - 273814, + 273870, "abs32", "sec:.run", 133194 ], [ ".run", - 273842, + 273898, "abs32", "sec:.run", 133926 ], [ ".run", - 273906, + 273962, "abs32", "sec:.run", 134776 ], [ ".run", - 273974, + 274030, "abs32", "sec:.run", 134398 ], [ ".run", - 274012, + 274068, "abs32", "sec:.run", 135644 ], [ ".run", - 274056, + 274112, "abs32", "sec:.run", - 274010 + 274066 ], [ ".run", - 274066, + 274122, "abs32", "sec:.bss", 3453264 ], [ ".run", - 274072, + 274128, "abs32", "sec:.run", 136688 ], [ ".run", - 274094, + 274150, "abs32", "sec:.bss", 3453360 ], [ ".run", - 274106, + 274162, "abs32", "sec:.run", 135378 ], [ ".run", - 274170, + 274226, "abs32", "sec:.run", 167396 ], [ ".run", - 274222, + 274278, "abs32", "sec:.run", 166986 ], [ ".run", - 274252, + 274308, "abs32", "sec:.run", 167184 ], [ ".run", - 274440, + 274496, "abs32", "sec:.run", - 280000 + 280056 ], [ ".run", - 274460, + 274516, "abs32", "sec:.run", 111252 ], [ ".run", - 274620, + 274676, "abs32", "sec:.run", 110028 ], [ ".run", - 274626, + 274682, "abs32", "sec:.run", 201014 ], [ ".run", - 274660, + 274716, "abs32", "sec:.run", - 350841 + 350843 ], [ ".run", - 274728, + 274784, "abs32", "sec:.run", - 279992 + 280048 ], [ ".run", - 274816, + 274872, "abs32", "sec:.run", - 274568 + 274624 ], [ ".run", - 274940, + 274996, "abs32", "sec:.run", 201048 ], [ ".run", - 275026, + 275082, "abs32", "sec:.run", 201048 ], [ ".run", - 275318, + 275374, "abs32", "sec:.run", 201014 ], [ ".run", - 275336, + 275392, "abs32", "sec:.run", 110010 ], [ ".run", - 275350, + 275406, "abs32", "sec:.run", - 279992 + 280048 ], [ ".run", - 275382, + 275438, "abs32", "sec:.run", 201048 ], [ ".run", - 275436, + 275492, "abs32", "sec:.run", 201048 ], [ ".run", - 275778, + 275834, "abs32", "sec:.run", 178358 ], [ ".run", - 276028, + 276084, "abs32", "sec:.run", 201014 ], [ ".run", - 276164, + 276220, "abs32", "sec:.run", 201048 ], [ ".run", - 276340, + 276396, "abs32", "sec:.run", 111046 ], [ ".run", - 276400, + 276456, "abs32", "sec:.run", 111638 ], [ ".run", - 276434, + 276490, "abs32", "sec:.run", 110010 ], [ ".run", - 276548, + 276604, "abs32", "sec:.run", 110010 ], [ ".run", - 276590, + 276646, "abs32", "sec:.run", 201048 ], [ ".run", - 276744, + 276800, "abs32", "sec:.run", 110356 ], [ ".run", - 276842, + 276898, "abs32", "sec:.run", - 280000 + 280056 ], [ ".run", - 276868, + 276924, "abs32", "sec:.run", 111252 ], [ ".run", - 276938, + 276994, "abs32", "sec:.run", - 280000 + 280056 ], [ ".run", - 276964, + 277020, "abs32", "sec:.run", 111252 ], [ ".run", - 277020, + 277076, "abs32", "sec:.run", - 279992 + 280048 ], [ ".run", - 277250, + 277306, "abs32", "sec:.run", 111224 ], [ ".run", - 277530, + 277586, "abs32", "sec:.run", 201014 ], [ ".run", - 277544, + 277600, "abs32", "sec:.run", 110010 ], [ ".run", - 277562, + 277618, "abs32", "sec:.run", 110028 ], [ ".run", - 277572, + 277628, "abs32", "sec:.run", 201048 ], [ ".run", - 277774, + 277830, "abs32", "sec:.run", - 280000 + 280056 ], [ ".run", - 278084, + 278140, "abs32", "sec:.bss", 4536536 ], [ ".run", - 278090, + 278146, "abs32", "sec:.bss", 4536024 ], [ ".run", - 278170, + 278226, "abs32", "sec:.bss", 4536024 ], [ ".run", - 278176, + 278232, "abs32", "sec:.bss", 4536536 ], [ ".run", - 278186, + 278242, "abs32", "sec:.run", 177576 ], [ ".run", - 278202, + 278258, "abs32", "sec:.run", 111276 ], [ ".run", - 278226, + 278282, "abs32", "sec:.run", 110010 ], [ ".run", - 278284, + 278340, "abs32", "sec:.run", 178310 ], [ ".run", - 278334, + 278390, "abs32", "sec:.run", 110028 ], [ ".run", - 278344, + 278400, "abs32", "sec:.run", 201048 ], [ ".run", - 278416, + 278472, "abs32", "sec:.run", 217936 ], [ ".run", - 278996, + 279052, "abs32", "sec:.run", 217936 ], [ ".run", - 279232, + 279288, "abs32", "sec:.bss", 4535512 ], [ ".run", - 279282, + 279338, "abs32", "sec:.bss", 4535512 ], [ ".run", - 279294, + 279350, "abs32", "sec:.run", - 279996 + 280052 ], [ ".run", - 279492, + 279548, "abs32", "sec:.run", 110082 ], [ ".run", - 279506, + 279562, "abs32", "sec:.run", 110028 ], [ ".run", - 279516, + 279572, "abs32", "sec:.run", 201048 ], [ ".run", - 280022, + 280078, "abs32", "sec:.run", 110028 ], [ ".run", - 280040, + 280096, "abs32", "sec:.bss", 4538002 ], [ ".run", - 280068, + 280124, "abs32", "sec:.bss", 4537362 ], [ ".run", - 280134, + 280190, "abs32", "sec:.run", 110028 ], [ ".run", - 280146, + 280202, "abs32", "sec:.bss", 4538007 ], [ ".run", - 280188, + 280244, "abs32", "sec:.run", 110028 ], [ ".run", - 280200, + 280256, "abs32", "sec:.bss", 4538007 ], [ ".run", - 280226, + 280282, "abs32", "sec:.bss", 4537342 ], [ ".run", - 280242, + 280298, "abs32", "sec:.bss", 4538002 ], [ ".run", - 280254, + 280310, "abs32", "sec:.bss", 4537346 ], [ ".run", - 280278, + 280334, "abs32", "sec:.run", 164260 ], [ ".run", - 280296, + 280352, "abs32", "sec:.bss", 4537346 ], [ ".run", - 280310, + 280366, "abs32", "sec:.bss", 4538003 ], [ ".run", - 280328, + 280384, "abs32", "sec:.run", 164408 ], [ ".run", - 280348, + 280404, "abs32", "sec:.bss", 4537048 ], [ ".run", - 280380, + 280436, "abs32", "sec:.bss", 4538003 ], [ ".run", - 280386, + 280442, "abs32", "sec:.bss", 4538004 ], [ ".run", - 280392, + 280448, "abs32", "sec:.bss", 4538005 ], [ ".run", - 280398, + 280454, "abs32", "sec:.bss", 4537346 ], [ ".run", - 280404, + 280460, "abs32", "sec:.run", 165482 ], [ ".run", - 280426, + 280482, "abs32", "sec:.bss", 4538005 ], [ ".run", - 280432, + 280488, "abs32", "sec:.bss", 4538006 ], [ ".run", - 280446, + 280502, "abs32", "sec:.bss", 4537048 ], [ ".run", - 280462, + 280518, "abs32", "sec:.bss", 4537335 ], [ ".run", - 280502, + 280558, "abs32", "sec:.bss", 4538007 ], [ ".run", - 280528, + 280584, "abs32", "sec:.bss", 4538003 ], [ ".run", - 280546, + 280602, "abs32", "sec:.run", 164408 ], [ ".run", - 280574, + 280630, "abs32", "sec:.bss", 4537048 ], [ ".run", - 280594, + 280650, "abs32", "sec:.bss", 4538007 ], [ ".run", - 280612, + 280668, "abs32", "sec:.bss", 4538004 ], [ ".run", - 280634, + 280690, "abs32", "sec:.bss", 4538005 ], [ ".run", - 280656, + 280712, "abs32", "sec:.bss", 4538006 ], [ ".run", - 280662, + 280718, "abs32", "sec:.bss", 4538003 ], [ ".run", - 280668, + 280724, "abs32", "sec:.run", 164408 ], [ ".run", - 280688, + 280744, "abs32", "sec:.bss", 4537048 ], [ ".run", - 280780, + 280836, "abs32", "sec:.bss", 4537346 ], [ ".run", - 280790, + 280846, "abs32", "sec:.run", 165650 ], [ ".run", - 280820, + 280876, "abs32", "sec:.bss", 4537350 ], [ ".run", - 280840, + 280896, "abs32", "sec:.bss", 4537048 ], [ ".run", - 280846, + 280902, "abs32", "sec:.run", 79066 ], [ ".run", - 280862, + 280918, "abs32", "sec:.bss", 4537048 ], [ ".run", - 280868, + 280924, "abs32", "sec:.run", 79036 ], [ ".run", - 280874, + 280930, "abs32", "sec:.bss", 4537350 ], [ ".run", - 280880, + 280936, "abs32", "sec:.bss", 4537270 ], [ ".run", - 280890, + 280946, "abs32", "sec:.bss", 4537346 ], [ ".run", - 280896, + 280952, "abs32", "sec:.bss", 4537274 ], [ ".run", - 280902, + 280958, "abs32", "sec:.run", 81392 ], [ ".run", - 280920, + 280976, "abs32", "sec:.bss", 4537334 ], [ ".run", - 280926, + 280982, "abs32", "sec:.bss", 4537278 ], [ ".run", - 280936, + 280992, "abs32", "sec:.bss", 4537282 ], [ ".run", - 280946, + 281002, "abs32", "sec:.bss", 4537314 ], [ ".run", - 280952, + 281008, "abs32", "sec:.bss", 4537337 ], [ ".run", - 280958, + 281014, "abs32", "sec:.bss", 4537336 ], [ ".run", - 280964, + 281020, "abs32", "sec:.bss", 4537335 ], [ ".run", - 281082, + 281138, "abs32", "sec:.bss", 4537338 ], [ ".run", - 281120, + 281176, "abs32", "sec:.bss", 4537338 ], [ ".run", - 281224, + 281280, "abs32", "sec:.run", 47934 ], [ ".run", - 281252, + 281308, "abs32", "sec:.bss", 4537339 ], [ ".run", - 281268, + 281324, "abs32", "sec:.bss", 4537048 ], [ ".run", - 281288, + 281344, "abs32", "sec:.bss", 4537340 ], [ ".run", - 281296, + 281352, "abs32", "sec:.bss", 4538006 ], [ ".run", - 281308, + 281364, "abs32", "sec:.run", 165482 ], [ ".run", - 281360, + 281416, "abs32", "sec:.bss", 4538004 ], [ ".run", - 281370, + 281426, "abs32", "sec:.bss", 4538005 ], [ ".run", - 281380, + 281436, "abs32", "sec:.bss", 4538006 ], [ ".run", - 281396, + 281452, "abs32", "sec:.bss", 4537346 ], [ ".run", - 281412, + 281468, "abs32", "sec:.bss", 4538006 ], [ ".run", - 281418, + 281474, "abs32", "sec:.bss", 4538003 ], [ ".run", - 281424, + 281480, "abs32", "sec:.run", 164408 ], [ ".run", - 281564, + 281620, "abs32", "sec:.bss", 4538007 ], [ ".run", - 281574, + 281630, "abs32", "sec:.bss", 4538006 ], [ ".run", - 281596, + 281652, "abs32", "sec:.bss", 4537334 ], [ ".run", - 281608, + 281664, "abs32", "sec:.bss", 4537274 ], [ ".run", - 281632, + 281688, "abs32", "sec:.run", 110028 ], [ ".run", - 281662, + 281718, "abs32", "sec:.bss", 4537048 ], [ ".run", - 281686, + 281742, "abs32", "sec:.bss", 4537048 ], [ ".run", - 281696, + 281752, "abs32", "sec:.run", 79036 ], [ ".run", - 281742, + 281798, "abs32", "sec:.bss", 4538007 ], [ ".run", - 281750, + 281806, "abs32", "sec:.bss", 4538006 ], [ ".run", - 281764, + 281820, "abs32", "sec:.bss", 4537048 ], [ ".run", - 281788, + 281844, "abs32", "sec:.bss", 4537270 ], [ ".run", - 281814, + 281870, "abs32", "sec:.bss", 4538003 ], [ ".run", - 281820, + 281876, "abs32", "sec:.bss", 4537048 ], [ ".run", - 281854, + 281910, "abs32", "sec:.bss", 4538006 ], [ ".run", - 281860, + 281916, "abs32", "sec:.bss", 4538003 ], [ ".run", - 281886, + 281942, "abs32", "sec:.bss", 4538006 ], [ ".run", - 281892, + 281948, "abs32", "sec:.bss", 4538003 ], [ ".run", - 281908, + 281964, "abs32", "sec:.run", 110028 ], [ ".run", - 281946, + 282002, "abs32", "sec:.bss", 4537346 ], [ ".run", - 281954, + 282010, "abs32", "sec:.bss", 4538002 ], [ ".run", - 281974, + 282030, "abs32", "sec:.bss", 4537362 ], [ ".run", - 282002, + 282058, "abs32", "sec:.bss", 4538007 ], [ ".run", - 282014, + 282070, "abs32", "sec:.bss", 4537048 ], [ ".run", - 282026, + 282082, "abs32", "sec:.bss", 4538003 ], [ ".run", - 282064, + 282120, "abs32", "sec:.run", 110028 ], [ ".run", - 282076, + 282132, "abs32", "sec:.bss", 4538007 ], [ ".run", - 282122, + 282178, "abs32", "sec:.bss", 4537342 ], [ ".run", - 282132, + 282188, "abs32", "sec:.bss", 4537346 ], [ ".run", - 282158, + 282214, "abs32", "sec:.bss", 4538002 ], [ ".run", - 282172, + 282228, "abs32", "sec:.bss", 4538006 ], [ ".run", - 282178, + 282234, "abs32", "sec:.bss", 4538003 ], [ ".run", - 282196, + 282252, "abs32", "sec:.bss", 4537874 ], [ ".run", - 282212, + 282268, "abs32", "sec:.bss", 4537362 ], [ ".run", - 282284, + 282340, "abs32", "sec:.run", 165848 ], [ ".run", - 282308, + 282364, "abs32", "sec:.bss", 4538007 ], [ ".run", - 282348, + 282404, "abs32", "sec:.bss", 4538002 ], [ ".run", - 282366, + 282422, "abs32", "sec:.bss", 4538007 ], [ ".run", - 282378, + 282434, "abs32", "sec:.bss", 4537346 ], [ ".run", - 282390, + 282446, "abs32", "sec:.run", 166034 ], [ ".run", - 282410, + 282466, "abs32", "sec:.bss", 4538007 ], [ ".run", - 282418, + 282474, "abs32", "sec:.bss", 4537346 ], [ ".run", - 282426, + 282482, "abs32", "sec:.run", 207042 ], [ ".run", - 282458, + 282514, "abs32", "sec:.run", 205792 ], [ ".run", - 282518, + 282574, "abs32", "sec:.run", 208010 ], [ ".run", - 282542, + 282598, "abs32", "sec:.run", - 282650 + 282706 ], [ ".run", - 282624, + 282680, "abs32", "sec:.run", 208242 ], [ ".run", - 282676, + 282732, "abs32", "sec:.run", 208412 ], [ ".run", - 282706, + 282762, "abs32", "sec:.run", 191320 ], [ ".run", - 282718, + 282774, "abs32", "sec:.run", 191320 ], [ ".run", - 282730, + 282786, "abs32", "sec:.run", 191320 @@ -86006,7 +86077,7 @@ 283388, "abs32", "sec:.run", - 267180 + 267236 ], [ ".run", @@ -87539,21 +87610,21 @@ 316320, "abs32", "sec:.run", - 259378 + 259434 ], [ ".run", 316324, "abs32", "sec:.run", - 259454 + 259510 ], [ ".run", 316328, "abs32", "sec:.run", - 259200 + 259256 ], [ ".run", @@ -88418,1239 +88489,1239 @@ ], [ ".run", - 336690, + 336692, "abs32", "sec:.run", 89586 ], [ ".run", - 336694, + 336696, "abs32", "sec:.run", 89558 ], [ ".run", - 336698, + 336700, "abs32", "sec:.run", 89070 ], [ ".run", - 336702, + 336704, "abs32", "sec:.run", 88062 ], [ ".run", - 336706, + 336708, "abs32", "sec:.run", 90304 ], [ ".run", - 336710, + 336712, "abs32", "sec:.run", 88104 ], [ ".run", - 336714, + 336716, "abs32", "sec:.run", 88138 ], [ ".run", - 336718, + 336720, "abs32", "sec:.run", 88172 ], [ ".run", - 336726, + 336728, "abs32", "sec:.run", 89586 ], [ ".run", - 336730, + 336732, "abs32", "sec:.run", 89558 ], [ ".run", - 336734, + 336736, "abs32", "sec:.run", 89070 ], [ ".run", - 336738, + 336740, "abs32", "sec:.run", 87918 ], [ ".run", - 336742, + 336744, "abs32", "sec:.run", 90432 ], [ ".run", - 336746, + 336748, "abs32", "sec:.run", 87960 ], [ ".run", - 336750, + 336752, "abs32", "sec:.run", 87994 ], [ ".run", - 336754, + 336756, "abs32", "sec:.run", 88028 ], [ ".run", - 337212, + 337214, "abs32", "sec:.run", - 272742 + 272798 ], [ ".run", - 337324, + 337326, "abs32", "sec:.run", - 272752 + 272808 ], [ ".run", - 337404, + 337406, "abs32", "sec:.bss", 2604046 ], [ ".run", - 337408, + 337410, "abs32", "sec:.bss", 2604562 ], [ ".run", - 337412, + 337414, "abs32", "sec:.bss", 2605078 ], [ ".run", - 337416, + 337418, "abs32", "sec:.bss", 2605594 ], [ ".run", - 337420, + 337422, "abs32", "sec:.bss", 2606110 ], [ ".run", - 337424, + 337426, "abs32", "sec:.bss", 2606146 ], [ ".run", - 337428, + 337430, "abs32", "sec:.bss", 2606182 ], [ ".run", - 337432, + 337434, "abs32", "sec:.bss", 2606218 ], [ ".run", - 337436, + 337438, "abs32", "sec:.bss", 2606254 ], [ ".run", - 337440, + 337442, "abs32", "sec:.bss", 2606290 ], [ ".run", - 337444, + 337446, "abs32", "sec:.bss", 2606326 ], [ ".run", - 337448, + 337450, "abs32", "sec:.bss", 2606362 ], [ ".run", - 337452, + 337454, "abs32", "sec:.bss", 2606398 ], [ ".run", - 337456, + 337458, "abs32", "sec:.bss", 2606434 ], [ ".run", - 337460, + 337462, "abs32", "sec:.bss", 2606470 ], [ ".run", - 337464, + 337466, "abs32", "sec:.bss", 2606506 ], [ ".run", - 337468, + 337470, "abs32", "sec:.bss", 2606542 ], [ ".run", - 337472, + 337474, "abs32", "sec:.bss", 2606578 ], [ ".run", - 337476, + 337478, "abs32", "sec:.bss", 2606614 ], [ ".run", - 337480, + 337482, "abs32", "sec:.bss", 2606650 ], [ ".run", - 337484, + 337486, "abs32", "sec:.bss", 2606686 ], [ ".run", - 337488, + 337490, "abs32", "sec:.bss", 2606722 ], [ ".run", - 337492, + 337494, "abs32", "sec:.bss", 2606758 ], [ ".run", - 337496, + 337498, "abs32", "sec:.bss", 2606794 ], [ ".run", - 337500, + 337502, "abs32", "sec:.bss", 2606830 ], [ ".run", - 337504, + 337506, "abs32", "sec:.bss", 2606866 ], [ ".run", - 337508, + 337510, "abs32", "sec:.bss", 2606902 ], [ ".run", - 337512, + 337514, "abs32", "sec:.bss", 2607418 ], [ ".run", - 337516, + 337518, "abs32", "sec:.bss", 2607486 ], [ ".run", - 337520, + 337522, "abs32", "sec:.bss", 2607522 ], [ ".run", - 337524, + 337526, "abs32", "sec:.bss", 2607558 ], [ ".run", - 337528, + 337530, "abs32", "sec:.bss", 2607594 ], [ ".run", - 337532, + 337534, "abs32", "sec:.bss", 2608110 ], [ ".run", - 337536, + 337538, "abs32", "sec:.bss", 2608130 ], [ ".run", - 337540, + 337542, "abs32", "sec:.bss", 2608166 ], [ ".run", - 337544, + 337546, "abs32", "sec:.bss", 2608682 ], [ ".run", - 337548, + 337550, "abs32", "sec:.bss", 2609198 ], [ ".run", - 337552, + 337554, "abs32", "sec:.bss", 2609714 ], [ ".run", - 337556, + 337558, "abs32", "sec:.bss", 2610230 ], [ ".run", - 337560, + 337562, "abs32", "sec:.bss", 2610746 ], [ ".run", - 337564, + 337566, "abs32", "sec:.bss", 2611262 ], [ ".run", - 337568, + 337570, "abs32", "sec:.bss", 2611778 ], [ ".run", - 337572, + 337574, "abs32", "sec:.bss", 2612294 ], [ ".run", - 337576, + 337578, "abs32", "sec:.bss", 2612810 ], [ ".run", - 337580, + 337582, "abs32", "sec:.bss", 2613326 ], [ ".run", - 337584, + 337586, "abs32", "sec:.bss", 2613842 ], [ ".run", - 337588, + 337590, "abs32", "sec:.bss", 2614358 ], [ ".run", - 337592, + 337594, "abs32", "sec:.bss", 2614874 ], [ ".run", - 337596, + 337598, "abs32", "sec:.bss", 2615390 ], [ ".run", - 337600, + 337602, "abs32", "sec:.bss", 2615398 ], [ ".run", - 337604, + 337606, "abs32", "sec:.bss", 2615430 ], [ ".run", - 337608, + 337610, "abs32", "sec:.bss", 2615946 ], [ ".run", - 337612, + 337614, "abs32", "sec:.bss", 2616462 ], [ ".run", - 337616, + 337618, "abs32", "sec:.bss", 2616978 ], [ ".run", - 337620, + 337622, "abs32", "sec:.bss", 2617494 ], [ ".run", - 337624, + 337626, "abs32", "sec:.bss", 2618010 ], [ ".run", - 337628, + 337630, "abs32", "sec:.bss", 2618046 ], [ ".run", - 337632, + 337634, "abs32", "sec:.bss", 2618082 ], [ ".run", - 337636, + 337638, "abs32", "sec:.bss", 2618118 ], [ ".run", - 337640, + 337642, "abs32", "sec:.bss", 2618154 ], [ ".run", - 337644, + 337646, "abs32", "sec:.bss", 2618190 ], [ ".run", - 337648, + 337650, "abs32", "sec:.bss", 2618226 ], [ ".run", - 337652, + 337654, "abs32", "sec:.bss", 2618262 ], [ ".run", - 337656, + 337658, "abs32", "sec:.bss", 2618298 ], [ ".run", - 337660, + 337662, "abs32", "sec:.bss", 2618334 ], [ ".run", - 337664, + 337666, "abs32", "sec:.bss", 2618370 ], [ ".run", - 337668, + 337670, "abs32", "sec:.bss", 2618406 ], [ ".run", - 337672, + 337674, "abs32", "sec:.bss", 2618442 ], [ ".run", - 337676, + 337678, "abs32", "sec:.bss", 2618478 ], [ ".run", - 337680, + 337682, "abs32", "sec:.bss", 2618514 ], [ ".run", - 337684, + 337686, "abs32", "sec:.bss", 2618550 ], [ ".run", - 337688, + 337690, "abs32", "sec:.bss", 2618586 ], [ ".run", - 337692, + 337694, "abs32", "sec:.bss", 2618622 ], [ ".run", - 337696, + 337698, "abs32", "sec:.bss", 2618658 ], [ ".run", - 337700, + 337702, "abs32", "sec:.bss", 2618694 ], [ ".run", - 337704, + 337706, "abs32", "sec:.bss", 2618730 ], [ ".run", - 337708, + 337710, "abs32", "sec:.bss", 2618766 ], [ ".run", - 337712, + 337714, "abs32", "sec:.bss", 2618802 ], [ ".run", - 337716, + 337718, "abs32", "sec:.bss", 2619318 ], [ ".run", - 337720, + 337722, "abs32", "sec:.bss", 2619386 ], [ ".run", - 337724, + 337726, "abs32", "sec:.bss", 2619422 ], [ ".run", - 337728, + 337730, "abs32", "sec:.bss", 2619458 ], [ ".run", - 337732, + 337734, "abs32", "sec:.bss", 2619494 ], [ ".run", - 337736, + 337738, "abs32", "sec:.bss", 2620010 ], [ ".run", - 337740, + 337742, "abs32", "sec:.bss", 2620030 ], [ ".run", - 337744, + 337746, "abs32", "sec:.bss", 2620066 ], [ ".run", - 337748, + 337750, "abs32", "sec:.bss", 2620582 ], [ ".run", - 337752, + 337754, "abs32", "sec:.bss", 2621098 ], [ ".run", - 337756, + 337758, "abs32", "sec:.bss", 2621614 ], [ ".run", - 337760, + 337762, "abs32", "sec:.bss", 2622130 ], [ ".run", - 337764, + 337766, "abs32", "sec:.bss", 2622646 ], [ ".run", - 337768, + 337770, "abs32", "sec:.bss", 2623162 ], [ ".run", - 337772, + 337774, "abs32", "sec:.bss", 2623678 ], [ ".run", - 337776, + 337778, "abs32", "sec:.bss", 2624194 ], [ ".run", - 337780, + 337782, "abs32", "sec:.bss", 2624710 ], [ ".run", - 337784, + 337786, "abs32", "sec:.bss", 2625226 ], [ ".run", - 337788, + 337790, "abs32", "sec:.bss", 2625742 ], [ ".run", - 337792, + 337794, "abs32", "sec:.bss", 2626258 ], [ ".run", - 337796, + 337798, "abs32", "sec:.bss", 2626774 ], [ ".run", - 337800, + 337802, "abs32", "sec:.bss", 2627290 ], [ ".run", - 337804, + 337806, "abs32", "sec:.bss", 2627298 ], [ ".run", - 337808, + 337810, "abs32", "sec:.bss", 2627330 ], [ ".run", - 339318, + 339320, "abs32", "sec:.run", 3332 ], [ ".run", - 339322, + 339324, "abs32", "sec:.run", 3404 ], [ ".run", - 339796, + 339798, "abs32", "sec:.run", - 339984 + 339986 ], [ ".run", - 339800, + 339802, "abs32", "sec:.run", - 339920 + 339922 ], [ ".run", - 339816, + 339818, "abs32", "sec:.run", - 339884 + 339886 ], [ ".run", - 339820, + 339822, "abs32", "sec:.run", - 339836 + 339838 ], [ ".run", - 339884, + 339886, "abs32", "sec:.boot", 1072 ], [ ".run", - 339888, + 339890, "abs32", "sec:.boot", 1081 ], [ ".run", - 339896, + 339898, "abs32", "sec:.boot", 1144 ], [ ".run", - 339900, + 339902, "abs32", "sec:.boot", 1166 ], [ ".run", - 339908, + 339910, "abs32", "sec:.boot", 1108 ], [ ".run", - 339912, + 339914, "abs32", "sec:.boot", 1129 ], [ ".run", - 339984, + 339986, "abs32", "sec:.boot", 1072 ], [ ".run", - 339988, + 339990, "abs32", "sec:.boot", 1081 ], [ ".run", - 339996, + 339998, "abs32", "sec:.boot", 1084 ], [ ".run", - 340000, + 340002, "abs32", "sec:.boot", 1106 ], [ ".run", - 340008, + 340010, "abs32", "sec:.boot", 1108 ], [ ".run", - 340012, + 340014, "abs32", "sec:.boot", 1129 ], [ ".run", - 340020, + 340022, "abs32", "sec:.boot", 1132 ], [ ".run", - 340024, + 340026, "abs32", "sec:.boot", 1144 ], [ ".run", - 340060, + 340062, "abs32", "sec:.bss", 4328108 ], [ ".run", - 340064, + 340066, "abs32", "sec:.bss", 4319916 ], [ ".run", - 340068, + 340070, "abs32", "sec:.run", - 346226 + 346228 ], [ ".run", - 340072, + 340074, "abs32", "sec:.run", - 346204 + 346206 ], [ ".run", - 340084, + 340086, "abs32", "sec:.run", - 343504 + 343506 ], [ ".run", - 340088, + 340090, "abs32", "sec:.run", - 343450 + 343452 ], [ ".run", - 340116, + 340118, "abs32", "sec:.run", - 343062 + 343064 ], [ ".run", - 340120, + 340122, "abs32", "sec:.run", - 343060 + 343062 ], [ ".run", - 340132, + 340134, "abs32", "sec:.run", - 340608 + 340610 ], [ ".run", - 340136, + 340138, "abs32", "sec:.run", - 340586 + 340588 ], [ ".run", - 340180, + 340182, "abs32", "sec:.run", - 340198 + 340200 ], [ ".run", - 340184, + 340186, "abs32", "sec:.run", - 340196 + 340198 ], [ ".run", - 348850, + 348852, "abs32", "sec:.run", 205314 ], [ ".run", - 348854, + 348856, "abs32", "sec:.run", 205206 ], [ ".run", - 348858, + 348860, "abs32", "sec:.run", 203568 ], [ ".run", - 348862, + 348864, "abs32", "sec:.run", 205098 ], [ ".run", - 348870, + 348872, "abs32", "sec:.run", 203562 ], [ ".run", - 348874, + 348876, "abs32", "sec:.run", 203550 ], [ ".run", - 348878, + 348880, "abs32", "sec:.run", 203618 ], [ ".run", - 348882, + 348884, "abs32", "sec:.run", 204946 ], [ ".run", - 348886, + 348888, "abs32", "sec:.run", 202954 ], [ ".run", - 348890, + 348892, "abs32", "sec:.run", 203766 ], [ ".run", - 349238, + 349240, "abs32", "sec:.run", 352761 ], [ ".run", - 349242, + 349244, "abs32", "sec:.run", 352967 ], [ ".run", - 349246, + 349248, "abs32", "sec:.run", 352962 ], [ ".run", - 349250, + 349252, "abs32", "sec:.run", 352967 ], [ ".run", - 349254, + 349256, "abs32", "sec:.run", 352962 ], [ ".run", - 349258, + 349260, "abs32", "sec:.run", 353012 ], [ ".run", - 349262, + 349264, "abs32", "sec:.run", 353017 ], [ ".run", - 349266, + 349268, "abs32", "sec:.run", 353037 ], [ ".run", - 349270, + 349272, "abs32", "sec:.run", 353056 ], [ ".run", - 349274, + 349276, "abs32", "sec:.run", 353072 ], [ ".run", - 349278, + 349280, "abs32", "sec:.run", 352761 ], [ ".run", - 349282, + 349284, "abs32", "sec:.run", 353083 ], [ ".run", - 349286, + 349288, "abs32", "sec:.run", 353092 ], [ ".run", - 349290, + 349292, "abs32", "sec:.run", 353101 ], [ ".run", - 349294, + 349296, "abs32", "sec:.run", 353110 @@ -93968,7 +94039,7 @@ "freestanding.c": "698d66b43a956e789c8b3057375a195db12e9a88968d2fbb3c7ce09a8021b575", "fxmap.c": "4a3b7e97a68745e3a1c57fb594107a95d15e2b8c1746a5b57b8e680215bc80cf", "fxpage.c": "9ea7a4ab8f4106428235efb80daf925745bc1f077c581f22c8a1514564314448", - "identity.c": "9bdaca506e2c1a5a03144de576e75f6a5bf8a13a0b854aafc994a8b48dcb0e34", + "identity.c": "2202003da239361c8e1eb98e41b69288887dbdbb429fd13c80e28e301e25d60c", "loader.c": "d84ed93ec43653825a65f05992310a049c3ec8fba5708ec306afbcb086003824", "machine_admission.c": "fb551bab034a1b789bb80437967778cd0ca179ac29190f839e7d1ec3892bc862", "machine_admission_runtime.c": "157bef693d16d3c2797e4003f242cf180f5004715664457432fbf1dda494a1b9", @@ -93995,7 +94066,7 @@ "selection.c": "50909e4e5845682384e7c7d6572a9bbdb785e6694b988e1ff198ecf77716972f", "sha256.c": "9e19fb3a7de7ff56a3910610eac0304c66ab1b5df1290979c732c1642fdee7d1", "slots.c": "f177b407d274b7e51035e6fd655a014810149e61f3f08686d28168de93711f2d", - "status.c": "f0c2490d84901f904d3681551543327f031958318ec886cd5261745859b9aebc", + "status.c": "f29b2374e35c49ff901ba3bd2385b2ef80f9038e10e67e56826ad4a6d3b88482", "stock_140c.c": "ddfc6798f660a7b958041b47cc3e079b1fe50e861c5dd665407dfd2af2beadaf", "stock_hook_driver.c": "aaa2815e73ace2b0c72df21ce10df7fe7bf8d6f5a447275c66ffd856b7c03e71", "stock_hook_resources.c": "a8f60d845c517df4bf1503a085fdf00d4d84cbd2b70279ca34a223c27287eeec", diff --git a/src/engine/assets/octatrack-module-packages.json b/src/engine/assets/octatrack-module-packages.json index 1f57617a64..234b94160e 100644 --- a/src/engine/assets/octatrack-module-packages.json +++ b/src/engine/assets/octatrack-module-packages.json @@ -338,7 +338,7 @@ "bytes": 2636, "sha256": "6cf9892ded68b89660aed1d3c77028530722a734a0587036ae76eb74b45409b6", "path": "octatrack-modules/sidechain-compressor/0.2.2-experimental.mwrm", - "requiredBase": "dfa438130710fea9dfac40296d1a7db79b6ba3efc45c77b043ae6d45f44d3921" + "requiredBase": "0d52edc1b4dffbd9d6dfe66c1b3ccb7e42b30fce7ff6701525c67bba783cabb7" }, { "id": "output-matrix", @@ -354,7 +354,7 @@ "bytes": 3740, "sha256": "d67e9a432c59f8f430b20f3ada22f74317209169062941f5290f6b66f6d3e4e2", "path": "octatrack-modules/output-matrix/0.1.1-experimental.mwrm", - "requiredBase": "dfa438130710fea9dfac40296d1a7db79b6ba3efc45c77b043ae6d45f44d3921" + "requiredBase": "0d52edc1b4dffbd9d6dfe66c1b3ccb7e42b30fce7ff6701525c67bba783cabb7" }, { "id": "cc-map", @@ -370,7 +370,7 @@ "bytes": 966, "sha256": "c7cd39a5f645d69279d3a288c40b8366e6638acdc042cf0fe68dfb9964a68ea2", "path": "octatrack-modules/cc-map/0.1.2-experimental.mwrm", - "requiredBase": "dfa438130710fea9dfac40296d1a7db79b6ba3efc45c77b043ae6d45f44d3921" + "requiredBase": "0d52edc1b4dffbd9d6dfe66c1b3ccb7e42b30fce7ff6701525c67bba783cabb7" }, { "id": "quantize-live-rec-toggle", @@ -448,7 +448,7 @@ "bytes": 1818, "sha256": "71bd73bdab4b32b9a4fdbc48d0f89ab07f8dada0213f6a76216f8f1aebbad8bd", "path": "octatrack-modules/recorder-loop-fix/0.1.0-experimental.mwrm", - "requiredBase": "dfa438130710fea9dfac40296d1a7db79b6ba3efc45c77b043ae6d45f44d3921" + "requiredBase": "0d52edc1b4dffbd9d6dfe66c1b3ccb7e42b30fce7ff6701525c67bba783cabb7" }, { "id": "analog-bassdrum", @@ -464,7 +464,7 @@ "bytes": 26172, "sha256": "40b2d12280b56bfeb3db925a668bc759019f8db45b58580ad3f5389249df1baf", "path": "octatrack-modules/analog-bassdrum/0.1.7-experimental.mwrm", - "requiredBase": "dfa438130710fea9dfac40296d1a7db79b6ba3efc45c77b043ae6d45f44d3921", + "requiredBase": "0d52edc1b4dffbd9d6dfe66c1b3ccb7e42b30fce7ff6701525c67bba783cabb7", "requires": 0, "claims": 1, "entries": 1 From ecb1486b0750f33c40d7580df28e8a5007328364 Mon Sep 17 00:00:00 2001 From: repeat98 Date: Wed, 18 Nov 2026 22:01:31 +0100 Subject: [PATCH 048/415] AGENTS.md: the base rule within the word cap; shared base code follows it too Co-Authored-By: Claude Opus 5.5 --- AGENTS.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 9cba5cfacb..7ecc3f443b 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -36,7 +36,7 @@ Skills load on clone: Claude Code reads `.claude/skills/`, Codex the identical ` - Refuse a module that breaks the [modding guidelines](MODDING_GUIDELINES.md): copied code, firmware, samples, artwork or trademarked names, a port without permission or licence, an unlock of what a maker sells, one instrument's firmware in another, a clone of the maker's other current products, even rewritten, or broken encryption. Say why briefly and offer an original take. Ideas, techniques and published algorithms are free; when a source or licence is unclear, ask before writing anything. - Before you write a module, read [docs/module-guides/README.md](docs/module-guides/README.md) and its category's guide, then [docs/ADD_A_MODULE.md](docs/ADD_A_MODULE.md) for the folder, manifest, packages and evidence. Anything that acts in time follows [sequencing.md](docs/module-guides/sequencing.md): the instrument's own tempo, track speed and swing, never a clock of your own. Run `npm run module:doctor -- ` until it is green. [sdk/AGENTS.md](sdk/AGENTS.md) has the module rules in working order. - Build every module to work with everything else: it never patches a stock site another module or the base patches, and subscribes to the machine's hooks instead ([Cross-compatibility](docs/module-guides/README.md#cross-compatibility)). It declares the key gestures and stock screens it takes in `compatibility.uiClaims`, and a deliberate clash in `compatibility.conflicts`, so the configurator never offers both together. -- Refuse a module that depends on another. Every module builds, installs and works as the only module chosen, on the stock OS, the base and the shared SDK: no `requires`, no hooks into another module's code, rows, tables or files, no pull request stacked on another's. Shared code goes into the base or the shared SDK first, in its own owner-reviewed pull request, or both features ship as one module, but never two effects ([one effect per module](docs/module-guides/effects.md#one-effect-per-module)). There is no exception. +- Refuse a module that depends on another. Every module builds, installs and works as the only module chosen, on the stock OS, the base and the shared SDK: no `requires`, no hooks into another module's code, rows, tables or files, no pull request stacked on another's. Shared code goes into the base or the shared SDK first, owner-reviewed, or both features ship as one module, but never two effects ([one effect per module](docs/module-guides/effects.md#one-effect-per-module)). There is no exception. - Before changing Octatrack DSP or ColdFire code, read the traps in [sdk/octabam/AGENTS.md](sdk/octabam/AGENTS.md), [its frozen register](sdk/octabam/docs/TRAPS.md) and the [stock-patch](docs/OCTATRACK_HARDWARE_TRAPS.md#patching-stock-code) and [load](docs/OCTATRACK_HARDWARE_TRAPS.md#coldfire-and-dsp-load) traps; the rest is base work. Leave octabam's AGENTS.md intact: its code cites it, and its `make` commands are upstream's. `npm run upstream:tools` keeps verified upstream checkouts outside Git; never copy them into `sdk/octabam/`. Octatrack modules live in `sdk/octatrack/modules` (`sdk/octabam/modules` is a generated copy). ## Testing and the instrument @@ -47,7 +47,7 @@ Skills load on clone: Claude Code reads `.claude/skills/`, Codex the identical ` ## Pull requests -- Work on a branch off current `main`; a push to `main` deploys, so never push to it. Add this session's work to your open pull request with an updated description; open another only when none is open, for each `/modwerk-contribute` change, and for a module release or new module, which ships alone. A base change goes on its machine's one cumulative draft base pull request (branch `base/-next`, opened when none is open; a contributor's base pull request is merged into it), never a base release of its own: the owner decides when it ships. Push once the developer says their testing is done, then `gh pr create` before you report the work as done; a built package or base opens as a draft until that exact build ran on a unit, named in the description. [Machine maintainers](docs/DEVELOPER_WORKFLOW.md#who-reviews-a-first-release) or the owner merge every module's first release; registered authors then release their own updates ([docs/MODULE_AUTHOR_UPDATES.md](docs/MODULE_AUTHOR_UPDATES.md)). +- Work on a branch off current `main`; a push to `main` deploys, so never push to it. Add this session's work to your open pull request with an updated description; open another only when none is open, for each `/modwerk-contribute` change, and for a module release or new module, which ships alone. Base changes join their machine's draft `base/-next` pull request; the owner ships it. Push once the developer says their testing is done, then `gh pr create` before reporting the work done; a built package or base stays a draft until that exact build ran on a unit, named in the description. [Machine maintainers](docs/DEVELOPER_WORKFLOW.md#who-reviews-a-first-release) or the owner merge every module's first release; registered authors then release their own updates ([docs/MODULE_AUTHOR_UPDATES.md](docs/MODULE_AUTHOR_UPDATES.md)). - Fold what you learn back into the context. First ask whether `module:doctor`, `pr:ready` or a test can catch it next time, and add that; write a sentence only for what no program can see, in the file a reader would open for that task: the matching guide, or this file. Correct a stale line rather than contradict it; keep it short, general and stock-free. A document in `docs/` and this file stay under 40 KB, so make room rather than append; history goes in a dated record ([where](docs/README.md)). Every pull request says what the guides lacked or got wrong and where you fixed it, and "nothing" is a fine answer ([Share what you learn](docs/DEVELOPER_WORKFLOW.md#share-what-you-learn)). - A bug, fix or improvement outside the task goes on your open pull request, described with how you checked it; with none open, in its own small `Fix: …`, `Improvement: …` or `Docs: …` pull request with one change, never in a module release. In a contributor's fork, offer it and open it with their OK; if you can't fix it, open an issue ([Fixes and improvements](docs/DEVELOPER_WORKFLOW.md#fixes-and-improvements)). @@ -55,4 +55,4 @@ Skills load on clone: Claude Code reads `.claude/skills/`, Codex the identical ` - For app and backend work, see [docs/APP_DEVELOPMENT.md](docs/APP_DEVELOPMENT.md). Keep the module creator support flow (the Ko-fi cup, per-module ownership checks and the frame policies in `vite.config.ts` and `public/_headers`) as it is ([creator support](docs/APP_DEVELOPMENT.md#module-creator-support)). - A machine follows the Octatrack's [recipe](docs/MACHINE_RECIPE.md), its page beta-only (`hasBetaUi`). The base is Modwerk's, started from an upstream core's source, and owns what several modules share (a send bus, an FX list). Extend the Octatrack's pieces, never design a second set. -- Running the live site is the owner's work (issue fixes and releases, mail, the owner's computer): [docs/OWNER_OPERATIONS.md](docs/OWNER_OPERATIONS.md), read only when the owner asks for one of those. When the owner says "maintain", run the daily pass in [docs/MAINTENANCE.md](docs/MAINTENANCE.md). +- Running the live site is the owner's work (issue fixes and releases, mail, the owner's computer): [docs/OWNER_OPERATIONS.md](docs/OWNER_OPERATIONS.md), read only when the owner asks. When the owner says "maintain", run the daily pass in [docs/MAINTENANCE.md](docs/MAINTENANCE.md). From cf24d5d0390aece0d9e624aa8ade4201a7f9cb6e Mon Sep 17 00:00:00 2001 From: claptom-music <350865352+Claptom-music@users.noreply.github.com> Date: Wed, 18 Nov 2026 22:44:54 +0100 Subject: [PATCH 049/415] Record how the Digitakt II sound chip sets up and renders a sample voice Coupled emulator trace of one stock SAMPLE voice: the type dispatch only sets a voice up, a separate render pass picks the renderer without looking at the type, each voice writes 32 samples to its own slot of a shared buffer, and a playing voice costs about 3,500 instructions per block. Notes the registers the dispatcher must keep and the second site an added machine's render needs. --- .../elekloader/modwerk/MACHINES.md | 26 ++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md index 1dba8169f6..b3e2e0f964 100644 --- a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md @@ -48,7 +48,7 @@ The base gives each entry a machine type after the stock seven in contribution o ## Sound-chip sites (SHARC section 7, short-word addresses) -Static reads on 18 November 2026; not yet traced. +Static reads on 18 November 2026, confirmed by the coupled trace below. | Site | What it does | Use | | --- | --- | --- | @@ -88,12 +88,32 @@ Development base `7edbd8bf` (29 sites; `.run` 10,732 bytes, 284 more than base ` - **Dispatcher.** A base-owned SHARC routine: for a type below 7 it replays the displaced instruction and returns to stock; for an added type with a sound-chip routine it saves the registers the voice loop keeps, calls the module's voice routine with the voice record, and resumes at the shared continuation (`0x1c65fe`) so the stock filter, amp envelope and panning still process the voice. - **Module routines.** Each machine package carries its sound-chip code in L2 (the free range `0x2001ab7c`-`0x200fa000`, as the render subscribers do) and names a note-on and a render entry; the base keeps a table of them by machine type. - **Builder.** `src/engine/elektron/dt2-sharc.ts` patches exactly two fixed sites (render and receive). It needs a list of base sites and per-machine allocations, in the same verified way. -- **Still to trace in the emulator (SHARC):** where a per-type setup hands the voice to the sample renderer (`0x1c4f81` has no direct caller, so it is reached through a pointer, probably the table at `0x8055c840`), which buffer a voice renders into, which registers the loop keeps live across `0x1c6550`-`0x1c65fe`, and the cost per voice. A module's voice routine must stay inside the block's time budget with all 16 tracks playing. +- **Traced (below).** The type dispatch only sets a voice up; rendering is a separate pass that does not look at the type. So an added type most likely plays nothing today because its voice is never set up (no step, no START/LEN), not because the renderer skips it (inferred from the stock trace; type 7 not traced yet). + +### Sound-chip trace of one SAMPLE voice (18 November 2026) + +Coupled emulator run (ColdFire and SHARC together, digikit `sharc_live`, interpreter only: `SHARC_AOT=0`, no fast regions) of the stock OS 1.17 from a card-ready snapshot with one 1 s, 48 kHz mono test tone on the card, `NOTE_EVENTS=trig` (track 1 trig). Register dumps (`SHARC_PCDUMP`) at the sites, then every instruction of the note-on block. The run's audio hash matched the same run with the fast tiers on, so the trace is of the normal behaviour. Emulator only; instruction counts are emulator instructions, not silicon cycles. + +The per-voice loop (`0x1c642a`) runs once per 32-sample block and walks 32 voice slots in three passes: + +| Pass | What happens | Cost per block | +| --- | --- | --- | +| 1. Setup, `0x1c654c`-`0x1c6ad1` | Per voice: on a trig, the note-on reset `0x1c4eaf` (called at `0x1c6582`, before the type test, so it runs for every type). Then the type test `0x1c6550`-`0x1c6561` (type in `R6`) and the jump at `0x1c6579` through `0x8055c840` (indexed by type; type 0 lands at `0x1c65bd`), which calls the sample setter `0x1c4afe` with the voice state in `R4`. All types meet at `0x1c65fe` for the parameter work that follows (about 530 instructions). | About 1,000 instructions per voice (1,440 on the trig), 33,400 for 32 voices | +| 2. Render, `0x1c6ae8`-`0x1c6b09` | Per voice: a per-voice flag word (bit 1) picks `0x1c5576` or `0x1c4ecf`; the SAMPLE voices took `0x1c4ecf`. It tests the voice's playing bit (state word at `+0x1b8`, test at `0x1c4f21`-`0x1c4f25`) and branches to `0x1c4f81` only when the voice plays: that is how the "uncalled" renderer is reached. No machine-type test in this pass. | 109 instructions for a silent voice, about 3,600 for a playing one | +| 3. Per-voice processing, `0x1c6b0f` onwards | Six routines for every voice slot, playing or not (`0x1cdd8b`, `0x1cb3d8`, `0x1cdecb`, `0x1ccbd8`, `0x1cdbb2`, `0x1cbb57`). The third dispatch at `0x1c6c10`-`0x1c6c19` (value below 7, table `0x8055c874`) reads a different per-voice field (1 for every voice in this kit), not the machine type; probably the filter type. Then `0x1c71ec` once per track (16), then the mix `0x1c308a`. | About 55,500 for 32 voices; 8,100 per 16 tracks; 81,000 for the mix | + +- **Records.** Voice parameter record in `I14`, 32 records of `0xdc` bytes from `0x250738`. Voice state record of `0x1d8` bytes from `0x2412cc` (`I15` points `0x188` into it; the setter and the renderer get its start in `R4`). +- **Render path of a playing voice.** `0x1c4f81` reads the sample from external memory (`0x84xxxxxx` in this run) and stages 64 words in the voice state record (loop `0x1c5099`-`0x1c5101`, about 2,500 instructions), then calls the interpolator `0xb80000` (32 iterations of about 27 instructions) and returns through `0x1c4f56`. +- **Output buffer.** Each voice writes its 32 samples, one 32-bit word each, to its own slot of a shared area: voice 0 at `0x8045b3c0`, voice 1 at `0x8045b440`, so `0x8045b3c0 + 0x80 * voice` up to `0x8045c3c0` (pass 3 loads `0x8045c3c0` just after). One trig on track 1 played two voice slots (0 and 1), both rendering for the whole note. +- **Registers across the dispatch.** The continuation at `0x1c65fe` reads, before writing them, the frame and stack (`I6`, `I7`), both voice pointers (`I14`, `I15`), `I0`-`I3`, `I5`, `I8`-`I11`, the modify registers (`M1`-`M3`, `M5`-`M11`, `M13`), `MODE1` and the float registers `F0`, `F1`, `F6`-`F10`, `F12`-`F15`. The type of 6 or more already reaches it straight from `0x1c6561` with what the code before the test left, so the dispatcher's rule is: for an added type, save every register, run the module's setup, restore them all and jump to `0x1c65fe`, exactly like the skip path. The setup leaves its results in the voice state record, as `0x1c4afe` does, not in registers. +- **Cost and budget.** The block is 666,667 instructions (`DSP_PERIOD`); stock with one note used about 199,000 to 211,000 (median busy 210,896; 68% idle). A playing SAMPLE voice costs about 3,500 more per block than a silent one, about 110 per output sample; 32 playing voices would add about 112,000. So an added machine's render can cost about as much as a SAMPLE voice without trouble, but the real unit's cycle count (external memory waits) is still to measure. +- **What this means for the hook.** Two sites, not one: the setup dispatch at `0x1c6550` (an added type gets its own setup, or SAMPLE's when its machine plays samples the stock way) and, for a machine that renders its own sound, the render choice at `0x1c6ae8`-`0x1c6afd`, where the base would call the module's render for an added type's voice and write into the same voice slot at `0x8045b3c0 + 0x80 * voice`. The third dispatch (`0x1c6c10`) is not by machine type and needs nothing. +- **Line input.** Not reached in this trace: the block's own work (passes 1-3 and the mix) reads no input buffer that could be told apart. Finding where the input arrives each block (for a SOURCE = SAMPLE or INPUT setting) needs a run with audio on the input, watching the mix `0x1c308a`. ## Still to check - Every reader of the type byte and every per-type table: MIDI CC/NRPN tables, the machine menu list, the per-type parameter-code table, the SRC page view. - Kit and project save and load of an added type, and the stock OS's behaviour when it loads one. -- The sound chip's per-voice dispatch and the sample slot record it passes. +- The sample slot record the setup passes, and which per-voice flag picks `0x1c5576` over `0x1c4ecf` in the render pass. - Free sound-chip time per block on a real unit, and whether an inactive track's voice still costs time (decides LINK). From 44d3d36ccbfea85ce13ff3987a81aeb01387a394 Mon Sep 17 00:00:00 2001 From: claptom-music <350865352+Claptom-music@users.noreply.github.com> Date: Wed, 18 Nov 2026 23:25:09 +0100 Subject: [PATCH 050/415] Record how an added Digitakt II machine type reaches the sound chip Coupled emulator runs: the base leaves normal playback byte-identical; an added type arrives at the sound chip as SAMPLE and plays its sample; a first setup detour broke the voice by using a register the stock code still needs. The next step is a distinct value for added types in the DSP frame. --- .../elekloader/modwerk/MACHINES.md | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md index b3e2e0f964..11d03f6aa2 100644 --- a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md @@ -84,11 +84,11 @@ Development base `7edbd8bf` (29 sites; `.run` 10,732 bytes, 284 more than base ` ## Sound-chip hook: design (not built) -- **Site.** The type test in the per-voice loop (short-word PC `0x1c654e`-`0x1c6561`; section-7 byte address `0x28000000 + 2 * PC`, so `0x2838ca9c` onwards). Today a type of 6 or more skips the per-type setup and an added type plays nothing. The base replaces one 48-bit instruction there with a jump to its machine dispatcher, guarded by SHA-256 like the render and receive sites. +- **Site.** The type test in the per-voice loop (short-word PC `0x1c654e`-`0x1c6561`; section-7 byte address `0x28000000 + 2 * PC`, so `0x2838ca9c` onwards). On the sound chip a type of 6 or more skips the per-type setup, but an added type never arrives there as itself (below). The base replaces one 48-bit instruction there with a jump to its machine dispatcher, guarded by SHA-256 like the render and receive sites. - **Dispatcher.** A base-owned SHARC routine: for a type below 7 it replays the displaced instruction and returns to stock; for an added type with a sound-chip routine it saves the registers the voice loop keeps, calls the module's voice routine with the voice record, and resumes at the shared continuation (`0x1c65fe`) so the stock filter, amp envelope and panning still process the voice. - **Module routines.** Each machine package carries its sound-chip code in L2 (the free range `0x2001ab7c`-`0x200fa000`, as the render subscribers do) and names a note-on and a render entry; the base keeps a table of them by machine type. - **Builder.** `src/engine/elektron/dt2-sharc.ts` patches exactly two fixed sites (render and receive). It needs a list of base sites and per-machine allocations, in the same verified way. -- **Traced (below).** The type dispatch only sets a voice up; rendering is a separate pass that does not look at the type. So an added type most likely plays nothing today because its voice is never set up (no step, no START/LEN), not because the renderer skips it (inferred from the stock trace; type 7 not traced yet). +- **Traced (below).** The type dispatch only sets a voice up; rendering is a separate pass that does not look at the type. An added type does not reach the sound chip as itself: it arrives as 0 and plays as SAMPLE (emulator check below). ### Sound-chip trace of one SAMPLE voice (18 November 2026) @@ -110,6 +110,22 @@ The per-voice loop (`0x1c642a`) runs once per 32-sample block and walks 32 voice - **What this means for the hook.** Two sites, not one: the setup dispatch at `0x1c6550` (an added type gets its own setup, or SAMPLE's when its machine plays samples the stock way) and, for a machine that renders its own sound, the render choice at `0x1c6ae8`-`0x1c6afd`, where the base would call the module's render for an added type's voice and write into the same voice slot at `0x8045b3c0 + 0x80 * voice`. The third dispatch (`0x1c6c10`) is not by machine type and needs nothing. - **Line input.** Not reached in this trace: the block's own work (passes 1-3 and the mix) reads no input buffer that could be told apart. Finding where the input arrives each block (for a SOURCE = SAMPLE or INPUT setting) needs a run with audio on the input, watching the mix `0x1c308a`. +### Emulator check: an added type on the sound chip (19 November 2026) + +Coupled runs (digikit `sharc_live`, `NOTE_EVENTS=trig` on track 1, the sidechain work's test card and DSP state, `SAVE_QUIET_FRAMES=200` so the trig comes after the card's samples have loaded; without that wait every run, stock included, was silent). Development base with the test machine; for the forced runs a local, uncommitted ev_tick fixture kept track 1's type byte at 7. + +| Run | Result | +| --- | --- | +| Base, track 1 left on SAMPLE (type 0), stock sound-chip code | The test tone plays; PCM since ready is byte-identical to the stock OS run (`164c7c67...`). The base changes nothing in normal playback. | +| Track 1 forced to type 7, stock sound-chip code | The tone plays at the same level (peak 0.063, RMS 0.04). The sound chip's register at the type test held 0 for every voice: the ColdFire sends the DSP a translated machine value, and type 7 arrives as 0. | +| Track 1 forced to type 7, a local sound-chip detour at `0x1c6553` (type 7 to 0, then the displaced instruction) | Almost silent. The displaced instruction (`compu`) does not write `R0`; `R0` still holds 128.0 from `0x1c6550` and is used after `0x1c6556`. The detour used `R0` as scratch (and left the integer-overflow sticky bits set), which broke the voice. | + +What it changes: + +- A machine that plays its sample the stock way needs no sound-chip hook: the ColdFire side alone (menu, name, knobs, saving) already gives it working sound in the emulator. +- A machine with its own sound (Mikrotakt's grains) needs the sound chip to tell its voices apart. Next: find where the ColdFire turns the type into the DSP's value (the per-track words of the DSP frame) and send a distinct value for an added type, then the render hook at `0x1c6ae8`. +- Any sound-chip detour must preserve every register and the sticky status it touches, including registers the displaced instruction only reads (`R0` here). + ## Still to check From c203c6d99715b8ef2ae6f39a988b0eac38b08c17 Mon Sep 17 00:00:00 2001 From: claptom-music <350865352+Claptom-music@users.noreply.github.com> Date: Wed, 18 Nov 2026 23:26:40 +0100 Subject: [PATCH 051/415] Record where the Digitakt II sound chip translates the machine type The ColdFire sends the raw type; the sound chip looks up a per-type selector in a seven-entry table. Added types need a longer table and a render hook that reads the raw type. --- sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md index 11d03f6aa2..89af1fe55b 100644 --- a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md @@ -123,7 +123,8 @@ Coupled runs (digikit `sharc_live`, `NOTE_EVENTS=trig` on track 1, the sidechain What it changes: - A machine that plays its sample the stock way needs no sound-chip hook: the ColdFire side alone (menu, name, knobs, saving) already gives it working sound in the emulator. -- A machine with its own sound (Mikrotakt's grains) needs the sound chip to tell its voices apart. Next: find where the ColdFire turns the type into the DSP's value (the per-track words of the DSP frame) and send a distinct value for an added type, then the render hook at `0x1c6ae8`. +- A machine with its own sound (Mikrotakt's grains) needs the sound chip to tell its voices apart. It can: the ColdFire sends the raw type, and the translation happens on the sound chip (static read, 19 November 2026). In `0x1c24e9`, `M2 = DM(0x255970 + track)` loads the track's raw machine type (`0x1c26d4`), and `S2 = DM(0x2567c0 + type)` (`0x1c273c`, table address set at `0x1c2731`) reads one word per type from a seven-entry table and stores it as the track's selector. A type of 7 reads the word after the table, which held a SAMPLE selector in the run above; higher types read whatever data follows. +- So the base needs, on the sound chip: a longer selector table in its own L2 (the seven stock words, then one per added machine: SAMPLE's for a sample-backed machine) with the address at `0x1c2731` pointed at it, so no added type reads past the table; and a render hook at `0x1c6ae8` that reads the raw type (`DM(0x255970 + track)`) to call an added machine's own render. - Any sound-chip detour must preserve every register and the sticky status it touches, including registers the displaced instruction only reads (`R0` here). ## Still to check From fbb8edeefbee5bd1e7e17afc044ebd2a517fad82 Mon Sep 17 00:00:00 2001 From: claptom-music <350865352+Claptom-music@users.noreply.github.com> Date: Wed, 18 Nov 2026 23:56:43 +0100 Subject: [PATCH 052/415] Correct the sound-chip check of an added Digitakt II machine type The forced-type run skipped the setter, so the sound chip never saw type 7. Chosen through the menu, the test machine plays at the same level but through the stock path the selector word after the table names; record the table's contents. --- sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md index 89af1fe55b..b5d1759e96 100644 --- a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md @@ -117,13 +117,14 @@ Coupled runs (digikit `sharc_live`, `NOTE_EVENTS=trig` on track 1, the sidechain | Run | Result | | --- | --- | | Base, track 1 left on SAMPLE (type 0), stock sound-chip code | The test tone plays; PCM since ready is byte-identical to the stock OS run (`164c7c67...`). The base changes nothing in normal playback. | -| Track 1 forced to type 7, stock sound-chip code | The tone plays at the same level (peak 0.063, RMS 0.04). The sound chip's register at the type test held 0 for every voice: the ColdFire sends the DSP a translated machine value, and type 7 arrives as 0. | +| Track 1 forced to type 7, stock sound-chip code | The tone plays at the same level (peak 0.063, RMS 0.04) and the sound chip's register at the type test held 0. **Not valid as a test of type 7:** the fixture wrote only the kit's type byte (`0x4265338e`) and skipped the setter, so the copy the ColdFire sends the sound chip most likely still said 0. Superseded by the next row. | +| Test machine chosen through the menu (FUNC+SRC, DOWN to it, YES twice; scripted panel `SC_SCRIPT`), stock sound-chip code | The tone plays at the same level (peak 0.0628 against 0.0630 for SAMPLE in the same run without the menu steps), but not bit for bit: aligned on the first sound, the difference is 25 dB below the tone. Consistent with the static read below (type 7 takes the selector word after the table, which is 1, WERP's) but not proven: a register dump at the lookup during the note is still to do. | | Track 1 forced to type 7, a local sound-chip detour at `0x1c6553` (type 7 to 0, then the displaced instruction) | Almost silent. The displaced instruction (`compu`) does not write `R0`; `R0` still holds 128.0 from `0x1c6550` and is used after `0x1c6556`. The detour used `R0` as scratch (and left the integer-overflow sticky bits set), which broke the voice. | What it changes: -- A machine that plays its sample the stock way needs no sound-chip hook: the ColdFire side alone (menu, name, knobs, saving) already gives it working sound in the emulator. -- A machine with its own sound (Mikrotakt's grains) needs the sound chip to tell its voices apart. It can: the ColdFire sends the raw type, and the translation happens on the sound chip (static read, 19 November 2026). In `0x1c24e9`, `M2 = DM(0x255970 + track)` loads the track's raw machine type (`0x1c26d4`), and `S2 = DM(0x2567c0 + type)` (`0x1c273c`, table address set at `0x1c2731`) reads one word per type from a seven-entry table and stores it as the track's selector. A type of 7 reads the word after the table, which held a SAMPLE selector in the run above; higher types read whatever data follows. +- Today an added type plays its sample through whichever stock path the word after the selector table names (word 7 is 1; words 8 and up are data addresses). That is luck, not design: the base must give every added type a defined selector. +- A machine with its own sound (Mikrotakt's grains) needs the sound chip to tell its voices apart. It can: the ColdFire sends the raw type, and the translation happens on the sound chip (static read, 19 November 2026). In `0x1c24e9`, `M2 = DM(0x255970 + track)` loads the track's raw machine type (`0x1c26d4`), and `S2 = DM(0x2567c0 + type)` (`0x1c273c`, table address set at `0x1c2731`) reads one word per type from a seven-entry table and stores it as the track's selector. The seven stock words map types 0-6 to selectors 0, 1, 2, 3, 4, 0, 5 (read from the OS 1.17 boot stream at byte `0x282567c0`); word 7, read by type 7, is 1, and the words after it are data addresses, read by types 8 and up. - So the base needs, on the sound chip: a longer selector table in its own L2 (the seven stock words, then one per added machine: SAMPLE's for a sample-backed machine) with the address at `0x1c2731` pointed at it, so no added type reads past the table; and a render hook at `0x1c6ae8` that reads the raw type (`DM(0x255970 + track)`) to call an added machine's own render. - Any sound-chip detour must preserve every register and the sticky status it touches, including registers the displaced instruction only reads (`R0` here). From 10891984b2cadd28b7d497da369fc8fc80eae3ef Mon Sep 17 00:00:00 2001 From: claptom-music <350865352+Claptom-music@users.noreply.github.com> Date: Thu, 19 Nov 2026 00:17:18 +0100 Subject: [PATCH 053/415] Record the selector-table relocation test on the Digitakt II sound chip A copied, longer selector table leaves stock playback byte-identical and does not change the test machine either, so the test machine's small difference from SAMPLE comes from elsewhere. --- sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md index b5d1759e96..0bede4f2be 100644 --- a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md @@ -128,6 +128,14 @@ What it changes: - So the base needs, on the sound chip: a longer selector table in its own L2 (the seven stock words, then one per added machine: SAMPLE's for a sample-backed machine) with the address at `0x1c2731` pointed at it, so no added type reads past the table; and a render hook at `0x1c6ae8` that reads the raw type (`DM(0x255970 + track)`) to call an added machine's own render. - Any sound-chip detour must preserve every register and the sticky status it touches, including registers the displaced instruction only reads (`R0` here). +### A longer selector table on the sound chip (local test, 19 November 2026) + +A local emulator-only DSP image changed one instruction: the table base at `0x1c2731` (`I3 = 0x2567c0`, SHA-256 of the six stock bytes `6b6ef0ae...`) now loads `0x8030040`, the normal-word address of a copy in free L2 (loader byte `0x200c0100`): the seven stock words, then 0 (SAMPLE's selector) for types 7 to 10. Same scripted runs as above, each started from a ready point saved with that DSP image (a saved point carries its own copy of the DSP's code and data, so a run restored from a point saved with the stock image does not see a patch at all): + +- Track 1 on SAMPLE: PCM byte-identical to the stock DSP image (`da40d90b...`). The copied table changes nothing for stock types. +- Test machine chosen through the menu: PCM byte-identical to the same run on the stock DSP image (`2129ca6e...`). So selector word 7 (1 in stock, 0 here) is not what makes the test machine differ from SAMPLE by -25 dB; that difference comes from somewhere else (the ColdFire's per-type tables or the parameter values it sends are the next suspects). +- The base still needs the longer table for safety (types 8 and up would read data addresses as selectors); this test shows the relocation itself is harmless. + ## Still to check From 31c046439fa686cf9f26200206f75a28806795d1 Mon Sep 17 00:00:00 2001 From: claptom-music <350865352+Claptom-music@users.noreply.github.com> Date: Thu, 19 Nov 2026 00:22:44 +0100 Subject: [PATCH 054/415] Let the Digitakt II SHARC builder take further guarded sites and add the machine selector table Dt2RenderPlan gains a list of base-owned sites; planDt2MachineSelectors copies the stock selector table to free L2 with one word per added machine and points the lookup at it; combineDt2Plans merges plan fragments. Unit tests cover what needs no firmware; a local build from OS 1.17 verifies and matches the emulator-tested image byte for byte. --- .../elekloader/modwerk/MACHINES.md | 2 +- src/engine/elektron/dt2-sharc.test.ts | 30 ++++++++ src/engine/elektron/dt2-sharc.ts | 73 +++++++++++++++++-- 3 files changed, 96 insertions(+), 9 deletions(-) create mode 100644 src/engine/elektron/dt2-sharc.test.ts diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md index 0bede4f2be..0e3a1a866a 100644 --- a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md @@ -87,7 +87,7 @@ Development base `7edbd8bf` (29 sites; `.run` 10,732 bytes, 284 more than base ` - **Site.** The type test in the per-voice loop (short-word PC `0x1c654e`-`0x1c6561`; section-7 byte address `0x28000000 + 2 * PC`, so `0x2838ca9c` onwards). On the sound chip a type of 6 or more skips the per-type setup, but an added type never arrives there as itself (below). The base replaces one 48-bit instruction there with a jump to its machine dispatcher, guarded by SHA-256 like the render and receive sites. - **Dispatcher.** A base-owned SHARC routine: for a type below 7 it replays the displaced instruction and returns to stock; for an added type with a sound-chip routine it saves the registers the voice loop keeps, calls the module's voice routine with the voice record, and resumes at the shared continuation (`0x1c65fe`) so the stock filter, amp envelope and panning still process the voice. - **Module routines.** Each machine package carries its sound-chip code in L2 (the free range `0x2001ab7c`-`0x200fa000`, as the render subscribers do) and names a note-on and a render entry; the base keeps a table of them by machine type. -- **Builder.** `src/engine/elektron/dt2-sharc.ts` patches exactly two fixed sites (render and receive). It needs a list of base sites and per-machine allocations, in the same verified way. +- **Builder.** `src/engine/elektron/dt2-sharc.ts` now takes further guarded sites beside render and receive (`Dt2RenderPlan.sites`), and `planDt2MachineSelectors` builds the longer selector table as one such site plus an L2 allocation (`combineDt2Plans` merges it with a render plan). Checked locally against OS 1.17: the built section verifies, refuses a selector outside the stock values and a table outside free L2, and packs to an image byte-identical to the one the emulator runs above used. Still open: the browser build does not add a SHARC plan yet (only `scripts/dt2-render-probe.ts` does), so the base's SHARC changes need a place in the build pipeline. - **Traced (below).** The type dispatch only sets a voice up; rendering is a separate pass that does not look at the type. An added type does not reach the sound chip as itself: it arrives as 0 and plays as SAMPLE (emulator check below). ### Sound-chip trace of one SAMPLE voice (18 November 2026) diff --git a/src/engine/elektron/dt2-sharc.test.ts b/src/engine/elektron/dt2-sharc.test.ts new file mode 100644 index 0000000000..7355bfb1d5 --- /dev/null +++ b/src/engine/elektron/dt2-sharc.test.ts @@ -0,0 +1,30 @@ +import { describe, expect, it } from 'vitest' +import { combineDt2Plans, planDt2MachineSelectors } from './dt2-sharc' + +// No Elektron firmware here: the stock-dependent checks are proved locally against the owner's OS file, and these +// tests cover what does not need it. +const allocation = (address: number) => ({ address, bytes: new Uint8Array(8) }) +const site = (address: number) => ({ address, guard: '0'.repeat(64), instruction: new Uint8Array(6) }) + +describe('Digitakt II SHARC plans', () => { + it('combines a render plan with base sites and keeps every allocation', () => { + const render = { renderInstruction: Uint8Array.of(1, 2, 3, 4, 5, 6), allocations: [allocation(0x200a0000)] } + const machines = { sites: [site(0x28384e62)], allocations: [allocation(0x200c0100)] } + expect(combineDt2Plans(render, null, machines)).toEqual({ + renderInstruction: render.renderInstruction, + receiveInstruction: undefined, + sites: machines.sites, + allocations: [...render.allocations, ...machines.allocations], + }) + expect(combineDt2Plans(null)).toBeNull() + }) + + it('refuses two plans that set the same fixed site', () => { + const render = { renderInstruction: new Uint8Array(6), allocations: [allocation(0x200a0000)] } + expect(() => combineDt2Plans(render, render)).toThrow('Two SHARC plans set the same site') + }) + + it('refuses a SHARC section that is not the pinned stock image before reading it', async () => { + await expect(planDt2MachineSelectors(new Uint8Array(64), 0x200c0100, [0])).rejects.toThrow('Unsupported Digitakt II SHARC image') + }) +}) diff --git a/src/engine/elektron/dt2-sharc.ts b/src/engine/elektron/dt2-sharc.ts index e60684330a..2e7f058d36 100644 --- a/src/engine/elektron/dt2-sharc.ts +++ b/src/engine/elektron/dt2-sharc.ts @@ -16,24 +16,34 @@ const L2_START = 0x2001ab7c, L2_END = 0x200fa000 type Block = { offset: number; flags: number; address: number; count: number; argument: number; end: number } type Allocation = { address: number; bytes: Uint8Array } +/** A base-owned site: one whole 48-bit instruction at a loader byte address, replaced only over its stock guard. */ +export type Dt2SharcSite = { address: number; guard: string; instruction: Uint8Array } export type Dt2RenderPlan = { - renderInstruction: Uint8Array + renderInstruction?: Uint8Array receiveInstruction?: Uint8Array + /** Further base-owned sites, such as the machine selector table's base (`planDt2MachineSelectors`). */ + sites?: readonly Dt2SharcSite[] allocations: readonly Allocation[] } const equal = (a: Uint8Array, b: Uint8Array) => a.length === b.length && a.every((byte, i) => byte === b[i]) -function sites(plan: Dt2RenderPlan) { - return [ - { address: RENDER_ADDRESS, guard: RENDER_GUARD, instruction: plan.renderInstruction }, +function sites(plan: Dt2RenderPlan): Dt2SharcSite[] { + const all = [ + ...(plan.renderInstruction ? [{ address: RENDER_ADDRESS, guard: RENDER_GUARD, instruction: plan.renderInstruction }] : []), ...(plan.receiveInstruction ? [{ address: RECEIVE_ADDRESS, guard: RECEIVE_GUARD, instruction: plan.receiveInstruction }] : []), + ...(plan.sites ?? []), ] + const starts = all.map(site => site.address).sort((a, b) => a - b) + if (!all.length || starts.some((address, i) => !Number.isInteger(address) || address % 2 || (i > 0 && address < starts[i - 1] + 6))) { + throw new Error('Invalid SHARC patch site') + } + return all } -function siteOffset(original: readonly Block[], address: number): number { +function siteOffset(original: readonly Block[], address: number, length = 6): number { const matches = original.filter(block => !(block.flags & (FIRST | FINAL | FILL)) && - address >= block.address && address + 6 <= block.address + block.count) + address >= block.address && address + length <= block.address + block.count) if (matches.length !== 1) throw new Error('Invalid SHARC patch site') return matches[0].offset + HEADER + address - matches[0].address } @@ -102,7 +112,7 @@ function blocks(bytes: Uint8Array): Block[] { /** Validate a depacked OS 1.17 section against a trusted base link plan. */ export async function verifyDt2RenderSection(stock: Uint8Array, built: Uint8Array, plan: Dt2RenderPlan): Promise { if (await sha256Hex(stock) !== STOCK_SECTION) throw new Error('Unsupported Digitakt II SHARC image') - if (built.length > DT2_SHARC_SECTION_LIMIT || plan.renderInstruction.length !== 6 || !plan.allocations.length) { + if (built.length > DT2_SHARC_SECTION_LIMIT || !plan.allocations.length) { throw new Error('Invalid SHARC render plan size') } checkAllocations(plan.allocations) @@ -140,7 +150,7 @@ export async function buildDt2RenderSection(stock: Uint8Array, plan: Dt2RenderPl const original = blocks(stock) const final = original[original.length - 1] const growth = plan.allocations.reduce((length, allocation) => length + HEADER + allocation.bytes.length, 0) - if (stock.length + growth > DT2_SHARC_SECTION_LIMIT || plan.renderInstruction.length !== 6 || !plan.allocations.length) { + if (stock.length + growth > DT2_SHARC_SECTION_LIMIT || !plan.allocations.length) { throw new Error('Invalid SHARC render plan size') } checkAllocations(plan.allocations) @@ -169,6 +179,53 @@ export async function buildDt2RenderSection(stock: Uint8Array, plan: Dt2RenderPl await verifyDt2RenderSection(stock, output, plan) return output } +// The machine selector lookup (in the track setup, short-word PC 0x1c2731) loads the base of a seven-word table that +// maps machine types 0-6 to the voice selector; a higher type reads past it. The base points it at a longer copy. +const SELECTOR_SITE = 0x28000000 + 2 * 0x1c2731 +const SELECTOR_GUARD = '6b6ef0ae1d21cc3860bb1fd860658c94652341826da44eeec9227d59be29c3af' +const SELECTOR_TABLE = 0x28000000 + 0x2567c0 // the stock table's loader byte address (normal word 0x2567c0) +const STOCK_SELECTORS = [0, 1, 2, 3, 4, 0, 5] +const I3 = 0x13 + +function readStored(stock: Uint8Array, address: number, length: number): Uint8Array { + const offset = siteOffset(blocks(stock), address, length) + return stock.subarray(offset, offset + length) +} + +/** A plan fragment giving added machine types (7 and up, in order) their voice selector: a copy of the stock table + * with `added` appended, placed at `tableAddress` in free L2, and the lookup's base pointed at it. */ +export async function planDt2MachineSelectors(stock: Uint8Array, tableAddress: number, added: readonly number[]): Promise { + if (await sha256Hex(stock) !== STOCK_SECTION) throw new Error('Unsupported Digitakt II SHARC image') + if (!added.length || added.some(value => !STOCK_SELECTORS.includes(value))) throw new Error('Invalid machine selector') + if (await sha256Hex(readStored(stock, SELECTOR_SITE, 6)) !== SELECTOR_GUARD) throw new Error('SHARC selector guard mismatch') + const view = new DataView(Uint8Array.from(readStored(stock, SELECTOR_TABLE, 4 * STOCK_SELECTORS.length)).buffer) + if (STOCK_SELECTORS.some((value, index) => view.getUint32(4 * index, true) !== value)) throw new Error('Unexpected SHARC selector table') + const words = [...STOCK_SELECTORS, ...added] + const table = new Uint8Array(4 * words.length) + words.forEach((value, index) => new DataView(table.buffer).setUint32(4 * index, value, true)) + const allocations = [{ address: tableAddress, bytes: table }] + checkAllocations(allocations) + // Type 17a, I3 = the table's normal-word address (L2 byte address / 4). + return { sites: [{ address: SELECTOR_SITE, guard: SELECTOR_GUARD, instruction: instruction(0x0f00 | I3, tableAddress / 4) }], allocations } +} + +/** One plan from several fragments (a render plan and the machine selectors, say). */ +export function combineDt2Plans(...plans: readonly (Dt2RenderPlan | null)[]): Dt2RenderPlan | null { + const present = plans.filter((plan): plan is Dt2RenderPlan => plan !== null) + if (!present.length) return null + const pick = (key: 'renderInstruction' | 'receiveInstruction') => { + const found = present.filter(plan => plan[key]) + if (found.length > 1) throw new Error('Two SHARC plans set the same site') + return found[0]?.[key] + } + return { + renderInstruction: pick('renderInstruction'), + receiveInstruction: pick('receiveInstruction'), + sites: present.flatMap(plan => plan.sites ?? []), + allocations: present.flatMap(plan => plan.allocations), + } +} + const RENDER_RESUME = 0x1c18a9 const RENDER_REGISTERS = [ ...Array.from({ length: 16 }, (_, index) => index), // R0–R15 From 492ccfb52f475e449b7233935f471bc2ed9dd20f Mon Sep 17 00:00:00 2001 From: claptom-music <350865352+Claptom-music@users.noreply.github.com> Date: Thu, 19 Nov 2026 00:40:36 +0100 Subject: [PATCH 055/415] Record the Digitakt II render hook test A dispatcher on the per-voice render call leaves stock voices byte-identical and hands an added machine's voices to their own player (a silent stand-in in the test). --- .../digitakt-ii/elekloader/modwerk/MACHINES.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md index 0e3a1a866a..c3ce90f671 100644 --- a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md @@ -136,6 +136,17 @@ A local emulator-only DSP image changed one instruction: the table base at `0x1c - Test machine chosen through the menu: PCM byte-identical to the same run on the stock DSP image (`2129ca6e...`). So selector word 7 (1 in stock, 0 here) is not what makes the test machine differ from SAMPLE by -25 dB; that difference comes from somewhere else (the ColdFire's per-type tables or the parameter values it sends are the next suspects). - The base still needs the longer table for safety (types 8 and up would read data addresses as selectors); this test shows the relocation itself is harmless. +### The render hook (local test, 19 November 2026) + +Facts used: the render pass calls the stock sample voice player once per voice (`CALL 0x1c4ecf` at `0x1c6b00`, a 48-bit type 25a call, SHA-256 of the stock bytes `4e25f0a1...`; `R14` counts the 32 voices down, so the voice is `32 - R14`); voices come in pairs per track (voice `v` belongs to track `v >> 1`); the track's raw machine type is the word `DM(0x255970 + track)` (a register dump of `0x1c273c` showed the lookup's index `M4` running 0-15 over the tracks each block). The stock player returns with `I12 = DM(I6, M7)`, `RETURN` and the return-frame slot (`0x1c4f56`, `0x1c4f7c`-`0x1c4f80`). + +A local DSP image pointed that call at a dispatcher in free L2 (code at loader byte `0x200c1000`, data at `0x200c2000`): it saves `R0`, `R1`, `I0`, `M0`, `ASTATX` and `STKYX`, finds the voice's track type through a 32-word voice-to-address table, restores everything and jumps either to the stock player or, for type 7, to a stand-in player that returns at once without writing (silence). Scripted coupled runs from a ready point saved with that image: + +- Track 1 on SAMPLE: PCM byte-identical to stock (`da40d90b...`). Every stock voice goes through the dispatcher and plays exactly as before. +- Test machine chosen through the menu: track 1 is silent for both notes (PCM `7a0ecce5...`), no halt, no missing blocks; the same run without the hook plays the tone. The dispatcher picks out the added machine's voices and hands them to their own player, and the render loop carries on after it returns. + +Next: a table of voice players by machine type in place of the fixed type 7, the player contract (inputs, the voice slot it writes, how it reports a finished note), and the dispatcher as a `planDt2*` site in `dt2-sharc.ts`. + ## Still to check From 3e3b7ebb5ec4495d6228bf98b224c31a0ec316ef Mon Sep 17 00:00:00 2001 From: claptom-music <350865352+Claptom-music@users.noreply.github.com> Date: Thu, 19 Nov 2026 00:45:14 +0100 Subject: [PATCH 056/415] Add the Digitakt II machine player dispatcher to the SHARC builder planDt2MachinePlayers sends each added machine type's voices to that machine's player and every other voice to the stock player. Built from OS 1.17 it loads the same bytes as the emulator-tested hook. Drafts the player contract. --- .../elekloader/modwerk/MACHINES.md | 14 +++- src/engine/elektron/dt2-sharc.test.ts | 4 +- src/engine/elektron/dt2-sharc.ts | 71 +++++++++++++++++++ 3 files changed, 87 insertions(+), 2 deletions(-) diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md index c3ce90f671..d8ddb07dbe 100644 --- a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md @@ -145,7 +145,19 @@ A local DSP image pointed that call at a dispatcher in free L2 (code at loader b - Track 1 on SAMPLE: PCM byte-identical to stock (`da40d90b...`). Every stock voice goes through the dispatcher and plays exactly as before. - Test machine chosen through the menu: track 1 is silent for both notes (PCM `7a0ecce5...`), no halt, no missing blocks; the same run without the hook plays the tone. The dispatcher picks out the added machine's voices and hands them to their own player, and the render loop carries on after it returns. -Next: a table of voice players by machine type in place of the fixed type 7, the player contract (inputs, the voice slot it writes, how it reports a finished note), and the dispatcher as a `planDt2*` site in `dt2-sharc.ts`. +In the builder: `planDt2MachinePlayers` in `dt2-sharc.ts` generates the dispatcher for up to four added types (7-10), each with its player's entry, and returns it as a guarded site plus two L2 allocations. With the stand-in player as a separate allocation at the test's address, the built section loads the same bytes as the emulator-tested image at the call site, the dispatcher and its data (it differs only in having the player as a block of its own). It refuses a stock type, more than four players and an entry outside L2. + +### The voice player contract (draft) + +What an added machine's sound-chip player gets and must do, taken from the stock player it stands in for (`0x1c4ecf`); the parts marked open are still to trace. + +- **Entry.** Called once per voice per block (32-sample block, 32 voices) by the render pass, exactly as the stock player: a linked call with the caller's frame (`I6`, `I7`); `R4` holds the voice state record (`0x1d8` bytes from `0x2412cc`), `R8` the per-voice word the render pass read, `R12` = `R15`. Open: the meaning of `R8` and `R12`. +- **Registers.** Keep every register the stock player keeps (it saves `R3`, `R5`-`R7`, `R9`-`R11`, `R13`-`R15`, `M1`-`M3`, `B3`, `I0`-`I3`, `I5` in its frame and restores them). Never leave a stock register changed (lesson of the setup detour above). +- **Return.** `I12 = DM(I6, M7)`, then the `RETURN` and return-frame pair, as the stock epilogue (`0x1c4f56`, `0x1c4f7c`-`0x1c4f80`). +- **Output.** 32 samples, one word each, into the voice's slot of the shared area (`0x8045b3c0 + 0x80 * voice`). Open: whether the slot address arrives in a register or must be computed, and the sample format the stock interpolator writes. +- **Playing state.** The stock player renders only while the voice's playing bit (state word at `+0x1b8`) is set, and at the end of a sample clears it and fades the last block. Open: how a player that is never "finished" (a held grain cloud) ends with the amp envelope. +- **Cost.** A playing stock voice costs about 3,500 emulator instructions per block. A player should stay near that until the real unit's spare time per block is measured. + ## Still to check diff --git a/src/engine/elektron/dt2-sharc.test.ts b/src/engine/elektron/dt2-sharc.test.ts index 7355bfb1d5..5b0f103b10 100644 --- a/src/engine/elektron/dt2-sharc.test.ts +++ b/src/engine/elektron/dt2-sharc.test.ts @@ -1,5 +1,5 @@ import { describe, expect, it } from 'vitest' -import { combineDt2Plans, planDt2MachineSelectors } from './dt2-sharc' +import { combineDt2Plans, planDt2MachinePlayers, planDt2MachineSelectors } from './dt2-sharc' // No Elektron firmware here: the stock-dependent checks are proved locally against the owner's OS file, and these // tests cover what does not need it. @@ -26,5 +26,7 @@ describe('Digitakt II SHARC plans', () => { it('refuses a SHARC section that is not the pinned stock image before reading it', async () => { await expect(planDt2MachineSelectors(new Uint8Array(64), 0x200c0100, [0])).rejects.toThrow('Unsupported Digitakt II SHARC image') + await expect(planDt2MachinePlayers(new Uint8Array(64), 0x200c1000, 0x200c2000, [{ type: 7, entry: 0xbe0858 }])) + .rejects.toThrow('Unsupported Digitakt II SHARC image') }) }) diff --git a/src/engine/elektron/dt2-sharc.ts b/src/engine/elektron/dt2-sharc.ts index 2e7f058d36..93dfa90950 100644 --- a/src/engine/elektron/dt2-sharc.ts +++ b/src/engine/elektron/dt2-sharc.ts @@ -209,6 +209,77 @@ export async function planDt2MachineSelectors(stock: Uint8Array, tableAddress: n return { sites: [{ address: SELECTOR_SITE, guard: SELECTOR_GUARD, instruction: instruction(0x0f00 | I3, tableAddress / 4) }], allocations } } +// The render pass calls the stock sample voice player once per voice (a type 25a CALL); R14 counts the 32 voices +// down, voice v belongs to track v >> 1, and the track's raw machine type is the word DM(TRACK_TYPES + track). +const PLAYER_CALL = 0x28000000 + 2 * 0x1c6b00 +const PLAYER_CALL_GUARD = '4e25f0a1e4197c2c190ef606f09623a9ecf94e7274608038c39d0f09514b6621' +const STOCK_PLAYER = 0x1c4ecf +const TRACK_TYPES = 0x255970 +const FIRST_ADDED_TYPE = 7, MAX_ADDED_TYPES = 4 +// Universal register codes, and the 32-bit instructions the dispatcher uses (parcels, little-endian bytes). +const R0 = 0x00, R1 = 0x01, I0 = 0x10, M0 = 0x20, ASTATX = 0x76, STKYX = 0x78 +const SAVED = [R0, R1, I0, M0, ASTATX, STKYX] +const parcels = (...words: number[]) => Uint8Array.from(words.flatMap(word => [word & 255, word >>> 8])) +const M0_FROM_R0 = parcels(0x703e, 0x103f) +const I0_FROM_R1 = parcels(0x703e, 0x883f) +const M0_ZERO = parcels(0x0fa0, 0x0000) +const R1_FROM_I0_M0 = parcels(0x403e, 0x00bf) // R1 = DM(M0, I0), no update + +/** A machine's own voice player: the program counter (short word) of its entry in L2. */ +export type Dt2MachinePlayer = { type: number; entry: number } + +/** A plan fragment that sends every voice of an added machine type to that machine's player and every other voice + * to the stock player, unchanged: a dispatcher at `codeAddress` (free L2) in place of the render pass's call, with + * its save area and voice table at `dataAddress`. A player is entered and returns exactly as the stock player. */ +export async function planDt2MachinePlayers( + stock: Uint8Array, codeAddress: number, dataAddress: number, players: readonly Dt2MachinePlayer[], +): Promise { + if (await sha256Hex(stock) !== STOCK_SECTION) throw new Error('Unsupported Digitakt II SHARC image') + if (!players.length || players.length > MAX_ADDED_TYPES || new Set(players.map(p => p.type)).size !== players.length || + players.some(p => !Number.isInteger(p.type) || p.type < FIRST_ADDED_TYPE || p.type >= FIRST_ADDED_TYPE + MAX_ADDED_TYPES || + !Number.isInteger(p.entry) || p.entry < 0xb80000 || p.entry >= 0xc00000)) { + throw new Error('Invalid machine player') + } + if (await sha256Hex(readStored(stock, PLAYER_CALL, 6)) !== PLAYER_CALL_GUARD) throw new Error('SHARC player call guard mismatch') + const save = dataAddress / 4, table = save + 8 + const data = new Uint8Array(4 * (8 + 32)) + for (let voice = 0; voice < 32; voice++) new DataView(data.buffer).setUint32(4 * (8 + voice), TRACK_TYPES + (voice >> 1), true) + + const pc = programCounter(codeAddress) + const parts: Uint8Array[] = [] + let at = pc // short words + const emit = (bytes: Uint8Array) => { parts.push(bytes); at += bytes.length / 2 } + const restore = () => SAVED.forEach((reg, index) => emit(instruction(0x1000 | reg, save + index))) + SAVED.forEach((reg, index) => emit(instruction(0x1100 | reg, save + index))) + emit(instruction(0x0f00 | R0, 32)) + emit(instruction(0x013e, 0x200e)) // R0 = R0 - R14: the voice + emit(M0_FROM_R0) + emit(instruction(0x0f00 | I0, table)) + emit(R1_FROM_I0_M0) // its track's type word address + emit(I0_FROM_R1) + emit(M0_ZERO) + emit(R1_FROM_I0_M0) // the track's raw machine type + const branches: number[] = [] + for (const player of players) { + emit(instruction(0x0f00 | R0, player.type)) + emit(instruction(0x013e, 0x2010)) // R0 = R1 - R0 + branches.push(parts.length) + emit(new Uint8Array(6)) // IF EQ JUMP, filled in below + } + restore() + emit(instruction(0x063e, STOCK_PLAYER)) + players.forEach((player, index) => { + parts[branches[index]] = instruction(0x0600, at) + restore() + emit(instruction(0x063e, player.entry)) + }) + const code = new Uint8Array((parts.reduce((n, part) => n + part.length, 0) + 3) & ~3) + parts.reduce((offset, part) => { code.set(part, offset); return offset + part.length }, 0) + const allocations = [{ address: codeAddress, bytes: code }, { address: dataAddress, bytes: data }] + checkAllocations(allocations) + return { sites: [{ address: PLAYER_CALL, guard: PLAYER_CALL_GUARD, instruction: instruction(0x1804, pc) }], allocations } +} + /** One plan from several fragments (a render plan and the machine selectors, say). */ export function combineDt2Plans(...plans: readonly (Dt2RenderPlan | null)[]): Dt2RenderPlan | null { const present = plans.filter((plan): plan is Dt2RenderPlan => plan !== null) From 1fdf261635a06d4262d01a39ea28d41b1f38575c Mon Sep 17 00:00:00 2001 From: claptom-music <350865352+Claptom-music@users.noreply.github.com> Date: Thu, 19 Nov 2026 01:02:18 +0100 Subject: [PATCH 057/415] Record a test tone from an added Digitakt II machine's own player In the emulator the test machine's voices play a square wave written by their own player at the expected pitch, shaped by the stock amp envelope. Fills in the player contract's output slot and sample format. Co-Authored-By: Claude Opus 5.5 --- sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md index d8ddb07dbe..2edf94fa11 100644 --- a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md @@ -151,14 +151,18 @@ In the builder: `planDt2MachinePlayers` in `dt2-sharc.ts` generates the dispatch What an added machine's sound-chip player gets and must do, taken from the stock player it stands in for (`0x1c4ecf`); the parts marked open are still to trace. -- **Entry.** Called once per voice per block (32-sample block, 32 voices) by the render pass, exactly as the stock player: a linked call with the caller's frame (`I6`, `I7`); `R4` holds the voice state record (`0x1d8` bytes from `0x2412cc`), `R8` the per-voice word the render pass read, `R12` = `R15`. Open: the meaning of `R8` and `R12`. +- **Entry.** Called once per voice per block (32-sample block, 32 voices) by the render pass, exactly as the stock player: a linked call with the caller's frame (`I6`, `I7`); `R8` holds the address of the voice's output slot (register dump of the stock player on a playing voice: `0x8045b3c0` for voice 0, `0x8045b440` for voice 1), `R4` and `R13` its voice state record, `R14` the voice counter (voice `32 - R14`). Open: the meaning of `R12` (0 in the dump). - **Registers.** Keep every register the stock player keeps (it saves `R3`, `R5`-`R7`, `R9`-`R11`, `R13`-`R15`, `M1`-`M3`, `B3`, `I0`-`I3`, `I5` in its frame and restores them). Never leave a stock register changed (lesson of the setup detour above). - **Return.** `I12 = DM(I6, M7)`, then the `RETURN` and return-frame pair, as the stock epilogue (`0x1c4f56`, `0x1c4f7c`-`0x1c4f80`). -- **Output.** 32 samples, one word each, into the voice's slot of the shared area (`0x8045b3c0 + 0x80 * voice`). Open: whether the slot address arrives in a register or must be computed, and the sample format the stock interpolator writes. +- **Output.** 32 samples as 32-bit floats into the slot at `R8`, one word apart (post-modify by 1; a modifier of 4 wrote every fourth word and spilled into the next voices' slots). The stock filter, amp envelope and level then process them. - **Playing state.** The stock player renders only while the voice's playing bit (state word at `+0x1b8`) is set, and at the end of a sample clears it and fades the last block. Open: how a player that is never "finished" (a held grain cloud) ends with the amp envelope. - **Cost.** A playing stock voice costs about 3,500 emulator instructions per block. A player should stay near that until the real unit's spare time per block is measured. +### A test tone from an added machine's own player (19 November 2026) + +Local DSP image: the dispatcher above with, for type 7, a player that saves the four registers it uses, writes a square wave (16 samples at +0.1, 16 at -0.1) into the slot at `R8`, restores them and returns as the stock player. Test machine chosen through the menu, two trigs on track 1 (scripted coupled run from a ready point saved with that image): the tone appears with each note at 1,498 Hz by zero crossings (expected 1,500: one period per 32-sample block), follows the amp envelope down, peak 0.024 at the output; no halt, no missing blocks. So an added machine's player makes the sound of its voices, and the stock voice chain after it still shapes that sound. + ## Still to check From 963e5e184da8943bfdd2432c8f89208c8fd1985f Mon Sep 17 00:00:00 2001 From: claptom-music <350865352+Claptom-music@users.noreply.github.com> Date: Thu, 19 Nov 2026 01:20:42 +0100 Subject: [PATCH 058/415] Give each added Digitakt II machine a fixed type number A core_machines record now names its own type (7 to 10), so a saved kit keeps pointing at the same machine when other machine modules are added or removed. Emulator: the test machine still appears in the menu and selecting it sets type 7. Co-Authored-By: Claude Opus 5.5 --- .../elekloader/modwerk/MACHINES.md | 2 +- .../digitakt-ii/elekloader/modwerk/machines.c | 24 ++++++++++--------- .../modwerk/tests/machines-fixture.c | 1 + .../digitakt-ii/include/mk2/machines.h | 9 ++++--- 4 files changed, 21 insertions(+), 15 deletions(-) diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md index 2edf94fa11..98d30e8593 100644 --- a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md @@ -44,7 +44,7 @@ One `core_machines` entry per machine: | sample flag | Whether knob D selects a sample (a sampler) or is unused (a synth). | | sound-chip routines | Note-on and render for one voice, in the module's sound-chip package, with the voice's note, the five knob values and, for a sampler, its slot record. | -The base gives each entry a machine type after the stock seven in contribution order, answers the descriptor lookup (`0x400c89a4`), the parameter-code lookup (`0x400da3a2`) and the parameter-row reads for those types, and dispatches the voice at `0x1c6550`. Type numbers are saved in kits, so each machine also claims a fixed id on the agent board and keeps it once released, as `core_machines` ids do on the Digitakt. +Each entry names its own fixed machine type (7 to 10), claimed on the agent board as `machine-id digitakt-ii/N` and kept once released, since kits save it (a type that followed contribution order would move when another machine module is added or removed). The base answers the descriptor lookup (`0x400c89a4`), the parameter-code lookup (`0x400da3a2`) and the parameter-row reads for those types, and dispatches the voice at `0x1c6550`. Type numbers are saved in kits, so each machine also claims a fixed id on the agent board and keeps it once released, as `core_machines` ids do on the Digitakt. ## Sound-chip sites (SHARC section 7, short-word addresses) diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/machines.c b/sdk/machines/digitakt-ii/elekloader/modwerk/machines.c index 259cc9decf..d7fbb9ecf6 100644 --- a/sdk/machines/digitakt-ii/elekloader/modwerk/machines.c +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/machines.c @@ -4,17 +4,16 @@ const struct dt2_machine *dt2_machine_at( uint32_t type, const struct dt2_machine *const machines[DT2_MACHINE_COUNT]) { - uint32_t slot = type - DT2_MACHINE_FIRST; - if (slot >= DT2_MACHINE_COUNT) { + if (type < DT2_MACHINE_FIRST || type > DT2_MACHINE_LAST) { return 0; } - for (uint32_t i = 0; i <= slot; ++i) { - if (!machines[i]) { - return 0; + for (uint32_t i = 0; i < DT2_MACHINE_COUNT && machines[i]; ++i) { + const struct dt2_machine *machine = machines[i]; + if (machine->type == type) { + return machine->stands_for < DT2_MACHINE_FIRST ? machine : 0; } } - const struct dt2_machine *machine = machines[slot]; - return machine->stands_for < DT2_MACHINE_FIRST ? machine : 0; + return 0; } extern const struct dt2_machine *const core_machines[DT2_MACHINE_COUNT]; @@ -38,8 +37,8 @@ extern void *OP_NEW(uint32_t size); void core_machine_list_extend(struct type_vector *list) { uint32_t added = 0; - while (added < DT2_MACHINE_COUNT && dt2_machine_at(DT2_MACHINE_FIRST + added, core_machines)) { - ++added; + for (uint32_t type = DT2_MACHINE_FIRST; type <= DT2_MACHINE_LAST; ++type) { + added += dt2_machine_at(type, core_machines) != 0; } if (!added || !list || !list->begin) { return; @@ -52,8 +51,11 @@ void core_machine_list_extend(struct type_vector *list) for (uint32_t i = 0; i < count; ++i) { types[i] = list->begin[i]; } - for (uint32_t i = 0; i < added; ++i) { - types[count + i] = DT2_MACHINE_FIRST + i; + uint32_t next = count; + for (uint32_t type = DT2_MACHINE_FIRST; type <= DT2_MACHINE_LAST; ++type) { + if (dt2_machine_at(type, core_machines)) { + types[next++] = type; + } } list->begin = types; list->end = types + count + added; diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/tests/machines-fixture.c b/sdk/machines/digitakt-ii/elekloader/modwerk/tests/machines-fixture.c index 8bdbe5f1fd..a310b591e2 100644 --- a/sdk/machines/digitakt-ii/elekloader/modwerk/tests/machines-fixture.c +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/tests/machines-fixture.c @@ -3,6 +3,7 @@ #include const struct dt2_machine dt2_test_machine = { + .type = 7, .stands_for = 0, .strings = { "Testgrain", "TGR", 0 }, }; diff --git a/sdk/machines/digitakt-ii/include/mk2/machines.h b/sdk/machines/digitakt-ii/include/mk2/machines.h index 7aa927d415..dd7babebb3 100644 --- a/sdk/machines/digitakt-ii/include/mk2/machines.h +++ b/sdk/machines/digitakt-ii/include/mk2/machines.h @@ -4,11 +4,13 @@ #include -/* Machines added after the seven stock types. The linker's collection index owns the type: entry n of - * core_machines is machine type DT2_MACHINE_FIRST + n. The table ends at its first null entry. */ +/* Machines added after the seven stock types. Each record names its own machine type, a fixed number from + * DT2_MACHINE_FIRST to DT2_MACHINE_LAST that kits save: claim it on the agent board (machine-id digitakt-ii/N) and + * keep it once released. core_machines holds up to DT2_MACHINE_COUNT records and ends at its first null entry. */ enum { DT2_MACHINE_FIRST = 7, DT2_MACHINE_COUNT = 4, + DT2_MACHINE_LAST = DT2_MACHINE_FIRST + DT2_MACHINE_COUNT - 1, }; enum { @@ -21,11 +23,12 @@ enum { * borrows until the base has its own parameter rows. strings[] follow the DT2_MACHINE_* order; a null * string is shown as none. */ struct dt2_machine { + uint32_t type; uint32_t stands_for; const char *strings[3]; }; -/* The record for a machine type, or 0 when the type is stock or has no complete record. */ +/* The record for a machine type, or 0 when the type is stock or no valid record names it. */ const struct dt2_machine *dt2_machine_at( uint32_t type, const struct dt2_machine *const machines[DT2_MACHINE_COUNT]); From 7a5c065b2dc20ae3e18b3195a63fad100471937a Mon Sep 17 00:00:00 2001 From: claptom-music <350865352+Claptom-music@users.noreply.github.com> Date: Thu, 19 Nov 2026 01:22:28 +0100 Subject: [PATCH 059/415] Compose the sound-chip parts of Digitakt II machine modules into a build A machine module can carry its sound-chip player in its package (build.dt2_sharc version 2: L2 allocations and a player per machine type). After the kit build, the page's preflight step adds the base's machine parts (the longer selector table and the player dispatcher) and every selected module's part, and checks the result against that plan; a selection without such a part leaves the sound chip stock. Not yet run end to end with a real build. Co-Authored-By: Claude Opus 5.5 --- src/engine/elekloader/digi-preflight.ts | 19 +++++- .../elekloader/dt2-render-build.test.ts | 26 ++++++++ src/engine/elekloader/dt2-render-build.ts | 66 ++++++++++++++++++- 3 files changed, 109 insertions(+), 2 deletions(-) create mode 100644 src/engine/elekloader/dt2-render-build.test.ts diff --git a/src/engine/elekloader/digi-preflight.ts b/src/engine/elekloader/digi-preflight.ts index 5c91c81b23..52bfe32d92 100644 --- a/src/engine/elekloader/digi-preflight.ts +++ b/src/engine/elekloader/digi-preflight.ts @@ -96,9 +96,26 @@ export async function preflightBuiltFile(machine: ElemodMachine, stock: Blob, en const built = files.find(file => /\.syx$/i.test(file.name)) if (!built) throw new PreflightError(['the build has no .syx file to check']) const names = enabled.map(path => path.split('/').pop()!) - const mods = parseBuildMods(await Promise.all(names.map(async name => ({ name, bytes: await load(name) })))) + const modFiles = await Promise.all(names.map(async name => ({ name, bytes: await load(name) }))) + const mods = parseBuildMods(modFiles) const original = new Uint8Array(await stock.arrayBuffer()) const output = new Uint8Array(built.data) + if (machine === 'digitakt-ii') { + // Machine modules carry sound-chip parts the kit does not build: add them with the base's, checked against that plan. + const { composeDt2MachineBuild } = await import('./dt2-render-build.ts') + const documents = modFiles.map(file => ({ name: file.name, document: JSON.parse(new TextDecoder().decode(file.bytes)) as unknown })) + let composed: Awaited> + try { + composed = await composeDt2MachineBuild(original, output, mods, documents) + } catch (error) { + if (error instanceof PreflightError) throw error + throw new PreflightError([error instanceof Error ? error.message : String(error)]) + } + if (composed) { + built.data = composed.output.slice().buffer + return composed.facts + } + } return preflightBuild(machine, original, output, mods) } diff --git a/src/engine/elekloader/dt2-render-build.test.ts b/src/engine/elekloader/dt2-render-build.test.ts new file mode 100644 index 0000000000..354d3c0e53 --- /dev/null +++ b/src/engine/elekloader/dt2-render-build.test.ts @@ -0,0 +1,26 @@ +import { describe, expect, it } from 'vitest' +import { DT2_BASE_SHARC, readDt2SharcPart } from './dt2-render-build' + +const part = (extra: Record = {}) => ({ build: { dt2_sharc: { version: 2, allocations: [{ address: 0x200d0000, data: btoa('\x01\x02\x03\x04') }], players: [{ type: 7, entry: 0xbe8000 }], ...extra } } }) + +describe('Digitakt II machine sound-chip parts', () => { + it('reads a module\'s allocations and players, and finds none in a package without a part', () => { + expect(readDt2SharcPart('mikrotakt', part())).toEqual({ + module: 'mikrotakt', + allocations: [{ address: 0x200d0000, bytes: Uint8Array.of(1, 2, 3, 4) }], + players: [{ type: 7, entry: 0xbe8000 }], + }) + expect(readDt2SharcPart('plain', { build: {} })).toBeNull() + }) + + it('leaves the sidechain work\'s render-hook format (version 1) to its own path', () => { + expect(readDt2SharcPart('sidechain', { build: { dt2_sharc: { version: 1, code: '', data: '' } } })).toBeNull() + }) + + it('refuses an unknown version, a malformed entry and code over the base\'s machine parts', () => { + expect(() => readDt2SharcPart('m', part({ version: 3 }))).toThrow('unsupported sound-chip part') + expect(() => readDt2SharcPart('m', part({ players: [{ type: '7', entry: 1 }] }))).toThrow('malformed machine player') + expect(() => readDt2SharcPart('m', part({ allocations: [{ address: DT2_BASE_SHARC.dispatcher, data: btoa('xxxx') }] }))) + .toThrow('overlaps the base') + }) +}) diff --git a/src/engine/elekloader/dt2-render-build.ts b/src/engine/elekloader/dt2-render-build.ts index 49c656fe04..dc87db3a8e 100644 --- a/src/engine/elekloader/dt2-render-build.ts +++ b/src/engine/elekloader/dt2-render-build.ts @@ -1,7 +1,10 @@ // SPDX-License-Identifier: GPL-3.0-or-later import { DIGITAKT_MK2 } from '../../../vendor/elekloader/kit/src/devices.ts' import { Syx, packMain, verify, write } from '../../../vendor/elekloader/kit/src/syx.ts' -import { buildDt2RenderSection, unpackDt2SharcSection, type Dt2RenderPlan } from '../elektron/dt2-sharc.ts' +import { + buildDt2RenderSection, combineDt2Plans, planDt2MachinePlayers, planDt2MachineSelectors, unpackDt2SharcSection, + type Dt2MachinePlayer, type Dt2RenderPlan, +} from '../elektron/dt2-sharc.ts' import { ELE3_DEVICES } from '../elektron/ele3.ts' import type { ParsedMod } from '../elektron/elemod.ts' import { preflightBuild } from './digi-preflight.ts' @@ -36,3 +39,64 @@ export async function buildDt2RenderFirmware( const facts = await preflightBuild(MACHINE, stockBytes, output, mods, ELE3_DEVICES[MACHINE], plan) return { output, facts } } + +/** The sound-chip part a machine module carries in its package (`build.dt2_sharc`, version 2): its code and data at + * fixed L2 addresses (each range claimed on the agent board as a dsp-region) and the voice player of each machine type + * it adds. Addresses are loader byte addresses; `entry` is the player's short-word program counter. */ +export type Dt2SharcPart = { module: string; allocations: { address: number; bytes: Uint8Array }[]; players: Dt2MachinePlayer[] } + +// L2 the base keeps for its own machine parts: the selector table, the player dispatcher and its data. +export const DT2_BASE_SHARC = { selectors: 0x200c0100, dispatcher: 0x200c1000, dispatcherData: 0x200c2000, end: 0x200c3000 } + +const base64 = (text: string) => Uint8Array.from(atob(text), c => c.charCodeAt(0)) + +/** The module's sound-chip part, or null when its package has none. Throws on a malformed part. */ +export function readDt2SharcPart(name: string, document: unknown): Dt2SharcPart | null { + const part = (document as { build?: { dt2_sharc?: unknown } } | null)?.build?.dt2_sharc as + { version?: unknown; allocations?: unknown; players?: unknown } | undefined + // Version 1 is the render-hook format of the sidechain work, composed by its own path, not a machine part. + if (part === undefined || part?.version === 1) return null + if (!part || part.version !== 2 || !Array.isArray(part.allocations) || !Array.isArray(part.players)) { + throw new Error(name + ': unsupported sound-chip part') + } + const allocations = part.allocations.map(entry => { + const { address, data } = entry as { address?: unknown; data?: unknown } + if (!Number.isInteger(address) || typeof data !== 'string') throw new Error(name + ': malformed sound-chip allocation') + const bytes = base64(data) + if ((address as number) < DT2_BASE_SHARC.end && (address as number) + bytes.length > DT2_BASE_SHARC.selectors) { + throw new Error(name + ': its sound-chip code overlaps the base\'s machine parts') + } + return { address: address as number, bytes } + }) + const players = part.players.map(entry => { + const { type, entry: pc } = entry as { type?: unknown; entry?: unknown } + if (!Number.isInteger(type) || !Number.isInteger(pc)) throw new Error(name + ': malformed machine player') + return { type: type as number, entry: pc as number } + }) + return { module: name, allocations, players } +} + +/** The base's machine parts plus every module's sound-chip part, as one plan; null when no module has one (the sound + * chip then stays stock). Every added machine type gets SAMPLE's selector, the stock voice chain after its player. */ +export async function planDt2MachineParts(sharc: Uint8Array, parts: readonly Dt2SharcPart[]): Promise { + if (!parts.length) return null + const players = parts.flatMap(part => part.players) + const types = players.map(player => player.type) + if (new Set(types).size !== types.length) throw new Error('Two modules add a player for the same machine type') + const selectors = await planDt2MachineSelectors(sharc, DT2_BASE_SHARC.selectors, [0, 0, 0, 0]) + const dispatcher = players.length + ? await planDt2MachinePlayers(sharc, DT2_BASE_SHARC.dispatcher, DT2_BASE_SHARC.dispatcherData, players) + : null + return combineDt2Plans(selectors, dispatcher, ...parts.map(part => ({ allocations: part.allocations }))) +} + +/** A finished kit build with the sound-chip parts of the base and the selected modules, checked by the preflight with + * that plan; null when no selected module carries a sound-chip part, so the kit build stands as it is. */ +export async function composeDt2MachineBuild(stockBytes: Uint8Array, kitBuildBytes: Uint8Array, mods: readonly ParsedMod[], + documents: readonly { name: string; document: unknown }[]) { + const parts = documents.map(({ name, document }) => readDt2SharcPart(name, document)).filter((part): part is Dt2SharcPart => part !== null) + if (!parts.length) return null + const sharc = unpackDt2SharcSection(new Syx(stockBytes).stored.get(SHARC_SECTION)) + const plan = await planDt2MachineParts(sharc, parts) + return plan ? buildDt2RenderFirmware(stockBytes, kitBuildBytes, mods, plan) : null +} From 4c4c5af48f696b780178983d122e60d69363b28d Mon Sep 17 00:00:00 2001 From: claptom-music <350865352+Claptom-music@users.noreply.github.com> Date: Thu, 19 Nov 2026 01:23:23 +0100 Subject: [PATCH 060/415] Record the end-to-end composition check of a Digitakt II machine build Co-Authored-By: Claude Opus 5.5 --- sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md index 98d30e8593..304bb14730 100644 --- a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md @@ -163,6 +163,12 @@ What an added machine's sound-chip player gets and must do, taken from the stock Local DSP image: the dispatcher above with, for type 7, a player that saves the four registers it uses, writes a square wave (16 samples at +0.1, 16 at -0.1) into the slot at `R8`, restores them and returns as the stock player. Test machine chosen through the menu, two trigs on track 1 (scripted coupled run from a ready point saved with that image): the tone appears with each note at 1,498 Hz by zero crossings (expected 1,500: one period per 32-sample block), follows the amp envelope down, peak 0.024 at the output; no halt, no missing blocks. So an added machine's player makes the sound of its voices, and the stock voice chain after it still shapes that sound. +### Machine modules' sound-chip parts in the build (19 November 2026) + +A machine module carries its player in its package as `build.dt2_sharc` version 2: L2 allocations at fixed addresses (claim each range as a dsp-region) and `{type, entry}` for each machine type it plays. The base keeps L2 `0x200c0100`-`0x200c3000` for its own machine parts. After the kit build, `preflightBuiltFile` (Digitakt II only) calls `composeDt2MachineBuild`: it reads every selected package's part, adds the longer selector table, the player dispatcher and the modules' allocations to section 7, and runs the preflight with that plan. A selection with no part leaves the kit build as it is. + +Local end-to-end check: OS 1.17, the development base `37b4db44` linked by Elekloader, and a stand-in module part (the silent player at `0x200d0000`, type 7). The composed image passed the preflight: sections 2, 4, 5 and 8 byte for byte stock, section 7 verified against the plan, 36 changed ranges and 11,632 appended bytes in the main OS (the base), flash headroom 1,395,888 bytes. Not yet run in the emulator as a whole file (the emulator runs so far used the DSP images directly). + ## Still to check From 2c65df25ee3a406f7b4a679ae14f0a10340e594b Mon Sep 17 00:00:00 2001 From: jonathanwardle1992-beep Date: Thu, 19 Nov 2026 00:56:36 +0000 Subject: [PATCH 061/415] Record the Screen Off frame-interrupt price: 0.0 at rest. Co-authored-by: Cursor --- sdk/drafts/screen-off/TESTING.md | 4 ++++ sdk/drafts/screen-off/octamod.module.json | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/sdk/drafts/screen-off/TESTING.md b/sdk/drafts/screen-off/TESTING.md index 9d2ced6ad5..a1583d63a2 100644 --- a/sdk/drafts/screen-off/TESTING.md +++ b/sdk/drafts/screen-off/TESTING.md @@ -52,6 +52,10 @@ The person at the unit then held UP and tapped NO. They report that the expected A later status answered the same line, `normal, generation 3, active 9993a6d3bd0f59c4…`, with tick word `65536` (`0x10000`) and refusals at 0. The inventory on that base named the modules that were already kept, and did not name `screen-off`: Mini Verb, Tape Echo, Euclid, Repitch, TapeHead, Air Chorus, Analog BD, FM Synth, Preview Vol, Play Modes, Mute Modes, Quant Live Rec, DirectJmp Kyoti, Arp Key Locks, beat-slicer, Slow LFO, Bar LED, tiempos, syntiz, Track Solo, Amiga, Kits. No SAVE, no flash, no power cycle, no Keep. +## CPU price + +19 November 2026, MKII, OS 1.40C. A development twin, identity `878307834ad3c23a9f87eea71250a7f104db7fdd5c32592cba6ddd816e61f718`, was RAM-booted and not flashed. `npm run device:price` measured package `14aea62fbfef825e2ea23cc4baf6e01a2f2b0bf44b215db28748c1a546aeae0c` for 8 seconds, at rest, with the blank off. The pattern was whatever the unit came up on. The frame interrupt's share did not change (`resources.cpuPrice` 0.0). The CPU meter read +1.7 points; that is not the price. No frames were skipped. The price command was stopped before it printed a rollback, `recover` found the trial and rolled it back, and the inventory was empty. Nothing was kept. + ## Not tested - An MKI, and a card install. The MKII chord above is a report from the person at the unit, on 7 November and again on 16 November, both RAM trials of package `14aea62fbfef825e2ea23cc4baf6e01a2f2b0bf44b215db28748c1a546aeae0c`. diff --git a/sdk/drafts/screen-off/octamod.module.json b/sdk/drafts/screen-off/octamod.module.json index 06a483005f..33622e8761 100644 --- a/sdk/drafts/screen-off/octamod.module.json +++ b/sdk/drafts/screen-off/octamod.module.json @@ -97,6 +97,15 @@ "rationale": "One small ColdFire unit and 12 bytes of state.", "source": "screen_off.c" } + }, + "cpuPrice": { + "value": 0.0, + "unit": "percent-of-frame", + "measure": "frame-interrupt", + "tool": "npm run device:price", + "date": "2026-11-19", + "conditions": "MKII, OS 1.40C, development twin 878307834ad3c23a RAM-booted (no controller rows, not flashed). Package 14aea62fbfef825e2ea23cc4baf6e01a2f2b0bf44b215db28748c1a546aeae0c, built before this twin. One 8 s reading, pattern left as the unit came up, transport stopped beforehand, module installed and the blank off. Frame interrupt +0.0 points. The CPU meter read +1.7 and is not this price.", + "source": "TESTING.md" } }, "tests": { From d92f3b3159f3292d547e15c0ea24aca5e95867d0 Mon Sep 17 00:00:00 2001 From: jonathanwardle1992-beep Date: Thu, 19 Nov 2026 01:31:01 +0000 Subject: [PATCH 062/415] Record the Screen Off blank-on draw: 25033 executed instructions. Co-authored-by: Cursor --- sdk/drafts/screen-off/TESTING.md | 8 +++++++- sdk/drafts/screen-off/evidence/performance.json | 6 +++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/sdk/drafts/screen-off/TESTING.md b/sdk/drafts/screen-off/TESTING.md index a1583d63a2..7c2f77ac10 100644 --- a/sdk/drafts/screen-off/TESTING.md +++ b/sdk/drafts/screen-off/TESTING.md @@ -56,10 +56,16 @@ A later status answered the same line, `normal, generation 3, active 9993a6d3bd0 19 November 2026, MKII, OS 1.40C. A development twin, identity `878307834ad3c23a9f87eea71250a7f104db7fdd5c32592cba6ddd816e61f718`, was RAM-booted and not flashed. `npm run device:price` measured package `14aea62fbfef825e2ea23cc4baf6e01a2f2b0bf44b215db28748c1a546aeae0c` for 8 seconds, at rest, with the blank off. The pattern was whatever the unit came up on. The frame interrupt's share did not change (`resources.cpuPrice` 0.0). The CPU meter read +1.7 points; that is not the price. No frames were skipped. The price command was stopped before it printed a rollback, `recover` found the trial and rolled it back, and the inventory was empty. Nothing was kept. +## Draw cost + +19 November 2026. ot_emu, the development twin `878307834ad3c23a…` (`MAIN.raw`, not a unit), package `14aea62fbfef825e2ea23cc4baf6e01a2f2b0bf44b215db28748c1a546aeae0c`. The trial was not kept. `so_draw` was watched from its entry to its `rts`. One UP+NO set the blank on (`off` 1, `toggles` 1). The count is executed instructions, interrupts included. With the blank still off the draw returned in 10. With the blank on, 26 draws cleared the 1024-byte frame in 6157 and did not take an interrupt inside the draw. The dearest of that run was 25033, the same clear with an interrupt inside it. An earlier run on the same image peaked at 25033 as well. `evidence/performance.json` records 25033. The audit calls that unit cycles/event. It is not the frame-interrupt price above, which was taken with the blank off. + +The same session sent 21 UP+NO chords. `toggles` went from 0 to 21 and the tick kept running, with STOP sent between two groups of 10. No project was loaded. The Part byte at `0x80000003` stayed 0, and the sequencer was not observed playing, so the stress fields stay empty. + ## Not tested - An MKI, and a card install. The MKII chord above is a report from the person at the unit, on 7 November and again on 16 November, both RAM trials of package `14aea62fbfef825e2ea23cc4baf6e01a2f2b0bf44b215db28748c1a546aeae0c`. -- The package size, the executed instructions of the chord, and the cost of clearing the frame. +- The package size. - The stock screen saver while this blank is on, and while a pattern plays. - Whether the MKII panel can be powered down as well as painted black. - Whether the MKI backlight stays lit behind the blank glass. diff --git a/sdk/drafts/screen-off/evidence/performance.json b/sdk/drafts/screen-off/evidence/performance.json index dd93f2d0ad..f4eb314ddb 100644 --- a/sdk/drafts/screen-off/evidence/performance.json +++ b/sdk/drafts/screen-off/evidence/performance.json @@ -7,14 +7,14 @@ "cycles": { "unit": "cycles/event", "static": null, - "measured": null, + "measured": 25033, "budget": 26600000, - "method": "Not measured. The chord and the frame clear have not been counted in ot_emu or timed on a unit." + "method": "ot_emu executed instructions from so_draw entry to its rts, interrupts included, on development twin 878307834ad3c23a (MAIN.raw, not a unit). Package 14aea62fbfef825e2ea23cc4baf6e01a2f2b0bf44b215db28748c1a546aeae0c. One UP+NO set off to 1. Of 45 draws, 12 returned in 10 instructions while the blank was still off, 26 cleared the 1024-byte frame in 6157 with no interrupt inside the draw, and the dearest was 25033, the same clear with an interrupt inside it. An earlier run on the same image peaked at 25033 as well." }, "stress": { "events": null, "playing": null, "hangs": null, - "method": "Not run. The chord has not been repeated on a playing unit, or under ot_emu, with a STOP and a Part change between presses." + "method": "Not accepted. Under the same ot_emu image, 21 UP+NO chords advanced toggles from 0 to 21 and the tick kept running, with STOP sent between two groups of 10. No project was loaded, the Part byte at 0x80000003 stayed 0, and the sequencer was not observed playing." } } From 199904f3d52f4148a64377854ba032e80b0b04e5 Mon Sep 17 00:00:00 2001 From: jonathanwardle1992-beep Date: Thu, 19 Nov 2026 01:46:17 +0000 Subject: [PATCH 063/415] Record the Screen Off playing run: the Part did not change. Co-authored-by: Cursor --- sdk/drafts/screen-off/TESTING.md | 4 +++- sdk/drafts/screen-off/evidence/performance.json | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sdk/drafts/screen-off/TESTING.md b/sdk/drafts/screen-off/TESTING.md index 7c2f77ac10..5451744a0e 100644 --- a/sdk/drafts/screen-off/TESTING.md +++ b/sdk/drafts/screen-off/TESTING.md @@ -60,7 +60,9 @@ A later status answered the same line, `normal, generation 3, active 9993a6d3bd0 19 November 2026. ot_emu, the development twin `878307834ad3c23a…` (`MAIN.raw`, not a unit), package `14aea62fbfef825e2ea23cc4baf6e01a2f2b0bf44b215db28748c1a546aeae0c`. The trial was not kept. `so_draw` was watched from its entry to its `rts`. One UP+NO set the blank on (`off` 1, `toggles` 1). The count is executed instructions, interrupts included. With the blank still off the draw returned in 10. With the blank on, 26 draws cleared the 1024-byte frame in 6157 and did not take an interrupt inside the draw. The dearest of that run was 25033, the same clear with an interrupt inside it. An earlier run on the same image peaked at 25033 as well. `evidence/performance.json` records 25033. The audit calls that unit cycles/event. It is not the frame-interrupt price above, which was taken with the blank off. -The same session sent 21 UP+NO chords. `toggles` went from 0 to 21 and the tick kept running, with STOP sent between two groups of 10. No project was loaded. The Part byte at `0x80000003` stayed 0, and the sequencer was not observed playing, so the stress fields stay empty. +The same session sent 21 UP+NO chords with no project loaded. `toggles` went from 0 to 21 and the tick kept running, with STOP sent between two groups of 10. The Part byte at `0x80000003` stayed 0, and the sequencer was not observed playing. + +A later run on the same twin loaded set OCTABAM, project ONEAUX, pattern 0, on the internal clock. PLAY set the transport byte `0x800065b8` to 1. Ten UP+NO chords while it stayed 1 took `toggles` from 0 to 10. STOP set it back to 0. PART+RIGHT, PART+DOWN and the PART menu left the Part byte at 0. A popup at `0x46c7d34c` owned the screen from boot, flag `0x21`, and YES and NO did not clear it. Stock's part selector `0x4004a8a4(1)` returned 0 and the byte stayed 0: the base's part guard refused it. PLAY again set the transport to 1 and ten more chords took `toggles` to 20. The trial ran to 100 s, refusals stayed 0, and it rolled back. The verdict was a note that the CPU was at 90 % or more for 1 s around 60 s, and no fault was logged. The stress fields stay empty because the Part did not change. ## Not tested diff --git a/sdk/drafts/screen-off/evidence/performance.json b/sdk/drafts/screen-off/evidence/performance.json index f4eb314ddb..45b2c9c778 100644 --- a/sdk/drafts/screen-off/evidence/performance.json +++ b/sdk/drafts/screen-off/evidence/performance.json @@ -15,6 +15,6 @@ "events": null, "playing": null, "hangs": null, - "method": "Not accepted. Under the same ot_emu image, 21 UP+NO chords advanced toggles from 0 to 21 and the tick kept running, with STOP sent between two groups of 10. No project was loaded, the Part byte at 0x80000003 stayed 0, and the sequencer was not observed playing." + "method": "Not accepted. On ot_emu, development twin 878307834ad3c23a, set OCTABAM, project ONEAUX, pattern 0, internal clock: PLAY set transport 0x800065b8 to 1, ten UP+NO chords ran while it stayed 1, STOP cleared it, and ten more ran after PLAY again (toggles 0 to 20). The trial reached 100 s with refusals 0 and no fault logged; it noted the CPU at 90% or more for 1 s. The Part byte stayed 0: PART+RIGHT, PART+DOWN and the PART menu did not move it, and stock's selector 0x4004a8a4(1) returned 0 because the base's part guard refused it." } } From 5642de8f1983608ac03b6468513ad21d6eeeacfd Mon Sep 17 00:00:00 2001 From: jonathanwardle1992-beep Date: Thu, 19 Nov 2026 02:29:18 +0000 Subject: [PATCH 064/415] Record Screen Off's playing stress: 20 presses, the Part changed, no hang. Co-authored-by: Cursor --- sdk/drafts/screen-off/TESTING.md | 8 +++++++- sdk/drafts/screen-off/evidence/performance.json | 9 +++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/sdk/drafts/screen-off/TESTING.md b/sdk/drafts/screen-off/TESTING.md index 5451744a0e..90ed1904e2 100644 --- a/sdk/drafts/screen-off/TESTING.md +++ b/sdk/drafts/screen-off/TESTING.md @@ -62,7 +62,13 @@ A later status answered the same line, `normal, generation 3, active 9993a6d3bd0 The same session sent 21 UP+NO chords with no project loaded. `toggles` went from 0 to 21 and the tick kept running, with STOP sent between two groups of 10. The Part byte at `0x80000003` stayed 0, and the sequencer was not observed playing. -A later run on the same twin loaded set OCTABAM, project ONEAUX, pattern 0, on the internal clock. PLAY set the transport byte `0x800065b8` to 1. Ten UP+NO chords while it stayed 1 took `toggles` from 0 to 10. STOP set it back to 0. PART+RIGHT, PART+DOWN and the PART menu left the Part byte at 0. A popup at `0x46c7d34c` owned the screen from boot, flag `0x21`, and YES and NO did not clear it. Stock's part selector `0x4004a8a4(1)` returned 0 and the byte stayed 0: the base's part guard refused it. PLAY again set the transport to 1 and ten more chords took `toggles` to 20. The trial ran to 100 s, refusals stayed 0, and it rolled back. The verdict was a note that the CPU was at 90 % or more for 1 s around 60 s, and no fault was logged. The stress fields stay empty because the Part did not change. +A later run on the same twin, with the DSP cores on (`--dsp --dsp-rt`), loaded set OCTABAM, project ONEAUX, pattern 0, on the internal clock. YES cleared SET DATE/TIME. Without the DSP cores that dialog stays up as DSP LOAD FAILED and the Part byte does not move. PLAY set the transport byte `0x800065b8` to 1. Ten UP+NO chords while it stayed 1 took `toggles` from 0 to 10. STOP set the transport to 0. PART+RIGHT changed the Part byte from 0 to 1. PLAY set the transport to 1 and ten more chords took `toggles` to 20. The diagnostic log at `0x100fc000` was read before the presses and after them: it stayed at 3 incidents (start, base, set), `crash_seen` 0, `stall_seen` 0, `freeze_state` 0. The trial was not kept. `evidence/performance.json` records 20 presses, playing, and no hang. + +| row | result | +|---|---| +| cycles | worst event 25033 of 26600000 | +| stock benchmark | none for a key-press module | +| stress | 20 presses of the dearest event while playing, no hang | ## Not tested diff --git a/sdk/drafts/screen-off/evidence/performance.json b/sdk/drafts/screen-off/evidence/performance.json index 45b2c9c778..dd613b3fdb 100644 --- a/sdk/drafts/screen-off/evidence/performance.json +++ b/sdk/drafts/screen-off/evidence/performance.json @@ -2,6 +2,7 @@ "schema": 1, "module": "screen-off", "version": "0.1.0-experimental", + "sourceSha256": "95af4000fc856711818874d839a2d7da4bf120e36390642c263061ed86dd4d1f", "kind": "coldfire", "trigger": "key", "cycles": { @@ -12,9 +13,9 @@ "method": "ot_emu executed instructions from so_draw entry to its rts, interrupts included, on development twin 878307834ad3c23a (MAIN.raw, not a unit). Package 14aea62fbfef825e2ea23cc4baf6e01a2f2b0bf44b215db28748c1a546aeae0c. One UP+NO set off to 1. Of 45 draws, 12 returned in 10 instructions while the blank was still off, 26 cleared the 1024-byte frame in 6157 with no interrupt inside the draw, and the dearest was 25033, the same clear with an interrupt inside it. An earlier run on the same image peaked at 25033 as well." }, "stress": { - "events": null, - "playing": null, - "hangs": null, - "method": "Not accepted. On ot_emu, development twin 878307834ad3c23a, set OCTABAM, project ONEAUX, pattern 0, internal clock: PLAY set transport 0x800065b8 to 1, ten UP+NO chords ran while it stayed 1, STOP cleared it, and ten more ran after PLAY again (toggles 0 to 20). The trial reached 100 s with refusals 0 and no fault logged; it noted the CPU at 90% or more for 1 s. The Part byte stayed 0: PART+RIGHT, PART+DOWN and the PART menu did not move it, and stock's selector 0x4004a8a4(1) returned 0 because the base's part guard refused it." + "events": 20, + "playing": true, + "hangs": 0, + "method": "ot_emu --dsp --dsp-rt, development twin 878307834ad3c23a, set OCTABAM, project ONEAUX, pattern 0, internal clock. Package 14aea62fbfef825e2ea23cc4baf6e01a2f2b0bf44b215db28748c1a546aeae0c. YES cleared SET DATE/TIME. PLAY set transport 0x800065b8 to 1. Ten UP+NO chords while it stayed 1 took toggles from 0 to 10, STOP cleared it, PART+RIGHT changed the Part byte from 0 to 1, PLAY set the transport to 1, and ten more chords took toggles to 20. The diagnostic log at 0x100fc000 stayed at 3 incidents (start, base, set), crash_seen 0, stall_seen 0, freeze_state 0. The trial was not kept." } } From f63e7b46ccfc29ed93c922e16655ef494ac7e5bc Mon Sep 17 00:00:00 2001 From: jonathanwardle1992-beep Date: Thu, 19 Nov 2026 02:43:20 +0000 Subject: [PATCH 065/415] Record Screen Off's memory and the MKII report in its qualification. Co-authored-by: Cursor --- sdk/drafts/screen-off/README.md | 2 +- sdk/drafts/screen-off/TESTING.md | 16 ++- sdk/drafts/screen-off/octamod.module.json | 132 +++++++++++++++++++--- 3 files changed, 134 insertions(+), 16 deletions(-) diff --git a/sdk/drafts/screen-off/README.md b/sdk/drafts/screen-off/README.md index 120eec3a3d..03f1c212f6 100644 --- a/sdk/drafts/screen-off/README.md +++ b/sdk/drafts/screen-off/README.md @@ -53,7 +53,7 @@ The author reports that on a MKII the chord blanks the screen and brings it back ## Tests and measurements -The host gate is [TESTING.md](TESTING.md). It drives the chord, the keys that must still pass, and the frame clear. Cycle counts are not done. The MKII chord is the author's report. +The host gate is [TESTING.md](TESTING.md). It drives the chord, the keys that must still pass, and the frame clear. The dearest draw, counted in ot_emu with the blank on, was 25033 executed instructions, interrupts included. The linked image is 256 bytes and the state is 12. The MKII chord is the author's report. ## Authorship and licences diff --git a/sdk/drafts/screen-off/TESTING.md b/sdk/drafts/screen-off/TESTING.md index 90ed1904e2..a0d7ff753f 100644 --- a/sdk/drafts/screen-off/TESTING.md +++ b/sdk/drafts/screen-off/TESTING.md @@ -70,10 +70,24 @@ A later run on the same twin, with the DSP cores on (`--dsp --dsp-rt`), loaded s | stock benchmark | none for a key-press module | | stress | 20 presses of the dearest event while playing, no hang | +## Memory + +19 November 2026. The same package, SHA-256 `14aea62fbfef825e2ea23cc4baf6e01a2f2b0bf44b215db28748c1a546aeae0c`, 352 bytes, ABI 8. Its header says the linked image is 256 bytes and the bss is 12. The image's own SHA-256 is `42ddce28b94139986074dfbdf2dad1b11aee557689d23301daf8e28ce06ff028`. Disassembled with `m68k-elf-objdump -D -b binary -m m68k`, the image is 250 bytes of code, 2 zero bytes of alignment, and the 4-byte `so_at` pointer at image offset `0xFC` (one of the two relocations; the other is at `0x2`). The 12 bss bytes are `struct so`. Nothing else is allocated: no heap, no table, no DSP memory. The 1024-byte frame and the held-key row are stock's. + +The only stack push in the image is `pea` of the redraw argument, 4 bytes, on the UI task's stack, and only on the chord that toggles. `so_key`, `so_draw` and `so_tick` allocate no frame of their own. The stock call at `0x4004d948` and the UI task's own stack below that are not measured. No hardware canary was set. + +| region | bytes | +|---|---| +| ColdFire code | 250 | +| alignment before `so_at` | 2 | +| `so_at` | 4 | +| `struct so` (bss) | 12 | +| redraw argument on the UI stack | 4 | +| total, one instance | 272 | + ## Not tested - An MKI, and a card install. The MKII chord above is a report from the person at the unit, on 7 November and again on 16 November, both RAM trials of package `14aea62fbfef825e2ea23cc4baf6e01a2f2b0bf44b215db28748c1a546aeae0c`. -- The package size. - The stock screen saver while this blank is on, and while a pattern plays. - Whether the MKII panel can be powered down as well as painted black. - Whether the MKI backlight stays lit behind the blank glass. diff --git a/sdk/drafts/screen-off/octamod.module.json b/sdk/drafts/screen-off/octamod.module.json index 33622e8761..3b7b7faa72 100644 --- a/sdk/drafts/screen-off/octamod.module.json +++ b/sdk/drafts/screen-off/octamod.module.json @@ -58,23 +58,23 @@ ] }, "resources": { - "recorded": "6 November 2026", + "recorded": "19 November 2026", "storage": { "label": "ColdFire unit", - "display": "Not measured", - "value": null, + "display": "272 bytes", + "value": 272, "unit": "bytes", - "method": "unmeasured", - "conditions": "screen_off.c, one key hook, one draw hook and one tick hook. No stock site, no DSP code.", + "method": "static", + "conditions": "Package 14aea62fbfef825e2ea23cc4baf6e01a2f2b0bf44b215db28748c1a546aeae0c. Linked image 256 bytes (250 of code, 2 of alignment, the 4-byte so_at pointer) plus 12 bytes of bss. The redraw path pushes 4 bytes on the UI stack. No heap and no DSP memory. The composed frame is stock's.", "source": "TESTING.md" }, "processing": { "label": "ColdFire, per key and per composed frame", - "display": "Not measured", - "value": null, + "display": "25033 cycles", + "value": 25033, "unit": "cycles/event", - "method": "unmeasured", - "conditions": "A short compare on each key. While the blank is on, 1024 bytes cleared on each composed frame, in the UI task.", + "method": "emulator", + "conditions": "ot_emu executed instructions from so_draw's entry to its rts, interrupts included, blank on. 26 clears of the frame took 6157 with no interrupt inside the draw. The dearest was 25033. This is not a chip wall-clock count.", "source": "TESTING.md" }, "impact": { @@ -94,7 +94,7 @@ "memory": { "level": "minimal", "basis": "source-estimate", - "rationale": "One small ColdFire unit and 12 bytes of state.", + "rationale": "256 bytes of linked image, 12 bytes of state, and a 4-byte push on the redraw path. No heap and no DSP memory.", "source": "screen_off.c" } }, @@ -110,12 +110,116 @@ }, "tests": { "report": "TESTING.md", - "summary": "Host gate on screen_off.c. The author reports that on a MKII the chord blanks the screen and brings it back. An MKI and a power cycle were not tried.", - "hardwareStatus": "untested", - "evidenceRevision": "fe9e689d3043f215ea4d621613706454c7062cc0", + "summary": "Host gate on screen_off.c. The author reports that on a MKII the chord blanks the screen and brings it back, and that a power cycle brought the screen back on with the module still installed. An MKI was not tried.", + "hardwareStatus": "reported", + "evidenceRevision": "7105ec60ecfdda0a00f31ce7f76f2091580644cf", "gates": [ "modules/screen-off/verify.py" - ] + ], + "qualification": { + "moduleVersion": "0.1.0-experimental", + "sourceSha256": "b5a8e11969e0001ffc9065a8a73a3d915ee773aadda76d9e6fc3573d4ca2aadc", + "imageSha256": "14aea62fbfef825e2ea23cc4baf6e01a2f2b0bf44b215db28748c1a546aeae0c", + "cycles": [ + { + "processor": "coldfire", + "worstCase": 25033, + "maxConfiguration": 25033, + "maxInstances": 1, + "budget": 26600000, + "unit": "cycles/event", + "method": "emulator", + "conditions": { + "parameterExtremes": "There is no parameter. The blank is off or on, and the dearest draw is the clear of the 1024-byte frame.", + "parameterModulation": "No LFO, p-lock, MIDI CC or scene reaches this module. The chord is the only control, and it was the event that was counted.", + "modeSwitching": "One UP+NO turned the blank on. A later run sent STOP and PART+RIGHT, which changed the Part byte from 0 to 1, then PLAY, between two groups of the same chord.", + "maxLoad": "One instance. It takes no track, no FX slot and no DSP core. The count is one draw, not a sum across tracks.", + "inputConditions": "With the blank off the draw returned in 10 instructions. With it on, 26 clears took 6157 and the dearest, the same clear with an interrupt inside it, took 25033. That count is executed instructions, not chip wall-clock cycles, and it does not bound the stock redraw call." + }, + "report": "TESTING.md" + } + ], + "memory": { + "regions": [ + { + "name": "ColdFire code", + "space": "cpu-ram", + "words": 250, + "wordBits": 8, + "bytes": 250, + "scope": "shared" + }, + { + "name": "Alignment before so_at", + "space": "cpu-ram", + "words": 2, + "wordBits": 8, + "bytes": 2, + "scope": "shared" + }, + { + "name": "so_at pointer", + "space": "cpu-ram", + "words": 4, + "wordBits": 8, + "bytes": 4, + "scope": "shared" + }, + { + "name": "struct so", + "space": "cpu-ram", + "words": 12, + "wordBits": 8, + "bytes": 12, + "scope": "shared" + }, + { + "name": "Redraw argument on the UI stack", + "space": "sdram", + "words": 4, + "wordBits": 8, + "bytes": 4, + "scope": "shared" + } + ], + "perInstanceBytes": 0, + "sharedBytes": 272, + "maxInstances": 1, + "totalBytes": 272, + "conditions": "ABI 8 package 14aea62fbfef825e2ea23cc4baf6e01a2f2b0bf44b215db28748c1a546aeae0c, image 256 bytes and bss 12, one instance. The 4-byte figure is the only push in the image. Stock's stack under the redraw call, the composed frame and the held-key row are not this module's. No heap, no table, no DSP memory. Hardware canaries were not measured.", + "report": "TESTING.md" + }, + "hardware": { + "kind": "functional", + "status": "reported", + "model": "MKII", + "testedOn": "2026-11-18", + "tester": "jonathanwardle1992-beep", + "sourceRevision": "7105ec60ecfdda0a00f31ce7f76f2091580644cf", + "imageSha256": "14aea62fbfef825e2ea23cc4baf6e01a2f2b0bf44b215db28748c1a546aeae0c", + "summary": "On a MKII, OS 1.40C, the author reports that hold UP, tap NO blanks the screen and the same chord brings it back, including in a list, the sample editor, the arranger and the status page. On 18 November 2026 the same package was kept, the author powered the unit off and on, and they report the screen came back on with the module still installed. Removal while the screen was black brought the page back and the chord no longer blanked it. A try without keeping rolled back. No SAVE and no flash.", + "limitations": [ + "The blank and the restore are the author's report. The log shows the tick word, not a photograph of the glass.", + "An MKI was not tried. A card install was not tried.", + "The stock screen saver, the OLED power-off command and the MKI backlight were not tried.", + "Part save and project save were not tried. The blank is not stored.", + "No audio was measured. This module writes no samples." + ], + "report": "TESTING.md" + }, + "documentation": { + "tutorial": { + "title": "Quick tutorial", + "steps": [ + "Hold UP and tap NO. The screen goes black. Let go of both keys.", + "Press PLAY, or turn a knob. The Octatrack does it, and the screen stays black. The trig lamps still show the pattern.", + "Hold UP and tap NO again. The screen returns to the page you left." + ] + }, + "screenshots": [], + "screenshotStyle": "black-and-white" + } + } }, "license": { "spdx": "MIT", From 994c4486308431d3969bbfacb1b59d5923ff3497 Mon Sep 17 00:00:00 2001 From: Zac-Kyoti <273702472+Zac-Kyoti@users.noreply.github.com> Date: Wed, 18 Nov 2026 21:53:16 -0800 Subject: [PATCH 066/415] Direct Jump Kyoti 0.2.0: packages rebuilt in the isolated toolchain from the merge and imported Co-Authored-By: Claude Opus 5.5 --- src/engine/assets/bootstrap-package.json | 4 +- src/engine/assets/coldfire-packages.json | 4 +- src/engine/assets/descriptor-recipes.json | 4 +- src/engine/assets/dsp-packages.json | 4 +- src/engine/assets/menu-recipes.json | 4 +- src/engine/assets/module-build.json | 30 +++++++------- src/engine/assets/platform-writes.json | 4 +- src/engine/assets/requested-packages.json | 48 +++++++++++++++++------ src/engine/assets/resident-dsp.json | 4 +- src/engine/assets/rom-packages.json | 4 +- src/engine/assets/usb-audio-packages.json | 4 +- src/engine/assets/utility-packages.json | 4 +- 12 files changed, 70 insertions(+), 48 deletions(-) diff --git a/src/engine/assets/bootstrap-package.json b/src/engine/assets/bootstrap-package.json index c069b5e5ae..53d29684a7 100644 --- a/src/engine/assets/bootstrap-package.json +++ b/src/engine/assets/bootstrap-package.json @@ -16,7 +16,7 @@ "reserveBytes": 10487808, "uncachedAlias": 134217728, "stageAlignment": 4096, - "sourceCommit": "026184a96b0c4fba106bbae507b436236e7ea622", + "sourceCommit": "827e8547b18f8103840bc1c8e9a4b9b6826a5f5b", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", @@ -44,7 +44,7 @@ "output-matrix": "0.1.1-experimental", "quantize-live-rec-toggle": "0.1.1-experimental", "apply-scene": "0.2.0-experimental", - "direct-jump-kyoti": "0.1.2-experimental", + "direct-jump-kyoti": "0.2.0-experimental", "dejavu": "0.1.0-experimental", "arp-key-locks": "0.1.0-experimental", "temp-save": "0.1.1-experimental", diff --git a/src/engine/assets/coldfire-packages.json b/src/engine/assets/coldfire-packages.json index 2a5b7bb966..942337ba96 100644 --- a/src/engine/assets/coldfire-packages.json +++ b/src/engine/assets/coldfire-packages.json @@ -246,7 +246,7 @@ "sha256": "d4b22d2975297e76f90654f25ca6eee4d28a288f727f4b3482fe73616b051378" } ], - "sourceCommit": "026184a96b0c4fba106bbae507b436236e7ea622", + "sourceCommit": "827e8547b18f8103840bc1c8e9a4b9b6826a5f5b", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", @@ -274,7 +274,7 @@ "output-matrix": "0.1.1-experimental", "quantize-live-rec-toggle": "0.1.1-experimental", "apply-scene": "0.2.0-experimental", - "direct-jump-kyoti": "0.1.2-experimental", + "direct-jump-kyoti": "0.2.0-experimental", "dejavu": "0.1.0-experimental", "arp-key-locks": "0.1.0-experimental", "temp-save": "0.1.1-experimental", diff --git a/src/engine/assets/descriptor-recipes.json b/src/engine/assets/descriptor-recipes.json index c6ad0a8f5a..9f00d59143 100644 --- a/src/engine/assets/descriptor-recipes.json +++ b/src/engine/assets/descriptor-recipes.json @@ -3629,7 +3629,7 @@ ] } ], - "sourceCommit": "026184a96b0c4fba106bbae507b436236e7ea622", + "sourceCommit": "827e8547b18f8103840bc1c8e9a4b9b6826a5f5b", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", @@ -3657,7 +3657,7 @@ "output-matrix": "0.1.1-experimental", "quantize-live-rec-toggle": "0.1.1-experimental", "apply-scene": "0.2.0-experimental", - "direct-jump-kyoti": "0.1.2-experimental", + "direct-jump-kyoti": "0.2.0-experimental", "dejavu": "0.1.0-experimental", "arp-key-locks": "0.1.0-experimental", "temp-save": "0.1.1-experimental", diff --git a/src/engine/assets/dsp-packages.json b/src/engine/assets/dsp-packages.json index aefbd8523b..c9c97ceb86 100644 --- a/src/engine/assets/dsp-packages.json +++ b/src/engine/assets/dsp-packages.json @@ -2,7 +2,7 @@ "schema": 1, "revision": "b8deefc88b2c3e5f3c6158e364eb741df1924e1d", "license": "/licenses/octabam.txt", - "sourceCommit": "026184a96b0c4fba106bbae507b436236e7ea622", + "sourceCommit": "827e8547b18f8103840bc1c8e9a4b9b6826a5f5b", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", @@ -30,7 +30,7 @@ "output-matrix": "0.1.1-experimental", "quantize-live-rec-toggle": "0.1.1-experimental", "apply-scene": "0.2.0-experimental", - "direct-jump-kyoti": "0.1.2-experimental", + "direct-jump-kyoti": "0.2.0-experimental", "dejavu": "0.1.0-experimental", "arp-key-locks": "0.1.0-experimental", "temp-save": "0.1.1-experimental", diff --git a/src/engine/assets/menu-recipes.json b/src/engine/assets/menu-recipes.json index cc069e5c6c..ea67267cbc 100644 --- a/src/engine/assets/menu-recipes.json +++ b/src/engine/assets/menu-recipes.json @@ -1021,7 +1021,7 @@ "caveLimit": 1074625596 } ], - "sourceCommit": "026184a96b0c4fba106bbae507b436236e7ea622", + "sourceCommit": "827e8547b18f8103840bc1c8e9a4b9b6826a5f5b", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", @@ -1049,7 +1049,7 @@ "output-matrix": "0.1.1-experimental", "quantize-live-rec-toggle": "0.1.1-experimental", "apply-scene": "0.2.0-experimental", - "direct-jump-kyoti": "0.1.2-experimental", + "direct-jump-kyoti": "0.2.0-experimental", "dejavu": "0.1.0-experimental", "arp-key-locks": "0.1.0-experimental", "temp-save": "0.1.1-experimental", diff --git a/src/engine/assets/module-build.json b/src/engine/assets/module-build.json index b8845e12f4..225b798898 100644 --- a/src/engine/assets/module-build.json +++ b/src/engine/assets/module-build.json @@ -1,9 +1,9 @@ { "schemaVersion": 1, "kind": "source-packages", - "sourceCommit": "026184a96b0c4fba106bbae507b436236e7ea622", + "sourceCommit": "827e8547b18f8103840bc1c8e9a4b9b6826a5f5b", "nativeRevision": "b8deefc88b2c3e5f3c6158e364eb741df1924e1d", - "sourceTreeSha256": "2057aa4d4068a1be1f2e13683c390a863fc4bddc10c3185bbdebe5304cc0167c", + "sourceTreeSha256": "ab28cebe3d9c21a972bc596a2c85753b3200c1fc4cf7390cb6e3022dae2bbe35", "compilerSha256": "97a6eb3ba96f9c1a44aec13f6fb3d5a83327770b8c34725a625582c1afa7c328", "moduleVersions": { "miniverb": "0.2.3-experimental", @@ -32,7 +32,7 @@ "output-matrix": "0.1.1-experimental", "quantize-live-rec-toggle": "0.1.1-experimental", "apply-scene": "0.2.0-experimental", - "direct-jump-kyoti": "0.1.2-experimental", + "direct-jump-kyoti": "0.2.0-experimental", "dejavu": "0.1.0-experimental", "arp-key-locks": "0.1.0-experimental", "temp-save": "0.1.1-experimental", @@ -44,47 +44,47 @@ "files": { "dsp-packages.json": { "bytes": 77218, - "sha256": "1467729897aa8e245a3b37be8999941bc764259c38539575e6202a9416fb641d" + "sha256": "f2f0ae947bfdc53e4738fea29054c85e934d671ebffe271701b6f9394128cc1a" }, "resident-dsp.json": { "bytes": 8432, - "sha256": "28d990723e850407e8d7d595eadc0e86cff51110c2dfaf591b99b3e545b51905" + "sha256": "a307a085f685c620d8c808bb9f6546ceb9245a5e6b763602a98240baf4fca1ba" }, "coldfire-packages.json": { "bytes": 363671, - "sha256": "6329a61099fac44ab3e9d196396b3f48711b7414ef574dbb5904cd6053066d43" + "sha256": "03c48f9a8ba0ef77b3cec7cfa5a338a1c2aee5d0867415f699a59d12c4ef7bd0" }, "rom-packages.json": { "bytes": 29951, - "sha256": "f53a649ba0ddc2fc904d92bf47ea7e1960ca06ea643e744786c5beaaaeb930e6" + "sha256": "a6fa6819133bdf6bd94571a983d7aaaee6c3220530746e90810cba0dfc9faf51" }, "bootstrap-package.json": { "bytes": 4058, - "sha256": "939119520111d2c46febbb4e2be0009c506cc992bde988c4d42811da9e23f7b8" + "sha256": "d7e064c1a9ebceddb49dad283ddc303140375e4b5e7f9bc9d7c0f7432dbd8c18" }, "menu-recipes.json": { "bytes": 26082, - "sha256": "8ef8373aa874dbbf7d29b9e90975e3b4bcd541a94d57f23ed21630ecf038f5e7" + "sha256": "ce59de72e067eb7146586af3f6b27a4e349252d205fc6788f07dfbe9ef9e4d21" }, "descriptor-recipes.json": { "bytes": 70184, - "sha256": "3ce4b2f5426ef39d366d35e5f8ddd080cab48bde3cae78c2ccb9f4c7cf074aa0" + "sha256": "ef6148842a3b6a840f81780777f281948d902e9daf991560296c1e3117b46970" }, "platform-writes.json": { "bytes": 17036, - "sha256": "17f06fd648ee192d9f5e2a12af25031f09a7fa5d55601246281d2fe4ad99e45f" + "sha256": "f1ad4b0c1743590fbadb1c27096de60b524618d58cc5023492623b8d6f8a96e2" }, "requested-packages.json": { - "bytes": 1331942, - "sha256": "e6223db3aecadb6ed022aa9b917fc551604b33df3f760c8f34889bd3fdba0f8d" + "bytes": 1340399, + "sha256": "56ec1e95df0493209a9fa6fc849c9a9f5a3d0128b1bb0f546e10ec04a978e9ce" }, "utility-packages.json": { "bytes": 13186, - "sha256": "77cd4eb649dce3d0cdae5b08ef780cdfd83e24f1a8335776b80f535081f8b7f1" + "sha256": "02e2d1d1c0376c4c75ade09b6b99078b4690dc00acfef4306cad722c5b72343e" }, "usb-audio-packages.json": { "bytes": 737828, - "sha256": "721f6c475a3ed43c2c914e61f06fe992917bbbd172cb60d944defb6f83fa20e5" + "sha256": "628f6daae8c4fbfc64f79d34c112d6be937907a6078e9c28ad87ab14b2aaf7f9" } }, "approval": null, diff --git a/src/engine/assets/platform-writes.json b/src/engine/assets/platform-writes.json index f9ed210d76..26b9c47134 100644 --- a/src/engine/assets/platform-writes.json +++ b/src/engine/assets/platform-writes.json @@ -492,7 +492,7 @@ "sha256": "8a5b26c7f7c97f1e945c2274fb2632e05fc94e7babb941e8b7c80f7e0f24bf61" } ], - "sourceCommit": "026184a96b0c4fba106bbae507b436236e7ea622", + "sourceCommit": "827e8547b18f8103840bc1c8e9a4b9b6826a5f5b", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", @@ -520,7 +520,7 @@ "output-matrix": "0.1.1-experimental", "quantize-live-rec-toggle": "0.1.1-experimental", "apply-scene": "0.2.0-experimental", - "direct-jump-kyoti": "0.1.2-experimental", + "direct-jump-kyoti": "0.2.0-experimental", "dejavu": "0.1.0-experimental", "arp-key-locks": "0.1.0-experimental", "temp-save": "0.1.1-experimental", diff --git a/src/engine/assets/requested-packages.json b/src/engine/assets/requested-packages.json index d83f5af357..26a9341898 100644 --- a/src/engine/assets/requested-packages.json +++ b/src/engine/assets/requested-packages.json @@ -1,7 +1,7 @@ { "schema": 1, "revision": "b8deefc88b2c3e5f3c6158e364eb741df1924e1d", - "sourceCommit": "026184a96b0c4fba106bbae507b436236e7ea622", + "sourceCommit": "827e8547b18f8103840bc1c8e9a4b9b6826a5f5b", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", @@ -29,7 +29,7 @@ "output-matrix": "0.1.1-experimental", "quantize-live-rec-toggle": "0.1.1-experimental", "apply-scene": "0.2.0-experimental", - "direct-jump-kyoti": "0.1.2-experimental", + "direct-jump-kyoti": "0.2.0-experimental", "dejavu": "0.1.0-experimental", "arp-key-locks": "0.1.0-experimental", "temp-save": "0.1.1-experimental", @@ -1087,7 +1087,7 @@ { "label": "dj7", "moduleId": "direct-jump-kyoti", - "version": "0.1.2-experimental", + "version": "0.2.0-experimental", "key": "DIRECT_JUMP_KYOTI", "author": "Zac-Kyoti", "nativeAuthor": "Zac-Kyoti", @@ -1096,12 +1096,12 @@ "caveAddress": null, "source": "modules/direct-jump-kyoti/patch_directjump_v7.s", "sources": { - "modules/direct-jump-kyoti/patch_directjump_v7.s": "c66436aa1b07ee4c094175249a561a50a8db6af1f5813ae5b2c006638c56d011", - "modules/direct-jump-kyoti/manifest.py": "cb692249697b3c982f2ac984b7a50f7933b7ad9dcd50b02600b966df04b53c8e" + "modules/direct-jump-kyoti/patch_directjump_v7.s": "cae97228230f43214ff3ca6ac8fb84a082397f4dec67c59ca772e56f95b4b841", + "modules/direct-jump-kyoti/manifest.py": "f449e3af81f61d400cabbdc73c4b5d1f8f1332d6f651cc0b118f6c020aefc9f1" }, - "bytes": 6772, - "code": "7f454c460102010000000000000000000001000400000001000000000000000000001934000000260034000000000028000800077001b0af00086600005c2039460d17425380660000504ab9460d1aec660000464ab9460e5cd06600003c203a077c0a800000000102800000000123c00000000041fa00344a80670441fa001c487800442f084eb94005a2b8508f700123c0460d173e4e754e75444952454354204a554d50204f4e0000444952454354204a554d50204f4646004fefffc448d77fff7001b0b9800065b8670842b900000000600652b9000000004aba0700670000847001b0b9800065b8660000784ab9460d1aec6600006e4ab98000654666000064103a06d26700007e0c000003660e6100065a423900000000600001ae0c000001660001a61039800065c0b03a06ac660c1039800065bfb03a06a167104239800066874239000000006000003a1039800066870c000001660001706100017c60000168103a06700c000001660642398000668742390000000070ff13c000000000600001461039800065c00c00ffff67e2b039800065be66501039800065bfb039800065bd6642103a062d0c00ffff6700ffc2b039800065be660e103a061bb039800065bd6700ffac70001039800065be2f0070001039800065bd2f004eb94009e884508f6000ff8c1039800065c0b03a05e5660c1039800065bfb03a05db67341039800065c013c0000000001039800065bf13c00000000070001039800065c02f0070001039800065bf2f004eb94009e884508f4a39800066876e00008c70001039800065bf72001239800065c0610003326100034e2e3a05860687000000007c002007d086610004644a806d12223a057e24004c4120024c012800b082670e52860c86000000786dd86000003c1039800065c013c0000000001039800065bf13c0000000002206528113c1800066870c810000000166086100001e6000000a700113c0000000004cd77fff4fef003c1039800066874e751039800065be13c0800065c11039800065bd13c0800065c21039800065c013c0800065be1039800065bf13c0800065bd70001039800065bd223c0009b3404c01080072001239800065be243c00008ed84c021800d08145f9400e21e0d5c06100026a2e3a04a206870000000023c700000000263a049a2007d0835380223a0494670c24004c4120024c012800908228004c43400423c4800066382a009a83528541f98000651643f98000653647fa046c49fa04787c107200121b20054c4100007400141c7202b2826e0e22004c4210014c02180090816002700030c04219538666d4610003304279800066264279800066804279800066824279800066841039800065bd13c0400d816841f9400d816761000026610000721039800065be13c0400d816c41f9400d816b6100000c700213c0000000004e752f084879460d17ae43f940000c3c4e91508f4e75103a03ae0c000002660e700313c0000000004a3a039e4e754a398000002a4e754ab9460d1e706708700123c0460d1e6c4879400bf0f24ef94004341e223c00008e571032180013c0400d816a41f9400d81696100ff98780376532c3c0000091a610000ce23c446c7fa8020394610757c23c0800019e41039800065bd13c046c7ff40223c00008e571032180013c046c7ff627803263c000048fb2c3c000008b06100008e23c446c7a1207a004a3980001860661610398000002808000000670a4ab946104ca867027a012039461075644a85660606800000313823c046c76aa6700123c046c76a222039461075644a8567080480000041a0600604800000106823c046c76aaa1039800065bd13c046c7a850223c00008e571032180013c046c7a9344878ffff4eb9400a539c588f4e757a0810323800671a0c000001670e0c00ffff660e4a398000004f67067001eba88880d68652857010b08566d64e75243c0009b3404c020800243c00008ed84c021800d08145f9400e21e0d5c04e7541f9400aba50203c00008e551e32080072004a076624203c00008e54123208007006b2806302720226301c00203c00008e537800183208006026203c00008e52123208007006b2806302720226301c00203c00008e503832080048c46e02780023c30000000020044c03080023c0000000002a0347fa01da49fa01e64bf98000663e7c007008b0866f12203c0000091a4c060800068000000050601420065180223c000008b04c0108000680000048f843f208004a2900046708720012356800601672004a07660c203c00008e54123208006004122900017006b2806306243a0164600424301c0016c24a07660418c4600218d1200522024a81671426004c4130034c013800908326002001220360e84c4050054c02580052867010b0866600ff6423c5000000004e75263a0118d0835380223a0114670c24004c4120024c0128009082908352804e752a394610757c41f98000190443f946c7e99847f946c7fe44612c41f98000198447f946c7fe8c43f946c7faa461182a394610756441f946c76a2643f946c769c047f946c77be27c007800700010336800090067182204e789d28624301c0094856b0a42b11c0009801780680052847003b08466d652867008b08666cc4e7541f9400aba50700010398000663d7206b0816302700226300c007a00223a0062670c92835281b2ba00506e027a0143f98000663e45f9800065d37c0072004a85671a70001031680022030c8000000006620422300c0092836a0272001581680052867010b08666d44e7500ff00ffffff0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000100000000000000000000000003000003000000000000000000000000030000040000000100000001000000000000fff100000011460d1742000000000000fff10000001a460d173e000000000000fff100000023460e5cd0000000000000fff100000029460d1aec000000000000fff10000003180006546000000000000fff10000003b4005a2b8000000000000fff100000042460d1e70000000000000fff100000050460d1e6c000000000000fff1000000614004341e000000000000fff10000007600000044000000000000fff100000083800065b8000000000000fff10000008f800065bd000000000000fff100000098800065be000000000000fff1000000a0800065bf000000000000fff1000000aa800065c0000000000000fff1000000b3800065c1000000000000fff1000000bc800065c2000000000000fff1000000c6800065b2000000000000fff1000000d2800065b6000000000000fff1000000db8000663d000000000000fff1000000e4400aba50000000000000fff1000000ec00000006000000000000fff1000000f600000002000000000000fff1000000ff80006687000000000000fff10000010a80006516000000000000fff10000011480006536000000000000fff10000011e80006638000000000000fff10000012780006626000000000000fff10000013180006680000000000000fff10000013a80006682000000000000fff10000014380006684000000000000fff10000014c8000002a000000000000fff1000001564009e884000000000000fff10000015e40013a08000000000000fff10000016640000c3c000000000000fff10000016c460d17ae000000000000fff100000175400d8167000000000000fff100000181400d8168000000000000fff100000191400d8169000000000000fff10000019a400d816a000000000000fff1000001a700008e57000000000000fff1000001ae00000003000000000000fff1000001b78000004f000000000000fff1000001c246c7fa80000000000000fff1000001cd800019e4000000000000fff1000001d746c7ff40000000000000fff1000001e146c7ff62000000000000fff1000001eb46c7a120000000000000fff1000001f646c76aa6000000000000fff10000020146c76a22000000000000fff10000020b46c76aaa000000000000fff10000021646c7a850000000000000fff10000022046c7a934000000000000fff10000022a400a539c000000000000fff100000235400d816b000000000000fff10000023d400d816c000000000000fff100000249400e21e0000000000000fff1000002520009b340000000000000fff10000025e00008ed8000000000000fff10000026900008e53000000000000fff10000027400008e50000000000000fff10000028000008e55000000000000fff10000028d00000050000000000000fff1000002930000091a000000000000fff10000029c000048f8000000000000fff1000002a2000008b0000000000000fff1000002ab00000000000000000000fff1000002b300000001000000000000fff1000002bc00000002000000000000fff1000002c700000003000000000000fff1000002d08000663e000000000000fff1000002da800065d3000000000000fff1000002e100008e54000000000000fff1000002eb00008e52000000000000fff1000002f400000000000000000000fff1000002fa00000001000000000000fff10000030000000004000000000000fff1000003074610757c000000000000fff10000030c46107564000000000000fff10000031100000000000000000000fff10000031900000064000000000000000100000323000007a800000000000000010000032b000000760000000000000001000003360000004c00000000000000010000033f00000066000000000000000100000349000000a0000000000000000100000350000007ac000000000000000100000355000000a600000000000000010000035d00000130000000000000000100000364000007a200000000000000010000036d00000152000000000000000100000375000000ea00000000000000010000037f0000073800000000000000010000038800000296000000000000000100000390000007a600000000000000010000039a0000010a0000000000000001000003a3000007a70000000000000001000003ae0000011a0000000000000001000003b6000002a60000000000000001000003c0000001400000000000000001000003c9000007a30000000000000001000003d2000001b60000000000000001000003da000001960000000000000001000003e3000007a50000000000000001000003ed000001ce0000000000000001000003f7000002020000000000000001000003fe0000055000000000000000010000040600000570000000000000000100000411000002300000000000000001000004190000069a0000000000000001000004230000024e00000000000000010000042b000007bc0000000000000001000004300000025c0000000000000001000004390000028e000000000000000100000441000007b000000000000000010000044a000007b4000000000000000100000452000007b80000000000000001000004570000033400000000000000010000045e000007c0000000000000000100000465000007d000000000000000010000046c0000035c0000000000000001000004740000037e00000000000000010000047d00000380000000000000000100000486000006ba00000000000000010000048f000003de0000000000000001000004970000042e0000000000000001000004a20000040a0000000000000001000004ab000007a40000000000000001000004b3000004220000000000000001000004bc000005220000000000000001000004c4000004bc0000000000000001000004ca000004cc0000000000000001000004d1000004ec0000000000000001000004d8000004f20000000000000001000004df000005240000000000000001000004e5000005440000000000000001000004eb0000053e0000000000000001000004f2000005aa0000000000000001000004f8000005d00000000000000001000004fd000005f40000000000000001000005050000060c00000000000000010000050d0000062000000000000000010000051500000632000000000000000100000520000006480000000000000001000005270000064400000000000000010000053000000662000000000000000100000539000006640000000000000001000005400000066800000000000000010000054700000680000000000000000100000550000006b400000000000000010000055700000700000000000000000100000560000007020000000000000001000005670000070400000000000000010000056f000007260000000000000001000005770000076600000000000000010000057d000007740000000000000001000005850000079400000000000000010000058e00000000000000001000000100000598000000860000000010000001000005a0000003f20000000010000001000005a800000412000000001000000100444a5f4d4f44455f494e5f434156450050544e5f4d4f44450050544e5f5553454400504f505550004152525f41435400434841494e5f414354004e4f54494659004e4f544946595f48414e444c45004e4f544946595f434f554e54444f574e0050544e5f4c415945525f52454c5f524553554d4500444a5f544f4153545f445552005452414e53504f52545f4c004143545f42414e4b004143545f5041540050454e445f42414e4b0050454e445f50415400505245565f50415400505245565f42414e4b004d41535445525f53544550005449434b5f435452005343414c455f4958004c454e5f54424c005343414c455f4d4158005343414c455f3158004c414e445f434e54444e00534e41505f5354455000534e41505f5449434b00524553554d455f4c00484f4c445f4d41534b00524553594e43383000524553594e43383200524553594e433834004d4944495f53454e440050435f53454e4400535052494e5446004b504f53540055495f5155455545004d53475f42414e4b504154004d53475f42414e4b5041545f415247004d53475f50415254004d53475f504152545f41524700505f5041525400545f53494c454e540053494c454e545f44454600454e475f41464c41475300454e475f4154494d4500454e475f4142414e4b00454e475f415041525400454e475f4d464c41475300454e475f4d54494d453100454e475f4d464c414700454e475f4d54494d453200454e475f4d42414e4b00454e475f4d5041525400434f4e445f5245534554004d53475f504154004d53475f5041545f415247005041545f424153450042414e4b5f535452494445005041545f53545249444500505f4c454e5f4259544500505f4d4c454e5f574f524400505f5343414c455f4d4f444500415f4c454e00415f535452494445004d5f4c454e004d5f5354524944450053545f49444c450053545f41524d45440053545f4c414e44494e470053545f46495855500054524b5f5343414c450052454c4f414400505f5343414c455f4e00505f4d5343414c4500545f4c454e00545f53434c00545f464c41470053434c4b004d434c4b00444a5f544f465300646a745f73746f636b00444a5f4d4f444500646a5f6d73675f6f666600646a745f73686f7700646a5f6d73675f6f6e0064745f72756e00646a5f540064745f646f6e6500646c5f6f666600646a5f737461746500646c5f69646c6500646c5f6e6f7466697800646c5f666978757000646c5f646f6e6500646a5f61726d7061740064615f726563756500646a5f61726d62616e6b0064615f73616d6500646c5f636f6d6d697400646c5f636c65617200646a5f706370617400646c5f7265616c00646c5f706366697800646a5f706362616e6b00646c5f706373656e6400646c5f61726d00646a5f626c6f6200646a5f62706172616d730064615f7363616e00646a5f747072696d650064615f6e65787400646a5f4c0064615f666f756e6400646c5f61726d3200646a5f746c616e6400646a5f7470734d00646a5f430064635f6e6f6300646a5f74707300646a5f6c656e0064635f6c6f6f700064635f73746570300064635f73746f726500646a5f707572676500646a5f706f737400646a5f68616e646f666600646e5f73746f636b00646a5f7a65726f006470725f646f6e6500686f5f6269747300686f5f6d7400686f5f6d743100686f5f6d743200686f5f6d743300686f5f6c7000686f5f6e7800686f5f7365740062705f70740062705f630062705f6c6f6f700062705f6d6964690062705f626173650062705f626c6f6273636c0062705f73636c0062705f707473636c0062705f70746c656e0062705f6c636d0062705f6763640062705f6763646f6b0074705f6e6f630070675f7461626c650070675f74726b0070675f736c6f740070675f6e6578740066785f676f0066785f6c6f6f700066785f73746f726500646a5f746f67676c6500646a5f6c616e6400646a5f6e6f666100646a5f70746e72656c0000000000003c00000101000007a80000009a00000101000007ac000000a200000101000007ac000000e200000101000007a20000011200000101000007a20000014200000101000007a20000014a00000101000007a3000001d600000101000007a3000001e200000101000007a50000026400000101000007a60000027000000101000007a70000029200000101000007a20000031400000101000007b0000003d800000101000007a20000040000000101000007a2000005d200000101000007b4000005de00000101000007b80000069400000101000007bc002e73796d746162002e737472746162002e7368737472746162002e72656c612e74657874002e64617461002e62737300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000001000000060000000000000034000007e0000000000000000000000004000000000000001b00000004000000400000000000001828000000d80000000500000001000000040000000c000000260000000100000003000000000000081400000000000000000000000000000004000000000000002c000000080000000300000000000008140000000000000000000000000000000400000000000000010000000200000000000000000000081400000a6000000006000000a200000004000000100000000900000003000000000000000000001274000005b20000000000000000000000010000000000000011000000030000000000000000000019000000003100000000000000000000000100000000", - "sha256": "a8d5e79c0823996e80b5ae7bf788b34179410956bea69f0aaf3c864de30e9330", + "bytes": 10608, + "code": "7f454c460102010000000000000000000001000400000001000000000000000000002830000000260034000000000028000800077001b0af00086600005c2039460d17425380660000504ab9460d1aec660000464ab9460e5cd06600003c203a0efa0a800000000102800000000123c00000000041fa00344a80670441fa001c487800442f084eb94005a2b8508f700123c0460d173e4e754e75444952454354204a554d50204f4e0000444952454354204a554d50204f4646004fefffc448d77fff610003327001b0b9800065b8670e42b90000000042b900000000600652b9000000004aba0e74670000887001b0b9800065b86600007c4ab9460d1aec660000724ab98000654666000068103a0dd86700008c0c00000366126100094c610008ee423900000000600001ba0c000001660001b21039800065c0b03a0dae660c1039800065bfb03a0da36710423980006687423900000000600000441039800066870c0000016600017c610002e8600001744a3a0d79670461000b1e103a0d680c000001660642398000668742390000000070ff13c000000000600001481039800065c00c00ffff67e2b039800065be66501039800065bfb039800065bd6642103a0d250c00ffff6700ffc2b039800065be660e103a0d13b039800065bd6700ffac70001039800065be2f0070001039800065bd2f004eb94009e884508f6000ff8c1039800065c0b03a0cdd660c1039800065bfb03a0cd367341039800065c013c0000000001039800065bf13c00000000070001039800065c02f0070001039800065bf2f004eb94009e884508f4a39800066876e00008e70001039800065bf72001239800065c0610005a2610005be2e3a0cec0687000000007c002007d0865280610006d24a806d12223a0ce624004c4120024c012800b082670e52860c86000000786dd66000003c1039800065c013c0000000001039800065bf13c0000000002206528113c1800066870c810000000166086100017e6000000a700113c0000000004a3a0c0767046100095c103a0bf60c0000016604610000124cd77fff4fef003c1039800066874e754a398000667e660000e070001039800065bd72001239800065be610004e4720012398000663d7006b2806302720241f9400aba5024301c001239800065b649c15281b2826d0000a274003439800065b2528202820000ffff203c00008e561232080049c16a0812398000004e49c141f9400d80dc26301c004a836f0a20024c4308014a81674220398000662c72ffb0816706b0826e526030203c00008e554a320800670e203c00008e503232080048c1600c203c00008e531232080049c170ffb2806724b2826e201039800065be13c0800065c01039800065bd13c0800065bf700113c0000000004e754a3a0af467564239000000001039800065c0b039800065be66421039800065bfb039800065bd6634103a0aca13c0800065c0103a0ac113c0800065bf1039800065be13c0400d816c4879400d816b4879460d17ae4eb940000c3c508f4e754a3a0a9767046100083c1039800065be13c0800065c11039800065bd13c0800065c21039800065c013c0800065be1039800065bf13c0800065bd70001039800065bd223c0009b3404c01080072001239800065be243c00008ed84c021800d08145f9400e21e0d5c06100036e2e3a0a9c068700000000263a0a9e203a0a924c030800de8023c7000000002007d0835380223a0a88670c24004c4120024c012800908228004c43400423c4800066382a009a83548541f98000651643f98000653647fa0a6049fa0a6c7c107200121b20054c4100007400141c7202b2826e0e22004c4210014c02180090816002700030c04219538666d4610004364279800066264279800066804279800066824279800066841039800065bd13c0400d81684879400d81674879460d17ae4eb940000c3c508f610000901039800065be13c0400d816c4879400d816b4879460d17ae4eb940000c3c508f700213c0000000004e75103a09300c0000026636700313c0000000002f082f0141f9800065d372101010538010c0538166f61039800065b6538013c0800065b6221f205f4a3a08f84e754a398000002a4e754ab9460d1e706708700123c0460d1e6c4879400bf0f24ef94004341e223c00008e571032180013c0400d816a4879400d81694879460d17ae4eb940000c3c508f780376532c3c0000091a6100019623c446c7fa8023c40000000020394610757c068000285ff023c0800019e41039800065bd13c046c7ff40223c00008e571032180013c046c7ff627803263c000048fb2c3c000008b06100014a23c446c7a12023c4000000007a004a3980001860661610398000002808000000670a4ab946104ca867027a012039461075640680000041a04a85660606800000313823c046c76aa6700123c046c76a222039461075640680000041a04a8567080480000041a0600604800000106823c046c76aaa1039800065bd13c046c7a850223c00008e571032180013c046c7a934610003c2600000022e3a08366a027e004aba0836671e2c3a0830200690ba08262c4020074c4600002a404c06080022079280244147fa081a49fa082641f94610791843f9461079797a107800181b7600161c660276014c0438004aba07ec660c2007d08453804c430000603e200ed08422004c43100124014c032800908224014a80670252822c0d4c026800240ad48453824c432002b481630224014a806706b5ce630252822006d08220c012fc000153856600ff964e757a0810323800671a0c000001670e0c00ffff660e4a398000004f67067001eba88880d68652857010b08566d64e75243c0009b3404c020800243c00008ed84c021800d08145f9400e21e0d5c04e7541f9400aba50203c00008e551e32080072004a076624203c00008e54123208007006b2806302720226301c00203c00008e537800183208006026203c00008e52123208007006b2806302720226301c00203c00008e503832080048c46e02780023c30000000020044c03080023c0000000002a0347fa06d449fa06e04bf98000663e7c007008b0866f12203c0000091a4c060800068000000050601420065180223c000008b04c0108000680000048f843f208004a2900046708720012356800601672004a07660c203c00008e54123208006004122900017006b2806306243a065e600424301c0016c24a07660418c4600218d1200522024a81671426004c4130034c013800908326002001220360e84c4050054c02580052867010b0866600ff6423c5000000004e75263a0612223a06064c031800d081d08353806b12223a0602670c24004c4120024c0128009082908352804e752a394610757c263c00142ff841f98000190443f946c7e99847f946c7fe44613241f98000198443f946c7faa447f946c7fe8c611e2a3946107564263c000020d041f946c76a2643f946c769c047f946c77be27c0078007000103368000900671a2204e789d28624301c009485b4836d0a42b11c0009801780680052847003b08466d452867008b08666ca4e75283a04e27a00200550800104670a2f054eb940008f84588f52857008b08566e64e75700010398000663d0c80000000066302700241f9400aba5020300c00448023c00000000070003039800065b223c0000000004ef9400a539c41f9400aba50700010398000663d7206b0816302700226300c007a00223a04e8670c92835281b2ba04d66e027a0143f98000663e45f9800065d37c0072004a85671a70001031680022030c8000000006620422300c0092836a0272001581680052867010b08666d44e754a3a041a670a423900000000b0804e754a39800000504e754a398000005066024e751039800065bd13c000000000223c00008e571032180013c0000000002a394610757c068500142ff82839461075640684000020d07c007e02203a03c40c86000000086504203a03bc22060281000000075081030066102006610000484a8067062e3c0000fffe2006d08041fa039a31870800d08041fa03b0218508000c860000000865042184080052867010b0866600ffa6700113c00000000013c0000000004e7526000c80000000086412223c0000091a4c01080041f20800725060185180223c000008b04c0108000680000048d041f208007228700010301800223c00008e554a321800660c223c00008e537000103218002428000426107220b081640c76007201e1a95381c48160160480000000200c800000002064087201e1a95381c681848320024e754fefffe848d7070e70001039800065bd72001239800065be6100fbd620066100ff5a4cd7070e4fef00184e757c0076002206d28141fa02a8700030301800672c0c800000fffe6614610000d44a8066186100ffae4a806710760160105380318018006704760160046100003c52867010b08666bc13c3000000004e757c002006d08041fa025a4a70080067046100001852867010b08666e64239000000004239000000004e752006d08041fa02324270080020060c8000000008650251802f007000103a02102f00103a02092f000c860000000864084eb940001f186004610000e64fef000c4e75202f000c0c800000000864064ef940001f1851802f40000c600000c4700113c0000000002f2f00082f2f00084eb940009e00508f4e754fefffe448d70c3e2006e58841fa01d22830080026060c8600000008642024394610757c2a3c00142ff8247c46c7fe44207c80001904227c46c7e998602051832439461075642a3c000020d0247c46c77be2207c46c76a26227c46c769c07200700010323800030067262001e788d083264020310c00080000026714200b20300c00264090846b08200b9082b0856d0c52817003b08166c87000600270014cd70c3e4fef001c4e754fefffec48d70c1c202f0018222f001c242f0020263c0009b3404c003800247c40170f60d5c3263c000018b24c013800d5c376444c023800207c46c76dc0d1c32602eb8b224ad3fc000003e2d3c3782010d9538466fa76244c023800224ad3fc000004e2d3c32649d7fc00000009782410d9538466fa78001033480049c0720ab0816f4804800000000b224ad3fc000017922200e989d3c12202d281d282d284207c46c7738c2601e98bd1c3761010d9538366fa224ad3fc00001812d080d3c0207c46c7750cd281d1c1309152840c840000000366a2207c8000666e202f001811802800202f001c118028082002e588207c8000664e42b008004cd70c1c4fef00144e7500ff00ffffff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000100000000000000000000000003000003000000000000000000000000030000040000000100000001000000000000fff100000011460d1742000000000000fff10000001a460d173e000000000000fff100000023460e5cd0000000000000fff100000029460d1aec000000000000fff10000003180006546000000000000fff10000003b4005a2b8000000000000fff100000042460d1e70000000000000fff100000050460d1e6c000000000000fff1000000614004341e000000000000fff10000007600000044000000000000fff100000083800065b8000000000000fff10000008f800065bd000000000000fff100000098800065be000000000000fff1000000a0800065bf000000000000fff1000000aa800065c0000000000000fff1000000b3800065c1000000000000fff1000000bc800065c2000000000000fff1000000c6800065b2000000000000fff1000000d2800065b6000000000000fff1000000db8000663d000000000000fff1000000e4400aba50000000000000fff1000000ec00000006000000000000fff1000000f600000002000000000000fff1000000ff80006687000000000000fff10000010a80006516000000000000fff10000011480006536000000000000fff10000011e80006638000000000000fff10000012780006626000000000000fff10000013180006680000000000000fff10000013a80006682000000000000fff10000014380006684000000000000fff10000014c8000002a000000000000fff1000001564009e884000000000000fff10000015e40013a08000000000000fff10000016640000c3c000000000000fff10000016c460d17ae000000000000fff100000175400d8167000000000000fff100000181400d8168000000000000fff100000191400d8169000000000000fff10000019a400d816a000000000000fff1000001a700008e57000000000000fff1000001ae00000003000000000000fff1000001b78000004f000000000000fff1000001c246c7fa80000000000000fff1000001cd800019e4000000000000fff1000001d746c7ff40000000000000fff1000001e146c7ff62000000000000fff1000001eb46c7a120000000000000fff1000001f646c76aa6000000000000fff10000020146c76a22000000000000fff10000020b46c76aaa000000000000fff10000021646c7a850000000000000fff10000022046c7a934000000000000fff10000022a400a539c000000000000fff10000023500008e56000000000000fff10000023e8000004e000000000000fff100000249400d80dc000000000000fff1000002538000662c000000000000fff10000025c8000667e000000000000fff10000026540001f18000000000000fff10000026f0008ed80000000000000fff100000278000018b2000000000000fff10000027f46c76dc0000000000000fff10000028446c7738c000000000000fff10000028946c7750c000000000000fff10000021a8000666e000000000000fff10000028e8000664e000000000000fff100000294000048d0000000000000fff10000029a40008f84000000000000fff1000002a3400d816b000000000000fff1000002ab400d816c000000000000fff1000002b7400e21e0000000000000fff1000002c00009b340000000000000fff1000002cc00008ed8000000000000fff1000002d700008e53000000000000fff1000002e200008e50000000000000fff1000002ee00008e55000000000000fff1000002fb00000050000000000000fff1000003010000091a000000000000fff10000030a000048f8000000000000fff100000310000008b0000000000000fff10000031900000000000000000000fff10000032100000001000000000000fff10000032a00000002000000000000fff10000033500000003000000000000fff10000033e8000663e000000000000fff100000348800065d3000000000000fff10000034f00008e54000000000000fff10000035900008e52000000000000fff10000036200000000000000000000fff10000036800000001000000000000fff10000036e00000004000000000000fff1000003754610757c000000000000fff10000037a46107564000000000000fff10000037f00285ff0000000000000fff100000386000041a0000000000000fff10000038d00000000000000000000fff1000003950000006400000000000000010000039f00000f260000000000000001000003a7000000760000000000000001000003b20000004c0000000000000001000003bb000000660000000000000001000003c5000003c20000000000000001000003cf000000aa0000000000000001000003d600000f2a0000000000000001000003db00000f2e0000000000000001000003e2000000b00000000000000001000003ea0000013e0000000000000001000003f100000eb20000000000000001000003fa0000016a000000000000000100000402000000f800000000000000010000040c00000a34000000000000000100000415000009da00000000000000010000041f000002b000000000000000010000042700000eb60000000000000001000004310000011800000000000000010000043a00000eb70000000000000001000004450000012800000000000000010000044d0000042000000000000000010000045700000eb900000000000000010000045e00000c640000000000000001000004690000015800000000000000010000047200000eb300000000000000010000047b000001ce000000000000000100000483000001ae00000000000000010000048c00000eb5000000000000000100000496000001e60000000000000001000004a00000021a0000000000000001000004a7000007d80000000000000001000004af000007f80000000000000001000004ba000002480000000000000001000004c2000009220000000000000001000004cc000002680000000000000001000004d400000f3e0000000000000001000004d9000002760000000000000001000004e2000002a80000000000000001000004ea00000c140000000000000001000004f2000002c80000000000000001000004f9000002d8000000000000000100000501000003c00000000000000001000005070000035e00000000000000010000050e000003a00000000000000001000005150000037000000000000000010000051c00000eb80000000000000001000005230000041e00000000000000010000052a00000f3600000000000000010000053200000f3200000000000000010000053b00000f3a000000000000000100000540000004c200000000000000010000054700000f4200000000000000010000054e00000f52000000000000000100000555000004ea00000000000000010000055d0000050c0000000000000001000005660000050e00000000000000010000056f0000094e000000000000000100000578000005e4000000000000000100000583000005c000000000000000010000058c0000059e00000000000000010000059200000eb400000000000000010000059a000005d80000000000000001000005a3000007aa0000000000000001000005ab00000ebe0000000000000001000005b300000ec20000000000000001000005bb0000068e0000000000000001000005c1000006a40000000000000001000005c8000006ca0000000000000001000005cf000006d00000000000000001000005d600000ab60000000000000001000005df000006fa0000000000000001000005e7000007260000000000000001000005ef0000073c0000000000000001000005f70000075e0000000000000001000005fe0000079c000000000000000100000607000007ac00000000000000010000060d000007cc000000000000000100000613000007c600000000000000010000061a00000832000000000000000100000620000008580000000000000001000006250000087c00000000000000010000062d00000894000000000000000100000635000008a800000000000000010000063d000008ba000000000000000100000648000008d000000000000000010000064f000008cc000000000000000100000658000008ea000000000000000100000661000008ec000000000000000100000668000008f000000000000000010000066f000009080000000000000001000006780000094800000000000000010000067f000009a0000000000000000100000688000009a200000000000000010000068f000009a4000000000000000100000697000009c800000000000000010000069f000009e00000000000000001000006a400000a620000000000000001000006aa00000a700000000000000001000006b200000a900000000000000001000006bb00000eba0000000000000001000006c400000aae0000000000000001000006cd00000ebb0000000000000001000006d500000ebc0000000000000001000006dd00000af60000000000000001000006e200000b260000000000000001000006e900000b620000000000000001000006f200000ec60000000000000001000006f900000ee600000000000000010000070100000be800000000000000010000070c00000c1800000000000000010000071100000c5400000000000000010000071600000c4400000000000000010000071d00000d0600000000000000010000072700000c5000000000000000010000072d00000c8e00000000000000010000073500000c6600000000000000010000073a00000c7800000000000000010000073f00000dae00000000000000010000074900000d4400000000000000010000074e00000d6400000000000000010000075400000d6600000000000000010000075900000d9600000000000000010000075e00000da200000000000000010000076500000da400000000000000010000076c00000dfe00000000000000010000077100000e1e00000000000000010000077600000e2600000000000000010000077b00000e7a00000000000000010000078100000e5c0000000000000001000007860000000000000000100000010000079000000086000000001000000100000798000005800000000010000001000007a0000005c80000000010000001000007aa000009fc0000000010000001000007b300000a9e0000000010000001000007bb00000cd00000000010000001000007c300000cec000000001000000100444a5f4d4f44455f494e5f434156450050544e5f4d4f44450050544e5f5553454400504f505550004152525f41435400434841494e5f414354004e4f54494659004e4f544946595f48414e444c45004e4f544946595f434f554e54444f574e0050544e5f4c415945525f52454c5f524553554d4500444a5f544f4153545f445552005452414e53504f52545f4c004143545f42414e4b004143545f5041540050454e445f42414e4b0050454e445f50415400505245565f50415400505245565f42414e4b004d41535445525f53544550005449434b5f435452005343414c455f4958004c454e5f54424c005343414c455f4d4158005343414c455f3158004c414e445f434e54444e00534e41505f5354455000534e41505f5449434b00524553554d455f4c00484f4c445f4d41534b00524553594e43383000524553594e43383200524553594e433834004d4944495f53454e440050435f53454e4400535052494e5446004b504f53540055495f5155455545004d53475f42414e4b504154004d53475f42414e4b5041545f415247004d53475f50415254004d53475f504152545f41524700505f5041525400545f53494c454e540053494c454e545f44454600454e475f41464c41475300454e475f4154494d4500454e475f4142414e4b00454e475f415041525400454e475f4d464c41475300454e475f4d54494d453100454e475f4d464c414700454e475f4d54494d453200454e475f4d42414e4b00454e475f4d5041525400434f4e445f524553455400505f434841494e510050524f4a5f5155414e54005155414e545f54424c00454e445f535445500053544f505f454e440054524b5f4150504c5900504152545f4f46460050415254535a004d454e47004d444553004d534c50004d5a45524f004d5f524543004e4f54455f4f4646004d53475f504154004d53475f5041545f415247005041545f424153450042414e4b5f535452494445005041545f53545249444500505f4c454e5f4259544500505f4d4c454e5f574f524400505f5343414c455f4d4f444500415f4c454e00415f535452494445004d5f4c454e004d5f5354524944450053545f49444c450053545f41524d45440053545f4c414e44494e470053545f46495855500054524b5f5343414c450052454c4f414400505f5343414c455f4e00505f4d5343414c4500545f4c454e00545f53434c00545f464c41470053434c4b004d434c4b005449434b5f41005449434b5f4d00444a5f544f465300646a745f73746f636b00444a5f4d4f444500646a5f6d73675f6f666600646a745f73686f7700646a5f6d73675f6f6e00646a5f756e686964650064745f72756e00646a5f5400646a5f72736d0064745f646f6e6500646c5f6f666600646a5f737461746500646c5f69646c6500646c5f6e6f7466697800646c5f666978757000646a5f72656c73696c00646c5f646f6e6500646a5f61726d7061740064615f726563756500646a5f61726d62616e6b0064615f73616d6500646c5f636f6d6d697400646a5f73706e00646a5f7370666c75736800646c5f636c65617200646a5f706370617400646c5f7265616c00646c5f706366697800646a5f706362616e6b00646c5f706373656e6400646c5f61726d00646a5f626c6f6200646a5f62706172616d730064615f7363616e00646a5f747072696d650064615f6e65787400646a5f4c0064615f666f756e6400646c5f61726d3200646a5f7370646f00646c5f6f757400646a5f686964650064685f6e6f0064685f656e640064685f7965730064685f6c656e00646a5f6869640064755f6f757400646a5f7470734d00646a5f746c616e6400646a5f430064635f6e6f6300646a5f74707300646a5f6c656e0064635f6c6f6f700064635f73746570300064635f73746f726500646a5f707572676500646a5f68616e646f666600646e5f73746f636b00646e5f726c00646a5f7a65726f006470725f646f6e6500686f5f6269747300646a5f73696c4100646a5f73696c4d00686f5f6d7400686f5f6d743100686f5f6d743200686f5f6d743300646a5f737061726d00646a5f636f6e6400636e5f696e697400636e5f6c6f6f7000636e5f63796300636e5f73746f726500686f5f6c7000686f5f6e7800686f5f7365740062705f70740062705f630062705f6c6f6f700062705f6d6964690062705f626173650062705f626c6f6273636c0062705f73636c0062705f707473636c0062705f70746c656e0062705f6c636d0062705f6763640062705f6763646f6b0074705f6e6f630070675f7461626c650070675f74726b0070675f736c6f740070675f6e6578740072735f6c0066785f676f0066785f6c6f6f700066785f73746f726500646a5f6465666572006c715f73746f636b00646a5f7370626b00646a5f737070740073615f6c0073615f73657400646a5f746d61736b00646a5f73706400646a5f7370746d00646a5f6861737472696700736f5f6c00736f5f6e00736f5f64656300646a5f73707472696700736f5f676f00646a5f707562310073665f6c0073665f6e00646a5f6d6170706c790073745f6d0073745f676f0073745f6c0073745f6e0073745f7965730073745f6f7574006d615f70006d615f73006d615f64006d615f646e006d615f7700646a5f746f67676c6500646a5f6c616e6400646a5f6e6f666100646a5f70746e72656c00646a5f737772657300646a5f6c666f7100646a5f7470756200646a5f7077696465000000003c0000010100000f260000009e0000010100000f2a000000a40000010100000f2e000000ac0000010100000f2a000000f00000010100000eb2000001200000010100000eb20000015a0000010100000eb2000001620000010100000eb3000001ee0000010100000eb3000001fa0000010100000eb50000027e0000010100000eb60000028a0000010100000eb7000002ac0000010100000eb2000003bc0000010100000eb8000003ca0000010100000eb8000004a60000010100000f320000057a0000010100000eb20000058e0000010100000eb20000061e0000010100000ebe0000066a0000010100000ec20000085a0000010100000f36000008660000010100000f3a0000091c0000010100000f3e00000a1c0000010100000f2a00000a2a0000010100000f2e00000aa60000010100000eba00000ac80000010100000ebb00000ad80000010100000ebc00000b560000010100000eb900000b5c0000010100000eba00000c5e0000010100000eb900000c820000010100000eb900000c880000010100000eba00000cf00000010100000eba002e73796d746162002e737472746162002e7368737472746162002e72656c612e74657874002e64617461002e6273730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000100000006000000000000003400000f62000000000000000000000004000000000000001b00000004000000400000000000002664000001980000000500000001000000040000000c0000002600000001000000030000000000000f9800000000000000000000000000000004000000000000002c00000008000000030000000000000f9800000000000000000000000000000004000000000000000100000002000000000000000000000f9800000f0000000006000000e800000004000000100000000900000003000000000000000000001e98000007cc0000000000000000000000010000000000000011000000030000000000000000000027fc0000003100000000000000000000000100000000", + "sha256": "df6e739561e93b2402a1bf35fd0802051facd2d25bc7dc00fd863673a2699b36", "stockCopies": [], "placement": "linked", "poolBaseLiterals": 0, @@ -1133,7 +1133,7 @@ { "label": "ts", "moduleId": "direct-jump-kyoti", - "version": "0.1.2-experimental", + "version": "0.2.0-experimental", "key": "DIRECT_JUMP_KYOTI", "author": "Zac-Kyoti", "nativeAuthor": "Zac-Kyoti", @@ -1142,12 +1142,12 @@ "caveAddress": null, "source": "modules/direct-jump-kyoti/patch_trigscale.s", "sources": { - "modules/direct-jump-kyoti/patch_trigscale.s": "f657f576c14cf61e23cc563eab54a07ef4f9774ddfca0c8bf3286c13bb76068f", - "modules/direct-jump-kyoti/manifest.py": "cb692249697b3c982f2ac984b7a50f7933b7ad9dcd50b02600b966df04b53c8e" + "modules/direct-jump-kyoti/patch_trigscale.s": "bd3978d7fc75d228ca02e4e4fa10c75b2095e23de1a84d5749c52485e565857f", + "modules/direct-jump-kyoti/manifest.py": "f449e3af81f61d400cabbdc73c4b5d1f8f1332d6f651cc0b118f6c020aefc9f1" }, "bytes": 672, - "code": "7f454c460102010000000000000000000001000400000001000000000000000000000188000000260034000000000028000700067007b0836d18203c0000091a4c0308002041d08241f008514ef94009b704200351802c3c000008b04c060800d0820680000048f92041d1c04ef94009b70400000000000000000000000000000000000000000000000000000000000003000001000000000000000000000000030000020000000000000000000000000300000300000001000008b0000000000000fff10000000d000048f9000000000000fff10000001c0000091a000000000000fff10000002900000051000000000000fff1000000394009b704000000000000fff10000003e000000000000000010000001004d4944495f535452494445004d4944495f5343414c455f4f464600415544494f5f53545249444500415544494f5f5343414c455f4f4646004241434b0074735f6361766500002e73796d746162002e737472746162002e7368737472746162002e74657874002e64617461002e627373000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b000000010000000600000000000000340000003e0000000000000000000000040000000000000021000000010000000300000000000000740000000000000000000000000000000400000000000000270000000800000003000000000000007400000000000000000000000000000004000000000000000100000002000000000000000000000074000000a00000000500000009000000040000001000000009000000030000000000000000000001140000004600000000000000000000000100000000000000110000000300000000000000000000015a0000002c00000000000000000000000100000000", - "sha256": "652ced000713288260d0d0d422f8e365136d3d9b2ae3c4f1af5f672b21de6d1a", + "code": "7f454c460102010000000000000000000001000400000001000000000000000000000188000000260034000000000028000700067007b0836d18203c0000091a4c030800d082204141f008514ef94009b704200351802c3c000008b04c060800d0820680000048f92041d1c04ef94009b70400000000000000000000000000000000000000000000000000000000000003000001000000000000000000000000030000020000000000000000000000000300000300000001000008b0000000000000fff10000000d000048f9000000000000fff10000001c0000091a000000000000fff10000002900000051000000000000fff1000000394009b704000000000000fff10000003e000000000000000010000001004d4944495f535452494445004d4944495f5343414c455f4f464600415544494f5f53545249444500415544494f5f5343414c455f4f4646004241434b0074735f6361766500002e73796d746162002e737472746162002e7368737472746162002e74657874002e64617461002e627373000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b000000010000000600000000000000340000003e0000000000000000000000040000000000000021000000010000000300000000000000740000000000000000000000000000000400000000000000270000000800000003000000000000007400000000000000000000000000000004000000000000000100000002000000000000000000000074000000a00000000500000009000000040000001000000009000000030000000000000000000001140000004600000000000000000000000100000000000000110000000300000000000000000000015a0000002c00000000000000000000000100000000", + "sha256": "eb511b51f839f22f9ebd35a398b611c1628b09f0eae9fd08df49779a3fd421e1", "stockCopies": [], "placement": "linked", "poolBaseLiterals": 0, @@ -5504,6 +5504,28 @@ "writeLength": 6, "note": "[PTN] release: keep the chooser shut after [PTN]+[YES]" }, + { + "address": 1073782462, + "guardLength": 6, + "guardSha256": "37edecfc18058ca757b701a5e909152025e5ceb96e33328800af3bea09dd5e94", + "unit": "dj7", + "symbol": "dj_lfoq", + "target": null, + "kind": "jsr", + "writeLength": 6, + "note": "light Part apply: per-track part deferred to each track's first trig" + }, + { + "address": 1074415696, + "guardLength": 6, + "guardSha256": "3eb71e079e73b289302dbd71e2397466226349dc505a46c2cc16a49a1595c7db", + "unit": "dj7", + "symbol": "dj_swres", + "target": null, + "kind": "jsr", + "writeLength": 6, + "note": "stock pattern switch: the jump's clock restarts there" + }, { "address": 1074378482, "guardLength": 18, diff --git a/src/engine/assets/resident-dsp.json b/src/engine/assets/resident-dsp.json index fbba286e5b..7a0ee74faf 100644 --- a/src/engine/assets/resident-dsp.json +++ b/src/engine/assets/resident-dsp.json @@ -97,7 +97,7 @@ "baselineDescriptors": [] } ], - "sourceCommit": "026184a96b0c4fba106bbae507b436236e7ea622", + "sourceCommit": "827e8547b18f8103840bc1c8e9a4b9b6826a5f5b", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", @@ -125,7 +125,7 @@ "output-matrix": "0.1.1-experimental", "quantize-live-rec-toggle": "0.1.1-experimental", "apply-scene": "0.2.0-experimental", - "direct-jump-kyoti": "0.1.2-experimental", + "direct-jump-kyoti": "0.2.0-experimental", "dejavu": "0.1.0-experimental", "arp-key-locks": "0.1.0-experimental", "temp-save": "0.1.1-experimental", diff --git a/src/engine/assets/rom-packages.json b/src/engine/assets/rom-packages.json index a6b5da1680..8e36e3c6ec 100644 --- a/src/engine/assets/rom-packages.json +++ b/src/engine/assets/rom-packages.json @@ -423,7 +423,7 @@ "sha256": "fdba0ffd31b7932ceb1ded3bde9a976b6f148ae96fc73a4efc4fedf6fb692341" } ], - "sourceCommit": "026184a96b0c4fba106bbae507b436236e7ea622", + "sourceCommit": "827e8547b18f8103840bc1c8e9a4b9b6826a5f5b", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", @@ -451,7 +451,7 @@ "output-matrix": "0.1.1-experimental", "quantize-live-rec-toggle": "0.1.1-experimental", "apply-scene": "0.2.0-experimental", - "direct-jump-kyoti": "0.1.2-experimental", + "direct-jump-kyoti": "0.2.0-experimental", "dejavu": "0.1.0-experimental", "arp-key-locks": "0.1.0-experimental", "temp-save": "0.1.1-experimental", diff --git a/src/engine/assets/usb-audio-packages.json b/src/engine/assets/usb-audio-packages.json index 143abcdf8b..9421ea20b7 100644 --- a/src/engine/assets/usb-audio-packages.json +++ b/src/engine/assets/usb-audio-packages.json @@ -553,7 +553,7 @@ } ] }, - "sourceCommit": "026184a96b0c4fba106bbae507b436236e7ea622", + "sourceCommit": "827e8547b18f8103840bc1c8e9a4b9b6826a5f5b", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", @@ -581,7 +581,7 @@ "output-matrix": "0.1.1-experimental", "quantize-live-rec-toggle": "0.1.1-experimental", "apply-scene": "0.2.0-experimental", - "direct-jump-kyoti": "0.1.2-experimental", + "direct-jump-kyoti": "0.2.0-experimental", "dejavu": "0.1.0-experimental", "arp-key-locks": "0.1.0-experimental", "temp-save": "0.1.1-experimental", diff --git a/src/engine/assets/utility-packages.json b/src/engine/assets/utility-packages.json index d6b51dc517..d6740d3a7e 100644 --- a/src/engine/assets/utility-packages.json +++ b/src/engine/assets/utility-packages.json @@ -3,7 +3,7 @@ "kind": "authored-utility-packages", "stockRead": false, "revision": "b8deefc88b2c3e5f3c6158e364eb741df1924e1d", - "sourceCommit": "026184a96b0c4fba106bbae507b436236e7ea622", + "sourceCommit": "827e8547b18f8103840bc1c8e9a4b9b6826a5f5b", "moduleVersions": { "miniverb": "0.2.3-experimental", "tapeecho": "0.1.6-experimental", @@ -31,7 +31,7 @@ "output-matrix": "0.1.1-experimental", "quantize-live-rec-toggle": "0.1.1-experimental", "apply-scene": "0.2.0-experimental", - "direct-jump-kyoti": "0.1.2-experimental", + "direct-jump-kyoti": "0.2.0-experimental", "dejavu": "0.1.0-experimental", "arp-key-locks": "0.1.0-experimental", "temp-save": "0.1.1-experimental", From 174b0dde34c09dc237e9e6f8c0c48f5d761319af Mon Sep 17 00:00:00 2001 From: claptom-music <350865352+Claptom-music@users.noreply.github.com> Date: Thu, 19 Nov 2026 07:17:11 +0100 Subject: [PATCH 067/415] Work in progress: a base copy of the Digitakt II parameter table for added machines' knobs The base copies the 275 stock parameter rows at boot and appends five rows per added machine; 56 references now point at the copy and 56 bounds are raised by 20. In the emulator the copy alone changes nothing visible, but using the new codes on the SRC page faults: a reader beyond the scan is still to find. Co-Authored-By: Claude Opus 5.5 --- sdk/machines/digitakt-ii/elekloader/base.json | 925 +++++++++++++++++- .../elekloader/modwerk/MACHINES.md | 8 + .../elekloader/modwerk/machine-params.c | 106 ++ .../elekloader/modwerk/machines-entry.s | 31 +- .../modwerk/tests/machines-fixture.c | 9 +- .../digitakt-ii/include/mk2/machines.h | 21 +- 6 files changed, 1068 insertions(+), 32 deletions(-) create mode 100644 sdk/machines/digitakt-ii/elekloader/modwerk/machine-params.c diff --git a/sdk/machines/digitakt-ii/elekloader/base.json b/sdk/machines/digitakt-ii/elekloader/base.json index 0cc72b6495..2069b40cdf 100644 --- a/sdk/machines/digitakt-ii/elekloader/base.json +++ b/sdk/machines/digitakt-ii/elekloader/base.json @@ -12,7 +12,17 @@ "reference": { "file": "vendor/elekloader/catalog/core-1.0.elemod", "sha256": "95303655a9358f581b485acb68b884b394a577f5d0b373f0a3e5957c8d0ca72c", - "keeps": ["id", "sites", "exports", "imports", "weak", "contribute", "collections", "requires", "conflicts"] + "keeps": [ + "id", + "sites", + "exports", + "imports", + "weak", + "contribute", + "collections", + "requires", + "conflicts" + ] }, "copies": [ { @@ -37,6 +47,7 @@ "../modwerk/mixer.c", "../modwerk/mixer-entry.s", "../modwerk/machines.c", + "../modwerk/machine-params.c", "../modwerk/machines-entry.s", "../modwerk/fw-bindings.s" ], @@ -61,22 +72,101 @@ "FW_STARTUP_PROJECT_FILE": "0x4099d698", "FW_ACTIVE_PROJECT": "0x41776c9c", "FW_STARTUP_KITS_OFFSET": "0xae0200", - "FW_STARTUP_KIT_STRIDE": "0x5800" + "FW_STARTUP_KIT_STRIDE": "0x5800", + "BOOT_INIT": "1" }, "sites": [ - {"addr":"0x4002dd74","len":6,"stockSha256":"3b5bfef87fffe24f50bcde099ab9d3bc80df33b6497b71debb052fa2595c9ef1","op":"jsr","target":"core_audio_frame_entry"}, - {"addr":"0x40066df2","len":6,"stockSha256":"b8166e3ccf519a59609e171fee14e51db8875e12043168606db823f0f24f64a1","op":"jmp","target":"core_mixer_count_entry"}, - {"addr":"0x40066e02","len":6,"stockSha256":"210b33b627af0389b1bddbc2f87f7980cacebd89ef5ac3ba7c4646a7800bc064","op":"jmp","target":"core_mixer_list_entry"}, - {"addr":"0x400c898a","len":6,"stockSha256":"4804747ca9c54fb6cf82b4a21415559c390b2b2f9fc4f3cea86546d00ee4dc72","op":"jmp","target":"core_mixer_descriptor_entry"}, - {"addr":"0x400763ac","len":8,"stockSha256":"f884edfcc4fdbe8c922f8080094cae67fdc2e7e87655c90c4eb6b79282f65f60","op":"jmp","target":"core_mixer_draw_entry"}, - {"addr":"0x400c89a4","len":6,"stockSha256":"90d4add99e5a31399efe8b6d7879deb65375e21f97ebcdfd761b45d0fa6f5b13","op":"jmp","target":"core_machine_descriptor_entry"}, - {"addr":"0x400da3a2","len":6,"stockSha256":"7004f7c54162426867d6e17e181d3ea5de00a97027c223cf901c7be0b6a6a967","op":"jmp","target":"core_machine_param_entry"}, - {"addr":"0x400db47a","len":16,"stockSha256":"8686c14efc6286fbc78202ff9e239a5206ce5b2dfb5cd85b3124e6437a613f38","op":"jmp","target":"core_machine_kit_type_entry"}, - {"addr":"0x400da514","len":8,"stockSha256":"db448c4c3bfa3ffd560154abc31cbfd90268d767f02135f4bad97068c40800d3","op":"jmp","target":"core_machine_permit_entry"}, - {"addr":"0x40052a08","len":8,"stockSha256":"3df2a4fe58f85e06d5e747d7222e4f771af0e1b77b0543ac228c30636a57aecc","op":"jmp","target":"core_machine_list_entry"}, - {"addr":"0x400da6ac","len":6,"stockSha256":"90d4add99e5a31399efe8b6d7879deb65375e21f97ebcdfd761b45d0fa6f5b13","op":"jmp","target":"core_machine_name_entry"}, - {"addr":"0x400da6d2","len":6,"stockSha256":"90d4add99e5a31399efe8b6d7879deb65375e21f97ebcdfd761b45d0fa6f5b13","op":"jmp","target":"core_machine_short_entry"}, - {"addr":"0x400da6f8","len":6,"stockSha256":"90d4add99e5a31399efe8b6d7879deb65375e21f97ebcdfd761b45d0fa6f5b13","op":"jmp","target":"core_machine_menu_entry"}, + { + "addr": "0x4002dd74", + "len": 6, + "stockSha256": "3b5bfef87fffe24f50bcde099ab9d3bc80df33b6497b71debb052fa2595c9ef1", + "op": "jsr", + "target": "core_audio_frame_entry" + }, + { + "addr": "0x40066df2", + "len": 6, + "stockSha256": "b8166e3ccf519a59609e171fee14e51db8875e12043168606db823f0f24f64a1", + "op": "jmp", + "target": "core_mixer_count_entry" + }, + { + "addr": "0x40066e02", + "len": 6, + "stockSha256": "210b33b627af0389b1bddbc2f87f7980cacebd89ef5ac3ba7c4646a7800bc064", + "op": "jmp", + "target": "core_mixer_list_entry" + }, + { + "addr": "0x400c898a", + "len": 6, + "stockSha256": "4804747ca9c54fb6cf82b4a21415559c390b2b2f9fc4f3cea86546d00ee4dc72", + "op": "jmp", + "target": "core_mixer_descriptor_entry" + }, + { + "addr": "0x400763ac", + "len": 8, + "stockSha256": "f884edfcc4fdbe8c922f8080094cae67fdc2e7e87655c90c4eb6b79282f65f60", + "op": "jmp", + "target": "core_mixer_draw_entry" + }, + { + "addr": "0x400c89a4", + "len": 6, + "stockSha256": "90d4add99e5a31399efe8b6d7879deb65375e21f97ebcdfd761b45d0fa6f5b13", + "op": "jmp", + "target": "core_machine_descriptor_entry" + }, + { + "addr": "0x400da3a2", + "len": 6, + "stockSha256": "7004f7c54162426867d6e17e181d3ea5de00a97027c223cf901c7be0b6a6a967", + "op": "jmp", + "target": "core_machine_param_entry" + }, + { + "addr": "0x400db47a", + "len": 16, + "stockSha256": "8686c14efc6286fbc78202ff9e239a5206ce5b2dfb5cd85b3124e6437a613f38", + "op": "jmp", + "target": "core_machine_kit_type_entry" + }, + { + "addr": "0x400da514", + "len": 8, + "stockSha256": "db448c4c3bfa3ffd560154abc31cbfd90268d767f02135f4bad97068c40800d3", + "op": "jmp", + "target": "core_machine_permit_entry" + }, + { + "addr": "0x40052a08", + "len": 8, + "stockSha256": "3df2a4fe58f85e06d5e747d7222e4f771af0e1b77b0543ac228c30636a57aecc", + "op": "jmp", + "target": "core_machine_list_entry" + }, + { + "addr": "0x400da6ac", + "len": 6, + "stockSha256": "90d4add99e5a31399efe8b6d7879deb65375e21f97ebcdfd761b45d0fa6f5b13", + "op": "jmp", + "target": "core_machine_name_entry" + }, + { + "addr": "0x400da6d2", + "len": 6, + "stockSha256": "90d4add99e5a31399efe8b6d7879deb65375e21f97ebcdfd761b45d0fa6f5b13", + "op": "jmp", + "target": "core_machine_short_entry" + }, + { + "addr": "0x400da6f8", + "len": 6, + "stockSha256": "90d4add99e5a31399efe8b6d7879deb65375e21f97ebcdfd761b45d0fa6f5b13", + "op": "jmp", + "target": "core_machine_menu_entry" + }, { "addr": "0x40041b52", "len": 6, @@ -132,6 +222,793 @@ "stockSha256": "9123093562f982f533c055b957ef510dd2438a23b5bd8ed1470024b218b90344", "op": "jsr", "target": "core_project_created" + }, + { + "addr": "0x4003a7da", + "len": 4, + "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", + "op": "bytes", + "new": "00000127" + }, + { + "addr": "0x4003a7ea", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x4003a8b4", + "len": 4, + "stockSha256": "372a91152e6e27999781cfcd72afd325bc83c7f98255307d74fda58b16cc7c41", + "op": "bytes", + "new": "00000126" + }, + { + "addr": "0x4003a8cc", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x4003acfe", + "len": 4, + "stockSha256": "372a91152e6e27999781cfcd72afd325bc83c7f98255307d74fda58b16cc7c41", + "op": "bytes", + "new": "00000126" + }, + { + "addr": "0x4003adc6", + "len": 4, + "stockSha256": "372a91152e6e27999781cfcd72afd325bc83c7f98255307d74fda58b16cc7c41", + "op": "bytes", + "new": "00000126" + }, + { + "addr": "0x4003b52a", + "len": 4, + "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", + "op": "bytes", + "new": "00000127" + }, + { + "addr": "0x4003b532", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x4003b7ce", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x4003b7d4", + "len": 4, + "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", + "op": "bytes", + "new": "00000127" + }, + { + "addr": "0x4003b870", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x4003b876", + "len": 4, + "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", + "op": "bytes", + "new": "00000127" + }, + { + "addr": "0x4003b924", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x4003b92a", + "len": 4, + "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", + "op": "bytes", + "new": "00000127" + }, + { + "addr": "0x4003b9ca", + "len": 4, + "stockSha256": "372a91152e6e27999781cfcd72afd325bc83c7f98255307d74fda58b16cc7c41", + "op": "bytes", + "new": "00000126" + }, + { + "addr": "0x4003b9da", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x4003bc80", + "len": 4, + "stockSha256": "372a91152e6e27999781cfcd72afd325bc83c7f98255307d74fda58b16cc7c41", + "op": "bytes", + "new": "00000126" + }, + { + "addr": "0x4003cf96", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x4003cf9c", + "len": 4, + "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", + "op": "bytes", + "new": "00000127" + }, + { + "addr": "0x4003d038", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x4003d03e", + "len": 4, + "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", + "op": "bytes", + "new": "00000127" + }, + { + "addr": "0x4003d0e4", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x4003d0ea", + "len": 4, + "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", + "op": "bytes", + "new": "00000127" + }, + { + "addr": "0x4003d1b4", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x4003d1ba", + "len": 4, + "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", + "op": "bytes", + "new": "00000127" + }, + { + "addr": "0x4003d990", + "len": 4, + "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", + "op": "bytes", + "new": "00000127" + }, + { + "addr": "0x4003dc2c", + "len": 4, + "stockSha256": "372a91152e6e27999781cfcd72afd325bc83c7f98255307d74fda58b16cc7c41", + "op": "bytes", + "new": "00000126" + }, + { + "addr": "0x4003dc44", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x4003df4e", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x4003e170", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x4003e36e", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x40048652", + "len": 4, + "stockSha256": "372a91152e6e27999781cfcd72afd325bc83c7f98255307d74fda58b16cc7c41", + "op": "bytes", + "new": "00000126" + }, + { + "addr": "0x40048666", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x4004ff14", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x4004ffc4", + "len": 4, + "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", + "op": "bytes", + "new": "00000127" + }, + { + "addr": "0x400682ee", + "len": 4, + "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", + "op": "bytes", + "new": "00000127" + }, + { + "addr": "0x400682f6", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x4006b15e", + "len": 4, + "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", + "op": "bytes", + "new": "00000127" + }, + { + "addr": "0x4006b166", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x4006c984", + "len": 4, + "stockSha256": "372a91152e6e27999781cfcd72afd325bc83c7f98255307d74fda58b16cc7c41", + "op": "bytes", + "new": "00000126" + }, + { + "addr": "0x4006c998", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x4006cb7a", + "len": 4, + "stockSha256": "372a91152e6e27999781cfcd72afd325bc83c7f98255307d74fda58b16cc7c41", + "op": "bytes", + "new": "00000126" + }, + { + "addr": "0x4006cb8c", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x4006cd72", + "len": 4, + "stockSha256": "372a91152e6e27999781cfcd72afd325bc83c7f98255307d74fda58b16cc7c41", + "op": "bytes", + "new": "00000126" + }, + { + "addr": "0x4006d06e", + "len": 4, + "stockSha256": "372a91152e6e27999781cfcd72afd325bc83c7f98255307d74fda58b16cc7c41", + "op": "bytes", + "new": "00000126" + }, + { + "addr": "0x4006d080", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x4006d8fa", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x4006d936", + "len": 4, + "stockSha256": "372a91152e6e27999781cfcd72afd325bc83c7f98255307d74fda58b16cc7c41", + "op": "bytes", + "new": "00000126" + }, + { + "addr": "0x4006d9c4", + "len": 4, + "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", + "op": "bytes", + "new": "00000127" + }, + { + "addr": "0x4006d9d6", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x4007370c", + "len": 4, + "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", + "op": "bytes", + "new": "00000127" + }, + { + "addr": "0x40073714", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x4007416c", + "len": 4, + "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", + "op": "bytes", + "new": "00000127" + }, + { + "addr": "0x40074174", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x4007448a", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x40074f88", + "len": 4, + "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", + "op": "bytes", + "new": "00000127" + }, + { + "addr": "0x40074f90", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x400c2fc6", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x400c2fcc", + "len": 4, + "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", + "op": "bytes", + "new": "00000127" + }, + { + "addr": "0x400c8934", + "len": 4, + "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", + "op": "bytes", + "new": "00000127" + }, + { + "addr": "0x400c8958", + "len": 4, + "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", + "op": "bytes", + "new": "00000127" + }, + { + "addr": "0x400c896a", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x400c8c72", + "len": 4, + "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", + "op": "bytes", + "new": "00000127" + }, + { + "addr": "0x400c8c7a", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x400d35b4", + "len": 4, + "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", + "op": "bytes", + "new": "00000127" + }, + { + "addr": "0x400d35bc", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x400da042", + "len": 4, + "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", + "op": "bytes", + "new": "00000127" + }, + { + "addr": "0x400da04a", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x400da066", + "len": 4, + "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", + "op": "bytes", + "new": "00000127" + }, + { + "addr": "0x400da06e", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x400da08c", + "len": 4, + "stockSha256": "372a91152e6e27999781cfcd72afd325bc83c7f98255307d74fda58b16cc7c41", + "op": "bytes", + "new": "00000126" + }, + { + "addr": "0x400da0a0", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x400da0fc", + "len": 4, + "stockSha256": "372a91152e6e27999781cfcd72afd325bc83c7f98255307d74fda58b16cc7c41", + "op": "bytes", + "new": "00000126" + }, + { + "addr": "0x400da110", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x400da16a", + "len": 4, + "stockSha256": "372a91152e6e27999781cfcd72afd325bc83c7f98255307d74fda58b16cc7c41", + "op": "bytes", + "new": "00000126" + }, + { + "addr": "0x400da17e", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x400da1dc", + "len": 4, + "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", + "op": "bytes", + "new": "00000127" + }, + { + "addr": "0x400da1e4", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x400da208", + "len": 4, + "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", + "op": "bytes", + "new": "00000127" + }, + { + "addr": "0x400da210", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x400da234", + "len": 4, + "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", + "op": "bytes", + "new": "00000127" + }, + { + "addr": "0x400da23c", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x400da268", + "len": 4, + "stockSha256": "372a91152e6e27999781cfcd72afd325bc83c7f98255307d74fda58b16cc7c41", + "op": "bytes", + "new": "00000126" + }, + { + "addr": "0x400da27c", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x400da2cc", + "len": 4, + "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", + "op": "bytes", + "new": "00000127" + }, + { + "addr": "0x400da2d4", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x400da300", + "len": 4, + "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", + "op": "bytes", + "new": "00000127" + }, + { + "addr": "0x400da308", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x400da33a", + "len": 4, + "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", + "op": "bytes", + "new": "00000127" + }, + { + "addr": "0x400da342", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x400da370", + "len": 4, + "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", + "op": "bytes", + "new": "00000127" + }, + { + "addr": "0x400da38a", + "len": 4, + "stockSha256": "44e3a2859483484ddcea81817e0e0d8715d4aabac9f13c4f1b2f7b9faa69baa2", + "op": "ptr", + "target": "core_params", + "addend": 8 + }, + { + "addr": "0x400da49a", + "len": 4, + "stockSha256": "372a91152e6e27999781cfcd72afd325bc83c7f98255307d74fda58b16cc7c41", + "op": "bytes", + "new": "00000126" + }, + { + "addr": "0x400da4aa", + "len": 4, + "stockSha256": "66881a0fe7d7ab8fe96bdc686e13771ed2636deed2c066713c7e7a99bf6668d6", + "op": "ptr", + "target": "core_params", + "addend": 32 + }, + { + "addr": "0x400da4b6", + "len": 4, + "stockSha256": "66881a0fe7d7ab8fe96bdc686e13771ed2636deed2c066713c7e7a99bf6668d6", + "op": "ptr", + "target": "core_params", + "addend": 32 + }, + { + "addr": "0x400da598", + "len": 4, + "stockSha256": "372a91152e6e27999781cfcd72afd325bc83c7f98255307d74fda58b16cc7c41", + "op": "bytes", + "new": "00000126" + }, + { + "addr": "0x400da5a6", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x400da5f8", + "len": 4, + "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", + "op": "bytes", + "new": "00000127" + }, + { + "addr": "0x400da600", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x400da622", + "len": 4, + "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", + "op": "bytes", + "new": "00000127" + }, + { + "addr": "0x400da62a", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x400da646", + "len": 4, + "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", + "op": "bytes", + "new": "00000127" + }, + { + "addr": "0x400da64e", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x400da66a", + "len": 4, + "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", + "op": "bytes", + "new": "00000127" + }, + { + "addr": "0x400da672", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x400da68e", + "len": 4, + "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", + "op": "bytes", + "new": "00000127" + }, + { + "addr": "0x400da696", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x400da8be", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x400dab7c", + "len": 4, + "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", + "op": "bytes", + "new": "00000127" + }, + { + "addr": "0x40104346", + "len": 4, + "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", + "op": "bytes", + "new": "00000127" + }, + { + "addr": "0x4010434e", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" + }, + { + "addr": "0x40105d70", + "len": 4, + "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", + "op": "ptr", + "target": "core_params" } ], "collections": { @@ -146,9 +1023,23 @@ }, "dev": { "about": "A development base adds one test machine (type 7) that stands for SAMPLE, to check the machine hooks in the emulator. Never released.", - "sources": ["../modwerk/tests/machines-fixture.c"], + "sources": [ + "../modwerk/tests/machines-fixture.c" + ], "contribute": [ - {"to": "core_machines", "order": 50, "data": "00000000", "relocs": [[0, "abs32", "sym:dt2_test_machine", 0]]} + { + "to": "core_machines", + "order": 50, + "data": "00000000", + "relocs": [ + [ + 0, + "abs32", + "sym:dt2_test_machine", + 0 + ] + ] + } ] } } diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md index 304bb14730..43fbeb4aeb 100644 --- a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md @@ -169,6 +169,14 @@ A machine module carries its player in its package as `build.dt2_sharc` version Local end-to-end check: OS 1.17, the development base `37b4db44` linked by Elekloader, and a stand-in module part (the silent player at `0x200d0000`, type 7). The composed image passed the preflight: sections 2, 4, 5 and 8 byte for byte stock, section 7 verified against the plan, 36 changed ranges and 11,632 appended bytes in the main OS (the base), flash headroom 1,395,888 bytes. Not yet run in the emulator as a whole file (the emulator runs so far used the DSP images directly). +### Own knob names: the parameter table copy (work in progress, 19 November 2026) + +The OS 1.17 parameter table (275 rows of `0x3c` at `0x4020f59c`) has no spare machine rows: every row for the machine slots belongs to a stock machine (only SAMPLE's CFADE row, code `0xcc`, is never shown). Rows: `+0x00` owner (machine 0-6, other groups up to 32), `+0x04` sound slot, `+0x08`/`+0x0c`/`+0x10` min, max, default (value << 8), `+0x18`/`+0x1a` CC halfwords and `+0x1c` NRPN (negative: none), `+0x28` name, `+0x2c` a routine every row loop calls, `+0x30` label, `+0x34` formatter. The MIDI-map builder (`0x400da8bc` loop) files a row under its owner and skips owners from 33 up. + +`machine-params.c` keeps a copy, `core_params` (275 + 20 rows): `core_boot_init` (core.s `.boot`, `BOOT_INIT`) copies the stock rows from the running image and appends five rows per added type, built from SAMPLE's level row (`0xd1`) with owner `0x40`, the knob's slot (26, 27, 31, 32, 33 for knobs B, C, E, F, G), its name, label and range, and no CC or NRPN. `base.json` has 56 `ptr` sites (every absolute reference, three of them at an offset) and 56 `bytes` sites (every `cmpi.l #275`/`#274` against a code) found by a scan of the image (`table_sites.py`, local). An added machine's descriptor is a copy of its stand-in's with the five knobs' codes replaced (`core_machine_descriptor`), and the parameter-code lookup answers those slots with the new codes (`core_machine_slot_code`). + +Emulator (panel probe, ColdFire only): with the copy and the raised bounds but a test machine without own knobs, boot and the SRC page of SAMPLE and of type 7 are as before. With own knobs (codes 275-279), opening the type-7 SRC page faults (`UnsupportedGuestPc(0x00000001)`): something indexes per-code data beyond 275 that the scan did not find (no 16-bit bound matches). Next: record registers along the SRC page's knob drawing (`--regs-at`) to find the reader, or try codes inside the 275 (reusing SAMPLE's unshown CFADE row `0xcc` for one knob) to confirm. + ## Still to check diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/machine-params.c b/sdk/machines/digitakt-ii/elekloader/modwerk/machine-params.c new file mode 100644 index 0000000000..a44fafd63f --- /dev/null +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/machine-params.c @@ -0,0 +1,106 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +/* Parameter rows for added machines' knobs (OS 1.17). + * + * The OS describes every knob with a 0x3c-byte row of a table of 275 rows at 0x4020f59c, reached by 56 absolute + * references and bounded by 56 checks against 275 or 274. The table has no spare rows for new machines, so the base + * keeps its own copy, core_params: at boot, before the OS reads it (core_boot_init, from core.s's .boot), it copies + * the stock rows from the running image and appends DT2_MACHINE_KNOBS rows per added machine type. base.json points + * every reference at the copy and raises every bound by the rows added. A row is built from the stock SAMPLE level + * row (a plain 0-127 knob): the knob's own name, label and range, the sound slot it edits, owner 0x40 (the OS's + * table builders skip owners from 33 up, so no stock per-type or MIDI table takes the row) and no MIDI CC or NRPN. + */ +#include +#include + +#define STOCK_PARAMS ((const uint32_t *)0x4020f59c) +#define PARAM_ROWS 275 +#define ROW_WORDS 15 /* 0x3c bytes */ +#define TEMPLATE_ROW 0xd1 /* SAMPLE's Sample Level: 0-127, default 100 */ +#define ADDED_OWNER 0x40 + +enum { ADDED_ROWS = DT2_MACHINE_COUNT * DT2_MACHINE_KNOBS }; + +uint32_t core_params[(PARAM_ROWS + ADDED_ROWS) * ROW_WORDS]; + +static const uint8_t KNOB_SLOT[DT2_MACHINE_KNOBS] = { 26, 27, 31, 32, 33 }; +/* Knob positions A-H in a descriptor's eight codes for the five knobs: B, C, E, F, G. */ +static const uint8_t KNOB_POSITION[DT2_MACHINE_KNOBS] = { 1, 2, 4, 5, 6 }; + +extern const struct dt2_machine *const core_machines[DT2_MACHINE_COUNT]; + +static uint32_t added_code(uint32_t type, uint32_t knob) +{ + return PARAM_ROWS + (type - DT2_MACHINE_FIRST) * DT2_MACHINE_KNOBS + knob; +} + +void core_boot_init(void) +{ + for (uint32_t i = 0; i < PARAM_ROWS * ROW_WORDS; ++i) { + core_params[i] = STOCK_PARAMS[i]; + } + for (uint32_t type = DT2_MACHINE_FIRST; type <= DT2_MACHINE_LAST; ++type) { + const struct dt2_machine *machine = dt2_machine_at(type, core_machines); + for (uint32_t knob = 0; knob < DT2_MACHINE_KNOBS; ++knob) { + uint32_t *row = &core_params[added_code(type, knob) * ROW_WORDS]; + const uint32_t *template = &STOCK_PARAMS[TEMPLATE_ROW * ROW_WORDS]; + for (uint32_t w = 0; w < ROW_WORDS; ++w) { + row[w] = template[w]; + } + row[0] = ADDED_OWNER; + row[1] = KNOB_SLOT[knob]; + row[6] = 0xffffffff; /* +0x18 CC and +0x1a: none */ + row[7] = 0xffffffff; /* +0x1c NRPN: none */ + const struct dt2_machine_knob *k = machine ? &machine->knobs[knob] : 0; + if (k && k->name) { + row[2] = (uint32_t)k->min << 8; + row[3] = (uint32_t)k->max << 8; + row[4] = (uint32_t)k->def << 8; + row[10] = (uint32_t)k->name; + row[12] = (uint32_t)(k->label ? k->label : k->name); + } + } + } +} + +/* The parameter code an added machine's knob at sound slot `slot` uses, or -1 to answer as the stand-in. */ +int32_t core_machine_slot_code(uint32_t slot, uint32_t type) +{ + const struct dt2_machine *machine = dt2_machine_at(type, core_machines); + if (!machine) { + return -1; + } + for (uint32_t knob = 0; knob < DT2_MACHINE_KNOBS; ++knob) { + if (KNOB_SLOT[knob] == slot && machine->knobs[knob].name) { + return (int32_t)added_code(type, knob); + } + } + return -1; +} + +/* An added machine's descriptor: the stand-in's 44-byte descriptor with the five knobs' codes replaced, built on + * first use (after the OS has built its own descriptors). */ +extern const uint32_t *core_stock_descriptor(uint32_t type); +static uint32_t descriptors[DT2_MACHINE_COUNT][11]; +static uint8_t built[DT2_MACHINE_COUNT]; + +const uint32_t *core_machine_descriptor(uint32_t type) +{ + const struct dt2_machine *machine = dt2_machine_at(type, core_machines); + if (!machine) { + return 0; + } + uint32_t n = type - DT2_MACHINE_FIRST; + if (!built[n]) { + const uint32_t *stock = core_stock_descriptor(machine->stands_for); + for (uint32_t w = 0; w < 11; ++w) { + descriptors[n][w] = stock[w]; + } + for (uint32_t knob = 0; knob < DT2_MACHINE_KNOBS; ++knob) { + if (machine->knobs[knob].name) { + descriptors[n][2 + KNOB_POSITION[knob]] = added_code(type, knob); + } + } + built[n] = 1; + } + return descriptors[n]; +} diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/machines-entry.s b/sdk/machines/digitakt-ii/elekloader/modwerk/machines-entry.s index 9d23d22ca3..a593101839 100644 --- a/sdk/machines/digitakt-ii/elekloader/modwerk/machines-entry.s +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/machines-entry.s @@ -1,11 +1,11 @@ /* SPDX-License-Identifier: GPL-3.0-or-later */ -/* Added machine types: the machine descriptor lookup (0x400c89a4) and the parameter-code lookup - * (0x400da3a2) answer a type core_machines names with the stock type it stands for. Every other type - * replays the displaced stock instructions and continues in stock. a0 and a1 are kept, as stock - * leaves them. */ +/* Added machine types: the machine descriptor lookup (0x400c89a4) answers a type core_machines names with + * the base's descriptor for it (machine-params.c), and the parameter-code lookup (0x400da3a2) with the + * machine's own knob rows, or else the stock type it stands for. Every other type replays the displaced + * stock instructions and continues in stock. a0 and a1 are kept, as stock leaves them. */ .text .even - .globl core_machine_descriptor_entry, core_machine_param_entry + .globl core_machine_descriptor_entry, core_machine_param_entry, core_stock_descriptor core_machine_descriptor_entry: moveq #7,%d1 @@ -15,20 +15,18 @@ core_machine_descriptor_entry: move.l %a0,-(%sp) move.l %a1,-(%sp) move.l %d0,-(%sp) - jsr core_machine_stands_for + jsr core_machine_descriptor addq.l #4,%sp move.l (%sp)+,%a1 move.l (%sp)+,%a0 tst.l %d0 - bmi.s 1f - move.l %d0,-(%sp) - bsr.s stock_descriptor - addq.l #4,%sp + beq.s 1f rts 1: move.l 4(%sp),%d0 2: moveq #6,%d1 jmp 0x400c89aa -stock_descriptor: +/* The stock lookup for a stock type, callable from C: (type) -> descriptor; clobbers d0 and d1. */ +core_stock_descriptor: moveq #6,%d1 move.l 4(%sp),%d0 jmp 0x400c89aa @@ -42,6 +40,17 @@ core_machine_param_entry: move.l %a0,-(%sp) move.l %a1,-(%sp) move.l %d0,-(%sp) + move.l 16(%sp),-(%sp) + jsr core_machine_slot_code + addq.l #8,%sp + move.l (%sp)+,%a1 + move.l (%sp)+,%a0 + tst.l %d0 + bmi.s 3f + rts +3: move.l %a0,-(%sp) + move.l %a1,-(%sp) + move.l 16(%sp),-(%sp) jsr core_machine_stands_for addq.l #4,%sp move.l (%sp)+,%a1 diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/tests/machines-fixture.c b/sdk/machines/digitakt-ii/elekloader/modwerk/tests/machines-fixture.c index a310b591e2..f34bb863b2 100644 --- a/sdk/machines/digitakt-ii/elekloader/modwerk/tests/machines-fixture.c +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/tests/machines-fixture.c @@ -1,9 +1,16 @@ /* SPDX-License-Identifier: GPL-3.0-or-later */ -/* Development base only: one added machine (type 7) that stands for SAMPLE (type 0). */ +/* Development base only: one added machine (type 7) that stands for SAMPLE (type 0) with five knobs of its own. */ #include const struct dt2_machine dt2_test_machine = { .type = 7, .stands_for = 0, .strings = { "Testgrain", "TGR", 0 }, + .knobs = { + { "Grain Mode", "MODE", 0, 3, 0, 0 }, + { "Position", "POS", 0, 127, 0, 0 }, + { "Grain Size", "SIZE", 0, 127, 64, 0 }, + { "Density", "DENS", 0, 127, 32, 0 }, + { "Spread", "SPRD", 0, 127, 0, 0 }, + }, }; diff --git a/sdk/machines/digitakt-ii/include/mk2/machines.h b/sdk/machines/digitakt-ii/include/mk2/machines.h index dd7babebb3..d18bdd08bd 100644 --- a/sdk/machines/digitakt-ii/include/mk2/machines.h +++ b/sdk/machines/digitakt-ii/include/mk2/machines.h @@ -19,13 +19,28 @@ enum { DT2_MACHINE_MENU = 2, /* a machine's own menu title, as "Slice Menu"; usually none */ }; -/* Draft record. stands_for names the stock type (0-6) whose descriptor and parameter codes the machine - * borrows until the base has its own parameter rows. strings[] follow the DT2_MACHINE_* order; a null - * string is shown as none. */ +/* The five SRC knobs a machine names itself: B, C, E, F and G (A stays TUNE, D the sample slot, H the level). + * Each edits the sound's machine slot the stock SAMPLE machine uses for that knob (26, 27, 31, 32, 33), so its + * value is saved, parameter-locked and recorded like a stock knob's. */ +enum { + DT2_MACHINE_KNOBS = 5, +}; + +/* A knob: name as the popups show it, label (up to four capitals) as the page shows it, and its range and default + * in the usual 0-127 steps. A null name keeps the stand-in machine's knob. */ +struct dt2_machine_knob { + const char *name; + const char *label; + uint8_t min, max, def, pad; +}; + +/* stands_for names the stock type (0-6) whose descriptor, voice setup and other knobs the machine borrows. + * strings[] follow the DT2_MACHINE_* order; a null string is shown as none. */ struct dt2_machine { uint32_t type; uint32_t stands_for; const char *strings[3]; + struct dt2_machine_knob knobs[DT2_MACHINE_KNOBS]; }; /* The record for a machine type, or 0 when the type is stock or no valid record names it. */ From 3e000e3d5eea37656f0fa1ae721b012c5d35bf1d Mon Sep 17 00:00:00 2001 From: claptom-music <350865352+Claptom-music@users.noreply.github.com> Date: Thu, 19 Nov 2026 07:20:57 +0100 Subject: [PATCH 068/415] Work in progress: owner and loop bounds for the added parameter rows Added rows take their stand-in machine as owner, and the three loops over every row keep the stock count so no stock table files an added row. The type-7 SRC page still faults with own knob codes; the development fixture uses the stand-in's knobs until it is found. Co-Authored-By: Claude Opus 5.5 --- sdk/machines/digitakt-ii/elekloader/base.json | 21 ------------------- .../elekloader/modwerk/MACHINES.md | 2 +- .../elekloader/modwerk/machine-params.c | 11 ++++++---- .../modwerk/tests/machines-fixture.c | 10 ++------- 4 files changed, 10 insertions(+), 34 deletions(-) diff --git a/sdk/machines/digitakt-ii/elekloader/base.json b/sdk/machines/digitakt-ii/elekloader/base.json index 2069b40cdf..7eb8e054cf 100644 --- a/sdk/machines/digitakt-ii/elekloader/base.json +++ b/sdk/machines/digitakt-ii/elekloader/base.json @@ -398,13 +398,6 @@ "op": "bytes", "new": "00000127" }, - { - "addr": "0x4003d990", - "len": 4, - "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", - "op": "bytes", - "new": "00000127" - }, { "addr": "0x4003dc2c", "len": 4, @@ -461,13 +454,6 @@ "op": "ptr", "target": "core_params" }, - { - "addr": "0x4004ffc4", - "len": 4, - "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", - "op": "bytes", - "new": "00000127" - }, { "addr": "0x400682ee", "len": 4, @@ -982,13 +968,6 @@ "op": "ptr", "target": "core_params" }, - { - "addr": "0x400dab7c", - "len": 4, - "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", - "op": "bytes", - "new": "00000127" - }, { "addr": "0x40104346", "len": 4, diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md index 43fbeb4aeb..1884150af1 100644 --- a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md @@ -175,7 +175,7 @@ The OS 1.17 parameter table (275 rows of `0x3c` at `0x4020f59c`) has no spare ma `machine-params.c` keeps a copy, `core_params` (275 + 20 rows): `core_boot_init` (core.s `.boot`, `BOOT_INIT`) copies the stock rows from the running image and appends five rows per added type, built from SAMPLE's level row (`0xd1`) with owner `0x40`, the knob's slot (26, 27, 31, 32, 33 for knobs B, C, E, F, G), its name, label and range, and no CC or NRPN. `base.json` has 56 `ptr` sites (every absolute reference, three of them at an offset) and 56 `bytes` sites (every `cmpi.l #275`/`#274` against a code) found by a scan of the image (`table_sites.py`, local). An added machine's descriptor is a copy of its stand-in's with the five knobs' codes replaced (`core_machine_descriptor`), and the parameter-code lookup answers those slots with the new codes (`core_machine_slot_code`). -Emulator (panel probe, ColdFire only): with the copy and the raised bounds but a test machine without own knobs, boot and the SRC page of SAMPLE and of type 7 are as before. With own knobs (codes 275-279), opening the type-7 SRC page faults (`UnsupportedGuestPc(0x00000001)`): something indexes per-code data beyond 275 that the scan did not find (no 16-bit bound matches). Next: record registers along the SRC page's knob drawing (`--regs-at`) to find the reader, or try codes inside the 275 (reusing SAMPLE's unshown CFADE row `0xcc` for one knob) to confirm. +Emulator (panel probe, ColdFire only): with the copy and the raised bounds but a test machine without own knobs, boot and the SRC page of SAMPLE and of type 7 are as before. With own knobs (codes 275-279), opening the type-7 SRC page faults (`UnsupportedGuestPc(0x00000001)`): something indexes per-code data beyond 275 that the scan did not find (no 16-bit bound matches). Register records at every table reference (panel probe `--regs-at`, replayed from a saved boot state so the 4,096-record buffer covers the fault) showed the last reads with code 278 in `0x40045582`, which dispatches on the row's owner: owners 24 and 31 one way, 18-23 another, any other to `0x40036216` (the track's record), whose caller then calls through an object. With owner `0x40` that faults. Two changes: an added row's owner is now its stand-in machine, and the three loops that walk every row (`0x4003d990`, `0x4004ffc4`, `0x400dab7c`: their bounds are the immediates followed by `bne`) stay at 275, so the MIDI-map builder never files an added row under SAMPLE. Opening the type-7 SRC page still faults the same way. Likely cause: the loop at `0x4004ff36` builds a per-row object through the row's `+0x2c` routine, and an added row, outside that loop, has none. Next: run that routine for the added rows too (after the loop, in the base) or let that one loop see them, and check what it registers. Until then the development fixture uses the stand-in's knobs. ## Still to check diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/machine-params.c b/sdk/machines/digitakt-ii/elekloader/modwerk/machine-params.c index a44fafd63f..408a7a6c1d 100644 --- a/sdk/machines/digitakt-ii/elekloader/modwerk/machine-params.c +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/machine-params.c @@ -5,9 +5,12 @@ * references and bounded by 56 checks against 275 or 274. The table has no spare rows for new machines, so the base * keeps its own copy, core_params: at boot, before the OS reads it (core_boot_init, from core.s's .boot), it copies * the stock rows from the running image and appends DT2_MACHINE_KNOBS rows per added machine type. base.json points - * every reference at the copy and raises every bound by the rows added. A row is built from the stock SAMPLE level - * row (a plain 0-127 knob): the knob's own name, label and range, the sound slot it edits, owner 0x40 (the OS's - * table builders skip owners from 33 up, so no stock per-type or MIDI table takes the row) and no MIDI CC or NRPN. + * every reference at the copy and raises every bound by the rows added, except the three loops that walk every row + * (0x4003d98e, 0x4004ffc2, 0x400dab7a): they stay at the stock 275, so the per-type and MIDI tables they build never + * take an added row (the MIDI-map builder would file it under its owner and replace the stand-in's own knob). A row + * is built from the stock SAMPLE level row (a plain 0-127 knob): the knob's own name, label and range, the sound slot + * it edits, the stand-in machine as its owner (the value path dispatches on the owner; an unknown owner faults) and + * no MIDI CC or NRPN. */ #include #include @@ -46,7 +49,7 @@ void core_boot_init(void) for (uint32_t w = 0; w < ROW_WORDS; ++w) { row[w] = template[w]; } - row[0] = ADDED_OWNER; + row[0] = machine ? machine->stands_for : 0; row[1] = KNOB_SLOT[knob]; row[6] = 0xffffffff; /* +0x18 CC and +0x1a: none */ row[7] = 0xffffffff; /* +0x1c NRPN: none */ diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/tests/machines-fixture.c b/sdk/machines/digitakt-ii/elekloader/modwerk/tests/machines-fixture.c index f34bb863b2..bb18f34035 100644 --- a/sdk/machines/digitakt-ii/elekloader/modwerk/tests/machines-fixture.c +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/tests/machines-fixture.c @@ -1,16 +1,10 @@ /* SPDX-License-Identifier: GPL-3.0-or-later */ -/* Development base only: one added machine (type 7) that stands for SAMPLE (type 0) with five knobs of its own. */ +/* Development base only: one added machine (type 7) that stands for SAMPLE (type 0). */ #include const struct dt2_machine dt2_test_machine = { .type = 7, .stands_for = 0, .strings = { "Testgrain", "TGR", 0 }, - .knobs = { - { "Grain Mode", "MODE", 0, 3, 0, 0 }, - { "Position", "POS", 0, 127, 0, 0 }, - { "Grain Size", "SIZE", 0, 127, 64, 0 }, - { "Density", "DENS", 0, 127, 32, 0 }, - { "Spread", "SPRD", 0, 127, 0, 0 }, - }, + /* Own knobs (MODE, POS, SIZE, DENS, SPRD) wait for the parameter table copy to work (MACHINES.md). */ }; From 1b24c34adb9c171a5b665106df2be8b9d35bf764 Mon Sep 17 00:00:00 2001 From: claptom-music <350865352+Claptom-music@users.noreply.github.com> Date: Thu, 19 Nov 2026 07:22:52 +0100 Subject: [PATCH 069/415] Start the Mikrotakt module: its machine record for the Digitakt II Scaffolded with module:new and given its core_machines record: machine type 7 (claimed), standing in for SAMPLE, named Mikrotakt. The grain player on the sound chip comes next. Module work lives on this branch for now and moves to its own pull request after the base's. Co-Authored-By: Claude Opus 5.5 --- sdk/digitakt-ii/modules/mikrotakt/LICENSE | 674 ++++++++++++++++++ sdk/digitakt-ii/modules/mikrotakt/README.md | 5 + sdk/digitakt-ii/modules/mikrotakt/TESTING.md | 3 + sdk/digitakt-ii/modules/mikrotakt/build.json | 18 + .../modules/mikrotakt/media/thumbnail.svg | 1 + .../modules/mikrotakt/modwerk.module.json | 34 + sdk/digitakt-ii/modules/mikrotakt/src/main.c | 18 + 7 files changed, 753 insertions(+) create mode 100644 sdk/digitakt-ii/modules/mikrotakt/LICENSE create mode 100644 sdk/digitakt-ii/modules/mikrotakt/README.md create mode 100644 sdk/digitakt-ii/modules/mikrotakt/TESTING.md create mode 100644 sdk/digitakt-ii/modules/mikrotakt/build.json create mode 100644 sdk/digitakt-ii/modules/mikrotakt/media/thumbnail.svg create mode 100644 sdk/digitakt-ii/modules/mikrotakt/modwerk.module.json create mode 100644 sdk/digitakt-ii/modules/mikrotakt/src/main.c diff --git a/sdk/digitakt-ii/modules/mikrotakt/LICENSE b/sdk/digitakt-ii/modules/mikrotakt/LICENSE new file mode 100644 index 0000000000..f288702d2f --- /dev/null +++ b/sdk/digitakt-ii/modules/mikrotakt/LICENSE @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff --git a/sdk/digitakt-ii/modules/mikrotakt/README.md b/sdk/digitakt-ii/modules/mikrotakt/README.md new file mode 100644 index 0000000000..04df8a8c8a --- /dev/null +++ b/sdk/digitakt-ii/modules/mikrotakt/README.md @@ -0,0 +1,5 @@ +# Mikrotakt + +A Digitakt II mod by @Claptom-music. Version 0.1.0-experimental. + +Describe what it does, every control, how to reach it on the unit, and a short tutorial. Follow docs/ADD_A_MODULE.md, the guide for this mod's category in docs/module-guides/ (and sequencing.md if it acts in time), docs/SDK.md and the Digitakt II guide (sdk/machines/digitakt-ii/README.md). diff --git a/sdk/digitakt-ii/modules/mikrotakt/TESTING.md b/sdk/digitakt-ii/modules/mikrotakt/TESTING.md new file mode 100644 index 0000000000..353752c90d --- /dev/null +++ b/sdk/digitakt-ii/modules/mikrotakt/TESTING.md @@ -0,0 +1,3 @@ +# Mikrotakt testing + +No checks have been run. For each tier in docs/SDK.md, record the source commit, the exact build, the OS release, the machine model and every result. Keep firmware, dumps and build outputs out of this folder. diff --git a/sdk/digitakt-ii/modules/mikrotakt/build.json b/sdk/digitakt-ii/modules/mikrotakt/build.json new file mode 100644 index 0000000000..c531c703ea --- /dev/null +++ b/sdk/digitakt-ii/modules/mikrotakt/build.json @@ -0,0 +1,18 @@ +{ + "schemaVersion": 1, + "sources": ["src/main.c"], + "defsym": {}, + "cflags": [], + "weak": [], + "subscribe": [], + "contribute": [ + { "to": "core_machines", "order": 50, "data": "00000000", "relocs": [[0, "abs32", "sym:mikrotakt_machine", 0]] } + ], + "collections": {}, + "copied": [], + "regions": [], + "claims": ["machine:7"], + "requires": [], + "derive": null, + "releases": { "1.17": { "defsym": {}, "cflags": [], "sites": [] } } +} diff --git a/sdk/digitakt-ii/modules/mikrotakt/media/thumbnail.svg b/sdk/digitakt-ii/modules/mikrotakt/media/thumbnail.svg new file mode 100644 index 0000000000..8bf3a7dca8 --- /dev/null +++ b/sdk/digitakt-ii/modules/mikrotakt/media/thumbnail.svg @@ -0,0 +1 @@ +REPLACE THIS THUMBNAIL diff --git a/sdk/digitakt-ii/modules/mikrotakt/modwerk.module.json b/sdk/digitakt-ii/modules/mikrotakt/modwerk.module.json new file mode 100644 index 0000000000..b1012df3c1 --- /dev/null +++ b/sdk/digitakt-ii/modules/mikrotakt/modwerk.module.json @@ -0,0 +1,34 @@ +{ + "schemaVersion": 3, + "id": "mikrotakt", + "name": "Mikrotakt", + "version": "0.1.0-experimental", + "machine": "digitakt-ii", + "category": "machines", + "exclusive": false, + "author": { "github": "Claptom-music", "credits": ["Claptom-music"] }, + "maintainers": ["Claptom-music"], + "presentation": { + "label": "MIKROTAKT", + "family": "Machine", + "summary": "A grain sampler machine: it plays a track's sample as clouds of grains, locked to the pattern's tempo.", + "overview": "Mikrotakt is a new machine in the track's machine list. It reads grains from the track's sample and spreads, repeats or reverses them in time with the sequencer; the Digitakt's own filter, amp envelope, LFO and level shape the result like any machine. Work in progress: the grain engine is being built.", + "highlights": ["Its own machine type, saved with the kit.", "Grains from the track's own sample, shaped by the stock sound chain."], + "usage": ["Put Mikrotakt on a track with a long sample and play notes or trigs to hear the grains."] + }, + "access": { "location": "The machine list of a track (FUNC + SRC), after the stock machines.", "steps": ["Select a track.", "Hold FUNC and press SRC to open the machine list.", "Scroll down past MIDI to MIKROTAKT and press YES."], "screenshots": [] }, + "controls": [], + "compatibility": { "releases": ["1.17"], "requires": [], "conflicts": [], "limitations": [] }, + "platform": { "kind": "elemod", "core": "1.1", "build": "build.json", "events": [], "claims": ["machine:7"] }, + "resources": { + "memoryBytes": null, + "fastBytes": null, + "load": { "display": "Not measured yet", "method": "unmeasured", "conditions": "Measure with every track playing, parameters modulated and the mod at its heaviest setting." } + }, + "evidence": { "tier": "none", "moduleVersion": "0.1.0-experimental", "sourceSha256": null, "reports": [], "hardware": null, "verifiedBy": null }, + "tests": { "report": "TESTING.md", "summary": "Not tested yet." }, + "license": { "spdx": "GPL-3.0-or-later", "file": "LICENSE", "declaration": "Original work by the author. Replace if you choose another GPL-compatible licence." }, + "media": [ + { "path": "media/thumbnail.svg", "kind": "thumbnail", "caption": "Mikrotakt thumbnail", "alt": "Placeholder thumbnail for Mikrotakt", "credit": "Claptom-music", "license": "GPL-3.0-or-later", "source": "Original placeholder from the Modwerk SDK template; replace with your own artwork." } + ] +} diff --git a/sdk/digitakt-ii/modules/mikrotakt/src/main.c b/sdk/digitakt-ii/modules/mikrotakt/src/main.c new file mode 100644 index 0000000000..9968a24757 --- /dev/null +++ b/sdk/digitakt-ii/modules/mikrotakt/src/main.c @@ -0,0 +1,18 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +/* Mikrotakt: a grain sampler machine for the Digitakt II. + * + * Machine type 7 (claimed as machine-id digitakt-ii/7; kits save it). It stands for SAMPLE (type 0), so the stock + * voice setup loads its sample and positions, and the base sends its voices to Mikrotakt's own sound-chip player + * (the package's build.dt2_sharc part), which writes the grains into each voice's slot. The stock filter, amp + * envelope, LFO and level then shape them as on any machine. + * + * Until the base's own knob rows work (sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md), the SRC page shows + * SAMPLE's knobs: their values are the ones the grain player reads. + */ +#include + +const struct dt2_machine mikrotakt_machine = { + .type = 7, + .stands_for = 0, + .strings = { "Mikrotakt", "MKT", 0 }, +}; From bee507ff67b563391280a3476dd62e29f3e62842 Mon Sep 17 00:00:00 2001 From: claptom-music <350865352+Claptom-music@users.noreply.github.com> Date: Thu, 19 Nov 2026 07:31:30 +0100 Subject: [PATCH 070/415] Mikrotakt: note the grain player's plan and the voice fields it uses Co-Authored-By: Claude Opus 5.5 --- sdk/digitakt-ii/modules/mikrotakt/README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sdk/digitakt-ii/modules/mikrotakt/README.md b/sdk/digitakt-ii/modules/mikrotakt/README.md index 04df8a8c8a..c22a4c79a0 100644 --- a/sdk/digitakt-ii/modules/mikrotakt/README.md +++ b/sdk/digitakt-ii/modules/mikrotakt/README.md @@ -3,3 +3,9 @@ A Digitakt II mod by @Claptom-music. Version 0.1.0-experimental. Describe what it does, every control, how to reach it on the unit, and a short tutorial. Follow docs/ADD_A_MODULE.md, the guide for this mod's category in docs/module-guides/ (and sequencing.md if it acts in time), docs/SDK.md and the Digitakt II guide (sdk/machines/digitakt-ii/README.md). + +## Design notes (work in progress) + +The grain player runs on the sound chip in place of the stock sample player for Mikrotakt's voices (the base's machine player dispatcher). Plan: each block, for each active grain, call the stock sample player with the voice's play position set to the grain's position and its output pointed at a scratch buffer, then add the grain through a window into the voice's slot. The stock player keeps doing the sample reading, interpolation and pitch, so grains sound like the Digitakt's own sample playback. + +Fields of the stock voice state record the player touches (OS 1.17, word offsets; read from the stock renderer at `0x1c4f81`, values from an emulator run, meanings still to confirm): `+0x62` to `+0x6d` hold the sample's bounds, position and step (`+0x63`/`+0x65` 24,000 for a one-second 48 kHz mono test sample, `+0x6d` advancing by 16 each block). From 86444b9fc8ef0e205e19943ec0e05ee97374dc3e Mon Sep 17 00:00:00 2001 From: claptom-music <350865352+Claptom-music@users.noreply.github.com> Date: Thu, 19 Nov 2026 07:42:30 +0100 Subject: [PATCH 071/415] Mikrotakt: a player can call the stock sample player and return cleanly Co-Authored-By: Claude Opus 5.5 --- sdk/digitakt-ii/modules/mikrotakt/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sdk/digitakt-ii/modules/mikrotakt/README.md b/sdk/digitakt-ii/modules/mikrotakt/README.md index c22a4c79a0..6d78d7a3f6 100644 --- a/sdk/digitakt-ii/modules/mikrotakt/README.md +++ b/sdk/digitakt-ii/modules/mikrotakt/README.md @@ -9,3 +9,5 @@ Describe what it does, every control, how to reach it on the unit, and a short t The grain player runs on the sound chip in place of the stock sample player for Mikrotakt's voices (the base's machine player dispatcher). Plan: each block, for each active grain, call the stock sample player with the voice's play position set to the grain's position and its output pointed at a scratch buffer, then add the grain through a window into the voice's slot. The stock player keeps doing the sample reading, interpolation and pitch, so grains sound like the Digitakt's own sample playback. Fields of the stock voice state record the player touches (OS 1.17, word offsets; read from the stock renderer at `0x1c4f81`, values from an emulator run, meanings still to confirm): `+0x62` to `+0x6d` hold the sample's bounds, position and step (`+0x63`/`+0x65` 24,000 for a one-second 48 kHz mono test sample, `+0x6d` advancing by 16 each block). + +Emulator check (19 November 2026): a player that only calls the stock sample player, the way the render loop does (`CALL 0x1c4ecf` linked, then `DM(I7, M7) = R2` and `DM(I7, M7) = return - 1` in the delay slots: the stock `RETURN` resumes one past the pushed address), and then returns, plays the test machine byte-identically to the stock player (PCM `2129ca6e...`). So the grain player can render each grain with the stock player. With the return address pushed exactly (not minus one) the emulated sound chip stopped inside the player. From aca90e7109c631c47c15c7fe804d69b8d894ff14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Thu, 19 Nov 2026 09:47:32 +0100 Subject: [PATCH 072/415] Octatrack base: a rolled-back trial that removed Analog BD binds it again (#1736) A trial that took a trusted controller out (Analog BD, Sidechain, Output Matrix) let the controller board release its slot one tick after the switch: roots_clear asked only the volatile journal, which is off, so a pending trial did not count. The rollback brought the module back with the same owner generation, which the board neither rebinds (slot_of matched the released slot, and a bind refuses an old generation) nor advances, so its engine was never placed again until a power cycle (a tester's MKII, 18 November 2026). The loader now answers modwerk_runtime_restorable(generation): an open transaction can still put that owner back (the trial's replaced module, a journal or set row's before). The board keeps such a slot RETIRING instead of releasing it, without wanting its engine, so the trial still gets the room; a rollback republishes it and the existing restore branch binds it again; a Keep releases it as before. Host test: test_resident_engines_board modes 67 (single-module trial) and 68 (the whole-set trial `device -- set` sends, in a build with the set backend). Both failed before the change with the slot released mid-trial. Co-Authored-By: Claude Opus 5.5 --- .../controller-policy/controller_board.c | 12 +- sdk/runtime/loader/journal.h | 4 + sdk/runtime/loader/loader.c | 15 +++ sdk/tests/test_resident_engines_board.py | 106 +++++++++++++++++- 4 files changed, 127 insertions(+), 10 deletions(-) diff --git a/sdk/machines/octatrack/module-adapters/controller-policy/controller_board.c b/sdk/machines/octatrack/module-adapters/controller-policy/controller_board.c index 3c89219c1e..7eb2527775 100644 --- a/sdk/machines/octatrack/module-adapters/controller-policy/controller_board.c +++ b/sdk/machines/octatrack/module-adapters/controller-policy/controller_board.c @@ -402,13 +402,15 @@ static int resources_idle(void *u, const struct mw_controller_binding *b) static int writes_blocked(void *u) { (void)u; return modwerk_saved_set_busy() != 0; } static int publication_confirmed(void *u, const struct mw_controller_binding *b) { (void)u; return live(b) && !modwerk_runtime_broken(); } -/* Nothing can resume or point into the image: unpublished, no journal that - * could roll back to it, no reviewed UI root, and for Matrix no destination - * codes left for stock to read as cue levels. */ +/* Nothing can resume or point into the image: unpublished, no journal or + * trial that could roll back to it (#1736: released while a trial ran, a + * rolled-back controller came back unbound until a power cycle), no reviewed + * UI root, and for Matrix no destination codes left for stock to read as cue + * levels. */ static int roots_clear(void *u, const struct mw_controller_binding *b) { (void)u; - if (modwerk_runtime_volatile_busy() || live(b)) return 0; + if (modwerk_runtime_volatile_busy() || modwerk_runtime_restorable(b->generation) || live(b)) return 0; if (b->identity.feature == 2u && (READ8(MATRIX_MODE) == 2u || READ8(MATRIX_MODE_CS1) == 2u)) return 0; return b->canonical_extent <= UINTPTR_MAX - b->extent_bytes && UI_CLEAR(b->canonical_extent, b->canonical_extent + b->extent_bytes); } @@ -546,6 +548,8 @@ static int engine_wanted(unsigned at) const struct mw_controller_slot *s = ®ISTRY.slots[at]; if (!held(s)) return 0; if (parked[at]) return s->state != MW_CTL_RETIRING; + /* Removed by a trial that can still roll back (#1736): kept only for the rollback, so its room is the trial's. */ + if (s->state == MW_CTL_RETIRING && modwerk_runtime_restorable(s->binding.generation)) return 0; if (roomless[at] && s->state <= MW_CTL_BOUND) return 0; return (used & s->binding.identity.feature) || s->touched || s->state > MW_CTL_BOUND; } diff --git a/sdk/runtime/loader/journal.h b/sdk/runtime/loader/journal.h index 2293e5d5b0..91d6a32a2a 100644 --- a/sdk/runtime/loader/journal.h +++ b/sdk/runtime/loader/journal.h @@ -55,6 +55,10 @@ int modwerk_machine_journal_accept(const struct runtime_journal_view *,unsigned) * reopen the journal. */ void modwerk_machine_journal_idle(uint32_t generation); int modwerk_runtime_volatile_busy(void); +/* An open transaction can still put this owner generation back at a position: a trial's replaced module, or a journal + * or set row's `before`, until the trial is kept or rolled back. The controller board keeps such a slot instead of + * releasing it, so a rollback finds it held (#1736). */ +int modwerk_runtime_restorable(uint32_t generation); /* Trusted engine calls only, with captured caller context. Each function * acquires the real stable lock at its use boundary. The journal owns its * generation, candidates and baseline until exact rollback or Keep. */ diff --git a/sdk/runtime/loader/loader.c b/sdk/runtime/loader/loader.c index d3b967e0a0..f662727bf1 100644 --- a/sdk/runtime/loader/loader.c +++ b/sdk/runtime/loader/loader.c @@ -407,6 +407,21 @@ static int reachable(const struct runtime_module *m) #endif return m == candidate || m == previous; } +int modwerk_runtime_restorable(uint32_t generation) +{ + if (!generation) return 0; + for (unsigned i = 0; i < owners; ++i) { + if (owner_identity[i].generation != generation) continue; + const struct runtime_module *m = owned[i]; + if (m == previous) return 1; + for (unsigned k = 0; k < journal.progress.records; ++k) if (journal.row[k].before == m) return 1; +#ifdef MODWERK_RUNTIME_SETS + for (unsigned k = 0; k < change_set.count; ++k) if (change_set.row[k].before == m) return 1; +#endif + return 0; + } + return 0; +} /* Locked: free every extent that no position, the transaction or a paused * task's stack or saved registers can reach. Unknown task state frees nothing. */ static void reclaim(const struct runtime_context *context) diff --git a/sdk/tests/test_resident_engines_board.py b/sdk/tests/test_resident_engines_board.py index 6ca077b4cd..a172e7a91e 100644 --- a/sdk/tests/test_resident_engines_board.py +++ b/sdk/tests/test_resident_engines_board.py @@ -27,6 +27,8 @@ parked or never-used module. Mode 59: an engine is placed on all its cores or none. Mode 61 (owner, 24 October 2026): a reader goes in whatever room the Part leaves; the pick that brings its effect pays the key bus's price, or is DSP FULL. Mode 64: a core's owned channel closed from outside the engines (MKII, 27 October 2026) refuses at admission. +Modes 67-68 (#1736): a trial that removes Analog BD frees its engine's room but keeps its slot, so a rollback binds it +again; 68 is the whole-set trial `device -- set` sends, run in a build with the set backend. """ import importlib.util import hashlib @@ -435,6 +437,24 @@ def expected(units): for (unsigned k = 0; k < 4; ++k) empty[28 + k] = (uint8_t)(module >> (24 - 8 * k)); return empty; } +#ifdef MODWERK_RUNTIME_SETS +#include "journal.h" +/* An MWMS set of these packages (set_package.h) on the journal's current baseline, as `npm run device -- set` sends. */ +static uint8_t set_buf[65536]; +static unsigned set_of(const uint8_t *const *package, const unsigned *length, unsigned count) +{ + memset(set_buf, 0, sizeof set_buf); memcpy(set_buf, "MWMS", 4); set_buf[5] = 1; set_buf[7] = (uint8_t)count; + unsigned at = 80; + for (unsigned i = 0; i < count; ++i) { + assert(at + 4u + length[i] + 3u <= sizeof set_buf); + for (unsigned k = 0; k < 4; ++k) set_buf[at + k] = (uint8_t)(length[i] >> (24 - 8 * k)); + memcpy(set_buf + at + 4, package[i], length[i]); at += 4u + length[i] + (4u - length[i] % 4u) % 4u; + } + for (unsigned k = 0; k < 4; ++k) set_buf[8 + k] = (uint8_t)(at >> (24 - 8 * k)); + assert(modwerk_runtime_journal_digest(set_buf + 48)); + return at; +} +#endif static const struct mw_controller_slot *slot_for(uint32_t module, unsigned state) { for (unsigned i = 0; i < MW_CONTROLLER_SLOTS; ++i) @@ -1817,6 +1837,66 @@ def expected(units): bank_module = 0; ++board_bank; run(400); assert(slot_for(AB, MW_CTL_RETIRING)); unplaced(0, 4); unplaced(1, 4); + } else if (mode == 67) { + /* #1736 (a tester's MKII, 18 November 2026): a trial that removes Analog BD and is rolled back left it silent + * until a power cycle. The rollback brings back the same owner generation, so the board must still hold its + * slot then: it may retire it only once no transaction can restore that image. Kept, the removal releases it. */ + assert(install(pkg_ab, sizeof pkg_ab) == MU_APPLIED); + run(600); + const struct mw_controller_slot *was = slot_for(AB, MW_CTL_ACTIVE); + assert(was && dsp_mask[0] == 4 && dsp_mask[1] == 4); + placed_at(0, 4, top - 998u); placed_at(1, 4, top - 998u); + uint32_t generation = was->binding.generation; + leasing = 0; /* the trial's set no longer names it: no track renders it */ + assert(refused(removal(AB), 32) == RUNTIME_BUSY); + run(20); + assert(loader->enter(0) && loader->prepare(0, removal(AB), 32) && loader->publish(0) == MU_APPLIED); + run(400); /* the trial runs */ + assert(slot_for(AB, MW_CTL_RETIRING) && !slot_for(AB, MW_CTL_RELEASED)); + unplaced(0, 4); unplaced(1, 4); /* its room is free for the trial's modules */ + assert(loader->restore(0) && loader->leave(0)); /* rolled back */ + leasing = 0xffu; + run(600); + const struct mw_controller_slot *back = slot_for(AB, MW_CTL_ACTIVE); + assert(back && back->binding.generation == generation && dsp_mask[0] == 4 && dsp_mask[1] == 4); + placed_at(0, 4, top - 998u); placed_at(1, 4, top - 998u); + /* The same removal kept: released, its engine unplaced. */ + leasing = 0; + assert(refused(removal(AB), 32) == RUNTIME_BUSY); + run(20); + assert(install(removal(AB), 32) == MU_APPLIED); + run(400); + assert(slot_for(AB, MW_CTL_RELEASED) && !slot_for(AB, MW_CTL_RETIRING)); + unplaced(0, 4); unplaced(1, 4); +#ifdef MODWERK_RUNTIME_SETS + } else if (mode == 68) { + /* #1736 as the tester ran it: a whole-set trial (`device -- set`) that takes Analog BD out, rolled back. The set + * publishes over several calls (BUSY until the board has quiesced it) and restores one row per call. */ + assert(install(pkg_ab, sizeof pkg_ab) == MU_APPLIED); + run(600); + const struct mw_controller_slot *was = slot_for(AB, MW_CTL_ACTIVE); + assert(was && dsp_mask[0] == 4 && dsp_mask[1] == 4); + uint32_t generation = was->binding.generation; + const struct mu_backend *sets = &modwerk_runtime_set_backend; + leasing = 0; + const uint8_t *package[1] = {removal(AB)}; const unsigned length[1] = {32}; + unsigned n = set_of(package, length, 1); + assert(sets->enter(0) && sets->prepare(0, set_buf, n)); + enum mu_publication p; unsigned tries = 0; + while ((p = sets->publish(0)) == MU_PUBLISHING_MORE) { assert(++tries < 400u); run(1); } + assert(p == MU_APPLIED); + run(400); /* the trial runs */ + assert(slot_for(AB, MW_CTL_RETIRING) && !slot_for(AB, MW_CTL_RELEASED)); + unplaced(0, 4); unplaced(1, 4); + tries = 0; + while (!sets->restore(0)) { assert(++tries < 50u); run(1); } /* rolled back */ + assert(sets->leave(0)); + leasing = 0xffu; + run(600); + const struct mw_controller_slot *back = slot_for(AB, MW_CTL_ACTIVE); + assert(back && back->binding.generation == generation && dsp_mask[0] == 4 && dsp_mask[1] == 4); + placed_at(0, 4, top - 998u); placed_at(1, 4, top - 998u); +#endif } else assert(0); return 0; } @@ -1907,8 +1987,9 @@ def array(name, data, kind='uint8_t'): + MODEL) -def build(work): - flags = ['-std=c11', '-Wall', '-Wextra', '-Werror', *SANITIZE, '-fno-omit-frame-pointer', +def build(work, sets=False): + """The fixture binary; `sets` builds it with the whole-set backend (build_core.py's --module-sets) for mode 68.""" + flags = [*(['-DMODWERK_RUNTIME_SETS'] if sets else []), '-std=c11', '-Wall', '-Wextra', '-Werror', *SANITIZE, '-fno-omit-frame-pointer', '-DDL_NATIVE_TEST', '-DMW_CONTROLLER_TRANSPORT_TEST', '-DMW_CONTROLLER_BOARD_TEST', '-DMW_ENGINES_TEST', '-DMODWERK_RESIDENT_STOCK_HOOKS', '-DMODWERK_RESIDENT_ON_DEMAND', '-DMODWERK_DEV', '-DMODWERK_RUNTIME_METADATA_EXTERNAL', '-DMODWERK_FX_IDS=64', '-DMODWERK_DSP_TABLE0=%d' % TABLE, @@ -1916,9 +1997,9 @@ def build(work): '-DMODWERK_DSP_ALLOWANCE0=3120', '-DMODWERK_DSP_ALLOWANCE1=3565', '-DBOARD_ROWS', '-DBOARD_MANAGER', '-I' + str(work), '-I' + str(POLICY), '-I' + str(ADAPTER), '-I' + str(RUNTIME), '-I' + str(ELEK), '-I' + str(ROOT / 'sdk/runtime/loader'), '-I' + str(ROOT / 'sdk/runtime/upload')] - out = work / 'engines-board' + out = work / ('engines-board-sets' if sets else 'engines-board') # The board alone sees the key window through the fixture's board_buffer_ranges_idle (mode 48). - board = work / 'controller_board.o' + board = work / ('controller_board-sets.o' if sets else 'controller_board.o') built = subprocess.run(['cc', *flags, '-Ddl_hook_buffer_ranges_idle=board_buffer_ranges_idle', '-c', str(POLICY / 'controller_board.c'), '-o', str(board)], capture_output=True, text=True) if built.returncode: @@ -1927,13 +2008,13 @@ def build(work): POLICY / 'controller_association.c', ROOT / 'sdk/runtime/loader/loader.c', ROOT / 'sdk/runtime/upload/sha256.c', ADAPTER / 'machine_lifetime.c', work / 'manager_unit.c', work / 'allocator.c', work / 'buffers.c', RUNTIME / 'stock_hooks.c', RUNTIME / 'stock_hook_resources.c', RUNTIME / 'resident_engines.c', - work / 'resident-engines-data.c'] + work / 'resident-engines-data.c', *([ROOT / 'sdk/runtime/upload/upload.c'] if sets else [])] return out, subprocess.run(['cc', *flags, *map(str, sources), '-o', str(out)], capture_output=True, text=True) @unittest.skipUnless(shutil.which('cc'), 'host C compiler unavailable') class ResidentEnginesBoard(unittest.TestCase): - MODES = 67 + MODES = 68 def test_place_switch_run_disable_unswitch_free_and_their_refusals(self): with tempfile.TemporaryDirectory() as temp: @@ -1946,6 +2027,19 @@ def test_place_switch_run_disable_unswitch_free_and_their_refusals(self): result = subprocess.run([str(binary), str(mode)], capture_output=True, text=True) self.assertEqual(result.returncode, 0, result.stderr) + def test_a_rolled_back_removal_binds_again_on_both_backends(self): + """#1736: a trial that removes Analog BD, rolled back, leaves it bound, placed and switched on again; built with + the whole-set backend, both the single-module trial (67) and the set trial `device -- set` sends (68).""" + with tempfile.TemporaryDirectory() as temp: + work = Path(temp) + generated(work, bundles()) + binary, result = build(work, sets=True) + self.assertEqual(result.returncode, 0, result.stderr) + for mode in (67, 68): + with self.subTest(mode=mode): + result = subprocess.run([str(binary), str(mode)], capture_output=True, text=True) + self.assertEqual(result.returncode, 0, result.stderr) + def test_relocation_in_c_matches_resident_dsp_relocate(self): """The base's relocator (mw_engine_relocate) against resident_dsp.relocate, at several bases, on made-up units and on the edge words (0, 0xffffff, wrap both ways).""" From 9849aee513784b9fc7e3af29125c75a370a1d15e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Thu, 19 Nov 2026 10:00:41 +0100 Subject: [PATCH 073/415] Fix: a refused restore logs which loader check refused it, and the pool One refusal code comes from several checks: RUNTIME_MEMORY is the module pool, a package's DSP claims meeting a live or planned delay buffer (dl_hook_claims_idle), or the DSP's limits. The loader now keeps which admission step refused the last prepare (modwerk_runtime_refused_check: pool, claims, metadata, DSP). A restore that leaves a package out records, in the unit log's set record, that check (dsp1) and the module pool's bytes used and largest free run at that moment (cpu and dsp0, 16-byte units). Bases before 0.7.10 leave all three 0. Two units restored the same set with SC Ringmod on one start and refused it as module memory on the next. In the emulator the same set without SC Ringmod used 161 KB of the 768 KB pool, so the pool cannot explain it; SC Ringmod's key-bus read claims meeting a delay buffer can. The records could not tell the two apart. Co-Authored-By: Claude Opus 5.5 --- changelog/2026-11-19-refused-restore-pool.md | 1 + sdk/machines/octatrack/elekloader/diag.c | 16 ++++++++++++---- sdk/machines/octatrack/elekloader/diag.h | 12 +++++++++--- sdk/machines/octatrack/elekloader/modset.c | 17 +++++++++++------ sdk/machines/octatrack/elekloader/test_diag.c | 4 +++- .../octatrack/elekloader/test_modset.c | 15 +++++++++++---- sdk/runtime/loader/loader.c | 18 +++++++++++------- sdk/runtime/loader/loader.h | 4 ++++ sdk/runtime/loader/tests/host_test.c | 2 ++ sdk/tests/runtime_card_guard.c | 2 +- sdk/tests/runtime_card_shelf.c | 4 +++- sdk/tests/test_volatile_service.py | 2 +- 12 files changed, 69 insertions(+), 28 deletions(-) create mode 100755 changelog/2026-11-19-refused-restore-pool.md diff --git a/changelog/2026-11-19-refused-restore-pool.md b/changelog/2026-11-19-refused-restore-pool.md new file mode 100755 index 0000000000..a3ee7a1c2c --- /dev/null +++ b/changelog/2026-11-19-refused-restore-pool.md @@ -0,0 +1 @@ +Octatrack base 0.7.10: when a restore at start refuses a module, the unit's own log also notes which check refused it (the module memory itself, a module's DSP claims meeting a delay buffer, or the DSP's limits) and how much module memory was in use then, so a "module memory" refusal that happens on some starts and not others can be traced from shared diagnostics. diff --git a/sdk/machines/octatrack/elekloader/diag.c b/sdk/machines/octatrack/elekloader/diag.c index 949692ab67..10abe8545e 100644 --- a/sdk/machines/octatrack/elekloader/diag.c +++ b/sdk/machines/octatrack/elekloader/diag.c @@ -242,18 +242,26 @@ static void diag_tick(void) n = cpu_sum = cpu_peak = d0_sum = d0_peak = d1_sum = d1_peak = played = hot_count = 0; } /* modset.c, engine task: the installed set after a restore from the card and after each Keep, as ids. */ -static uint32_t refused_module, refused_code; -void modwerk_diag_refused(uint32_t module, uint32_t refusal) { refused_module = module, refused_code = refusal; } +static uint32_t refused_module, refused_code, refused_used, refused_largest, refused_check; +void modwerk_diag_refused(uint32_t module, uint32_t refusal, uint32_t used, uint32_t largest, uint32_t check) +{ + refused_module = module, refused_code = refusal, refused_used = used, refused_largest = largest, refused_check = check; +} +/* Bytes in the pool's 16-byte units, so its 768 KiB fit a u16. */ +static uint16_t sixteenths(uint32_t bytes) { bytes = (bytes + 15u) / 16u; return (uint16_t)(bytes < 65535u ? bytes : 65535u); } void modwerk_diag_set(void) { - if (!started) { refused_module = refused_code = 0; return; } /* never carried into a later set's record */ + if (!started) { refused_module = refused_code = refused_used = refused_largest = refused_check = 0; return; } /* never carried into a later set's record */ volatile struct diag_log *l = LOG; uint32_t ids[14]; unsigned count = installed(ids, 14u); volatile struct diag_incident *r = slot(l); bare(r, DIAG_SET); r->boot = l->boot, r->second = ticks / 60u, r->a = count; - r->screen = refused_module, r->tempo24 = refused_code, refused_module = refused_code = 0; /* a set record has no context */ + r->screen = refused_module, r->tempo24 = refused_code; /* a set record has no context */ + if (refused_module) /* the module pool at the refusal, and the loader's check that refused (loader.h runtime_check) */ + r->cpu = sixteenths(refused_used), r->dsp0 = sixteenths(refused_largest), r->dsp1 = (uint16_t)refused_check; + refused_module = refused_code = refused_used = refused_largest = refused_check = 0; volatile uint8_t *b = r->machine; /* machine, fx and keys: one run of 56 bytes */ for (unsigned i = 0; i < 56u; ++i) b[i] = i < 4u * count ? (uint8_t)(ids[i / 4u] >> (24u - 8u * (i % 4u))) : 0; push(l, r); diff --git a/sdk/machines/octatrack/elekloader/diag.h b/sdk/machines/octatrack/elekloader/diag.h index bd6f475a4a..f7436efe6b 100644 --- a/sdk/machines/octatrack/elekloader/diag.h +++ b/sdk/machines/octatrack/elekloader/diag.h @@ -42,7 +42,10 @@ struct diag_load { * CRASH the program counter, STALL the stall's reason, BASE the first four bytes of the base's identity (right after * each START: a stall followed by another base was an OS upgrade), SHED the frame guard's skips since the start * (machine_registry.c: the tracks it skipped in the top byte, as bits, then the count), SET how many modules are installed, their ids in - * `machine`, `fx` and `keys` read as one run of 56 bytes (14 ids of 4, after a restore from the card and each Keep). + * `machine`, `fx` and `keys` read as one run of 56 bytes (14 ids of 4, after a restore from the card and each Keep); after a + * restore that refused a package, `screen` its module, `tempo24` the refusal, `cpu` and `dsp0` the module pool then (bytes + * used and the largest free run, in 16-byte units) and `dsp1` the loader's check that refused it (runtime_check: 1 the + * pool, 2 claims, 3 metadata, 4 the DSP's limits); all three 0 on bases before 0.7.10. * `machine`: each track's type byte and machine signature * (machine_registry.c), `fx` what each slot runs (FX1 T1-T8, then FX2), `keys` the last 16 key codes pressed, * oldest first (0xff none), `screen` stock's top input layer, `tempo24` the tempo times 24. */ @@ -71,8 +74,11 @@ int modwerk_diag_key(int code, int pressed); /* ev_key: remembers pres void modwerk_diag_frame(void); /* dl_frame, in the frame interrupt */ unsigned modwerk_diag_read(uint8_t *out, unsigned page); /* ep0.c LOG: DIAG_PAGE bytes of the log, then the records */ void modwerk_diag_set(void); /* modset.c: the installed set changed (restore, Keep) */ -void modwerk_diag_refused(uint32_t module, uint32_t refusal); /* modset.c, before a restore's set record: its first refused - * package's module and the loader's refusal (screen, tempo24) */ +void modwerk_diag_refused(uint32_t module, uint32_t refusal, uint32_t used, uint32_t largest, uint32_t check); /* modset.c, + * before a restore's set record: its first refused package's module and the + * loader's refusal (screen, tempo24), the module pool when it was refused: + * bytes used and the largest free run (cpu and dsp0, in 16-byte units), and + * the loader's check that refused it (dsp1, loader.h runtime_check) */ #ifdef MODWERK_DEV /* Development builds: what the base's own hooks cost, in DTIM3 counts (132 MHz), read over MEM. The tick chain is * stamped in its order (runtime_tick 1, ep0_tick 2 and its end 3, dl_ui 4, status_tick 5 and its end 6, crash_tick 7, diff --git a/sdk/machines/octatrack/elekloader/modset.c b/sdk/machines/octatrack/elekloader/modset.c index 63fb942cd0..08ea1c1b0b 100644 --- a/sdk/machines/octatrack/elekloader/modset.c +++ b/sdk/machines/octatrack/elekloader/modset.c @@ -39,7 +39,9 @@ #define SET_BYTES (RUNTIME_POOL_BYTES + 0x1000u) /* the pool's worth of packages, and the header */ extern const uint8_t modwerk_base_digest[32]; void modwerk_diag_set(void); /* diag.c: the installed set, into the unit's log */ -void modwerk_diag_refused(uint32_t module, uint32_t refusal); /* diag.c: ... and the restore's first refused package */ +void modwerk_diag_refused(uint32_t module, uint32_t refusal, uint32_t used, uint32_t largest, uint32_t check); /* diag.c: ... and + * the restore's first refused package, with the module pool then and the + * loader's check that refused it */ extern const struct mu_backend modwerk_runtime_backend; struct file_object { uint32_t word[6]; }; #ifdef MODWERK_HOST @@ -468,7 +470,9 @@ static int whole(int n) #define RESTORE_TRIES 20u static uint8_t restore_outcome[RUNTIME_MODULES]; /* per package of set[]: 0 to try, 1 installed, 2 left out */ static unsigned restore_tries; -static uint32_t left_out, left_why; /* the first package left out and the loader's refusal, for the log */ +static uint32_t left_out, left_why, left_used, left_largest, left_check; /* the first package left out, the loader's refusal, + * the module pool at that moment (used, largest free run) and the + * loader's check that refused it, for the log */ static char guard_text[24]; /* " LEFT OUT": at most 20 characters, as long as a stock popup's line */ /* At the restore, before anything installs: what the last start left in the guard. 1: hold every module this start. */ static int guard_check(uint32_t newest) @@ -537,7 +541,8 @@ static void restore_pass(void) if (open) (void)b6->discard(b6->user); if (why == RUNTIME_BUSY && !last) { ++waiting; continue; } restore_outcome[count] = 2; - if (!left_out) left_out = id, left_why = why; + if (!left_out) left_out = id, left_why = why, left_used = RUNTIME_POOL_BYTES - modwerk_runtime_free(&left_largest), + left_check = open ? (uint32_t)modwerk_runtime_refused_check() : 0; } if (STALLS == g->stalls) g->loading = 0; /* between installs, nothing to blame */ if (open) (void)b6->leave(b6->user); @@ -554,7 +559,7 @@ static void restore_pass(void) } at += step; } - if (left_out) modwerk_diag_refused(left_out, left_why); + if (left_out) modwerk_diag_refused(left_out, left_why, left_used, left_largest, left_check); if (installed != count) seal(installed, end); modwerk_modset_generation = be32(set + 8), modwerk_modset_count = installed; modwerk_modset_result = installed == count ? RESTORED : guarded ? LEFT_OUT : REFUSED; @@ -583,7 +588,7 @@ static void restore(void) put32(set + 8, ga > gb ? ga : gb); if (held) { modwerk_modset_result = SKIPPED; SAY("MODULES SKIPPED"); return; } modwerk_modset_result = HELD, notice_at = TICKS, notice_after = GUARD_NOTICE, notice = "MODULES HELD"; - modwerk_diag_refused(0, GUARD_HELD), modwerk_diag_set(); + modwerk_diag_refused(0, GUARD_HELD, 0, 0, 0), modwerk_diag_set(); return; } if (!wa && !wb) { @@ -596,7 +601,7 @@ static void restore(void) slot = wb && (!wa || gb > ga) ? 1u : 0u; /* the newer one; the next save goes to the other */ if (!slot && (int)load(0) != a) { modwerk_modset_result = DAMAGED; off_bytes = 0; return; } for (unsigned i = 0; i < RUNTIME_MODULES; ++i) restore_outcome[i] = 0; - restored = 0, left_out = left_why = 0; + restored = 0, left_out = left_why = left_used = left_largest = left_check = 0; restore_pass(); } /* ep0.c's tick (sys task, as the board's): the restore's notice, once its engines run or its time is up and no dialog of diff --git a/sdk/machines/octatrack/elekloader/test_diag.c b/sdk/machines/octatrack/elekloader/test_diag.c index a3f65ff8d9..c079145aea 100644 --- a/sdk/machines/octatrack/elekloader/test_diag.c +++ b/sdk/machines/octatrack/elekloader/test_diag.c @@ -38,10 +38,12 @@ int main(void) CHECK(LOG->loads == 0u && LOG->freeze_state == 0u); /* The installed set, after a restore or a Keep: the ids as one run of bytes. */ modwerk_test_modules[0] = 0x95cff696u, modwerk_test_modules[1] = 0xbcf0d674u; - modwerk_diag_refused(0x773c84aau, 7u); /* a restore refused Ringmod SC (in use): its record says so, once */ + modwerk_diag_refused(0x773c84aau, 7u, 786400u, 1000u, 2u); /* a restore refused Ringmod SC (in use): its record says so, + * once, with the module pool then in 16-byte units and the check */ modwerk_diag_set(); CHECK(LOG->incidents == 3u && last()->kind == DIAG_SET && last()->a == 2u && last()->machine[0] == 0x95u && last()->machine[3] == 0x96u); CHECK(last()->screen == 0x773c84aau && last()->tempo24 == 7u && !refused_module && !refused_code); + CHECK(last()->cpu == 49150u && last()->dsp0 == 63u && last()->dsp1 == 2u && !refused_used && !refused_largest && !refused_check); CHECK(last()->machine[4] == 0xbcu && last()->machine[7] == 0x74u && last()->machine[8] == 0u && last()->keys[0] == 0u); modwerk_test_modules[0] = modwerk_test_modules[1] = 0; diff --git a/sdk/machines/octatrack/elekloader/test_modset.c b/sdk/machines/octatrack/elekloader/test_modset.c index 73b41baa8a..70705ccaf3 100644 --- a/sdk/machines/octatrack/elekloader/test_modset.c +++ b/sdk/machines/octatrack/elekloader/test_modset.c @@ -11,10 +11,14 @@ #include "modset.c" static unsigned set_records; void modwerk_diag_set(void) { ++set_records; } /* diag.c: counted here */ -static uint32_t refused_m, refused_c, refuse_id; +static uint32_t refused_m, refused_c, refused_used, refused_largest, refuse_id; +static uint32_t pool_free = RUNTIME_POOL_BYTES, pool_largest = RUNTIME_POOL_BYTES; /* the loader's pool, as the test sets it */ +uint32_t modwerk_runtime_free(uint32_t *largest) { if (largest) *largest = pool_largest; return pool_free; } static unsigned busy_left; /* refuse_id's next refusals; then it installs (0: refused every time) */ static enum runtime_refusal refusal_now = RUNTIME_BUSY; -void modwerk_diag_refused(uint32_t module, uint32_t refusal) { refused_m = module, refused_c = refusal; } +static uint32_t refused_check_now = RUNTIME_CHECK_CLAIMS, refused_k; /* the check the stub loader names, and what the log got */ +enum runtime_check modwerk_runtime_refused_check(void) { return (enum runtime_check)refused_check_now; } +void modwerk_diag_refused(uint32_t module, uint32_t refusal, uint32_t used, uint32_t largest, uint32_t check) { refused_m = module, refused_c = refusal, refused_used = used, refused_largest = largest, refused_k = check; } enum runtime_refusal modwerk_runtime_refusal(void) { return refusal_now; } static enum runtime_refusal noted = RUNTIME_MALFORMED; /* what modset.c told the loader a refusal was */ void modwerk_runtime_refused(enum runtime_refusal why) { noted = why; } @@ -138,14 +142,17 @@ int main(void) CHECK(modwerk_modset_result == RESTORED && installed == 1 && ids[0] == 0x3cbedc9cu && entered == 1 && !refused_m); /* One refused BUSY (finding 69): tried again every half second, the host held meanwhile, and left out after ten * seconds; the log names the refused module and the loader's refusal. */ - refuse_id = 0x3cbedc9cu; written = writes; boot(); modwerk_modset_service(); + refuse_id = 0x3cbedc9cu; written = writes; pool_free = 4096u, pool_largest = 2048u; boot(); modwerk_modset_service(); CHECK(!restored && prepared == 1 && !modwerk_modset_result); modwerk_test_ticks += RESTORE_RETRY - 1; modwerk_modset_service(); CHECK(prepared == 1); /* not before its time */ for (unsigned t = 0; t < 40u && !restored; ++t) modwerk_test_ticks += RESTORE_RETRY, modwerk_modset_service(); CHECK(restored && prepared == RESTORE_TRIES); CHECK(modwerk_modset_result == REFUSED && !installed && refused_m == 0x3cbedc9cu && refused_c == RUNTIME_BUSY); + CHECK(refused_used == RUNTIME_POOL_BYTES - 4096u && refused_largest == 2048u && refused_k == RUNTIME_CHECK_CLAIMS); /* the pool + * when it was left out, and the check that refused it */ + pool_free = pool_largest = RUNTIME_POOL_BYTES; CHECK(used() == HEADER && !pending && writes == written); /* set[] names what runs; the card keeps it */ - refuse_id = 0, refused_m = refused_c = 0; + refuse_id = 0, refused_m = refused_c = refused_used = refused_largest = 0; /* BUSY twice, then it installs: the whole set, as the card has it, with nothing sealed or written. */ refuse_id = 0x3cbedc9cu, busy_left = 2; boot(); modwerk_modset_service(); for (unsigned t = 0; t < 40u && !restored; ++t) modwerk_test_ticks += RESTORE_RETRY, modwerk_modset_service(); diff --git a/sdk/runtime/loader/loader.c b/sdk/runtime/loader/loader.c index d3b967e0a0..aed2de1dcc 100644 --- a/sdk/runtime/loader/loader.c +++ b/sdk/runtime/loader/loader.c @@ -34,6 +34,7 @@ static unsigned owners, slot; /* slot: the transaction's position static struct runtime_module *candidate, *previous; static int prepared, held; static enum runtime_refusal refusal; +static enum runtime_check refused_check; /* which admission check said `refusal` */ struct journal_row { struct runtime_module *before,*after; uint32_t before_generation,after_generation,module; uint16_t position; uint8_t published,touched,needs_restore; uint8_t package_sha256[MU_DIGEST_BYTES]; }; struct runtime_journal { struct journal_row row[RUNTIME_JOURNAL_ROWS]; struct runtime_journal_progress progress; uint8_t preparing; }; static struct runtime_journal journal; @@ -111,7 +112,8 @@ unsigned modwerk_runtime_active(void) return n; } enum runtime_refusal modwerk_runtime_refusal(void) { return refusal; } -void modwerk_runtime_refused(enum runtime_refusal why) { refusal = why; } +void modwerk_runtime_refused(enum runtime_refusal why) { refusal = why, refused_check = RUNTIME_CHECK_NONE; } +enum runtime_check modwerk_runtime_refused_check(void) { return refused_check; } uint32_t modwerk_runtime_value(void) { return modwerk_runtime_api.value; } uint32_t modwerk_runtime_calls(void) { return modwerk_runtime_ticks; } @@ -130,7 +132,8 @@ unsigned modwerk_runtime_capabilities(uint8_t *out) out[10] = (uint8_t)(RUNTIME_COPIES >> 8); out[11] = (uint8_t)RUNTIME_COPIES; return 12u; } -static int refuse(enum runtime_refusal why) { refusal = why; return 0; } +static int refuse(enum runtime_refusal why) { refusal = why, refused_check = RUNTIME_CHECK_NONE; return 0; } +static int refuse_at(enum runtime_check check, enum runtime_refusal why) { refuse(why), refused_check = check; return 0; } /* ABI 9: the base features a package may require (loader.h). None unless the machine says so. */ #ifndef MODWERK_RUNTIME_FEATURES_EXTERNAL __attribute__((weak)) unsigned modwerk_machine_dsp_features(void) { return 0; } @@ -861,7 +864,7 @@ static int __attribute__((used)) prepare_context(void *u, const uint8_t *data, u #ifdef MODWERK_RUNTIME_SETS if(change_set.count && !change_set.preparing) return refuse(RUNTIME_BUSY); #endif - candidate = 0; prepared = 0; refusal = RUNTIME_OK; + candidate = 0; prepared = 0; refusal = RUNTIME_OK, refused_check = RUNTIME_CHECK_NONE; if (length < 28u || data[0] != 'M' || data[1] != 'W' || data[2] != 'R' || data[3] != 'M' || be16(data + 4) < 3u || be16(data + 4) > RUNTIME_ABI || be16(data + 6) & ~(be16(data + 4) >= 8u ? 7u : be16(data + 4) >= 6u ? 3u : 0u)) return refuse(RUNTIME_MALFORMED); uint32_t abi = be16(data + 4), header = abi >= 9 ? RUNTIME_HEADER_BYTES : abi == 8 ? 76u : abi == 7 ? 72u : abi == 6 ? 68u : abi == 5 ? 50u : abi == 4 ? 32u : 28u; @@ -1046,11 +1049,12 @@ static int __attribute__((used)) prepare_context(void *u, const uint8_t *data, u for (uint32_t i = 0; i < sites; ++i) if (claimed(slot, address[i], size[i])) return refuse(RUNTIME_CONFLICT); if (claims_taken(slot, claim, claims)) return refuse(RUNTIME_CONFLICT); /* another live module's claim */ uint32_t admission_lock = modwerk_machine_lock(); + enum runtime_check check = RUNTIME_CHECK_CLAIMS; int why = engine ? modwerk_machine_dsp_engine_admit(&dsp) : modwerk_machine_dsp_claims_admit(dsp.requires, claim, claims); - if (!why) why = modwerk_machine_metadata_admit(dsp_of(live[slot]), &dsp, context, RUNTIME_METADATA_PREPARE); - if (!why) why = modwerk_machine_dsp_admit(dsp_of(live[slot]), &dsp); + if (!why) check = RUNTIME_CHECK_METADATA, why = modwerk_machine_metadata_admit(dsp_of(live[slot]), &dsp, context, RUNTIME_METADATA_PREPARE); + if (!why) check = RUNTIME_CHECK_DSP, why = modwerk_machine_dsp_admit(dsp_of(live[slot]), &dsp); modwerk_machine_unlock(admission_lock); - if (why) return refuse((enum runtime_refusal)why); + if (why) return refuse_at(check, (enum runtime_refusal)why); if (image || sites || dsp.count || engine) { if (owner_generation == UINT32_MAX) return refuse(RUNTIME_FULL); reclaim(context); @@ -1060,7 +1064,7 @@ static int __attribute__((used)) prepare_context(void *u, const uint8_t *data, u init_at = entries_at + (uint32_t)sizeof(struct runtime_dsp_entry) * entries, tail = (init_at + 4u * init_words + 15u) & ~15u; struct runtime_module *m = take(head + code + tail); - if (!m) return refuse(RUNTIME_MEMORY); + if (!m) return refuse_at(RUNTIME_CHECK_POOL, RUNTIME_MEMORY); struct runtime_site *site = (struct runtime_site *)(void *)(m + 1); uint8_t *to = (uint8_t *)m + head; uint32_t base = (uint32_t)(uintptr_t)to; diff --git a/sdk/runtime/loader/loader.h b/sdk/runtime/loader/loader.h index af71b940c4..bf70e1d60a 100644 --- a/sdk/runtime/loader/loader.h +++ b/sdk/runtime/loader/loader.h @@ -180,6 +180,10 @@ unsigned modwerk_runtime_list(uint8_t *out, unsigned first, unsigned most); /* I enum runtime_refusal modwerk_runtime_refusal(void); void modwerk_runtime_refused(enum runtime_refusal why); /* a machine check that refuses before the loader (Octatrack modset.c) */ unsigned modwerk_runtime_refused_event(void); /* after RUNTIME_EVENT: that event's hook index */ +/* Which admission check refused the last prepare, so one refusal code from several checks can be told apart + * (RUNTIME_MEMORY: the pool, a claim meeting the machine's buffers, or the DSP's limits). None for every other refusal. */ +enum runtime_check { RUNTIME_CHECK_NONE, RUNTIME_CHECK_POOL, RUNTIME_CHECK_CLAIMS, RUNTIME_CHECK_METADATA, RUNTIME_CHECK_DSP }; +enum runtime_check modwerk_runtime_refused_check(void); #if RUNTIME_SITE_EVENTS /* Each site event's handlers in (order, module id) order, then 0: the base's dispatch (runtime_events.s, * modwerk_events_code up to modwerk_events_code_end) walks them. Rewritten masked, only while no paused diff --git a/sdk/runtime/loader/tests/host_test.c b/sdk/runtime/loader/tests/host_test.c index 6e2886b0c2..c4bb25a569 100644 --- a/sdk/runtime/loader/tests/host_test.c +++ b/sdk/runtime/loader/tests/host_test.c @@ -466,6 +466,7 @@ int main(void) ++fitted; } CHECK(fitted > 0 && modwerk_runtime_refusal() == RUNTIME_MEMORY && modwerk_runtime_active() == 2 + fitted); + CHECK(modwerk_runtime_refused_check() == RUNTIME_CHECK_POOL); /* the pool itself is full */ CHECK(modwerk_runtime_module(1) == two && stock[64] == 0x4e); /* Small modules fill every position; one more is refused. */ for (; id < 1000 && modwerk_runtime_active() < RUNTIME_MODULES; ++id) { @@ -742,6 +743,7 @@ int main(void) id = 94; begin9(4, 0); claim9(1, 1, RUNTIME_CLAIM_READ, 0x2840, 4); dsp_words9(4); unsigned seen = claims_seen; CHECK(!b->prepare(0, p, n) && modwerk_runtime_refusal() == RUNTIME_MEMORY && modwerk_runtime_free(0) == free && claims_seen == seen + 1); + CHECK(modwerk_runtime_refused_check() == RUNTIME_CHECK_CLAIMS); /* the same code, told apart from a full pool */ claims_why = 0; for (id = 90; id <= 92; ++id) { begin(0, 0, RUNTIME_NONE, 0, 0, 0, 0); diff --git a/sdk/tests/runtime_card_guard.c b/sdk/tests/runtime_card_guard.c index 88f562e322..9d68fffb97 100644 --- a/sdk/tests/runtime_card_guard.c +++ b/sdk/tests/runtime_card_guard.c @@ -13,7 +13,7 @@ #define put32 card_put32 #include "../../sdk/machines/octatrack/elekloader/modset.c" void modwerk_diag_set(void) {} /* diag.c's log record of the set: not under test here */ -void modwerk_diag_refused(uint32_t module, uint32_t refusal) { (void)module; (void)refusal; } +void modwerk_diag_refused(uint32_t module, uint32_t refusal, uint32_t used, uint32_t largest, uint32_t check) { (void)module; (void)refusal; (void)used; (void)largest; (void)check; } #undef candidate #undef candidate_bytes #undef slot diff --git a/sdk/tests/runtime_card_shelf.c b/sdk/tests/runtime_card_shelf.c index d0f1b786d4..31e5a9b7d8 100644 --- a/sdk/tests/runtime_card_shelf.c +++ b/sdk/tests/runtime_card_shelf.c @@ -5,6 +5,8 @@ * it. SYNTHETIC: no card, file system, loader or module code is established here. */ #include "sha256.c" #include "modset.c" +uint32_t modwerk_runtime_free(uint32_t *largest) { if (largest) *largest = RUNTIME_POOL_BYTES; return RUNTIME_POOL_BYTES; } +enum runtime_check modwerk_runtime_refused_check(void) { return RUNTIME_CHECK_NONE; } #include #include #include @@ -14,7 +16,7 @@ static unsigned failures; const uint8_t modwerk_base_digest[32] = {4, 5, 6}; uint8_t modwerk_test_card_io[512]; void modwerk_diag_set(void) {} -void modwerk_diag_refused(uint32_t module, uint32_t refusal) { (void)module; (void)refusal; } +void modwerk_diag_refused(uint32_t module, uint32_t refusal, uint32_t used, uint32_t largest, uint32_t check) { (void)module; (void)refusal; (void)used; (void)largest; (void)check; } enum runtime_refusal modwerk_runtime_refusal(void) { return RUNTIME_BUSY; } void modwerk_runtime_refused(enum runtime_refusal why) { (void)why; } diff --git a/sdk/tests/test_volatile_service.py b/sdk/tests/test_volatile_service.py index c7e187ce61..905f25194f 100644 --- a/sdk/tests/test_volatile_service.py +++ b/sdk/tests/test_volatile_service.py @@ -23,7 +23,7 @@ def units(temp): modset, reader = Path(temp) / 'modset_host.c', Path(temp) / 'reader_host.c' modset.write_text('#define MODWERK_HOST\n#define MODWERK_HOST_CARD\n#define MODWERK_SAVED_SET_EXPORT\n' '#define MODWERK_RUNTIME_VOLATILE_JOURNAL\n#include "modset.c"\n' - 'void modwerk_diag_set(void) {}\nvoid modwerk_diag_refused(uint32_t m, uint32_t r) { (void)m; (void)r; }\n') # diag.c's log record of the set: not under test here + 'void modwerk_diag_set(void) {}\nvoid modwerk_diag_refused(uint32_t m, uint32_t r, uint32_t u, uint32_t l, uint32_t c) { (void)m; (void)r; (void)u; (void)l; (void)c; }\n') # diag.c's log record of the set: not under test here reader.write_text('#define MODWERK_HOST\n#include "saved_set_reader.c"\n') return ['-I', GLUE, ELEK / 'volatile_service.c', modset, reader, GLUE / 'saved_set_export.c'] From e8b5d6999c8ea03456276289d69758b7e2af22b7 Mon Sep 17 00:00:00 2001 From: claptom-music <350865352+Claptom-music@users.noreply.github.com> Date: Thu, 19 Nov 2026 10:10:07 +0100 Subject: [PATCH 074/415] Digitakt II machines: a grain is a voice record of its own, rendered by the stock player Emulator: two grains on one voice (the voice's record and a copy with its own play position) both play through the stock sample player. Co-Authored-By: Claude Opus 5.5 --- sdk/digitakt-ii/modules/mikrotakt/README.md | 2 +- .../digitakt-ii/elekloader/modwerk/MACHINES.md | 13 ++++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/sdk/digitakt-ii/modules/mikrotakt/README.md b/sdk/digitakt-ii/modules/mikrotakt/README.md index 6d78d7a3f6..d88ef93b1a 100644 --- a/sdk/digitakt-ii/modules/mikrotakt/README.md +++ b/sdk/digitakt-ii/modules/mikrotakt/README.md @@ -8,6 +8,6 @@ Describe what it does, every control, how to reach it on the unit, and a short t The grain player runs on the sound chip in place of the stock sample player for Mikrotakt's voices (the base's machine player dispatcher). Plan: each block, for each active grain, call the stock sample player with the voice's play position set to the grain's position and its output pointed at a scratch buffer, then add the grain through a window into the voice's slot. The stock player keeps doing the sample reading, interpolation and pitch, so grains sound like the Digitakt's own sample playback. -Fields of the stock voice state record the player touches (OS 1.17, word offsets; read from the stock renderer at `0x1c4f81`, values from an emulator run, meanings still to confirm): `+0x62` to `+0x6d` hold the sample's bounds, position and step (`+0x63`/`+0x65` 24,000 for a one-second 48 kHz mono test sample, `+0x6d` advancing by 16 each block). +Each grain is a record of its own: a copy of the voice's stock record with its own play position (word `0x6d`, in pairs of samples, and its fraction `0x6c`), kept in Mikrotakt's L2 range and rendered by calling the stock player with `R4` pointing at it. The voice's settings (sample, pitch, length) are copied into every grain record each block; the grain's play state is its own. The base's notes on the record and the emulator tests are in `sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md` ("Grains through the stock player"). Emulator check (19 November 2026): a player that only calls the stock sample player, the way the render loop does (`CALL 0x1c4ecf` linked, then `DM(I7, M7) = R2` and `DM(I7, M7) = return - 1` in the delay slots: the stock `RETURN` resumes one past the pushed address), and then returns, plays the test machine byte-identically to the stock player (PCM `2129ca6e...`). So the grain player can render each grain with the stock player. With the return address pushed exactly (not minus one) the emulated sound chip stopped inside the player. diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md index 1884150af1..258a9a3b0a 100644 --- a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md @@ -151,7 +151,7 @@ In the builder: `planDt2MachinePlayers` in `dt2-sharc.ts` generates the dispatch What an added machine's sound-chip player gets and must do, taken from the stock player it stands in for (`0x1c4ecf`); the parts marked open are still to trace. -- **Entry.** Called once per voice per block (32-sample block, 32 voices) by the render pass, exactly as the stock player: a linked call with the caller's frame (`I6`, `I7`); `R8` holds the address of the voice's output slot (register dump of the stock player on a playing voice: `0x8045b3c0` for voice 0, `0x8045b440` for voice 1), `R4` and `R13` its voice state record, `R14` the voice counter (voice `32 - R14`). Open: the meaning of `R12` (0 in the dump). +- **Entry.** Called once per voice per block (32-sample block, 32 voices) by the render pass, exactly as the stock player: a linked call with the caller's frame (`I6`, `I7`); `R8` holds the address of the voice's output slot (register dump of the stock player on a playing voice: `0x8045b3c0` for voice 0, `0x8045b440` for voice 1), `R4` and `R13` its voice state record, `R14` the voice counter (voice `32 - R14`), `R12` the samples per block (32; see "Grains through the stock player"). - **Registers.** Keep every register the stock player keeps (it saves `R3`, `R5`-`R7`, `R9`-`R11`, `R13`-`R15`, `M1`-`M3`, `B3`, `I0`-`I3`, `I5` in its frame and restores them). Never leave a stock register changed (lesson of the setup detour above). - **Return.** `I12 = DM(I6, M7)`, then the `RETURN` and return-frame pair, as the stock epilogue (`0x1c4f56`, `0x1c4f7c`-`0x1c4f80`). - **Output.** 32 samples as 32-bit floats into the slot at `R8`, one word apart (post-modify by 1; a modifier of 4 wrote every fourth word and spilled into the next voices' slots). The stock filter, amp envelope and level then process them. @@ -163,6 +163,17 @@ What an added machine's sound-chip player gets and must do, taken from the stock Local DSP image: the dispatcher above with, for type 7, a player that saves the four registers it uses, writes a square wave (16 samples at +0.1, 16 at -0.1) into the slot at `R8`, restores them and returns as the stock player. Test machine chosen through the menu, two trigs on track 1 (scripted coupled run from a ready point saved with that image): the tone appears with each note at 1,498 Hz by zero crossings (expected 1,500: one period per 32-sample block), follows the amp envelope down, peak 0.024 at the output; no halt, no missing blocks. So an added machine's player makes the sound of its voices, and the stock voice chain after it still shapes that sound. +### Grains through the stock player (19 November 2026) + +The stock player's arguments (its prologue at `0x1c4ecf` and the render loop at `0x1c6afd`): `R4` is the voice's record (a byte address, `0x2412cc + 0x1d8 * voice`), `R8` the output slot, `R12` the samples per block (32). It renders only when the record's word 0 (the sample address) and word `0x6e` (playing) are nonzero, and writes silence otherwise. Record words (emulator memory dump of voice 0 over 150 blocks of a one-second 48 kHz test sample): `0` sample address (external memory), `1`-`0x40` and `0x45`-`0x50` the player's working state (64 interpolated values per block and history), `0x41`-`0x44` constants, `0x61`/`0x62` length in samples, `0x69` length in words, `0x6a`/`0x6b` step (fraction, words), `0x6c`/`0x6d` play position (fraction, words; one word holds two 16-bit samples, so the position advances 16 per block at the original pitch), `0x6e` playing. A new note starts with words `1`-`0x50` and the position at zero. + +So a grain is a record of its own: a copy of the voice's record with its own position, kept in free L2 at a fixed offset from the voice's record, rendered by calling the stock player with `R4` pointing at it. Local test player (type 7, called by the render hook): when a note starts it copies the voice's 118-word record to grain B and sets B's position; every block it re-copies the voice's settings (words `0`, `0x41`-`0x44`, `0x51`-`0x6b`, `0x6f`-`0x75`) but not B's play state, calls the stock player for the voice (into the slot) and for B (into a scratch buffer), and writes a weighted sum into the slot. Scripted coupled runs, test machine through the menu, two notes of a 220 Hz test sample: + +- A and B at one half each, B half a second ahead (a whole number of cycles, so in phase): the first half second equals stock; when B reaches the sample's end the level drops to exactly half (peak 0.0464 to 0.0232) for the rest of the note. +- B alone, a quarter second ahead: each note plays as stock and ends a quarter second early (last quarter second silent where stock still sounds). + +No halt and no missing blocks; stock voices on other tracks are untouched. The stock player clobbers `R0`-`R2`, `R4`, `R8`, `R12`, `I4`, `I12`, `I13`, `M4`, `B4`, `L3` and `L4`, so a player keeps what it needs across calls in its own memory. + ### Machine modules' sound-chip parts in the build (19 November 2026) A machine module carries its player in its package as `build.dt2_sharc` version 2: L2 allocations at fixed addresses (claim each range as a dsp-region) and `{type, entry}` for each machine type it plays. The base keeps L2 `0x200c0100`-`0x200c3000` for its own machine parts. After the kit build, `preflightBuiltFile` (Digitakt II only) calls `composeDt2MachineBuild`: it reads every selected package's part, adds the longer selector table, the player dispatcher and the modules' allocations to section 7, and runs the preflight with that plan. A selection with no part leaves the kit build as it is. From cc32a0d91edd84b29b9f5d7f4d75e0c79451dfc4 Mon Sep 17 00:00:00 2001 From: claptom-music <350865352+Claptom-music@users.noreply.github.com> Date: Thu, 19 Nov 2026 10:28:46 +0100 Subject: [PATCH 075/415] A small SHARC+ assembler for Modwerk's sound-chip code, with the hardware rule checks Text source in the reference manual's syntax (the forms a voice player needs), loader blocks out; refuses a short instruction among a hardware loop's last 11 and a DAG register stored through its own DAG. Co-Authored-By: Claude Opus 5.5 --- changelog/2026-11-19-digitakt-ii-machines.md | 1 + src/engine/elektron/sharc-asm.test.ts | 86 +++++ src/engine/elektron/sharc-asm.ts | 383 +++++++++++++++++++ 3 files changed, 470 insertions(+) create mode 100644 changelog/2026-11-19-digitakt-ii-machines.md create mode 100644 src/engine/elektron/sharc-asm.test.ts create mode 100644 src/engine/elektron/sharc-asm.ts diff --git a/changelog/2026-11-19-digitakt-ii-machines.md b/changelog/2026-11-19-digitakt-ii-machines.md new file mode 100644 index 0000000000..7064b5435b --- /dev/null +++ b/changelog/2026-11-19-digitakt-ii-machines.md @@ -0,0 +1 @@ +Digitakt II, for module developers: the base can add new track machines after the stock ones (their own machine numbers, in the machine list, saved with kits), sends their voices to the module's own sound-chip player, and puts that player into the build. Modwerk now has its own small sound-chip assembler, which checks the hardware's loop and register rules on every build. Not yet tested on a unit. diff --git a/src/engine/elektron/sharc-asm.test.ts b/src/engine/elektron/sharc-asm.test.ts new file mode 100644 index 0000000000..95229dadf7 --- /dev/null +++ b/src/engine/elektron/sharc-asm.test.ts @@ -0,0 +1,86 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +import { describe, expect, it } from 'vitest' +import { assembleSharc, sharcProgramCounter } from './sharc-asm.ts' + +// Each statement alone at 0x200d0000; the expected parcels are the instruction types of the SHARC+ programming reference. +const one = (statement: string) => { + const { blocks } = assembleSharc(`.code 0x200d0000\nhere: ${statement}`) + const bytes = blocks[0].bytes + return Array.from({ length: bytes.length / 2 }, (_, k) => (bytes[2 * k] | bytes[2 * k + 1] << 8).toString(16).padStart(4, '0')).join('') +} + +describe('SHARC assembler', () => { + it.each([ + ['R0 = 0x1234', '0f0000001234'], + ['F12 = 0.5', '0f0c3f000000'], + ['R4 = DM(0x8035040)', '100408035040'], + ['DM(0x8035041) = R4', '110408035041'], + ['I0 = R4', '707e083f'], + ['IF NE R1 = R2', '702100bf'], + ['R0 = DM(I0, M0)', '503e00000000'], + ['R0 = DM(M0, I0)', '403e00000000'], + ['DM(I1, M0) = R0', '523e80000000'], + ['F0 = F1 + F2, DM(I2, M1) = R5', '547e82881012'], + ['F3 = F4 * F5, R1 = DM(I4, M4)', '593e00930345'], + ['DM(I7, M7) = 0x1234', '9fc000001234'], + ['R3 = R4 + R5', '013e00001345'], + ['R3 = R4 - R5', '013e00002345'], + ['R3 = R4 XOR R5', '013e00042345'], + ['R3 = PASS R4', '013e00021340'], + ['R3 = R4 + 1', '013e00029340'], + ['R3 = MIN(R4, R5)', '013e00061345'], + ['COMP(R4, R5)', '013e0000a045'], + ['R3 = R4 * R5 (SSI)', '013e00170345'], + ['R3 = LSHIFT R4 BY R5', '013e00200345'], + ['F3 = F4 * F5', '013e00130345'], + ['F3 = MAX(F4, F5)', '013e000e2345'], + ['F3 = FLOAT R4', '013e000ca340'], + ['R3 = FIX F4', '013e000c9340'], + ['IF EQ F0 = F1 + F2', '010000081012'], + ['IF NOT SV JUMP here', '062e00be8000'], + ['NOP', '000000000000'], + ])('%s', (statement, parcels) => expect(one(statement)).toBe(parcels)) + + it('makes a linked call as the stock render loop does, pushing the return address minus one', () => { + expect(one('CCALL 0x1c4ecf')).toBe('1804001c4ecf' + '5ffe81000000' + '9fc000be8008') + }) + + it('returns as the stock player does', () => { + expect(one('CRET')).toBe('4dfe0e000000' + '000000000000' + '083f343f' + '000000000000' + '1901') + }) + + it('places code and data, with labels as program counters and byte addresses', () => { + const { blocks, symbols } = assembleSharc(`.code 0x200d0000\nstart: NOP\nnext: JUMP start\n.data 0x200d8000\ntable: .word 1, table\n.float -1.0`) + expect(symbols.get('start')).toBe(sharcProgramCounter(0x200d0000)) + expect(symbols.get('next')).toBe(0xbe8003) + expect(blocks.map(block => block.address)).toEqual([0x200d0000, 0x200d8000]) + expect(Array.from(blocks[1].bytes)).toEqual([1, 0, 0, 0, 0x00, 0x80, 0x0d, 0x20, 0, 0, 0x80, 0xbf]) + }) + + it('encodes a loop with its end relative to DO', () => { + expect(one('LCNTR = 32, DO end UNTIL LCE\nR0 = DM(I0, M0)\nNOP\nend: DM(I1, M0) = R0').slice(0, 12)).toBe('0c0020800009') + }) + + it('refuses a short instruction among the last 11 of a hardware loop', () => { + expect(() => assembleSharc('.code 0x200d0000\nLCNTR = 4, DO end UNTIL LCE\nI0 = R4\nNOP\nend: NOP')) + .toThrow(/line 3: a 16- or 32-bit instruction among the last 11/) + expect(() => assembleSharc(`.code 0x200d0000\nLCNTR = 4, DO end UNTIL LCE\nI0 = R4\n${'NOP\n'.repeat(10)}end: NOP`)).not.toThrow() + }) + + it('refuses storing a DAG register through an index register of the same DAG', () => { + expect(() => assembleSharc('.code 0x200d0000\nDM(I1, M0) = I2')).toThrow(/line 2: a DAG register stored/) + expect(() => assembleSharc('.code 0x200d0000\nDM(I1, M0) = M3')).toThrow(/same DAG/) + expect(() => assembleSharc('.code 0x200d0000\nDM(I1, M0) = I12')).not.toThrow() + }) + + it('names the line of an error', () => { + expect(() => assembleSharc('.code 0x200d0000\nNOP\nR0 = FOO(R1)')).toThrow(/line 3: .*unknown symbol FOO|line 3/) + expect(() => assembleSharc('NOP')).toThrow(/line 1: instruction outside a \.code block/) + expect(() => assembleSharc('.code 0x1000')).toThrow(/L2 loader byte address/) + expect(() => assembleSharc('.code 0x200d0000\na: NOP\na: NOP')).toThrow(/label defined twice/) + }) + + it('refuses overlapping blocks', () => { + expect(() => assembleSharc('.code 0x200d0000\nNOP\n.data 0x200d0000\n.word 1')).toThrow(/overlapping/) + }) +}) diff --git a/src/engine/elektron/sharc-asm.ts b/src/engine/elektron/sharc-asm.ts new file mode 100644 index 0000000000..aa318dc7ad --- /dev/null +++ b/src/engine/elektron/sharc-asm.ts @@ -0,0 +1,383 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +/** + * A small SHARC+ assembler for Modwerk's sound-chip code (the Digitakt II's section 7). + * + * It reads a plain-text source in the instruction syntax of Analog Devices' public *SHARC+ Core Programming + * Reference* (a subset, below) and returns the loader blocks: code as 16-bit parcels, data as 32-bit words, both + * little-endian, at loader byte addresses in L2. Encodings follow the reference's instruction types; only the forms a + * Modwerk player needs exist. Every program is checked against the rules in sdk/machines/digitakt-ii/README.md + * ("SHARC code rules"): the last 11 instructions of a hardware loop are 48-bit, and no DAG register is stored through + * an index register of the same DAG. + * + * Source syntax (one statement per line, `;` or `//` starts a comment, case-insensitive mnemonics): + * + * .code 0x200d0000 code from this loader byte address (labels are program counters) + * .data 0x200d8000 data from this loader byte address (labels are byte addresses) + * .equ NAME, expression a constant + * .word e, e, ... 32-bit words (data) .float 0.5, -1.0 32-bit floats (data) + * .space bytes zero bytes (data) + * label: + * + * ureg = expression type 17a ureg = DM(expression) / DM(expression) = ureg type 14a + * ureg = DM(Ii, Mm) / DM(Ii, Mm) = ureg type 3a, post-modify DM(Mm, Ii): pre-modify, no update + * compute, ureg = DM(Ii, Mm) type 3a with a computation in the same instruction + * DM(Ii, Mm) = expression type 16a + * [IF cond] compute type 2a: Rn = Rx + Ry, Rx - Ry, Rx AND/OR/XOR Ry, PASS Rx, -Rx, Rx + 1, + * Rx - 1, ABS Rx, MIN(Rx, Ry), MAX(Rx, Ry), COMP(Rx, Ry), Rx * Ry (SSI), + * LSHIFT Rx BY Ry, ASHIFT Rx BY Ry; Fn = Fx + Fy, Fx - Fy, Fx * Fy, PASS Fx, + * -Fx, ABS Fx, MIN(Fx, Fy), MAX(Fx, Fy), COMP(Fx, Fy), FLOAT Rx; Rn = FIX Fx + * [IF cond] ureg = ureg type 5b (32-bit: never in the last 11 instructions of a loop) + * [IF cond] JUMP target type 8a, absolute, not delayed + * LCNTR = count, DO label UNTIL LCE type 12a (label: the loop's last instruction) + * NOP + * CCALL target a linked call as the stock render loop makes one (the call, then the old + * frame pointer and the return address pushed in its two delay slots) + * CRET the stock player's epilogue: I12 = DM(M7, I6), RETURN, RFRAME + */ + +export type SharcBlock = { address: number; bytes: Uint8Array } +export type SharcProgram = { blocks: SharcBlock[]; symbols: Map } + +const L2_START = 0x20000000, L2_END = 0x20100000 +/** The short-word program counter of an L2 loader byte address. */ +export const sharcProgramCounter = (address: number) => 0xb80000 + (address - L2_START) / 2 + +const CONDITIONS: Record = { + EQ: 0x00, LT: 0x01, LE: 0x02, AC: 0x03, AV: 0x04, MV: 0x05, MS: 0x06, SV: 0x07, SZ: 0x08, + NE: 0x10, GE: 0x11, GT: 0x12, NOT_AC: 0x13, NOT_AV: 0x14, NOT_MV: 0x15, NOT_MS: 0x16, NOT_SV: 0x17, NOT_SZ: 0x18, +} +const TRUE = 0x1f + +function universalRegister(name: string): number | null { + const n = name.toUpperCase() + const match = /^([RFIMLB])(\d{1,2})$/.exec(n) + if (match) { + const index = Number(match[2]) + if (index > 15) return null + return ({ R: 0x00, F: 0x00, I: 0x10, M: 0x20, L: 0x30, B: 0x40 } as Record)[match[1]] + index + } + return ({ MODE1: 0x72, MODE2: 0x74, ASTATX: 0x76, ASTATY: 0x77, STKYX: 0x78, STKYY: 0x79, USTAT1: 0x60, + USTAT2: 0x61, LCNTR: 0x6b } as Record)[n] ?? null +} + +type Item = + | { kind: 'code'; pc: number; width: 16 | 32 | 48; line: number; build: (labels: Map) => bigint; + store?: { index: number; ureg: number }; loopEnd?: string } + | { kind: 'data'; address: number; line: number; build: (labels: Map) => number } + +class SourceError extends Error { + constructor(line: number, message: string) { super(`line ${line}: ${message}`) } +} + +function evaluate(text: string, symbols: Map, line: number): number { + const tokens = text.match(/0x[0-9a-f]+|\d+(?:\.\d+)?|[A-Za-z_.$][\w.$]*|<<|>>|[-+*/&|()~]/gi) + if (!tokens || tokens.join('').replace(/\s/g, '') !== text.replace(/\s/g, '')) throw new SourceError(line, 'bad expression: ' + text) + let at = 0 + const peek = () => tokens[at] + const take = () => tokens[at++] + const primary = (): number => { + const token = take() + if (token === undefined) throw new SourceError(line, 'incomplete expression: ' + text) + if (token === '(') { const value = or(); if (take() !== ')') throw new SourceError(line, 'missing ) in ' + text); return value } + if (token === '-') return -primary() + if (token === '~') return ~primary() + if (/^0x/i.test(token)) return parseInt(token, 16) + if (/^\d/.test(token)) return Number(token) + const value = symbols.get(token) + if (value === undefined) throw new SourceError(line, 'unknown symbol ' + token) + return value + } + const product = (): number => { let v = primary(); while (peek() === '*' || peek() === '/') v = take() === '*' ? v * primary() : Math.trunc(v / primary()); return v } + const sum = (): number => { let v = product(); while (peek() === '+' || peek() === '-') v = take() === '+' ? v + product() : v - product(); return v } + const shift = (): number => { let v = sum(); while (peek() === '<<' || peek() === '>>') v = take() === '<<' ? v * 2 ** sum() : Math.floor(v / 2 ** sum()); return v } + const and = (): number => { let v = shift(); while (peek() === '&') { take(); v = Number(BigInt.asUintN(32, BigInt(v)) & BigInt.asUintN(32, BigInt(shift()))) } return v } + const or = (): number => { let v = and(); while (peek() === '|') { take(); v = Number(BigInt.asUintN(32, BigInt(v)) | BigInt.asUintN(32, BigInt(and()))) } return v } + const value = or() + if (at !== tokens.length) throw new SourceError(line, 'bad expression: ' + text) + return value +} + +const u32 = (value: number) => BigInt.asUintN(32, BigInt(Math.trunc(value))) +const float32Bits = (value: number) => { const view = new DataView(new ArrayBuffer(4)); view.setFloat32(0, value); return view.getUint32(0) } + +const ALU: Record = { '+': 0x01, '-': 0x02, AND: 0x40, OR: 0x41, XOR: 0x42 } +const FLOAT_ALU: Record = { '+': 0x81, '-': 0x82 } + +/** Parse a computation (the part of type 2a/3a below bit 23), or null when `text` is not one. */ +function computation(text: string): number | null { + const t = text.trim().toUpperCase().replace(/\s+/g, ' ') + const reg = (name: string, kind: 'R' | 'F') => { const m = new RegExp('^' + kind + '(\\d{1,2})$').exec(name); return m && Number(m[1]) <= 15 ? Number(m[1]) : null } + const alu = (op: number, n: number, x: number, y = 0) => (op << 12) | (n << 8) | (x << 4) | y + const mul = (op: number, n: number, x: number, y: number) => (1 << 20) | alu(op, n, x, y) + const shifter = (op: number, n: number, x: number, y: number) => (2 << 20) | alu(op, n, x, y) + let m = /^COMP ?\(([RF]\d+), ?([RF]\d+)\)$/.exec(t) + if (m) { + const [x, y, f] = [reg(m[1], 'R') ?? reg(m[1], 'F'), reg(m[2], 'R') ?? reg(m[2], 'F'), m[1][0] === 'F'] + return x === null || y === null || m[1][0] !== m[2][0] ? null : alu(f ? 0x8a : 0x0a, 0, x, y) + } + m = /^([RF]\d+) ?= ?(.+)$/.exec(t) + if (!m) return null + const dest = m[1], rhs = m[2], float = dest[0] === 'F' + const n = reg(dest, float ? 'F' : 'R') + if (n === null) return null + const kind = float ? 'F' : 'R' + let r: RegExpExecArray | null + if ((r = /^([RF]\d+) ?(\+|-|\*|AND|OR|XOR) ?([RF]\d+)( ?\(SSI\))?$/.exec(rhs))) { + const x = reg(r[1], kind), y = reg(r[3], kind) + if (x === null || y === null) return null + if (r[2] === '*') return float ? (r[4] ? null : mul(0x30, n, x, y)) : (r[4] ? mul(0x70, n, x, y) : null) + if (r[4]) return null + const op = float ? FLOAT_ALU[r[2]] : ALU[r[2]] + return op === undefined ? null : alu(op, n, x, y) + } + if ((r = /^(R\d+) ?(\+|-) ?1$/.exec(rhs)) && !float) { const x = reg(r[1], 'R'); return x === null ? null : alu(r[2] === '+' ? 0x29 : 0x2a, n, x) } + if ((r = /^PASS ([RF]\d+)$/.exec(rhs))) { const x = reg(r[1], kind); return x === null ? null : alu(float ? 0xa1 : 0x21, n, x) } + if ((r = /^-([RF]\d+)$/.exec(rhs))) { const x = reg(r[1], kind); return x === null ? null : alu(float ? 0xa2 : 0x22, n, x) } + if ((r = /^ABS ([RF]\d+)$/.exec(rhs))) { const x = reg(r[1], kind); return x === null ? null : alu(float ? 0xb0 : 0x30, n, x) } + if ((r = /^(MIN|MAX) ?\(([RF]\d+), ?([RF]\d+)\)$/.exec(rhs))) { + const x = reg(r[2], kind), y = reg(r[3], kind) + return x === null || y === null ? null : alu((float ? 0xe0 : 0x60) + (r[1] === 'MIN' ? 1 : 2), n, x, y) + } + if ((r = /^FLOAT (R\d+)$/.exec(rhs)) && float) { const x = reg(r[1], 'R'); return x === null ? null : alu(0xca, n, x) } + if ((r = /^FIX (F\d+)$/.exec(rhs)) && !float) { const x = reg(r[1], 'F'); return x === null ? null : alu(0xc9, n, x) } + if ((r = /^(LSHIFT|ASHIFT) (R\d+) BY (R\d+)$/.exec(rhs)) && !float) { + const x = reg(r[2], 'R'), y = reg(r[3], 'R') + return x === null || y === null ? null : shifter(r[1] === 'LSHIFT' ? 0x00 : 0x04, n, x, y) + } + return null +} + +const dag = (ureg: number) => ureg >= 0x10 && ureg < 0x50 ? ((ureg & 0xf) < 8 ? 1 : 2) : 0 + +/** Assemble `source`; throws with the line number on any error or broken rule. */ +export function assembleSharc(source: string): SharcProgram { + const symbols = new Map() + const items: Item[] = [] + let section: 'code' | 'data' | null = null + let pc = 0, address = 0 + const pending: { line: number; text: string; first: number }[] = [] + const lines = source.split(/\r?\n/) + // Pass 1: positions and labels. Instruction sizes never depend on label values. + for (const [index, raw] of lines.entries()) { + const line = index + 1 + let text = raw.replace(/(;|\/\/).*$/, '').trim() + let label: RegExpExecArray | null + while ((label = /^([A-Za-z_.$][\w.$]*):\s*/.exec(text))) { + if (symbols.has(label[1])) throw new SourceError(line, 'label defined twice: ' + label[1]) + if (!section) throw new SourceError(line, 'label before .code or .data') + symbols.set(label[1], section === 'code' ? pc : address) + text = text.slice(label[0].length) + } + if (!text) continue + const directive = /^\.(\w+)\s*(.*)$/.exec(text) + if (directive) { + const [, name, rest] = directive + if (name === 'equ') { + const m = /^([A-Za-z_.$][\w.$]*)\s*,\s*(.+)$/.exec(rest) + if (!m) throw new SourceError(line, '.equ NAME, value') + symbols.set(m[1], evaluate(m[2], symbols, line)) + continue + } + if (name === 'code' || name === 'data') { + const at = evaluate(rest, symbols, line) + if (at < L2_START || at >= L2_END || at % 4) throw new SourceError(line, 'a block starts at a word-aligned L2 loader byte address') + section = name + if (name === 'code') pc = sharcProgramCounter(at) + else address = at + continue + } + if (section !== 'data') throw new SourceError(line, `.${name} belongs in a .data block`) + if (name === 'space') { address += evaluate(rest, symbols, line); continue } + if (name === 'word' || name === 'float') { + for (const part of rest.split(',')) { + const expr = part.trim(), at = address + items.push({ kind: 'data', address: at, line, build: labels => name === 'float' ? float32Bits(Number(expr)) : Number(u32(evaluate(expr, labels, line))) }) + address += 4 + } + continue + } + throw new SourceError(line, 'unknown directive .' + name) + } + if (section !== 'code') throw new SourceError(line, 'instruction outside a .code block') + const first = items.length + for (const width of shape(text)) { + items.push({ kind: 'code', pc, width, line, build: () => 0n }) + pc += width / 16 + } + pending.push({ line, text, first }) + } + // Pass 2: encode (a statement may be several instructions: CCALL, CRET). + for (const { line, text, first } of pending) { + const encoded = encode(text, line, (items[first] as Extract).pc) + for (const [k, part] of encoded.entries()) { + const item = items[first + k] as Extract + if (part.width !== item.width) throw new Error(`line ${line}: internal size mismatch`) + Object.assign(item, part) + } + } + const code = items.filter((item): item is Extract => item.kind === 'code') + checkRules(code, symbols) + return { blocks: layout(items, symbols), symbols } +} + +/** The widths of the instructions a statement assembles to (known before labels are). */ +function shape(text: string): (16 | 32 | 48)[] { + const t = text.toUpperCase().replace(/\s+/g, ' ') + if (t === 'CCALL' || t.startsWith('CCALL ')) return [48, 48, 48] + if (t === 'CRET') return [48, 48, 32, 48, 16] + const m = /^(?:IF (?:NOT )?\w+ )?(\w+) ?= ?(\w+)$/.exec(t) + if (m && universalRegister(m[1]) !== null && universalRegister(m[2]) !== null) return [32] + return [48] +} + +type Encoded = Partial> + +function encode(text: string, line: number, pc: number): Encoded[] { + const fail = (message = 'unsupported instruction') => { throw new SourceError(line, message + ': ' + text) } + const t = text.replace(/\s+/g, ' ').trim() + const upper = t.toUpperCase() + const one = (width: 16 | 32 | 48, build: (labels: Map) => bigint, extra: Encoded = {}): Encoded[] => [{ width, build, ...extra }] + const expr = (e: string) => (labels: Map) => evaluate(e, labels, line) + if (upper === 'NOP') return one(48, () => 0n) + if (upper === 'CRET') { + // I12 = DM(M7, I6); NOP; RETURN; NOP; RFRAME -- the stock player's epilogue, as one unit. + return [{ width: 48, build: () => type3(0, 6, 7, TRUE, false, 0x1c, 0) }, + { width: 48, build: () => 0n }, { width: 32, build: () => 0x083f343fn }, { width: 48, build: () => 0n }, { width: 16, build: () => 0x1901n }] + } + let m: RegExpExecArray | null + if ((m = /^CCALL (.+)$/i.exec(t))) { + const target = expr(m[1]) + return [ + { width: 48, build: labels => (0x1804n << 32n) | u32(target(labels)) }, + { width: 48, build: () => type3(1, 7, 7, TRUE, true, 0x02, 0) }, // DM(I7, M7) = R2: the old frame pointer + { width: 48, build: () => (0x9n << 44n) | (7n << 41n) | (7n << 38n) | u32(pc + 9 - 1) }, // the return address - 1 + ] + } + if ((m = /^LCNTR ?= ?(.+?), ?DO (\S+) UNTIL LCE$/i.exec(t))) { + const count = expr(m[1]), end = m[2] + return one(48, labels => { + const n = count(labels), last = labels.get(end) + if (last === undefined) throw new SourceError(line, 'unknown loop end ' + end) + if (!Number.isInteger(n) || n < 1 || n > 0xffff) throw new SourceError(line, 'loop count out of range') + return (0x0cn << 40n) | (BigInt(n) << 24n) | (1n << 23n) | BigInt((last - pc) & 0x7fffff) + }, { loopEnd: end }) + } + let condition = TRUE + let body = t + if ((m = /^IF (NOT \w+|\w+) (.+)$/i.exec(t))) { + const name = m[1].toUpperCase().replace(' ', '_') + if (!(name in CONDITIONS)) fail('unknown condition ' + m[1]) + condition = CONDITIONS[name] + body = m[2] + } + if ((m = /^JUMP (.+)$/i.exec(body))) { + const target = expr(m[1]) + return one(48, labels => (0x06n << 40n) | (BigInt(condition) << 33n) | (u32(target(labels)) & 0xffffffn)) + } + const compute = computation(body) + if (compute !== null) return one(48, () => (0x01n << 40n) | (BigInt(condition) << 33n) | BigInt(compute)) + if (condition !== TRUE) { + if ((m = /^(\w+) ?= ?(\w+)$/.exec(body)) && universalRegister(m[1]) !== null && universalRegister(m[2]) !== null) return move(m[1], m[2], condition) + fail('a condition applies to a computation, a register move or a jump') + } + // compute, transfer + let computePart = 0 + const split = /^(.+?), ?((?:[RFIMLB]\d+|\w+) ?= ?DM\(.+\)|DM\(.+\) ?= ?.+)$/i.exec(body) + if (split && computation(split[1]) !== null) { computePart = computation(split[1])!; body = split[2] } + if ((m = /^(\w+) ?= ?DM\((I\d+|M\d+), ?(M\d+|I\d+)\)$/i.exec(body))) return transfer(m[1], m[2], m[3], false, computePart) + if ((m = /^DM\((I\d+|M\d+), ?(M\d+|I\d+)\) ?= ?(.+)$/i.exec(body))) { + if (universalRegister(m[3]) !== null) return transfer(m[3], m[1], m[2], true, computePart) + if (computePart) fail() + const pair = indexPair(m[1], m[2]) + if (!pair.post) fail('DM(Mm, Ii) = immediate is not a type 16a form') + const value = expr(m[3]) + return one(48, labels => (0x9n << 44n) | (BigInt(pair.i) << 41n) | (BigInt(pair.m) << 38n) | u32(value(labels))) + } + if (computePart) fail() + if ((m = /^(\w+) ?= ?DM\((.+)\)$/i.exec(body)) && universalRegister(m[1]) !== null) { + const ureg = universalRegister(m[1])!, at = expr(m[2]) + return one(48, labels => (0x10n << 40n) | (BigInt(ureg) << 32n) | u32(at(labels))) + } + if ((m = /^DM\((.+)\) ?= ?(\w+)$/i.exec(body)) && universalRegister(m[2]) !== null) { + const ureg = universalRegister(m[2])!, at = expr(m[1]) + return one(48, labels => (0x11n << 40n) | (BigInt(ureg) << 32n) | u32(at(labels))) + } + if ((m = /^(\w+) ?= ?(\w+)$/.exec(body)) && universalRegister(m[1]) !== null && universalRegister(m[2]) !== null) return move(m[1], m[2], TRUE) + if ((m = /^(\w+) ?= ?(.+)$/.exec(body)) && universalRegister(m[1]) !== null) { + const ureg = universalRegister(m[1])!, value = m[2].trim() + const literal = /^-?\d+\.\d*(e-?\d+)?$/i.test(value) ? float32Bits(Number(value)) : null + const v = expr(value) + return one(48, labels => (0x0fn << 40n) | (BigInt(ureg) << 32n) | (literal !== null ? BigInt(literal) : u32(v(labels)))) + } + return fail() + + function indexPair(a: string, b: string) { + const A = a.toUpperCase(), B = b.toUpperCase() + const post = A[0] === 'I' && B[0] === 'M', pre = A[0] === 'M' && B[0] === 'I' + if (!post && !pre) fail('a DAG access names one I and one M register') + const i = Number((post ? A : B).slice(1)), mm = Number((post ? B : A).slice(1)) + if (i > 15 || mm > 15 || (i < 8) !== (mm < 8)) fail('I and M registers of one DAG') + return { i: i & 7, m: mm & 7, post, dagOf: i < 8 ? 1 : 2, index: i } + } + function transfer(reg: string, a: string, b: string, write: boolean, computeBits: number): Encoded[] { + const ureg = universalRegister(reg) + if (ureg === null) fail('unknown register ' + reg) + const pair = indexPair(a, b) + if (pair.dagOf === 2) fail('this assembler encodes DAG1 (I0-I7) accesses only') + return one(48, () => type3(pair.post ? 1 : 0, pair.i, pair.m, TRUE, write, ureg!, computeBits), write ? { store: { index: pair.index, ureg: ureg! } } : {}) + } +} + +function type3(u: number, i: number, m: number, cond: number, write: boolean, ureg: number, compute: number): bigint { + return (0b010n << 45n) | (BigInt(u) << 44n) | (BigInt(i) << 41n) | (BigInt(m) << 38n) | (BigInt(cond) << 33n) | + (BigInt(write ? 1 : 0) << 31n) | (BigInt(ureg) << 23n) | BigInt(compute) +} + +function move(dest: string, source: string, condition: number): Encoded[] { + const s = universalRegister(source)!, d = universalRegister(dest)! + const word = 0x7000003f | ((s >> 2) << 22) | (condition << 17) | (((s >> 1) & 1) << 16) | ((s & 1) << 15) | (d << 7) + return [{ width: 32, build: () => BigInt(word >>> 0) }] +} + +function checkRules(code: Extract[], symbols: Map): void { + for (const item of code) { + if (item.store && dag(item.store.ureg) && dag(item.store.ureg) === (item.store.index < 8 ? 1 : 2)) { + throw new SourceError(item.line, 'a DAG register stored through an index register of the same DAG') + } + } + for (const [start, item] of code.entries()) { + if (!item.loopEnd) continue + const endPc = symbols.get(item.loopEnd) + const endIndex = code.findIndex(entry => entry.pc === endPc) + if (endIndex <= start) throw new SourceError(item.line, 'the loop end is not an instruction after DO') + const short = code.slice(start + 1, endIndex + 1).slice(-11).find(entry => entry.width !== 48) + if (short) throw new SourceError(short.line, 'a 16- or 32-bit instruction among the last 11 instructions of a hardware loop') + } +} + +function layout(items: Item[], symbols: Map): SharcBlock[] { + const pieces: { address: number; bytes: Uint8Array }[] = [] + for (const item of items) { + if (item.kind === 'data') { + const value = item.build(symbols) >>> 0 + pieces.push({ address: item.address, bytes: Uint8Array.of(value & 255, (value >>> 8) & 255, (value >>> 16) & 255, value >>> 24) }) + continue + } + const frame = item.build(symbols) + const parcels = Array.from({ length: item.width / 16 }, (_, k) => Number((frame >> BigInt(item.width - 16 - 16 * k)) & 0xffffn)) + const address = L2_START + (item.pc - 0xb80000) * 2 + pieces.push({ address, bytes: Uint8Array.from(parcels.flatMap(p => [p & 255, p >>> 8])) }) + } + pieces.sort((a, b) => a.address - b.address) + const blocks: SharcBlock[] = [] + for (const piece of pieces) { + const last = blocks[blocks.length - 1] + if (last && piece.address < last.address + last.bytes.length) throw new Error(`overlapping code or data at ${piece.address.toString(16)}`) + if (last && piece.address === last.address + last.bytes.length) { + const joined = new Uint8Array(last.bytes.length + piece.bytes.length) + joined.set(last.bytes); joined.set(piece.bytes, last.bytes.length) + last.bytes = joined + } else blocks.push({ address: piece.address, bytes: piece.bytes }) + } + return blocks +} From 6fed69184163430daf28a25c41ec21fc281fe042 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Thu, 19 Nov 2026 10:55:18 +0100 Subject: [PATCH 076/415] Octatrack base 0.7.10: regenerate with the #1736 fix npm run octatrack:base -- --beta --write, then octatrack:module-packages -- --base-only. The fix moves the base's lease entries, so Analog BD's reviewed recipe was recaptured from the stock OS against the new base's symbols (finding 17: only imageSha256 changes), and the base-bound packages (Analog BD 0.1.7, Output Matrix 0.1.1, Sidechain 0.2.2) and trust rows are re-encoded for the new link. Base 0.7.10 is now a5f1dd2d95c126bb. Co-Authored-By: Claude Opus 5.5 --- .../analog-bassdrum/0.1.7-experimental.mwrm | Bin 26172 -> 26172 bytes .../output-matrix/0.1.1-experimental.mwrm | Bin 3740 -> 3740 bytes .../0.2.2-experimental.mwrm | Bin 2636 -> 2636 bytes sdk/machines/octatrack/base-binding.json | 30 +- sdk/machines/octatrack/base-versions.json | 14 +- .../module-adapters/controller-policies.json | 10 +- .../module-adapters/machine-recipes.json | 2 +- src/engine/assets/octatrack-base-sources.json | 8 +- .../assets/octatrack-base-variants.json | 2 +- src/engine/assets/octatrack-base.elemod | 20560 ++++++++-------- .../assets/octatrack-module-packages.json | 16 +- 11 files changed, 10358 insertions(+), 10284 deletions(-) diff --git a/public/octatrack-modules/analog-bassdrum/0.1.7-experimental.mwrm b/public/octatrack-modules/analog-bassdrum/0.1.7-experimental.mwrm index 2ca4957cb5b09c7ace5e851cac60c9c7676e1aa9..df70883ce597c259ea96eee5ee618367b8016035 100644 GIT binary patch delta 23 fcmdmUhH=js#tj^-OxIZ^bFr>we6e{OYg+;UakB|G delta 23 fcmdmUhH=js#tj^-OxONQ=3-sV_+axk*0uxyeHIEP diff --git a/public/octatrack-modules/output-matrix/0.1.1-experimental.mwrm b/public/octatrack-modules/output-matrix/0.1.1-experimental.mwrm index 76154868bbe7831361fc37bb472aff15e7ffa5f7..82f4c98f05730482af4b895cae51c528d30d89ce 100644 GIT binary patch delta 55 zcmbOuJ4bc{Gdtsp$t>&!OxIZ^o3UpDId&W}llQTUfCLISq$a;(_Xi7tRBSHb&|w1r D>7fxz delta 55 zcmbOuJ4bc{Gdtsh$t>&!OxONQHe=5Qa_l%{Chubx0SOdvNKJmn?hh6Osn}e=p~D6M DDNqy` diff --git a/public/octatrack-modules/sidechain-compressor/0.2.2-experimental.mwrm b/public/octatrack-modules/sidechain-compressor/0.2.2-experimental.mwrm index 312e0189b7e34da54307727460b17d4306b2f21e..47ebdc05571187d5150e12fc4e3a57910f4f8d3f 100644 GIT binary patch delta 21 dcmX>jazjaz Date: Thu, 19 Nov 2026 11:00:36 +0100 Subject: [PATCH 077/415] Explain render differences and assert sample-exact output --- changelog/2026-11-19-fx-audit-compare.md | 1 + docs/module-guides/effects.md | 15 +++++ scripts/capture-euclid-filter.py | 77 +++++++++++++++++++++++ scripts/fx-audit-analysis.mjs | 60 +++++++++++++++--- scripts/fx-audit.mjs | 36 ++++++++--- scripts/fx-audit.test.mjs | 79 ++++++++++++++++++++++++ 6 files changed, 253 insertions(+), 15 deletions(-) create mode 100644 changelog/2026-11-19-fx-audit-compare.md create mode 100644 scripts/capture-euclid-filter.py diff --git a/changelog/2026-11-19-fx-audit-compare.md b/changelog/2026-11-19-fx-audit-compare.md new file mode 100644 index 0000000000..962ab5c96a --- /dev/null +++ b/changelog/2026-11-19-fx-audit-compare.md @@ -0,0 +1 @@ +Effect developers can ask the render comparison to locate a mismatch and check two captures for exact agreement. diff --git a/docs/module-guides/effects.md b/docs/module-guides/effects.md index b95fa387b5..fda76e7b49 100644 --- a/docs/module-guides/effects.md +++ b/docs/module-guides/effects.md @@ -92,6 +92,21 @@ npm run fx:audit -- check out/fx out/fx-renders npm run fx:audit -- compare out/fx-noise/*.wav ``` +**Locate a render regression.** Add `--explain` to see the shared frame window and the first differing frame on each channel. Add `--block-frames 16` for a harness that processes 16-frame blocks. Frame and block numbers start at zero in the capture. The shift estimate checks up to 64 frames in either direction for an exact overlap across all channels, retaining at least eight frames and half the capture. A positive shift means the second render is late. Silence or several matching offsets gives an indeterminate result. + +For an automated assertion, capture both histories in the same format and use `--expect-identical`. It includes the explanation and exits 1 if any pair differs in length, channel count or sample value, or falls below the audit's silence floor. The assertion always uses the original samples, including when a shift explains the difference. + +To reproduce Euclid's TYPE-history regression, set `ELEKLOADER_DSP_ASM` to the assembler executable and `ELEKLOADER_DSP56300` to the built interpreter's source tree. Run each revision separately from the repository root. + +```sh +python3 -B scripts/capture-euclid-filter.py 0e168b32c5 # 0.1.4, expected failure +python3 -B scripts/capture-euclid-filter.py 47271cab7 # 0.1.5, expected pass +# Set capture to the temporary directory printed by either run. +npm run fx:audit -- compare "$capture/low-pass.raw" "$capture/via-amp.raw" --block-frames 16 --expect-identical +``` + +The fixture compares low-pass throughout with low-pass after one AMP block. Each directory holds its own two renders and a `capture.json` with the source and runner digests, capture format, frame range, gain words and test outcome. The final four stereo blocks cover frames 3136–3199 of the run. A missing tool produces a visible skip and exit 77. + Render with every knob at its dearest setting and any modulation off, so that sidebands do not read as aliasing; render a modulated read separately with its modulation on and read the *residual* column, which holds sidebands and noise. The signals are mono and the effect sees them on both channels. `dsp_host` reads the `.raw` files with `-in` (mono is copied to both channels) and writes interleaved stereo int32 words with `-out`; `verify_knob_clicks.py`'s `render()` builds that command for a module. `rig_render.py` reads the `.wav` files as stems and writes `T1.wav`; `--mixer off --amp 1.0` makes the level in the table the level the effect sees (with the mixer model on, a 0 dBFS stem enters the effect at 0.254 FS): ```sh diff --git a/scripts/capture-euclid-filter.py b/scripts/capture-euclid-filter.py new file mode 100644 index 0000000000..fd92da47db --- /dev/null +++ b/scripts/capture-euclid-filter.py @@ -0,0 +1,77 @@ +# SPDX-License-Identifier: GPL-3.0-or-later +"""Capture Euclid's existing TYPE-history test at a source revision for fx:audit compare.""" +import argparse +import hashlib +import json +from pathlib import Path +import shutil +import struct +import subprocess +import sys +import tempfile +import unittest + +ROOT = Path(__file__).resolve().parents[1] +MODULE = Path('sdk/octatrack/modules/euclid') +sys.path.insert(0, str(ROOT / MODULE)) +import test_filter_type_history as history + + +def digest(path): + return hashlib.sha256(path.read_bytes()).hexdigest() + + +def main(): + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument('revision', help='Git revision containing the filter.asm to assemble') + args = parser.parse_args() + revision = subprocess.check_output(['git', 'rev-parse', '--verify', '--end-of-options', args.revision + '^{commit}'], + cwd=ROOT, text=True).strip() + source = subprocess.check_output(['git', 'show', revision + ':' + MODULE.as_posix() + '/filter.asm'], cwd=ROOT) + captures = Path(tempfile.mkdtemp(prefix='euclid-filter-')) + # The fixture reads filter.asm from HERE. Its runner and test assertions come from this checkout for both runs. + history.HERE = captures + (captures / 'filter.asm').write_bytes(source) + tools = [ROOT / MODULE / 'test_filter_type_history.py', ROOT / 'sdk/tests/resident_engines_native.cpp', + *history.LIBS, history.VTUNE] + assembler = shutil.which(history.ASM or 'dsp_asm') + if assembler: + tools.append(Path(assembler)) + record = { + 'revision': revision, 'filterSha256': hashlib.sha256(source).hexdigest(), + 'runnerSha256': {tool.name: digest(tool) for tool in tools if tool.is_file()}, + 'target': 'DSP56300 interpreter', 'format': 'signed 24-bit words in little-endian int32, interleaved L R', + 'sampleRate': 44100, 'blockFrames': history.FRAMES, 'renders': {}, + } + + @unittest.skipUnless(assembler, 'dsp_asm unavailable') + class Capture(history.FilterTypeHistory): + def run_types(self, types): + audio, gain = super().run_types(types) + if not record['renders']: + record['runnerSha256']['native'] = digest(self.harness) + name = 'via-amp' if history.AMP in types else 'low-pass' + (captures / (name + '.raw')).write_bytes(struct.pack('<' + 'i' * len(audio), *audio)) + frames = len(audio) // 2 + record['renders'][name] = {'startFrame': len(types) * history.FRAMES - frames, + 'frames': frames, 'dryGainWord': gain, 'peakWord': max(map(abs, audio), default=0)} + return audio, gain + + result = unittest.TextTestRunner(verbosity=2).run(unittest.defaultTestLoader.loadTestsFromTestCase(Capture)) + if result.skipped: + status, code = 'skipped', 77 + record['reason'] = result.skipped[0][1] + elif result.errors: + status, code = 'error', 1 + elif result.failures: + status, code = 'failed', 1 + else: + status, code = 'passed', 0 + record['result'] = status + (captures / 'capture.json').write_text(json.dumps(record, indent=2) + '\n', encoding='utf-8') + print(f'{status}: {captures}') + return code + + +if __name__ == '__main__': + sys.exit(main()) diff --git a/scripts/fx-audit-analysis.mjs b/scripts/fx-audit-analysis.mjs index 7e6b29e875..704d76a7c5 100644 --- a/scripts/fx-audit-analysis.mjs +++ b/scripts/fx-audit-analysis.mjs @@ -203,19 +203,50 @@ export function judgeIdle(result, limits = LIMITS) { export const SAME_LIMIT = -60 // dB of the difference to the louder render; at or below it two renders count as the same (audit default) const SILENT_DBFS = -100 +const MAX_SHIFT = 64 + +// A positive shift means b is late. Require at least half the window (and eight frames), +// exact agreement across every channel, and signal in the overlap. Silence and repeating +// patterns can match at many lags. Never use an aligned overlap for the verdict. +function explainShift(a, b, frames, verdict) { + if (a.length !== b.length || a[0].length !== b[0].length) return 'indeterminate (different render shapes)' + if (verdict === 'silent') return 'indeterminate (silent window)' + if (frames < 8) return 'indeterminate (fewer than 8 frames)' + const bound = Math.min(MAX_SHIFT, Math.floor(frames / 2), frames - 8) + let match = null + for (let shift = -bound; shift <= bound; shift++) { + const startA = Math.max(0, -shift), startB = Math.max(0, shift), overlap = frames - Math.abs(shift) + let equal = true, signal = false + for (let c = 0; equal && c < a.length; c++) { + for (let i = 0; i < overlap; i++) { + const value = a[c][startA + i] + if (value !== b[c][startB + i]) { equal = false; break } + if (value !== 0) signal = true + } + } + if (!equal || !signal) continue + if (match !== null) return 'indeterminate (multiple matching shifts)' + match = shift + } + if (match === null) return 'no exact shift within ±' + bound + ' frames' + return (match > 0 ? '+' : '') + match + ' frames (second render relative to first)' +} /** Two renders (channel arrays) sample for sample over their common length, worst channel, and b's level against a's over all channels. `same` for two settings of one knob means the * knob does nothing to this signal; for two presets, that they are one sound. Two silent renders prove nothing, so they are `silent`. */ -export function compareRenders(a, b, sameLimit = SAME_LIMIT) { +export function compareRenders(a, b, sameLimit = SAME_LIMIT, { explain = false } = {}) { const frames = Math.min(...a.map(c => c.length), ...b.map(c => c.length)) + const firstByChannel = [] let ratio = 0, loudest = 0, peak = 0, first = -1, energyA = 0, energyB = 0 for (let c = 0; c < Math.min(a.length, b.length); c++) { - let sa = 0, sb = 0, sd = 0 + let sa = 0, sb = 0, sd = 0, channelFirst = null for (let n = 0; n < frames; n++) { const x = a[c][n], y = b[c][n], d = x - y sa += x * x; sb += y * y; sd += d * d - if (d) { peak = Math.max(peak, Math.abs(d)); if (first < 0 || n < first) first = n } + if (d) { peak = Math.max(peak, Math.abs(d)); if (channelFirst === null) channelFirst = n } } + if (channelFirst !== null && (first < 0 || channelFirst < first)) first = channelFirst + if (explain) firstByChannel.push(channelFirst) energyA += sa; energyB += sb const louder = Math.max(sa, sb) loudest = Math.max(loudest, louder) @@ -225,7 +256,9 @@ export function compareRenders(a, b, sameLimit = SAME_LIMIT) { const differenceDb = first < 0 ? -Infinity : db(ratio) const verdict = dbfs(Math.sqrt(loudest / Math.max(frames, 1))) < SILENT_DBFS ? 'silent' : identical ? 'identical' : differenceDb <= sameLimit ? 'same' : 'differs' const levelDb = energyA && energyB ? db(energyB / energyA) : null // b's level against a's; null when either is silent - return { verdict, differenceDb, levelDb, peakDbfs: peak ? dbfs(peak) : -Infinity, firstSeconds: first < 0 ? null : first / SAMPLE_RATE, frames: [a[0].length, b[0].length] } + const result = { verdict, differenceDb, levelDb, peakDbfs: peak ? dbfs(peak) : -Infinity, firstSeconds: first < 0 ? null : first / SAMPLE_RATE, frames: [a[0].length, b[0].length] } + if (explain) result.details = { frames, channels: [a.length, b.length], firstByChannel, shift: explainShift(a, b, frames, verdict) } + return result } // ---- writing and reading files ------------------------------------------------- @@ -244,9 +277,10 @@ export function wavFile(samples) { /** A render as one Float64Array of +-1 per channel. Raw is what dsp_host writes: little-endian int32 words holding 24-bit values, * interleaved L R (`channels: 1` for a mono file). WAV: 16/24/32-bit PCM or 32-bit float at 44.1 kHz. */ -export function readAudio(path, { channels = 2 } = {}) { +export function readAudio(path, { channels = 2, strict = false } = {}) { const bytes = readFileSync(path), view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength) if (!/\.wav$/i.test(path)) { + if (strict && bytes.byteLength % (4 * channels)) throw new Error(path + ' ends in a partial raw frame') const words = bytes.byteLength >> 2, frames = Math.floor(words / channels) return Array.from({ length: channels }, (_, c) => Float64Array.from({ length: frames }, (_, n) => ((view.getInt32(4 * (n * channels + c), true) << 8) >> 8) / FULL_SCALE)) } @@ -254,20 +288,30 @@ export function readAudio(path, { channels = 2 } = {}) { let format = null, data = null for (let at = 12; at + 8 <= bytes.byteLength;) { const id = bytes.toString('ascii', at, at + 4), size = view.getUint32(at + 4, true) - if (id === 'fmt ') format = { tag: view.getUint16(at + 8, true), channels: view.getUint16(at + 10, true), rate: view.getUint32(at + 12, true), bits: view.getUint16(at + 22, true), extensible: view.getUint16(at + 8 + 24, true) } - if (id === 'data') data = { start: at + 8, size: Math.min(size, bytes.byteLength - at - 8) } + if (id === 'fmt ') { + const tag = view.getUint16(at + 8, true) + format = { tag, channels: view.getUint16(at + 10, true), rate: view.getUint32(at + 12, true), bits: view.getUint16(at + 22, true), + extensible: tag === 0xfffe ? view.getUint16(at + 8 + 24, true) : null } + } + if (id === 'data') { + if (strict && size > bytes.byteLength - at - 8) throw new Error(path + ' has a truncated WAV data chunk') + data = { start: at + 8, size: Math.min(size, bytes.byteLength - at - 8) } + } at += 8 + size + (size & 1) } if (!format || !data) throw new Error(path + ' has no fmt or data chunk') const tag = format.tag === 0xfffe ? format.extensible : format.tag, bytesPer = format.bits >> 3 if (format.rate !== SAMPLE_RATE) throw new Error(path + ' is ' + format.rate + ' Hz; the plan is for ' + SAMPLE_RATE + ' Hz') if (!(tag === 1 && [2, 3, 4].includes(bytesPer)) && !(tag === 3 && bytesPer === 4)) throw new Error(path + ': only 16/24/32-bit PCM and 32-bit float WAV are read') + if (strict && (!format.channels || data.size % (bytesPer * format.channels))) throw new Error(path + ' has an invalid WAV frame size or a partial frame') const frames = Math.floor(data.size / (bytesPer * format.channels)) const sample = at => tag === 3 ? view.getFloat32(at, true) : bytesPer === 2 ? view.getInt16(at, true) / 32768 : bytesPer === 3 ? (((view.getUint8(at) | view.getUint8(at + 1) << 8 | view.getUint8(at + 2) << 16) << 8) >> 8) / 8388608 : view.getInt32(at, true) / 2147483648 - return Array.from({ length: format.channels }, (_, c) => Float64Array.from({ length: frames }, (_, n) => sample(data.start + (n * format.channels + c) * bytesPer))) + const audio = Array.from({ length: format.channels }, (_, c) => Float64Array.from({ length: frames }, (_, n) => sample(data.start + (n * format.channels + c) * bytesPer))) + if (strict && tag === 3 && audio.some(channel => !channel.every(Number.isFinite))) throw new Error(path + ' contains a non-finite WAV sample') + return audio } // ---- proving the instrument ------------------------------------------------------ diff --git a/scripts/fx-audit.mjs b/scripts/fx-audit.mjs index 85353119da..1db476f7f5 100644 --- a/scripts/fx-audit.mjs +++ b/scripts/fx-audit.mjs @@ -25,14 +25,18 @@ const args = process.argv.slice(2), positional = [] const options = {} for (let i = 0; i < args.length; i++) { if (!args[i].startsWith('--')) positional.push(args[i]) - else if (['--mono'].includes(args[i])) options[args[i].slice(2)] = true - else if (['--tail', '--alias-limit', '--dc-limit', '--idle-limit', '--mono-limit', '--same-limit'].includes(args[i]) && args[i + 1] !== undefined && Number.isFinite(Number(args[i + 1]))) options[args[i].slice(2)] = Number(args[++i]) + else if (['--mono', '--explain', '--expect-identical'].includes(args[i])) options[args[i].slice(2)] = true + else if (['--tail', '--alias-limit', '--dc-limit', '--idle-limit', '--mono-limit', '--same-limit', '--block-frames'].includes(args[i]) && args[i + 1] !== undefined && Number.isFinite(Number(args[i + 1]))) options[args[i].slice(2)] = Number(args[++i]) else usage(args[i] + ' is not an option, or lacks its number') } const [command, ...paths] = positional +const blockFrames = options['block-frames'] +const explain = options.explain || options['expect-identical'] || blockFrames !== undefined +if (explain && command !== 'compare') usage('Render comparison options require compare') +if (blockFrames !== undefined && !(Number.isSafeInteger(blockFrames) && blockFrames > 0)) usage('--block-frames needs a positive integer') function usage(problem) { - console.error((problem ? problem + '\n' : '') + 'Usage: npm run fx:audit -- plan [--tail ]\n npm run fx:audit -- check [--mono] [--alias-limit ] [--dc-limit ] [--idle-limit ] [--mono-limit ]\n npm run fx:audit -- compare ... [--mono] [--same-limit ]\n npm run fx:audit -- selftest') + console.error((problem ? problem + '\n' : '') + 'Usage: npm run fx:audit -- plan [--tail ]\n npm run fx:audit -- check [--mono] [--alias-limit ] [--dc-limit ] [--idle-limit ] [--mono-limit ]\n npm run fx:audit -- compare ... [--mono] [--same-limit ] [--explain] [--block-frames N] [--expect-identical]\n npm run fx:audit -- selftest') process.exit(2) } @@ -84,16 +88,34 @@ if (command === 'plan' && paths.length === 1) { } else if (command === 'compare' && paths.length >= 2) { const limit = options['same-limit'] ?? SAME_LIMIT, missing = paths.filter(path => !existsSync(resolve(path))) if (missing.length) usage('No render at: ' + missing.join(', ')) - const renders = paths.map(path => ({ name: basename(path), audio: readAudio(resolve(path), { channels: options.mono ? 1 : 2 }) })) + let renders + try { + renders = paths.map(path => ({ name: basename(path), audio: readAudio(resolve(path), { channels: options.mono ? 1 : 2, strict: explain }) })) + } catch (error) { + if (explain) usage(error.message) + throw error + } const width = Math.max(...renders.map(render => render.name.length)) + 2 console.log('render'.padEnd(width) + 'against'.padEnd(width) + 'difference'.padStart(11) + 'level'.padStart(10) + 'peak diff'.padStart(11) + 'first diff'.padStart(12) + ' verdict') const counts = {} for (let i = 0; i < renders.length; i++) for (let j = i + 1; j < renders.length; j++) { - const result = compareRenders(renders[i].audio, renders[j].audio, limit) - counts[result.verdict] = (counts[result.verdict] ?? 0) + 1 + const result = compareRenders(renders[i].audio, renders[j].audio, limit, { explain }) const lengths = result.frames[0] === result.frames[1] ? '' : ' (lengths ' + result.frames.join(' and ') + ': compared over the shorter)' + const shapeMismatch = explain && (result.details.channels[0] !== result.details.channels[1] || result.frames[0] !== result.frames[1]) + const verdict = shapeMismatch ? 'shape mismatch' : result.verdict + counts[verdict] = (counts[verdict] ?? 0) + 1 console.log(renders[i].name.padEnd(width) + renders[j].name.padEnd(width) + (fixed(result.differenceDb, 8) + ' dB').padStart(11) + (result.levelDb === null ? '-' : (result.levelDb >= 0 ? '+' : '') + result.levelDb.toFixed(2) + ' dB').padStart(10) - + (fixed(result.peakDbfs, 6) + ' dBFS').padStart(11) + (result.firstSeconds === null ? '-' : result.firstSeconds.toFixed(4) + ' s').padStart(12) + ' ' + result.verdict + lengths) + + (fixed(result.peakDbfs, 6) + ' dBFS').padStart(11) + (result.firstSeconds === null ? '-' : result.firstSeconds.toFixed(4) + ' s').padStart(12) + ' ' + verdict + lengths) + if (explain) { + const { frames, channels, firstByChannel, shift } = result.details + console.log(' Compared frames [0, ' + frames + ') at ' + SAMPLE_RATE + ' Hz, channel counts ' + channels.join(' and ')) + for (const [channel, first] of firstByChannel.entries()) { + const block = first !== null && blockFrames ? ' (block ' + Math.floor(first / blockFrames) + ', frame ' + first % blockFrames + ')' : '' + console.log(' Channel ' + (channel + 1) + (first === null ? ' matches in the window' : ' first differs at frame ' + first + block)) + } + console.log(' Shift: ' + shift) + } + if (options['expect-identical'] && result.verdict !== 'identical') process.exitCode = 1 } console.log('\ndifference: the two renders\' difference in dB to the louder one, worst channel. level: the second render\'s level against the first\'s.' + '\nidentical: every sample equal. same: at or below ' + limit + ' dB' diff --git a/scripts/fx-audit.test.mjs b/scripts/fx-audit.test.mjs index 5600ef2088..9220c47b18 100644 --- a/scripts/fx-audit.test.mjs +++ b/scripts/fx-audit.test.mjs @@ -11,6 +11,14 @@ const audit = (...args) => spawnSync(process.execPath, ['scripts/fx-audit.mjs', const scratch = mkdtempSync(join(tmpdir(), 'fx-audit-')) afterAll(() => rmSync(scratch, { recursive: true, force: true })) +function rawCapture(name, samples) { + const path = join(scratch, name + '.raw') + const bytes = Buffer.alloc(samples.length * 4) + samples.forEach((word, i) => bytes.writeInt32LE(word, i * 4)) + writeFileSync(path, bytes) + return path +} + // What dsp_host does: mono raw in, the effect applied to each sample, interleaved L R int32 words out. `right` is the R side's effect. function render(planDir, outDir, effect, right = effect) { for (const name of readdirSync(planDir).filter(file => file.endsWith('.raw'))) { @@ -111,6 +119,70 @@ describe('fx audit', () => { expect(audit('compare', low, join(scratch, 'none.raw')).status).toBe(2) }) + it('explains a 32-frame shift in either direction and judges the original samples', () => { + const burst = Array(160).fill(0) + burst.splice(40, 3, 100000, -80000, 30000) + const early = rawCapture('early', burst) + const late = rawCapture('late', [...Array(32).fill(0), ...burst.slice(0, -32)]) + const compare = (...args) => audit('compare', early, late, '--mono', ...args) + expect(compare().stdout).not.toContain('Shift:') + const info = compare('--explain', '--block-frames', '16') + expect(info.status).toBe(0) + expect(info.stdout).toContain('Compared frames [0, 160) at 44100 Hz') + expect(info.stdout).toContain('first differs at frame 40 (block 2, frame 8)') + expect(info.stdout).toContain('Shift: +32 frames') + expect(compare('--expect-identical').status).toBe(1) + expect(audit('compare', late, early, '--mono', '--explain').stdout).toContain('Shift: -32 frames') + expect(audit('compare', early, early, '--mono', '--expect-identical').status).toBe(0) + }) + + it('distinguishes a level change and a one-word stereo mismatch from an exact match', () => { + const a = Array(128).fill(100000), b = a.slice() + b[2 * 23 + 1]++ + const reference = rawCapture('reference', a), changed = rawCapture('changed', b) + const result = audit('compare', reference, changed, changed, '--expect-identical', '--block-frames', '16') + expect(result.status).toBe(1) + expect(result.stdout).toMatch(/reference\.raw +changed\.raw .* same/) + expect(result.stdout).toContain('Channel 1 matches in the window') + expect(result.stdout).toContain('Channel 2 first differs at frame 23 (block 1, frame 7)') + const half = rawCapture('half', a.map(word => word / 2)) + const gain = audit('compare', reference, half, '--explain') + expect(gain.stdout).toMatch(/-6\.02 dB .* differs/) + expect(gain.stdout).toContain('no exact shift') + expect(audit('compare', reference, half, '--expect-identical', '--same-limit', '0').status).toBe(1) + }) + + it('reports indeterminate offsets for silence and repeating signals', () => { + const silence = rawCapture('zero', Array(160).fill(0)) + const unproven = audit('compare', silence, silence, '--expect-identical') + expect(unproven.status).toBe(1) + expect(unproven.stdout).toContain('indeterminate (silent window)') + const wave = Array.from({ length: 160 }, (_, i) => [200000, 0, -200000, 0][i % 4]) + const tone = rawCapture('wave', wave), rotated = rawCapture('rotated', [...wave.slice(1), wave[0]]) + const periodic = audit('compare', tone, rotated, '--mono', '--expect-identical') + expect(periodic.status).toBe(1) + expect(periodic.stdout).toContain('indeterminate (multiple matching shifts)') + }) + + it('rejects missing frames and channels even when the common samples match', () => { + const full = rawCapture('full', Array(128).fill(-FULL_SCALE)), short = rawCapture('short', Array(126).fill(-FULL_SCALE)) + const tail = audit('compare', full, short, '--expect-identical') + expect(tail.status).toBe(1) + expect(tail.stdout).toContain('shape mismatch (lengths 64 and 63') + expect(tail.stdout).toContain('Compared frames [0, 63)') + expect(tail.stdout).toContain('Channel 2 matches in the window') + const mono = join(scratch, 'mono.wav') + writeFileSync(mono, wavFile(Int32Array.from({ length: 64 }, () => -8388608))) + const channels = audit('compare', mono, full, '--expect-identical') + expect(channels.status).toBe(1) + expect(channels.stdout).toContain('shape mismatch') + expect(channels.stdout).toContain('channel counts 1 and 2') + expect(channels.stdout).toContain('Channel 1 matches in the window') + const partial = rawCapture('incomplete-stereo', Array(127).fill(200000)) + expect(audit('compare', full, partial, '--expect-identical').status).toBe(2) + expect(audit('compare', full, short, '--block-frames', '0').status).toBe(2) + }) + it('reads 16, 24 and 32-bit PCM and float WAV renders and rejects another sample rate', () => { const wav = (name, { tag, bits, rate = SAMPLE_RATE, samples }) => { const bytesPer = bits / 8, data = Buffer.alloc(samples.length * bytesPer), header = Buffer.alloc(44) @@ -134,5 +206,12 @@ describe('fx audit', () => { samples.forEach((x, n) => expect(channel[n]).toBeCloseTo(x, 3)) } expect(() => readAudio(wav('rate', { tag: 1, bits: 16, rate: 48000, samples }))).toThrow('48000 Hz') + const invalid = wav('nan', { tag: 3, bits: 32, samples: [0.5, NaN] }) + expect(audit('compare', invalid, invalid, '--expect-identical').status).toBe(2) + const empty = wav('empty', { tag: 1, bits: 24, samples: [] }) + expect(audit('compare', empty, empty, '--expect-identical').stdout).toContain('indeterminate (silent window)') + const truncated = wav('truncated', { tag: 1, bits: 24, samples }) + writeFileSync(truncated, readFileSync(truncated).subarray(0, -3)) + expect(audit('compare', truncated, truncated, '--expect-identical').stderr).toContain('truncated WAV data') }) }) From f8fa0a739b4498cbeeb3caf0519a5f45cd51c71a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Thu, 19 Nov 2026 11:26:03 +0100 Subject: [PATCH 078/415] Changelog: Analog BD plays again after a rolled-back trial that took it out (#1736) Co-Authored-By: Claude Opus 5.5 --- changelog/2026-11-19-octatrack-analog-bd-after-rollback.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog/2026-11-19-octatrack-analog-bd-after-rollback.md diff --git a/changelog/2026-11-19-octatrack-analog-bd-after-rollback.md b/changelog/2026-11-19-octatrack-analog-bd-after-rollback.md new file mode 100644 index 0000000000..c52a643f11 --- /dev/null +++ b/changelog/2026-11-19-octatrack-analog-bd-after-rollback.md @@ -0,0 +1 @@ +Fix: Octatrack base 0.7.10 plays Analog BD again after a trial that took it out and was rolled back. A trial that removed Analog BD, Sidechain or Output Matrix (to make room for another module, say) let the base let go of the module's engine for good while the trial was still running, so after the rollback the module was listed and could be picked but made no sound until a power cycle. The base now keeps the module ready to come back until the trial is kept or rolled back, while still giving its DSP room to the trial. Reproduced and fixed on an MKII running a development copy of the beta base, with the same `set` trial the report used, and in host tests for both the single-module and the whole-set trial. From afbb24f6e92f79989b04b4ebd3fcbd1d3833bd66 Mon Sep 17 00:00:00 2001 From: claptom-music <350865352+Claptom-music@users.noreply.github.com> Date: Thu, 19 Nov 2026 11:28:39 +0100 Subject: [PATCH 079/415] Mikrotakt: the grain player, through the stock sample player Each voice keeps a play head (its own record) and up to six grains, each a copy of the record at the play head plus an offset and a random spread, windowed and added into the voice's slot. Settings per track with defaults until the knobs reach the sound chip. The assembler pads blocks to whole words and gains RECIPS/RSQRTS. Co-Authored-By: Claude Opus 5.5 --- sdk/digitakt-ii/modules/mikrotakt/README.md | 9 + .../modules/mikrotakt/src/player.sharc | 604 ++++++++++++++++++ src/engine/elektron/sharc-asm.test.ts | 2 + src/engine/elektron/sharc-asm.ts | 23 +- 4 files changed, 635 insertions(+), 3 deletions(-) create mode 100644 sdk/digitakt-ii/modules/mikrotakt/src/player.sharc diff --git a/sdk/digitakt-ii/modules/mikrotakt/README.md b/sdk/digitakt-ii/modules/mikrotakt/README.md index d88ef93b1a..9ee60c0f5d 100644 --- a/sdk/digitakt-ii/modules/mikrotakt/README.md +++ b/sdk/digitakt-ii/modules/mikrotakt/README.md @@ -6,6 +6,15 @@ Describe what it does, every control, how to reach it on the unit, and a short t ## Design notes (work in progress) +The player is `src/player.sharc`, assembled by Modwerk's sound-chip assembler (`src/engine/elektron/sharc-asm.ts`). Each voice has a play head and up to six grains: + +- **Play head.** The voice's own record, played by the stock sample player into a buffer nobody hears. It follows the sample's start, length, loop, play mode and pitch, so a note lasts as a SAMPLE note would. +- **Grains.** A grain is a copy of the voice's record taken at the play head, moved by the position offset and a random spread, played by the stock player and shaped by a window (`4x(1 - x)`, linear across each 32-sample block). Grains start every interval, a fraction of a sequencer step set by the density. Their gain follows the square root of the overlap, since grains add out of phase. +- **Modes.** DRIFT: grains around the moving play head. STUTTER: four grains from the same spot, then the spot moves to the play head, with a sixteenth of the spread. HAZE: the widest spread. REVERSE plays as DRIFT until reversed playback through the stock player is traced. +- **Settings.** Per track, in the player's own memory: mode, position, size, density, spread and samples per step. They have defaults (DRIFT, at the play head, 140 ms grains, four grain starts per step at 120 BPM, a quarter spread) until the base passes the knob values and the tempo to the sound chip. + +Emulator check (19 November 2026, OS 1.17, development base `37b4db44` with the test machine as type 7, the player composed by `composeDt2MachineBuild`, scripted coupled run, two notes of a 220 Hz test sample): the build passes the preflight; the notes play as clouds of grains at 220 Hz, peak 0.03-0.06 against 0.063 for SAMPLE, no halt, no missing blocks. The largest sample-to-sample step is 2.9% of the peak, what a clean 220 Hz sine gives (no clicks at grain edges). A pass-through player (the stock player only) in the same build plays as SAMPLE. + The grain player runs on the sound chip in place of the stock sample player for Mikrotakt's voices (the base's machine player dispatcher). Plan: each block, for each active grain, call the stock sample player with the voice's play position set to the grain's position and its output pointed at a scratch buffer, then add the grain through a window into the voice's slot. The stock player keeps doing the sample reading, interpolation and pitch, so grains sound like the Digitakt's own sample playback. Each grain is a record of its own: a copy of the voice's stock record with its own play position (word `0x6d`, in pairs of samples, and its fraction `0x6c`), kept in Mikrotakt's L2 range and rendered by calling the stock player with `R4` pointing at it. The voice's settings (sample, pitch, length) are copied into every grain record each block; the grain's play state is its own. The base's notes on the record and the emulator tests are in `sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md` ("Grains through the stock player"). diff --git a/sdk/digitakt-ii/modules/mikrotakt/src/player.sharc b/sdk/digitakt-ii/modules/mikrotakt/src/player.sharc new file mode 100644 index 0000000000..efd37ce53a --- /dev/null +++ b/sdk/digitakt-ii/modules/mikrotakt/src/player.sharc @@ -0,0 +1,604 @@ +; SPDX-License-Identifier: GPL-3.0-or-later +; Mikrotakt's grain player for the Digitakt II sound chip (OS 1.17), assembled by src/engine/elektron/sharc-asm.ts. +; +; The base's machine dispatcher jumps here for every voice of a Mikrotakt track, once per 32-sample block, with the +; registers of the stock player's call: R4 = the voice's record, R8 = its output slot, R12 = 32, R14 = 32 - voice, +; and the caller's frame. The player writes the voice's 32 samples into the slot and returns as the stock player does. +; +; Each voice has a play head and up to six grains. The play head is the voice's own record, played by the stock +; sample player into a buffer nobody hears: it follows the sample's start, length, loop and pitch, and it ends the +; note as a stock sample would. A grain is a copy of the record taken at the play head (plus the position offset and a +; random spread), played by the stock player too, shaped by a window and added into the slot. Grains start every +; INTERVAL samples, a fraction of a sequencer step. +; +; Memory (Mikrotakt's L2 range 0x200d0000-0x200f8000, loader byte addresses): +; code 0x200d0000, variables 0x200d4400, scratch 0x200d4800, tables 0x200d4900, track settings 0x200d4a00, +; voice state 0x200d5000 (32 x 16 words), grain state 0x200d6000 (192 x 8 words), +; grain records 0x200e0000 (192 x 0x1d8 bytes, to 0x200f6200). +; The stock player keeps R3, R5-R7, R9-R11, R13-R15, I0-I3, I5, M1-M3; it changes R0-R2, R4, R8, R12, I4, I12, I13, +; M4, B4, L3, L4. This player keeps everything the stock player keeps. + +.equ STOCK_PLAYER, 0x1c4ecf +.equ RECB, 0x1d8 ; bytes per voice record +.equ RECW, 118 ; words per voice record +.equ POS, 0x6d ; record word: play position, in words of two 16-bit samples +.equ FRAC, 0x6c ; record word: its fraction +.equ ENDW, 0x69 ; record word: the sample's length in words +.equ PLAYING, 0x6e ; record word: nonzero while the stock player renders it + +.equ VARS, 0x200d4400 +.equ V, VARS / 4 ; variables as normal words +.equ V_REC, V + 0 +.equ V_SLOT, V + 1 +.equ V_VOICE, V + 2 +.equ V_VSTATE, V + 3 ; this voice's state (byte address) +.equ V_TRACK, V + 4 ; this voice's track settings (byte address) +.equ V_GSTATE, V + 5 ; this voice's first grain state (byte address) +.equ V_GREC, V + 6 ; this voice's first grain record (byte address) +.equ V_INTERVAL, V + 7 ; samples between grain starts +.equ V_SAVE, V + 16 ; 24 saved registers + +.equ SCRATCH, 0x200d4800 ; 32 floats: one grain's block +.equ SPINE, 0x200d4880 ; 32 floats: the play head's block (not heard) +.equ PARAMS, 0x200d4a00 ; per track 8 words: mode, position, size, density, spread, samples per step +.equ VSTATE, 0x200d5000 ; per voice 16 words: countdown, random, last position, last fraction, cell, cell count +.equ GSTATE, 0x200d6000 ; per grain 8 words: active, phase, length, 1/length, gain +.equ GRECS, 0x200e0000 +.equ GRAINS, 6 + +.equ MODE_DRIFT, 0 +.equ MODE_STUTTER, 1 +.equ MODE_REVERSE, 2 ; plays as DRIFT until reversed grains are traced +.equ MODE_HAZE, 3 + +.code 0x200d0000 +mikrotakt_player: + DM(V_SAVE + 0) = R3 + DM(V_SAVE + 1) = R5 + DM(V_SAVE + 2) = R6 + DM(V_SAVE + 3) = R7 + DM(V_SAVE + 4) = R9 + DM(V_SAVE + 5) = R10 + DM(V_SAVE + 6) = R11 + DM(V_SAVE + 7) = R15 + DM(V_SAVE + 8) = I0 + DM(V_SAVE + 9) = I1 + DM(V_SAVE + 10) = I2 + DM(V_SAVE + 11) = I3 + DM(V_SAVE + 12) = M0 + DM(V_SAVE + 13) = M1 + DM(V_SAVE + 14) = M2 + DM(V_SAVE + 15) = M3 + DM(V_SAVE + 16) = L0 + DM(V_SAVE + 17) = L1 + DM(V_SAVE + 18) = L2 + DM(V_SAVE + 19) = ASTATX + DM(V_SAVE + 20) = STKYX + L0 = 0 + L1 = 0 + L2 = 0 + DM(V_REC) = R4 + DM(V_SLOT) = R8 + R0 = 32 + R1 = R0 - R14 ; the voice + DM(V_VOICE) = R1 + R2 = 6 + R0 = LSHIFT R1 BY R2 + R2 = VSTATE + R0 = R0 + R2 + DM(V_VSTATE) = R0 + R2 = -1 + R0 = LSHIFT R1 BY R2 ; the track + R2 = 5 + R0 = LSHIFT R0 BY R2 + R2 = PARAMS + R0 = R0 + R2 + DM(V_TRACK) = R0 + R2 = GRAINS * 32 ; bytes of grain state per voice + R0 = R1 * R2 (SSI) + R2 = GSTATE + R0 = R0 + R2 + DM(V_GSTATE) = R0 + R2 = GRAINS * RECB + R0 = R1 * R2 (SSI) + R2 = GRECS + R0 = R0 + R2 + DM(V_GREC) = R0 + +; No sample on this voice: let the stock player write its silence. + I0 = R4 + M3 = 0 + R0 = DM(M3, I0) + R0 = PASS R0 + IF EQ JUMP stock_silence + +; A new note? The setup rewrote the sample or the play position since the last block. (On a note's first block the +; record can still hold the previous setup's values; the next block, with the real ones, counts as new again.) + R0 = DM(V_VSTATE) + I1 = R0 + M3 = 0 + R2 = DM(M3, I0) + M2 = 6 + R0 = DM(M2, I1) + DM(M2, I1) = R2 ; the sample, for the next block + COMP(R0, R2) + IF NE JUMP new_note + M1 = POS + R2 = DM(M1, I0) + M2 = 2 + R0 = DM(M2, I1) + COMP(R0, R2) + IF NE JUMP new_note + M1 = FRAC + R2 = DM(M1, I0) + M2 = 3 + R0 = DM(M2, I1) + COMP(R0, R2) + IF EQ JUMP same_note +new_note: + R0 = 33 + M2 = 0 + DM(M2, I1) = R0 ; the first grain starts next block, once the setup is complete + R0 = 0 + M2 = 5 + DM(M2, I1) = R0 ; cell count + M1 = POS + R2 = DM(M1, I0) + M2 = 4 + DM(M2, I1) = R2 ; the cell starts at the note's position + M2 = 1 + R0 = DM(M2, I1) + R0 = PASS R0 + IF NE JUMP seeded + R0 = DM(V_VOICE) + R2 = 0x9e3779b9 + R0 = R0 * R2 (SSI) + R0 = R0 + 1 + DM(M2, I1) = R0 ; the random state +seeded: + R0 = DM(V_GSTATE) + I2 = R0 + M0 = 1 + R0 = 0 + LCNTR = GRAINS * 8, DO clear_grains UNTIL LCE + NOP + NOP +clear_grains: DM(I2, M0) = R0 +same_note: + +; The play head: the voice's record through the stock player, into a buffer nobody hears. + R4 = DM(V_REC) + R8 = SPINE + R12 = 32 + CCALL STOCK_PLAYER + R0 = DM(V_REC) + I0 = R0 + R0 = DM(V_VSTATE) + I1 = R0 + M1 = POS + R2 = DM(M1, I0) + M2 = 2 + DM(M2, I1) = R2 + M1 = FRAC + R2 = DM(M1, I0) + M2 = 3 + DM(M2, I1) = R2 + +; The interval between grains: the track's samples per step times its density's fraction of a step. + R0 = DM(V_TRACK) + I2 = R0 + M2 = 3 + R0 = DM(M2, I2) ; density 0-127 + R2 = -3 + R0 = LSHIFT R0 BY R2 + I3 = density_steps + M3 = R0 + R1 = DM(M3, I3) + M2 = 5 + R0 = DM(M2, I2) ; samples per step + F0 = FLOAT R0 + F0 = F0 * F1 + R0 = FIX F0 + R2 = 64 + R0 = MAX(R0, R2) + DM(V_INTERVAL) = R0 + +; Zero the slot; the grains add into it. + R0 = DM(V_SLOT) + I2 = R0 + M0 = 1 + R0 = 0 + LCNTR = 32, DO zero_slot UNTIL LCE + NOP + NOP +zero_slot: DM(I2, M0) = R0 + +; Start a grain when the countdown runs out, while the play head still plays. + R0 = DM(V_REC) + I0 = R0 + M1 = PLAYING + R0 = DM(M1, I0) + R0 = PASS R0 + IF EQ JUMP render + R0 = DM(V_VSTATE) + I1 = R0 + M2 = 0 + R0 = DM(M2, I1) + R2 = 32 + R0 = R0 - R2 + DM(M2, I1) = R0 + R2 = 0 + COMP(R0, R2) + IF GT JUMP render + R2 = DM(V_INTERVAL) + R0 = R0 + R2 + DM(M2, I1) = R0 + ; a free grain + R15 = 0 +find_free: + R0 = DM(V_GSTATE) + R2 = 5 + R1 = LSHIFT R15 BY R2 + R0 = R0 + R1 + I2 = R0 + M3 = 0 + R0 = DM(M3, I2) + R0 = PASS R0 + IF EQ JUMP spawn + R15 = R15 + 1 + R2 = GRAINS + COMP(R15, R2) + IF LT JUMP find_free + JUMP render ; all grains busy: skip this start + +spawn: + ; copy the voice's record to the grain's record + R0 = DM(V_GREC) + R2 = RECB + R1 = R15 * R2 (SSI) + R0 = R0 + R1 + I1 = R0 + R0 = DM(V_REC) + I0 = R0 + M0 = 1 + LCNTR = RECW, DO copy_record UNTIL LCE + R0 = DM(I0, M0) + NOP +copy_record: DM(I1, M0) = R0 + ; the next random number, -1..1 in F3 + R0 = DM(V_VSTATE) + I3 = R0 + M3 = 1 + R0 = DM(M3, I3) + R2 = 13 + R1 = LSHIFT R0 BY R2 + R0 = R0 XOR R1 + R2 = -17 + R1 = LSHIFT R0 BY R2 + R0 = R0 XOR R1 + R2 = 5 + R1 = LSHIFT R0 BY R2 + R0 = R0 XOR R1 + DM(M3, I3) = R0 + F3 = FLOAT R0 + F1 = 4.656612873e-10 ; 2^-31 + F3 = F3 * F1 + ; settings + R0 = DM(V_TRACK) + I2 = R0 + R0 = DM(V_REC) + I0 = R0 + M1 = ENDW + R0 = DM(M1, I0) + F5 = FLOAT R0 ; the sample's length in words + M2 = 4 + R0 = DM(M2, I2) ; spread 0-127 + F0 = FLOAT R0 + M2 = 0 + R11 = DM(M2, I2) ; mode + R2 = MODE_HAZE + COMP(R11, R2) + IF NE JUMP spread_set + F0 = 127.0 ; HAZE: the widest spread +spread_set: + F1 = 0.003937008 ; 0.5 / 127 + F0 = F0 * F1 + F0 = F0 * F5 + F3 = F3 * F0 ; random spread in words + M2 = 1 + R0 = DM(M2, I2) ; position 0-127, 64 = at the play head + R2 = 64 + R0 = R0 - R2 + F0 = FLOAT R0 + F1 = 0.0078125 ; 0.5 / 64 + F0 = F0 * F1 + F0 = F0 * F5 + F3 = F3 + F0 + R6 = FIX F3 ; offset in words + ; where the grain starts: the play head, or in STUTTER the cell + M1 = POS + R7 = DM(M1, I0) + R2 = MODE_STUTTER + COMP(R11, R2) + IF NE JUMP base_set + R0 = DM(V_VSTATE) + I3 = R0 + M3 = 5 + R0 = DM(M3, I3) + R0 = R0 + 1 + R2 = 4 ; four grains per cell, then the cell moves to the play head + COMP(R0, R2) + IF LT JUMP keep_cell + R0 = 0 + M2 = 4 + DM(M2, I3) = R7 +keep_cell: + DM(M3, I3) = R0 + M3 = 4 + R7 = DM(M3, I3) + R0 = -4 ; STUTTER spreads a sixteenth as far + R6 = ASHIFT R6 BY R0 +base_set: + R7 = R7 + R6 + M1 = ENDW + R0 = DM(M1, I0) + R2 = 0 + COMP(R7, R2) + IF GE JUMP not_below + R7 = R7 + R0 +not_below: + COMP(R7, R0) + IF LT JUMP in_range + R7 = R7 - R0 +in_range: + R0 = DM(V_GREC) + R2 = RECB + R1 = R15 * R2 (SSI) + R0 = R0 + R1 + I1 = R0 + M1 = POS + DM(M1, I1) = R7 + M1 = FRAC + R0 = 0 + DM(M1, I1) = R0 + ; the grain's length, 1/length and gain + M2 = 2 + R0 = DM(M2, I2) ; size 0-127 + R2 = -3 + R0 = LSHIFT R0 BY R2 + M3 = R0 + I3 = size_lengths + R5 = DM(M3, I3) + I3 = size_inverses + R3 = DM(M3, I3) + R0 = DM(V_INTERVAL) + F0 = FLOAT R0 + F0 = F0 * F3 ; x = interval / length, one over the overlap + F1 = RSQRTS F0 ; 1/sqrt(x), refined once (Newton) + F2 = F1 * F1 + F2 = F2 * F0 + F4 = 0.5 + F2 = F2 * F4 + F4 = 1.5 + F2 = F4 - F2 + F1 = F1 * F2 + F0 = F0 * F1 ; sqrt(x) + F1 = 1.2 + F0 = F0 * F1 + F1 = 1.0 + F9 = MIN(F0, F1) ; gain: grains add out of phase, so the sum grows as the square root of the overlap + R0 = DM(V_GSTATE) + R2 = 5 + R1 = LSHIFT R15 BY R2 + R0 = R0 + R1 + I2 = R0 + R1 = 1 + M3 = 0 + DM(M3, I2) = R1 + R1 = 0 + M2 = 1 + DM(M2, I2) = R1 + M2 = 2 + DM(M2, I2) = R5 + M2 = 3 + DM(M2, I2) = R3 + M2 = 4 + DM(M2, I2) = R9 + +; Every active grain: through the stock player into the scratch buffer, then windowed into the slot. +render: + R15 = 0 +grain_loop: + R0 = DM(V_GSTATE) + R2 = 5 + R1 = LSHIFT R15 BY R2 + R0 = R0 + R1 + I2 = R0 + M3 = 0 + R0 = DM(M3, I2) + R0 = PASS R0 + IF EQ JUMP next_grain + R0 = DM(V_GREC) + R2 = RECB + R1 = R15 * R2 (SSI) + R4 = R0 + R1 + R8 = SCRATCH + R12 = 32 + CCALL STOCK_PLAYER + R0 = DM(V_GSTATE) + R2 = 5 + R1 = LSHIFT R15 BY R2 + R0 = R0 + R1 + I2 = R0 + M2 = 1 + R5 = DM(M2, I2) ; phase + M2 = 3 + R0 = DM(M2, I2) ; 1/length + M2 = 4 + R1 = DM(M2, I2) ; gain + ; window w(x) = 4x(1 - x) at the block's start and end, linear between + F6 = FLOAT R5 + F6 = F6 * F0 ; x0 + R2 = 32 + R3 = R5 + R2 + F7 = FLOAT R3 + F7 = F7 * F0 ; x1 + F2 = 1.0 + F9 = MIN(F7, F2) + F7 = F2 - F9 + F7 = F7 * F9 + F9 = F2 - F6 + F6 = F6 * F9 + F2 = 4.0 + F2 = F2 * F1 + F6 = F6 * F2 ; gain * w(x0) + F7 = F7 * F2 ; gain * w(x1) + F7 = F7 - F6 + F2 = 0.03125 + F7 = F7 * F2 ; per-sample step + R0 = DM(V_SLOT) + I0 = R0 + I2 = R0 + I1 = SCRATCH + M0 = 1 + LCNTR = 32, DO mix UNTIL LCE + R1 = DM(I1, M0) + F1 = F1 * F6, R0 = DM(I0, M0) + F0 = F0 + F1 +mix: F6 = F6 + F7, DM(I2, M0) = R0 + ; advance; the grain ends at its length or when the stock player ends its record + R0 = DM(V_GSTATE) + R2 = 5 + R1 = LSHIFT R15 BY R2 + R0 = R0 + R1 + I2 = R0 + M2 = 1 + DM(M2, I2) = R3 + M2 = 2 + R0 = DM(M2, I2) + COMP(R3, R0) + IF GE JUMP end_grain + R0 = DM(V_GREC) + R2 = RECB + R1 = R15 * R2 (SSI) + R0 = R0 + R1 + I1 = R0 + M1 = PLAYING + R0 = DM(M1, I1) + R0 = PASS R0 + IF NE JUMP next_grain +end_grain: + R0 = 0 + M3 = 0 + DM(M3, I2) = R0 +next_grain: + R15 = R15 + 1 + R2 = GRAINS + COMP(R15, R2) + IF LT JUMP grain_loop + JUMP done + +stock_silence: + R4 = DM(V_REC) + R8 = DM(V_SLOT) + R12 = 32 + CCALL STOCK_PLAYER + +done: + R3 = DM(V_SAVE + 0) + R5 = DM(V_SAVE + 1) + R6 = DM(V_SAVE + 2) + R7 = DM(V_SAVE + 3) + R9 = DM(V_SAVE + 4) + R10 = DM(V_SAVE + 5) + R11 = DM(V_SAVE + 6) + R15 = DM(V_SAVE + 7) + I0 = DM(V_SAVE + 8) + I1 = DM(V_SAVE + 9) + I2 = DM(V_SAVE + 10) + I3 = DM(V_SAVE + 11) + M0 = DM(V_SAVE + 12) + M1 = DM(V_SAVE + 13) + M2 = DM(V_SAVE + 14) + M3 = DM(V_SAVE + 15) + L0 = DM(V_SAVE + 16) + L1 = DM(V_SAVE + 17) + L2 = DM(V_SAVE + 18) + ASTATX = DM(V_SAVE + 19) + STKYX = DM(V_SAVE + 20) + CRET + +.data VARS + .space 0x400 ; variables and saved registers +.data SCRATCH + .space 0x100 ; the grain and play-head blocks +.data VSTATE ; per voice: the last position starts at -1, so the first note counts as new + .word 0, 0, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 + .word 0, 0, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 + .word 0, 0, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 + .word 0, 0, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 + .word 0, 0, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 + .word 0, 0, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 + .word 0, 0, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 + .word 0, 0, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 + .word 0, 0, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 + .word 0, 0, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 + .word 0, 0, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 + .word 0, 0, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 + .word 0, 0, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 + .word 0, 0, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 + .word 0, 0, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 + .word 0, 0, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 + .word 0, 0, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 + .word 0, 0, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 + .word 0, 0, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 + .word 0, 0, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 + .word 0, 0, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 + .word 0, 0, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 + .word 0, 0, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 + .word 0, 0, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 + .word 0, 0, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 + .word 0, 0, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 + .word 0, 0, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 + .word 0, 0, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 + .word 0, 0, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 + .word 0, 0, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 + .word 0, 0, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 + .word 0, 0, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 +.data GSTATE + .space 32 * GRAINS * 32 ; per grain: active, phase, length, 1/length, gain +.data GRECS + .space 32 * GRAINS * RECB ; per grain: its copy of the voice record + +.data 0x200d4900 +; density: the interval between grain starts, as a fraction of a sequencer step (density / 8 picks one) +density_steps: + .float 4.0, 3.0, 2.0, 1.5, 1.0, 0.75, 0.5, 0.375 + .float 0.25, 0.1875, 0.125, 0.09375, 0.0625, 0.046875, 0.03125, 0.0234375 +; size: grain lengths in samples at 48 kHz, 10 ms to 1.5 s (size / 8 picks one), and their reciprocals +size_lengths: + .word 480, 720, 960, 1440, 1920, 2400, 3360, 4800 + .word 6720, 9600, 13440, 19200, 26880, 38400, 48000, 72000 +size_inverses: + .float 0.0020833333, 0.0013888889, 0.0010416667, 0.00069444444, 0.00052083333, 0.00041666667, 0.00029761905, 0.00020833333 + .float 0.00014880952, 0.00010416667, 0.000074404762, 0.000052083333, 0.000037202381, 0.000026041667, 0.000020833333, 0.000013888889 + +.data 0x200d4a00 +; per track: mode, position, size, density, spread, samples per step (120 BPM), two spare words +track_settings: + .word 0, 64, 64, 64, 32, 6000, 0, 0 + .word 0, 64, 64, 64, 32, 6000, 0, 0 + .word 0, 64, 64, 64, 32, 6000, 0, 0 + .word 0, 64, 64, 64, 32, 6000, 0, 0 + .word 0, 64, 64, 64, 32, 6000, 0, 0 + .word 0, 64, 64, 64, 32, 6000, 0, 0 + .word 0, 64, 64, 64, 32, 6000, 0, 0 + .word 0, 64, 64, 64, 32, 6000, 0, 0 + .word 0, 64, 64, 64, 32, 6000, 0, 0 + .word 0, 64, 64, 64, 32, 6000, 0, 0 + .word 0, 64, 64, 64, 32, 6000, 0, 0 + .word 0, 64, 64, 64, 32, 6000, 0, 0 + .word 0, 64, 64, 64, 32, 6000, 0, 0 + .word 0, 64, 64, 64, 32, 6000, 0, 0 + .word 0, 64, 64, 64, 32, 6000, 0, 0 + .word 0, 64, 64, 64, 32, 6000, 0, 0 diff --git a/src/engine/elektron/sharc-asm.test.ts b/src/engine/elektron/sharc-asm.test.ts index 95229dadf7..68541032e7 100644 --- a/src/engine/elektron/sharc-asm.test.ts +++ b/src/engine/elektron/sharc-asm.test.ts @@ -36,6 +36,8 @@ describe('SHARC assembler', () => { ['F3 = MAX(F4, F5)', '013e000e2345'], ['F3 = FLOAT R4', '013e000ca340'], ['R3 = FIX F4', '013e000c9340'], + ['F3 = RECIPS F4', '013e000c4340'], + ['F3 = RSQRTS F4', '013e000c5340'], ['IF EQ F0 = F1 + F2', '010000081012'], ['IF NOT SV JUMP here', '062e00be8000'], ['NOP', '000000000000'], diff --git a/src/engine/elektron/sharc-asm.ts b/src/engine/elektron/sharc-asm.ts index aa318dc7ad..d29d0b1049 100644 --- a/src/engine/elektron/sharc-asm.ts +++ b/src/engine/elektron/sharc-asm.ts @@ -15,7 +15,7 @@ * .data 0x200d8000 data from this loader byte address (labels are byte addresses) * .equ NAME, expression a constant * .word e, e, ... 32-bit words (data) .float 0.5, -1.0 32-bit floats (data) - * .space bytes zero bytes (data) + * .space bytes zero words, loaded with the program (data) * label: * * ureg = expression type 17a ureg = DM(expression) / DM(expression) = ureg type 14a @@ -25,7 +25,8 @@ * [IF cond] compute type 2a: Rn = Rx + Ry, Rx - Ry, Rx AND/OR/XOR Ry, PASS Rx, -Rx, Rx + 1, * Rx - 1, ABS Rx, MIN(Rx, Ry), MAX(Rx, Ry), COMP(Rx, Ry), Rx * Ry (SSI), * LSHIFT Rx BY Ry, ASHIFT Rx BY Ry; Fn = Fx + Fy, Fx - Fy, Fx * Fy, PASS Fx, - * -Fx, ABS Fx, MIN(Fx, Fy), MAX(Fx, Fy), COMP(Fx, Fy), FLOAT Rx; Rn = FIX Fx + * -Fx, ABS Fx, MIN(Fx, Fy), MAX(Fx, Fy), COMP(Fx, Fy), FLOAT Rx, RECIPS Fx, + * RSQRTS Fx (the reference's seeds, about 8 bits); Rn = FIX Fx * [IF cond] ureg = ureg type 5b (32-bit: never in the last 11 instructions of a loop) * [IF cond] JUMP target type 8a, absolute, not delayed * LCNTR = count, DO label UNTIL LCE type 12a (label: the loop's last instruction) @@ -139,6 +140,7 @@ function computation(text: string): number | null { return x === null || y === null ? null : alu((float ? 0xe0 : 0x60) + (r[1] === 'MIN' ? 1 : 2), n, x, y) } if ((r = /^FLOAT (R\d+)$/.exec(rhs)) && float) { const x = reg(r[1], 'R'); return x === null ? null : alu(0xca, n, x) } + if ((r = /^(RECIPS|RSQRTS) (F\d+)$/.exec(rhs)) && float) { const x = reg(r[2], 'F'); return x === null ? null : alu(r[1] === 'RECIPS' ? 0xc4 : 0xc5, n, x) } if ((r = /^FIX (F\d+)$/.exec(rhs)) && !float) { const x = reg(r[1], 'F'); return x === null ? null : alu(0xc9, n, x) } if ((r = /^(LSHIFT|ASHIFT) (R\d+) BY (R\d+)$/.exec(rhs)) && !float) { const x = reg(r[2], 'R'), y = reg(r[3], 'R') @@ -187,7 +189,14 @@ export function assembleSharc(source: string): SharcProgram { continue } if (section !== 'data') throw new SourceError(line, `.${name} belongs in a .data block`) - if (name === 'space') { address += evaluate(rest, symbols, line); continue } + if (name === 'space') { + // Zero words that are part of the block: memory the player owns is loaded with the program, never assumed. + const bytes = evaluate(rest, symbols, line) + if (!Number.isInteger(bytes) || bytes < 0 || bytes % 4) throw new SourceError(line, '.space takes a whole number of words, in bytes') + for (let k = 0; k < bytes; k += 4) items.push({ kind: 'data', address: address + k, line, build: () => 0 }) + address += bytes + continue + } if (name === 'word' || name === 'float') { for (const part of rest.split(',')) { const expr = part.trim(), at = address @@ -379,5 +388,13 @@ function layout(items: Item[], symbols: Map): SharcBlock[] { last.bytes = joined } else blocks.push({ address: piece.address, bytes: piece.bytes }) } + // The loader places whole 32-bit words: pad a block that ends inside one (code ends on a 16-bit parcel). + for (const [index, block] of blocks.entries()) { + if (block.bytes.length % 4 === 0) continue + const padded = new Uint8Array(block.bytes.length + 4 - block.bytes.length % 4) + padded.set(block.bytes) + if (blocks[index + 1] && blocks[index + 1].address < block.address + padded.length) throw new Error(`overlapping code or data at ${blocks[index + 1].address.toString(16)}`) + block.bytes = padded + } return blocks } From db4851f39f4a8d80836c0cff1ca12dcc8ed7ee9b Mon Sep 17 00:00:00 2001 From: claptom-music <350865352+Claptom-music@users.noreply.github.com> Date: Thu, 19 Nov 2026 11:29:12 +0100 Subject: [PATCH 080/415] Assembler tests: expect a block padded to a whole word Co-Authored-By: Claude Opus 5.5 --- src/engine/elektron/sharc-asm.test.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/engine/elektron/sharc-asm.test.ts b/src/engine/elektron/sharc-asm.test.ts index 68541032e7..f30946bebe 100644 --- a/src/engine/elektron/sharc-asm.test.ts +++ b/src/engine/elektron/sharc-asm.test.ts @@ -6,8 +6,12 @@ import { assembleSharc, sharcProgramCounter } from './sharc-asm.ts' const one = (statement: string) => { const { blocks } = assembleSharc(`.code 0x200d0000\nhere: ${statement}`) const bytes = blocks[0].bytes - return Array.from({ length: bytes.length / 2 }, (_, k) => (bytes[2 * k] | bytes[2 * k + 1] << 8).toString(16).padStart(4, '0')).join('') + const text = Array.from({ length: bytes.length / 2 }, (_, k) => (bytes[2 * k] | bytes[2 * k + 1] << 8).toString(16).padStart(4, '0')).join('') + expect(bytes.length % 4).toBe(0) + return text } +// The loader places whole 32-bit words: a block ending inside one is padded with a zero parcel. +const padded = (parcels: string) => parcels + '0'.repeat(-parcels.length & 7) describe('SHARC assembler', () => { it.each([ @@ -41,14 +45,14 @@ describe('SHARC assembler', () => { ['IF EQ F0 = F1 + F2', '010000081012'], ['IF NOT SV JUMP here', '062e00be8000'], ['NOP', '000000000000'], - ])('%s', (statement, parcels) => expect(one(statement)).toBe(parcels)) + ])('%s', (statement, parcels) => expect(one(statement)).toBe(padded(parcels))) it('makes a linked call as the stock render loop does, pushing the return address minus one', () => { - expect(one('CCALL 0x1c4ecf')).toBe('1804001c4ecf' + '5ffe81000000' + '9fc000be8008') + expect(one('CCALL 0x1c4ecf')).toBe(padded('1804001c4ecf' + '5ffe81000000' + '9fc000be8008')) }) it('returns as the stock player does', () => { - expect(one('CRET')).toBe('4dfe0e000000' + '000000000000' + '083f343f' + '000000000000' + '1901') + expect(one('CRET')).toBe(padded('4dfe0e000000' + '000000000000' + '083f343f' + '000000000000' + '1901')) }) it('places code and data, with labels as program counters and byte addresses', () => { From cd1c669badb2ac82b5fab935a14e624856ccc6fe Mon Sep 17 00:00:00 2001 From: claptom-music <350865352+Claptom-music@users.noreply.github.com> Date: Thu, 19 Nov 2026 11:31:49 +0100 Subject: [PATCH 081/415] Package a Digitakt II machine module's sound-chip player from its .sharc source build.json's optional "sharc" names the source and the machine types it plays (each claimed as machine:); the package build assembles it into build.dt2_sharc. Mikrotakt's package now carries its grain player. The machine guide's SHARC rules section points at the assembler instead of "not yet". Co-Authored-By: Claude Opus 5.5 --- scripts/build-elemod-packages.mjs | 12 +++++++++++ sdk/digitakt-ii/modules/mikrotakt/README.md | 2 +- sdk/digitakt-ii/modules/mikrotakt/build.json | 1 + sdk/machines/digitakt-ii/GOAL.md | 2 +- sdk/machines/digitakt-ii/README.md | 4 ++-- src/catalog/module-contract-v3.test.ts | 12 +++++++++++ src/catalog/module-contract-v3.ts | 22 ++++++++++++++++++-- 7 files changed, 49 insertions(+), 6 deletions(-) diff --git a/scripts/build-elemod-packages.mjs b/scripts/build-elemod-packages.mjs index 98d6edfc39..e37ab66b10 100644 --- a/scripts/build-elemod-packages.mjs +++ b/scripts/build-elemod-packages.mjs @@ -12,6 +12,7 @@ import { parseMachineProfile } from '../src/devices/machine-contract.ts' import { parseModwerkModule, parseElemodBuild } from '../src/catalog/module-contract-v3.ts' import { resolveModuleFile } from '../src/catalog/module-folder.ts' import { LINK_DEVICES, parseElemod } from '../src/engine/elektron/elemod.ts' +import { assembleSharc } from '../src/engine/elektron/sharc-asm.ts' import { elfToElemod } from './elemod-elf.mjs' import { loadElemodDependencies } from './elemod-dependencies.mjs' import { validateCompilerFlags } from './elemod-compiler-flags.mjs' @@ -137,6 +138,17 @@ for (const machine of machines.filter(item => item.sdk?.platform === 'elemod')) const sites = port.sites for (const target of sites.flatMap(site => 'target' in site ? [site.target] : (site.relocs ?? []).map(reloc => reloc.target))) if (!Object.hasOwn(module.symbols, target) && !module.imports.includes(target)) module.imports.push(target) module.imports.sort() + if (build.sharc) { + // A Digitakt II machine module's sound-chip player, assembled from its source; the site composes it into section 7. + if (machine.id !== 'digitakt-ii') throw new Error('Only Digitakt II modules carry a sound-chip player: ' + document.id) + const program = assembleSharc(await readFile(await resolveModuleFile(folder, build.sharc.source), 'utf8')) + const players = build.sharc.players.map(player => { + const entry = program.symbols.get(player.entry) + if (entry === undefined) throw new Error(document.id + ': no label ' + player.entry + ' in ' + build.sharc.source) + return { type: player.type, entry } + }) + module.build = { ...module.build, dt2_sharc: { version: 2, allocations: program.blocks.map(block => ({ address: block.address, data: Buffer.from(block.bytes).toString('base64') })), players } } + } parseElemod(module) const plan = { schemaVersion: 1, machine: machine.id, id: document.id, version: document.version, release, module, sites, derive: build.derive, provenance: { sourceCommit, sourceTreeSha256, sources, compiler, cflags: [...cflags, ...extraFlags], generatedSha256: generated.map(sha), elfSha256: sha(await readFile(object)) } } diff --git a/sdk/digitakt-ii/modules/mikrotakt/README.md b/sdk/digitakt-ii/modules/mikrotakt/README.md index 9ee60c0f5d..ec1084f8a8 100644 --- a/sdk/digitakt-ii/modules/mikrotakt/README.md +++ b/sdk/digitakt-ii/modules/mikrotakt/README.md @@ -6,7 +6,7 @@ Describe what it does, every control, how to reach it on the unit, and a short t ## Design notes (work in progress) -The player is `src/player.sharc`, assembled by Modwerk's sound-chip assembler (`src/engine/elektron/sharc-asm.ts`). Each voice has a play head and up to six grains: +The player is `src/player.sharc`, assembled by Modwerk's sound-chip assembler (`src/engine/elektron/sharc-asm.ts`) into the package (`build.sharc` in `build.json`). It uses the sound chip's L2 from loader byte `0x200d0000` to `0x200f8000` (claimed on the agent board as `dsp-region digitakt-ii/mikrotakt-l2`): code, variables, tables, per-track settings, voice and grain state, and the grain records (about 106 KB). Each voice has a play head and up to six grains: - **Play head.** The voice's own record, played by the stock sample player into a buffer nobody hears. It follows the sample's start, length, loop, play mode and pitch, so a note lasts as a SAMPLE note would. - **Grains.** A grain is a copy of the voice's record taken at the play head, moved by the position offset and a random spread, played by the stock player and shaped by a window (`4x(1 - x)`, linear across each 32-sample block). Grains start every interval, a fraction of a sequencer step set by the density. Their gain follows the square root of the overlap, since grains add out of phase. diff --git a/sdk/digitakt-ii/modules/mikrotakt/build.json b/sdk/digitakt-ii/modules/mikrotakt/build.json index c531c703ea..0c16667401 100644 --- a/sdk/digitakt-ii/modules/mikrotakt/build.json +++ b/sdk/digitakt-ii/modules/mikrotakt/build.json @@ -14,5 +14,6 @@ "claims": ["machine:7"], "requires": [], "derive": null, + "sharc": { "source": "src/player.sharc", "players": [{ "type": 7, "entry": "mikrotakt_player" }] }, "releases": { "1.17": { "defsym": {}, "cflags": [], "sites": [] } } } diff --git a/sdk/machines/digitakt-ii/GOAL.md b/sdk/machines/digitakt-ii/GOAL.md index 6bd68a94f7..aa798dca04 100644 --- a/sdk/machines/digitakt-ii/GOAL.md +++ b/sdk/machines/digitakt-ii/GOAL.md @@ -60,7 +60,7 @@ OS 1.17 offers USB MIDI in all three USB modes (MIDI, Audio/MIDI and Overbridge) - **Kit data that changes alone.** Does OS 1.17 save a kit when only a module's block changed? The test steps are in the [machine guide](README.md#core-hooks), and any unit owner can run them. - **More units.** The pinned base has run on one unit so far. - **Upstream drift.** The core 1.1 source is `0df8409`, the reviewed head of the open [elekloader#221](https://github.com/elekloader/elekloader/pull/221). When it merges, take the source again from the release and rebuild the base ([base source](elekloader/README.md)). -- **A SHARC assembler.** No Modwerk build writes SHARC code yet. The first one to do so brings its toolchain, pinned through `npm run upstream:tools`, and a build check for the rules above. +- **A SHARC assembler.** Modwerk's own (`src/engine/elektron/sharc-asm.ts`) builds a machine module's `.sharc` player into its package and refuses code that breaks the rules above. It knows only the instruction forms a voice player has needed so far: add a form with its test, checked against the programming reference. ## How to join diff --git a/sdk/machines/digitakt-ii/README.md b/sdk/machines/digitakt-ii/README.md index f1efabf917..36d36d5ce7 100644 --- a/sdk/machines/digitakt-ii/README.md +++ b/sdk/machines/digitakt-ii/README.md @@ -53,11 +53,11 @@ Find a screen from the frame the OS has just drawn, not from UI object pointers: ### SHARC code rules -No Modwerk build writes SHARC code yet. The first base or module that does follows these rules from Analog Devices' public *SHARC+ Core Programming Reference* and brings a build check for them: +A machine module's sound-chip player is a `.sharc` source named by `build.sharc` in its `build.json` (`{ "source": "src/player.sharc", "players": [{ "type": 7, "entry": "label" }] }`, each type claimed as `machine:`). Modwerk's own assembler, `src/engine/elektron/sharc-asm.ts`, builds it into the package's `build.dt2_sharc`, and the site composes it into section 7 with the base's machine parts. The assembler takes the instruction syntax of Analog Devices' public *SHARC+ Core Programming Reference* (the forms it lists) and refuses a program that breaks these rules: - Never store a DAG register (I, M, L or B 0–7) to memory through an index register of the same DAG. It is not a legal encoding, though an assembler or emulator may accept it; route the value through a data register. - The last 11 instructions of a hardware loop are 48-bit instructions, never compressed 16-bit ones (the program sequencer's loop restrictions). -- After writing code to memory, write the data cache back before invalidating the instruction cache. +- After writing code to memory, write the data cache back before invalidating the instruction cache (the loader's part: a player never writes code). - An emulator run never proves SHARC code: these are silicon rules. ## Memory diff --git a/src/catalog/module-contract-v3.test.ts b/src/catalog/module-contract-v3.test.ts index 8d58cb13c7..dde6edb721 100644 --- a/src/catalog/module-contract-v3.test.ts +++ b/src/catalog/module-contract-v3.test.ts @@ -105,6 +105,18 @@ describe('module contract v3', () => { const derive = { kind: 'fast_audio', note: 'Synthetic', release: '1.54', releases: ['1.53'], block: ['0x40001000', '0x40001008'], sram: ['0x80003360', '0x80008000'], callSites: [] } expect(() => parseElemodBuild({ ...build, derive }, document)).toThrow('supported releases including the base') }) + + it('takes a machine module\'s sound-chip player for the machine types it claims', () => { + const base = parse(template()) + const document = { ...base, platform: { ...base.platform, claims: ['machine:7'] } } as typeof base + const build = { ...JSON.parse(readFileSync(resolve('sdk/templates/elemod/build.json'), 'utf8').replace('__RELEASE__', '1.54')), claims: ['machine:7'] } + const sharc = { source: 'src/player.sharc', players: [{ type: 7, entry: 'grain_player' }] } + expect(parseElemodBuild({ ...build, sharc }, document).sharc).toEqual(sharc) + expect(parseElemodBuild(build, document).sharc).toBeUndefined() + expect(() => parseElemodBuild({ ...build, sharc: { ...sharc, players: [{ type: 8, entry: 'grain_player' }] } }, document)).toThrow('machine:8') + expect(() => parseElemodBuild({ ...build, sharc: { ...sharc, players: [{ type: 3, entry: 'grain_player' }] } }, document)).toThrow('7 to 10') + expect(() => parseElemodBuild({ ...build, sharc: { ...sharc, source: 'src/player.s' } }, document)).toThrow('.sharc source') + }) }) describe('module contract v3, zdl (Zoom effect files)', () => { diff --git a/src/catalog/module-contract-v3.ts b/src/catalog/module-contract-v3.ts index 1c0af6d5ae..819d79e102 100644 --- a/src/catalog/module-contract-v3.ts +++ b/src/catalog/module-contract-v3.ts @@ -320,6 +320,9 @@ export type ElemodBuildSpec = { collections: Record; copied: { lo: string; hi: string; to: string }[]; regions: { name: string; lo: string; hi: string }[] storage: { sym: string; scope: 'sound' | 'kit' | 'global' | 'track' | 'pattern' | 'project'; bits: number }[] // mod storage fields, for a core that keeps them claims: string[]; requires: string[] + // A Digitakt II machine module's sound-chip player: its source, assembled into the package's build.dt2_sharc, and + // the machine types (7-10, each claimed as machine:) whose voices it plays from which entry label. + sharc?: { source: string; players: { type: number; entry: string }[] } // Steps that need the stock OS run only during the owner's local build, never in CI. derive: { kind: string; note: string; release: string; releases: string[]; block: [string, string]; sram: [string, string]; callSites: { addr: string; len: number; stockSha256: string; target: string }[] } | null releases: Record @@ -378,7 +381,7 @@ export function parseElemodBuild(value: unknown, document: Pick { const file = modulePath(path, 'build.sources[' + index + ']') @@ -435,7 +438,22 @@ export function parseElemodBuild(value: unknown, document: Pick !document.compatibility.releases.includes(release)) || !derive.releases.includes(derive.release))) fail('build.derive.releases', 'expected supported releases including the base release') const stringsValue = object(item.strings ?? {}, 'build.strings', Object.keys((item.strings ?? {}) as object)) const strings = Object.fromEntries(Object.entries(stringsValue).map(([name, value]) => [symbol(name, 'build.strings.' + name), text(value, 'build.strings.' + name, 120)])) - return { schemaVersion: 1, sources, strings, defsym: defines(item.defsym, 'build.defsym'), cflags: texts(item.cflags, 'build.cflags', 0, 16, 60), weak: list(item.weak, 'build.weak', 0, 64).map((name, index) => symbol(name, 'build.weak[' + index + ']')), subscribe, contribute, collections, copied, regions, storage, claims, requires, derive, releases } + let sharc: ElemodBuildSpec['sharc'] + if (item.sharc !== undefined) { + const value = object(item.sharc, 'build.sharc', ['source', 'players']) + const source = modulePath(value.source, 'build.sharc.source') + if (!/^src\/.+\.sharc$/.test(source)) fail('build.sharc.source', 'expected a .sharc source under src/') + const players = list(value.players, 'build.sharc.players', 1, 4).map((entry, index) => { + const at = 'build.sharc.players[' + index + ']', player = object(entry, at, ['type', 'entry']) + const type = count(player.type, at + '.type') + if (type === null || type < 7 || type > 10) fail(at + '.type', 'expected an added machine type, 7 to 10') + if (!claims.includes('machine:' + type)) fail(at + '.type', 'claim the machine type as machine:' + type) + return { type: type!, entry: symbol(player.entry, at + '.entry') } + }) + if (new Set(players.map(player => player.type)).size !== players.length) fail('build.sharc.players', 'one player per machine type') + sharc = { source, players } + } + return { schemaVersion: 1, sources, strings, defsym: defines(item.defsym, 'build.defsym'), cflags: texts(item.cflags, 'build.cflags', 0, 16, 60), weak: list(item.weak, 'build.weak', 0, 64).map((name, index) => symbol(name, 'build.weak[' + index + ']')), subscribe, contribute, collections, copied, regions, storage, claims, requires, derive, releases, ...(sharc ? { sharc } : {}) } } // Framework sources are compiled and resolved, but are not library/UI modules. From 85d42be17a19df3274e8f51b27d2361fcda48632 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Thu, 19 Nov 2026 11:41:29 +0100 Subject: [PATCH 082/415] Fix: a key-bus reader is refused for a buffer by name, and reviewed FX2 extents (base 0.7.10) A package whose DSP claims meet a live or planned delay buffer was refused as RUNTIME_MEMORY ("not enough module memory, remove a module"). On a tester's unit SC Ringmod was refused that way at the start where Air Chorus sat on T5 FX2, and admitted while every FX2 ran a stock effect. It now has its own refusal, RUNTIME_BUFFER (12, "meets a buffer"), whose musician text says to move the module effect on FX2 of track 1, 5 or 7 to another track. RUNTIME_MEMORY stays the module pool and the DSP's own limits. An older site shows its plain refusal text for code 12, and its anonymous count is other. A module effect's FX2 buffer counted as its whole 16,384-word block, so any module effect on T1, T5 or T7 met the key bus at +$3E00. The strong policy bridge (controller_policy.c) now holds reviewed exact extents for four exact packages, matched by their sha256 and their declared extent: E-Verb 0.1.2 and Mini Verb 0.2.3 (15,870 words), BBD Delay 0.1.2 (8,250) and Vibrato 0.1.0 (2,048; it writes nothing on FX2), with the source and gate evidence in its comment. Any other package keeps the whole block; Air Chorus (16,384 words) still meets the bus. dsp.c answers which live package holds an effect handle, appended after the resident patch's hunks (resident_base_sources.json re-pinned). Co-Authored-By: Claude Opus 5.5 --- changelog/2026-11-19-keybus-buffer-clash.md | 1 + scripts/diagnostics-pull.mjs | 2 +- sdk/machines/octatrack/elekloader/dsp.c | 14 ++++++ sdk/machines/octatrack/elekloader/status.c | 1 + .../controller-policy/controller_policy.c | 43 +++++++++++++++++-- .../controller-policy/controller_policy.h | 6 ++- .../test_controller_policy.c | 38 ++++++++++++++-- .../test_stock_hook_binding.c | 2 +- .../module-adapters/resident_base.patch | 2 +- .../resident_base_sources.json | 2 +- sdk/runtime/loader-refusals.json | 3 +- sdk/runtime/loader/README.md | 5 ++- sdk/runtime/loader/loader.h | 7 ++- sdk/tests/test_controller_policy.py | 7 +-- .../octatrack-diagnostics-contract.ts | 2 +- 15 files changed, 116 insertions(+), 19 deletions(-) create mode 100644 changelog/2026-11-19-keybus-buffer-clash.md diff --git a/changelog/2026-11-19-keybus-buffer-clash.md b/changelog/2026-11-19-keybus-buffer-clash.md new file mode 100644 index 0000000000..b3984c3385 --- /dev/null +++ b/changelog/2026-11-19-keybus-buffer-clash.md @@ -0,0 +1 @@ +Octatrack base 0.7.10: a module that listens to other tracks through the key bus (such as SC Ringmod) is no longer turned away with "not enough module memory" when the real reason is another module effect's delay buffer sitting where it reads. The site now says what to do: move the module effect on FX2 of track 1, 5 or 7 to FX2 of another track, then sync again. E-Verb, Mini Verb, BBD Delay and Vibrato on those tracks no longer cause it at all, since the base now knows their buffers stop short of the key bus; Air Chorus there still does, because its buffer really reaches it. diff --git a/scripts/diagnostics-pull.mjs b/scripts/diagnostics-pull.mjs index 19d0a94392..41825bbe93 100644 --- a/scripts/diagnostics-pull.mjs +++ b/scripts/diagnostics-pull.mjs @@ -48,7 +48,7 @@ const line = ({ createdAt, username, data }) => [when(createdAt), '@' + username data.live?.cpu && 'cpu ' + data.live.cpu.map(percent).join('/'), data.modules?.map(module => module.id + '@' + module.catalogVersion).join(',')].filter(Boolean).join(' ') function percent(permille) { return (permille / 10).toFixed(1) + '%' } /** The loader's refusals (loader.h runtime_refusal), as a restore's set record names its first refused package's (modset.c). */ -const REFUSALS = Object.assign(['no refusal', 'malformed', 'module memory', 'conflict', 'no free handle', 'busy', 'DSP time', 'in use', 'stock bytes differ', 'a base event', 'a base feature down'], +const REFUSALS = Object.assign(['no refusal', 'malformed', 'module memory', 'conflict', 'no free handle', 'busy', 'DSP time', 'in use', 'stock bytes differ', 'a base event', 'a base feature down', 'window open', 'meets a buffer'], { 0x100: 'the last start crashed or froze loading it' }) // modset.c's boot guard, past the loader's codes /** An incident from the unit's own log (diag.c): when in its session, what, and what the unit was doing. */ const ids = r => [...r.machines, ...r.fx, ...r.keys].slice(0, 4 * r.a).map((b, i, all) => i % 4 ? '' : all.slice(i, i + 4).map(x => x.toString(16).padStart(2, '0')).join('')).filter(Boolean) diff --git a/sdk/machines/octatrack/elekloader/dsp.c b/sdk/machines/octatrack/elekloader/dsp.c index c88e978b0b..07f43c0c9c 100644 --- a/sdk/machines/octatrack/elekloader/dsp.c +++ b/sdk/machines/octatrack/elekloader/dsp.c @@ -1652,3 +1652,17 @@ void dl_publication_tick(void) {} /* status.c's NO ROOM box: whether the effect reads a Y buffer at all. One that reads none was refused for another * slot's buffer, since every pick plans all sixteen (owner's MKII, 12 November 2026). */ unsigned modwerk_dsp_reads_buffer(unsigned id) { return id < MODWERK_FX_IDS ? dl_catalog[id].buffer : 0u; } +/* controller_policy.h: the live module behind an effect handle, for the reviewed buffer extents (controller_policy.c). + * Its exact encoded package and the buffer words it declares; 0 when stock's own effect or nothing holds the handle. */ +const unsigned char *modwerk_controller_effect_package(unsigned id, unsigned *declared_words); +const unsigned char *modwerk_controller_effect_package(unsigned id, unsigned *declared_words) +{ + if (id >= MODWERK_FX_IDS || !owner[id]) return 0; + for (unsigned i = 0; i < RUNTIME_MODULES; ++i) { + const struct runtime_module *m = modwerk_runtime_module(i); + if (!m || m->dsp.module != owner[id] || !m->dsp.count || m->dsp.id != id) continue; + if (declared_words) *declared_words = m->dsp.buffer; + return m->dsp.package_sha256; + } + return 0; +} diff --git a/sdk/machines/octatrack/elekloader/status.c b/sdk/machines/octatrack/elekloader/status.c index fe54d04036..12ef24d0c8 100644 --- a/sdk/machines/octatrack/elekloader/status.c +++ b/sdk/machines/octatrack/elekloader/status.c @@ -553,6 +553,7 @@ static const char *switch_why(uint32_t result) if (result == MODSET_SWITCH_REFUSED + RUNTIME_CYCLES) return "DSP FULL"; if (result == MODSET_SWITCH_REFUSED + RUNTIME_CONFLICT) return "CLASHES WITH ANOTHER"; if (result == MODSET_SWITCH_REFUSED + RUNTIME_FEATURE) return "RESTART, THEN RETRY"; + if (result == MODSET_SWITCH_REFUSED + RUNTIME_BUFFER) return "MOVE AN FX2 EFFECT"; if (result == MODSET_SWITCH_BUSY || result == MODSET_SWITCH_REFUSED + RUNTIME_BUSY) return "BUSY: TRY AGAIN"; return result >= MODSET_SWITCH_REFUSED ? "REFUSED" : 0; /* GONE: a host changed it, and the rows show how */ } diff --git a/sdk/machines/octatrack/module-adapters/controller-policy/controller_policy.c b/sdk/machines/octatrack/module-adapters/controller-policy/controller_policy.c index 9207224547..ee6a40f3af 100644 --- a/sdk/machines/octatrack/module-adapters/controller-policy/controller_policy.c +++ b/sdk/machines/octatrack/module-adapters/controller-policy/controller_policy.c @@ -1,15 +1,52 @@ /* SPDX-License-Identifier: GPL-3.0-or-later */ #include "controller_policy.h" +#include "stock_hook_resources.h" -/* No private source-bound declarations have been qualified in this bridge. - * These mandatory strong definitions permit a closed-policy native link; +/* No private source-bound controller declarations have been qualified in this bridge: no controller policy entry, and * module names, effect IDs and absent policy never establish admission. */ unsigned modwerk_controller_policy_entries(void) { return 0; } +/* Reviewed exact FX2 buffer extents (19 November 2026): the Y words from its block base that the effect, as this exact + * encoded package (sha256 of the .mwrm the site sends), can write. Each row narrows the whole-block default, so a key-bus + * reader's claims at the block's tail (+$3E00..+$3FFF) no longer meet a buffer that never reaches them. A row applies + * only while the installed package is byte for byte the reviewed one and still declares the reviewed extent; any other + * version falls back to the whole block. No head proof: FX2 block 2 stays closed to them as before. + * + * E-Verb 0.1.2 (873d83cc), 15,870 words: one ring under m5 = m4 = $3DFD (everb.asm:17, :589-590); its verify.py gate + * "window" (verify.py:41-43) has it never write or read the block's last 514 words on T3 and T7. + * Mini Verb 0.2.3 (3cbedc9c), 15,870 words: a 15,870-word ring under m = $3DFD, the slot's last $202 words never touched + * (miniverb.asm:3-5, :128-129); verify.py:214-224 runs eight moving instances under a 15,870-word guard with no stray + * write, and its control catches 0.2.2's whole-block ring. + * BBD Delay 0.1.2 (16332a40), 8,250 words: every Y write is the clear (16 calls of 256 words from base, bbd.asm:62, + * :103-116: base..+$0FFF), the ring under m4 = stages - 2 <= 4,094 (bbd.asm:43, :582-583, :791), the nine clock + * sections at base + $2000 + 5 x 0..8 (bbd.asm:489, :509-512, the writes at :987-1036: up to +$202C), the high-pass at + * +$2030 (:560-568) and FREQ's bandpass at +$2035..+$2039 (:570-580). Its isolation gate guards only the whole block + * (verify.py:466); the extent is from the source. + * Vibrato 0.1.0 (d4582ab2), 2,048 words: on FX2 it returns at once and writes nothing (vibrato.asm:6-8, :74; + * verify_vibrato.py:14, :203-205 guard the FX2 instance); the row is its declared two 1,024-word lines. + * Air Chorus has no row: its declared 16,384 words reach Y $7FFF, so it really meets the key bus. */ +static const struct { unsigned char sha256[32]; uint32_t words; } reviewed[] = { + {{0x5f,0x81,0xe7,0x2f,0xbb,0xa4,0x3e,0xa8,0x27,0xec,0x39,0x96,0x50,0x9b,0x50,0xc0,0x36,0xb4,0x58,0xd4,0xba,0xa8,0x7d,0x80,0x1e,0x57,0xd4,0xb4,0xce,0x16,0x95,0xca}, 15870u}, /* E-Verb 0.1.2 */ + {{0xee,0xa2,0x5e,0x6c,0xf8,0xac,0x0a,0x39,0xab,0x30,0x0d,0x8b,0xa5,0x43,0xb0,0xd5,0x82,0x9b,0x78,0x9a,0x03,0xe0,0x08,0x1c,0x8d,0x13,0x6c,0x64,0xf2,0xee,0xd5,0x18}, 15870u}, /* Mini Verb 0.2.3 */ + {{0x58,0xb7,0x70,0x69,0x9e,0x28,0xb5,0x53,0x6e,0xf7,0x7b,0x2b,0x78,0x09,0x4a,0x19,0x1f,0x88,0x55,0xc5,0xab,0x75,0xfb,0xa4,0x36,0x4a,0xa5,0x28,0xf8,0xc1,0x3f,0xbc}, 8250u}, /* BBD Delay 0.1.2 */ + {{0xf3,0x11,0xdd,0x62,0x0d,0xaf,0x29,0x6d,0xc6,0xca,0xff,0x7f,0x44,0x25,0x33,0xfe,0x6e,0x72,0x62,0xe2,0xa1,0x83,0x4b,0xbf,0xbc,0x23,0x7f,0xf8,0xc4,0xd3,0xff,0x16}, 2048u}, /* Vibrato 0.1.0 */ +}; +#define REVIEWED (sizeof reviewed / sizeof reviewed[0]) + int modwerk_stock_hook_buffer_policy(unsigned core, unsigned id, struct mw_hook_buffer_claim *out) { - (void)core; (void)id; (void)out; + unsigned declared = 0; + if (core > 1u || !out) return 0; + const unsigned char *package = modwerk_controller_effect_package(id, &declared); + if (!package) return 0; /* stock's own effect or no live module behind the handle: the defaults */ + for (unsigned row = 0; row < REVIEWED; ++row) { + unsigned byte = 0; + while (byte < 32u && reviewed[row].sha256[byte] == package[byte]) ++byte; + if (byte < 32u || reviewed[row].words != declared) continue; + out->words = reviewed[row].words, out->complete = 1, out->head_safe = 0; + return 1; + } return 0; } diff --git a/sdk/machines/octatrack/module-adapters/controller-policy/controller_policy.h b/sdk/machines/octatrack/module-adapters/controller-policy/controller_policy.h index a963962e0c..682650c47e 100644 --- a/sdk/machines/octatrack/module-adapters/controller-policy/controller_policy.h +++ b/sdk/machines/octatrack/module-adapters/controller-policy/controller_policy.h @@ -8,10 +8,14 @@ struct mw_hook_buffer_claim; * Populated policy needs exact source/package identity and owned generations. * A buffer policy entry is an exact, reviewed claim that narrows an effect's * whole-block default (dsp.c modwerk_dsp_buffer_permitted) or proves a head - * shadow; 0 means none, and the whole block is claimed. This bridge has none. */ + * shadow; 0 means none, and the whole block is claimed. Its rows (controller_policy.c) + * name exact encoded packages and the extent each declares; none proves a head. */ int modwerk_stock_hook_buffer_policy(unsigned core, unsigned id, struct mw_hook_buffer_claim *out); int modwerk_stock_hook_fixed_ranges_idle(unsigned feature); unsigned modwerk_controller_policy_entries(void); +/* The machine's answer (elekloader/dsp.c): the live module behind effect handle `id`, as its exact encoded package's + * sha256 (32 bytes) and the Y words its package declares for the slot's buffer; 0 for stock's own effect or none. */ +const unsigned char *modwerk_controller_effect_package(unsigned id, unsigned *declared_words); #endif diff --git a/sdk/machines/octatrack/module-adapters/controller-policy/test_controller_policy.c b/sdk/machines/octatrack/module-adapters/controller-policy/test_controller_policy.c index 54d9f2f573..d21d18ee39 100644 --- a/sdk/machines/octatrack/module-adapters/controller-policy/test_controller_policy.c +++ b/sdk/machines/octatrack/module-adapters/controller-policy/test_controller_policy.c @@ -1,23 +1,55 @@ /* SPDX-License-Identifier: GPL-3.0-or-later */ #include "controller_policy.h" +#include "stock_hook_resources.h" #include #include #include +/* The packages behind effect handles, as dsp.c's resolver answers: 40 E-Verb 0.1.2, 41 Air Chorus 0.1.3, 42 E-Verb's + * bytes declaring a different extent, 43 one byte off E-Verb's hash; every other handle has no live module. */ +static const unsigned char everb[32] = {0x5f,0x81,0xe7,0x2f,0xbb,0xa4,0x3e,0xa8,0x27,0xec,0x39,0x96,0x50,0x9b,0x50,0xc0, + 0x36,0xb4,0x58,0xd4,0xba,0xa8,0x7d,0x80,0x1e,0x57,0xd4,0xb4,0xce,0x16,0x95,0xca}; +static const unsigned char chorus[32] = {0x13,0x07,0xd7,0x19,0x58,0xd2,0xa5,0xc7,0xa0,0xe4,0xba,0x8d,0x7f,0x7f,0x53,0xa0, + 0xaf,0xc1,0x0b,0xfe,0x40,0x4a,0x32,0x19,0x36,0xe3,0x9a,0x65,0xd2,0x29,0xcc,0x08}; +static unsigned char near[32]; +const unsigned char *modwerk_controller_effect_package(unsigned id, unsigned *declared) +{ + if (id == 40u) return *declared = 15870u, everb; + if (id == 41u) return *declared = 16384u, chorus; + if (id == 42u) return *declared = 16384u, everb; + if (id == 43u) return *declared = 15870u, near; + return 0; +} +/* T5's FX2 buffer starts at its block, Y $4000 on core 0 (buffers.c); a key-bus reader claims Y $7E00..$7FFF there. */ +static int meets_key_bus(const struct mw_hook_buffer_claim *c) { return 0x4000u + c->words > 0x7e00u; } + int main(void) { unsigned char guard[32], before[32]; memset(guard, 0xa5, sizeof guard); memcpy(before, guard, sizeof guard); + memcpy(near, everb, sizeof near), near[31] ^= 1u; assert(modwerk_controller_policy_entries() == 0); + /* Closed for everything not reviewed: no module, Air Chorus, a changed extent, a changed package, a bad core. */ for (unsigned core = 0; core < 2; ++core) for (unsigned id = 0; id < 64; ++id) - assert(!modwerk_stock_hook_buffer_policy(core, id, - (struct mw_hook_buffer_claim *)(void *)guard)); + if (id != 40u) + assert(!modwerk_stock_hook_buffer_policy(core, id, (struct mw_hook_buffer_claim *)(void *)guard)); + assert(memcmp(guard, before, sizeof guard) == 0); + assert(!modwerk_stock_hook_buffer_policy(UINT_MAX, 40u, (struct mw_hook_buffer_claim *)(void *)guard)); + assert(!modwerk_stock_hook_buffer_policy(0, 40u, 0)); assert(!modwerk_stock_hook_buffer_policy(UINT_MAX, UINT_MAX, 0)); + /* E-Verb 0.1.2 on T5 FX2: its reviewed 15,870 words end at Y $7DFD, clear of the key bus; Air Chorus's whole block + * (no row, mw_hook_default_claim) reaches $7FFF and meets it, as does a module with no live package behind it. */ + struct mw_hook_buffer_claim claim = {0, 0, 0}; + for (unsigned core = 0; core < 2; ++core) { + assert(modwerk_stock_hook_buffer_policy(core, 40u, &claim) && claim.words == 15870u && claim.complete == 1 && !claim.head_safe); + assert(!meets_key_bus(&claim)); + } + struct mw_hook_buffer_claim whole = {16384u, 1, 0}; /* mw_hook_default_claim(1, 0): a module's whole FX2 block */ + assert(!modwerk_stock_hook_buffer_policy(0, 41u, &whole) && whole.words == 16384u && meets_key_bus(&whole)); for (unsigned feature = 0; feature < 8; ++feature) assert(!modwerk_stock_hook_fixed_ranges_idle(feature)); assert(!modwerk_stock_hook_fixed_ranges_idle(UINT_MAX)); - assert(memcmp(guard, before, sizeof guard) == 0); return 0; } diff --git a/sdk/machines/octatrack/module-adapters/resident-runtime/test_stock_hook_binding.c b/sdk/machines/octatrack/module-adapters/resident-runtime/test_stock_hook_binding.c index 88de86690d..abe7a9f6e9 100644 --- a/sdk/machines/octatrack/module-adapters/resident-runtime/test_stock_hook_binding.c +++ b/sdk/machines/octatrack/module-adapters/resident-runtime/test_stock_hook_binding.c @@ -78,7 +78,7 @@ int main(void) { assert(modwerk_machine_dsp_claims_admit(8u,&bus,1)==RUNTIME_OK && modwerk_machine_dsp_claims_admit(0,&bus,1)==RUNTIME_CONFLICT); bus.access=RUNTIME_CLAIM_WRITE; assert(modwerk_machine_dsp_claims_admit(8u,&bus,1)==RUNTIME_CONFLICT); assert(modwerk_machine_dsp_claims_admit(0,&mine,1)==RUNTIME_OK); - claims_idle=0; assert(modwerk_machine_dsp_claims_admit(0,&mine,1)==RUNTIME_MEMORY); + claims_idle=0; assert(modwerk_machine_dsp_claims_admit(0,&mine,1)==RUNTIME_BUFFER); /* a buffer under it: named, not memory */ claims_idle=-1; assert(modwerk_machine_dsp_claims_admit(0,&mine,1)==RUNTIME_BUSY); claims_idle=1; saved=1; assert(modwerk_machine_dsp_claims_admit(0,&mine,1)==RUNTIME_BUSY); saved=0; assert(modwerk_stock_hook_export_idle()); diff --git a/sdk/machines/octatrack/module-adapters/resident_base.patch b/sdk/machines/octatrack/module-adapters/resident_base.patch index b286ca2b43..bd9acc8d4c 100644 --- a/sdk/machines/octatrack/module-adapters/resident_base.patch +++ b/sdk/machines/octatrack/module-adapters/resident_base.patch @@ -114,7 +114,7 @@ + if (!n) return RUNTIME_OK; + if (modwerk_saved_set_busy()) return RUNTIME_BUSY; + int idle = dl_hook_claims_idle(spans, n); -+ return idle > 0 ? RUNTIME_OK : idle < 0 ? RUNTIME_BUSY : RUNTIME_MEMORY; ++ return idle > 0 ? RUNTIME_OK : idle < 0 ? RUNTIME_BUSY : RUNTIME_BUFFER; /* a buffer under a claim, not memory */ +} +int modwerk_stock_hook_begin(unsigned feature, uint32_t module, uint32_t generation, int enable) +{ diff --git a/sdk/machines/octatrack/module-adapters/resident_base_sources.json b/sdk/machines/octatrack/module-adapters/resident_base_sources.json index f1dd24cf42..3b3d888ed2 100644 --- a/sdk/machines/octatrack/module-adapters/resident_base_sources.json +++ b/sdk/machines/octatrack/module-adapters/resident_base_sources.json @@ -1,5 +1,5 @@ { - "dsp.c": "2cf8e385fe9460cab379a105a95279c93001afbea880ab4d0afe16a0c8e00059", + "dsp.c": "3dca8e5533ce375a9dd03dfb593590552d70ade7556a8a862446fa75e8e73061", "dsp_loader.py": "beee14711516351c8ba10e6d99d0d37850f5ee8bd3ee4a71852e180f5e531efd", "dsp_receiver.asm": "c4fd632786e11524f296586a93c9c080dd44b10c23c38cbc18f93f257a741668" } diff --git a/sdk/runtime/loader-refusals.json b/sdk/runtime/loader-refusals.json index 01ac3bf48f..159c6d8bc2 100644 --- a/sdk/runtime/loader-refusals.json +++ b/sdk/runtime/loader-refusals.json @@ -12,6 +12,7 @@ { "code": 8, "name": "RUNTIME_STOCK", "label": "stock bytes differ", "developer": "The bytes under one of its sites are not the stock bytes its hash names: another OS version, or something already patched there.", "musician": "This module doesn’t match what is running on your Octatrack, so nothing changed. Report it in #beta-testers on Discord." }, { "code": 9, "name": "RUNTIME_EVENT", "label": "a base event", "developer": "A site or copy meets a stock site the base owns as an event. Subscribe to that event instead.", "musician": "This version of the module changes a part of the Octatrack that the base now shares between modules. Install its newer version." }, { "code": 10, "name": "RUNTIME_FEATURE", "label": "a base feature down", "developer": "A base feature it requires cannot come up this boot (the key bus after a DSP core lost its state). Restart the unit, then retry.", "musician": "The Octatrack can’t start the key bus this module needs until it restarts. Turn it off and on, then sync again." }, - { "code": 11, "name": "RUNTIME_UI_OPEN", "label": "window open", "developer": "A window, page or key layer of the module it would replace or remove is still open (the stock UI roots name its memory, or a task is paused in its code). Close it on the unit, then retry.", "musician": "A module this sync changes or removes still has its window open on the Octatrack. Close it (press NO or open another page), then sync again." } + { "code": 11, "name": "RUNTIME_UI_OPEN", "label": "window open", "developer": "A window, page or key layer of the module it would replace or remove is still open (the stock UI roots name its memory, or a task is paused in its code). Close it on the unit, then retry.", "musician": "A module this sync changes or removes still has its window open on the Octatrack. Close it (press NO or open another page), then sync again." }, + { "code": 12, "name": "RUNTIME_BUFFER", "label": "meets a buffer", "developer": "Its DSP claims meet the delay buffer of an effect a track runs (on the Octatrack, a key-bus reader meets a module effect's FX2 buffer on T1, T5 or T7 that has no reviewed exact extent). Move that effect to another slot, or give its package a reviewed buffer policy (controller_policy.c), then retry.", "musician": "Another module’s effect keeps its delay buffer in the memory this module reads. On the Octatrack that’s a module effect on FX2 of track 1, 5 or 7: move it to FX2 of another track, then sync again." } ] } diff --git a/sdk/runtime/loader/README.md b/sdk/runtime/loader/README.md index 9b382ad956..2c9265ae55 100644 --- a/sdk/runtime/loader/README.md +++ b/sdk/runtime/loader/README.md @@ -212,7 +212,10 @@ entry, a DSP word u32. Then the DSP words and relocations, as before. Claims and meets another live module's claim when either of the two writes (`RUNTIME_CONFLICT`); the machine checks the rest (`modwerk_machine_dsp_claims_admit`, weak: a machine with no DSP ledger refuses every claim). The Octatrack's resident base refuses a claim on any base feature's words but a read wholly inside a feature the package requires, - and one over a live or planned slot buffer (`RUNTIME_MEMORY`), and keeps every buffer clear of live claims. + and one over a live or planned slot buffer (`RUNTIME_BUFFER`, 12; `RUNTIME_MEMORY` until base 0.7.10), and keeps + every buffer clear of live claims. A slot's buffer counts as the whole block unless the effect's exact package has + a reviewed extent (`controller-policy/controller_policy.c`: E-Verb, Mini Verb, BBD Delay and Vibrato), so a key-bus + reader is refused only beside a module effect on FX2 of T1, T5 or T7 whose buffer can reach the bus. - **Hook entries** are checked whole and then refused (`RUNTIME_CONFLICT`) in an ABI 9 package: an ABI 9 base has no hook slots. ABI 10 gives them to engines (below). diff --git a/sdk/runtime/loader/loader.h b/sdk/runtime/loader/loader.h index af71b940c4..f2235f755a 100644 --- a/sdk/runtime/loader/loader.h +++ b/sdk/runtime/loader/loader.h @@ -144,9 +144,12 @@ enum runtime_refusal { RUNTIME_OK, RUNTIME_MALFORMED, RUNTIME_MEMORY, RUNTIME_CO RUNTIME_FEATURE /* ABI 9: a base feature the package requires cannot come up this boot (on the * Octatrack, the key bus with a DSP core's state lost): restart, then retry */, RUNTIME_UI_OPEN /* a window, page or key layer of the module it would replace or remove is still - * open (capability 1024): close it, then retry */ }; + * open (capability 1024): close it, then retry */, + RUNTIME_BUFFER /* ABI 9: a claim meets the delay buffer of an effect a track runs or will run (the + * machine's buffer census): move that effect to another slot, then retry */ }; /* ABI 9 refusals use the codes above: a feature the base does not have, a claim another live module's claim meets - * (either writing), and (ABI 9) any hook entry are RUNTIME_CONFLICT. ABI 10: an engine the machine does not admit + * (either writing), and (ABI 9) any hook entry are RUNTIME_CONFLICT; a claim under an effect's delay buffer is + * RUNTIME_BUFFER (never RUNTIME_MEMORY, which is the module pool and the DSP's own limits). ABI 10: an engine the machine does not admit * (modwerk_machine_dsp_engine_admit) answers the machine's refusal. */ /* ABI 7's site record (a 32-byte hash for the stock bytes) is never longer than ABI 6's (the stock bytes). */ #define RUNTIME_PACKAGE_BYTES (RUNTIME_HEADER_BYTES + 4u * RUNTIME_HOOKS + RUNTIME_IMAGE_BYTES + 4u * RUNTIME_RELOCATIONS + \ diff --git a/sdk/tests/test_controller_policy.py b/sdk/tests/test_controller_policy.py index b3c86c017e..6821f7b323 100644 --- a/sdk/tests/test_controller_policy.py +++ b/sdk/tests/test_controller_policy.py @@ -7,6 +7,7 @@ ROOT = Path(__file__).resolve().parents[2] POLICY = ROOT / 'sdk/machines/octatrack/module-adapters/controller-policy' +RESIDENT = ROOT / 'sdk/machines/octatrack/module-adapters/resident-runtime' RUNTIME = ROOT / 'sdk/machines/octatrack/module-adapters/resident-runtime' @@ -24,10 +25,10 @@ def test_exact_association_owned_job_partial_ack_and_retirement_contract(self): self.assertEqual(result.returncode, 0, result.stderr) @unittest.skipUnless(shutil.which('cc'), 'Native C compiler unavailable') - def test_every_known_and_unknown_resource_claim_is_closed(self): + def test_only_reviewed_exact_packages_narrow_a_buffer_and_everything_else_is_closed(self): with tempfile.TemporaryDirectory() as tmp: executable = Path(tmp) / 'closed-policy' - result = subprocess.run(['cc', '-std=c11', '-Wall', '-Wextra', '-Werror', '-pedantic', + result = subprocess.run(['cc', '-std=c11', '-Wall', '-Wextra', '-Werror', '-pedantic', '-I' + str(RESIDENT), str(POLICY / 'controller_policy.c'), str(POLICY / 'test_controller_policy.c'), '-o', str(executable)], capture_output=True, text=True) self.assertEqual(result.returncode, 0, result.stderr) @@ -40,7 +41,7 @@ def test_mcf54455_bridge_symbols_are_strong_and_default_closed(self): with tempfile.TemporaryDirectory() as tmp: obj = Path(tmp) / 'closed-policy.o' result = subprocess.run(['m68k-elf-gcc', '-mcpu=54455', '-Os', '-Wall', '-Wextra', '-Werror', - '-ffreestanding', '-fno-builtin', '-c', str(POLICY / 'controller_policy.c'), '-o', str(obj)], + '-ffreestanding', '-fno-builtin', '-I' + str(RESIDENT), '-c', str(POLICY / 'controller_policy.c'), '-o', str(obj)], capture_output=True, text=True) self.assertEqual(result.returncode, 0, result.stderr) symbols = subprocess.run(['m68k-elf-nm', str(obj)], capture_output=True, text=True, check=True).stdout diff --git a/src/community/octatrack-diagnostics-contract.ts b/src/community/octatrack-diagnostics-contract.ts index 98dd49ed78..f1fb5ab3b0 100644 --- a/src/community/octatrack-diagnostics-contract.ts +++ b/src/community/octatrack-diagnostics-contract.ts @@ -35,7 +35,7 @@ export type BaseGuideStep = typeof BASE_GUIDE_STEPS[number] * link's other error labels. Anything else is `other`. */ export const SYNC_FAILURE_REASONS = [ 'disconnected', 'cancelled', 'stale', 'save', 'selftest', 'rollback', 'unknown', 'unsafe', 'device', - 'refused', 'refused-1', 'refused-2', 'refused-3', 'refused-4', 'refused-5', 'refused-6', 'refused-7', 'refused-8', 'refused-9', 'refused-10', 'refused-11', + 'refused', 'refused-1', 'refused-2', 'refused-3', 'refused-4', 'refused-5', 'refused-6', 'refused-7', 'refused-8', 'refused-9', 'refused-10', 'refused-11', 'refused-12', 'transport', 'transport-session', 'transport-baseline', 'transport-encode', 'transport-stage', 'transport-activate', 'transport-trial', 'other', ] as const From 42b44a45e35564d41753850a97a29004ed4e6af8 Mon Sep 17 00:00:00 2001 From: claptom-music <350865352+Claptom-music@users.noreply.github.com> Date: Thu, 19 Nov 2026 11:46:41 +0100 Subject: [PATCH 083/415] Digitakt II machines: where a track's knob values are, on both chips Co-Authored-By: Claude Opus 5.5 --- sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md index 258a9a3b0a..7ad3785cd7 100644 --- a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md @@ -174,6 +174,12 @@ So a grain is a record of its own: a copy of the voice's record with its own pos No halt and no missing blocks; stock voices on other tracks are untouched. The stock player clobbers `R0`-`R2`, `R4`, `R8`, `R12`, `I4`, `I12`, `I13`, `M4`, `B4`, `L3` and `L4`, so a player keeps what it needs across calls in its own memory. +### Where a machine's knob values are (19 November 2026) + +- **ColdFire, the kit's values.** Track `t`'s sound is at `0x426532ec + 0x450 * t` (the track's type byte at `+0xa2`). Its machine slots 25-34 are big-endian halfwords from `+0x46` (value << 8): slot 31 (START) at `+0x52`, 32 (LENGTH) at `+0x54`, so 26 at `+0x48`, 27 at `+0x4a`, 33 at `+0x56`. Panel probe: turning knob E and F on the SRC page changed exactly those bytes. +- **Sound chip, per voice.** The voice parameter record (`0xdc` bytes per voice from `0x250738`, byte addresses) holds the SRC values the setup uses: word `0x25` START, `0x26` LENGTH, `0x27` LOOP as floats 0-1, word `0x2a` START and `0x2b` LENGTH as whole numbers, `0x2d` the loop start as a whole number (it followed START when LOOP was 0). PLAY did not change this record. Coupled runs from the same ready point, knobs turned on the SRC page before the note, record dumped at the renderer: these words, and only these, changed. A value that reaches the sound chip with each note, as this one does, is where a trig lock arrives too (not yet tested with a lock). +- **Turning a knob in a coupled run.** Press SRC first, then send separate small encoder events (`enc 5 100` every 2.5 M instructions; encoder 1-8 are knobs A-H). One large turn (`enc 5 1920`, queued as many packets at once) changed nothing. The encoder accelerates: twenty turns of 100 took START from 0 to 119. + ### Machine modules' sound-chip parts in the build (19 November 2026) A machine module carries its player in its package as `build.dt2_sharc` version 2: L2 allocations at fixed addresses (claim each range as a dsp-region) and `{type, entry}` for each machine type it plays. The base keeps L2 `0x200c0100`-`0x200c3000` for its own machine parts. After the kit build, `preflightBuiltFile` (Digitakt II only) calls `composeDt2MachineBuild`: it reads every selected package's part, adds the longer selector table, the player dispatcher and the modules' allocations to section 7, and runs the preflight with that plan. A selection with no part leaves the kit build as it is. From 07a2c80e2de211f917865b0441ce0a7af7e074e7 Mon Sep 17 00:00:00 2001 From: claptom-music <350865352+Claptom-music@users.noreply.github.com> Date: Thu, 19 Nov 2026 11:59:03 +0100 Subject: [PATCH 084/415] Digitakt II machines: own knob names on the stand-in's parameters An added machine's knobs are its stand-in's parameters, shown under its own names: the descriptor lookup points those rows' names at the machine's knobs and back. Knob C becomes SAMPLE's crossfade parameter. Saving, trig locks, recording, MIDI and the sound chip's values stay the stand-in's. Drops the parameter-table copy (109 sites): codes past 275 read past per-code arrays the OS keeps beside the table, which crashed the SRC page. Co-Authored-By: Claude Opus 5.5 --- sdk/machines/digitakt-ii/elekloader/base.json | 771 +----------------- .../elekloader/modwerk/MACHINES.md | 17 +- .../elekloader/modwerk/machine-knobs.c | 101 +++ .../elekloader/modwerk/machine-params.c | 109 --- .../elekloader/modwerk/machines-entry.s | 24 +- .../modwerk/tests/machines-fixture.c | 10 +- .../digitakt-ii/include/mk2/machines.h | 11 +- 7 files changed, 135 insertions(+), 908 deletions(-) create mode 100644 sdk/machines/digitakt-ii/elekloader/modwerk/machine-knobs.c delete mode 100644 sdk/machines/digitakt-ii/elekloader/modwerk/machine-params.c diff --git a/sdk/machines/digitakt-ii/elekloader/base.json b/sdk/machines/digitakt-ii/elekloader/base.json index 7eb8e054cf..3ef1d15f76 100644 --- a/sdk/machines/digitakt-ii/elekloader/base.json +++ b/sdk/machines/digitakt-ii/elekloader/base.json @@ -47,7 +47,7 @@ "../modwerk/mixer.c", "../modwerk/mixer-entry.s", "../modwerk/machines.c", - "../modwerk/machine-params.c", + "../modwerk/machine-knobs.c", "../modwerk/machines-entry.s", "../modwerk/fw-bindings.s" ], @@ -72,8 +72,7 @@ "FW_STARTUP_PROJECT_FILE": "0x4099d698", "FW_ACTIVE_PROJECT": "0x41776c9c", "FW_STARTUP_KITS_OFFSET": "0xae0200", - "FW_STARTUP_KIT_STRIDE": "0x5800", - "BOOT_INIT": "1" + "FW_STARTUP_KIT_STRIDE": "0x5800" }, "sites": [ { @@ -222,772 +221,6 @@ "stockSha256": "9123093562f982f533c055b957ef510dd2438a23b5bd8ed1470024b218b90344", "op": "jsr", "target": "core_project_created" - }, - { - "addr": "0x4003a7da", - "len": 4, - "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", - "op": "bytes", - "new": "00000127" - }, - { - "addr": "0x4003a7ea", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x4003a8b4", - "len": 4, - "stockSha256": "372a91152e6e27999781cfcd72afd325bc83c7f98255307d74fda58b16cc7c41", - "op": "bytes", - "new": "00000126" - }, - { - "addr": "0x4003a8cc", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x4003acfe", - "len": 4, - "stockSha256": "372a91152e6e27999781cfcd72afd325bc83c7f98255307d74fda58b16cc7c41", - "op": "bytes", - "new": "00000126" - }, - { - "addr": "0x4003adc6", - "len": 4, - "stockSha256": "372a91152e6e27999781cfcd72afd325bc83c7f98255307d74fda58b16cc7c41", - "op": "bytes", - "new": "00000126" - }, - { - "addr": "0x4003b52a", - "len": 4, - "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", - "op": "bytes", - "new": "00000127" - }, - { - "addr": "0x4003b532", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x4003b7ce", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x4003b7d4", - "len": 4, - "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", - "op": "bytes", - "new": "00000127" - }, - { - "addr": "0x4003b870", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x4003b876", - "len": 4, - "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", - "op": "bytes", - "new": "00000127" - }, - { - "addr": "0x4003b924", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x4003b92a", - "len": 4, - "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", - "op": "bytes", - "new": "00000127" - }, - { - "addr": "0x4003b9ca", - "len": 4, - "stockSha256": "372a91152e6e27999781cfcd72afd325bc83c7f98255307d74fda58b16cc7c41", - "op": "bytes", - "new": "00000126" - }, - { - "addr": "0x4003b9da", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x4003bc80", - "len": 4, - "stockSha256": "372a91152e6e27999781cfcd72afd325bc83c7f98255307d74fda58b16cc7c41", - "op": "bytes", - "new": "00000126" - }, - { - "addr": "0x4003cf96", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x4003cf9c", - "len": 4, - "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", - "op": "bytes", - "new": "00000127" - }, - { - "addr": "0x4003d038", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x4003d03e", - "len": 4, - "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", - "op": "bytes", - "new": "00000127" - }, - { - "addr": "0x4003d0e4", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x4003d0ea", - "len": 4, - "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", - "op": "bytes", - "new": "00000127" - }, - { - "addr": "0x4003d1b4", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x4003d1ba", - "len": 4, - "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", - "op": "bytes", - "new": "00000127" - }, - { - "addr": "0x4003dc2c", - "len": 4, - "stockSha256": "372a91152e6e27999781cfcd72afd325bc83c7f98255307d74fda58b16cc7c41", - "op": "bytes", - "new": "00000126" - }, - { - "addr": "0x4003dc44", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x4003df4e", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x4003e170", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x4003e36e", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x40048652", - "len": 4, - "stockSha256": "372a91152e6e27999781cfcd72afd325bc83c7f98255307d74fda58b16cc7c41", - "op": "bytes", - "new": "00000126" - }, - { - "addr": "0x40048666", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x4004ff14", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x400682ee", - "len": 4, - "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", - "op": "bytes", - "new": "00000127" - }, - { - "addr": "0x400682f6", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x4006b15e", - "len": 4, - "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", - "op": "bytes", - "new": "00000127" - }, - { - "addr": "0x4006b166", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x4006c984", - "len": 4, - "stockSha256": "372a91152e6e27999781cfcd72afd325bc83c7f98255307d74fda58b16cc7c41", - "op": "bytes", - "new": "00000126" - }, - { - "addr": "0x4006c998", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x4006cb7a", - "len": 4, - "stockSha256": "372a91152e6e27999781cfcd72afd325bc83c7f98255307d74fda58b16cc7c41", - "op": "bytes", - "new": "00000126" - }, - { - "addr": "0x4006cb8c", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x4006cd72", - "len": 4, - "stockSha256": "372a91152e6e27999781cfcd72afd325bc83c7f98255307d74fda58b16cc7c41", - "op": "bytes", - "new": "00000126" - }, - { - "addr": "0x4006d06e", - "len": 4, - "stockSha256": "372a91152e6e27999781cfcd72afd325bc83c7f98255307d74fda58b16cc7c41", - "op": "bytes", - "new": "00000126" - }, - { - "addr": "0x4006d080", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x4006d8fa", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x4006d936", - "len": 4, - "stockSha256": "372a91152e6e27999781cfcd72afd325bc83c7f98255307d74fda58b16cc7c41", - "op": "bytes", - "new": "00000126" - }, - { - "addr": "0x4006d9c4", - "len": 4, - "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", - "op": "bytes", - "new": "00000127" - }, - { - "addr": "0x4006d9d6", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x4007370c", - "len": 4, - "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", - "op": "bytes", - "new": "00000127" - }, - { - "addr": "0x40073714", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x4007416c", - "len": 4, - "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", - "op": "bytes", - "new": "00000127" - }, - { - "addr": "0x40074174", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x4007448a", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x40074f88", - "len": 4, - "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", - "op": "bytes", - "new": "00000127" - }, - { - "addr": "0x40074f90", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x400c2fc6", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x400c2fcc", - "len": 4, - "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", - "op": "bytes", - "new": "00000127" - }, - { - "addr": "0x400c8934", - "len": 4, - "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", - "op": "bytes", - "new": "00000127" - }, - { - "addr": "0x400c8958", - "len": 4, - "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", - "op": "bytes", - "new": "00000127" - }, - { - "addr": "0x400c896a", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x400c8c72", - "len": 4, - "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", - "op": "bytes", - "new": "00000127" - }, - { - "addr": "0x400c8c7a", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x400d35b4", - "len": 4, - "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", - "op": "bytes", - "new": "00000127" - }, - { - "addr": "0x400d35bc", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x400da042", - "len": 4, - "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", - "op": "bytes", - "new": "00000127" - }, - { - "addr": "0x400da04a", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x400da066", - "len": 4, - "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", - "op": "bytes", - "new": "00000127" - }, - { - "addr": "0x400da06e", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x400da08c", - "len": 4, - "stockSha256": "372a91152e6e27999781cfcd72afd325bc83c7f98255307d74fda58b16cc7c41", - "op": "bytes", - "new": "00000126" - }, - { - "addr": "0x400da0a0", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x400da0fc", - "len": 4, - "stockSha256": "372a91152e6e27999781cfcd72afd325bc83c7f98255307d74fda58b16cc7c41", - "op": "bytes", - "new": "00000126" - }, - { - "addr": "0x400da110", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x400da16a", - "len": 4, - "stockSha256": "372a91152e6e27999781cfcd72afd325bc83c7f98255307d74fda58b16cc7c41", - "op": "bytes", - "new": "00000126" - }, - { - "addr": "0x400da17e", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x400da1dc", - "len": 4, - "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", - "op": "bytes", - "new": "00000127" - }, - { - "addr": "0x400da1e4", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x400da208", - "len": 4, - "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", - "op": "bytes", - "new": "00000127" - }, - { - "addr": "0x400da210", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x400da234", - "len": 4, - "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", - "op": "bytes", - "new": "00000127" - }, - { - "addr": "0x400da23c", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x400da268", - "len": 4, - "stockSha256": "372a91152e6e27999781cfcd72afd325bc83c7f98255307d74fda58b16cc7c41", - "op": "bytes", - "new": "00000126" - }, - { - "addr": "0x400da27c", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x400da2cc", - "len": 4, - "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", - "op": "bytes", - "new": "00000127" - }, - { - "addr": "0x400da2d4", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x400da300", - "len": 4, - "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", - "op": "bytes", - "new": "00000127" - }, - { - "addr": "0x400da308", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x400da33a", - "len": 4, - "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", - "op": "bytes", - "new": "00000127" - }, - { - "addr": "0x400da342", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x400da370", - "len": 4, - "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", - "op": "bytes", - "new": "00000127" - }, - { - "addr": "0x400da38a", - "len": 4, - "stockSha256": "44e3a2859483484ddcea81817e0e0d8715d4aabac9f13c4f1b2f7b9faa69baa2", - "op": "ptr", - "target": "core_params", - "addend": 8 - }, - { - "addr": "0x400da49a", - "len": 4, - "stockSha256": "372a91152e6e27999781cfcd72afd325bc83c7f98255307d74fda58b16cc7c41", - "op": "bytes", - "new": "00000126" - }, - { - "addr": "0x400da4aa", - "len": 4, - "stockSha256": "66881a0fe7d7ab8fe96bdc686e13771ed2636deed2c066713c7e7a99bf6668d6", - "op": "ptr", - "target": "core_params", - "addend": 32 - }, - { - "addr": "0x400da4b6", - "len": 4, - "stockSha256": "66881a0fe7d7ab8fe96bdc686e13771ed2636deed2c066713c7e7a99bf6668d6", - "op": "ptr", - "target": "core_params", - "addend": 32 - }, - { - "addr": "0x400da598", - "len": 4, - "stockSha256": "372a91152e6e27999781cfcd72afd325bc83c7f98255307d74fda58b16cc7c41", - "op": "bytes", - "new": "00000126" - }, - { - "addr": "0x400da5a6", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x400da5f8", - "len": 4, - "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", - "op": "bytes", - "new": "00000127" - }, - { - "addr": "0x400da600", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x400da622", - "len": 4, - "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", - "op": "bytes", - "new": "00000127" - }, - { - "addr": "0x400da62a", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x400da646", - "len": 4, - "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", - "op": "bytes", - "new": "00000127" - }, - { - "addr": "0x400da64e", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x400da66a", - "len": 4, - "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", - "op": "bytes", - "new": "00000127" - }, - { - "addr": "0x400da672", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x400da68e", - "len": 4, - "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", - "op": "bytes", - "new": "00000127" - }, - { - "addr": "0x400da696", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x400da8be", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x40104346", - "len": 4, - "stockSha256": "b90108328cc38b915d08a8f605eef5559abf1c92f5e37ada69e86a1ae8369a41", - "op": "bytes", - "new": "00000127" - }, - { - "addr": "0x4010434e", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" - }, - { - "addr": "0x40105d70", - "len": 4, - "stockSha256": "d17ef57ef54be680413d964453700ea4128c472457eacb7da0e3e2089816ee11", - "op": "ptr", - "target": "core_params" } ], "collections": { diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md index 7ad3785cd7..24e7c33307 100644 --- a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md @@ -4,7 +4,7 @@ The Digitakt II base will let modules add track machines beside the seven stock ## Plan -1. **ColdFire side.** A base table `core_machines` (four entries to start) of records naming the machine, its five knob labels, parameter ranges and formatters. The base maps each record to a machine type after the stock ones, so the machine menu lists it, the SRC page draws its knobs and kits save it. Its values live in the track's ten machine-parameter slots (sound slots 25-34), so parameter locks, live recording and the LFO work as on stock machines. A kit that names a type no installed module provides falls back to the stock sample machine. +1. **ColdFire side.** A base table `core_machines` (four entries to start) of records naming the machine and its five knobs. The base maps each record to a machine type after the stock ones, so the machine menu lists it, the SRC page draws its knobs and kits save it. Its values live in the track's ten machine-parameter slots (sound slots 25-34), so parameter locks, live recording and the LFO work as on stock machines. A kit that names a type no installed module provides falls back to the stock sample machine. 2. **Sound-chip side.** For a track whose type is an added machine, the voice loop calls the module's routine instead of the stock sample renderer, with the track's sample slot record, its note and its knob values. The stock filter, amp envelope and LFO still process the output. Mono first; stereo is a separate decision. 3. **Mikrotakt** subscribes to both, as its own module pull request. @@ -16,7 +16,7 @@ Read from the decoded main image (load address `0x40000400`) on 18 November 2026 | --- | --- | --- | | `0x400c89a4` | Machine descriptor lookup: types 0-6 return a 44-byte record at `0x4293b960 + type * 44`; any other type returns a default record at `0x4293ba68`. Six absolute references (`0x40017cf2`, `0x40042004`, `0x40049b72`, `0x40049fa4`, `0x4006217e`, `0x4006a5ae`). | The base answers added types here, as the Mixer already does for page ids at `0x400c898a`. | | `0x4293b960` | The seven machine descriptors, built at start-up (`0x401c4aae` and `0x401c515e`/`0x401c519e`). | RAM, not image data. | -| `0x4020f59c` | Parameter table, `0x3c`-byte rows, formatter pointer at row `+0x34`; 53 absolute references, so rows cannot be appended in place. | Added machines' parameter rows need a lookup hook, not a longer table. | +| `0x4020f59c` | Parameter table, `0x3c`-byte rows, formatter pointer at row `+0x34`; 53 absolute references, so rows cannot be appended in place. | Added machines show the stand-in's rows under their own names (see Own knob names); the table keeps its 275 rows. | | `0x400da3a2` | Parameter code for (sound slot, machine type): slots 25-34 with a type up to 6 read a per-type table; a higher type returns 0 (no parameter). Six references (`0x4000ffa8`, `0x4003a960`, `0x400430cc`, `0x40050b4c`, `0x40050d1c`, `0x400e650c`). | The base answers the five knob slots for added types here. | | `0x4005f6bc` | The SRC page view's machine type for the current track (three callers in the SRC view: `0x4001702c`, `0x40017736`, `0x40017bd2`). | Decides the SRC page's second page (sample view) per type. | | `0x400dab9e`, `0x400dac80` | MIDI CC (up to 127) and NRPN (up to 398) to parameter mapping, five callers each. | Added machines' knobs must answer MIDI like stock knobs. | @@ -31,7 +31,7 @@ Layout read from the start-up code: `+0x00` the name and `+0x04` the second labe ### The parameter table cannot grow in place -The 275 rows at `0x4020f59c` are image data. 53 absolute references load the table and about 45 bound checks compare a code with 275 (`cmpi.l #0x113`: 24 with `d0`, 2 with `d1`, 10 with `d2`) or 274 (9 with `d0`), many inline. New knob names therefore need the table relocated: a copy in the base's memory with rows appended, a pointer site at each reference and a bytes site at each bound. The Elekloader builder supports both kinds of site (`ptr` and `bytes`, and relocatable data copies). The base owns them all; no module may patch them. First step before that: a test machine whose knobs use stock rows, to prove the descriptor and parameter-code hooks in the emulator. +The 275 rows at `0x4020f59c` are image data, reached by 56 absolute references and guarded by 56 checks against 275 or 274, and the OS keeps other per-code arrays of 275 entries beside it. An added machine therefore takes no new rows: it shows its stand-in's parameters under its own names (Own knob names, below). ## The record a module contributes (draft) @@ -40,7 +40,7 @@ One `core_machines` entry per machine: | Field | Meaning | | --- | --- | | name, short name | As the machine menu and the SRC page header show them (stock lengths). | -| five knob rows | Knobs B, C, E, F and G: name, short name, minimum, maximum, default, and a formatter (the stock ones, or the module's). Knob A stays TUNE, D the sample slot, H the track level. | +| five knob names | Knobs B, C, E, F and G: name and short name, for the stand-in's parameters at those knobs (range, value and behaviour stay the stand-in's). Knob A stays TUNE, D the sample slot, H the track level. | | sample flag | Whether knob D selects a sample (a sampler) or is unused (a synth). | | sound-chip routines | Note-on and render for one voice, in the module's sound-chip package, with the voice's note, the five knob values and, for a sampler, its slot record. | @@ -186,14 +186,13 @@ A machine module carries its player in its package as `build.dt2_sharc` version Local end-to-end check: OS 1.17, the development base `37b4db44` linked by Elekloader, and a stand-in module part (the silent player at `0x200d0000`, type 7). The composed image passed the preflight: sections 2, 4, 5 and 8 byte for byte stock, section 7 verified against the plan, 36 changed ranges and 11,632 appended bytes in the main OS (the base), flash headroom 1,395,888 bytes. Not yet run in the emulator as a whole file (the emulator runs so far used the DSP images directly). -### Own knob names: the parameter table copy (work in progress, 19 November 2026) +### Own knob names (19 November 2026) -The OS 1.17 parameter table (275 rows of `0x3c` at `0x4020f59c`) has no spare machine rows: every row for the machine slots belongs to a stock machine (only SAMPLE's CFADE row, code `0xcc`, is never shown). Rows: `+0x00` owner (machine 0-6, other groups up to 32), `+0x04` sound slot, `+0x08`/`+0x0c`/`+0x10` min, max, default (value << 8), `+0x18`/`+0x1a` CC halfwords and `+0x1c` NRPN (negative: none), `+0x28` name, `+0x2c` a routine every row loop calls, `+0x30` label, `+0x34` formatter. The MIDI-map builder (`0x400da8bc` loop) files a row under its owner and skips owners from 33 up. +An added machine's knobs are its stand-in's own parameters, shown under the machine's names. `machine-knobs.c`: the descriptor lookup's entry (`0x400c89a4`) calls `core_machine_knob_names(type)` for every type a page asks for; for an added machine with knob names it points the names of the stand-in's parameter rows at those knobs (row `+0x28` name, `+0x30` short name, in the OS's own table at `0x4020f59c`, which is in RAM) and puts the stock names back when a page asks for any other machine. Knob C, which SAMPLE does not show (its descriptor has code 0 there), gets SAMPLE's crossfade parameter (code `0xcc`, sound slot 27) when a machine standing for SAMPLE names it; the parameter-code lookup answers an added type as its stand-in, which gives slot 27 that same code. Saving, trig locks, live recording, MIDI and the values the sound chip receives are the stand-in's, unchanged. -`machine-params.c` keeps a copy, `core_params` (275 + 20 rows): `core_boot_init` (core.s `.boot`, `BOOT_INIT`) copies the stock rows from the running image and appends five rows per added type, built from SAMPLE's level row (`0xd1`) with owner `0x40`, the knob's slot (26, 27, 31, 32, 33 for knobs B, C, E, F, G), its name, label and range, and no CC or NRPN. `base.json` has 56 `ptr` sites (every absolute reference, three of them at an offset) and 56 `bytes` sites (every `cmpi.l #275`/`#274` against a code) found by a scan of the image (`table_sites.py`, local). An added machine's descriptor is a copy of its stand-in's with the five knobs' codes replaced (`core_machine_descriptor`), and the parameter-code lookup answers those slots with the new codes (`core_machine_slot_code`). - -Emulator (panel probe, ColdFire only): with the copy and the raised bounds but a test machine without own knobs, boot and the SRC page of SAMPLE and of type 7 are as before. With own knobs (codes 275-279), opening the type-7 SRC page faults (`UnsupportedGuestPc(0x00000001)`): something indexes per-code data beyond 275 that the scan did not find (no 16-bit bound matches). Register records at every table reference (panel probe `--regs-at`, replayed from a saved boot state so the 4,096-record buffer covers the fault) showed the last reads with code 278 in `0x40045582`, which dispatches on the row's owner: owners 24 and 31 one way, 18-23 another, any other to `0x40036216` (the track's record), whose caller then calls through an object. With owner `0x40` that faults. Two changes: an added row's owner is now its stand-in machine, and the three loops that walk every row (`0x4003d990`, `0x4004ffc4`, `0x400dab7c`: their bounds are the immediates followed by `bne`) stay at 275, so the MIDI-map builder never files an added row under SAMPLE. Opening the type-7 SRC page still faults the same way. Likely cause: the loop at `0x4004ff36` builds a per-row object through the row's `+0x2c` routine, and an added row, outside that loop, has none. Next: run that routine for the added rows too (after the loop, in the base) or let that one loop see them, and check what it registers. Until then the development fixture uses the stand-in's knobs. +Emulator (panel probe, development base `d26c8874`, test machine naming all five knobs): the type-7 SRC page shows TMOD, TSIZ (knob C), TPOS, TLEN and TSPR with the stand-in's knob graphics, a turned knob shows its value, and back on SAMPLE the page shows PLAY, STRT, LEN, LOOP and no knob C again. No fault. +Why not new parameter rows (the first attempt, a copy of the table with five rows per added machine, 56 pointer sites and 56 bound checks raised): opening the type-7 SRC page jumped to address 1. The lookup `0x400c892e` returns code `c`'s object at `0x4293c040 + 0x44 * c`, an array of 275 per-code objects in RAM built at start-up; with its bound raised, code 278 read past the array. Of the 56 bound checks, 17 guard arrays other than the parameter table (local disassembly of each), so new codes would need every such array grown. Reusing the stand-in's parameters needs none of them. ## Still to check diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/machine-knobs.c b/sdk/machines/digitakt-ii/elekloader/modwerk/machine-knobs.c new file mode 100644 index 0000000000..ff6d36f9ec --- /dev/null +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/machine-knobs.c @@ -0,0 +1,101 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +/* Knob names for added machines (OS 1.17). + * + * An added machine's knobs are its stand-in's own parameters: the SRC page, trig locks, live recording, MIDI, saved + * kits and the sound chip treat them exactly as the stand-in's, so a module reads their values where the stand-in's + * arrive (the sound chip's voice parameter record, MACHINES.md). What changes is what the screen calls them: when a + * page asks for an added machine's descriptor, the base points those parameter rows' names (+0x28 name, +0x30 short + * name) at the machine's knob names, and back to the stock names when it asks for any other machine's. Knob C, which SAMPLE does not show, becomes + * SAMPLE's crossfade parameter (code 0xcc, sound slot 27) when a machine standing for SAMPLE names it. + * + * Not new parameter rows: the OS keeps per-code arrays of exactly 275 entries besides the parameter table (the + * per-code objects at 0x4293c040 among them; 17 of the 56 checks against the row count guard such arrays), so a code + * past 275 reads past their ends. MACHINES.md has the trace. + */ +#include +#include + +#define PARAMS ((uint32_t *)0x4020f59cu) /* 275 rows of 0x3c bytes */ +#define PARAM_ROWS 275u +#define ROW_WORDS 15u +#define ROW_NAME 10u /* +0x28 */ +#define ROW_SHORT 12u /* +0x30 */ +#define SAMPLE_TYPE 0u +#define SAMPLE_CROSSFADE 0xccu + +/* Knob positions A-H in a descriptor's eight codes for the five knobs: B, C, E, F, G. */ +static const uint8_t KNOB_POSITION[DT2_MACHINE_KNOBS] = { 1, 2, 4, 5, 6 }; + +extern const struct dt2_machine *const core_machines[DT2_MACHINE_COUNT]; +extern const uint32_t *core_stock_descriptor(uint32_t type); + +/* An added machine's descriptor: the stand-in's 44-byte descriptor, with knob C given SAMPLE's crossfade parameter + * when the machine stands for SAMPLE and names knob C. Built on first use, after the OS has built its own. */ +static uint32_t descriptors[DT2_MACHINE_COUNT][11]; +static uint8_t built[DT2_MACHINE_COUNT]; + +const uint32_t *core_machine_descriptor(uint32_t type) +{ + const struct dt2_machine *machine = dt2_machine_at(type, core_machines); + if (!machine) { + return 0; + } + uint32_t n = type - DT2_MACHINE_FIRST; + if (!built[n]) { + const uint32_t *stock = core_stock_descriptor(machine->stands_for); + for (uint32_t w = 0; w < 11; ++w) { + descriptors[n][w] = stock[w]; + } + if (machine->stands_for == SAMPLE_TYPE && machine->knobs[1].name && !descriptors[n][2 + KNOB_POSITION[1]]) { + descriptors[n][2 + KNOB_POSITION[1]] = SAMPLE_CROSSFADE; + } + built[n] = 1; + } + return descriptors[n]; +} + +/* The stock names of the rows renamed now, to put back. */ +static struct { uint32_t code, name, shortname; } saved[DT2_MACHINE_KNOBS]; +static uint32_t saved_count; +static uint32_t shown; /* the added type whose names the rows carry, 0 for none */ + +static void restore(void) +{ + for (uint32_t i = 0; i < saved_count; ++i) { + uint32_t *row = &PARAMS[saved[i].code * ROW_WORDS]; + row[ROW_NAME] = saved[i].name; + row[ROW_SHORT] = saved[i].shortname; + } + saved_count = 0; + shown = 0; +} + +/* Called by the machine descriptor lookup (machines-entry.s) for every type it is asked for: a page asks for the + * machine's descriptor before it draws or edits that machine's knobs, so the rows carry the names of the machine + * asked for last. */ +void core_machine_knob_names(uint32_t type) +{ + const struct dt2_machine *machine = dt2_machine_at(type, core_machines); + if ((machine ? type : 0) == shown) { + return; + } + restore(); + if (machine) { + const uint32_t *descriptor = core_machine_descriptor(type); + for (uint32_t knob = 0; knob < DT2_MACHINE_KNOBS; ++knob) { + const struct dt2_machine_knob *k = &machine->knobs[knob]; + uint32_t code = descriptor[2 + KNOB_POSITION[knob]]; + if (!k->name || !code || code >= PARAM_ROWS) { + continue; + } + uint32_t *row = &PARAMS[code * ROW_WORDS]; + saved[saved_count].code = code; + saved[saved_count].name = row[ROW_NAME]; + saved[saved_count].shortname = row[ROW_SHORT]; + ++saved_count; + row[ROW_NAME] = (uint32_t)k->name; + row[ROW_SHORT] = (uint32_t)(k->label ? k->label : k->name); + } + shown = type; + } +} diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/machine-params.c b/sdk/machines/digitakt-ii/elekloader/modwerk/machine-params.c deleted file mode 100644 index 408a7a6c1d..0000000000 --- a/sdk/machines/digitakt-ii/elekloader/modwerk/machine-params.c +++ /dev/null @@ -1,109 +0,0 @@ -/* SPDX-License-Identifier: GPL-3.0-or-later */ -/* Parameter rows for added machines' knobs (OS 1.17). - * - * The OS describes every knob with a 0x3c-byte row of a table of 275 rows at 0x4020f59c, reached by 56 absolute - * references and bounded by 56 checks against 275 or 274. The table has no spare rows for new machines, so the base - * keeps its own copy, core_params: at boot, before the OS reads it (core_boot_init, from core.s's .boot), it copies - * the stock rows from the running image and appends DT2_MACHINE_KNOBS rows per added machine type. base.json points - * every reference at the copy and raises every bound by the rows added, except the three loops that walk every row - * (0x4003d98e, 0x4004ffc2, 0x400dab7a): they stay at the stock 275, so the per-type and MIDI tables they build never - * take an added row (the MIDI-map builder would file it under its owner and replace the stand-in's own knob). A row - * is built from the stock SAMPLE level row (a plain 0-127 knob): the knob's own name, label and range, the sound slot - * it edits, the stand-in machine as its owner (the value path dispatches on the owner; an unknown owner faults) and - * no MIDI CC or NRPN. - */ -#include -#include - -#define STOCK_PARAMS ((const uint32_t *)0x4020f59c) -#define PARAM_ROWS 275 -#define ROW_WORDS 15 /* 0x3c bytes */ -#define TEMPLATE_ROW 0xd1 /* SAMPLE's Sample Level: 0-127, default 100 */ -#define ADDED_OWNER 0x40 - -enum { ADDED_ROWS = DT2_MACHINE_COUNT * DT2_MACHINE_KNOBS }; - -uint32_t core_params[(PARAM_ROWS + ADDED_ROWS) * ROW_WORDS]; - -static const uint8_t KNOB_SLOT[DT2_MACHINE_KNOBS] = { 26, 27, 31, 32, 33 }; -/* Knob positions A-H in a descriptor's eight codes for the five knobs: B, C, E, F, G. */ -static const uint8_t KNOB_POSITION[DT2_MACHINE_KNOBS] = { 1, 2, 4, 5, 6 }; - -extern const struct dt2_machine *const core_machines[DT2_MACHINE_COUNT]; - -static uint32_t added_code(uint32_t type, uint32_t knob) -{ - return PARAM_ROWS + (type - DT2_MACHINE_FIRST) * DT2_MACHINE_KNOBS + knob; -} - -void core_boot_init(void) -{ - for (uint32_t i = 0; i < PARAM_ROWS * ROW_WORDS; ++i) { - core_params[i] = STOCK_PARAMS[i]; - } - for (uint32_t type = DT2_MACHINE_FIRST; type <= DT2_MACHINE_LAST; ++type) { - const struct dt2_machine *machine = dt2_machine_at(type, core_machines); - for (uint32_t knob = 0; knob < DT2_MACHINE_KNOBS; ++knob) { - uint32_t *row = &core_params[added_code(type, knob) * ROW_WORDS]; - const uint32_t *template = &STOCK_PARAMS[TEMPLATE_ROW * ROW_WORDS]; - for (uint32_t w = 0; w < ROW_WORDS; ++w) { - row[w] = template[w]; - } - row[0] = machine ? machine->stands_for : 0; - row[1] = KNOB_SLOT[knob]; - row[6] = 0xffffffff; /* +0x18 CC and +0x1a: none */ - row[7] = 0xffffffff; /* +0x1c NRPN: none */ - const struct dt2_machine_knob *k = machine ? &machine->knobs[knob] : 0; - if (k && k->name) { - row[2] = (uint32_t)k->min << 8; - row[3] = (uint32_t)k->max << 8; - row[4] = (uint32_t)k->def << 8; - row[10] = (uint32_t)k->name; - row[12] = (uint32_t)(k->label ? k->label : k->name); - } - } - } -} - -/* The parameter code an added machine's knob at sound slot `slot` uses, or -1 to answer as the stand-in. */ -int32_t core_machine_slot_code(uint32_t slot, uint32_t type) -{ - const struct dt2_machine *machine = dt2_machine_at(type, core_machines); - if (!machine) { - return -1; - } - for (uint32_t knob = 0; knob < DT2_MACHINE_KNOBS; ++knob) { - if (KNOB_SLOT[knob] == slot && machine->knobs[knob].name) { - return (int32_t)added_code(type, knob); - } - } - return -1; -} - -/* An added machine's descriptor: the stand-in's 44-byte descriptor with the five knobs' codes replaced, built on - * first use (after the OS has built its own descriptors). */ -extern const uint32_t *core_stock_descriptor(uint32_t type); -static uint32_t descriptors[DT2_MACHINE_COUNT][11]; -static uint8_t built[DT2_MACHINE_COUNT]; - -const uint32_t *core_machine_descriptor(uint32_t type) -{ - const struct dt2_machine *machine = dt2_machine_at(type, core_machines); - if (!machine) { - return 0; - } - uint32_t n = type - DT2_MACHINE_FIRST; - if (!built[n]) { - const uint32_t *stock = core_stock_descriptor(machine->stands_for); - for (uint32_t w = 0; w < 11; ++w) { - descriptors[n][w] = stock[w]; - } - for (uint32_t knob = 0; knob < DT2_MACHINE_KNOBS; ++knob) { - if (machine->knobs[knob].name) { - descriptors[n][2 + KNOB_POSITION[knob]] = added_code(type, knob); - } - } - built[n] = 1; - } - return descriptors[n]; -} diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/machines-entry.s b/sdk/machines/digitakt-ii/elekloader/modwerk/machines-entry.s index a593101839..bd4fde0da3 100644 --- a/sdk/machines/digitakt-ii/elekloader/modwerk/machines-entry.s +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/machines-entry.s @@ -1,13 +1,20 @@ /* SPDX-License-Identifier: GPL-3.0-or-later */ /* Added machine types: the machine descriptor lookup (0x400c89a4) answers a type core_machines names with - * the base's descriptor for it (machine-params.c), and the parameter-code lookup (0x400da3a2) with the - * machine's own knob rows, or else the stock type it stands for. Every other type replays the displaced - * stock instructions and continues in stock. a0 and a1 are kept, as stock leaves them. */ + * the base's descriptor for it (machine-knobs.c), and the parameter-code lookup (0x400da3a2) as the stock + * type it stands for. Every other type replays the displaced stock instructions and continues in stock. + * a0 and a1 are kept, as stock leaves them. */ .text .even .globl core_machine_descriptor_entry, core_machine_param_entry, core_stock_descriptor core_machine_descriptor_entry: + move.l %a0,-(%sp) + move.l %a1,-(%sp) + move.l 12(%sp),-(%sp) + jsr core_machine_knob_names | the knob rows' names follow the machine asked for + addq.l #4,%sp + move.l (%sp)+,%a1 + move.l (%sp)+,%a0 moveq #7,%d1 move.l 4(%sp),%d0 cmp.l %d1,%d0 @@ -38,17 +45,6 @@ core_machine_param_entry: cmp.l %d1,%d0 bcs.s 1f move.l %a0,-(%sp) - move.l %a1,-(%sp) - move.l %d0,-(%sp) - move.l 16(%sp),-(%sp) - jsr core_machine_slot_code - addq.l #8,%sp - move.l (%sp)+,%a1 - move.l (%sp)+,%a0 - tst.l %d0 - bmi.s 3f - rts -3: move.l %a0,-(%sp) move.l %a1,-(%sp) move.l 16(%sp),-(%sp) jsr core_machine_stands_for diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/tests/machines-fixture.c b/sdk/machines/digitakt-ii/elekloader/modwerk/tests/machines-fixture.c index bb18f34035..b4e5c3f452 100644 --- a/sdk/machines/digitakt-ii/elekloader/modwerk/tests/machines-fixture.c +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/tests/machines-fixture.c @@ -1,10 +1,16 @@ /* SPDX-License-Identifier: GPL-3.0-or-later */ -/* Development base only: one added machine (type 7) that stands for SAMPLE (type 0). */ +/* Development base only: one added machine (type 7) that stands for SAMPLE (type 0), with its own knob names. */ #include const struct dt2_machine dt2_test_machine = { .type = 7, .stands_for = 0, .strings = { "Testgrain", "TGR", 0 }, - /* Own knobs (MODE, POS, SIZE, DENS, SPRD) wait for the parameter table copy to work (MACHINES.md). */ + .knobs = { + { "Test Mode", "TMOD" }, + { "Test Size", "TSIZ" }, + { "Test Position", "TPOS" }, + { "Test Length", "TLEN" }, + { "Test Spread", "TSPR" }, + }, }; diff --git a/sdk/machines/digitakt-ii/include/mk2/machines.h b/sdk/machines/digitakt-ii/include/mk2/machines.h index d18bdd08bd..ebec2fc7f5 100644 --- a/sdk/machines/digitakt-ii/include/mk2/machines.h +++ b/sdk/machines/digitakt-ii/include/mk2/machines.h @@ -20,18 +20,19 @@ enum { }; /* The five SRC knobs a machine names itself: B, C, E, F and G (A stays TUNE, D the sample slot, H the level). - * Each edits the sound's machine slot the stock SAMPLE machine uses for that knob (26, 27, 31, 32, 33), so its - * value is saved, parameter-locked and recorded like a stock knob's. */ + * Each is the stand-in machine's own parameter at that knob, shown under the machine's name while a track plays the + * machine: its range, value, saving, trig locks, live recording, MIDI and the value the sound chip receives are the + * stand-in's. Standing for SAMPLE: B play mode, C crossfade (slot 27, which SAMPLE does not show), E start, + * F length, G loop position. */ enum { DT2_MACHINE_KNOBS = 5, }; -/* A knob: name as the popups show it, label (up to four capitals) as the page shows it, and its range and default - * in the usual 0-127 steps. A null name keeps the stand-in machine's knob. */ +/* A knob: name as the popups show it, and label (up to four capitals) as the page shows it. A null name keeps the + * stand-in machine's knob and name (for knob C on SAMPLE: no knob). */ struct dt2_machine_knob { const char *name; const char *label; - uint8_t min, max, def, pad; }; /* stands_for names the stock type (0-6) whose descriptor, voice setup and other knobs the machine borrows. From 091a580d0479027dae60b21701e05af99fbec031 Mon Sep 17 00:00:00 2001 From: claptom-music <350865352+Claptom-music@users.noreply.github.com> Date: Thu, 19 Nov 2026 12:05:55 +0100 Subject: [PATCH 085/415] Mikrotakt: record the emulator checks and the open knob choice Co-Authored-By: Claude Opus 5.5 --- sdk/digitakt-ii/modules/mikrotakt/README.md | 3 ++- sdk/digitakt-ii/modules/mikrotakt/TESTING.md | 16 +++++++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/sdk/digitakt-ii/modules/mikrotakt/README.md b/sdk/digitakt-ii/modules/mikrotakt/README.md index ec1084f8a8..c62b7ec698 100644 --- a/sdk/digitakt-ii/modules/mikrotakt/README.md +++ b/sdk/digitakt-ii/modules/mikrotakt/README.md @@ -11,7 +11,8 @@ The player is `src/player.sharc`, assembled by Modwerk's sound-chip assembler (` - **Play head.** The voice's own record, played by the stock sample player into a buffer nobody hears. It follows the sample's start, length, loop, play mode and pitch, so a note lasts as a SAMPLE note would. - **Grains.** A grain is a copy of the voice's record taken at the play head, moved by the position offset and a random spread, played by the stock player and shaped by a window (`4x(1 - x)`, linear across each 32-sample block). Grains start every interval, a fraction of a sequencer step set by the density. Their gain follows the square root of the overlap, since grains add out of phase. - **Modes.** DRIFT: grains around the moving play head. STUTTER: four grains from the same spot, then the spot moves to the play head, with a sixteenth of the spread. HAZE: the widest spread. REVERSE plays as DRIFT until reversed playback through the stock player is traced. -- **Settings.** Per track, in the player's own memory: mode, position, size, density, spread and samples per step. They have defaults (DRIFT, at the play head, 140 ms grains, four grain starts per step at 120 BPM, a quarter spread) until the base passes the knob values and the tempo to the sound chip. +- **Settings.** Per track, in the player's own memory: mode, position, size, density, spread and samples per step. They have defaults (DRIFT, at the play head, 140 ms grains, four grain starts per step at 120 BPM, a quarter spread) until the knobs are connected. +- **Knobs (not decided yet).** The base shows an added machine's own knob names on its stand-in's parameters (SAMPLE: B play mode, C crossfade, E start, F length, G loop position), so saving, trig locks and live recording work as for SAMPLE, and the values reach the sound chip in each voice's parameter record. Each of those parameters also does its stock job for the play head (start, length, loop, direction), so which grain control goes on which knob is a choice still to make. The tempo is not passed to the sound chip yet. Emulator check (19 November 2026, OS 1.17, development base `37b4db44` with the test machine as type 7, the player composed by `composeDt2MachineBuild`, scripted coupled run, two notes of a 220 Hz test sample): the build passes the preflight; the notes play as clouds of grains at 220 Hz, peak 0.03-0.06 against 0.063 for SAMPLE, no halt, no missing blocks. The largest sample-to-sample step is 2.9% of the peak, what a clean 220 Hz sine gives (no clicks at grain edges). A pass-through player (the stock player only) in the same build plays as SAMPLE. diff --git a/sdk/digitakt-ii/modules/mikrotakt/TESTING.md b/sdk/digitakt-ii/modules/mikrotakt/TESTING.md index 353752c90d..9a87006265 100644 --- a/sdk/digitakt-ii/modules/mikrotakt/TESTING.md +++ b/sdk/digitakt-ii/modules/mikrotakt/TESTING.md @@ -1,3 +1,17 @@ # Mikrotakt testing -No checks have been run. For each tier in docs/SDK.md, record the source commit, the exact build, the OS release, the machine model and every result. Keep firmware, dumps and build outputs out of this folder. +Work in progress. Nothing has run on a Digitakt II yet: every result below is from the emulator, which never proves sound-chip code (sdk/machines/digitakt-ii/README.md, SHARC code rules). + +## Emulator, 19 November 2026 (OS 1.17) + +Setup: a development base (test machine as type 7, standing for SAMPLE; base `d26c8874` for the last row, `37b4db44` for the others), Mikrotakt's player assembled from `src/player.sharc` and composed with the base's machine parts by `composeDt2MachineBuild`, the sound chip taken from that composed file. Scripted coupled runs: the test machine chosen through the machine menu on track 1, then two notes of a one-second 220 Hz test sample. + +| Check | Result | +| --- | --- | +| Build preflight of the composed file | Passed: sections 2, 4, 5 and 8 stock, section 7 verified against the plan. | +| Sound | Each note plays as a cloud of grains at 220 Hz, peak 0.03-0.06 (SAMPLE: 0.063). No halt, no missing blocks. | +| Clicks | Largest sample-to-sample step 2.9% of the peak, as a clean 220 Hz sine (no steps at grain edges). | +| Pass-through player (the stock player only) in the same build | Plays as SAMPLE. | +| Base `d26c8874` (own knob names) | Same sound as on `37b4db44`, peak for peak. | + +Not tested: knob values reaching the player (the settings are defaults until the knob mapping is decided), several Mikrotakt tracks at once, CPU load on a unit, other modules alongside it, saving and reloading a kit with Mikrotakt, hardware. From e5f5194ad2491ae215eb6f92fb630ff6f1a2800d Mon Sep 17 00:00:00 2001 From: claptom-music <350865352+Claptom-music@users.noreply.github.com> Date: Thu, 19 Nov 2026 12:14:09 +0100 Subject: [PATCH 086/415] Digitakt II machines: knob C's value reaches the sound chip in the voice parameter record Co-Authored-By: Claude Opus 5.5 --- sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md index 24e7c33307..78f002014a 100644 --- a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md @@ -177,7 +177,7 @@ No halt and no missing blocks; stock voices on other tracks are untouched. The s ### Where a machine's knob values are (19 November 2026) - **ColdFire, the kit's values.** Track `t`'s sound is at `0x426532ec + 0x450 * t` (the track's type byte at `+0xa2`). Its machine slots 25-34 are big-endian halfwords from `+0x46` (value << 8): slot 31 (START) at `+0x52`, 32 (LENGTH) at `+0x54`, so 26 at `+0x48`, 27 at `+0x4a`, 33 at `+0x56`. Panel probe: turning knob E and F on the SRC page changed exactly those bytes. -- **Sound chip, per voice.** The voice parameter record (`0xdc` bytes per voice from `0x250738`, byte addresses) holds the SRC values the setup uses: word `0x25` START, `0x26` LENGTH, `0x27` LOOP as floats 0-1, word `0x2a` START and `0x2b` LENGTH as whole numbers, `0x2d` the loop start as a whole number (it followed START when LOOP was 0). PLAY did not change this record. Coupled runs from the same ready point, knobs turned on the SRC page before the note, record dumped at the renderer: these words, and only these, changed. A value that reaches the sound chip with each note, as this one does, is where a trig lock arrives too (not yet tested with a lock). +- **Sound chip, per voice.** The voice parameter record (`0xdc` bytes per voice from `0x250738`, byte addresses) holds the SRC values the setup uses: word `0x25` START, `0x26` LENGTH, `0x27` LOOP as floats 0-1, word `0x2a` START and `0x2b` LENGTH as whole numbers, `0x2d` the loop start as a whole number (it followed START when LOOP was 0), `0x28` the crossfade (knob C on an added machine) as a float 0-1 (turned on the test machine's SRC page, base `d26c8874`). PLAY did not change this record (twice). Coupled runs from the same ready point, knobs turned on the SRC page before the note, record dumped at the renderer: these words, and only these, changed. A value that reaches the sound chip with each note, as this one does, is where a trig lock arrives too (not yet tested with a lock). - **Turning a knob in a coupled run.** Press SRC first, then send separate small encoder events (`enc 5 100` every 2.5 M instructions; encoder 1-8 are knobs A-H). One large turn (`enc 5 1920`, queued as many packets at once) changed nothing. The encoder accelerates: twenty turns of 100 took START from 0 to 119. ### Machine modules' sound-chip parts in the build (19 November 2026) From 169afe1fb899b026a532f48a7a4f4c6c5901ca84 Mon Sep 17 00:00:00 2001 From: claptom-music <350865352+Claptom-music@users.noreply.github.com> Date: Thu, 19 Nov 2026 12:24:29 +0100 Subject: [PATCH 087/415] Mikrotakt: knob C sets the grain size SAMPLE's crossfade, unused by a one-shot sample, shown as SIZE; the player reads it from the voice's parameter record. 0 keeps the 140 ms default. Co-Authored-By: Claude Opus 5.5 --- sdk/digitakt-ii/modules/mikrotakt/README.md | 2 +- sdk/digitakt-ii/modules/mikrotakt/TESTING.md | 3 ++- sdk/digitakt-ii/modules/mikrotakt/src/main.c | 12 ++++++--- .../modules/mikrotakt/src/player.sharc | 27 +++++++++++++++---- 4 files changed, 33 insertions(+), 11 deletions(-) diff --git a/sdk/digitakt-ii/modules/mikrotakt/README.md b/sdk/digitakt-ii/modules/mikrotakt/README.md index c62b7ec698..91ef012153 100644 --- a/sdk/digitakt-ii/modules/mikrotakt/README.md +++ b/sdk/digitakt-ii/modules/mikrotakt/README.md @@ -12,7 +12,7 @@ The player is `src/player.sharc`, assembled by Modwerk's sound-chip assembler (` - **Grains.** A grain is a copy of the voice's record taken at the play head, moved by the position offset and a random spread, played by the stock player and shaped by a window (`4x(1 - x)`, linear across each 32-sample block). Grains start every interval, a fraction of a sequencer step set by the density. Their gain follows the square root of the overlap, since grains add out of phase. - **Modes.** DRIFT: grains around the moving play head. STUTTER: four grains from the same spot, then the spot moves to the play head, with a sixteenth of the spread. HAZE: the widest spread. REVERSE plays as DRIFT until reversed playback through the stock player is traced. - **Settings.** Per track, in the player's own memory: mode, position, size, density, spread and samples per step. They have defaults (DRIFT, at the play head, 140 ms grains, four grain starts per step at 120 BPM, a quarter spread) until the knobs are connected. -- **Knobs (not decided yet).** The base shows an added machine's own knob names on its stand-in's parameters (SAMPLE: B play mode, C crossfade, E start, F length, G loop position), so saving, trig locks and live recording work as for SAMPLE, and the values reach the sound chip in each voice's parameter record. Each of those parameters also does its stock job for the play head (start, length, loop, direction), so which grain control goes on which knob is a choice still to make. The tempo is not passed to the sound chip yet. +- **Knobs.** The base shows an added machine's own knob names on its stand-in's parameters (SAMPLE: B play mode, C crossfade, E start, F length, G loop position), so saving, trig locks and live recording work as for SAMPLE, and the values reach the sound chip in each voice's parameter record. Knob C (SIZE) is SAMPLE's crossfade, which a one-shot sample never uses: 0 gives 140 ms grains, the top 1.5 s. B, E, F and G also do their stock job for the play head (direction, start, length, loop), so which grain control goes on which of them is still to decide; until then they keep SAMPLE's names and jobs, and mode, density and spread stay at their defaults. The tempo is not passed to the sound chip yet. Emulator check (19 November 2026, OS 1.17, development base `37b4db44` with the test machine as type 7, the player composed by `composeDt2MachineBuild`, scripted coupled run, two notes of a 220 Hz test sample): the build passes the preflight; the notes play as clouds of grains at 220 Hz, peak 0.03-0.06 against 0.063 for SAMPLE, no halt, no missing blocks. The largest sample-to-sample step is 2.9% of the peak, what a clean 220 Hz sine gives (no clicks at grain edges). A pass-through player (the stock player only) in the same build plays as SAMPLE. diff --git a/sdk/digitakt-ii/modules/mikrotakt/TESTING.md b/sdk/digitakt-ii/modules/mikrotakt/TESTING.md index 9a87006265..efdbcf93f5 100644 --- a/sdk/digitakt-ii/modules/mikrotakt/TESTING.md +++ b/sdk/digitakt-ii/modules/mikrotakt/TESTING.md @@ -13,5 +13,6 @@ Setup: a development base (test machine as type 7, standing for SAMPLE; base `d2 | Clicks | Largest sample-to-sample step 2.9% of the peak, as a clean 220 Hz sine (no steps at grain edges). | | Pass-through player (the stock player only) in the same build | Plays as SAMPLE. | | Base `d26c8874` (own knob names) | Same sound as on `37b4db44`, peak for peak. | +| Knob C (SIZE) at 0 and at the top, turned on the SRC page before the notes | At 0 the same sound as before, peak for peak; at the top an evener cloud of long grains. Both click-free (largest step 2.9% of the peak). | -Not tested: knob values reaching the player (the settings are defaults until the knob mapping is decided), several Mikrotakt tracks at once, CPU load on a unit, other modules alongside it, saving and reloading a kit with Mikrotakt, hardware. +Not tested: the other knobs (their grain roles are not decided), trig locks on SIZE, several Mikrotakt tracks at once, CPU load on a unit, other modules alongside it, saving and reloading a kit with Mikrotakt, hardware. diff --git a/sdk/digitakt-ii/modules/mikrotakt/src/main.c b/sdk/digitakt-ii/modules/mikrotakt/src/main.c index 9968a24757..2581637719 100644 --- a/sdk/digitakt-ii/modules/mikrotakt/src/main.c +++ b/sdk/digitakt-ii/modules/mikrotakt/src/main.c @@ -3,11 +3,12 @@ * * Machine type 7 (claimed as machine-id digitakt-ii/7; kits save it). It stands for SAMPLE (type 0), so the stock * voice setup loads its sample and positions, and the base sends its voices to Mikrotakt's own sound-chip player - * (the package's build.dt2_sharc part), which writes the grains into each voice's slot. The stock filter, amp - * envelope, LFO and level then shape them as on any machine. + * (src/player.sharc, the package's build.dt2_sharc part), which writes the grains into each voice's slot. The stock + * filter, amp envelope, LFO and level then shape them as on any machine. * - * Until the base's own knob rows work (sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md), the SRC page shows - * SAMPLE's knobs: their values are the ones the grain player reads. + * Knobs are SAMPLE's parameters under Mikrotakt's names (the base's knob names). Knob C, SAMPLE's crossfade, which a + * one-shot sample never uses, sets the grain size. The others keep SAMPLE's names and jobs (play mode, start, length, + * loop position) until their grain roles are decided (README). */ #include @@ -15,4 +16,7 @@ const struct dt2_machine mikrotakt_machine = { .type = 7, .stands_for = 0, .strings = { "Mikrotakt", "MKT", 0 }, + .knobs = { + [1] = { "Grain Size", "SIZE" }, + }, }; diff --git a/sdk/digitakt-ii/modules/mikrotakt/src/player.sharc b/sdk/digitakt-ii/modules/mikrotakt/src/player.sharc index efd37ce53a..8f91bcaf09 100644 --- a/sdk/digitakt-ii/modules/mikrotakt/src/player.sharc +++ b/sdk/digitakt-ii/modules/mikrotakt/src/player.sharc @@ -25,6 +25,9 @@ .equ FRAC, 0x6c ; record word: its fraction .equ ENDW, 0x69 ; record word: the sample's length in words .equ PLAYING, 0x6e ; record word: nonzero while the stock player renders it +.equ PREC0, 0x250738 ; voice 0's parameter record (byte address); 0xdc bytes per voice +.equ PRECB, 0xdc +.equ PREC_SIZE, 0x28 ; knob C (SAMPLE's crossfade) as 0-1 .equ VARS, 0x200d4400 .equ V, VARS / 4 ; variables as normal words @@ -361,11 +364,25 @@ in_range: M1 = FRAC R0 = 0 DM(M1, I1) = R0 - ; the grain's length, 1/length and gain - M2 = 2 - R0 = DM(M2, I2) ; size 0-127 - R2 = -3 - R0 = LSHIFT R0 BY R2 + ; the grain's length, 1/length and gain. SIZE is knob C (SAMPLE's crossfade, word 0x28 of the voice's parameter + ; record, 0-1): 0 gives the middle size (140 ms), up to 1.5 s at the top. + R0 = DM(V_VOICE) + R2 = PRECB + R0 = R0 * R2 (SSI) + R2 = PREC0 + R0 = R0 + R2 + I3 = R0 + M3 = PREC_SIZE + R0 = DM(M3, I3) + F1 = 7.49 + F0 = F0 * F1 + R0 = FIX F0 + R2 = 0 + R0 = MAX(R0, R2) + R2 = 7 + R0 = MIN(R0, R2) + R2 = 8 + R0 = R0 + R2 ; size index 8-15 M3 = R0 I3 = size_lengths R5 = DM(M3, I3) From 40b60a3eb3d4de612058d08376d4490de6908ea7 Mon Sep 17 00:00:00 2001 From: claptom-music <350865352+Claptom-music@users.noreply.github.com> Date: Thu, 19 Nov 2026 12:47:47 +0100 Subject: [PATCH 088/415] Work in progress: the machine wire carries the tempo to Digitakt II machine players The base writes a magic and the samples per sixteenth step into the audio frame's tail; its receiver on the sound chip copies the step to a word machine players read, and Mikrotakt's grain interval follows it. The channel works in the emulator; the measured step (7,058) does not yet match 120 BPM (6,000). Co-Authored-By: Claude Opus 5.5 --- .../modules/mikrotakt/src/player.sharc | 7 ++- sdk/machines/digitakt-ii/elekloader/base.json | 1 + .../elekloader/modwerk/MACHINES.md | 6 ++ .../elekloader/modwerk/machine-frame.c | 50 +++++++++++++++++ .../elekloader/modwerk/mixer-entry.s | 6 ++ .../digitakt-ii/include/mk2/machines.h | 7 +++ src/engine/elekloader/dt2-render-build.ts | 13 +++-- src/engine/elektron/dt2-sharc.ts | 55 +++++++++++++++++++ 8 files changed, 138 insertions(+), 7 deletions(-) create mode 100644 sdk/machines/digitakt-ii/elekloader/modwerk/machine-frame.c diff --git a/sdk/digitakt-ii/modules/mikrotakt/src/player.sharc b/sdk/digitakt-ii/modules/mikrotakt/src/player.sharc index 8f91bcaf09..0bb3b37333 100644 --- a/sdk/digitakt-ii/modules/mikrotakt/src/player.sharc +++ b/sdk/digitakt-ii/modules/mikrotakt/src/player.sharc @@ -25,6 +25,8 @@ .equ FRAC, 0x6c ; record word: its fraction .equ ENDW, 0x69 ; record word: the sample's length in words .equ PLAYING, 0x6e ; record word: nonzero while the stock player renders it +; The base's machine wire (DT2_BASE_SHARC.stepSamples in src/engine/elekloader/dt2-render-build.ts). +.equ STEP_SAMPLES, 0x200c2c20 / 4 .equ PREC0, 0x250738 ; voice 0's parameter record (byte address); 0xdc bytes per voice .equ PRECB, 0xdc .equ PREC_SIZE, 0x28 ; knob C (SAMPLE's crossfade) as 0-1 @@ -197,8 +199,7 @@ same_note: I3 = density_steps M3 = R0 R1 = DM(M3, I3) - M2 = 5 - R0 = DM(M2, I2) ; samples per step + R0 = DM(STEP_SAMPLES) ; samples per sixteenth step at the pattern's tempo (the base's machine wire) F0 = FLOAT R0 F0 = F0 * F1 R0 = FIX F0 @@ -601,7 +602,7 @@ size_inverses: .float 0.00014880952, 0.00010416667, 0.000074404762, 0.000052083333, 0.000037202381, 0.000026041667, 0.000020833333, 0.000013888889 .data 0x200d4a00 -; per track: mode, position, size, density, spread, samples per step (120 BPM), two spare words +; per track: mode, position, size, density, spread, samples per step (unused: the base's wire gives the tempo), spare track_settings: .word 0, 64, 64, 64, 32, 6000, 0, 0 .word 0, 64, 64, 64, 32, 6000, 0, 0 diff --git a/sdk/machines/digitakt-ii/elekloader/base.json b/sdk/machines/digitakt-ii/elekloader/base.json index 3ef1d15f76..77deaa2954 100644 --- a/sdk/machines/digitakt-ii/elekloader/base.json +++ b/sdk/machines/digitakt-ii/elekloader/base.json @@ -48,6 +48,7 @@ "../modwerk/mixer-entry.s", "../modwerk/machines.c", "../modwerk/machine-knobs.c", + "../modwerk/machine-frame.c", "../modwerk/machines-entry.s", "../modwerk/fw-bindings.s" ], diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md index 78f002014a..f46d7b7e1b 100644 --- a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md @@ -180,6 +180,12 @@ No halt and no missing blocks; stock voices on other tracks are untouched. The s - **Sound chip, per voice.** The voice parameter record (`0xdc` bytes per voice from `0x250738`, byte addresses) holds the SRC values the setup uses: word `0x25` START, `0x26` LENGTH, `0x27` LOOP as floats 0-1, word `0x2a` START and `0x2b` LENGTH as whole numbers, `0x2d` the loop start as a whole number (it followed START when LOOP was 0), `0x28` the crossfade (knob C on an added machine) as a float 0-1 (turned on the test machine's SRC page, base `d26c8874`). PLAY did not change this record (twice). Coupled runs from the same ready point, knobs turned on the SRC page before the note, record dumped at the renderer: these words, and only these, changed. A value that reaches the sound chip with each note, as this one does, is where a trig lock arrives too (not yet tested with a lock). - **Turning a knob in a coupled run.** Press SRC first, then send separate small encoder events (`enc 5 100` every 2.5 M instructions; encoder 1-8 are knobs A-H). One large turn (`enc 5 1920`, queued as many packets at once) changed nothing. The encoder accelerates: twenty turns of 100 took START from 0 to 119. +### The machine wire: the tempo on the sound chip (work in progress, 19 November 2026) + +The base's audio-frame entry first calls `core_machine_frame` (`machine-frame.c`), which writes two frame-tail words after a module's (the sidechain prototype's 0-10): `DT2_MACHINE_WIRE_MAGIC` at word 16, then the samples per sixteenth step, measured from the transport's tick counter (`0x80004880`, 21,600,000 per quarter note) over the last transfer. On the sound chip the base takes the receive site (`planDt2MachineWire`): its receiver checks the magic at `DM(16, I3 + 0x804)` (the modifier, not a byte offset: `I3` holds a byte address) and copies the next word to `DT2_BASE_SHARC.stepSamples` (L2 `0x200c2c20`), which players read; 6,000 until the first frame. + +Emulator (development base `41a864e2`, Mikrotakt composed, coupled run): the receiver runs every transfer and reads the magic; the step word arrives as a steady 7,058 with the transport stopped. At 120 BPM it should be 6,000: either the test project is not at 120 BPM (7,058 is 102 BPM) or the emulator's transfers do not come once per 32-sample block. Not settled; reading the pattern's tempo setting instead of measuring ticks would remove the doubt. The base now owns the receive site: a module that wants it (the sidechain prototype took it) needs a base receive hook first. + ### Machine modules' sound-chip parts in the build (19 November 2026) A machine module carries its player in its package as `build.dt2_sharc` version 2: L2 allocations at fixed addresses (claim each range as a dsp-region) and `{type, entry}` for each machine type it plays. The base keeps L2 `0x200c0100`-`0x200c3000` for its own machine parts. After the kit build, `preflightBuiltFile` (Digitakt II only) calls `composeDt2MachineBuild`: it reads every selected package's part, adds the longer selector table, the player dispatcher and the modules' allocations to section 7, and runs the preflight with that plan. A selection with no part leaves the kit build as it is. diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/machine-frame.c b/sdk/machines/digitakt-ii/elekloader/modwerk/machine-frame.c new file mode 100644 index 0000000000..fa634654b8 --- /dev/null +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/machine-frame.c @@ -0,0 +1,50 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +/* The tempo for added machines' sound-chip players (OS 1.17). + * + * Before each transfer to the sound chip (the base's audio-frame entry, ahead of ev_audio_frame's subscribers), the + * base writes two words into the transfer's tail, after the words a module's frame writer takes (0-10 in the + * sidechain prototype): DT2_MACHINE_WIRE_MAGIC, then the samples per sixteenth step at the pattern's tempo, measured + * from the transport's tick counter over the last block. The base's receiver on the sound chip copies them where + * machine players read them (DT2_BASE_SHARC.wire in the builder). While the transport stands still, or after a jump, + * the last tempo stays. + */ +#include +#include + +#define STOCK_WORD(address) (*(const volatile uint32_t *)(address)) +#define TICK_COUNTER 0x80004880u /* transport ticks: 21,600,000 per quarter note */ +#define DSP_QUEUE 0x400cd48cu /* the transfer's halfword queue */ +#define FIRST_TAIL_HALF 0x402u +#define TICKS_PER_STEP (21600000u / 4u) +#define BLOCK_SAMPLES 32u +#define SPAN_MIN 2000u /* about 25 BPM */ +#define SPAN_MAX 300000u /* about 1,250 BPM: anything above is a jump, not a tempo */ + +uint32_t core_machine_samples_per_step = 6000; /* 120 BPM until the transport has run */ +static uint32_t last_tick; + +static __attribute__((noinline)) void put(volatile uint16_t *halves, unsigned int word, uint32_t value) +{ + /* The queue alternates command and data halfwords; a sound-chip word arrives low half first. The command + * halfwords stay as stock wrote them. */ + halves[4 * word] = (uint16_t)value; + halves[4 * word + 2] = (uint16_t)(value >> 16); +} + +void core_machine_frame(unsigned int data_bytes, const void *data, unsigned int frame_bytes, const void *reply) +{ + (void)data; + (void)reply; + if (data_bytes != 0x802 || frame_bytes != 0xabc) { + return; + } + const uint32_t tick = STOCK_WORD(TICK_COUNTER); + const uint32_t span = tick - last_tick; + last_tick = tick; + if (span >= SPAN_MIN && span <= SPAN_MAX) { + core_machine_samples_per_step = TICKS_PER_STEP * BLOCK_SAMPLES / span; + } + volatile uint16_t *tail = (volatile uint16_t *)(STOCK_WORD(DSP_QUEUE) + 4 * FIRST_TAIL_HALF + 2); + put(tail, DT2_MACHINE_WIRE, DT2_MACHINE_WIRE_MAGIC); + put(tail, DT2_MACHINE_WIRE + 1, core_machine_samples_per_step); +} diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/mixer-entry.s b/sdk/machines/digitakt-ii/elekloader/modwerk/mixer-entry.s index 2741b6c78d..fd0639ced8 100644 --- a/sdk/machines/digitakt-ii/elekloader/modwerk/mixer-entry.s +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/mixer-entry.s @@ -7,6 +7,12 @@ core_audio_frame_entry: move.l %a2,-(%sp) + move.l 20(%sp),-(%sp) | the base's own frame words first (machine-frame.c) + move.l 20(%sp),-(%sp) + move.l 20(%sp),-(%sp) + move.l 20(%sp),-(%sp) + jsr core_machine_frame + lea 16(%sp),%sp lea ev_audio_frame,%a2 1: move.l (%a2)+,%d0 beq.s 2f diff --git a/sdk/machines/digitakt-ii/include/mk2/machines.h b/sdk/machines/digitakt-ii/include/mk2/machines.h index ebec2fc7f5..b9d25ffc49 100644 --- a/sdk/machines/digitakt-ii/include/mk2/machines.h +++ b/sdk/machines/digitakt-ii/include/mk2/machines.h @@ -44,6 +44,13 @@ struct dt2_machine { struct dt2_machine_knob knobs[DT2_MACHINE_KNOBS]; }; +/* The audio-frame tail words the base sends the sound chip for machine players (machine-frame.c): the magic, then + * the samples per sixteenth step at the pattern's tempo. */ +enum { + DT2_MACHINE_WIRE = 16, +}; +#define DT2_MACHINE_WIRE_MAGIC UINT32_C(0x4d4b0001) + /* The record for a machine type, or 0 when the type is stock or no valid record names it. */ const struct dt2_machine *dt2_machine_at( uint32_t type, const struct dt2_machine *const machines[DT2_MACHINE_COUNT]); diff --git a/src/engine/elekloader/dt2-render-build.ts b/src/engine/elekloader/dt2-render-build.ts index dc87db3a8e..d9942fd2f0 100644 --- a/src/engine/elekloader/dt2-render-build.ts +++ b/src/engine/elekloader/dt2-render-build.ts @@ -2,7 +2,7 @@ import { DIGITAKT_MK2 } from '../../../vendor/elekloader/kit/src/devices.ts' import { Syx, packMain, verify, write } from '../../../vendor/elekloader/kit/src/syx.ts' import { - buildDt2RenderSection, combineDt2Plans, planDt2MachinePlayers, planDt2MachineSelectors, unpackDt2SharcSection, + buildDt2RenderSection, combineDt2Plans, planDt2MachinePlayers, planDt2MachineSelectors, planDt2MachineWire, unpackDt2SharcSection, type Dt2MachinePlayer, type Dt2RenderPlan, } from '../elektron/dt2-sharc.ts' import { ELE3_DEVICES } from '../elektron/ele3.ts' @@ -45,8 +45,12 @@ export async function buildDt2RenderFirmware( * it adds. Addresses are loader byte addresses; `entry` is the player's short-word program counter. */ export type Dt2SharcPart = { module: string; allocations: { address: number; bytes: Uint8Array }[]; players: Dt2MachinePlayer[] } -// L2 the base keeps for its own machine parts: the selector table, the player dispatcher and its data. -export const DT2_BASE_SHARC = { selectors: 0x200c0100, dispatcher: 0x200c1000, dispatcherData: 0x200c2000, end: 0x200c3000 } +// L2 the base keeps for its own machine parts: the selector table, the player dispatcher and its data, and the +// machine wire's receiver and data. A player reads the samples per sixteenth step at `stepSamples` (a word). +export const DT2_BASE_SHARC = { + selectors: 0x200c0100, dispatcher: 0x200c1000, dispatcherData: 0x200c2000, wire: 0x200c2800, wireData: 0x200c2c00, + stepSamples: 0x200c2c20, end: 0x200c3000, +} const base64 = (text: string) => Uint8Array.from(atob(text), c => c.charCodeAt(0)) @@ -87,7 +91,8 @@ export async function planDt2MachineParts(sharc: Uint8Array, parts: readonly Dt2 const dispatcher = players.length ? await planDt2MachinePlayers(sharc, DT2_BASE_SHARC.dispatcher, DT2_BASE_SHARC.dispatcherData, players) : null - return combineDt2Plans(selectors, dispatcher, ...parts.map(part => ({ allocations: part.allocations }))) + const wire = players.length ? await planDt2MachineWire(sharc, DT2_BASE_SHARC.wire, DT2_BASE_SHARC.wireData) : null + return combineDt2Plans(selectors, dispatcher, wire, ...parts.map(part => ({ allocations: part.allocations }))) } /** A finished kit build with the sound-chip parts of the base and the selected modules, checked by the preflight with diff --git a/src/engine/elektron/dt2-sharc.ts b/src/engine/elektron/dt2-sharc.ts index 93dfa90950..6b27aa511c 100644 --- a/src/engine/elektron/dt2-sharc.ts +++ b/src/engine/elektron/dt2-sharc.ts @@ -2,6 +2,7 @@ import { unpackSection } from '../aplib.ts' import { classifySection, packedStream } from './ele3.ts' import { sha256Hex } from './hash.ts' +import { assembleSharc } from './sharc-asm.ts' const STOCK_SECTION = '0f514a12a2255f5c081e292c47f1f29462003177658da4bbae0a22fd737fffa2' const RENDER_ADDRESS = 0x2838314c @@ -280,6 +281,60 @@ export async function planDt2MachinePlayers( return { sites: [{ address: PLAYER_CALL, guard: PLAYER_CALL_GUARD, instruction: instruction(0x1804, pc) }], allocations } } +// The receive site: the sound chip's handler of each transfer from the ColdFire, with I3 at the received frame; the +// ColdFire's frame-tail word w arrives at DM(Mw, I0) with I0 = I3 + 0x804 and Mw = w (I3 holds a byte address: the +// address generator scales the modifier, so the offset is never written in bytes). Resume after the six displaced bytes. +const RECEIVE_RESUME = (RECEIVE_ADDRESS - 0x28000000) / 2 + 3 +const TAIL = 0x804 +export const DT2_MACHINE_WIRE = 16, DT2_MACHINE_WIRE_MAGIC = 0x4d4b0001 + +/** A plan fragment for the base's machine wire: at the receive site, a receiver at `codeAddress` (free L2) copies the + * samples per sixteenth step the ColdFire base writes into frame-tail words DT2_MACHINE_WIRE.. (after its magic) to the + * word at `dataAddress + 0x20`, where machine players read it (6,000, 120 BPM, until the first frame), then replays + * the displaced instruction and resumes. It keeps every register it touches. */ +export async function planDt2MachineWire(stock: Uint8Array, codeAddress: number, dataAddress: number): Promise { + if (await sha256Hex(stock) !== STOCK_SECTION) throw new Error('Unsupported Digitakt II SHARC image') + const displaced = await dt2DisplacedInstruction(stock, 'receive') + const save = dataAddress / 4 + const { blocks, symbols } = assembleSharc(` +.code ${codeAddress} + DM(${save}) = R0 + DM(${save + 1}) = R1 + DM(${save + 2}) = I0 + DM(${save + 3}) = M0 + DM(${save + 4}) = ASTATX + DM(${save + 5}) = STKYX + R0 = I3 + R1 = ${TAIL} + R0 = R0 + R1 + I0 = R0 + M0 = ${DT2_MACHINE_WIRE} + R0 = DM(M0, I0) + R1 = ${DT2_MACHINE_WIRE_MAGIC} + COMP(R0, R1) + IF NE JUMP absent + M0 = ${DT2_MACHINE_WIRE + 1} + R0 = DM(M0, I0) + DM(${save + 8}) = R0 +absent: + R0 = DM(${save}) + R1 = DM(${save + 1}) + I0 = DM(${save + 2}) + M0 = DM(${save + 3}) + ASTATX = DM(${save + 4}) + STKYX = DM(${save + 5}) +displaced: NOP + JUMP ${RECEIVE_RESUME} +`) + const code = blocks[0].bytes + code.set(displaced, (symbols.get('displaced')! - programCounter(codeAddress)) * 2) + const data = new Uint8Array(4 * 9) + new DataView(data.buffer).setUint32(4 * 8, 6000, true) + const allocations = [{ address: codeAddress, bytes: code }, { address: dataAddress, bytes: data }] + checkAllocations(allocations) + return { receiveInstruction: instruction(0x063e, programCounter(codeAddress)), allocations } +} + /** One plan from several fragments (a render plan and the machine selectors, say). */ export function combineDt2Plans(...plans: readonly (Dt2RenderPlan | null)[]): Dt2RenderPlan | null { const present = plans.filter((plan): plan is Dt2RenderPlan => plan !== null) From 06479bbd52f76653e14fbc609d35c55ed1f4b6ac Mon Sep 17 00:00:00 2001 From: claptom-music <350865352+Claptom-music@users.noreply.github.com> Date: Thu, 19 Nov 2026 12:56:01 +0100 Subject: [PATCH 089/415] Mikrotakt: POS, LEN and SPRD on knobs E, F and G As agreed with the author: E and F keep SAMPLE's start and length for the play head, G (SAMPLE's loop position) sets the grains' spread. The level without spread is about 4 dB high, still to fix. Co-Authored-By: Claude Opus 5.5 --- sdk/digitakt-ii/modules/mikrotakt/README.md | 2 +- sdk/digitakt-ii/modules/mikrotakt/TESTING.md | 2 ++ sdk/digitakt-ii/modules/mikrotakt/src/main.c | 10 +++++++--- .../modules/mikrotakt/src/player.sharc | 15 ++++++++++++--- 4 files changed, 22 insertions(+), 7 deletions(-) diff --git a/sdk/digitakt-ii/modules/mikrotakt/README.md b/sdk/digitakt-ii/modules/mikrotakt/README.md index 91ef012153..8711dd77be 100644 --- a/sdk/digitakt-ii/modules/mikrotakt/README.md +++ b/sdk/digitakt-ii/modules/mikrotakt/README.md @@ -12,7 +12,7 @@ The player is `src/player.sharc`, assembled by Modwerk's sound-chip assembler (` - **Grains.** A grain is a copy of the voice's record taken at the play head, moved by the position offset and a random spread, played by the stock player and shaped by a window (`4x(1 - x)`, linear across each 32-sample block). Grains start every interval, a fraction of a sequencer step set by the density. Their gain follows the square root of the overlap, since grains add out of phase. - **Modes.** DRIFT: grains around the moving play head. STUTTER: four grains from the same spot, then the spot moves to the play head, with a sixteenth of the spread. HAZE: the widest spread. REVERSE plays as DRIFT until reversed playback through the stock player is traced. - **Settings.** Per track, in the player's own memory: mode, position, size, density, spread and samples per step. They have defaults (DRIFT, at the play head, 140 ms grains, four grain starts per step at 120 BPM, a quarter spread) until the knobs are connected. -- **Knobs.** The base shows an added machine's own knob names on its stand-in's parameters (SAMPLE: B play mode, C crossfade, E start, F length, G loop position), so saving, trig locks and live recording work as for SAMPLE, and the values reach the sound chip in each voice's parameter record. Knob C (SIZE) is SAMPLE's crossfade, which a one-shot sample never uses: 0 gives 140 ms grains, the top 1.5 s. B, E, F and G also do their stock job for the play head (direction, start, length, loop), so which grain control goes on which of them is still to decide; until then they keep SAMPLE's names and jobs, and mode, density and spread stay at their defaults. The tempo is not passed to the sound chip yet. +- **Knobs.** The base shows an added machine's own knob names on its stand-in's parameters (SAMPLE: B play mode, C crossfade, E start, F length, G loop position), so saving, trig locks and live recording work as for SAMPLE, and the values reach the sound chip in each voice's parameter record. Knob C (SIZE) is SAMPLE's crossfade, which a one-shot sample never uses: 0 gives 140 ms grains, the top 1.5 s. E (POS) is where the play head starts, F (LEN) how long it runs (SAMPLE's start and length), G (SPRD) the grains' random spread (SAMPLE's loop position, which only matters when the play mode loops). B stays SAMPLE's play mode until MODE is wired to it; density stays fixed (four grain starts per step) until a knob is free for it. The tempo is not passed to the sound chip yet. Emulator check (19 November 2026, OS 1.17, development base `37b4db44` with the test machine as type 7, the player composed by `composeDt2MachineBuild`, scripted coupled run, two notes of a 220 Hz test sample): the build passes the preflight; the notes play as clouds of grains at 220 Hz, peak 0.03-0.06 against 0.063 for SAMPLE, no halt, no missing blocks. The largest sample-to-sample step is 2.9% of the peak, what a clean 220 Hz sine gives (no clicks at grain edges). A pass-through player (the stock player only) in the same build plays as SAMPLE. diff --git a/sdk/digitakt-ii/modules/mikrotakt/TESTING.md b/sdk/digitakt-ii/modules/mikrotakt/TESTING.md index efdbcf93f5..fb2e925b44 100644 --- a/sdk/digitakt-ii/modules/mikrotakt/TESTING.md +++ b/sdk/digitakt-ii/modules/mikrotakt/TESTING.md @@ -15,4 +15,6 @@ Setup: a development base (test machine as type 7, standing for SAMPLE; base `d2 | Base `d26c8874` (own knob names) | Same sound as on `37b4db44`, peak for peak. | | Knob C (SIZE) at 0 and at the top, turned on the SRC page before the notes | At 0 the same sound as before, peak for peak; at the top an evener cloud of long grains. Both click-free (largest step 2.9% of the peak). | +| Knobs named (SIZE, POS, LEN, SPRD on C, E, F, G); SPRD read from knob G, at 0 (base `41a864e2`) | Plays, no halt; peak 0.0997, about 4 dB above SAMPLE: without spread the grains add in step, while the gain assumes they add out of step. To fix. | + Not tested: the other knobs (their grain roles are not decided), trig locks on SIZE, several Mikrotakt tracks at once, CPU load on a unit, other modules alongside it, saving and reloading a kit with Mikrotakt, hardware. diff --git a/sdk/digitakt-ii/modules/mikrotakt/src/main.c b/sdk/digitakt-ii/modules/mikrotakt/src/main.c index 2581637719..8948f9d52b 100644 --- a/sdk/digitakt-ii/modules/mikrotakt/src/main.c +++ b/sdk/digitakt-ii/modules/mikrotakt/src/main.c @@ -6,9 +6,10 @@ * (src/player.sharc, the package's build.dt2_sharc part), which writes the grains into each voice's slot. The stock * filter, amp envelope, LFO and level then shape them as on any machine. * - * Knobs are SAMPLE's parameters under Mikrotakt's names (the base's knob names). Knob C, SAMPLE's crossfade, which a - * one-shot sample never uses, sets the grain size. The others keep SAMPLE's names and jobs (play mode, start, length, - * loop position) until their grain roles are decided (README). + * Knobs are SAMPLE's parameters under Mikrotakt's names (the base's knob names), so they keep SAMPLE's job for the + * play head as well: C SIZE (SAMPLE's crossfade, unused by a one-shot sample), E POS (where the play head starts), + * F LEN (how long it runs), G SPRD (the grains' random spread; SAMPLE's loop position, which matters only when the + * play mode loops). B stays SAMPLE's play mode until MODE is wired to it. */ #include @@ -18,5 +19,8 @@ const struct dt2_machine mikrotakt_machine = { .strings = { "Mikrotakt", "MKT", 0 }, .knobs = { [1] = { "Grain Size", "SIZE" }, + [2] = { "Position", "POS" }, + [3] = { "Length", "LEN" }, + [4] = { "Spread", "SPRD" }, }, }; diff --git a/sdk/digitakt-ii/modules/mikrotakt/src/player.sharc b/sdk/digitakt-ii/modules/mikrotakt/src/player.sharc index 0bb3b37333..7fce27af05 100644 --- a/sdk/digitakt-ii/modules/mikrotakt/src/player.sharc +++ b/sdk/digitakt-ii/modules/mikrotakt/src/player.sharc @@ -30,6 +30,7 @@ .equ PREC0, 0x250738 ; voice 0's parameter record (byte address); 0xdc bytes per voice .equ PRECB, 0xdc .equ PREC_SIZE, 0x28 ; knob C (SAMPLE's crossfade) as 0-1 +.equ PREC_SPREAD, 0x27 ; knob G (SAMPLE's loop position) as 0-1 .equ VARS, 0x200d4400 .equ V, VARS / 4 ; variables as normal words @@ -295,9 +296,17 @@ copy_record: DM(I1, M0) = R0 M1 = ENDW R0 = DM(M1, I0) F5 = FLOAT R0 ; the sample's length in words - M2 = 4 - R0 = DM(M2, I2) ; spread 0-127 - F0 = FLOAT R0 + ; SPREAD is knob G (SAMPLE's loop position, word 0x27 of the voice's parameter record, 0-1) + R0 = DM(V_VOICE) + R2 = PRECB + R0 = R0 * R2 (SSI) + R2 = PREC0 + R0 = R0 + R2 + I3 = R0 + M3 = PREC_SPREAD + R0 = DM(M3, I3) + F1 = 127.0 + F0 = F0 * F1 ; spread 0-127 M2 = 0 R11 = DM(M2, I2) ; mode R2 = MODE_HAZE From 3a7159c7b2defa61e9fbad32a518a140b77582ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Thu, 19 Nov 2026 13:01:15 +0100 Subject: [PATCH 090/415] Octatrack base: a module's own patched UI handler no longer blocks its Undo (#1386) A trial of Micro Timing that ended with TRACK TRIG EDIT open was refused its rollback with needs-recovery, and so was every later recover, even with the page closed, until a power cycle or unplugging USB (a contributor's MKII and the owner's MKII, 19 November 2026). The base refuses to retire an image while the stock UI roots name it (MODWERK_RUNTIME_UI_ROOTS), and the walk reached TRACK TRIG EDIT's layer record 0x400d0140, whose encoder definition at 0x400d01f0 holds 0x40d80740: Micro Timing's own patch, its SymbolRef pointing LEVEL at mt_level. Once the page had been opened, that layer stayed reachable from the key cache, so the scan refused every switch out. That word is a site of the leaving module: the switch puts stock's handler back in the same masked write that retires the image. The loader now offers modwerk_runtime_site_view, which reads a live module's sites as its stock bytes, and the admission walks the UI roots through it, so it asks whether the roots name the image once the switch has run. Any other root into the image still refuses (RUNTIME_UI_OPEN). Host test: test_module_ui_roots.c, a stock encoder definition naming the module: refused when stock wrote it, admitted at SWITCH and PREPARE when it is the module's own site, refused again with a second handler outside the site. It fails without the admission change. Co-Authored-By: Claude Opus 5.5 --- .../machine_admission_runtime.c | 14 ++++++++- .../module-adapters/test_module_ui_roots.c | 31 +++++++++++++++++-- sdk/runtime/loader/loader.c | 15 +++++++++ sdk/runtime/loader/loader.h | 3 ++ 4 files changed, 59 insertions(+), 4 deletions(-) diff --git a/sdk/machines/octatrack/module-adapters/machine_admission_runtime.c b/sdk/machines/octatrack/module-adapters/machine_admission_runtime.c index c79e8a1880..1f8f38f8de 100644 --- a/sdk/machines/octatrack/module-adapters/machine_admission_runtime.c +++ b/sdk/machines/octatrack/module-adapters/machine_admission_runtime.c @@ -28,6 +28,18 @@ static int board_read(void *context,uint32_t address,void *out,uint32_t length) #ifndef MW_IMAGE_ADDRESS #define MW_IMAGE_ADDRESS(p) ((uint32_t)(uintptr_t)(p)) #endif +/* The roots as the switch will leave them: the leaving module's own sites read as stock (loader.c + * modwerk_runtime_site_view). A stock definition the module itself patched to call its code is put back by that + * switch, so it does not hold the module: Micro Timing points TRACK TRIG EDIT's LEVEL entry (0x400d01f2) at its own + * handler, and once the page had been opened its layer stayed reachable, refusing every Undo and recover until a + * power cycle (#1386, an MKII, 19 November 2026). */ +static int ui_read_after(void *image,uint32_t address,void *out,uint32_t length) +{ + if(!MODWERK_UI_ROOTS_READ(0,address,out,length)) return 0; + uint32_t physical=address>=0x48000400u && address<0x4ff00000u?address-0x08000000u:address; + modwerk_runtime_site_view(image,physical,out,length); + return 1; +} #endif int modwerk_machine_metadata_admit(const struct runtime_dsp *from,struct runtime_dsp *to, const struct runtime_context *context,enum runtime_metadata_operation operation) @@ -69,7 +81,7 @@ int modwerk_machine_metadata_admit(const struct runtime_dsp *from,struct runtime struct runtime_owner owner; if(modwerk_runtime_owner_at((uintptr_t)from->image,&owner) && owner.extent_bytes) lo=(uint32_t)owner.owned_extent,hi=lo+owner.extent_bytes; - if(machine_ui_lifetime(MODWERK_UI_ROOTS_READ,0,lo,hi)!=MACHINE_CLEAR) return RUNTIME_UI_OPEN; + if(machine_ui_lifetime(ui_read_after,(void *)(uintptr_t)from->image,lo,hi)!=MACHINE_CLEAR) return RUNTIME_UI_OPEN; } /* And a task paused inside its code (between opening a window and pushing its layer, say) keeps the old * image: the loader's paused-task and reclaim checks cover the whole image (loader.c retiring()). */ diff --git a/sdk/machines/octatrack/module-adapters/test_module_ui_roots.c b/sdk/machines/octatrack/module-adapters/test_module_ui_roots.c index 9642ff3fa8..fe59fd3917 100644 --- a/sdk/machines/octatrack/module-adapters/test_module_ui_roots.c +++ b/sdk/machines/octatrack/module-adapters/test_module_ui_roots.c @@ -14,9 +14,11 @@ #define CACHE 0x46c7d8deu #define CACHE_BYTES 1696u #define LAYER_ROOT 0x460d165cu -static uint8_t image[256], cache[CACHE_BYTES], node[28]; +#define DEFS_AT 0x40b00100u /* a stock encoder-definition array (22-byte records, 0xff ends it) */ +#define STOCK_HANDLER 0x4007bd64u /* what that entry's word holds in stock */ +static uint8_t image[256], cache[CACHE_BYTES], node[28], defs[24]; static uint32_t root; -static int unreadable, owner_known; +static int unreadable, owner_known, site_patched; static uint32_t unit_address(const uint8_t *p) { return IMAGE_AT + (uint32_t)(p - image); } #define MW_IMAGE_ADDRESS(p) unit_address(p) static void word(uint8_t *p, uint32_t v) { for (unsigned i = 0; i < 4; ++i) p[i] = (uint8_t)(v >> (24u - 8u * i)); } @@ -27,6 +29,7 @@ static int fake_read(void *context, uint32_t address, void *out, uint32_t length if (address >= CACHE && address - CACHE + length <= CACHE_BYTES) { memcpy(out, cache + (address - CACHE), length); return 1; } if (address == LAYER_ROOT && length == 4) { word(out, root); return 1; } if (address >= NODE_AT && address - NODE_AT + length <= sizeof node) { memcpy(out, node + (address - NODE_AT), length); return 1; } + if (address >= DEFS_AT && address - DEFS_AT + length <= sizeof defs) { memcpy(out, defs + (address - DEFS_AT), length); return 1; } if (address >= BSS_AT && address - BSS_AT + length <= 256u) { memset(out, 0, length); return 1; } /* its BSS, all zero */ return 0; } @@ -41,6 +44,16 @@ int modwerk_runtime_owner_at(uintptr_t address, struct runtime_owner *owner) owner->owned_extent = IMAGE_AT; owner->extent_bytes = 512; owner->image_bytes = sizeof image; return 1; } +/* The loader's view of the leaving module's own sites: with `site_patched`, the module patched the definition's + * first handler word (DEFS_AT + 2, four bytes) and its switch puts STOCK_HANDLER back there. */ +void modwerk_runtime_site_view(const void *at, uint32_t address, uint8_t *out, uint32_t length) +{ + uint8_t stock[4]; + if (at != image || !site_patched) return; + word(stock, STOCK_HANDLER); + for (uint32_t a = address; a < address + length; ++a) + if (a >= DEFS_AT + 2u && a < DEFS_AT + 6u) out[a - address] = stock[a - DEFS_AT - 2u]; +} #include "machine_admission_runtime.c" static int failures; #define CHECK(x) do { if (!(x)) { failures++; fprintf(stderr, "%s:%d: %s\n", __FILE__, __LINE__, #x); } } while (0) @@ -50,7 +63,8 @@ static void ordinary(struct runtime_dsp *d, const uint8_t *at) d->present = 1; d->image = at; d->image_bytes = sizeof image; for (unsigned i = 0; i < RUNTIME_HOOKS; ++i) d->hook_offset[i] = RUNTIME_NONE; } -static void clear_roots(void) { memset(cache, 0, sizeof cache); memset(node, 0, sizeof node); root = 0; unreadable = 0; } +static void clear_roots(void) +{ memset(cache, 0, sizeof cache); memset(node, 0, sizeof node); memset(defs, 0, sizeof defs); root = 0; unreadable = 0; site_patched = 0; } int main(void) { static uint8_t other[256]; @@ -77,6 +91,17 @@ int main(void) clear_roots(); root = NODE_AT; word(node + 4, IMAGE_AT + 0x80u); CHECK(modwerk_machine_metadata_admit(&live, &empty, 0, RUNTIME_METADATA_PREPARE) == RUNTIME_UI_OPEN); + /* #1386: a stock layer's encoder definition whose handler names the module. Where stock wrote it (a window the + * module opened, say), refused; where the module's own site patched it (Micro Timing's LEVEL entry), its switch + * puts stock's handler back, so removal and Undo go ahead, also after the page has been opened. */ + clear_roots(); + root = NODE_AT; word(node + 8, DEFS_AT); word(defs + 2, IMAGE_AT + 0x20u); defs[22] = 0xffu; + CHECK(modwerk_machine_metadata_admit(&live, &empty, 0, RUNTIME_METADATA_SWITCH) == RUNTIME_UI_OPEN); + site_patched = 1; + CHECK(modwerk_machine_metadata_admit(&live, &empty, 0, RUNTIME_METADATA_SWITCH) == RUNTIME_OK); + CHECK(modwerk_machine_metadata_admit(&live, &empty, 0, RUNTIME_METADATA_PREPARE) == RUNTIME_OK); + word(defs + 6, IMAGE_AT + 0x24u); /* a second handler outside the site still holds it */ + CHECK(modwerk_machine_metadata_admit(&live, &empty, 0, RUNTIME_METADATA_SWITCH) == RUNTIME_UI_OPEN); /* A cached key callback naming the module: refused. */ clear_roots(); word(cache + 100, IMAGE_AT + 0x10u); diff --git a/sdk/runtime/loader/loader.c b/sdk/runtime/loader/loader.c index 04c190f894..aa81536635 100644 --- a/sdk/runtime/loader/loader.c +++ b/sdk/runtime/loader/loader.c @@ -399,6 +399,21 @@ int modwerk_runtime_owner_canonical(const struct runtime_owner *o,uintptr_t *ext *extent = (uintptr_t)pool + (o->owned_extent - lo); return 1; } +void modwerk_runtime_site_view(const void *image, uint32_t address, uint8_t *out, uint32_t length) +{ + if (!image || !out || !length || address > UINT32_MAX - length) return; + for (unsigned p = 0; p < RUNTIME_MODULES; ++p) { + const struct runtime_module *m = live[p]; + if (!m || (const void *)m->dsp.image != image) continue; + for (uint32_t i = 0; i < m->sites; ++i) { + const struct runtime_site *s = &m->site[i]; + uint32_t lo = s->address > address ? s->address : address; + uint32_t hi = s->address + s->length < address + length ? s->address + s->length : address + length; + for (uint32_t a = lo; a < hi; ++a) out[a - address] = s->stock[a - s->address]; + } + return; + } +} static int reachable(const struct runtime_module *m) { for (unsigned i = 0; i < RUNTIME_MODULES; ++i) if (live[i] == m) return 1; diff --git a/sdk/runtime/loader/loader.h b/sdk/runtime/loader/loader.h index cf70b86271..37a44ea68f 100644 --- a/sdk/runtime/loader/loader.h +++ b/sdk/runtime/loader/loader.h @@ -128,6 +128,9 @@ int modwerk_runtime_owner_valid(const struct runtime_owner *); * its code runs from (owned_extent), and that allocation's canonical extent: * the pool's own base plus its offset, checked against the pool's ends. */ int modwerk_runtime_owner_at(uintptr_t address,struct runtime_owner *); +/* Stable lock held. `out` holds `length` bytes read at `address` (physical); the bytes that fall inside a site of + * the live module whose image is `image` become that site's stock bytes, as its switch out will leave them. */ +void modwerk_runtime_site_view(const void *image,uint32_t address,uint8_t *out,uint32_t length); int modwerk_runtime_owner_canonical(const struct runtime_owner *,uintptr_t *extent); /* Stable lock held. modwerk_runtime_owner_valid, trying the entry *hint first and leaving where it was found * there: one check while the ledger is unchanged. */ From ca5de03895ecec10fd098d207acbf5a74475199b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Thu, 19 Nov 2026 13:12:43 +0100 Subject: [PATCH 091/415] Regenerate the cumulative Octatrack 0.7.10 base and bound packages --- .../analog-bassdrum/0.1.7-experimental.mwrm | Bin 26172 -> 26172 bytes .../output-matrix/0.1.1-experimental.mwrm | Bin 3740 -> 3740 bytes .../0.2.2-experimental.mwrm | Bin 2636 -> 2636 bytes sdk/machines/octatrack/base-binding.json | 32 +- sdk/machines/octatrack/base-sizes.json | 30 +- sdk/machines/octatrack/base-versions.json | 14 +- .../module-adapters/controller-policies.json | 10 +- .../module-adapters/machine-recipes.json | 2 +- src/engine/assets/octatrack-base-fills.json | 218 +- src/engine/assets/octatrack-base-sources.json | 28 +- .../assets/octatrack-base-variants.json | 2 +- src/engine/assets/octatrack-base.elemod | 30359 ++++++++-------- .../assets/octatrack-module-packages.json | 16 +- 13 files changed, 15614 insertions(+), 15097 deletions(-) diff --git a/public/octatrack-modules/analog-bassdrum/0.1.7-experimental.mwrm b/public/octatrack-modules/analog-bassdrum/0.1.7-experimental.mwrm index df70883ce597c259ea96eee5ee618367b8016035..fa274e3d2048d57c69c9e7895717f444b158e4b6 100644 GIT binary patch delta 23 fcmdmUhH=js#todTj2)A?SXVJ!&)K|jazjaz Date: Thu, 19 Nov 2026 14:04:03 +0100 Subject: [PATCH 092/415] Mikrotakt: grain gain follows the spread Without spread every grain reads the play head's position and they add in step, so the gain follows the overlap; with spread they add out of step and it follows its square root. Levels now match SAMPLE at SPRD 0. Co-Authored-By: Claude Opus 5.5 --- sdk/digitakt-ii/modules/mikrotakt/TESTING.md | 3 ++- sdk/digitakt-ii/modules/mikrotakt/src/player.sharc | 14 ++++++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/sdk/digitakt-ii/modules/mikrotakt/TESTING.md b/sdk/digitakt-ii/modules/mikrotakt/TESTING.md index fb2e925b44..50bfb0f2d7 100644 --- a/sdk/digitakt-ii/modules/mikrotakt/TESTING.md +++ b/sdk/digitakt-ii/modules/mikrotakt/TESTING.md @@ -15,6 +15,7 @@ Setup: a development base (test machine as type 7, standing for SAMPLE; base `d2 | Base `d26c8874` (own knob names) | Same sound as on `37b4db44`, peak for peak. | | Knob C (SIZE) at 0 and at the top, turned on the SRC page before the notes | At 0 the same sound as before, peak for peak; at the top an evener cloud of long grains. Both click-free (largest step 2.9% of the peak). | -| Knobs named (SIZE, POS, LEN, SPRD on C, E, F, G); SPRD read from knob G, at 0 (base `41a864e2`) | Plays, no halt; peak 0.0997, about 4 dB above SAMPLE: without spread the grains add in step, while the gain assumes they add out of step. To fix. | +| Knobs named (SIZE, POS, LEN, SPRD on C, E, F, G); SPRD read from knob G, at 0 (base `41a864e2`) | Plays, no halt; peak 0.0997, about 4 dB above SAMPLE: without spread the grains add in step, while the gain assumed they add out of step. Fixed in the next row. | +| Gain between the in-step rule (no spread) and the out-of-step rule (an eighth of the spread and up) | SPRD at 0: peak 0.064, RMS about 0.04, as SAMPLE (0.063, 0.04). SPRD turned up: peak 0.052. Largest step 3.3% and 2.9% of the peak (no clicks). | Not tested: the other knobs (their grain roles are not decided), trig locks on SIZE, several Mikrotakt tracks at once, CPU load on a unit, other modules alongside it, saving and reloading a kit with Mikrotakt, hardware. diff --git a/sdk/digitakt-ii/modules/mikrotakt/src/player.sharc b/sdk/digitakt-ii/modules/mikrotakt/src/player.sharc index 7fce27af05..3263b3f39c 100644 --- a/sdk/digitakt-ii/modules/mikrotakt/src/player.sharc +++ b/sdk/digitakt-ii/modules/mikrotakt/src/player.sharc @@ -314,6 +314,10 @@ copy_record: DM(I1, M0) = R0 IF NE JUMP spread_set F0 = 127.0 ; HAZE: the widest spread spread_set: + F1 = 0.06299213 ; 8 / 127 + F10 = F0 * F1 + F1 = 1.0 + F10 = MIN(F10, F1) ; how out of step the grains add: 0 in step (no spread), 1 from an eighth of the spread up F1 = 0.003937008 ; 0.5 / 127 F0 = F0 * F1 F0 = F0 * F5 @@ -401,6 +405,7 @@ in_range: R0 = DM(V_INTERVAL) F0 = FLOAT R0 F0 = F0 * F3 ; x = interval / length, one over the overlap + F6 = PASS F0 F1 = RSQRTS F0 ; 1/sqrt(x), refined once (Newton) F2 = F1 * F1 F2 = F2 * F0 @@ -411,9 +416,14 @@ in_range: F1 = F1 * F2 F0 = F0 * F1 ; sqrt(x) F1 = 1.2 - F0 = F0 * F1 + F0 = F0 * F1 ; out of step the sum grows as the square root of the overlap: 1.2 sqrt(x) + F1 = 1.5 + F6 = F6 * F1 ; in step it grows as the overlap (the window averages 2/3): 1.5 x + F0 = F0 - F6 + F0 = F0 * F10 + F0 = F0 + F6 ; between the two by the spread F1 = 1.0 - F9 = MIN(F0, F1) ; gain: grains add out of phase, so the sum grows as the square root of the overlap + F9 = MIN(F0, F1) ; the grain's gain R0 = DM(V_GSTATE) R2 = 5 R1 = LSHIFT R15 BY R2 From 453ff8632d5d6ac8e8e178872147c798bbb698dc Mon Sep 17 00:00:00 2001 From: claptom-music <350865352+Claptom-music@users.noreply.github.com> Date: Thu, 19 Nov 2026 14:12:35 +0100 Subject: [PATCH 093/415] Digitakt II machine wire: read the pattern's tempo instead of measuring ticks The step is now computed from the current pattern's tempo word (BPM * 120), the one the OS points its active tempo at; it holds while the transport is stopped. In the coupled emulator it gives the same 7,058 samples per step as the tick measurement did, so that test project is at 102 BPM. Co-Authored-By: Claude Opus 5.5 --- .../elekloader/modwerk/MACHINES.md | 7 ++-- .../elekloader/modwerk/machine-frame.c | 35 ++++++++++--------- 2 files changed, 22 insertions(+), 20 deletions(-) diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md index f46d7b7e1b..f0b1b798de 100644 --- a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md @@ -180,12 +180,11 @@ No halt and no missing blocks; stock voices on other tracks are untouched. The s - **Sound chip, per voice.** The voice parameter record (`0xdc` bytes per voice from `0x250738`, byte addresses) holds the SRC values the setup uses: word `0x25` START, `0x26` LENGTH, `0x27` LOOP as floats 0-1, word `0x2a` START and `0x2b` LENGTH as whole numbers, `0x2d` the loop start as a whole number (it followed START when LOOP was 0), `0x28` the crossfade (knob C on an added machine) as a float 0-1 (turned on the test machine's SRC page, base `d26c8874`). PLAY did not change this record (twice). Coupled runs from the same ready point, knobs turned on the SRC page before the note, record dumped at the renderer: these words, and only these, changed. A value that reaches the sound chip with each note, as this one does, is where a trig lock arrives too (not yet tested with a lock). - **Turning a knob in a coupled run.** Press SRC first, then send separate small encoder events (`enc 5 100` every 2.5 M instructions; encoder 1-8 are knobs A-H). One large turn (`enc 5 1920`, queued as many packets at once) changed nothing. The encoder accelerates: twenty turns of 100 took START from 0 to 119. -### The machine wire: the tempo on the sound chip (work in progress, 19 November 2026) +### The machine wire: the tempo on the sound chip (19 November 2026) -The base's audio-frame entry first calls `core_machine_frame` (`machine-frame.c`), which writes two frame-tail words after a module's (the sidechain prototype's 0-10): `DT2_MACHINE_WIRE_MAGIC` at word 16, then the samples per sixteenth step, measured from the transport's tick counter (`0x80004880`, 21,600,000 per quarter note) over the last transfer. On the sound chip the base takes the receive site (`planDt2MachineWire`): its receiver checks the magic at `DM(16, I3 + 0x804)` (the modifier, not a byte offset: `I3` holds a byte address) and copies the next word to `DT2_BASE_SHARC.stepSamples` (L2 `0x200c2c20`), which players read; 6,000 until the first frame. - -Emulator (development base `41a864e2`, Mikrotakt composed, coupled run): the receiver runs every transfer and reads the magic; the step word arrives as a steady 7,058 with the transport stopped. At 120 BPM it should be 6,000: either the test project is not at 120 BPM (7,058 is 102 BPM) or the emulator's transfers do not come once per 32-sample block. Not settled; reading the pattern's tempo setting instead of measuring ticks would remove the doubt. The base now owns the receive site: a module that wants it (the sidechain prototype took it) needs a base receive hook first. +The base's audio-frame entry first calls `core_machine_frame` (`machine-frame.c`), which writes two frame-tail words after a module's (the sidechain prototype's 0-10): `DT2_MACHINE_WIRE_MAGIC` at word 16, then the samples per sixteenth step at the sequencer's tempo. The tempo is the current pattern's word at `+0x1db70`, in BPM * 120, read while the sequencer's source is the patterns (`0x4316513c == 0x402a1bf8`, the rule seq-note-bridge.c uses); the OS points its active tempo there (`0x400d7f4c`; with another source it uses `0x4316512c`, not handled). Track speed is not applied. On the sound chip the base takes the receive site (`planDt2MachineWire`): its receiver checks the magic at `DM(16, I3 + 0x804)` (the modifier, not a byte offset: `I3` holds a byte address) and copies the next word to `DT2_BASE_SHARC.stepSamples` (L2 `0x200c2c20`), which players read; 6,000 until the first frame. +Emulator: the panel probe's project has 14,400 at `+0x1db70` (120 BPM). In the coupled runs (development base `140611`, Mikrotakt composed) the receiver reads the magic every transfer and the step word is a steady 7,058, which is 102 BPM: the same value an earlier version measured from the transport's tick counter (`0x80004880`, 21,600,000 per quarter note), so the coupled test project is most likely at 102 BPM. Not checked by changing the tempo. The base now owns the receive site: a module that wants it (the sidechain prototype took it) needs a base receive hook first. ### Machine modules' sound-chip parts in the build (19 November 2026) A machine module carries its player in its package as `build.dt2_sharc` version 2: L2 allocations at fixed addresses (claim each range as a dsp-region) and `{type, entry}` for each machine type it plays. The base keeps L2 `0x200c0100`-`0x200c3000` for its own machine parts. After the kit build, `preflightBuiltFile` (Digitakt II only) calls `composeDt2MachineBuild`: it reads every selected package's part, adds the longer selector table, the player dispatcher and the modules' allocations to section 7, and runs the preflight with that plan. A selection with no part leaves the kit build as it is. diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/machine-frame.c b/sdk/machines/digitakt-ii/elekloader/modwerk/machine-frame.c index fa634654b8..de2bc4581e 100644 --- a/sdk/machines/digitakt-ii/elekloader/modwerk/machine-frame.c +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/machine-frame.c @@ -3,25 +3,27 @@ * * Before each transfer to the sound chip (the base's audio-frame entry, ahead of ev_audio_frame's subscribers), the * base writes two words into the transfer's tail, after the words a module's frame writer takes (0-10 in the - * sidechain prototype): DT2_MACHINE_WIRE_MAGIC, then the samples per sixteenth step at the pattern's tempo, measured - * from the transport's tick counter over the last block. The base's receiver on the sound chip copies them where - * machine players read them (DT2_BASE_SHARC.wire in the builder). While the transport stands still, or after a jump, - * the last tempo stays. + * sidechain prototype): DT2_MACHINE_WIRE_MAGIC, then the samples per sixteenth step at the pattern's tempo. The tempo + * is the one the sequencer uses: with patterns as its source (seq-note-bridge.c's rule), the current pattern's word at + * +0x1db70, in BPM * 120 (14,400 for 120 BPM; the OS points its active tempo there, 0x400d7f4c). Otherwise, or with a + * value out of range, the last tempo stays. The base's receiver on the sound chip copies the step where machine + * players read it (DT2_BASE_SHARC.stepSamples in the builder). Track speed is not applied: the step is a 1X step. */ #include #include #define STOCK_WORD(address) (*(const volatile uint32_t *)(address)) -#define TICK_COUNTER 0x80004880u /* transport ticks: 21,600,000 per quarter note */ +#define CURRENT_PATTERN 0x4316501cu +#define SEQ_SOURCE 0x4316513cu +#define PATTERN_SOURCE 0x402a1bf8u +#define PATTERN_TEMPO 0x1db70u /* BPM * 120 */ +#define TEMPO_MIN (30u * 120u) +#define TEMPO_MAX (300u * 120u) +#define STEP_SAMPLES_TIMES_TEMPO (48000u * 60u / 4u * 120u) /* samples per sixteenth = this / (BPM * 120) */ #define DSP_QUEUE 0x400cd48cu /* the transfer's halfword queue */ #define FIRST_TAIL_HALF 0x402u -#define TICKS_PER_STEP (21600000u / 4u) -#define BLOCK_SAMPLES 32u -#define SPAN_MIN 2000u /* about 25 BPM */ -#define SPAN_MAX 300000u /* about 1,250 BPM: anything above is a jump, not a tempo */ -uint32_t core_machine_samples_per_step = 6000; /* 120 BPM until the transport has run */ -static uint32_t last_tick; +uint32_t core_machine_samples_per_step = 6000; /* 120 BPM until a pattern's tempo is read */ static __attribute__((noinline)) void put(volatile uint16_t *halves, unsigned int word, uint32_t value) { @@ -38,11 +40,12 @@ void core_machine_frame(unsigned int data_bytes, const void *data, unsigned int if (data_bytes != 0x802 || frame_bytes != 0xabc) { return; } - const uint32_t tick = STOCK_WORD(TICK_COUNTER); - const uint32_t span = tick - last_tick; - last_tick = tick; - if (span >= SPAN_MIN && span <= SPAN_MAX) { - core_machine_samples_per_step = TICKS_PER_STEP * BLOCK_SAMPLES / span; + const uintptr_t pattern = STOCK_WORD(CURRENT_PATTERN); + if (STOCK_WORD(SEQ_SOURCE) == PATTERN_SOURCE && pattern) { + const uint32_t tempo = STOCK_WORD(pattern + PATTERN_TEMPO); + if (tempo >= TEMPO_MIN && tempo <= TEMPO_MAX) { + core_machine_samples_per_step = STEP_SAMPLES_TIMES_TEMPO / tempo; + } } volatile uint16_t *tail = (volatile uint16_t *)(STOCK_WORD(DSP_QUEUE) + 4 * FIRST_TAIL_HALF + 2); put(tail, DT2_MACHINE_WIRE, DT2_MACHINE_WIRE_MAGIC); From aa254d94ff8d216d3cdc04d36a22e0bbda962eb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Thu, 19 Nov 2026 14:24:14 +0100 Subject: [PATCH 094/415] Changelog: Undo after a module page was open (#1386) Co-Authored-By: Claude Opus 5.5 --- changelog/2026-11-19-octatrack-undo-after-page-closed.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog/2026-11-19-octatrack-undo-after-page-closed.md diff --git a/changelog/2026-11-19-octatrack-undo-after-page-closed.md b/changelog/2026-11-19-octatrack-undo-after-page-closed.md new file mode 100644 index 0000000000..f91d066981 --- /dev/null +++ b/changelog/2026-11-19-octatrack-undo-after-page-closed.md @@ -0,0 +1 @@ +Fix: on the Octatrack base, a module trial that ended while one of the module's pages was open (Micro Timing's TRACK TRIG EDIT row, say) could no longer be undone, even after the page was closed: the unit stayed in recovery until a power cycle, and unplugging USB did not help. The base checks that no open page still uses a module before taking it out, and it counted the module's own change to the stock page as such a use, although taking the module out puts that change back. It now looks at the page as it will be once the module is out. While the page is still open the Undo still waits, so close it first; `npm run device -- recover` then finishes the rollback. Reproduced and fixed on an MKII running a development copy of the beta base with Micro Timing's trial package, and in a host test. From c4ab54255430769fefe3861c251a3ae7f2680c46 Mon Sep 17 00:00:00 2001 From: claptom-music <350865352+Claptom-music@users.noreply.github.com> Date: Thu, 19 Nov 2026 15:02:03 +0100 Subject: [PATCH 095/415] Mikrotakt: MODE on knob B, from SAMPLE's play mode FWD is DRIFT, FWD.L STUTTER, REV REVERSE and REV.L HAZE; the player reads the play mode from the voice's record (negative step, looping word 0x6f), and the grains copy the play head's direction. Co-Authored-By: Claude Opus 5.5 --- sdk/digitakt-ii/modules/mikrotakt/README.md | 2 +- sdk/digitakt-ii/modules/mikrotakt/TESTING.md | 5 +++- sdk/digitakt-ii/modules/mikrotakt/src/main.c | 4 +++- .../modules/mikrotakt/src/player.sharc | 23 +++++++++++++++---- 4 files changed, 27 insertions(+), 7 deletions(-) diff --git a/sdk/digitakt-ii/modules/mikrotakt/README.md b/sdk/digitakt-ii/modules/mikrotakt/README.md index 8711dd77be..5697162ac3 100644 --- a/sdk/digitakt-ii/modules/mikrotakt/README.md +++ b/sdk/digitakt-ii/modules/mikrotakt/README.md @@ -12,7 +12,7 @@ The player is `src/player.sharc`, assembled by Modwerk's sound-chip assembler (` - **Grains.** A grain is a copy of the voice's record taken at the play head, moved by the position offset and a random spread, played by the stock player and shaped by a window (`4x(1 - x)`, linear across each 32-sample block). Grains start every interval, a fraction of a sequencer step set by the density. Their gain follows the square root of the overlap, since grains add out of phase. - **Modes.** DRIFT: grains around the moving play head. STUTTER: four grains from the same spot, then the spot moves to the play head, with a sixteenth of the spread. HAZE: the widest spread. REVERSE plays as DRIFT until reversed playback through the stock player is traced. - **Settings.** Per track, in the player's own memory: mode, position, size, density, spread and samples per step. They have defaults (DRIFT, at the play head, 140 ms grains, four grain starts per step at 120 BPM, a quarter spread) until the knobs are connected. -- **Knobs.** The base shows an added machine's own knob names on its stand-in's parameters (SAMPLE: B play mode, C crossfade, E start, F length, G loop position), so saving, trig locks and live recording work as for SAMPLE, and the values reach the sound chip in each voice's parameter record. Knob C (SIZE) is SAMPLE's crossfade, which a one-shot sample never uses: 0 gives 140 ms grains, the top 1.5 s. E (POS) is where the play head starts, F (LEN) how long it runs (SAMPLE's start and length), G (SPRD) the grains' random spread (SAMPLE's loop position, which only matters when the play mode loops). B stays SAMPLE's play mode until MODE is wired to it; density stays fixed (four grain starts per step) until a knob is free for it. The tempo is not passed to the sound chip yet. +- **Knobs.** The base shows an added machine's own knob names on its stand-in's parameters (SAMPLE: B play mode, C crossfade, E start, F length, G loop position), so saving, trig locks and live recording work as for SAMPLE, and the values reach the sound chip in each voice's parameter record. Knob C (SIZE) is SAMPLE's crossfade, which a one-shot sample never uses: 0 gives 140 ms grains, the top 1.5 s. E (POS) is where the play head starts, F (LEN) how long it runs (SAMPLE's start and length), G (SPRD) the grains' random spread (SAMPLE's loop position, which only matters when the play mode loops). B (MODE) is SAMPLE's play mode: FWD is DRIFT, FWD.L STUTTER, REV REVERSE and REV.L HAZE (the page still shows the play mode's arrows and names); the player reads it from the voice's record (a negative step, and the looping word), and the grains copy the play head's direction, so the REV modes reverse them. Density stays fixed at four grain starts per sixteenth step at the pattern's tempo, which the base passes to the sound chip (the machine wire). Track speed is not applied yet. Emulator check (19 November 2026, OS 1.17, development base `37b4db44` with the test machine as type 7, the player composed by `composeDt2MachineBuild`, scripted coupled run, two notes of a 220 Hz test sample): the build passes the preflight; the notes play as clouds of grains at 220 Hz, peak 0.03-0.06 against 0.063 for SAMPLE, no halt, no missing blocks. The largest sample-to-sample step is 2.9% of the peak, what a clean 220 Hz sine gives (no clicks at grain edges). A pass-through player (the stock player only) in the same build plays as SAMPLE. diff --git a/sdk/digitakt-ii/modules/mikrotakt/TESTING.md b/sdk/digitakt-ii/modules/mikrotakt/TESTING.md index 50bfb0f2d7..d0bc2e5c7d 100644 --- a/sdk/digitakt-ii/modules/mikrotakt/TESTING.md +++ b/sdk/digitakt-ii/modules/mikrotakt/TESTING.md @@ -18,4 +18,7 @@ Setup: a development base (test machine as type 7, standing for SAMPLE; base `d2 | Knobs named (SIZE, POS, LEN, SPRD on C, E, F, G); SPRD read from knob G, at 0 (base `41a864e2`) | Plays, no halt; peak 0.0997, about 4 dB above SAMPLE: without spread the grains add in step, while the gain assumed they add out of step. Fixed in the next row. | | Gain between the in-step rule (no spread) and the out-of-step rule (an eighth of the spread and up) | SPRD at 0: peak 0.064, RMS about 0.04, as SAMPLE (0.063, 0.04). SPRD turned up: peak 0.052. Largest step 3.3% and 2.9% of the peak (no clicks). | -Not tested: the other knobs (their grain roles are not decided), trig locks on SIZE, several Mikrotakt tracks at once, CPU load on a unit, other modules alongside it, saving and reloading a kit with Mikrotakt, hardware. +| MODE on knob B (SAMPLE's play mode), base `140611` | Play mode REV: the player reads MODE 2 (REVERSE) and plays at SAMPLE's level (a steady test tone sounds the same reversed). REV.L: MODE 3 (HAZE), peak up to 0.082, about 2 dB above SAMPLE. FWD.L (STUTTER) not reached in the run. | +| Tempo | The step word follows the pattern's tempo word: 7,058 samples per step in the coupled test project (102 BPM). Not checked by changing the tempo. | + +Not tested: STUTTER, a reversed recording heard reversed, (their grain roles are not decided), trig locks on SIZE, several Mikrotakt tracks at once, CPU load on a unit, other modules alongside it, saving and reloading a kit with Mikrotakt, hardware. diff --git a/sdk/digitakt-ii/modules/mikrotakt/src/main.c b/sdk/digitakt-ii/modules/mikrotakt/src/main.c index 8948f9d52b..6faa8415c1 100644 --- a/sdk/digitakt-ii/modules/mikrotakt/src/main.c +++ b/sdk/digitakt-ii/modules/mikrotakt/src/main.c @@ -9,7 +9,8 @@ * Knobs are SAMPLE's parameters under Mikrotakt's names (the base's knob names), so they keep SAMPLE's job for the * play head as well: C SIZE (SAMPLE's crossfade, unused by a one-shot sample), E POS (where the play head starts), * F LEN (how long it runs), G SPRD (the grains' random spread; SAMPLE's loop position, which matters only when the - * play mode loops). B stays SAMPLE's play mode until MODE is wired to it. + * play mode loops), B MODE (SAMPLE's play mode: FWD is DRIFT, FWD.L STUTTER, REV REVERSE, REV.L HAZE; the page still + * shows the play mode's arrows and names). */ #include @@ -18,6 +19,7 @@ const struct dt2_machine mikrotakt_machine = { .stands_for = 0, .strings = { "Mikrotakt", "MKT", 0 }, .knobs = { + [0] = { "Mode", "MODE" }, [1] = { "Grain Size", "SIZE" }, [2] = { "Position", "POS" }, [3] = { "Length", "LEN" }, diff --git a/sdk/digitakt-ii/modules/mikrotakt/src/player.sharc b/sdk/digitakt-ii/modules/mikrotakt/src/player.sharc index 3263b3f39c..309b0b74f0 100644 --- a/sdk/digitakt-ii/modules/mikrotakt/src/player.sharc +++ b/sdk/digitakt-ii/modules/mikrotakt/src/player.sharc @@ -25,6 +25,8 @@ .equ FRAC, 0x6c ; record word: its fraction .equ ENDW, 0x69 ; record word: the sample's length in words .equ PLAYING, 0x6e ; record word: nonzero while the stock player renders it +.equ STEP_WHOLE, 0x6b ; record word: the step's whole part, negative when the play mode reverses +.equ LOOPING, 0x6f ; record word: 1 when the play mode loops ; The base's machine wire (DT2_BASE_SHARC.stepSamples in src/engine/elekloader/dt2-render-build.ts). .equ STEP_SAMPLES, 0x200c2c20 / 4 .equ PREC0, 0x250738 ; voice 0's parameter record (byte address); 0xdc bytes per voice @@ -53,8 +55,8 @@ .equ GRAINS, 6 .equ MODE_DRIFT, 0 -.equ MODE_STUTTER, 1 -.equ MODE_REVERSE, 2 ; plays as DRIFT until reversed grains are traced +.equ MODE_STUTTER, 1 ; FWD.L +.equ MODE_REVERSE, 2 ; REV: DRIFT with the grains reversed .equ MODE_HAZE, 3 .code 0x200d0000 @@ -307,8 +309,21 @@ copy_record: DM(I1, M0) = R0 R0 = DM(M3, I3) F1 = 127.0 F0 = F0 * F1 ; spread 0-127 - M2 = 0 - R11 = DM(M2, I2) ; mode + ; MODE is knob B, SAMPLE's play mode, read from the voice's record: reversed (negative step) and looping (word 0x6f) + ; give DRIFT (FWD), STUTTER (FWD.L), REVERSE (REV) and HAZE (REV.L). Grains copy the step, so REV and REV.L reverse them. + M1 = STEP_WHOLE + R1 = DM(M1, I0) + R2 = -30 + R11 = LSHIFT R1 BY R2 ; 3 when the step is negative, 0 forward + R2 = 2 + R11 = R11 AND R2 + M1 = LOOPING + R1 = DM(M1, I0) + R2 = 0 + COMP(R1, R2) + IF EQ JUMP mode_set + R11 = R11 + 1 +mode_set: R2 = MODE_HAZE COMP(R11, R2) IF NE JUMP spread_set From fd568369863b06c3aae59a189d01da2f746195b7 Mon Sep 17 00:00:00 2001 From: jonathanwardle1992-beep Date: Thu, 19 Nov 2026 14:21:15 +0000 Subject: [PATCH 096/415] List Screen Off now that its own qualification is enough. Move it into the library, publish the release notes, and re-stamp the records after the notes leave the source folder. Co-authored-by: Cursor --- sdk/drafts/screen-off/CHANGELOG.json | 11 ----------- sdk/{drafts => octatrack/modules}/screen-off/LICENSE | 0 .../modules}/screen-off/README.md | 0 .../modules}/screen-off/TESTING.md | 0 .../modules}/screen-off/evidence/performance.json | 0 .../modules}/screen-off/manifest.py | 0 .../modules}/screen-off/octamod.module.json | 0 .../modules}/screen-off/presentation/thumbnail.svg | 0 .../modules}/screen-off/runtime.json | 0 .../modules}/screen-off/screen_off.c | 0 .../modules}/screen-off/verify.py | 0 11 files changed, 11 deletions(-) delete mode 100644 sdk/drafts/screen-off/CHANGELOG.json rename sdk/{drafts => octatrack/modules}/screen-off/LICENSE (100%) rename sdk/{drafts => octatrack/modules}/screen-off/README.md (100%) rename sdk/{drafts => octatrack/modules}/screen-off/TESTING.md (100%) rename sdk/{drafts => octatrack/modules}/screen-off/evidence/performance.json (100%) rename sdk/{drafts => octatrack/modules}/screen-off/manifest.py (100%) rename sdk/{drafts => octatrack/modules}/screen-off/octamod.module.json (100%) rename sdk/{drafts => octatrack/modules}/screen-off/presentation/thumbnail.svg (100%) rename sdk/{drafts => octatrack/modules}/screen-off/runtime.json (100%) rename sdk/{drafts => octatrack/modules}/screen-off/screen_off.c (100%) rename sdk/{drafts => octatrack/modules}/screen-off/verify.py (100%) diff --git a/sdk/drafts/screen-off/CHANGELOG.json b/sdk/drafts/screen-off/CHANGELOG.json deleted file mode 100644 index 83c8e69933..0000000000 --- a/sdk/drafts/screen-off/CHANGELOG.json +++ /dev/null @@ -1,11 +0,0 @@ -[ - { - "version": "0.1.0-experimental", - "date": "2026-11-06", - "changes": [ - "Hold UP and tap NO to blank the screen. The same chord brings it back.", - "Other keys and knobs keep working while the screen stays black.", - "Known issue: reported on a MKII that the chord blanks the screen and brings it back. An MKI, the stock saver, and a power cycle are not tried." - ] - } -] diff --git a/sdk/drafts/screen-off/LICENSE b/sdk/octatrack/modules/screen-off/LICENSE similarity index 100% rename from sdk/drafts/screen-off/LICENSE rename to sdk/octatrack/modules/screen-off/LICENSE diff --git a/sdk/drafts/screen-off/README.md b/sdk/octatrack/modules/screen-off/README.md similarity index 100% rename from sdk/drafts/screen-off/README.md rename to sdk/octatrack/modules/screen-off/README.md diff --git a/sdk/drafts/screen-off/TESTING.md b/sdk/octatrack/modules/screen-off/TESTING.md similarity index 100% rename from sdk/drafts/screen-off/TESTING.md rename to sdk/octatrack/modules/screen-off/TESTING.md diff --git a/sdk/drafts/screen-off/evidence/performance.json b/sdk/octatrack/modules/screen-off/evidence/performance.json similarity index 100% rename from sdk/drafts/screen-off/evidence/performance.json rename to sdk/octatrack/modules/screen-off/evidence/performance.json diff --git a/sdk/drafts/screen-off/manifest.py b/sdk/octatrack/modules/screen-off/manifest.py similarity index 100% rename from sdk/drafts/screen-off/manifest.py rename to sdk/octatrack/modules/screen-off/manifest.py diff --git a/sdk/drafts/screen-off/octamod.module.json b/sdk/octatrack/modules/screen-off/octamod.module.json similarity index 100% rename from sdk/drafts/screen-off/octamod.module.json rename to sdk/octatrack/modules/screen-off/octamod.module.json diff --git a/sdk/drafts/screen-off/presentation/thumbnail.svg b/sdk/octatrack/modules/screen-off/presentation/thumbnail.svg similarity index 100% rename from sdk/drafts/screen-off/presentation/thumbnail.svg rename to sdk/octatrack/modules/screen-off/presentation/thumbnail.svg diff --git a/sdk/drafts/screen-off/runtime.json b/sdk/octatrack/modules/screen-off/runtime.json similarity index 100% rename from sdk/drafts/screen-off/runtime.json rename to sdk/octatrack/modules/screen-off/runtime.json diff --git a/sdk/drafts/screen-off/screen_off.c b/sdk/octatrack/modules/screen-off/screen_off.c similarity index 100% rename from sdk/drafts/screen-off/screen_off.c rename to sdk/octatrack/modules/screen-off/screen_off.c diff --git a/sdk/drafts/screen-off/verify.py b/sdk/octatrack/modules/screen-off/verify.py similarity index 100% rename from sdk/drafts/screen-off/verify.py rename to sdk/octatrack/modules/screen-off/verify.py From 20c372fea8b22ea5c65d27bded1c799372544361 Mon Sep 17 00:00:00 2001 From: jonathanwardle1992-beep Date: Thu, 19 Nov 2026 14:21:29 +0000 Subject: [PATCH 097/415] Publish Screen Off's notes and re-stamp the records the move changed. The catalogue row, the author account and the generated library entry go with them. The known issue now names only an MKI and the stock saver. Co-authored-by: Cursor --- .github/module-authors.json | 1 + sdk/catalog.json | 5 + .../screen-off/evidence/performance.json | 2 +- .../modules/screen-off/octamod.module.json | 2 +- src/catalog/module-documents.json | 230 ++++++++++++++++++ .../module-changelogs/screen-off.json | 11 + 6 files changed, 249 insertions(+), 2 deletions(-) create mode 100644 src/community/module-changelogs/screen-off.json diff --git a/.github/module-authors.json b/.github/module-authors.json index ba2fe8161b..dc45196cc4 100644 --- a/.github/module-authors.json +++ b/.github/module-authors.json @@ -5,6 +5,7 @@ "devilfish707": 86663946, "gdeo607": 190758915, "irpina": 264014615, + "jonathanwardle1992-beep": 246756066, "markandrus": 359154, "repeat98": 67785539, "sambanks": 3905846, diff --git a/sdk/catalog.json b/sdk/catalog.json index 8c0a3d91fb..efc81e3036 100644 --- a/sdk/catalog.json +++ b/sdk/catalog.json @@ -216,6 +216,11 @@ "id": "butter-fingers", "version": "0.1.0-experimental", "addedAt": "2026-11-18T16:04:00Z" + }, + { + "id": "screen-off", + "version": "0.1.0-experimental", + "addedAt": "2026-11-19T14:20:00Z" } ] } diff --git a/sdk/octatrack/modules/screen-off/evidence/performance.json b/sdk/octatrack/modules/screen-off/evidence/performance.json index dd613b3fdb..16b8159ff9 100644 --- a/sdk/octatrack/modules/screen-off/evidence/performance.json +++ b/sdk/octatrack/modules/screen-off/evidence/performance.json @@ -2,7 +2,7 @@ "schema": 1, "module": "screen-off", "version": "0.1.0-experimental", - "sourceSha256": "95af4000fc856711818874d839a2d7da4bf120e36390642c263061ed86dd4d1f", + "sourceSha256": "acc15987dd945a652288edfca2671299ef8921719ebc0457a686e1e5d8beffc7", "kind": "coldfire", "trigger": "key", "cycles": { diff --git a/sdk/octatrack/modules/screen-off/octamod.module.json b/sdk/octatrack/modules/screen-off/octamod.module.json index 3b7b7faa72..2db5a2badb 100644 --- a/sdk/octatrack/modules/screen-off/octamod.module.json +++ b/sdk/octatrack/modules/screen-off/octamod.module.json @@ -118,7 +118,7 @@ ], "qualification": { "moduleVersion": "0.1.0-experimental", - "sourceSha256": "b5a8e11969e0001ffc9065a8a73a3d915ee773aadda76d9e6fc3573d4ca2aadc", + "sourceSha256": "f097a11f44e508384e34a6262285498dcd8e5ca97840b2933903c3c8dbfe124a", "imageSha256": "14aea62fbfef825e2ea23cc4baf6e01a2f2b0bf44b215db28748c1a546aeae0c", "cycles": [ { diff --git a/src/catalog/module-documents.json b/src/catalog/module-documents.json index 27ab25d34d..878c3eebf5 100644 --- a/src/catalog/module-documents.json +++ b/src/catalog/module-documents.json @@ -13699,6 +13699,236 @@ "declaration": "Original module by Jan Kolkmeier, MIT. No firmware, extracted stock code or built images are included." }, "media": [] + }, + { + "schemaVersion": 2, + "id": "screen-off", + "key": "SCREEN OFF", + "name": "Screen Off", + "version": "0.1.0-experimental", + "category": "system", + "access": { + "location": "Front panel: hold UP, tap NO", + "steps": [ + "Hold UP and tap NO. The screen goes black. Let go of both keys.", + "Press PLAY, change a pattern or turn a knob. The action happens and the screen stays black.", + "Hold UP and tap NO again. The screen returns to the page you were on." + ], + "screenshots": [], + "noUiReason": "It draws nothing of its own. Hold UP and tap NO and the stock screen goes black until the same chord." + }, + "author": { + "github": "jonathanwardle1992-beep", + "credits": [ + "jonathanwardle1992-beep: the chord and the wish to blank the panel while a pattern keeps running." + ] + }, + "nativeManifest": "manifest.py", + "presentation": { + "label": "Blank the screen with UP + NO", + "family": "Front-panel shortcut", + "summary": "Hold UP and tap NO to blank the screen until the same chord. Sound, the sequencer and the other keys keep going.", + "overview": "The MKII already dims its OLED after five quiet minutes and turns it off after an hour, and only while the sequencer is stopped. Screen Off blanks the glass at once, including while a pattern plays, and leaves it blank until you ask for it back. The trig lamps stay lit, so a running pattern is still visible on the keys.", + "highlights": [ + "Hold UP and tap NO. The screen goes black. The same chord brings it back.", + "Every other key and every knob still does what it did. The screen stays black while you use them.", + "UP alone and NO alone are unchanged. NO still disarms, or steps back in a list.", + "Nothing is stored in the project. A power cycle turns the screen back on." + ], + "usage": [ + "Hold UP and tap NO. The screen goes black. Let go of both keys.", + "Press PLAY, change a pattern or turn a knob. The action happens and the screen stays black.", + "Hold UP and tap NO again. The screen returns to the page you were on." + ] + }, + "controls": [], + "compatibility": { + "firmware": "1.40C", + "effectId": null, + "location": "Project sequencer", + "conflicts": [], + "uiClaims": [ + "key:UP+NO" + ], + "limitations": [ + "OS 1.40C. The author reports that on a MKII the chord blanks the screen and brings it back. It needs the Modwerk base: the base passes keys and the composed frame to the module.", + "The blank clears the pixels. On a MKII that leaves the OLED dark. Whether the panel's own power-off command can be used as well is not yet known. On an MKI the backlight may stay lit behind a blank glass.", + "The screen stays black until UP + NO again, including while other keys and knobs do their usual jobs. You will not see the result until the screen is back.", + "Holding UP already moves the highlight in a list by one step before NO blanks the screen. That NO does not disarm and does not answer a question.", + "The blank is forgotten at power-on. It is not saved with the Part or the project. The stock screen saver still runs when this blank is off.", + "Known issue: not yet tested on the MKI, or beside the stock screen saver while a pattern plays." + ] + }, + "resources": { + "recorded": "19 November 2026", + "storage": { + "label": "ColdFire unit", + "display": "272 bytes", + "value": 272, + "unit": "bytes", + "method": "static", + "conditions": "Package 14aea62fbfef825e2ea23cc4baf6e01a2f2b0bf44b215db28748c1a546aeae0c. Linked image 256 bytes (250 of code, 2 of alignment, the 4-byte so_at pointer) plus 12 bytes of bss. The redraw path pushes 4 bytes on the UI stack. No heap and no DSP memory. The composed frame is stock's.", + "source": "TESTING.md" + }, + "processing": { + "label": "ColdFire, per key and per composed frame", + "display": "25033 cycles", + "value": 25033, + "unit": "cycles/event", + "method": "emulator", + "conditions": "ot_emu executed instructions from so_draw's entry to its rts, interrupts included, blank on. 26 clears of the frame took 6157 with no interrupt inside the draw. The dearest was 25033. This is not a chip wall-clock count.", + "source": "TESTING.md" + }, + "impact": { + "conditions": "UI task: one key chord, and a frame clear only while the blank is on.", + "cpu": { + "level": "minimal", + "basis": "source-estimate", + "rationale": "The chord is a handful of compares. The clear is 1024 bytes on the UI draw, and only while the screen is black. Nothing runs in the audio interrupt.", + "source": "TESTING.md" + }, + "dsp": { + "level": "minimal", + "basis": "source-estimate", + "rationale": "No DSP code. The blank only clears the composed frame on the UI task.", + "source": "manifest.py" + }, + "memory": { + "level": "minimal", + "basis": "source-estimate", + "rationale": "256 bytes of linked image, 12 bytes of state, and a 4-byte push on the redraw path. No heap and no DSP memory.", + "source": "screen_off.c" + } + }, + "cpuPrice": { + "value": 0, + "unit": "percent-of-frame", + "measure": "frame-interrupt", + "tool": "npm run device:price", + "date": "2026-11-19", + "conditions": "MKII, OS 1.40C, development twin 878307834ad3c23a RAM-booted (no controller rows, not flashed). Package 14aea62fbfef825e2ea23cc4baf6e01a2f2b0bf44b215db28748c1a546aeae0c, built before this twin. One 8 s reading, pattern left as the unit came up, transport stopped beforehand, module installed and the blank off. Frame interrupt +0.0 points. The CPU meter read +1.7 and is not this price.", + "source": "TESTING.md" + } + }, + "tests": { + "report": "TESTING.md", + "summary": "Host gate on screen_off.c. The author reports that on a MKII the chord blanks the screen and brings it back, and that a power cycle brought the screen back on with the module still installed. An MKI was not tried.", + "hardwareStatus": "reported", + "evidenceRevision": "7105ec60ecfdda0a00f31ce7f76f2091580644cf", + "gates": [ + "modules/screen-off/verify.py" + ], + "qualification": { + "documentation": { + "tutorial": { + "title": "Quick tutorial", + "steps": [ + "Hold UP and tap NO. The screen goes black. Let go of both keys.", + "Press PLAY, or turn a knob. The Octatrack does it, and the screen stays black. The trig lamps still show the pattern.", + "Hold UP and tap NO again. The screen returns to the page you left." + ] + }, + "screenshots": [], + "screenshotStyle": "black-and-white" + }, + "moduleVersion": "0.1.0-experimental", + "sourceSha256": "f097a11f44e508384e34a6262285498dcd8e5ca97840b2933903c3c8dbfe124a", + "imageSha256": "14aea62fbfef825e2ea23cc4baf6e01a2f2b0bf44b215db28748c1a546aeae0c", + "cycles": [ + { + "processor": "coldfire", + "worstCase": 25033, + "maxConfiguration": 25033, + "maxInstances": 1, + "budget": 26600000, + "unit": "cycles/event", + "method": "emulator", + "conditions": { + "parameterExtremes": "There is no parameter. The blank is off or on, and the dearest draw is the clear of the 1024-byte frame.", + "parameterModulation": "No LFO, p-lock, MIDI CC or scene reaches this module. The chord is the only control, and it was the event that was counted.", + "modeSwitching": "One UP+NO turned the blank on. A later run sent STOP and PART+RIGHT, which changed the Part byte from 0 to 1, then PLAY, between two groups of the same chord.", + "maxLoad": "One instance. It takes no track, no FX slot and no DSP core. The count is one draw, not a sum across tracks.", + "inputConditions": "With the blank off the draw returned in 10 instructions. With it on, 26 clears took 6157 and the dearest, the same clear with an interrupt inside it, took 25033. That count is executed instructions, not chip wall-clock cycles, and it does not bound the stock redraw call." + }, + "report": "TESTING.md" + } + ], + "memory": { + "regions": [ + { + "name": "ColdFire code", + "space": "cpu-ram", + "words": 250, + "wordBits": 8, + "bytes": 250, + "scope": "shared" + }, + { + "name": "Alignment before so_at", + "space": "cpu-ram", + "words": 2, + "wordBits": 8, + "bytes": 2, + "scope": "shared" + }, + { + "name": "so_at pointer", + "space": "cpu-ram", + "words": 4, + "wordBits": 8, + "bytes": 4, + "scope": "shared" + }, + { + "name": "struct so", + "space": "cpu-ram", + "words": 12, + "wordBits": 8, + "bytes": 12, + "scope": "shared" + }, + { + "name": "Redraw argument on the UI stack", + "space": "sdram", + "words": 4, + "wordBits": 8, + "bytes": 4, + "scope": "shared" + } + ], + "perInstanceBytes": 0, + "sharedBytes": 272, + "maxInstances": 1, + "totalBytes": 272, + "conditions": "ABI 8 package 14aea62fbfef825e2ea23cc4baf6e01a2f2b0bf44b215db28748c1a546aeae0c, image 256 bytes and bss 12, one instance. The 4-byte figure is the only push in the image. Stock's stack under the redraw call, the composed frame and the held-key row are not this module's. No heap, no table, no DSP memory. Hardware canaries were not measured.", + "report": "TESTING.md" + }, + "hardware": { + "kind": "functional", + "status": "reported", + "model": "MKII", + "testedOn": "2026-11-18", + "tester": "jonathanwardle1992-beep", + "sourceRevision": "7105ec60ecfdda0a00f31ce7f76f2091580644cf", + "imageSha256": "14aea62fbfef825e2ea23cc4baf6e01a2f2b0bf44b215db28748c1a546aeae0c", + "summary": "On a MKII, OS 1.40C, the author reports that hold UP, tap NO blanks the screen and the same chord brings it back, including in a list, the sample editor, the arranger and the status page. On 18 November 2026 the same package was kept, the author powered the unit off and on, and they report the screen came back on with the module still installed. Removal while the screen was black brought the page back and the chord no longer blanked it. A try without keeping rolled back. No SAVE and no flash.", + "limitations": [ + "The blank and the restore are the author's report. The log shows the tick word, not a photograph of the glass.", + "An MKI was not tried. A card install was not tried.", + "The stock screen saver, the OLED power-off command and the MKI backlight were not tried.", + "Part save and project save were not tried. The blank is not stored.", + "No audio was measured. This module writes no samples." + ], + "report": "TESTING.md" + } + } + }, + "license": { + "spdx": "MIT", + "file": "LICENSE", + "declaration": "Original module by jonathanwardle1992-beep, MIT. No firmware, extracted stock code or built images are included." + }, + "media": [] } ] } diff --git a/src/community/module-changelogs/screen-off.json b/src/community/module-changelogs/screen-off.json new file mode 100644 index 0000000000..101d584822 --- /dev/null +++ b/src/community/module-changelogs/screen-off.json @@ -0,0 +1,11 @@ +[ + { + "version": "0.1.0-experimental", + "date": "2026-11-19", + "changes": [ + "Hold UP and tap NO to blank the screen. The same chord brings it back.", + "Other keys and knobs keep working while the screen stays black.", + "Known issue: an MKI and the stock screen saver are not tried." + ] + } +] From 04dcf2a58afe60e60c93b59df4f2a573da89680e Mon Sep 17 00:00:00 2001 From: claptom-music <350865352+Claptom-music@users.noreply.github.com> Date: Thu, 19 Nov 2026 15:59:16 +0100 Subject: [PATCH 098/415] Digitakt II machines: each track's step at its speed, and knob value names The machine wire now carries sixteen more words, each track's step in samples at the pattern's tempo and the track's speed. A machine knob may name its values: the base swaps the row's formatter while the machine's names show. Co-Authored-By: Claude Opus 5.5 --- .../elekloader/modwerk/MACHINES.md | 4 +- .../elekloader/modwerk/machine-frame.c | 29 +++++++++-- .../elekloader/modwerk/machine-knobs.c | 51 +++++++++++++++++-- .../modwerk/tests/machines-fixture.c | 15 +++--- .../digitakt-ii/include/mk2/machines.h | 11 ++-- src/engine/elekloader/dt2-render-build.ts | 3 +- src/engine/elektron/dt2-sharc.ts | 29 ++++++++--- 7 files changed, 115 insertions(+), 27 deletions(-) diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md index f0b1b798de..21df56124c 100644 --- a/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md @@ -182,7 +182,7 @@ No halt and no missing blocks; stock voices on other tracks are untouched. The s ### The machine wire: the tempo on the sound chip (19 November 2026) -The base's audio-frame entry first calls `core_machine_frame` (`machine-frame.c`), which writes two frame-tail words after a module's (the sidechain prototype's 0-10): `DT2_MACHINE_WIRE_MAGIC` at word 16, then the samples per sixteenth step at the sequencer's tempo. The tempo is the current pattern's word at `+0x1db70`, in BPM * 120, read while the sequencer's source is the patterns (`0x4316513c == 0x402a1bf8`, the rule seq-note-bridge.c uses); the OS points its active tempo there (`0x400d7f4c`; with another source it uses `0x4316512c`, not handled). Track speed is not applied. On the sound chip the base takes the receive site (`planDt2MachineWire`): its receiver checks the magic at `DM(16, I3 + 0x804)` (the modifier, not a byte offset: `I3` holds a byte address) and copies the next word to `DT2_BASE_SHARC.stepSamples` (L2 `0x200c2c20`), which players read; 6,000 until the first frame. +The base's audio-frame entry first calls `core_machine_frame` (`machine-frame.c`), which writes two frame-tail words after a module's (the sidechain prototype's 0-10): `DT2_MACHINE_WIRE_MAGIC` at word 16, then the samples per sixteenth step at the sequencer's tempo. The tempo is the current pattern's word at `+0x1db70`, in BPM * 120, read while the sequencer's source is the patterns (`0x4316513c == 0x402a1bf8`, the rule seq-note-bridge.c uses); the OS points its active tempo there (`0x400d7f4c`; with another source it uses `0x4316512c`, not handled). Then sixteen words: each track's step at its speed (the pattern's speed, or the track's own in per-track mode, as pulses per step from `0x4020e28c`: 3, 4, 6, 8, 12, 24, 48 for 2X to 1/8X, against 1X's 6). On the sound chip the base takes the receive site (`planDt2MachineWire`): its receiver checks the magic at `DM(16, I3 + 0x804)` (the modifier, not a byte offset: `I3` holds a byte address) and copies the next seventeen words to `DT2_BASE_SHARC.stepSamples` (L2 `0x200c2c20`: the 1X step, then tracks 1-16), which players read; 6,000 until the first frame. In the coupled run all seventeen arrive (7,058 each: every track of the test project at 1X); a changed speed was not tried. Emulator: the panel probe's project has 14,400 at `+0x1db70` (120 BPM). In the coupled runs (development base `140611`, Mikrotakt composed) the receiver reads the magic every transfer and the step word is a steady 7,058, which is 102 BPM: the same value an earlier version measured from the transport's tick counter (`0x80004880`, 21,600,000 per quarter note), so the coupled test project is most likely at 102 BPM. Not checked by changing the tempo. The base now owns the receive site: a module that wants it (the sidechain prototype took it) needs a base receive hook first. ### Machine modules' sound-chip parts in the build (19 November 2026) @@ -193,7 +193,7 @@ Local end-to-end check: OS 1.17, the development base `37b4db44` linked by Elekl ### Own knob names (19 November 2026) -An added machine's knobs are its stand-in's own parameters, shown under the machine's names. `machine-knobs.c`: the descriptor lookup's entry (`0x400c89a4`) calls `core_machine_knob_names(type)` for every type a page asks for; for an added machine with knob names it points the names of the stand-in's parameter rows at those knobs (row `+0x28` name, `+0x30` short name, in the OS's own table at `0x4020f59c`, which is in RAM) and puts the stock names back when a page asks for any other machine. Knob C, which SAMPLE does not show (its descriptor has code 0 there), gets SAMPLE's crossfade parameter (code `0xcc`, sound slot 27) when a machine standing for SAMPLE names it; the parameter-code lookup answers an added type as its stand-in, which gives slot 27 that same code. Saving, trig locks, live recording, MIDI and the values the sound chip receives are the stand-in's, unchanged. +An added machine's knobs are its stand-in's own parameters, shown under the machine's names. `machine-knobs.c`: the descriptor lookup's entry (`0x400c89a4`) calls `core_machine_knob_names(type)` for every type a page asks for; for an added machine with knob names it points the names of the stand-in's parameter rows at those knobs (row `+0x28` name, `+0x30` short name, in the OS's own table at `0x4020f59c`, which is in RAM) and puts the stock names back when a page asks for any other machine. Knob C, which SAMPLE does not show (its descriptor has code 0 there), gets SAMPLE's crossfade parameter (code `0xcc`, sound slot 27) when a machine standing for SAMPLE names it; the parameter-code lookup answers an added type as its stand-in, which gives slot 27 that same code. Saving, trig locks, live recording, MIDI and the values the sound chip receives are the stand-in's, unchanged. A knob may also name its values (a list indexed by the stand-in's value): the base then points the row's formatter (`+0x34`, called as (value << 8, text out); the stock ones copy their text with `0x40000e82` (out, text)) at a routine for that knob position, which writes the machine's name for the value and calls the stock formatter past the list. Panel probe (development base `57ba35ce`): the test machine's knob B shows its own value name (TFWD for FWD), and SAMPLE's shows FWD again. Emulator (panel probe, development base `d26c8874`, test machine naming all five knobs): the type-7 SRC page shows TMOD, TSIZ (knob C), TPOS, TLEN and TSPR with the stand-in's knob graphics, a turned knob shows its value, and back on SAMPLE the page shows PLAY, STRT, LEN, LOOP and no knob C again. No fault. diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/machine-frame.c b/sdk/machines/digitakt-ii/elekloader/modwerk/machine-frame.c index de2bc4581e..73973b6653 100644 --- a/sdk/machines/digitakt-ii/elekloader/modwerk/machine-frame.c +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/machine-frame.c @@ -6,8 +6,9 @@ * sidechain prototype): DT2_MACHINE_WIRE_MAGIC, then the samples per sixteenth step at the pattern's tempo. The tempo * is the one the sequencer uses: with patterns as its source (seq-note-bridge.c's rule), the current pattern's word at * +0x1db70, in BPM * 120 (14,400 for 120 BPM; the OS points its active tempo there, 0x400d7f4c). Otherwise, or with a - * value out of range, the last tempo stays. The base's receiver on the sound chip copies the step where machine - * players read it (DT2_BASE_SHARC.stepSamples in the builder). Track speed is not applied: the step is a 1X step. + * value out of range, the last tempo stays. Then sixteen words: each track's step at its speed. The base's receiver + * on the sound chip copies the seventeen step words where machine players read them (DT2_BASE_SHARC.stepSamples in + * the builder: the 1X step, then tracks 1-16). */ #include #include @@ -20,6 +21,14 @@ #define TEMPO_MIN (30u * 120u) #define TEMPO_MAX (300u * 120u) #define STEP_SAMPLES_TIMES_TEMPO (48000u * 60u / 4u * 120u) /* samples per sixteenth = this / (BPM * 120) */ +#define TRACKS 16u +#define TRACK_STRIDE 0x6a5u +#define PATTERN_TRACK_MODE 0x1db79u /* nonzero: each track has its own length and speed */ +#define PATTERN_SPEED 0x1db7au +#define TRACK_SPEED 0x48fu +#define SPEED_PULSES ((const uint32_t *)0x4020e28cu) /* 2X, 3/2X, 1X, 3/4X, 1/2X, 1/4X, 1/8X: 3, 4, 6, 8, 12, 24, 48 */ +#define SPEED_1X 2u +#define SPEED_SLOWEST 6u #define DSP_QUEUE 0x400cd48cu /* the transfer's halfword queue */ #define FIRST_TAIL_HALF 0x402u @@ -41,7 +50,8 @@ void core_machine_frame(unsigned int data_bytes, const void *data, unsigned int return; } const uintptr_t pattern = STOCK_WORD(CURRENT_PATTERN); - if (STOCK_WORD(SEQ_SOURCE) == PATTERN_SOURCE && pattern) { + const int playing_patterns = STOCK_WORD(SEQ_SOURCE) == PATTERN_SOURCE && pattern; + if (playing_patterns) { const uint32_t tempo = STOCK_WORD(pattern + PATTERN_TEMPO); if (tempo >= TEMPO_MIN && tempo <= TEMPO_MAX) { core_machine_samples_per_step = STEP_SAMPLES_TIMES_TEMPO / tempo; @@ -50,4 +60,17 @@ void core_machine_frame(unsigned int data_bytes, const void *data, unsigned int volatile uint16_t *tail = (volatile uint16_t *)(STOCK_WORD(DSP_QUEUE) + 4 * FIRST_TAIL_HALF + 2); put(tail, DT2_MACHINE_WIRE, DT2_MACHINE_WIRE_MAGIC); put(tail, DT2_MACHINE_WIRE + 1, core_machine_samples_per_step); + /* Each track's step at its speed: the pattern's speed, or the track's own in per-track mode (seq-note-bridge.c's + * offsets), as pulses per step against 1X's six. */ + const uint8_t *p = (const uint8_t *)pattern; + for (unsigned int track = 0; track < TRACKS; ++track) { + uint32_t speed = SPEED_1X; + if (playing_patterns) { + speed = p[PATTERN_TRACK_MODE] ? p[track * TRACK_STRIDE + TRACK_SPEED] : p[PATTERN_SPEED]; + if (speed > SPEED_SLOWEST) { + speed = SPEED_1X; + } + } + put(tail, DT2_MACHINE_WIRE + 2 + track, core_machine_samples_per_step * SPEED_PULSES[speed] / SPEED_PULSES[SPEED_1X]); + } } diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/machine-knobs.c b/sdk/machines/digitakt-ii/elekloader/modwerk/machine-knobs.c index ff6d36f9ec..66cf898bac 100644 --- a/sdk/machines/digitakt-ii/elekloader/modwerk/machine-knobs.c +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/machine-knobs.c @@ -5,7 +5,8 @@ * kits and the sound chip treat them exactly as the stand-in's, so a module reads their values where the stand-in's * arrive (the sound chip's voice parameter record, MACHINES.md). What changes is what the screen calls them: when a * page asks for an added machine's descriptor, the base points those parameter rows' names (+0x28 name, +0x30 short - * name) at the machine's knob names, and back to the stock names when it asks for any other machine's. Knob C, which SAMPLE does not show, becomes + * name) at the machine's knob names, and back to the stock names when it asks for any other machine's. A knob with + * value names also gets a formatter (+0x34) that shows them. Knob C, which SAMPLE does not show, becomes * SAMPLE's crossfade parameter (code 0xcc, sound slot 27) when a machine standing for SAMPLE names it. * * Not new parameter rows: the OS keeps per-code arrays of exactly 275 entries besides the parameter table (the @@ -20,6 +21,7 @@ #define ROW_WORDS 15u #define ROW_NAME 10u /* +0x28 */ #define ROW_SHORT 12u /* +0x30 */ +#define ROW_FORMATTER 13u /* +0x34 */ #define SAMPLE_TYPE 0u #define SAMPLE_CROSSFADE 0xccu @@ -54,17 +56,52 @@ const uint32_t *core_machine_descriptor(uint32_t type) return descriptors[n]; } -/* The stock names of the rows renamed now, to put back. */ -static struct { uint32_t code, name, shortname; } saved[DT2_MACHINE_KNOBS]; +/* The stock names and formatters of the rows renamed now, to put back. */ +static struct { uint32_t code, name, shortname, formatter; } saved[DT2_MACHINE_KNOBS]; static uint32_t saved_count; static uint32_t shown; /* the added type whose names the rows carry, 0 for none */ +/* Knob value names: a renamed row with value names gets the formatter of its knob position, which writes the name for + * the value or, past the list, calls the stock formatter it replaced. A formatter is (value << 8, text out); the + * stock ones end by copying their text with 0x40000e82 (out, text). */ +typedef void formatter_fn(int32_t value, char *out); +#define COPY_TEXT ((void (*)(char *, const char *))0x40000e82u) +static const char *const *shown_values[DT2_MACHINE_KNOBS]; +static formatter_fn *stock_formatter[DT2_MACHINE_KNOBS]; + +static void format(uint32_t knob, int32_t value, char *out) +{ + const char *const *names = shown_values[knob]; + const int32_t index = value >> 8; + if (names && index >= 0) { + int32_t n = 0; + while (names[n] && n < index) { + ++n; + } + if (n == index && names[n]) { + COPY_TEXT(out, names[n]); + return; + } + } + if (stock_formatter[knob]) { + stock_formatter[knob](value, out); + } +} + +static void format_b(int32_t value, char *out) { format(0, value, out); } +static void format_c(int32_t value, char *out) { format(1, value, out); } +static void format_e(int32_t value, char *out) { format(2, value, out); } +static void format_f(int32_t value, char *out) { format(3, value, out); } +static void format_g(int32_t value, char *out) { format(4, value, out); } +static formatter_fn *const FORMATTERS[DT2_MACHINE_KNOBS] = { format_b, format_c, format_e, format_f, format_g }; + static void restore(void) { for (uint32_t i = 0; i < saved_count; ++i) { uint32_t *row = &PARAMS[saved[i].code * ROW_WORDS]; row[ROW_NAME] = saved[i].name; row[ROW_SHORT] = saved[i].shortname; + row[ROW_FORMATTER] = saved[i].formatter; } saved_count = 0; shown = 0; @@ -92,10 +129,16 @@ void core_machine_knob_names(uint32_t type) saved[saved_count].code = code; saved[saved_count].name = row[ROW_NAME]; saved[saved_count].shortname = row[ROW_SHORT]; + saved[saved_count].formatter = row[ROW_FORMATTER]; ++saved_count; row[ROW_NAME] = (uint32_t)k->name; row[ROW_SHORT] = (uint32_t)(k->label ? k->label : k->name); + if (k->values) { + shown_values[knob] = k->values; + stock_formatter[knob] = (formatter_fn *)row[ROW_FORMATTER]; + row[ROW_FORMATTER] = (uint32_t)FORMATTERS[knob]; + } } shown = type; } -} +} \ No newline at end of file diff --git a/sdk/machines/digitakt-ii/elekloader/modwerk/tests/machines-fixture.c b/sdk/machines/digitakt-ii/elekloader/modwerk/tests/machines-fixture.c index b4e5c3f452..a97a907341 100644 --- a/sdk/machines/digitakt-ii/elekloader/modwerk/tests/machines-fixture.c +++ b/sdk/machines/digitakt-ii/elekloader/modwerk/tests/machines-fixture.c @@ -1,16 +1,19 @@ /* SPDX-License-Identifier: GPL-3.0-or-later */ -/* Development base only: one added machine (type 7) that stands for SAMPLE (type 0), with its own knob names. */ +/* Development base only: one added machine (type 7) that stands for SAMPLE (type 0), with its own knob names and, on + * knob B, its own value names. */ #include +static const char *const test_modes[] = { "TREV", "TREVL", "TFWDL", "TFWD", 0 }; + const struct dt2_machine dt2_test_machine = { .type = 7, .stands_for = 0, .strings = { "Testgrain", "TGR", 0 }, .knobs = { - { "Test Mode", "TMOD" }, - { "Test Size", "TSIZ" }, - { "Test Position", "TPOS" }, - { "Test Length", "TLEN" }, - { "Test Spread", "TSPR" }, + { "Test Mode", "TMOD", test_modes }, + { "Test Size", "TSIZ", 0 }, + { "Test Position", "TPOS", 0 }, + { "Test Length", "TLEN", 0 }, + { "Test Spread", "TSPR", 0 }, }, }; diff --git a/sdk/machines/digitakt-ii/include/mk2/machines.h b/sdk/machines/digitakt-ii/include/mk2/machines.h index b9d25ffc49..0011c86907 100644 --- a/sdk/machines/digitakt-ii/include/mk2/machines.h +++ b/sdk/machines/digitakt-ii/include/mk2/machines.h @@ -28,11 +28,14 @@ enum { DT2_MACHINE_KNOBS = 5, }; -/* A knob: name as the popups show it, and label (up to four capitals) as the page shows it. A null name keeps the - * stand-in machine's knob and name (for knob C on SAMPLE: no knob). */ +/* A knob: name as the popups show it, label (up to four capitals) as the page shows it, and optionally the names of + * its values (a null-terminated list indexed by the stand-in parameter's value, up to five characters each, as + * "FWD.L"; a value past the list shows as the stand-in shows it). A null name keeps the stand-in machine's knob and + * name (for knob C on SAMPLE: no knob). */ struct dt2_machine_knob { const char *name; const char *label; + const char *const *values; }; /* stands_for names the stock type (0-6) whose descriptor, voice setup and other knobs the machine borrows. @@ -44,8 +47,8 @@ struct dt2_machine { struct dt2_machine_knob knobs[DT2_MACHINE_KNOBS]; }; -/* The audio-frame tail words the base sends the sound chip for machine players (machine-frame.c): the magic, then - * the samples per sixteenth step at the pattern's tempo. */ +/* The audio-frame tail words the base sends the sound chip for machine players (machine-frame.c): the magic, the + * samples per sixteenth step at the pattern's tempo (1X), then each of the 16 tracks' step at its speed. */ enum { DT2_MACHINE_WIRE = 16, }; diff --git a/src/engine/elekloader/dt2-render-build.ts b/src/engine/elekloader/dt2-render-build.ts index d9942fd2f0..ac4567bde8 100644 --- a/src/engine/elekloader/dt2-render-build.ts +++ b/src/engine/elekloader/dt2-render-build.ts @@ -46,7 +46,8 @@ export async function buildDt2RenderFirmware( export type Dt2SharcPart = { module: string; allocations: { address: number; bytes: Uint8Array }[]; players: Dt2MachinePlayer[] } // L2 the base keeps for its own machine parts: the selector table, the player dispatcher and its data, and the -// machine wire's receiver and data. A player reads the samples per sixteenth step at `stepSamples` (a word). +// machine wire's receiver and data. A player reads the samples per sixteenth step at `stepSamples`: the 1X step, then +// tracks 1-16 at their speeds (17 words). export const DT2_BASE_SHARC = { selectors: 0x200c0100, dispatcher: 0x200c1000, dispatcherData: 0x200c2000, wire: 0x200c2800, wireData: 0x200c2c00, stepSamples: 0x200c2c20, end: 0x200c3000, diff --git a/src/engine/elektron/dt2-sharc.ts b/src/engine/elektron/dt2-sharc.ts index 6b27aa511c..ebd95e00a3 100644 --- a/src/engine/elektron/dt2-sharc.ts +++ b/src/engine/elektron/dt2-sharc.ts @@ -287,11 +287,13 @@ export async function planDt2MachinePlayers( const RECEIVE_RESUME = (RECEIVE_ADDRESS - 0x28000000) / 2 + 3 const TAIL = 0x804 export const DT2_MACHINE_WIRE = 16, DT2_MACHINE_WIRE_MAGIC = 0x4d4b0001 +const STEP_WORDS = 17 // the 1X step, then tracks 1-16 at their speeds /** A plan fragment for the base's machine wire: at the receive site, a receiver at `codeAddress` (free L2) copies the - * samples per sixteenth step the ColdFire base writes into frame-tail words DT2_MACHINE_WIRE.. (after its magic) to the - * word at `dataAddress + 0x20`, where machine players read it (6,000, 120 BPM, until the first frame), then replays - * the displaced instruction and resumes. It keeps every register it touches. */ + * step words the ColdFire base writes into the frame tail after its magic (DT2_MACHINE_WIRE: the samples per sixteenth + * step at 1X, then each track's at its speed) to the words from `dataAddress + 0x20`, where machine players read them + * (6,000, 120 BPM, until the first frame), then replays the displaced instruction and resumes. It keeps every + * register it touches. */ export async function planDt2MachineWire(stock: Uint8Array, codeAddress: number, dataAddress: number): Promise { if (await sha256Hex(stock) !== STOCK_SECTION) throw new Error('Unsupported Digitakt II SHARC image') const displaced = await dt2DisplacedInstruction(stock, 'receive') @@ -304,6 +306,11 @@ export async function planDt2MachineWire(stock: Uint8Array, codeAddress: number, DM(${save + 3}) = M0 DM(${save + 4}) = ASTATX DM(${save + 5}) = STKYX + DM(${save + 6}) = I1 + DM(${save + 7}) = L0 + DM(${save + 25}) = L1 + L0 = 0 + L1 = 0 R0 = I3 R1 = ${TAIL} R0 = R0 + R1 @@ -314,8 +321,13 @@ export async function planDt2MachineWire(stock: Uint8Array, codeAddress: number, COMP(R0, R1) IF NE JUMP absent M0 = ${DT2_MACHINE_WIRE + 1} - R0 = DM(M0, I0) - DM(${save + 8}) = R0 + R0 = DM(I0, M0) + I1 = ${dataAddress + 0x20} + M0 = 1 + LCNTR = ${STEP_WORDS}, DO copied UNTIL LCE + R0 = DM(I0, M0) + NOP +copied: DM(I1, M0) = R0 absent: R0 = DM(${save}) R1 = DM(${save + 1}) @@ -323,13 +335,16 @@ absent: M0 = DM(${save + 3}) ASTATX = DM(${save + 4}) STKYX = DM(${save + 5}) + I1 = DM(${save + 6}) + L0 = DM(${save + 7}) + L1 = DM(${save + 25}) displaced: NOP JUMP ${RECEIVE_RESUME} `) const code = blocks[0].bytes code.set(displaced, (symbols.get('displaced')! - programCounter(codeAddress)) * 2) - const data = new Uint8Array(4 * 9) - new DataView(data.buffer).setUint32(4 * 8, 6000, true) + const data = new Uint8Array(4 * (8 + STEP_WORDS + 1)) + for (let word = 0; word < STEP_WORDS; word++) new DataView(data.buffer).setUint32(4 * (8 + word), 6000, true) const allocations = [{ address: codeAddress, bytes: code }, { address: dataAddress, bytes: data }] checkAllocations(allocations) return { receiveInstruction: instruction(0x063e, programCounter(codeAddress)), allocations } From e20c950ee8f0f7df241c5a9318bf075b4b3d1cdf Mon Sep 17 00:00:00 2001 From: claptom-music <350865352+Claptom-music@users.noreply.github.com> Date: Thu, 19 Nov 2026 15:59:19 +0100 Subject: [PATCH 099/415] Mikrotakt: per-track step, MODE value names, gentler gain for scattered grains Co-Authored-By: Claude Opus 5.5 --- sdk/digitakt-ii/modules/mikrotakt/src/main.c | 17 ++++++++++------- .../modules/mikrotakt/src/player.sharc | 13 +++++++++---- 2 files changed, 19 insertions(+), 11 deletions(-) diff --git a/sdk/digitakt-ii/modules/mikrotakt/src/main.c b/sdk/digitakt-ii/modules/mikrotakt/src/main.c index 6faa8415c1..6518a5ed21 100644 --- a/sdk/digitakt-ii/modules/mikrotakt/src/main.c +++ b/sdk/digitakt-ii/modules/mikrotakt/src/main.c @@ -9,20 +9,23 @@ * Knobs are SAMPLE's parameters under Mikrotakt's names (the base's knob names), so they keep SAMPLE's job for the * play head as well: C SIZE (SAMPLE's crossfade, unused by a one-shot sample), E POS (where the play head starts), * F LEN (how long it runs), G SPRD (the grains' random spread; SAMPLE's loop position, which matters only when the - * play mode loops), B MODE (SAMPLE's play mode: FWD is DRIFT, FWD.L STUTTER, REV REVERSE, REV.L HAZE; the page still - * shows the play mode's arrows and names). + * play mode loops), B MODE (SAMPLE's play mode: FWD is DRIFT, FWD.L STUTTER, REV REVERSE, REV.L HAZE, shown by those + * names; the knob's picture still shows the play mode's arrows). */ #include +/* MODE's value names, by SAMPLE's play mode value: 0 REV, 1 REV.L, 2 FWD.L, 3 FWD. */ +static const char *const modes[] = { "REVRS", "HAZE", "STUTR", "DRIFT", 0 }; + const struct dt2_machine mikrotakt_machine = { .type = 7, .stands_for = 0, .strings = { "Mikrotakt", "MKT", 0 }, .knobs = { - [0] = { "Mode", "MODE" }, - [1] = { "Grain Size", "SIZE" }, - [2] = { "Position", "POS" }, - [3] = { "Length", "LEN" }, - [4] = { "Spread", "SPRD" }, + [0] = { "Mode", "MODE", modes }, + [1] = { "Grain Size", "SIZE", 0 }, + [2] = { "Position", "POS", 0 }, + [3] = { "Length", "LEN", 0 }, + [4] = { "Spread", "SPRD", 0 }, }, }; diff --git a/sdk/digitakt-ii/modules/mikrotakt/src/player.sharc b/sdk/digitakt-ii/modules/mikrotakt/src/player.sharc index 309b0b74f0..96241fff5c 100644 --- a/sdk/digitakt-ii/modules/mikrotakt/src/player.sharc +++ b/sdk/digitakt-ii/modules/mikrotakt/src/player.sharc @@ -28,7 +28,7 @@ .equ STEP_WHOLE, 0x6b ; record word: the step's whole part, negative when the play mode reverses .equ LOOPING, 0x6f ; record word: 1 when the play mode loops ; The base's machine wire (DT2_BASE_SHARC.stepSamples in src/engine/elekloader/dt2-render-build.ts). -.equ STEP_SAMPLES, 0x200c2c20 / 4 +.equ TRACK_STEPS, 0x200c2c24 ; byte address: tracks 1-16 (after the 1X step at 0x200c2c20) .equ PREC0, 0x250738 ; voice 0's parameter record (byte address); 0xdc bytes per voice .equ PRECB, 0xdc .equ PREC_SIZE, 0x28 ; knob C (SAMPLE's crossfade) as 0-1 @@ -202,7 +202,12 @@ same_note: I3 = density_steps M3 = R0 R1 = DM(M3, I3) - R0 = DM(STEP_SAMPLES) ; samples per sixteenth step at the pattern's tempo (the base's machine wire) + R0 = DM(V_VOICE) + R2 = -1 + R0 = LSHIFT R0 BY R2 + M3 = R0 + I3 = TRACK_STEPS + R0 = DM(M3, I3) ; this track's step in samples, at the pattern's tempo and the track's speed F0 = FLOAT R0 F0 = F0 * F1 R0 = FIX F0 @@ -430,8 +435,8 @@ in_range: F2 = F4 - F2 F1 = F1 * F2 F0 = F0 * F1 ; sqrt(x) - F1 = 1.2 - F0 = F0 * F1 ; out of step the sum grows as the square root of the overlap: 1.2 sqrt(x) + F1 = 1.0 + F0 = F0 * F1 ; out of step the sum grows as the square root of the overlap: sqrt(x) F1 = 1.5 F6 = F6 * F1 ; in step it grows as the overlap (the window averages 2/3): 1.5 x F0 = F0 - F6 From d7c52f295a0c919bd67d24fe0317e4e2bfa79d44 Mon Sep 17 00:00:00 2001 From: claptom-music <350865352+Claptom-music@users.noreply.github.com> Date: Thu, 19 Nov 2026 16:04:03 +0100 Subject: [PATCH 100/415] Mikrotakt: record every mode, the levels and reversed grains in the emulator Co-Authored-By: Claude Opus 5.5 --- sdk/digitakt-ii/modules/mikrotakt/README.md | 4 ++-- sdk/digitakt-ii/modules/mikrotakt/TESTING.md | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/sdk/digitakt-ii/modules/mikrotakt/README.md b/sdk/digitakt-ii/modules/mikrotakt/README.md index 5697162ac3..8693d7f212 100644 --- a/sdk/digitakt-ii/modules/mikrotakt/README.md +++ b/sdk/digitakt-ii/modules/mikrotakt/README.md @@ -10,9 +10,9 @@ The player is `src/player.sharc`, assembled by Modwerk's sound-chip assembler (` - **Play head.** The voice's own record, played by the stock sample player into a buffer nobody hears. It follows the sample's start, length, loop, play mode and pitch, so a note lasts as a SAMPLE note would. - **Grains.** A grain is a copy of the voice's record taken at the play head, moved by the position offset and a random spread, played by the stock player and shaped by a window (`4x(1 - x)`, linear across each 32-sample block). Grains start every interval, a fraction of a sequencer step set by the density. Their gain follows the square root of the overlap, since grains add out of phase. -- **Modes.** DRIFT: grains around the moving play head. STUTTER: four grains from the same spot, then the spot moves to the play head, with a sixteenth of the spread. HAZE: the widest spread. REVERSE plays as DRIFT until reversed playback through the stock player is traced. +- **Modes.** DRIFT: grains around the moving play head. STUTTER: four grains from the same spot, then the spot moves to the play head, with a sixteenth of the spread. HAZE: the widest spread, on a looping play head. REVERSE: DRIFT with the play head and the grains running backwards. - **Settings.** Per track, in the player's own memory: mode, position, size, density, spread and samples per step. They have defaults (DRIFT, at the play head, 140 ms grains, four grain starts per step at 120 BPM, a quarter spread) until the knobs are connected. -- **Knobs.** The base shows an added machine's own knob names on its stand-in's parameters (SAMPLE: B play mode, C crossfade, E start, F length, G loop position), so saving, trig locks and live recording work as for SAMPLE, and the values reach the sound chip in each voice's parameter record. Knob C (SIZE) is SAMPLE's crossfade, which a one-shot sample never uses: 0 gives 140 ms grains, the top 1.5 s. E (POS) is where the play head starts, F (LEN) how long it runs (SAMPLE's start and length), G (SPRD) the grains' random spread (SAMPLE's loop position, which only matters when the play mode loops). B (MODE) is SAMPLE's play mode: FWD is DRIFT, FWD.L STUTTER, REV REVERSE and REV.L HAZE (the page still shows the play mode's arrows and names); the player reads it from the voice's record (a negative step, and the looping word), and the grains copy the play head's direction, so the REV modes reverse them. Density stays fixed at four grain starts per sixteenth step at the pattern's tempo, which the base passes to the sound chip (the machine wire). Track speed is not applied yet. +- **Knobs.** The base shows an added machine's own knob names on its stand-in's parameters (SAMPLE: B play mode, C crossfade, E start, F length, G loop position), so saving, trig locks and live recording work as for SAMPLE, and the values reach the sound chip in each voice's parameter record. Knob C (SIZE) is SAMPLE's crossfade, which a one-shot sample never uses: 0 gives 140 ms grains, the top 1.5 s. E (POS) is where the play head starts, F (LEN) how long it runs (SAMPLE's start and length), G (SPRD) the grains' random spread (SAMPLE's loop position, which only matters when the play mode loops). B (MODE) is SAMPLE's play mode, shown as DRIFT (FWD), STUTR (FWD.L), REVRS (REV) and HAZE (REV.L) (the knob's picture still shows the play mode's arrows); the player reads it from the voice's record (a negative step, and the looping word), and the grains copy the play head's direction, so the REV modes reverse them. Density stays fixed at four grain starts per step, at the pattern's tempo and the track's speed, which the base passes to the sound chip (the machine wire). Emulator check (19 November 2026, OS 1.17, development base `37b4db44` with the test machine as type 7, the player composed by `composeDt2MachineBuild`, scripted coupled run, two notes of a 220 Hz test sample): the build passes the preflight; the notes play as clouds of grains at 220 Hz, peak 0.03-0.06 against 0.063 for SAMPLE, no halt, no missing blocks. The largest sample-to-sample step is 2.9% of the peak, what a clean 220 Hz sine gives (no clicks at grain edges). A pass-through player (the stock player only) in the same build plays as SAMPLE. diff --git a/sdk/digitakt-ii/modules/mikrotakt/TESTING.md b/sdk/digitakt-ii/modules/mikrotakt/TESTING.md index d0bc2e5c7d..45fd186a95 100644 --- a/sdk/digitakt-ii/modules/mikrotakt/TESTING.md +++ b/sdk/digitakt-ii/modules/mikrotakt/TESTING.md @@ -14,11 +14,12 @@ Setup: a development base (test machine as type 7, standing for SAMPLE; base `d2 | Pass-through player (the stock player only) in the same build | Plays as SAMPLE. | | Base `d26c8874` (own knob names) | Same sound as on `37b4db44`, peak for peak. | | Knob C (SIZE) at 0 and at the top, turned on the SRC page before the notes | At 0 the same sound as before, peak for peak; at the top an evener cloud of long grains. Both click-free (largest step 2.9% of the peak). | - | Knobs named (SIZE, POS, LEN, SPRD on C, E, F, G); SPRD read from knob G, at 0 (base `41a864e2`) | Plays, no halt; peak 0.0997, about 4 dB above SAMPLE: without spread the grains add in step, while the gain assumed they add out of step. Fixed in the next row. | | Gain between the in-step rule (no spread) and the out-of-step rule (an eighth of the spread and up) | SPRD at 0: peak 0.064, RMS about 0.04, as SAMPLE (0.063, 0.04). SPRD turned up: peak 0.052. Largest step 3.3% and 2.9% of the peak (no clicks). | - | MODE on knob B (SAMPLE's play mode), base `140611` | Play mode REV: the player reads MODE 2 (REVERSE) and plays at SAMPLE's level (a steady test tone sounds the same reversed). REV.L: MODE 3 (HAZE), peak up to 0.082, about 2 dB above SAMPLE. FWD.L (STUTTER) not reached in the run. | | Tempo | The step word follows the pattern's tempo word: 7,058 samples per step in the coupled test project (102 BPM). Not checked by changing the tempo. | +| All modes and the final gain (base `57ba35ce`, tempo and track steps on the wire, MODE value names) | DRIFT peak 0.064 (SAMPLE 0.063), HAZE 0.068, wide spread 0.058, STUTTER 0.059; largest steps 2.9-3.3% of the peak (no clicks). The player reads MODE 1 for FWD.L, 2 for REV, 3 for REV.L. In REVERSE a grain's step is negative and its position falls 16 words per block: it reads the sample backwards. | +| Knob value names (test machine) | Knob B shows the machine's value name (TFWD for FWD); back on SAMPLE it shows FWD. | +| Track steps | All seventeen step words arrive (7,058 each, every track of the test project at 1X). | -Not tested: STUTTER, a reversed recording heard reversed, (their grain roles are not decided), trig locks on SIZE, several Mikrotakt tracks at once, CPU load on a unit, other modules alongside it, saving and reloading a kit with Mikrotakt, hardware. +Not tested: a changed tempo or track speed, a reversed recording heard reversed (the test sample is a steady tone), trig locks and live recording of Mikrotakt's knobs, several Mikrotakt tracks at once, CPU load on a unit, other modules alongside it, saving and reloading a kit with Mikrotakt, hardware. \ No newline at end of file From d27496472982a8ec71846c8a8ef11ee673d993ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Thu, 19 Nov 2026 16:08:35 +0100 Subject: [PATCH 101/415] Fix overlapping addresses in the SDK loader host check --- changelog/2026-11-19-loader-host-cache-check.md | 1 + sdk/runtime/loader/tests/host_test.c | 13 +++++++++++-- sdk/tests/test_runtime_loader.py | 5 +++-- 3 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 changelog/2026-11-19-loader-host-cache-check.md diff --git a/changelog/2026-11-19-loader-host-cache-check.md b/changelog/2026-11-19-loader-host-cache-check.md new file mode 100644 index 0000000000..a39b386e8c --- /dev/null +++ b/changelog/2026-11-19-loader-host-cache-check.md @@ -0,0 +1 @@ +The SDK loader check now distinguishes stock patch writes from module cache flushes even when a host test gives them overlapping 32-bit addresses. diff --git a/sdk/runtime/loader/tests/host_test.c b/sdk/runtime/loader/tests/host_test.c index 6e2886b0c2..1368c6decf 100644 --- a/sdk/runtime/loader/tests/host_test.c +++ b/sdk/runtime/loader/tests/host_test.c @@ -12,7 +12,11 @@ #include #include +#ifdef MODWERK_HOST_OVERLAP_STOCK +#define STOCK ((uint32_t)(uintptr_t)pool) +#else #define STOCK 0x1000u +#endif static unsigned failures; #define CHECK(x) do { if (!(x)) { failures++; fprintf(stderr, "%s:%d: %s\n", __FILE__, __LINE__, #x); } } while (0) static uint8_t stock[256], original[256], paused[64], saved_registers[64]; @@ -34,8 +38,13 @@ uint8_t *modwerk_machine_code(uint32_t a) { CHECK(locked); return stock + (a - S void modwerk_machine_flush_data(uint32_t a, uint32_t n) { flushed++; - if (!in_pool(a, n)) { CHECK(masked); return; } - CHECK(!push_pending && !locked && !masked && !(a & 15u) && !(n & 15u)); /* whole lines, off-line: nothing runs there yet */ + /* A host pool address truncated to 32 bits can overlap our fake stock addresses. A stock flush + * covers one patch site. A pool flush includes at least the much larger runtime_module header. */ + if (n <= RUNTIME_SITE_BYTES) { + CHECK(masked && n && a - STOCK <= sizeof stock - n); + return; + } + CHECK(in_pool(a, n) && !push_pending && !locked && !masked && !(a & 15u) && !(n & 15u)); ++pool_flushes, pushed_at = a, pushed_bytes = n, push_pending = 1; } #ifdef MODWERK_CACHED_MODULES diff --git a/sdk/tests/test_runtime_loader.py b/sdk/tests/test_runtime_loader.py index f856f23f2a..2ce14df9c3 100644 --- a/sdk/tests/test_runtime_loader.py +++ b/sdk/tests/test_runtime_loader.py @@ -32,8 +32,9 @@ def test_loader_on_the_host(self): if not cc: self.skipTest('no host C compiler') octatrack = ('-DRUNTIME_MODULES=128u', '-DRUNTIME_POOL_BYTES=786432u') - # the default, the Octatrack's, and both with build_core.py --cached-modules - for defines in ((), octatrack, ('-DMODWERK_CACHED_MODULES',), octatrack + ('-DMODWERK_CACHED_MODULES',), + # Force the 32-bit stock/pool address collision in one cached build, where both kinds of flush run. + cached_overlap = ('-DMODWERK_CACHED_MODULES', '-DMODWERK_HOST_OVERLAP_STOCK') + for defines in ((), octatrack, cached_overlap, octatrack + ('-DMODWERK_CACHED_MODULES',), octatrack + ('-DMODWERK_RUNTIME_SETS',), octatrack + ('-DMODWERK_RUNTIME_SETS', '-DMODWERK_CACHED_MODULES')): with self.subTest(defines), tempfile.TemporaryDirectory() as temp: From 4b836cdc30c9b364d4dc8d20b73da6f63cef870f Mon Sep 17 00:00:00 2001 From: repeat98 Date: Thu, 19 Nov 2026 16:14:20 +0100 Subject: [PATCH 102/415] Docs: clarify the Octatrack machine render budget --- changelog/2026-11-19-octatrack-machine-frame-budget.md | 1 + docs/MODULE_PERFORMANCE.md | 2 +- docs/OCTATRACK_DRIVING.md | 2 +- docs/module-guides/machines.md | 4 +++- 4 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 changelog/2026-11-19-octatrack-machine-frame-budget.md diff --git a/changelog/2026-11-19-octatrack-machine-frame-budget.md b/changelog/2026-11-19-octatrack-machine-frame-budget.md new file mode 100644 index 0000000000..0b570c2bc8 --- /dev/null +++ b/changelog/2026-11-19-octatrack-machine-frame-budget.md @@ -0,0 +1 @@ +The Octatrack machine guide explains how to check a busy pattern for skipped renders and how much CPU time to declare for a machine. diff --git a/docs/MODULE_PERFORMANCE.md b/docs/MODULE_PERFORMANCE.md index cabc28fc45..3e2ece1769 100644 --- a/docs/MODULE_PERFORMANCE.md +++ b/docs/MODULE_PERFORMANCE.md @@ -7,7 +7,7 @@ A module that is slow, or that only works when it is the only thing running, tak New FX should aim for DSP cost in the **same ballpark as stock SPRING REV at its worst settings**. DSP cycles are tightly budgeted, so plan around that reference before implementation and measure as features are added. Benchmark Spring's expensive types/settings, endpoints, moving controls and trigger splits on both cores. Match units, audio buffers, sample/block sizes, core layouts and harness-overhead treatment. This is a design target without a fixed ratio or hard per-effect ceiling. A substantially more expensive design needs optimization and explicit review of the cost and remaining headroom. The complete supported configuration must still fit the instrument's real-time budget. 1. **Cycle count.** The static floor of the worst mode loop (`tools/build/cycle_count.py`: words in the per-sample loop, no contention) and the dearest case you measured, with the knobs moving. Instances multiply: `instancesPerCore` times the static cost must fit what a core can spend (3120 per sample), and a ColdFire module's worst event must fit its deadline. Average or nominal load does not count; this is the same worst case [MODULE_QUALIFICATION.md](MODULE_QUALIFICATION.md) asks for. -2. **A benchmark against stock.** A DSP module is compared with the stock effect closest in function, from `benchmark_stock_dsp.py` (`out/stock_dsp_bench/results.json`, made from your own OS file, so never committed; the record copies only the comparator's figure, the dearest stock figure and the stock image's SHA-256). Up to 1.5x its cost is fine, up to 3x needs a sentence on what the extra cost buys, and above that, or dearer than every stock effect, fails unless `stock.justification` explains it and the owner accepts. A ColdFire module is compared with the stock image under the same flood: `cfmeter.py` reports the longest frame interrupt and the idle time, and the module may add at most 10% of a 362.8 us frame to the interrupt and 10 points of idle time. +2. **A benchmark against stock.** A DSP module is compared with the stock effect closest in function, from `benchmark_stock_dsp.py` (`out/stock_dsp_bench/results.json`, made from your own OS file, so never committed; the record copies only the comparator's figure, the dearest stock figure and the stock image's SHA-256). Up to 1.5x its cost is fine, up to 3x needs a sentence on what the extra cost buys, and above that, or dearer than every stock effect, fails unless `stock.justification` explains it and the owner accepts. A ColdFire module is compared with the stock image under the same flood: `cfmeter.py` reports the longest frame interrupt and the idle time, and the module may add at most 10% of a 362.8 us frame to the interrupt and 10 points of idle time. For a machine, measure the available render time separately in the busiest pattern it supports. [Machine render checklist](module-guides/machines.md#track-machines) 3. **A stress run.** A DSP module: the most instances you claim per core, eight tracks, three active LFOs per track and a dozen locked slots per step (`stress_project.py`), rendered for at least 2 s through `dsp_host -guard -dirty` (`pressure.py render`), with no clobber and no hang. Two seconds take about a minute or two in `dsp_host`; keep test runs that short (owner, 15 October 2026). DSP code reached only through stock-code hooks, with no effect id, has no instance for `dsp_host` to render: its record sets `stress.harness` to `ot_emu` and runs the same stress project on the whole built image under the ColdFire port, every track routed through the hooked path, for at least 30 s, with no hang and no late DSP read-back (`guard` and `dirty` stay null). `module:doctor` accepts that only for a module without an effect id. A MIDI module: a flood of notes, CC and clock at the wire rate (about 1040 three-byte messages a second) at 240 BPM or more for at least 10 s, stopping mid-note and changing Part while it runs, with no stuck note, no hang and every dropped message counted and explained. **Stamp the record when you measure.** `npm run perf:audit -- check /evidence/performance.json --stamp`, run right after the measurements, writes `sourceSha256`: the hash of the module's source the numbers were taken on (everything but its documents, media, manifest and `evidence/`). `module:doctor` fails a stamp for other source, so changed code needs new numbers, and a record without one for a module listed from 18 November 2026 or a draft judged as a release; earlier records are asked to stamp at their next measurement. Measure, then stamp: a stamp on numbers you did not take again is a false record. diff --git a/docs/OCTATRACK_DRIVING.md b/docs/OCTATRACK_DRIVING.md index 1479b980e3..4bf9287c6c 100644 --- a/docs/OCTATRACK_DRIVING.md +++ b/docs/OCTATRACK_DRIVING.md @@ -153,7 +153,7 @@ error and moves on. macOS `nc -U` hangs up before the reply, so use the script. | `profile`, `profile:N` | the base's tick profile (`modwerk_cost`, diag.h): each UI tick hook's µs a tick over N seconds (3, at most 15) and the frame transfer's µs a frame. It reads the address from the build `boot DIR` last started (`~/.cache/modwerk-octatrack/last-boot`) and refuses when another base runs. On 24 October 2026 it showed the controller tick at 814 µs with 26 modules installed, 212 µs after the fix in #880 | | `selftest:trace` | the same, printing each half second's phase, progress, the CPU the test recorded and the meter's latest window beside it: what a CPU or core peak came from | | `stall` | the last DSP stall record: why, the loader's whole report, each core's last packet header and what it was (BIND, WRITE, PEEK and the rest, and whether it was still in flight when the frames stopped), whether a pick, Part change or install was under way, the live FX ids, as they stood when the stall was seen (it survives the power cycle), then the 128 frames before it (46 ms): each frame's gap to the one before (363 µs on time) and how long the frame interrupt before it ran. A long gap after a long run is the frame interrupt's own work, after a short one something else held it off; `stalltest` writes one now | -| `guard`, `guard:MILLE` | the frame guard since the last read: the frame interrupt's longest frame, latest start and share of the CPU, the machine renders it skipped and on which tracks, and its share; `guard:MILLE` sets the share (per mille of a frame, `guard:65535` turns it off) | +| `guard`, `guard:MILLE` | the longest frame interrupt, latest start and CPU share since the last read, plus the configured frame share. The skip count and track mask accumulate since boot. Subtract two counts to measure skips during a run. `guard:MILLE` sets the share (per mille of a frame, `guard:65535` turns it off) | | `try FILE`, `remove FILE` | install or remove a module package, accepted and kept at once: each one writes the card's set, so on a twin they replace the owner's kept modules (25 October 2026). For a trial that rolls back by itself, use `npm run device -- try FILE --seconds N --socket /tmp/modwerk-share.sock`; `npm run device:test` drives a package through such a trial ([the same run without a Keep](ADD_A_MODULE.md#octatrack-base-and-usb-lifecycle)). The `value` it prints each second is shared by every installed module's tick ([API](OCTATRACK_API.md#core-entry-points)). A table owner (Mute Modes) is not removed while its menu is open: the refusal is 7, `RUNTIME_IN_USE`, whose text speaks of tracks; leave the menus and remove again | | `cpu`, `cpu:PERCENT` | the CPU budget: its allowance, what the Part's machines book and the tracks refused; then each machine track's longest render since the last read, both passes of a frame, in percent of a frame (its peak; a machine's CPU price is its mean cost, [measured with `guard`](MODULE_PERFORMANCE.md)). `cpu:PERCENT` sets the allowance | | one-shot `npm run device:price -- [--out FILE.json] [ID or FILE.mwrm …]` | what a module costs, measured beside the running session (`serve --share /tmp/modwerk-share.sock`, a development twin): for each USB package, or each `.mwrm` file of an unpublished build, a timed trial, then the frame interrupt's share, the CPU meter and both DSPs while the selected pattern plays, before it, with it installed and used nowhere, and for an effect on one slot of `--slot` (T1) at its defaults (an id only: a `.mwrm` file is named after its file, so the slot step finds no effect and only the at-rest reading comes back, 17 November 2026); `--socket` is the session's socket and `--share` the shared one; the trial is rolled back and the slot's effect picked back. It presses PLAY and STOP itself, so set the scene up first and leave the transport stopped. A machine in use and other settings are not measured. It waits for an upload however long it takes: cutting one short left MODWERK SYNC / RECEIVING MODULES at 57 % on the unit until `npm run device -- recover --socket /tmp/modwerk-share.sock` (14 November 2026). On that day, with four FLEX tracks sounding on an MKII, FM Synth 0.1.2 cost 19.1 points of the frame installed on no track, POLY8 0.3.1 13.5, Repitch 0.2.0 7.9, Euclid 3.0 and every other module under 1 | diff --git a/docs/module-guides/machines.md b/docs/module-guides/machines.md index 95babc61f1..a5a404bf07 100644 --- a/docs/module-guides/machines.md +++ b/docs/module-guides/machines.md @@ -29,7 +29,9 @@ A new machine must be a first-class entry wherever the instrument lists machines - [ ] **Save and reload.** A project saved with the machine reloads it, with its parameters and model. Say what a build without the module shows for that track. **Verify.** - [ ] **The stock machines still work,** on the same track and on others. - [ ] **Switching sounds right at once.** A machine that runs on a FLEX track keeps the stored type FLEX, so stock never reloads the track's live parameters on a FLEX ↔ machine switch; the base does (`mw_assign`, through stock's own loader). **Verify** both directions while playing, with no SOURCE CLEAR: the machine sounds, and FLEX plays its sample, not the machine's settings. -- [ ] **A bounded render.** A machine that renders on the ColdFire (POLY8, FM Synth, VECTOR) runs in the frame interrupt, and USB, the UI and every task wait while it runs. Time your render with DTCN3 and bound it, as POLY8 0.3.1's voice governor does. On USB bases the base's frame guard gives the frame interrupt 80 % of each frame and renders stock's silent source for a machine track whose render would overdraw that, so an unbounded machine drops out in a busy project instead of freezing the unit; card builds' core logger does the same (`sdk/runtime/logging/frame_guard.c`) and logs the dropouts as `GRD`. **Verify** with `npm run device -- guard` on a development base: in the busiest pattern you support, it reports no skips ([traps](../OCTATRACK_HARDWARE_TRAPS.md#dsp-loader-dynamic-dsp-code)). Then name its CPU price: the worst render `npm run device -- cpu` reads, every voice playing, in `resources.cpuPrice` and as `.reserved = {PERCENT}` in its descriptor, the figure the base admits a Part's machines by ([performance](../MODULE_PERFORMANCE.md)); `modules:check` refuses a machine without it or with two different numbers. +- [ ] **Bound the ColdFire render.** Time each call with DTCN3 and bound the work as POLY8's voice governor does. The USB base budgets 80 % of a 363 µs frame (about 290 µs) for the whole frame interrupt. Stock playback and the other tracks spend that time too. A track can get two render calls in one frame. When the predicted total exceeds the share plus saved credit, the guard can substitute silence for a machine render so the panel and USB keep running. Loader-free card builds record skipped renders as `GRD`. [Frame guard measurements](../OCTATRACK_HARDWARE_TRAPS.md#dsp-loader-dynamic-dsp-code) + - The performance audit's 10 % (about 36 µs) limits the extra time in its stock comparison. Headroom in a playing project varies. On MKI base `9680e9ac`, one tester heard the first skips with a 3 µs sine render plus about 22 µs of added work in a busy FLEX pattern. On a second MKI with a lighter pattern, a 57 µs mean render ran without reported skips. DTCN3 measures elapsed time across a callback, including any interruption. A peak alone cannot identify its cause. [MKI measurements](https://github.com/repeat98/modwerk/issues/1790#issuecomment-7011577573) + - **Verify** zero skipped renders over the busiest pattern you support. On a development base, read `npm run device -- do guard` before and after playback and subtract the two cumulative skip counts. On a release base, `npm run device -- do diaglog` records a `shed` incident at most once every ten minutes. Its `a` value packs the cumulative skip count in the low 24 bits and the affected tracks in the high eight. A short run with no new incident can still have skips. For admission, measure the mean added frame-interrupt load with every voice playing, round up to a whole percent, and declare it in both `resources.cpuPrice` and the descriptor's `reserved[0]`. [CPU price measurement](../MODULE_PERFORMANCE.md) - [ ] **A source with custom START controls.** Contribute one versioned `modwerk_machine_start` to `ot_machine_starts` and set `MODWERK_MACHINE_START` on its `ot_machines` descriptor. Both tables admit eight records, so every contributed machine can provide START. The descriptor stays ABI 1/80 bytes; the separate record names that same descriptor and a standard three-argument callback in the same package. START runs in the frame interrupt, before rendering: keep it bounded, preserve the C ABI, and never block. The base selects it before stock pushes the arguments, leaving Mute Modes in control of whether the trig fires. Missing, malformed or unpaid STARTs silence that owner's previous voice until its next accepted START; removal clears that refusal before its descriptor address can be reused. Legacy and unowned tracks keep their selected stock/module START. Declare the table in the runtime recipe so a base without it refuses installation; never patch the shared FLEX START cell. The SDK requires the callback to be a relocated, typed ELF function entry in `.text`; C supplies the type/size, assembly must declare `.type name,@function` and `.size name,.-name`. Data and interior-function addresses refuse at build time. This is a build check: the unchanged flat package format carries no code/data section map for installation to verify. - [ ] **Muted trigs.** A mute module drops a muted track's trig where stock binds the track's voice (`ev_voice_bind`). A machine that starts its own note from the trig, in its renderer, gets there first: ask the base's raised hook `ev_trig_muted` before the note starts (`raise` in `runtime.json`; for a C runtime package, `--raise ev_trig_muted`, a `raise` list in its package row) and start no note on a track whose bit is set; 0 means play every trig, as stock does. A card build has no base: there, ask the SDK's `modwerk_card_ev_trig_muted` from a DRAM unit (`MODWERK_CARD_ASK_TRIG_MUTED`), whose bits 8-15 also name the tracks whose sounding note the mute ends ([card events](../../sdk/machines/octatrack/card/README.md), [HOOKS.md](../../sdk/machines/octatrack/HOOKS.md), #777). - [ ] **Its own render.** A machine that makes its sound on the ColdFire contributes `render(track, ping, start, end)`. By default the base stops stock's FLEX voice and retrig on its tracks before every call. A renderer that wraps the native FLEX sample reader must set `MODWERK_MACHINE_NATIVE_FLEX` together with `MODWERK_MACHINE_START`, contribute its START record and its own render callback, and translate/restore custom controls around both native calls. This opt-in keeps the native voice while clearing stale retrigs; a refused START, unpaid source or absent machine still silences it. Target a matching base: older bases ignore the flag and stop the voice. Host fixtures must map the reader and registry onto the same voice memory and emit no PCM from an inactive voice. It calls it twice a frame for each of its tracks, before and after the event's sample offset (the second call has `end` 16). At the packer's cursor (`*(uint32_t *)0x80001c80`) it writes four longs (source count `end - start`, ring write position `start`, rate `0x04000000` (1.0, Q26), read position `start << 26`), then one L and one R long a sample, the 16-bit sample in the high half, and moves the cursor past them; the track's filter, AMP, LFOs and effects follow as for a sample (Analog BD's `control.c`, FM Synth's `poly.s`, SYNTIZ's draft). The played pitch is the parameter record's PTCH halfword (locks, LFOs and scenes applied) on stock's curve. From cf1617f66c1b4b360c873e2ca63fa46691099e8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Thu, 19 Nov 2026 16:15:28 +0100 Subject: [PATCH 103/415] Guide owners through base firmware setup and release notes --- changelog/2026-11-19-base-firmware-guide.md | 2 + src/community/forum.css | 2 +- src/components/BaseChangelog.tsx | 49 ++++++++ src/components/BasePage.test.ts | 18 +++ src/components/BasePage.tsx | 128 ++++++++++--------- src/components/base-page.css | 131 +++++++++++++------- src/components/credits.css | 10 +- src/components/octatrack-link.css | 6 +- src/styles.css | 26 ++-- 9 files changed, 251 insertions(+), 121 deletions(-) create mode 100644 changelog/2026-11-19-base-firmware-guide.md create mode 100644 src/components/BaseChangelog.tsx diff --git a/changelog/2026-11-19-base-firmware-guide.md b/changelog/2026-11-19-base-firmware-guide.md new file mode 100644 index 0000000000..c82b989807 --- /dev/null +++ b/changelog/2026-11-19-base-firmware-guide.md @@ -0,0 +1,2 @@ +The Base firmware guide shows how your original OS, the Modwerk base and modules fit together. Choose your instrument for setup steps, recovery information and its changelog. +The app has a lighter charcoal background and more consistent line spacing. The guide uses the same reading panels as the FAQ. diff --git a/src/community/forum.css b/src/community/forum.css index 33b3140256..eb9067779f 100644 --- a/src/community/forum.css +++ b/src/community/forum.css @@ -167,7 +167,7 @@ .forum-role-badge { --role-color: #92bccd; color: var(--role-color); font-size: 10px; font-weight: 600; letter-spacing: .02em; padding: 2px 5px; border: 1px solid color-mix(in srgb, var(--role-color) 45%, transparent); border-radius: 4px; } .forum-role-badge[data-role="owner"] { --role-color: #e3c27c; } .forum-post time, .forum-post small { font-size: 11px; color: var(--muted); } -.forum-post-body { overflow-wrap: anywhere; font-size: 15px; line-height: 1.85; color: #dedde8; } +.forum-post-body { overflow-wrap: anywhere; font-size: 15px; line-height: var(--reading-line-height); color: #dedde8; } .forum-post-body p { white-space: pre-wrap; } .forum-post-body > * + * { margin-top: 16px; } .forum-post-body blockquote { margin: 16px 0; padding: 10px 16px; border-left: 3px solid #696587; border-radius: 0 6px 6px 0; background: #2b2933; color: #bdb7d0; white-space: pre-wrap; } diff --git a/src/components/BaseChangelog.tsx b/src/components/BaseChangelog.tsx new file mode 100644 index 0000000000..b074776faf --- /dev/null +++ b/src/components/BaseChangelog.tsx @@ -0,0 +1,49 @@ +import { issueRepository } from '../community/report-context' + +type BaseChange = { + label: string + summary: string + note: string +} + +// Use the published Octatrack version. The Rytm's base changes are dated, and Zoom uses MIDISTOMP's version. +const changes: Record<'octatrack' | 'rytm' | 'zoom', BaseChange[]> = { + octatrack: [ + { label: '0.7.9', summary: 'Modules can share the Part Edit menu. Module effects also stay assigned after loading a project and restarting.', note: '2026-11-18-octatrack-effect-lost-after-project-load' }, + { label: '0.7.8', summary: 'Several DSP machines can run in one set. Modules that support resting can free up processing time while unused.', note: '2026-11-03-octatrack-dsp-hook-chains' }, + { label: '0.7.7', summary: 'Tracks with silent delays use less processing time.', note: '2026-11-16-octatrack-delay-idle-skip' }, + { label: '0.7.5', summary: 'The Octatrack keeps a module loaded while its window is open.', note: '2026-11-12-module-ui-roots' }, + { label: '0.7.4', summary: 'Larger modules can use up to 288 KiB of shared memory. Removing a module also returns any sample memory it borrowed.', note: '2026-11-16-module-memory-cap' }, + { label: '0.7.3', summary: 'A project remembers its module machines and shows which tracks need a missing machine.', note: '2026-11-16-machines-in-project-map' }, + { label: '0.7.2', summary: 'MISSING distinguishes switched-off modules and lets you switch them back on with YES.', note: '2026-11-16-module-off-edges' }, + { label: '0.7.1', summary: 'The status screen shows separate bars for CPU, DSP and memory use.', note: '2026-11-16-load-page-rows' }, + { label: '0.7', summary: 'Switch individual modules on or off from the PROJECT menu. The card remembers your choice.', note: '2026-11-16-modules-on-off' }, + ], + rytm: [ + { label: '17 Nov 2026', summary: 'Sets with digital voices and no send effect leave more memory for modules. Saving a pattern on this variant drops its send-FX locks.', note: '2026-11-17-rytm-voices-no-lock-words' }, + { label: '11 Nov 2026', summary: 'Machine modules can generate digital voices on the Rytm.', note: '2026-11-11-rytm-base-digital-voices' }, + { label: '30 Oct 2026', summary: 'Sets can include a shared send effect. Builds without a send effect keep the memory and kit storage it would use.', note: '2026-10-30-rytm-site-modwerk-base' }, + ], + zoom: [ + { label: 'MIDISTOMP 2.0.1', summary: 'Adds a looper, mixer, diagnostics and effect categories, and raises the DSP limit to 300.', note: '2026-11-06-midistomp-pin' }, + { label: '27 Oct 2026', summary: 'Modwerk can build MIDISTOMP locally from your own Zoom 2.10 updater.', note: '2026-10-27-zoom-midistomp-base' }, + ], +} + +function Change({ change }: { change: BaseChange }) { + return
+
{change.label}
+
{change.summary} Release note for {change.label}
+
+} + +export function BaseChangelog({ machine }: { machine: keyof typeof changes }) { + const [latest, ...earlier] = changes[machine] + return
+

Changelog

+
+
Earlier changes ({earlier.length}) +
{earlier.map(change => )}
+
+
+} diff --git a/src/components/BasePage.test.ts b/src/components/BasePage.test.ts index 71d3e3edf4..09ac96a607 100644 --- a/src/components/BasePage.test.ts +++ b/src/components/BasePage.test.ts @@ -56,6 +56,24 @@ it('lists the other instruments without repeating the three that have their own expect(names).toContain('Analog Rytm MKI') }) +it('shows the newest change for the chosen base and links earlier changes to shipped notes', async () => { + await render() + for (const [machine, note] of [['Octatrack', 'octatrack'], ['MS-70CDR', 'midistomp'], ['Analog Rytm', 'rytm']]) { + await choose(machine) + const log = container.querySelector('.base-changelog')! + const latest = log.querySelector(':scope > dl a')! + expect(latest.href).toContain(note) + expect(latest.closest('details')).toBeNull() + expect(log.querySelectorAll('details .base-change').length).toBeGreaterThan(0) + for (const link of log.querySelectorAll('a')) { + const file = new URL(link.href).pathname.split('/changelog/')[1] + expect(existsSync(join(process.cwd(), 'changelog', file)), file).toBe(true) + } + } + await choose('Others') + expect(container.querySelector('.base-changelog')).toBeNull() +}) + it('puts setup and recovery prerequisites before the optional Octatrack references', async () => { await render() expect(container.querySelector('.base-device a')?.getAttribute('href')).toBe('#octatrack/setup') diff --git a/src/components/BasePage.tsx b/src/components/BasePage.tsx index 9dfc971d28..5f5c16d78e 100644 --- a/src/components/BasePage.tsx +++ b/src/components/BasePage.tsx @@ -1,11 +1,12 @@ import { useState } from 'react' import { assetUrl } from '../hosting' -import { DeviceImage } from '../devices/DeviceImage' +import { DeviceImage, PhotoCredit } from '../devices/DeviceImage' import { DEVICES, DEVICES_BY_ID, deviceHref, deviceTitle, type DeviceProfile } from '../devices/registry' import { zoomHubHref } from '../devices/zoom-hub-route' import { CARD_SET_FILE } from '../engine/elekloader/card-set' import { MODULE_SKIP_HINT } from '../firmware-notices' import { Icon, type IconName } from './Icon' +import { BaseChangelog } from './BaseChangelog' import './base-page.css' /** A picture of the unit's own display: a real capture (emulator or module media), never a mock-up. */ @@ -19,20 +20,22 @@ const screen = (file: string) => assetUrl('base/' + file) // PROJ > MODWERK, the status, MODULE COST and MODULES were read off an MKII running development twins of base 0.7.1's and // 0.7.2's source (device.mjs png:, 16 November 2026); MODULE COST and MODULES with module effects installed, two on tracks. const OCTATRACK_SCREENS: Screen[] = [ + { src: screen('ot-machine-list.png'), alt: 'AMIGA below the stock machines in SELECT MACHINE TYPE', title: 'Find a new machine', + caption: 'Module machines appear below the stock machines. Module effects appear in the FX1 and FX2 lists.', keys: 'Double-tap a TRACK key' }, + { src: screen('ot-status.png'), alt: 'Octatrack status display with bars for CPU, DSP and memory usage', title: 'Check the load', + caption: 'Read the base version and see how much processing power and DSP memory your set uses.', keys: 'CUE + PROJ' }, + { src: screen('ot-modules.png'), alt: 'MODULES showing four modules on and Tapehead off', title: 'Switch modules on or off', + caption: 'Stop playback and press YES to toggle a module. Its setting survives a restart or sync.', keys: 'PROJ › MODWERK › MODULES' }, +] +const OCTATRACK_REFERENCE_SCREENS: Screen[] = [ { src: screen('ot-startup.png'), alt: 'Octatrack display at startup: the Modwerk mark between NEW and BETA, above the word MODWERK', title: 'Startup', caption: 'The Modwerk mark docks while the Octatrack starts, so you can see at a glance that the base is running.' }, { src: screen('ot-project-menu.png'), alt: 'Octatrack PROJECT menu with a fifth row, MODWERK, listing STATUS, MODULE COST, MISSING, SELF TEST and MODULES', title: 'PROJ › MODWERK', caption: 'A fifth row in the PROJECT menu with five pages: the load, each module’s share of it, the modules a project misses, a self-test, and your modules switched on and off. The rest of the menu, SYSTEM included, stays as Elektron made it.', keys: 'PROJ' }, - { src: screen('ot-status.png'), alt: 'Octatrack MODWERK BASE 0.7.2 status dialog with five bars: CPU, DSP T1-4, DSP T5-8, MEM T1-4 and MEM T5-8', title: 'Status, from anywhere', - caption: 'How busy the Octatrack is right now: the CPU, and each DSP chip by its tracks (DSP). Below, how full each chip’s DSP memory is (MEM). The title names the base version. NO closes it.', keys: 'CUE + PROJ, or PROJ › MODWERK › STATUS' }, { src: screen('ot-module-cost.png'), alt: 'Octatrack MODULE COST page: Tape Echo, Mini Verb, E-Verb and Air Chorus, with Mini Verb at about 20 percent on tracks 1-4 and E-Verb at about 21 percent on tracks 5-8', title: 'Module cost', caption: 'What each installed module costs on each DSP chip, for the tracks that use it, so you can see which to drop when a set gets heavy. A ~ marks an estimate; - means no track uses it there.', keys: 'PROJ › MODWERK › MODULE COST' }, - { src: screen('ot-modules.png'), alt: 'Octatrack MODULES page listing five installed modules, four ON and Tapehead OFF, with YES ON/OFF and NO', title: 'Modules on and off', - caption: 'Every installed module with ON or OFF. YES switches the one under the cursor at once, with the Octatrack stopped. A module that is off stays saved on the card, also after a restart, and a sync from this site leaves it off.', keys: 'PROJ › MODWERK › MODULES' }, { src: screen('ot-self-test.png'), alt: 'Octatrack SELF TEST page ending in ALL PASSED', title: 'Self-test', caption: 'Checks the modules the Octatrack runs and says ALL PASSED, or what is wrong. Status on Your Octatrack runs the same test from this site.', keys: 'PROJ › MODWERK › SELF TEST' }, - { src: screen('ot-machine-list.png'), alt: 'Octatrack SELECT MACHINE TYPE list with the module machine AMIGA below the stock machines', title: 'Shared lists', - caption: 'Module machines join the machine list below the stock ones, and module effects join the FX1 and FX2 lists. The base owns these lists, so modules never fight over them, and no stock machine or effect is replaced.', keys: 'Double-tap a TRACK key' }, { src: screen('ot-base-update.png'), alt: 'Octatrack BASE UPDATE screen: RECEIVING NEW BASE at 49 percent, DO NOT TOUCH, KEEP THE POWER ON', title: 'Base update', caption: 'While a new base arrives over USB, the whole screen says so and every key and knob is held back until it is saved. It ends on BASE SAVED, or NOT SAVED with the base you had still in place.' }, ] @@ -53,31 +56,13 @@ const RYTM_SCREENS: Screen[] = [ caption: 'A module machine joins its track’s machine list below the stock machines, here BD ANALOG on the bass drum.' }, ] -const OCTATRACK_STEPS: Step[] = [ - { icon: 'download', title: 'Install the base once', - text: <>Setup builds a .bin from your original OS 1.40C file. Copy it to the card, then choose PROJECT › SYSTEM › OS UPGRADE on the Octatrack. }, - { icon: 'swap', title: 'Choose a module set', - text: <>Pick modules in the library and choose Sync to Octatrack. They load over USB and come back after a restart. You can also load {CARD_SET_FILE} from the card. }, - { icon: 'arrow', title: 'Update or return to stock', - text: <>When your set needs a newer base, Setup offers Install latest base. Sync your set again after updating. To go back, reinstall Elektron’s original OS. }, -] - const SAFETY: Step[] = [ { icon: 'back', title: 'Restore the original OS', text: <>Install Elektron’s original OS from the card with OS UPGRADE. Return to stock instructions }, { icon: 'shield', title: 'Two copies of the base', text: 'An update writes only the spare copy. A power cut or a pulled cable during an update leaves the base you had, and a new base that fails to start twice goes back to the previous one by itself.' }, { icon: 'warn', title: 'A module that crashes is left out', text: 'If the Octatrack crashes or freezes while it loads modules at startup, the next start leaves that module out and says so.' }, { icon: 'play', title: 'Start without your modules', text: MODULE_SKIP_HINT }, - { icon: 'lock', title: 'Elektron’s startup menu stays', text: 'The base never touches the part of the flash that holds the Octatrack’s startup menu, so the MIDI recovery always works.' }, -] - -const ZOOM_ADDS: Step[] = [ - { icon: 'sliders', title: 'MIDI control', text: 'Knobs, effects on and off, patches and tap tempo from MIDI CC.' }, - { icon: 'play', title: 'Follows MIDI clock', text: 'The patch tempo and a transport the effects can read.' }, - { icon: 'grid', title: 'A mixer', text: 'Saved buses, on its own screen.' }, - { icon: 'wave', title: 'More at once', text: 'The DSP limit rises from 225 to 300.' }, - { icon: 'swap', title: 'Looper services', text: 'A big buffer, footswitch and CC for the Looper effect.' }, - { icon: 'check', title: 'Your effects stay', text: 'The flash never touches them.' }, + { icon: 'lock', title: 'Recover over MIDI', text: <>Elektron’s startup menu can receive the original OS from a MIDI interface. Startup recovery guide }, ] /** The machines this page has a view for, as the FAQ has: one shows at a time. */ @@ -114,16 +99,19 @@ function Steps({ steps }: { steps: Step[] }) { )} } -function SectionHeading({ id, title, status, picture, caption, action, children }: { - id: string; title: string; status: string; picture: React.ReactNode; caption?: string; action: React.ReactNode; children: React.ReactNode +function SectionHeading({ id, device, title, status, action, children }: { + id: string; device: DeviceProfile; title: string; status: string; action: React.ReactNode; children: React.ReactNode }) { return

{title} {status}

{children}

-
{action}
+
+ {action} + +
-
{picture}{caption &&
{caption}
}
+
} @@ -142,56 +130,83 @@ export function BasePage({ machine: device }: { machine?: string }) { return

Base firmware

-
{BASE_MACHINES.map(item => - )}
-

Base firmware is your instrument’s original operating system with support for mods built in. The base gives modules a place to run. Each module adds a feature, such as an effect or a drum machine.

+

The base is your instrument’s original operating system with support for modules built in.

+
+
Original OS
The maker’s firmware file. Your copy stays on your computer.
+
Modwerk base
Built in your browser. It provides the controls and connections modules share.
+
Modules
Features you choose, like a tape echo or a drum machine.
+
+
+ Choose your instrument +
{BASE_MACHINES.map(item => + )}
+
{machine === 'octatrack' &&
- } caption="CPU and DSP load on the Octatrack" + Set up your Octatrack }> - Module machines and effects appear alongside the stock choices in the track menus. Open PROJ › MODWERK to see how much processing power they use or switch individual modules on and off. + Install the base once from the card. After that, you can change your module set over USB without reinstalling the OS.
-
What you need
Original OS 1.40C and a CompactFlash card. For USB sync, use a USB cable and Chrome or Edge on a computer.
-
Before installing
Keep the original OS and a card reader or MIDI interface ready so you can recover if USB stops working. Installation risks
+
What you need
Original OS 1.40C and a CompactFlash card. For USB sync, use Chrome or Edge on a computer and a USB cable.
+
Before you install
Back up your projects. Keep the original OS and a card reader or MIDI interface for recovery. Installation risks
-

From the original OS to a module set

-
Recovery and returning to stock
-
Octatrack screen guide - +

From setup to your first set

+
    +
  1. Install the base

    In Setup, build the .bin and copy it to the card. On the Octatrack, choose PROJECT › SYSTEM › OS UPGRADE.

  2. +
  3. Pick your modules

    Add effects, machines or tools from the module library to your set.

  4. +
  5. Load your set

    Choose Sync to Octatrack over USB, or load {CARD_SET_FILE} from the card. Your modules stay after a restart.

  6. +
+
+

On your Octatrack

+ +
+
More Octatrack screens and messages +
{OCTATRACK_ALSO.map(([name, text]) =>
{name}
{text}
)}
+

Updates and recovery

+

When Setup offers Install latest base, update and sync your set again. To remove the base, reinstall Elektron’s original OS.

+
Startup shortcuts and recovery options
+
} {machine === 'zoom' &&
- } + Open the MS-70CDR page }> - Luca Matturro’s MIDISTOMP adds MIDI control, clock sync and a mixer to Zoom firmware 2.10. + Luca Matturro’s MIDISTOMP base adds MIDI control, clock sync and a mixer. Installing it keeps the effects already on your pedal.
-
What you need
Zoom’s MS-70CDR 2.10 Mac updater (.zip) and Chrome or Edge. The zip works on any computer.
-
Before restoring
Back up your effects. Zoom’s original updater rewrites the effects area.
+
What you need
Zoom’s MS-70CDR 2.10 Mac updater (.zip) and a USB cable. The zip works in Chrome or Edge on any computer.
+
Return to stock
Back up your effects first. Zoom’s original 2.10 updater rewrites the effects area when it restores the pedal.
-

Install or restore firmware

-

Hold Up and Down while plugging in the pedal, then use the pedal page to install over USB. The transfer takes about a minute. To restore the original firmware, run Zoom’s 2.10 updater.

+

Set up MIDISTOMP

+
    +
  1. Open the updater

    Hold Up + Down while plugging in the pedal to enter its firmware update mode.

  2. +
  3. Install over USB

    In pedal setup, select Install the base and choose Zoom’s updater file. The transfer takes about a minute.

  4. +
  5. Play with MIDI

    Change patches or effects with MIDI CC, follow MIDI clock or mix saved buses. The base also raises the DSP limit and supports the Looper effect.

  6. +
-

What MIDISTOMP adds

} {machine === 'rytm' &&
- } caption="Send effect on the FX track" + Open the Rytm library }> - The OS file you build for each set includes the base. New drum machines appear in the track’s machine list. Add a send effect and each track gets a SEND FX page, with the effect controls on the FX track. + The base and your selected modules travel in one OS file. Build and install a new file each time you change your set.
-
Installation
Each set needs a new OS file. Send the .syx with Elektron Transfer and confirm on the Rytm.
+
What you need
Your original Rytm MKII OS 1.74 file, a USB cable and Elektron Transfer.
Return to stock
Send Elektron’s original .syx with Elektron Transfer.
-
Analog Rytm screen guide
+

Build and install a set

+
    +
  1. Choose modules

    Add drum machines or a send effect from the Rytm library to your set.

  2. +
  3. Build the OS file

    Open your set, choose the original OS file and download the resulting .syx.

  4. +
  5. Send it to the Rytm

    Drop the .syx into Elektron Transfer. Press YES on the Rytm and keep it powered until the update finishes.

  6. +
+
+

On your Analog Rytm

} {machine === 'others' &&
@@ -200,6 +215,7 @@ export function BasePage({ machine: device }: { machine?: string }) { {deviceTitle(device)}{baseState(device)} )}
} -
Firmware is built locally from your own OS file. Share your set as JSON and keep firmware files on your computer. Help & FAQ
+ {machine !== 'others' && } +
Share module sets as JSON. Keep firmware files on your computer. Help & FAQ
} diff --git a/src/components/base-page.css b/src/components/base-page.css index 8d007b9a62..1f3be2ce4b 100644 --- a/src/components/base-page.css +++ b/src/components/base-page.css @@ -1,61 +1,104 @@ -.base-page { max-width: 64rem; margin-inline: auto; } -.base-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .5rem 1.5rem; margin-bottom: 1.125rem; } -.base-definition { grid-column: 1 / -1; max-width: 75ch; color: var(--text-secondary); font-size: .9375rem; line-height: 1.55; } -.base-heading h1 { font-size: clamp(1.5rem, 3vw, 2rem); } -.base-heading .faq-machines { max-width: 100%; flex-wrap: wrap; background: var(--sidebar); border-color: var(--chrome-edge); } -.base-heading .faq-machines button { font-size: .8125rem; } -.base-heading .faq-machines button[aria-pressed="true"] { border-color: transparent; box-shadow: none; } +.base-page { max-width: 64rem; margin-inline: auto; container-type: inline-size; } +.base-heading h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); } +.base-definition { margin-top: .375rem; color: var(--text-secondary); font-size: 1rem; line-height: var(--reading-line-height); } +.base-overview, .base-sequence, .base-screens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); } +.base-overview, .base-sequence, .base-recovery, .base-changelog, .base-section > .base-reference { + background: var(--surface); border: 1px solid var(--line); border-radius: .625rem; +} +.base-overview { gap: 1.5rem; margin: 1rem 0 1.5rem; padding: 1rem 1.25rem; } +.base-overview > div { min-width: 0; } +.base-overview > div + div { border-left: 1px solid var(--chrome-edge); padding-left: 1.5rem; } +.base-overview dt { display: flex; align-items: center; gap: .625rem; font-size: .9375rem; font-weight: 600; } +.base-overview dt :is(img, svg) { width: 1.25rem; height: 1.25rem; } +.base-overview dt svg { color: var(--muted); } -.base-device { display: grid; grid-template-columns: minmax(0, 1fr) minmax(7rem, 13rem); align-items: center; gap: 1.5rem; padding: clamp(1rem, 3vw, 1.75rem); border: 1px solid var(--chrome-edge); border-radius: .75rem; background: var(--sidebar); } -.base-section-heading h2 { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; font-size: 1.375rem; line-height: 1.25; } -.base-status { padding: .125rem .5rem; border-radius: .375rem; background: var(--surface-hover); color: var(--text-secondary); font-size: .75rem; font-weight: 550; } -.base-section-heading p { max-width: 62ch; margin-top: .5rem; color: var(--text-secondary); font-size: .9375rem; line-height: 1.55; } -.base-device-picture :is(img, svg) { display: block; width: 100%; height: auto; max-height: 8rem; object-fit: contain; } -.base-device-picture { margin: 0; } -.base-device-picture figcaption { margin-top: .375rem; color: var(--muted); font-size: .75rem; text-align: center; } -.base-device-picture img, .base-lcd img { image-rendering: pixelated; } -.base-actions { margin-top: 1rem; } -.base-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2rem; margin: 1.25rem 0; } -.base-facts dt { margin-bottom: .25rem; color: var(--text); font-size: .875rem; font-weight: 600; } -.base-facts dd, .base-reference > p, .base-steps p, .base-also dd { margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.55; } +.base-picker { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: .75rem; } +.base-picker > span { color: var(--text-secondary); font-size: .875rem; font-weight: 600; } +.base-picker .faq-machines { max-width: 100%; background: var(--sidebar); } +.base-picker .faq-machines button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-hover); } +.base-device { display: grid; grid-template-columns: minmax(0, 1fr) minmax(9rem, 31%); align-items: center; gap: .75rem 2rem; padding: 1.25rem 1.5rem; border: 1px solid var(--line); border-radius: .75rem .75rem 0 0; background: var(--surface); } +.base-section-heading h2 { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem .75rem; font-size: clamp(1.25rem, 2.5vw, 1.625rem); line-height: 1.25; } +.base-status { padding: .15rem .5rem; border-radius: .375rem; border: 1px solid var(--line); color: var(--text-secondary); font-size: .75rem; font-weight: 500; } +.base-section-heading p { max-width: 55ch; margin: .5rem 0 0; color: var(--text-secondary); font-size: .9375rem; line-height: var(--reading-line-height); } +.base-device-picture { display: grid; justify-items: center; align-content: center; } +.base-device-picture :is(img, svg) { display: block; width: 100%; height: 7.5rem; object-fit: contain; } +.base-device-picture .photo-credit { margin: .25rem 0 0; color: var(--muted); font-size: .6875rem; text-align: center; } +.base-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem 1rem; margin-top: .875rem; } +.base-actions .text-button { min-height: 2.5rem; } +.base-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin: 0; padding: .875rem 1.5rem 1rem; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 .75rem .75rem; background: var(--sidebar); } +.base-facts dt { margin-bottom: .25rem; font-weight: 600; font-size: .8125rem; } +.base-facts dd, .base-overview dd, .base-sequence p, .base-steps p, .base-also dd, .base-workflow > p { margin-block: 0; color: var(--muted); font-size: .875rem; line-height: var(--reading-line-height); } +.base-overview dd { margin-top: .375rem; } +.base-facts dd, .base-overview dd, .base-also dd { margin-inline: 0; } .base-page :is(p, dd) a, .base-footer a { color: var(--accent); text-decoration: underline; text-underline-offset: .15em; } -.base-workflow { margin: 1.25rem 0; padding-top: 1rem; border-top: 1px solid var(--chrome-edge); } -.base-workflow h3 { margin: 0 0 .75rem; font-size: 1.0625rem; } -.base-workflow > p { max-width: 76ch; color: var(--muted); font-size: .875rem; line-height: 1.55; } -.base-features .base-steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); max-width: none; } -.base-reference { border-top: 1px solid var(--chrome-edge); } -.base-reference > summary { display: flex; justify-content: space-between; align-items: center; min-height: 2.875rem; gap: .75rem; padding: .375rem .25rem; color: var(--text-secondary); font-size: .9375rem; font-weight: 550; list-style: none; cursor: pointer; } +.base-workflow { margin: 1.5rem 0 1rem; } +.base-workflow h3, .base-changelog h3 { margin: 0 0 .75rem; font-size: 1.125rem; } +.base-workflow > p { max-width: 78ch; } +.base-sequence, .base-steps, .base-screens, .base-machines { list-style: none; padding: 0; margin: 0; } +.base-sequence { gap: 1.5rem; padding: 1rem 1.25rem; counter-reset: base-step; } +.base-sequence li { counter-increment: base-step; } +.base-sequence h4 { display: flex; gap: .5rem; align-items: center; } +.base-sequence h4::before { content: counter(base-step); content: counter(base-step) / ''; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; flex: none; border: 1px solid var(--control-border); border-radius: 50%; color: var(--text-secondary); font: .8125rem var(--mono); } +.base-sequence h4, .base-steps h4, .base-screen h4 { margin: 0 0 .375rem; font-size: .9375rem; font-weight: 600; } +.base-screens { gap: .875rem; } +.base-screen { border: 1px solid var(--line); border-radius: .625rem; overflow: hidden; background: var(--surface); } +.base-screen figure { margin: 0; } +.base-lcd { display: grid; place-items: center; padding: 1rem; background: var(--field); border-bottom: 1px solid var(--chrome-edge); } +.base-lcd img { display: block; width: 100%; max-width: 12rem; height: auto; aspect-ratio: 2 / 1; object-fit: contain; image-rendering: pixelated; } +.base-screen figcaption { padding: .75rem .875rem .875rem; color: var(--text-secondary); font-size: .8125rem; line-height: var(--reading-line-height); } +.base-keys { margin-bottom: .375rem; color: var(--accent); font: .75rem/1.4 var(--mono); } + +.base-reference { border-block: 1px solid var(--chrome-edge); } +.base-recovery, .base-changelog { padding: 1rem 1.25rem; } +.base-section > .base-reference { padding-inline: 1.25rem; } +.base-workflow > .base-reference { margin-top: .75rem; } +.base-reference > summary { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 2.75rem; padding: .375rem .25rem; color: var(--text-secondary); font-size: .875rem; font-weight: 550; list-style: none; cursor: pointer; } .base-reference > summary::-webkit-details-marker { display: none; } .base-reference > summary::after { content: ''; width: .4rem; height: .4rem; margin-right: .45rem; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); } .base-reference[open] > summary::after { transform: rotate(225deg); } .base-reference > summary:hover { color: var(--text); background: var(--sidebar); } +.base-reference > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } .base-reference > :last-child:not(summary) { margin-bottom: 1rem; } -.base-steps, .base-screens, .base-machines { list-style: none; padding: 0; margin: 0; } -.base-steps { display: grid; gap: .875rem; max-width: 78ch; } +.base-steps, .base-also { display: grid; gap: .875rem; max-width: 78ch; } .base-steps li { display: flex; align-items: flex-start; gap: .75rem; } .base-step-icon { margin-top: .15rem; color: var(--muted); } -.base-steps h4, .base-screen h4 { margin: 0 0 .2rem; font-size: .9375rem; font-weight: 600; } -.base-screens { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; } -.base-screen figure { margin: 0; } -.base-lcd { padding: .875rem; border: 1px solid var(--chrome-edge); border-radius: .5rem; background: var(--field); } -.base-lcd img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: contain; } -.base-screen figcaption { padding: .625rem .125rem; color: var(--text-secondary); font-size: .8125rem; line-height: 1.5; } -.base-keys { margin-bottom: .25rem; color: var(--accent); font-size: .75rem; } -.base-also { display: grid; gap: .75rem; margin: 1rem 0; } -.base-also dt { color: var(--text); font: .8125rem/1.5 var(--mono); } +.base-also { margin: 1rem 0; } +.base-also dt { font: .8125rem/1.5 var(--mono); } +.base-changelog { margin-top: 1.5rem; } +.base-changelog h3:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; } +.base-changelog dl { margin: 0; } +.base-change { display: grid; grid-template-columns: minmax(7rem, 9rem) minmax(0, 1fr); gap: .25rem 1rem; align-items: baseline; padding: .75rem 0; } +.base-change + .base-change { border-top: 1px solid var(--chrome-edge); } +.base-change dt { font: .8125rem var(--mono); color: var(--text-secondary); } +.base-change dd { margin: 0; max-width: 72ch; color: var(--muted); font-size: .875rem; line-height: var(--reading-line-height); } +.base-change a { white-space: nowrap; } .base-machines { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: .375rem 1.5rem; margin-top: 1rem; } .base-machines a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .2rem .75rem; padding: .625rem .375rem; border-bottom: 1px solid var(--chrome-edge); } .base-machines a:hover { background: var(--sidebar); } .base-machines strong { font-size: .9375rem; } .base-machines span { grid-column: 1; color: var(--muted); font-size: .8125rem; } .base-machines svg { grid-column: 2; grid-row: 1 / 3; color: var(--muted); } -.base-footer { margin-top: 1.25rem; color: var(--muted); font-size: .8125rem; line-height: 1.55; } -@media (max-width: 680px) { - .base-heading { grid-template-columns: minmax(0, 1fr); } - .base-heading .faq-machines { grid-row: 3; justify-self: start; } - .base-heading .faq-machines button { padding-inline: .6rem; } - .base-device { grid-template-columns: minmax(0, 1fr); gap: .75rem; } - .base-device-picture { width: min(100%, 12rem); } - .base-facts { grid-template-columns: minmax(0, 1fr); } +.base-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; margin-top: 1.25rem; color: var(--muted); font-size: .8125rem; line-height: 1.5; } + +@container (max-width: 38rem) { + .base-overview { grid-template-columns: 1fr; gap: .625rem; margin-bottom: 1rem; padding: .875rem; } + .base-overview > div { display: grid; grid-template-columns: 8.25rem 1fr; align-items: start; gap: .5rem; } + .base-overview > div + div { border: 0; padding: 0; } + .base-overview dd { margin: 0; } + .base-picker { display: grid; } + .base-device { grid-template-columns: minmax(0, 1fr) minmax(4.75rem, 25%); padding: 1rem; gap: .625rem; } + .base-device-picture :is(img, svg) { height: auto; max-height: 7rem; } + .base-facts, .base-sequence, .base-screens { grid-template-columns: 1fr; } + .base-facts { gap: .75rem; padding: .75rem 1rem; } + .base-sequence { gap: .875rem; } + .base-sequence p { padding-left: 2rem; } + .base-screen figure { display: grid; grid-template-columns: minmax(5rem, 32%) 1fr; height: 100%; } + .base-lcd { padding: .5rem; border: 0; border-right: 1px solid var(--chrome-edge); } +} +@container (max-width: 30rem) { + .base-change { grid-template-columns: 1fr; } + .base-device { display: block; } + .base-device-picture { display: none; } + .base-picker .faq-machines button { padding-inline: .25rem; } } diff --git a/src/components/credits.css b/src/components/credits.css index efca51aee1..e8445be61b 100644 --- a/src/components/credits.css +++ b/src/components/credits.css @@ -1,11 +1,11 @@ .credits-page { width: 100%; max-width: 1060px; margin: 0 auto; } .credits-heading { margin-bottom: 26px; } -.credits-heading > div > p:last-child { max-width: 660px; font-size: 14px; line-height: 1.8; } +.credits-heading > div > p:last-child { max-width: 660px; font-size: 14px; line-height: var(--reading-line-height); } .credits-origin { padding: 28px 30px; border: 1px solid #555974; border-radius: 10px; background: linear-gradient(120deg, #929bff0e, transparent 75%), var(--surface); } .credits-eyebrow { color: var(--accent); font: 11px/1.6 var(--mono); letter-spacing: 1.2px; } .credits-origin h2 { margin-top: 11px; font-size: 24px; line-height: 1.4; letter-spacing: -.4px; } .credit-author { margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.7; } -.credits-origin-copy { margin-top: 18px; max-width: 790px; color: #c6c6d2; font-size: 14px; line-height: 1.85; } +.credits-origin-copy { margin-top: 18px; max-width: 790px; color: #c6c6d2; font-size: 14px; line-height: var(--reading-line-height); } .credit-links { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 20px; margin-top: 16px; } .credit-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--accent); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; } .credit-links a:hover { color: #c5cbff; text-decoration: underline; text-underline-offset: 3px; } @@ -18,14 +18,14 @@ .credits-section-heading > span { flex-shrink: 0; } .credits-section-heading h2 { font-size: 18px; line-height: 1.5; scroll-margin-top: 16px; } .credits-section-heading h2:focus { outline: none; } -.credits-section-heading p { margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.7; } +.credits-section-heading p { margin-top: 5px; color: var(--muted); font-size: 13px; line-height: var(--reading-line-height); } .credits-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .credit-project { display: flex; flex-direction: column; min-width: 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); } .credit-project h3 { margin: 0; color: #e1e1eb; font-size: 15px; font-weight: 600; line-height: 1.5; letter-spacing: -.1px; } -.credit-description { margin-top: 12px; margin-bottom: 12px; color: #bcbcca; font-size: 13px; line-height: 1.8; } +.credit-description { margin-top: 12px; margin-bottom: 12px; color: #bcbcca; font-size: 13px; line-height: var(--reading-line-height); } .credit-project .credit-links { margin-top: auto; } .credits-research { margin-top: 36px; padding: 24px 0; border-top: 1px solid var(--line); } -.credits-research p, .credits-footer p { margin-top: 12px; max-width: 840px; color: var(--muted); font-size: 13px; line-height: 1.85; } +.credits-research p, .credits-footer p { margin-top: 12px; max-width: 840px; color: var(--muted); font-size: 13px; line-height: var(--reading-line-height); } .credits-footer { border-top: 1px solid var(--line); padding-top: 24px; padding-bottom: 8px; } @media (max-width: 900px) { .credits-grid { grid-template-columns: minmax(0, 1fr); } diff --git a/src/components/octatrack-link.css b/src/components/octatrack-link.css index 065dfcd166..a67ba0ff96 100644 --- a/src/components/octatrack-link.css +++ b/src/components/octatrack-link.css @@ -309,7 +309,7 @@ button.octatrack-status { width: 100%; border: 0; border-top: 1px solid var(--li .hub-empty-set p { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.55; } .hub-empty-set .button { min-height: 44px; } /* Setup: the base and the module file for the card. */ -.card-set-steps { margin: 10px 0; padding-left: 20px; color: var(--text-secondary); font-size: 13px; line-height: 1.7; } +.card-set-steps { margin: 10px 0; padding-left: 20px; color: var(--text-secondary); font-size: 13px; line-height: var(--reading-line-height); } .card-set-dialog { width: min(440px, calc(100vw - 32px)); } .card-set-plan { display: grid; gap: 16px; margin: 22px 0 18px; padding: 0; list-style: none; } .card-set-plan li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; } @@ -450,12 +450,12 @@ button.octatrack-status { width: 100%; border: 0; border-top: 1px solid var(--li .base-install-progress [aria-current="step"] { color: var(--text); font-weight: 600; } .base-install-progress [aria-current="step"] > span { color: var(--field); background: var(--accent); border-color: var(--accent); } .base-install-progress .is-past > span { color: var(--accent); border-color: var(--accent-line); } -.base-install-stage { min-height: 240px; font-size: 15px; line-height: 1.65; color: var(--text-secondary); } +.base-install-stage { min-height: 240px; font-size: 15px; line-height: var(--reading-line-height); color: var(--text-secondary); } .base-install-stage h3 { margin: 0 0 10px; color: var(--text); font-size: 23px; line-height: 1.3; letter-spacing: -.35px; } .base-install-stage p { margin: 0 0 16px; } .base-install-stage .base-file-ready { display: flex; align-items: center; gap: 8px; color: var(--text); margin-top: 24px; } .base-install-stage .risk-acceptance { margin-top: 20px; font-size: 14px; } -.base-install-stage .risk-acceptance p, .base-install-stage .risk-acceptance label { font-size: 14px; line-height: 1.65; } +.base-install-stage .risk-acceptance p, .base-install-stage .risk-acceptance label { font-size: 14px; line-height: var(--reading-line-height); } .base-install-stage .risk-acceptance label { min-height: 44px; } .base-install-stage .base-install-warning, .base-install-route { display: flex; gap: 12px; margin-top: 20px; padding: 14px 16px; border: 1px solid #715235; border-radius: 8px; background: #382d23; color: #f0c792; font-size: 14px; line-height: 1.65; } .base-install-warning svg { flex-shrink: 0; margin-top: 3px; } diff --git a/src/styles.css b/src/styles.css index 3a38c96189..2010ff0c04 100644 --- a/src/styles.css +++ b/src/styles.css @@ -7,8 +7,8 @@ text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; /* Neutral charcoal surfaces retain the instrument-inspired dark palette. */ - --background: #19191c; - --sidebar: #212124; + --background: #1d1d21; + --sidebar: #232327; --surface: #2c2c31; --surface-raised: #303036; --surface-hover: #38383f; @@ -22,6 +22,7 @@ --text-secondary: #dadade; --muted: #bebec9; --faint: #afafbd; + --reading-line-height: 1.6; --accent: #a5adff; --accent-hover: #c0c6ff; --accent-ink: #171722; @@ -58,6 +59,7 @@ svg { flex-shrink: 0; } svg:not(.signal-art) { stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; } button { color: inherit; } h1, h2, p { margin: 0; } +:where(.workspace-content p, .workspace-content dd) { line-height: var(--reading-line-height); } h1 { font-size: 32px; line-height: 1.25; letter-spacing: -.7px; font-weight: 650; } h2 { font-size: 16px; letter-spacing: -.15px; font-weight: 600; } .seo-content { max-width: 960px; margin: 0 auto; padding: 32px 20px; line-height: 1.6; } @@ -153,7 +155,7 @@ h2 { font-size: 16px; letter-spacing: -.15px; font-weight: 600; } .workspace-content:focus { outline: none; } .library-page, .detail-page, .configuration-page { width: 100%; max-width: 1240px; margin: 0 auto; } .page-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 29px; } -.page-heading p { color: var(--muted); font-size: 13px; line-height: 1.6; margin-top: 8px; } +.page-heading p { color: var(--muted); font-size: 13px; line-height: var(--reading-line-height); margin-top: 8px; } .library-total { color: var(--faint); font-size: 12px; white-space: nowrap; padding: 5px 8px; border: 1px solid var(--line); border-radius: 5px; } .library-subheading { display: flex; justify-content: space-between; align-items: center; color: var(--text-secondary); font-size: 13px; margin-bottom: 15px; } .library-subheading .subtle { font-size: 12px; } @@ -218,7 +220,7 @@ h2 { font-size: 16px; letter-spacing: -.15px; font-weight: 600; } .card-credit { display: flex; justify-content: space-between; gap: 10px; margin-top: 4px; color: #b9b9c7; font-size: 12px; line-height: 1.5; } .card-credit a:hover, .author-link:hover { color: var(--accent); } /* The summary lives in the cover hover on pointer devices; phones and touch screens show it in the body. */ -.card-description { display: none; margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } +.card-description { display: none; margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: var(--reading-line-height); -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .card-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; margin: 11px 0 10px; color: #c0c0ce; font-size: 12px; } .card-stats { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-left: auto; font-variant-numeric: tabular-nums; } .card-stat { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; } @@ -647,7 +649,7 @@ select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; } .app-dialog h2 { font-size: 21px; margin-bottom: 22px; } .app-dialog label { display: flex; flex-direction: column; gap: 10px; font-size: 13px; } .app-dialog input { width: 100%; border: 1px solid #676057; border-radius: 6px; background: var(--field); padding: 12px; color: #efebe4; } -.app-dialog p { color: #bcb6ae; font-size: 13px; line-height: 1.7; } +.app-dialog p { color: #bcb6ae; font-size: 13px; line-height: var(--reading-line-height); } .dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 25px; } .support-ways { display: grid; gap: .625rem; margin: 1rem 0; padding-inline-start: 1.2rem; color: var(--text-secondary); font-size: .875rem; line-height: 1.5; } .support-ways a { color: var(--accent); text-decoration: underline; text-underline-offset: .18em; } @@ -660,7 +662,7 @@ select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; } .owner-note-body { overflow-y: auto; padding: 18px 32px 26px; } .app-dialog.owner-note h2 { font-size: 24px; margin-bottom: 18px; } .owner-note h2:focus { outline: none; } -.app-dialog.owner-note p, .owner-note-asks li { font-size: 15px; line-height: 1.7; color: var(--text-secondary); } +.app-dialog.owner-note p, .owner-note-asks li { font-size: 15px; line-height: var(--reading-line-height); color: var(--text-secondary); } .owner-note p + p, .owner-note-asks + p { margin-top: 16px; } .owner-note-asks { display: grid; gap: 8px; margin: 12px 0 0; padding-left: 20px; } .owner-note strong { color: var(--text); } @@ -1300,7 +1302,7 @@ h1 { font-size: 28px; } .faq-quick li + li { border-left: 1px solid var(--line); } .faq-quick li::before { content: counter(faq-step); grid-row: span 2; display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--accent-line); border-radius: 999px; color: var(--accent); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; } .faq-quick li strong { color: var(--text); font-size: 14px; font-weight: 600; line-height: 1.7; } -.faq-quick li span { grid-column: 2; color: var(--muted); font-size: 13px; line-height: 1.6; } +.faq-quick li span { grid-column: 2; color: var(--muted); font-size: 13px; line-height: var(--reading-line-height); } .faq-quick code { font: .92em var(--mono); color: var(--text-secondary); overflow-wrap: anywhere; } .faq-quick-caution { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px 20px; border-top: 1px solid var(--line); border-radius: 0 0 9px 9px; background: var(--preview); color: var(--muted); font-size: 12px; line-height: 1.6; } .faq-quick-caution svg { flex: none; margin-top: 1px; color: #f0bb79; } @@ -1339,7 +1341,7 @@ h1 { font-size: 28px; } .faq-question summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; } .faq-question summary > svg { flex: none; color: var(--faint); transition: transform .18s, color .18s; } .faq-question[open] summary > svg { transform: rotate(45deg); color: var(--accent); } -.faq-answer { max-width: 72ch; padding: 0 20px 20px; color: #c4c4d0; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; } +.faq-answer { max-width: 72ch; padding: 0 20px 20px; color: #c4c4d0; font-size: 14px; line-height: var(--reading-line-height); overflow-wrap: anywhere; } .faq-answer > * + * { margin-top: 12px; } .faq-answer ol, .faq-answer ul { margin-bottom: 0; padding-left: 22px; } .faq-answer li + li { margin-top: 7px; } @@ -1533,15 +1535,15 @@ h1 { font-size: 28px; } .legal-links { display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; font-size:11px; } .legal-links a { min-height:28px; } .legal-page { max-width:860px; } -.legal-page address { font-style:normal; line-height:1.7; } -.legal-page p, .legal-page li { line-height:1.65; } +.legal-page address { font-style:normal; line-height:var(--reading-line-height); } +.legal-page p, .legal-page li { line-height:var(--reading-line-height); } .legal-page li + li { margin-top:8px; } .legal-page a { overflow-wrap:anywhere; } .legal-language { display:flex; gap:10px; margin-bottom:24px; } /* Modding guidelines: one row per rule group, its name beside its rules; one column in a narrow pane. */ .legal-page.guidelines-page { max-width:820px; } .guidelines-card { container-type:inline-size; padding-top:26px; padding-bottom:26px; } -.modding-guidelines { display:grid; grid-template-columns:10.5rem minmax(0,1fr); color:#bdbdcb; font-size:14px; line-height:1.75; } +.modding-guidelines { display:grid; grid-template-columns:10.5rem minmax(0,1fr); color:#bdbdcb; font-size:14px; line-height:var(--reading-line-height); } .modding-guidelines > * { grid-column:1 / -1; } .modding-guidelines > p { max-width:68ch; } .modding-guidelines > p:first-child { color:var(--text-secondary); font-size:15px; } @@ -2283,7 +2285,7 @@ button.signal-tile[aria-pressed="true"] > svg { fill: currentColor; } .status-bar .workspace-status a { color: var(--accent); } .search input, .detail-tabs button { font-size: .875rem; } .page-heading h1 { font-size: clamp(1.625rem, 2.25vw, 2.125rem); line-height: 1.15; } - .page-heading p:not(.page-kicker), .detail-hero-with-resources .detail-intro > .detail-description { font-size: .9375rem; line-height: 1.6; } + .page-heading p:not(.page-kicker), .detail-hero-with-resources .detail-intro > .detail-description { font-size: .9375rem; line-height: var(--reading-line-height); } .library-page > .catalog-heading { justify-content: flex-start; align-items: baseline; gap: .75rem; margin-bottom: .5rem; } .catalog-count { color: var(--muted); font-size: .8125rem; } .library-page .discovery-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; align-items: center; margin: 0 0 1rem; } From 6be1f1b79881aad11622c226f877449c0b19a169 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Thu, 19 Nov 2026 09:01:29 +0100 Subject: [PATCH 104/415] Improvement: a fast seeded soak on the Octatrack over USB MIDI scripts/octatrack-soak.mjs plays a seeded run of program changes, START/STOP, crossfader, scenes, mutes, levels and FX knobs at the unit (20 a second by default), reads the new `health` step after every operation, stops at the first crash, stall, loader error or freeze with the unit's records in its log, replays a run (--replay, --until) and shrinks a failure to its shortest prefix (--shrink --reset DIR). scripts/octatrack-midi-bridge.py sends the MIDI from the computer the unit is plugged into (winmm on Windows, mido elsewhere). Co-Authored-By: Claude Opus 5.5 --- changelog/2026-11-19-fast-unit-soak.md | 1 + docs/OCTATRACK_DRIVING.md | 21 ++ scripts/device.mjs | 8 + scripts/octatrack-midi-bridge.py | 115 ++++++++++ scripts/octatrack-soak.mjs | 290 +++++++++++++++++++++++++ scripts/octatrack-soak.test.mjs | 90 ++++++++ 6 files changed, 525 insertions(+) create mode 100644 changelog/2026-11-19-fast-unit-soak.md create mode 100644 scripts/octatrack-midi-bridge.py create mode 100644 scripts/octatrack-soak.mjs create mode 100644 scripts/octatrack-soak.test.mjs diff --git a/changelog/2026-11-19-fast-unit-soak.md b/changelog/2026-11-19-fast-unit-soak.md new file mode 100644 index 0000000000..f047d5c0b9 --- /dev/null +++ b/changelog/2026-11-19-fast-unit-soak.md @@ -0,0 +1 @@ +Development: `scripts/octatrack-soak.mjs` plays a seeded run of USB MIDI at an Octatrack (program changes, START and STOP, scenes, the crossfader, mutes and FX knobs, about 20 a second), reads the new `health` step after every operation, stops at the first crash, stall, loader error or freeze with the unit's records in its log, replays a run, and shrinks a failure to its shortest prefix. `scripts/octatrack-midi-bridge.py` sends the MIDI from the computer the unit is plugged into. diff --git a/docs/OCTATRACK_DRIVING.md b/docs/OCTATRACK_DRIVING.md index 4bf9287c6c..69d46dbf56 100644 --- a/docs/OCTATRACK_DRIVING.md +++ b/docs/OCTATRACK_DRIVING.md @@ -141,6 +141,7 @@ error and moves on. macOS `nc -U` hangs up before the reply, so use the script. | `part1`-`part4` | switch Parts (PART + an arrow), done once the Part changed | | `ui` | each track's FX1/FX2 as they run, the current track, Part, transport | | `stats` | CPU, each core's mean/peak per mille, idle passes. One reading is not a measurement: on 27 October 2026 (MKII, a dev twin, stopped, nothing changing) it swung between 41 % and 60 % within ten seconds. Take ten readings in each state, or time the hook itself with `modwerk_cost` (`profile`) | +| `health` | one JSON line for scripts: the DSP frames, the loader's stalls and errors, the UI tick's watch count, CPU, the crash and stall records' counts (battery RAM, so earlier ones stay counted) and the transport. Development bases. [A fast soak](#a-fast-soak) reads it after every operation | | `loader` | packets accepted, rejected, errors, jobs, selections, commits, rollbacks, code words per core | | `mem:0x80000ec4:16` | RAM in hex, read-only, any length, within 0x40000400-0x40cfffff (short of the pool's end and the loader's statics), 0x46000000-0x46ffffff, 0x80000000-0x8000ffff and the battery RAM's records 0x100f0000-0x100fffff (`dev.c`); the battery-RAM Part copies are outside it | | (any sequence) | answers within 20 s beyond its own `w` waits, else an error, and the next request runs | @@ -165,6 +166,26 @@ STATE's `recording` bit reports sampler recorders. Check live-sequencer recordin separately when qualifying an edit's recording refusal; that bit alone does not establish whether live recording started or stopped. +## A fast soak + +`node scripts/octatrack-soak.mjs` plays a seeded run of USB MIDI at the unit (program changes and bursts of them, +START and STOP, the crossfader, scenes, mutes, levels and FX knobs, transitions weighted most) and reads `health` after +every operation. It stops at the first failure: a new crash or stall record, a loader stall or error, DSP frames still +for 0.6 s, or the UI tick still for 1.5 s. Then it reads `stall`, `crash` and `diaglog` into the run's log, which holds +every operation, so `--replay LOG [--until N]` plays the same run again. The default is three minutes at 20 operations a +second, about as many operations as an hour at a player's pace. + +- MIDI goes through `scripts/octatrack-midi-bridge.py` on the computer the unit is plugged into (on Windows the device + venv's Python, through winmm; port 47812). Start it before the run and stop it after: while it runs it holds the + unit's MIDI port. +- The project: track channels 1-8, PROG CH RECEIVE on the channel `--pc-channel` names (default 1), CC and transport + receive on, effects of the modules under test on the Parts that `--programs` reaches. A program change while playing + lands at the pattern's end, so short patterns at a high tempo give the most transitions. +- `--replay LOG --shrink --reset DIR` finds the shortest prefix of a failed run that still fails: before each replay it + RAM-boots `DIR` (a development twin; serve in its loop) and waits out the base's 25 s panel hold, so each try costs + about a minute, and halving needs about a dozen tries for two thousand operations. +- Nothing is installed, kept or flashed. A run that leaves the unit off USB needs the owner's power cycle, as always. + ## The panel, as it behaves For automated panel tests, a KEY reply confirms posted bytes, not the resulting diff --git a/scripts/device.mjs b/scripts/device.mjs index 044aa1e141..31cba17948 100644 --- a/scripts/device.mjs +++ b/scripts/device.mjs @@ -337,6 +337,7 @@ async function missing() { * memory (development bases: each memory's use, holes and largest free run), compact (pack each core's code now, timed), * dspmap (development bases: each core's code arena drawn, every block named with its slots), dspmap:watch:N (redrawn on change) * profile, profile:N (development bases: each UI tick hook's µs over N seconds, from the symbols of the build `boot` started) + * health (development bases: one JSON line of DSP frames, loader stalls and errors, ticks, CPU, crash and stall record counts; scripts/octatrack-soak.mjs) * (spaces in NAME as _; it waits until the track runs it). */ async function run(sequence, until = Infinity) { // serve: past its time limit a sequence stops before its next step for (const step of sequence.trim().split(/\s+/)) { @@ -483,6 +484,13 @@ async function run(sequence, until = Infinity) { // serve: past its time limit a else if ((m = /^pick:T([1-8]):FX([12]):(\S+)$/i.exec(step))) await pick(Number(m[1]) - 1, Number(m[2]), m[3].replace(/_/g, ' ')) else if ((m = /^pickid:T([1-8]):FX([12]):(\d+)$/i.exec(step))) await pick(Number(m[1]) - 1, Number(m[2]), Number(m[3])) // by effect id else if (step === 'state') { const [s, r] = await devIn(6, 0, 2); console.log(s ? 'stopped' : 'playing', r ? 'recording' : '') } + else if (step === 'health') { // one JSON line for scripts/octatrack-soak.mjs: DSP frames, loader stalls and errors, the UI tick's watch count, CPU, + // the crash and stall records' counts (battery RAM, 0 when none), the transport and the bank and pattern (development bases: MEM) + const w = await statusWords(), [stopped] = await devIn(6, 0, 2) + const record = async (at, magic) => { const b = await mem(at, 8), v = new DataView(b.buffer, b.byteOffset, 8); return v.getUint32(0) === magic ? v.getUint32(4) : 0 } + console.log(JSON.stringify({ health: { frames: w(1), stalls: w(11), errors: w(10), ticks: w(15), cpu: w(66), crash: await record(0x100ff800, 0x4d574352), + stall: await record(0x100ff900, 0x4d575354), playing: !stopped, pattern: [...await mem(0x800065bd, 4)] } })) // bank, pattern, then the queued ones + } else if (step === 'stats') { const w = await statusWords(); console.log(`stats cpu ${w(66)} T1-4 ${w(69)}/${w(70)} T5-8 ${w(67)}/${w(68)} passes ${(w(76) / 1024).toFixed(1)} ${(w(77) / 1024).toFixed(1)}`) } else { const [, spec, times] = /^(.+?)(?:\*(\d+))?$/.exec(step); for (let i = 0; i < Number(times ?? 1); i++) await keys(spec) } await wait(60) diff --git a/scripts/octatrack-midi-bridge.py b/scripts/octatrack-midi-bridge.py new file mode 100644 index 0000000000..6aefdcfb7c --- /dev/null +++ b/scripts/octatrack-midi-bridge.py @@ -0,0 +1,115 @@ +#!/usr/bin/env python3 +# SPDX-License-Identifier: GPL-3.0-or-later +"""USB MIDI to the Octatrack for scripts/octatrack-soak.mjs: a line service on 127.0.0.1. + + python -B octatrack-midi-bridge.py [PORT] [--name Octatrack] [--list] + +Run it on the computer the unit is plugged into: on Windows with the device venv's Python (docs/OCTATRACK_DRIVING.md, +"On Windows, from WSL"), where WSL reaches it on 127.0.0.1 through mirrored networking as it reaches the USB bridge. +Each line holds MIDI messages as hex words ('c003', 'fa', 'b0307f'); they go out back to back, and the line is +answered 'ok N' (messages sent) or 'error: ...'. Windows sends through winmm (ctypes, nothing to install); other +systems through mido, if it is installed. Short messages only, no SysEx. --list prints the MIDI outputs and exits.""" +import argparse, socket, socketserver, sys + + +def parse(line): + """'c003 fa' -> [b'\\xc0\\x03', b'\\xfa']: one to three bytes a word, a status byte first. Raises ValueError.""" + out = [] + for word in line.split(): + data = bytes.fromhex(word) + if not 1 <= len(data) <= 3 or data[0] < 0x80 or any(b > 0x7f for b in data[1:]) or data[0] == 0xf0: + raise ValueError('not a short MIDI message: ' + word) + out.append(data) + return out + + +class Winmm: + def __init__(self, name): + import ctypes + from ctypes import wintypes + self.w = w = ctypes.WinDLL('winmm') + + class Caps(ctypes.Structure): + _fields_ = [('mid', wintypes.WORD), ('pid', wintypes.WORD), ('ver', wintypes.DWORD), ('name', wintypes.WCHAR * 32), + ('tech', wintypes.WORD), ('voices', wintypes.WORD), ('notes', wintypes.WORD), ('mask', wintypes.WORD), ('support', wintypes.DWORD)] + self.names = [] + for i in range(w.midiOutGetNumDevs()): + c = Caps() + w.midiOutGetDevCapsW(i, ctypes.byref(c), ctypes.sizeof(c)) + self.names.append(c.name) + self.handle = None + if name is None: + return + found = [i for i, n in enumerate(self.names) if name.lower() in n.lower()] + if not found: + raise SystemExit('No MIDI output named like %r: %s' % (name, ', '.join(self.names) or 'none')) + self.handle = wintypes.HANDLE() + if w.midiOutOpen(ctypes.byref(self.handle), found[0], None, None, 0): + raise SystemExit('Could not open %s (another program may hold it).' % self.names[found[0]]) + self.opened = self.names[found[0]] + + def send(self, data): + word = data[0] | (data[1] << 8 if len(data) > 1 else 0) | (data[2] << 16 if len(data) > 2 else 0) + if self.w.midiOutShortMsg(self.handle, word): + raise OSError('midiOutShortMsg refused %s' % data.hex()) + + +class Mido: + def __init__(self, name): + import mido + self.names = mido.get_output_names() + self.port = None + if name is None: + return + found = [n for n in self.names if name.lower() in n.lower()] + if not found: + raise SystemExit('No MIDI output named like %r: %s' % (name, ', '.join(self.names) or 'none')) + self.port, self.opened = mido.open_output(found[0]), found[0] + self.mido = mido + + def send(self, data): + self.port.send(self.mido.Message.from_bytes(list(data))) + + +def output(name): + if sys.platform == 'win32': + return Winmm(name) + try: + return Mido(name) + except ImportError: + raise SystemExit('Outside Windows this bridge needs mido (pip install mido python-rtmidi).') + + +def main(): + ap = argparse.ArgumentParser() + ap.add_argument('port', nargs='?', type=int, default=47812) + ap.add_argument('--name', default='Octatrack') + ap.add_argument('--list', action='store_true') + a = ap.parse_args() + if a.list: + print('\n'.join(output(None).names)) + return + out = output(a.name) + + class Handler(socketserver.StreamRequestHandler): + def handle(self): + self.connection.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) # a reply per line, no batching + for raw in self.rfile: + try: + messages = parse(raw.decode('ascii', 'replace')) + for m in messages: + out.send(m) + reply = 'ok %d\n' % len(messages) + except (ValueError, OSError) as e: + reply = 'error: %s\n' % e + self.wfile.write(reply.encode()) + self.wfile.flush() + + socketserver.TCPServer.allow_reuse_address = True + with socketserver.TCPServer(('127.0.0.1', a.port), Handler) as server: + print('MIDI to %s on 127.0.0.1:%d' % (out.opened, a.port), flush=True) + server.serve_forever() + + +if __name__ == '__main__': + main() diff --git a/scripts/octatrack-soak.mjs b/scripts/octatrack-soak.mjs new file mode 100644 index 0000000000..1ed4fc04bb --- /dev/null +++ b/scripts/octatrack-soak.mjs @@ -0,0 +1,290 @@ +#!/usr/bin/env node +// SPDX-License-Identifier: GPL-3.0-or-later +// A fast seeded soak of the Octatrack: program changes, START and STOP, the crossfader, scenes, mutes, levels and FX +// knobs go to the unit as USB MIDI as fast as it takes them, its health is read after every operation, and the run +// stops at the first failure. The same seed gives the same operations at the same times, so a failure replays. +// +// node scripts/octatrack-soak.mjs [--seconds 180] [--rate 20] [--seed N] [--profile mix] [--programs 0-15] [--log FILE] +// node scripts/octatrack-soak.mjs --replay FILE.json [--until N] # the same operations again, up to N +// node scripts/octatrack-soak.mjs --replay FILE.json --shrink --reset DIR # the shortest prefix that still fails +// +// Needs `npm run device -- serve` (in its loop) on a development base, which answers the `health` step +// (MODWERK_DEV_SOCKET, default /tmp/modwerk-dev.sock), and scripts/octatrack-midi-bridge.py on the computer the unit is +// plugged into (--midi HOST:PORT, default 127.0.0.1:47812). The project's MIDI settings: track channels 1-8 (stock's +// default), PROG CH RECEIVE on the channel --pc-channel names, CC and transport receive on. A program change while +// playing lands at the pattern's end, so short patterns at a high tempo give the most transitions a minute +// (docs/OCTATRACK_DRIVING.md, "A fast soak"). Nothing is installed, kept or flashed; --shrink RAM-boots DIR (a +// development twin) before each replay. +import { existsSync, readFileSync, writeFileSync } from 'node:fs' +import { createConnection } from 'node:net' +import { join, resolve } from 'node:path' +import { fileURLToPath } from 'node:url' +import { parseArgs } from 'node:util' + +/** Operation kinds and how often each comes, per profile. Transitions (program changes, START/STOP) weigh most in + * `mix`: octabam's stalls on a unit came at program changes that load DSP code, at START and at reloads. */ +export const PROFILES = { + mix: { pc: 30, burst: 10, startstop: 10, start: 4, stop: 4, xfade: 10, scene: 6, mute: 6, level: 5, knob: 15 }, + pc: { pc: 55, burst: 25, startstop: 12, start: 4, stop: 4 }, + transport: { startstop: 50, start: 15, stop: 15, pc: 20 }, + knobs: { knob: 60, level: 15, xfade: 15, scene: 10 }, +} + +/** A small seeded generator (mulberry32): the same seed, the same numbers on every computer. */ +export function random(seed) { + let a = seed >>> 0 + return () => { + a = (a + 0x6d2b79f5) >>> 0 + let t = Math.imul(a ^ (a >>> 15), 1 | a) + t = (t + Math.imul(t ^ (t >>> 7), 61 | t)) ^ t + return ((t ^ (t >>> 14)) >>> 0) / 4294967296 + } +} + +/** '0-15,32' -> [0..15, 32]: program numbers 0-127 (bank A pattern 1 is 0, bank B pattern 1 is 16). */ +export function parsePrograms(text) { + const out = [] + for (const part of String(text).split(',').map(s => s.trim()).filter(Boolean)) { + const m = /^(\d+)(?:-(\d+))?$/.exec(part) + if (!m) throw new Error(`Not a program list: ${text}`) + const [a, b] = [Number(m[1]), Number(m[2] ?? m[1])] + if (a > b || b > 127) throw new Error(`Programs run 0-127: ${part}`) + for (let p = a; p <= b; p++) out.push(p) + } + if (!out.length) throw new Error('No programs given.') + return [...new Set(out)] +} + +const hex = bytes => bytes.map(b => b.toString(16).padStart(2, '0')).join('') + +/** The whole run, made before it starts: {seed, profile, rate, seconds, programs, ops: [{i, t, op, send: [[ms, hex]], note}]}. + * t is the operation's start in ms from the run's start; each `send` entry goes out `ms` after it. */ +export function generate({ seed, seconds = 180, rate = 20, profile = 'mix', programs = [0, 1, 2, 3], pcChannel = 1, autoChannel = 1 }) { + const weights = PROFILES[profile] + if (!weights) throw new Error(`Unknown profile ${profile}: ${Object.keys(PROFILES).join(', ')}`) + const rng = random(seed), pick = list => list[Math.floor(rng() * list.length)], int = (lo, hi) => lo + Math.floor(rng() * (hi - lo + 1)) + const kinds = Object.keys(weights), total = kinds.reduce((sum, k) => sum + weights[k], 0) + const kind = () => { let r = rng() * total; for (const k of kinds) if ((r -= weights[k]) < 0) return k; return kinds.at(-1) } + const pc = p => hex([0xc0 | (pcChannel - 1), p]), auto = (cc, v) => hex([0xb0 | (autoChannel - 1), cc, v]) + const ops = [], count = Math.max(1, Math.round(seconds * rate)), step = 1000 / rate + for (let i = 0; i < count; i++) { + const t = Math.round(i * step), k = kind(), track = int(0, 7) + let send, note + if (k === 'pc') { const p = pick(programs); send = [[0, pc(p)]]; note = `program ${p}` } + else if (k === 'burst') { // several program changes inside one op: only the last should land + const n = int(2, 5), list = Array.from({ length: n }, () => pick(programs)) + send = list.map((p, j) => [j * 15, pc(p)]); note = `burst ${list.join(' ')}` + } else if (k === 'startstop') { const gap = int(20, Math.max(20, Math.floor(step * 0.8))); send = [[0, 'fc'], [gap, 'fa']]; note = `STOP, START after ${gap} ms` } + else if (k === 'start') { send = [[0, 'fa']]; note = 'START' } + else if (k === 'stop') { send = [[0, 'fc']]; note = 'STOP' } + else if (k === 'xfade') { const v = rng() < 0.4 ? pick([0, 127]) : int(0, 127); send = [[0, auto(48, v)]]; note = `crossfader ${v}` } + else if (k === 'scene') { const cc = pick([55, 56]), v = int(0, 15); send = [[0, auto(cc, v)]]; note = `scene ${cc === 55 ? 'A' : 'B'} ${v + 1}` } + else if (k === 'mute') { const v = pick([0, 127]); send = [[0, hex([0xb0 | track, 49, v])]]; note = `${v ? 'mute' : 'unmute'} T${track + 1}` } + else if (k === 'level') { const v = int(40, 127); send = [[0, hex([0xb0 | track, 7, v])]]; note = `level T${track + 1} ${v}` } + else { const cc = int(34, 45), v = int(0, 127); send = [[0, hex([0xb0 | track, cc, v])]]; note = `T${track + 1} FX${cc < 40 ? 1 : 2} knob ${'ABCDEF'[(cc - 34) % 6]} ${v}` } + ops.push({ i, t, op: k, send, note }) + } + return { seed, profile, rate, seconds, programs, pcChannel, autoChannel, ops } +} + +/** The `health` step's line -> an object, or {error} when the session answered an error or nothing usable. */ +export function readHealth(reply) { + const text = String(reply ?? '') + const line = text.split('\n').find(l => l.startsWith('{"health"')) + if (!line) return { error: text.trim().split('\n').at(-1) || 'no answer' } + try { return JSON.parse(line).health } catch { return { error: 'unreadable health line' } } +} + +/** A judge over successive health reads: null while the unit is well, else {reason, detail}. Counters in battery RAM + * (crash and stall records) and the loader's stall and error counts must not move; the DSP frames must keep moving + * (they stop only when a DSP stops: dsp.c) and so must the sys task's watch ticks (a frozen UI). */ +export function monitor({ framesStillMs = 600, ticksStillMs = 1500 } = {}) { + let last = null, framesAt = 0, ticksAt = 0 + return (h, now) => { + if (h.error) return { reason: 'link', detail: h.error } + if (!last) { last = h; framesAt = ticksAt = now; return null } + const moved = key => h[key] !== last[key] + let verdict = null + if (moved('crash')) verdict = { reason: 'crash', detail: `crash record ${last.crash} -> ${h.crash}` } + else if (moved('stall') || moved('stalls')) verdict = { reason: 'stall', detail: `stall record ${last.stall} -> ${h.stall}, loader stalls ${last.stalls} -> ${h.stalls}` } + else if (moved('errors')) verdict = { reason: 'loader errors', detail: `${last.errors} -> ${h.errors}` } + else { + if (moved('frames')) framesAt = now + else if (now - framesAt >= framesStillMs) verdict = { reason: 'frames stopped', detail: `DSP frames at ${h.frames} for ${now - framesAt} ms` } + if (moved('ticks')) ticksAt = now + else if (!verdict && now - ticksAt >= ticksStillMs) verdict = { reason: 'frozen', detail: `watch ticks at ${h.ticks} for ${now - ticksAt} ms` } + } + last = h + return verdict + } +} + +/** The smallest n in 1..count for which fails(n) holds, by halving; fails(count) must hold. Assumes a prefix that + * fails keeps failing when it grows, which a timing fault may not: the result is then a prefix that failed once. */ +export async function shrink(count, fails) { + let lo = 0, hi = count + while (hi - lo > 1) { + const mid = (lo + hi) >> 1 + if (await fails(mid)) hi = mid; else lo = mid + } + return hi +} + +/** How many times the current bank and pattern changed over successive health reads (a program change that landed). */ +export function landed(patterns) { + let n = 0 + for (let i = 1; i < patterns.length; i++) if (patterns[i] && patterns[i - 1] && (patterns[i][0] !== patterns[i - 1][0] || patterns[i][1] !== patterns[i - 1][1])) n++ + return n +} + +/** Achieved pace, pattern changes that landed and health-read times for the report. */ +export function summarize({ done, ms, reads, cpu, patterns = [] }) { + const sorted = [...reads].sort((a, b) => a - b), at = q => sorted.length ? sorted[Math.min(sorted.length - 1, Math.floor(q * sorted.length))] : null + const changes = landed(patterns) + return { operations: done, seconds: Math.round(ms / 100) / 10, perSecond: ms ? Math.round(done * 10000 / ms) / 10 : 0, + patternChanges: changes, patternChangesPerMinute: ms ? Math.round(changes * 600000 / ms) / 10 : 0, + healthMs: { median: at(0.5), p95: at(0.95), most: sorted.at(-1) ?? null }, cpuMost: cpu.length ? Math.max(...cpu) : null } +} + +// ---- input and output: the device session and the MIDI bridge ---- + +const wait = ms => new Promise(r => setTimeout(r, ms)) + +/** One line to `device.mjs serve` and its whole reply (one request per connection), or 'error: ...' after ms. */ +export function request(socket, line, ms = 25000) { + return new Promise(done => { + let out = '', timer + const c = createConnection(socket, () => c.write(line + '\n')) + const end = text => { clearTimeout(timer); c.destroy(); done(text) } + timer = setTimeout(() => end('error: no reply within ' + ms + ' ms'), ms) + c.setEncoding('utf8').on('data', d => { out += d }).on('end', () => end(out)).on('error', e => end('error: ' + e.message)) + }) +} + +/** A kept connection to octatrack-midi-bridge.py: send(hexWords) resolves with its 'ok' or rejects with its error. */ +function bridge(address) { + const [host, port] = address.includes(':') ? [address.slice(0, address.lastIndexOf(':')), Number(address.slice(address.lastIndexOf(':') + 1))] : ['127.0.0.1', Number(address)] + const c = createConnection({ host, port }), waiting = [] + let buffer = '' + c.setNoDelay(true) + c.setEncoding('utf8').on('data', d => { + buffer += d + for (let n; (n = buffer.indexOf('\n')) >= 0; buffer = buffer.slice(n + 1)) { + const line = buffer.slice(0, n), w = waiting.shift() + if (!w) continue + if (line.startsWith('ok')) w.resolve(line) + else w.reject(new Error(line)) + } + }) + const opened = new Promise((resolve, reject) => { c.once('connect', resolve); c.once('error', reject) }) + c.on('error', e => { for (const w of waiting.splice(0)) w.reject(e) }) + return { + opened, + send: words => new Promise((resolve, reject) => { waiting.push({ resolve, reject }); c.write(words + '\n') }), + close: () => c.end(), + } +} + +/** Plays ops (from the run's start) against the unit, judging health after each; stops at the first failure. */ +async function play(run, { socket, midi, until = run.ops.length, settleMs = 2000, log = () => {} }) { + const judge = monitor(), reads = [], cpu = [], patterns = [], ops = run.ops.slice(0, until) + const health = async () => { + const t0 = Date.now(), h = readHealth(await request(socket, 'health', 5000)); reads.push(Date.now() - t0) + if (h.cpu !== undefined) cpu.push(h.cpu) + if (h.pattern) patterns.push(h.pattern) + return h + } + let failure = judge(await health(), Date.now()) + if (failure) return { failure: { at: -1, ...failure }, summary: summarize({ done: 0, ms: 0, reads, cpu, patterns }) } + const start = Date.now() + let done = 0 + for (const op of ops) { + const lag = start + op.t - Date.now() + if (lag > 0) await wait(lag) + try { + let prev = 0 + for (const [ms, words] of op.send) { if (ms > prev) await wait(ms - prev); prev = ms; await midi.send(words) } + } catch (error) { failure = { at: op.i, reason: 'midi', detail: error.message }; break } + done++ + const v = judge(await health(), Date.now()) + if (v) { failure = { at: op.i, ...v }; break } + if (op.i % 200 === 0) log(` ${op.i}/${ops.length} ${op.note}`) + } + // The last operation's effect can show a little later: keep reading for settleMs with nothing sent. + for (const end = Date.now() + settleMs; !failure && Date.now() < end; await wait(100)) { + const v = judge(await health(), Date.now()) + if (v) failure = { at: ops.at(-1)?.i ?? -1, after: true, ...v } + } + return { failure, summary: summarize({ done, ms: Date.now() - start, reads, cpu, patterns }) } +} + +/** Reads the unit's own records of what went wrong: the stall and crash records and the diagnostics log. */ +async function evidence(socket) { + const out = {} + for (const step of ['stall', 'crash', 'diaglog']) out[step] = (await request(socket, step, 20000)).trim() + return out +} + +/** RAM-boots DIR through the session (which exits and is restarted by its loop), then waits until health answers + * and the base has let go of the panel (status.c holds it 25 s after a RAM boot). */ +async function reset(socket, dir, holdMs) { + await request(socket, 'boot ' + dir, 400000) + for (const end = Date.now() + 120000; Date.now() < end; await wait(1000)) { + if (!readHealth(await request(socket, 'health', 5000)).error) { await wait(holdMs); return } + } + throw new Error('The session did not answer within 120 s of the RAM boot: is serve running in its loop? A power cycle may be needed.') +} + +if (process.argv[1] && resolve(process.argv[1]) === fileURLToPath(import.meta.url)) { + const { values } = parseArgs({ options: { + seconds: { type: 'string', default: '180' }, rate: { type: 'string', default: '20' }, seed: { type: 'string' }, + profile: { type: 'string', default: 'mix' }, programs: { type: 'string', default: '0-3' }, + 'pc-channel': { type: 'string', default: '1' }, 'auto-channel': { type: 'string', default: '1' }, + midi: { type: 'string', default: '127.0.0.1:47812' }, log: { type: 'string' }, replay: { type: 'string' }, until: { type: 'string' }, + shrink: { type: 'boolean' }, reset: { type: 'string' }, hold: { type: 'string', default: '26' }, settle: { type: 'string', default: '2' }, + } }) + const socket = process.env.MODWERK_DEV_SOCKET ?? '/tmp/modwerk-dev.sock' + const usage = 'Usage: octatrack-soak.mjs [--seconds 1-3600] [--rate 1-100] [--seed N] [--profile ' + Object.keys(PROFILES).join('|') + '] [--programs 0-3] ' + + '[--pc-channel 1-16] [--auto-channel 1-16] [--midi HOST:PORT] [--log FILE]\n octatrack-soak.mjs --replay FILE [--until N] [--shrink --reset BUILD_DIR [--hold S]]' + const num = (v, lo, hi) => { const n = Number(v); if (!Number.isFinite(n) || n < lo || n > hi) { console.error(usage); process.exit(2) } return n } + if (values.shrink && !values.replay) { console.error('--shrink needs --replay FILE (a failed run\'s log).'); process.exit(2) } + if (values.shrink && !(values.reset && existsSync(join(values.reset, 'MAIN.raw')))) { console.error('--shrink needs --reset BUILD_DIR, a development twin to RAM-boot before each replay.'); process.exit(2) } + + const run = values.replay ? JSON.parse(readFileSync(values.replay, 'utf8')).run : generate({ + seed: values.seed !== undefined ? num(values.seed, 0, 2 ** 32 - 1) : Math.floor(Math.random() * 2 ** 31), + seconds: num(values.seconds, 1, 3600), rate: num(values.rate, 1, 100), profile: values.profile, programs: parsePrograms(values.programs), + pcChannel: num(values['pc-channel'], 1, 16), autoChannel: num(values['auto-channel'], 1, 16) }) + const logFile = values.log ?? (values.replay ? values.replay.replace(/\.json$/, '') + (values.shrink ? '.shrink.json' : '.replay.json') : `soak-${run.seed}.json`) + const until = values.until !== undefined ? num(values.until, 1, run.ops.length) : run.ops.length + const midi = bridge(values.midi) + try { await midi.opened } catch (error) { console.error(`No MIDI bridge on ${values.midi} (${error.message}): start scripts/octatrack-midi-bridge.py on the computer the unit is plugged into.`); process.exit(1) } + const options = { socket, midi, settleMs: 1000 * num(values.settle, 0, 60), log: line => console.log(line) } + console.log(`soak: seed ${run.seed}, profile ${run.profile}, ${until} operations at ${run.rate} a second, log ${logFile}`) + + let result + if (values.shrink) { + const failedAt = JSON.parse(readFileSync(values.replay, 'utf8')).failure?.at + const count = Number.isInteger(failedAt) && failedAt >= 0 ? Math.min(until, failedAt + 1) : until + const tries = [] + const fails = async n => { + await reset(socket, values.reset, 1000 * num(values.hold, 0, 120)) + const r = await play(run, { ...options, until: n }) + tries.push({ n, failure: r.failure }); console.log(JSON.stringify({ n, failure: r.failure })) + return !!r.failure + } + if (!await fails(count)) result = { status: 'not reproduced', tries, note: `the first ${count} operations ran clean after a fresh RAM boot` } + else { const n = await shrink(count, fails); result = { status: 'shrunk', shortest: n, last: run.ops.slice(Math.max(0, n - 5), n), tries } } + } else { + const r = await play(run, { ...options, until }) + result = { status: r.failure ? 'failed' : 'passed', failure: r.failure, summary: r.summary } + if (r.failure) { + result.operation = run.ops[r.failure.at] ?? null + if (r.failure.reason !== 'link') result.evidence = await evidence(socket) + } + } + midi.close() + writeFileSync(logFile, JSON.stringify({ run, ...result, failure: result.failure }, null, 1) + '\n') + console.log(JSON.stringify({ status: result.status, failure: result.failure, shortest: result.shortest, summary: result.summary })) + if (result.status === 'failed') console.error(`Failed at operation ${result.failure.at} (${result.failure.reason}). Replay: node scripts/octatrack-soak.mjs --replay ${logFile} ; shortest prefix: add --shrink --reset BUILD_DIR.`) + process.exit(result.status === 'passed' || result.status === 'shrunk' ? 0 : 1) +} diff --git a/scripts/octatrack-soak.test.mjs b/scripts/octatrack-soak.test.mjs new file mode 100644 index 0000000000..a647f5b78a --- /dev/null +++ b/scripts/octatrack-soak.test.mjs @@ -0,0 +1,90 @@ +import { describe, expect, it } from 'vitest' +import { PROFILES, generate, landed, monitor, parsePrograms, random, readHealth, shrink, summarize } from './octatrack-soak.mjs' + +describe('fast soak', () => { + it('makes the same run from the same seed, and a different one from another', () => { + const a = generate({ seed: 3401, seconds: 30, rate: 20 }), b = generate({ seed: 3401, seconds: 30, rate: 20 }) + expect(a).toEqual(b) + expect(a.ops).toHaveLength(600) + expect(generate({ seed: 3402, seconds: 30, rate: 20 }).ops).not.toEqual(a.ops) + expect(random(1)()).toBe(random(1)()) + }) + it('paces operations at the rate and keeps every message a short MIDI message', () => { + const run = generate({ seed: 7, seconds: 10, rate: 25, programs: [0, 5, 16] }) + expect(run.ops.map(o => o.t).slice(0, 4)).toEqual([0, 40, 80, 120]) + for (const op of run.ops) { + expect(op.send.length).toBeGreaterThan(0) + for (const [ms, words] of op.send) { + expect(ms).toBeGreaterThanOrEqual(0) + expect(words).toMatch(/^(?:[89a-f][0-9a-f])(?:[0-7][0-9a-f]){0,2}$/) // status byte, then data bytes under 0x80 + } + if (op.op === 'pc' || op.op === 'burst') for (const [, words] of op.send) expect([0, 5, 16]).toContain(parseInt(words.slice(2), 16)) + } + }) + it('weights transitions most in mix and stays within the profile', () => { + const counts = {} + for (const op of generate({ seed: 11, seconds: 100, rate: 20 }).ops) counts[op.op] = (counts[op.op] ?? 0) + 1 + const transitions = (counts.pc ?? 0) + (counts.burst ?? 0) + (counts.startstop ?? 0) + (counts.start ?? 0) + (counts.stop ?? 0) + expect(transitions / 2000).toBeGreaterThan(0.45) + expect(Object.keys(counts).every(k => k in PROFILES.mix)).toBe(true) + const pcOnly = generate({ seed: 11, seconds: 20, rate: 20, profile: 'pc' }).ops + expect(pcOnly.every(o => o.op in PROFILES.pc)).toBe(true) + expect(() => generate({ seed: 1, profile: 'none' })).toThrow(/Unknown profile/) + }) + it('sends program changes on the program channel and the crossfader on the auto channel', () => { + const run = generate({ seed: 5, seconds: 50, rate: 20, pcChannel: 11, autoChannel: 11 }) + const pc = run.ops.find(o => o.op === 'pc'), xf = run.ops.find(o => o.op === 'xfade') + expect(pc.send[0][1].slice(0, 2)).toBe('ca') + expect(xf.send[0][1].slice(0, 4)).toBe('ba30') + }) + it('reads program lists', () => { + expect(parsePrograms('0-3')).toEqual([0, 1, 2, 3]) + expect(parsePrograms('0-1, 16,16')).toEqual([0, 1, 16]) + expect(() => parsePrograms('3-1')).toThrow() + expect(() => parsePrograms('0-128')).toThrow() + expect(() => parsePrograms('A1')).toThrow() + }) + it('reads the health line, and an error as an error', () => { + const h = { frames: 10, stalls: 0, errors: 0, ticks: 5, cpu: 40, crash: 2, stall: 1, playing: true } + expect(readHealth('serving\n' + JSON.stringify({ health: h }) + '\n')).toEqual(h) + expect(readHealth('error: This base does not answer development requests: build it with --dev.\n')).toEqual({ error: 'error: This base does not answer development requests: build it with --dev.' }) + expect(readHealth('')).toEqual({ error: 'no answer' }) + }) + it('judges health: records and counters must not move, frames and ticks must', () => { + const base = { frames: 100, stalls: 0, errors: 0, ticks: 50, cpu: 40, crash: 3, stall: 1, playing: true } + const step = (h, k) => ({ ...h, frames: h.frames + k, ticks: h.ticks + k }) + let judge = monitor() + expect(judge(base, 0)).toBeNull() + expect(judge(step(base, 1), 50)).toBeNull() + expect(judge({ ...step(base, 2), crash: 4 }, 100)).toMatchObject({ reason: 'crash' }) // an earlier crash (3) is not this run's + judge = monitor(); judge(base, 0) + expect(judge({ ...step(base, 1), stall: 2 }, 50)).toMatchObject({ reason: 'stall' }) + judge = monitor(); judge(base, 0) + expect(judge({ ...step(base, 1), stalls: 1 }, 50)).toMatchObject({ reason: 'stall' }) + judge = monitor(); judge(base, 0) + expect(judge({ ...step(base, 1), errors: 2 }, 50)).toMatchObject({ reason: 'loader errors' }) + judge = monitor({ framesStillMs: 600 }); judge(base, 0) + expect(judge({ ...base, ticks: 51 }, 300)).toBeNull() // still frames, not yet long enough + expect(judge({ ...base, ticks: 52 }, 650)).toMatchObject({ reason: 'frames stopped' }) + judge = monitor({ ticksStillMs: 1500 }); judge(base, 0) + expect(judge({ ...base, frames: 101 }, 1000)).toBeNull() + expect(judge({ ...base, frames: 102 }, 1600)).toMatchObject({ reason: 'frozen' }) + judge = monitor(); judge(base, 0) + expect(judge({ error: 'error: no reply within 5000 ms' }, 10)).toMatchObject({ reason: 'link' }) + }) + it('finds the shortest failing prefix by halving', async () => { + const tried = [] + const fails = threshold => async n => { tried.push(n); return n >= threshold } + expect(await shrink(2205, fails(1301))).toBe(1301) + expect(tried.length).toBeLessThanOrEqual(12) + expect(await shrink(1, fails(1))).toBe(1) + expect(await shrink(10, fails(1))).toBe(1) + }) + it('summarizes pace, landed pattern changes and health-read times', () => { + const patterns = [[0, 0, 0, 0], [0, 0, 0, 2], [0, 2, 0, 2], [0, 2, 0, 2], [1, 0, 1, 0], [1, 0, 1, 0]] // a queue alone is no change + expect(landed(patterns)).toBe(2) + expect(summarize({ done: 600, ms: 30000, reads: [4, 6, 5, 30, 5], cpu: [40, 61, 55], patterns })).toEqual({ + operations: 600, seconds: 30, perSecond: 20, patternChanges: 2, patternChangesPerMinute: 4, healthMs: { median: 5, p95: 30, most: 30 }, cpuMost: 61 }) + expect(summarize({ done: 0, ms: 0, reads: [], cpu: [] })).toMatchObject({ perSecond: 0, patternChanges: 0, healthMs: { median: null }, cpuMost: null }) + }) +}) From 3bd89ad73228cc201a593fc0db6a55a5c59e8a60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Thu, 19 Nov 2026 14:01:36 +0100 Subject: [PATCH 105/415] Faster reads on the unit, and the MIDI bridge on port 50124 serve waited 60 ms after every step, reads included: a health read cost 80 ms, 60 of them that pause. Read-only steps (health, state, stats, ui, mem: and the like) skip it now: health 20 ms, state 3 ms over the Windows bridge, measured on an MKII on 19 November 2026. Steps that press, turn or change still wait. The MIDI bridge moves from port 47812, which refused the bind on a Windows host with WSL mirrored networking, to 50124 beside the USB bridge. Co-Authored-By: Claude Opus 5.5 --- changelog/2026-11-19-fast-unit-soak.md | 2 +- docs/OCTATRACK_DRIVING.md | 7 +++++-- scripts/device.mjs | 5 ++++- scripts/octatrack-midi-bridge.py | 2 +- scripts/octatrack-soak.mjs | 4 ++-- 5 files changed, 13 insertions(+), 7 deletions(-) diff --git a/changelog/2026-11-19-fast-unit-soak.md b/changelog/2026-11-19-fast-unit-soak.md index f047d5c0b9..d71a5d97ac 100644 --- a/changelog/2026-11-19-fast-unit-soak.md +++ b/changelog/2026-11-19-fast-unit-soak.md @@ -1 +1 @@ -Development: `scripts/octatrack-soak.mjs` plays a seeded run of USB MIDI at an Octatrack (program changes, START and STOP, scenes, the crossfader, mutes and FX knobs, about 20 a second), reads the new `health` step after every operation, stops at the first crash, stall, loader error or freeze with the unit's records in its log, replays a run, and shrinks a failure to its shortest prefix. `scripts/octatrack-midi-bridge.py` sends the MIDI from the computer the unit is plugged into. +Development: `scripts/octatrack-soak.mjs` plays a seeded run of USB MIDI at an Octatrack (program changes, START and STOP, scenes, the crossfader, mutes and FX knobs, about 20 a second), reads the new `health` step after every operation, stops at the first crash, stall, loader error or freeze with the unit's records in its log, replays a run, and shrinks a failure to its shortest prefix. `scripts/octatrack-midi-bridge.py` sends the MIDI from the computer the unit is plugged into. Reads through `npm run device -- serve` no longer wait 60 ms after each step, so `health` costs 20 ms instead of 80 and `state` 3 instead of 65. diff --git a/docs/OCTATRACK_DRIVING.md b/docs/OCTATRACK_DRIVING.md index 69d46dbf56..a82f861f5f 100644 --- a/docs/OCTATRACK_DRIVING.md +++ b/docs/OCTATRACK_DRIVING.md @@ -128,7 +128,9 @@ scripts/device-send.py 'part2 pick:T1:FX2:E-Verb stats' perl -e 'alarm 10; exec @ARGV' scripts/device-send.py ui # with a time limit ``` -One line, steps separated by spaces, the reply printed. A request has a 20 s limit; the session answers an +One line, steps separated by spaces, the reply printed. After each step that presses, turns or changes something +the session waits 60 ms; after a read (`health`, `state`, `stats`, `ui`, `mem:`, `crash`, `stall` and the like) it +does not, so a read costs a few milliseconds (`state` 3 ms, `health` 20 ms over the Windows bridge, 19 November 2026). A request has a 20 s limit; the session answers an error and moves on. macOS `nc -U` hangs up before the reply, so use the script. | Step | What it does | @@ -176,7 +178,8 @@ every operation, so `--replay LOG [--until N]` plays the same run again. The def second, about as many operations as an hour at a player's pace. - MIDI goes through `scripts/octatrack-midi-bridge.py` on the computer the unit is plugged into (on Windows the device - venv's Python, through winmm; port 47812). Start it before the run and stop it after: while it runs it holds the + venv's Python, through winmm; port 50124, beside the USB bridge's: on a Windows host with WSL's mirrored + networking 47812 refused the bind, 19 November 2026). Start it before the run and stop it after: while it runs it holds the unit's MIDI port. - The project: track channels 1-8, PROG CH RECEIVE on the channel `--pc-channel` names (default 1), CC and transport receive on, effects of the modules under test on the Parts that `--programs` reaches. A program change while playing diff --git a/scripts/device.mjs b/scripts/device.mjs index 31cba17948..2311b9dc84 100644 --- a/scripts/device.mjs +++ b/scripts/device.mjs @@ -339,6 +339,9 @@ async function missing() { * profile, profile:N (development bases: each UI tick hook's µs over N seconds, from the symbols of the build `boot` started) * health (development bases: one JSON line of DSP frames, loader stalls and errors, ticks, CPU, crash and stall record counts; scripts/octatrack-soak.mjs) * (spaces in NAME as _; it waits until the track runs it). */ +/** Steps that only read: run() leaves out the 60 ms it puts after every other step (a health read cost 80 ms, 60 of + * them this pause). Not `gap`, `guard` or `cpu`: their reads restart a window or can set a value. */ +export const READ_ONLY = /^(health|state|stats|ui|loader|crash|stall|saved|inventory|missing|screen|png:\S+|mem:0x[0-9a-f]+:\d+)$/i async function run(sequence, until = Infinity) { // serve: past its time limit a sequence stops before its next step for (const step of sequence.trim().split(/\s+/)) { if (Date.now() > until) throw new Error('stopped at the time limit before ' + step) @@ -493,7 +496,7 @@ async function run(sequence, until = Infinity) { // serve: past its time limit a } else if (step === 'stats') { const w = await statusWords(); console.log(`stats cpu ${w(66)} T1-4 ${w(69)}/${w(70)} T5-8 ${w(67)}/${w(68)} passes ${(w(76) / 1024).toFixed(1)} ${(w(77) / 1024).toFixed(1)}`) } else { const [, spec, times] = /^(.+?)(?:\*(\d+))?$/.exec(step); for (let i = 0; i < Number(times ?? 1); i++) await keys(spec) } - await wait(60) + if (!READ_ONLY.test(step)) await wait(60) // room between presses and changes; a read changes nothing, so it needs none } } const state = s => `${s.phase}, generation ${s.generation}, active ${s.active?.slice(0, 16) ?? 'unknown'}…` diff --git a/scripts/octatrack-midi-bridge.py b/scripts/octatrack-midi-bridge.py index 6aefdcfb7c..744695f834 100644 --- a/scripts/octatrack-midi-bridge.py +++ b/scripts/octatrack-midi-bridge.py @@ -82,7 +82,7 @@ def output(name): def main(): ap = argparse.ArgumentParser() - ap.add_argument('port', nargs='?', type=int, default=47812) + ap.add_argument('port', nargs='?', type=int, default=50124) ap.add_argument('--name', default='Octatrack') ap.add_argument('--list', action='store_true') a = ap.parse_args() diff --git a/scripts/octatrack-soak.mjs b/scripts/octatrack-soak.mjs index 1ed4fc04bb..64a861afd1 100644 --- a/scripts/octatrack-soak.mjs +++ b/scripts/octatrack-soak.mjs @@ -10,7 +10,7 @@ // // Needs `npm run device -- serve` (in its loop) on a development base, which answers the `health` step // (MODWERK_DEV_SOCKET, default /tmp/modwerk-dev.sock), and scripts/octatrack-midi-bridge.py on the computer the unit is -// plugged into (--midi HOST:PORT, default 127.0.0.1:47812). The project's MIDI settings: track channels 1-8 (stock's +// plugged into (--midi HOST:PORT, default 127.0.0.1:50124). The project's MIDI settings: track channels 1-8 (stock's // default), PROG CH RECEIVE on the channel --pc-channel names, CC and transport receive on. A program change while // playing lands at the pattern's end, so short patterns at a high tempo give the most transitions a minute // (docs/OCTATRACK_DRIVING.md, "A fast soak"). Nothing is installed, kept or flashed; --shrink RAM-boots DIR (a @@ -240,7 +240,7 @@ if (process.argv[1] && resolve(process.argv[1]) === fileURLToPath(import.meta.ur seconds: { type: 'string', default: '180' }, rate: { type: 'string', default: '20' }, seed: { type: 'string' }, profile: { type: 'string', default: 'mix' }, programs: { type: 'string', default: '0-3' }, 'pc-channel': { type: 'string', default: '1' }, 'auto-channel': { type: 'string', default: '1' }, - midi: { type: 'string', default: '127.0.0.1:47812' }, log: { type: 'string' }, replay: { type: 'string' }, until: { type: 'string' }, + midi: { type: 'string', default: '127.0.0.1:50124' }, log: { type: 'string' }, replay: { type: 'string' }, until: { type: 'string' }, shrink: { type: 'boolean' }, reset: { type: 'string' }, hold: { type: 'string', default: '26' }, settle: { type: 'string', default: '2' }, } }) const socket = process.env.MODWERK_DEV_SOCKET ?? '/tmp/modwerk-dev.sock' From db0765994e7ae71dc0298647c0fb1ac9c287d7cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Thu, 19 Nov 2026 16:39:20 +0100 Subject: [PATCH 106/415] Fit local check stages to available memory --- changelog/2026-11-19-local-check-memory.md | 1 + docs/DEVELOPER_WORKFLOW.md | 2 +- scripts/check.mjs | 22 +++++++++++++++++----- scripts/machine-slots.mjs | 5 +++++ scripts/machine-slots.test.mjs | 9 ++++++++- 5 files changed, 32 insertions(+), 7 deletions(-) create mode 100644 changelog/2026-11-19-local-check-memory.md diff --git a/changelog/2026-11-19-local-check-memory.md b/changelog/2026-11-19-local-check-memory.md new file mode 100644 index 0000000000..9b874bae50 --- /dev/null +++ b/changelog/2026-11-19-local-check-memory.md @@ -0,0 +1 @@ +On a busy computer, the local check runs lint, the build and the test suites one at a time when they would exceed available memory. Machines with enough available memory still run them together. diff --git a/docs/DEVELOPER_WORKFLOW.md b/docs/DEVELOPER_WORKFLOW.md index ea5607cee7..205881b118 100644 --- a/docs/DEVELOPER_WORKFLOW.md +++ b/docs/DEVELOPER_WORKFLOW.md @@ -34,7 +34,7 @@ For a Modwerk Octatrack base, use [the adapted emulator builder](../scripts/octa ## Make it mergeable -Keep source worktrees in a persistent location, not `/tmp`, which a restart can clear with uncommitted work. Reuse a few lanes instead of a new worktree per task: `npm run lane -- --branch ` makes one in the ignored `.claude/worktrees/`, or resets a clean one to current `main`, and borrows `node_modules` from a worktree with the same install as hard links. A worktree made by hand with a linked `node_modules` needs `npm run prepare` once (the generated mirrors and tables; without it `octatrack:module-packages` stops at "No FX page"), and Python run without `-B` leaves `__pycache__` folders that fail the import check. `npm run lane -- prune --all` lists the worktrees whose work is all pushed (`--yes` removes them). `npm run check`, `pr:ready` and `sdk:check` share the computer: each takes a slot first (one per 6 GB of memory and 4 cores; `npm run slots` shows who holds them, `MODWERK_SLOTS` sets the number) and fits its workers to the free memory, so worktrees and agent sessions queue instead of running out of memory together. +Keep source worktrees in a persistent location, not `/tmp`, which a restart can clear with uncommitted work. Reuse a few lanes instead of a new worktree per task: `npm run lane -- --branch ` makes one in the ignored `.claude/worktrees/`, or resets a clean one to current `main`, and borrows `node_modules` from a worktree with the same install as hard links. A worktree made by hand with a linked `node_modules` needs `npm run prepare` once (the generated mirrors and tables; without it `octatrack:module-packages` stops at "No FX page"), and Python run without `-B` leaves `__pycache__` folders that fail the import check. `npm run lane -- prune --all` lists the worktrees whose work is all pushed (`--yes` removes them). `npm run check`, `pr:ready` and `sdk:check` share slots across worktrees (one per 6 GB and four cores, `MODWERK_SLOTS` overrides). `npm run slots` lists holders and waiters. Each check sizes its workers to free RAM and runs lint, build and tests in sequence when they cannot fit together. Submit only what the owner can merge as it is, and what the bot merges on its own for an author update. Run this before every push, and again after you merge `main`: diff --git a/scripts/check.mjs b/scripts/check.mjs index 552148d25f..41b7d3e670 100644 --- a/scripts/check.mjs +++ b/scripts/check.mjs @@ -6,7 +6,7 @@ import { checkBaseSize } from './base-size.mjs' import { readChangeScope } from './change-scope.mjs' import { checkChangelog } from './changelog.mjs' import { checkDocs } from './docs.mjs' -import { takeSlot, workersFor } from './machine-slots.mjs' +import { appStagesFit, takeSlot, vitestWorkerBytes, workersFor } from './machine-slots.mjs' import { checkModuleChangelogs } from './module-changelogs.mjs' import { moduleScopeProblems } from './pr-ready.mjs' @@ -69,7 +69,7 @@ async function build() { return await run('typecheck') && await run('build:bundle') } -process.env.MODWERK_TEST_WORKERS ??= String(workersFor({ most: 4, each: 700 * 1024 ** 2, keep: 2 * 1024 ** 3 })) +process.env.MODWERK_TEST_WORKERS ??= String(workersFor({ most: 4, each: vitestWorkerBytes, keep: 2 * 1024 ** 3 })) const baseIndex = process.argv.indexOf('--base'), base = baseIndex < 0 ? null : process.argv[baseIndex + 1] if (baseIndex >= 0 && !base) throw new Error('--base requires a Git commit/ref') // CI runs one check as parallel jobs (module-pr.yml): --part contract is everything but the two long suites, --part test:1/2 @@ -150,12 +150,24 @@ const DRAFT_DOCTOR = ['scripts/module-doctor.test.mjs', '-t', 'checks a draft wh if (passed && !documentationOnly) { const tests = (args = []) => run('test', args, { MODWERK_DEFER_DRAFT_DOCTOR: '1' }) const sdk = () => sdkSuite ? run('sdk:check') : skip('sdk:check', 'no changed path reaches it') + async function appChecks() { + const steps = [() => run('lint'), build] + // The SDK runs after Vitest even if a test failed so the check reports both suites' results. + if (!part) steps.push(async () => { + const tested = await tests() + const sdkPassed = await sdk() + return tested && sdkPassed + }) + if (!process.env.CI && !appStagesFit(part ? 0 : Number(process.env.MODWERK_TEST_WORKERS))) { + console.log('Running the app check stages one at a time to fit available memory.') + return all(...steps) + } + return (await Promise.all(steps.map(step => step()))).every(Boolean) + } const results = buildOnly ? [await build()] : part === 'sdk' ? [await run('sdk:check')] : suiteOnly ? [await tests(['--shard=' + part.slice(5)])] - // The SDK suite starts once the app tests are done, whatever their result: its processes beside Vitest's workers starved - // Vitest's five-second tests. - : await Promise.all([run('lint'), part || tests().then(async tested => await sdk() && tested), build()]) + : [await appChecks()] if (!buildOnly && !suiteOnly) results.push(await run('test', DRAFT_DOCTOR)) passed = results.every(Boolean) && !interrupted } diff --git a/scripts/machine-slots.mjs b/scripts/machine-slots.mjs index eadcacedfa..53a9bc1714 100644 --- a/scripts/machine-slots.mjs +++ b/scripts/machine-slots.mjs @@ -44,6 +44,11 @@ export function workersFor({ most, each, keep = GB, available = availableMemory( return Math.max(1, Math.min(most, cores, Math.floor((available - keep) / each))) } +// Lint and typecheck peaked at 1.1 and 1.3 GiB on a busy WSL host. Reserve room for their children and the system +// before running them alongside Vitest, using the same per-worker estimate as the check runner. +export const vitestWorkerBytes = 700 * MB +export const appStagesFit = (workers, available = availableMemory()) => available >= 4 * GB + workers * vitestWorkerBytes + /** The slot directory, shared by every worktree of this clone (it lives in the clone's common Git directory). */ export function slotDirectory(cwd = process.cwd()) { try { diff --git a/scripts/machine-slots.test.mjs b/scripts/machine-slots.test.mjs index 07e8a2dd9a..fafaa7bb0b 100644 --- a/scripts/machine-slots.test.mjs +++ b/scripts/machine-slots.test.mjs @@ -3,7 +3,7 @@ import { mkdirSync, mkdtempSync, rmSync, utimesSync, writeFileSync } from 'node: import { tmpdir } from 'node:os' import { join } from 'node:path' import { describe, expect, it } from 'vitest' -import { availableMemory, holders, slotCount, slotDirectory, takeSlot, workersFor } from './machine-slots.mjs' +import { appStagesFit, availableMemory, holders, slotCount, slotDirectory, takeSlot, vitestWorkerBytes, workersFor } from './machine-slots.mjs' const GB = 1024 ** 3 const goneProcess = () => Number(spawnSync(process.execPath, ['-e', 'process.stdout.write(String(process.pid))'], { encoding: 'utf8' }).stdout) @@ -29,6 +29,13 @@ describe('machine slots', () => { expect(workersFor({ most: 4, each: GB, keep: GB, available: 64 * GB, cores: 2 })).toBe(2) }) + it('budgets for lint, the build and each simultaneous test worker', () => { + expect(appStagesFit(1, 3 * GB)).toBe(false) + expect(appStagesFit(2, 4 * GB + vitestWorkerBytes)).toBe(false) + expect(appStagesFit(2, 4 * GB + 2 * vitestWorkerBytes)).toBe(true) + expect(appStagesFit(0, 4 * GB)).toBe(true) + }) + it('makes a second check wait until the first is done', async () => { const directory = mkdtempSync(join(tmpdir(), 'slots-')), env = { MODWERK_SLOTS: '1' } const release = await takeSlot('first', { directory, env, ...quiet }) From 9079e43af473f7e7e99cda804339fc8606432c2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Thu, 19 Nov 2026 10:18:51 +0100 Subject: [PATCH 107/415] Improvement: import octabam's DSP cycle scan (pipeline stalls on the executed path) tools/build/interlock_scan.py and the dsp_host -steptrace change from sambanks/octabam cc7cffc1 (#1169), with docs/CYCLE_SCAN.md, under sdk/octabam and an import record. It runs an effect's proc under dsp_host and prices the executed instructions with the DSP56300 manual's cycles (Table A-1) and stalls (A.2, 3.5), naming the sites that stall. One local adaptation: Modwerk has no SEND module (FX2 id 0x09 is LOFI2's), so the scratch image is the module beside the stock effects with no fallback, as the modules' perf.py build theirs. Co-Authored-By: Claude Opus 5.5 --- changelog/2026-11-19-octabam-cycle-scan.md | 1 + docs/OCTABAM_INFRASTRUCTURE.md | 18 + sdk/cycle-scan/CYCLE_SCAN.md | 723 +++++++++ sdk/cycle-scan/README.md | 27 + sdk/cycle-scan/build-tools.sh | 19 + sdk/cycle-scan/dsp_host.cpp | 1535 ++++++++++++++++++ sdk/cycle-scan/interlock_scan.py | 846 ++++++++++ sdk/imports/octabam-cycle-scan-cc7cffc1.json | 28 + sdk/tests/test_infrastructure_regressions.py | 30 + 9 files changed, 3227 insertions(+) create mode 100644 changelog/2026-11-19-octabam-cycle-scan.md create mode 100644 sdk/cycle-scan/CYCLE_SCAN.md create mode 100644 sdk/cycle-scan/README.md create mode 100755 sdk/cycle-scan/build-tools.sh create mode 100644 sdk/cycle-scan/dsp_host.cpp create mode 100644 sdk/cycle-scan/interlock_scan.py create mode 100644 sdk/imports/octabam-cycle-scan-cc7cffc1.json diff --git a/changelog/2026-11-19-octabam-cycle-scan.md b/changelog/2026-11-19-octabam-cycle-scan.md new file mode 100644 index 0000000000..318aaba06b --- /dev/null +++ b/changelog/2026-11-19-octabam-cycle-scan.md @@ -0,0 +1 @@ +SDK: octabam's cycle scan is imported at `cc7cffc1` into `sdk/cycle-scan/`. It prices the path an Octatrack DSP effect executes with the DSP56300 manual's instruction cycles and pipeline stalls and names the sites that stall, for Modwerk's modules and the stock effects. It sits outside the module-source fingerprint, so no module package needs a rebuild. diff --git a/docs/OCTABAM_INFRASTRUCTURE.md b/docs/OCTABAM_INFRASTRUCTURE.md index c864ddf5fb..6c47b16c6b 100644 --- a/docs/OCTABAM_INFRASTRUCTURE.md +++ b/docs/OCTABAM_INFRASTRUCTURE.md @@ -65,3 +65,21 @@ Review: none of the four carries a hex string of 8 bytes or more found in the or ## Tenth import: docs (octabam `f7d72906`, 11 November 2026) [The tenth record](../sdk/imports/octabam-docs-f7d72906.json) pins the newer `docs/TRAPS.md` (three entries: a call into stock returns with a0, a1, d0 and d1 changed; a held scene key writes stock's scene-lock handler into every encoder slot, so a page editor's hook never sees the turn; bit 31 of the stock icon blit's column is the bottom row) and `docs/FAILURE_MODES.md` (the demand loader's 8 and 9 November soak beside STEM REC, with a freeze while two frame-interrupt waits have no time limit) to `f7d72906`, byte for byte; HARDWARE_MATRIX.md and MIDI_TRACKS.md stay pinned by the earlier records. The entries that reach Modwerk are in [OCTATRACK_HARDWARE_TRAPS.md](OCTATRACK_HARDWARE_TRAPS.md#octabams-register) and the scene one in [the scenes guide](module-guides/scenes.md#test). Same review: no 8-byte hex window found in `MAIN.raw`, no instruction listing. The developer tools pin in `sdk/upstream-tools.json` moves to the same commit in this pull request. + +## Eleventh import: the cycle scan (octabam `cc7cffc1`, 19 November 2026) + +[The eleventh record](../sdk/imports/octabam-cycle-scan-cc7cffc1.json) takes octabam's cycle scan (#1169) into +[`sdk/cycle-scan/`](../sdk/cycle-scan/README.md): `interlock_scan.py`, which runs an effect's proc under `dsp_host` and +prices the executed path with the DSP56300 manual's instruction cycles (Table A-1) and pipeline stalls (sections A.2 +and 3.5), upstream's `dsp_host.cpp` with `-steptrace` (a host-stepped core, so a DO loop's body shows in the trace) and +`CYCLE_SCAN.md`, upstream's results and how they compare with its unit (3.0 % above it on average over 38 settings of +22 effects). + +It sits outside `sdk/octabam` on purpose: `sdk/octabam/tools` is part of the module-source fingerprint +(`scripts/module-source.mjs`), and no compiler reads these files, so they must not make every module package count as +rebuilt. The harness's `dsp_host.cpp` stays the second import's; `sdk/cycle-scan/build-tools.sh` stages upstream's copy +over the vendor tree's when it builds the scan's tools. Two adaptations, both in the scanner and both recorded: it finds +the octabam tree at `sdk/octabam` (`OCTABAM_ROOT` overrides), and, since Modwerk has no SEND module (FX2 id 0x09 is +LOFI2's), its scratch image is the module beside the stock effects with no fallback, as the modules' own `perf.py` +build theirs. How to run it: [its README](../sdk/cycle-scan/README.md). It is a model, not a measurement: the unit stays +the judge ([MODULE_PERFORMANCE.md](MODULE_PERFORMANCE.md)). diff --git a/sdk/cycle-scan/CYCLE_SCAN.md b/sdk/cycle-scan/CYCLE_SCAN.md new file mode 100644 index 0000000000..7111802cf5 --- /dev/null +++ b/sdk/cycle-scan/CYCLE_SCAN.md @@ -0,0 +1,723 @@ +# Cycle scan: where each effect spends its cycles + +`tools/build/interlock_scan.py` prices the path an effect's proc executes with +the DSP56300 core's own manual (DSP56300 Family Manual, DSP56300FM Rev 5): each +instruction form's cycles (Table A-1) and the idle cycles the core inserts for +some sequences (sections A.2 and 3.5). This page holds what the scan found for +every effect with DSP code of its own and for every stock effect, scanned on +18 Nov 2026 on main at `5556a840`, and the changes that would make each +cheaper. + +It is a model from the manual, not a measurement. Section 1 is how far it has +been checked against the unit: across 38 settings of 22 effects it reads 3.0 % +above the unit on average and never more than 0.2 % below. The unit's own +figures, where they exist, are in [COSTS.md](COSTS.md); where they do not, the +figures here are the best estimate there is. + +```bash +python3 tools/build/interlock_scan.py EFFECT --sweep # every mode: defaults, all max, all min, dear +python3 tools/build/interlock_scan.py modulation MODE=JUNO LOFI=40 MIX=100 --top 20 +python3 tools/build/interlock_scan.py "PLATE REV" --sweep --json out/plate.json +python3 tools/build/interlock_scan.py --selftest # the manual's own examples +``` + +## How to read the figures + +- **instr/sample**: instructions executed a sample, the figure `dsp_host -meter` + reports. `cycle_count.py` prices the words of an effect's worst loop, a + different figure (MODULATION's LINE: 252 words against 206 instructions in + JUNO); neither counts cycles. +- **cycles/sample**: the model: Table A-1 for each executed instruction, plus the + stalls, plus one cycle after each conditional branch not taken (A.2.6.3). +- **narrow**: the model without two stall kinds the manual is not explicit about + (a `lua` destination, and a Tcc, counted as stall producers). On the unit + figures, the narrow figure is the closer one (section 1). +- **% of a frame**: cycles/sample ÷ 4,532 (the measured clock, `docs/firmware/CHIP.md` + section 2). COSTS.md's slot costs are in this unit. +- A run is one steady block of 16 samples (block 263 of the run, past the + servers' 256-call dry start), on one instance, with a test signal on both + channels. Every figure is per sample and includes the block's per-block work. +- **dearest**: each value of the selector (MODE, or the first select of at most + 8 values) is run three ways: its defaults (with the mode's view defaults when + the module has views), every other named knob at its maximum, every other at + its minimum, and the manifest's `dear` knobs when it declares them. The + tables show the dearest, as the stock measurements on the unit did. +- **where the cycles above one an instruction go**: the three largest of the + stall kinds and the slow forms, in cycles a sample. They are what the + remedies below act on. + +## The remedies, by what the scan reports + +Each stall kind and each slow form has a standard change. All of them reorder +or re-spell code without touching the arithmetic, so a module's bit-identity +gate (`make verify-ident MOD=`) can prove the output unchanged. + +| reported | what it is | the change | +|---|---|---| +| arithmetic stall (`arith`) | a move reads an accumulator the previous ALU instruction wrote: 1 idle cycle | put an independent instruction between the ALU instruction and the move, or carry the store in a later instruction's parallel move | +| transfer stall | a move reads an accumulator the previous move wrote: 1 | the same: one instruction between | +| address-register stall (`agu`) | an R, N or M register written by a move, then that set used for an address within 3 cycles: 3, 2 or 1 idle cycles | write the register 3 cycles before its use (hoist it above independent work), or address through a register written earlier | +| stall after `lua` (`agu-lua`) | the same after a `lua`; counted, but the manual does not say that a `lua` destination interlocks | as above; lower priority until measured | +| stall after Tcc (`arith-tcc`) | a move reads an accumulator a Tcc wrote; counted, the manual does not say | as above; lower priority | +| status stall | an SR read after an ALU instruction: 1 or 2 | move the SR read later | +| calls | `bsr` 4 cycles (5 with a long displacement), `rts` 3: 7 a call | inline the callee in a sample loop; it costs words, which the window and the loader's copy time pay (`DEMAND_LOADER.md`) | +| branches | a short `bcc` or `bra` 4 cycles, a long one 5; a branch not taken delays the next decode by 1 | a mode's arms as separate loops chosen once a block (more words), or a Tcc instead of a short skip | +| `lua` | 3 cycles, where `move (rN)+nN` is 1 | `move (rN)+nN` when updating rN in place is acceptable; otherwise keep the `lua` out of the sample loop | +| displaced moves | `x:(rN+d)` 2 cycles (3 for a two-word displacement), where `x:(rN)+` is 1 | walk a pointer over the state block instead of displacing from r7 (MODULATION's 22 Sep pass, its README) | +| `(rn+nn)` addresses | `(rN+nN)` or `-(rN)`: 2 cycles, where a post-update is 1 | a post-update on the previous access | +| two-word forms | a long immediate or a long absolute address: +1 cycle | keep the constant in a register across the loop, or use the short immediate when the value fits | +| do/rep | 5 cycles to start a hardware loop | per block or per call only; in a sample loop, unroll a short count | +| P reads (`movem`) | a move to or from P memory: 6 cycles in Table A-1 | read a P table once a block into X or Y. Section 1: the unit suggests 6 is high | + +A new form must still pass the chip-form register: `tools/build/dsp_forms.py` +and `verify_dsp_forms` refuse a form no stock site, register row or +unit-proven module has run (`TRAPS.md#trap-chip-form`). + +## 1. How far the model is checked + +Every unit figure the repo has for an effect whose scanned code is the code the +unit ran. The unit's are LOAD METER slot costs +(`tools/remix/slot_costs.json`, 24 to 27 Oct 2026; the dearer core × 4,532), +at the settings the hardware matrix stamped (`tools/hw/ot_matrix.py`: the +manifest's defaults, `dear`, and each mode with and without `dear`, a mode's +view applied when the mode is chosen). A module whose DSP source changed after +its measurement was scanned at its source on main at the measurement's date. +FX1 and FX2 rows of one setting price the same and are shown once. + +| effect | setting | source scanned | unit, % of a frame | unit, cycles | instructions | model | narrow | narrow ÷ unit | +|---|---|---|---|---|---|---|---|---| +| BBD | FX2 dear | today's | 11.34 | 513.9 | 365.2 | 528.3 | 519.2 | 1.010 | +| BBD | FX2 def | today's | 10.07 | 456.4 | 328.5 | 468.8 | 460.2 | 1.008 | +| CHORUS | FX1 def | today's | 6.28 | 284.6 | 257.4 | 288.5 | 288.4 | 1.013 | +| COMB FILTER | FX1 def | today's | 2.74 | 124.2 | 99.6 | 130.0 | 126.9 | 1.022 | +| COMPRESSOR | FX1 def | today's | 2.18 | 98.8 | 71.6 | 103.1 | 103.1 | 1.043 | +| DARK REV | FX2 def | today's | 5.49 | 248.8 | 197.2 | 252.9 | 252.9 | 1.016 | +| DISTORX | FX2 dear | main on 2026-10-27 23:00 (14c18ff0) | 9.45 | 428.3 | 269.5 | 439.4 | 435.2 | 1.016 | +| DJ EQ | FX1 def | today's | 7.30 | 330.8 | 297.6 | 334.5 | 334.5 | 1.011 | +| EQUALIZER | FX1 def | today's | 4.10 | 185.8 | 141.9 | 190.2 | 190.2 | 1.024 | +| EUCLID | FX1 def | today's | 4.87 | 220.7 | 141.8 | 232.3 | 232.2 | 1.052 | +| FILTER | FX1 def | today's | 5.11 | 231.6 | 204.9 | 235.8 | 235.8 | 1.018 | +| FLANGER | FX1 def | today's | 3.15 | 142.8 | 119.8 | 148.6 | 144.8 | 1.014 | +| LO-FI | FX1 def | today's | 6.66 | 301.8 | 279.6 | 305.9 | 305.9 | 1.013 | +| LOFI2 | FX2 dear | today's | 13.63 | 617.7 | 410.2 | 653.4 | 646.2 | 1.046 | +| LOFI2 | FX2 def | today's | 8.68 | 393.4 | 254.1 | 424.6 | 417.3 | 1.061 | +| LOFI2 | FX2 mode0+dear | today's | 8.73 | 395.6 | 255.2 | 426.5 | 419.2 | 1.060 | +| LOFI2 | FX2 mode1 | today's | 13.60 | 616.4 | 409.4 | 652.3 | 645.1 | 1.047 | +| LOFI2 | FX2 mode1+dear | today's | 13.64 | 618.2 | 410.6 | 654.2 | 647.0 | 1.047 | +| LOFI2 | FX2 mode2 | today's | 13.58 | 615.4 | 409.1 | 651.5 | 644.2 | 1.047 | +| MINIVERB | FX2 def | today's | 12.29 | 557.0 | 314.5 | 608.5 | 602.5 | 1.082 | +| MODULATION | FX1 dear | main on 2026-10-25 12:00 (9a752f97) | 8.66 | 392.5 | 296.8 | 402.2 | 395.6 | 1.008 | +| MODULATION | FX1 mode0 | main on 2026-10-25 12:00 (9a752f97) | 7.21 | 326.8 | 212.9 | 333.5 | 326.4 | 0.999 | +| MODULATION | FX1 mode1 | main on 2026-10-25 12:00 (9a752f97) | 8.76 | 397.0 | 258.8 | 402.5 | 398.4 | 1.004 | +| MODULATION | FX1 mode2 | main on 2026-10-25 12:00 (9a752f97) | 8.96 | 406.1 | 253.6 | 412.5 | 405.4 | 0.998 | +| MODULATION | FX1 mode3 | main on 2026-10-25 12:00 (9a752f97) | 7.93 | 359.4 | 262.5 | 368.1 | 361.2 | 1.005 | +| PHASER | FX1 def | today's | 5.18 | 234.8 | 185.4 | 240.6 | 238.5 | 1.016 | +| PLATE REV | FX2 def | today's | 5.27 | 238.8 | 186.1 | 243.5 | 243.5 | 1.020 | +| SPATIALIZER | FX1 def | today's | 1.28 | 58.0 | 52.1 | 62.7 | 62.7 | 1.081 | +| SPECTRUM | FX1 dear | today's | 7.08 | 320.9 | 245.1 | 331.2 | 330.4 | 1.030 | +| SPECTRUM | FX1 mode0+dear | today's | 6.55 | 296.8 | 217.9 | 303.2 | 302.8 | 1.020 | +| SPECTRUM | FX1 mode1 | today's | 4.78 | 216.6 | 153.0 | 223.3 | 222.6 | 1.027 | +| SPECTRUM | FX1 mode1+dear | today's | 4.73 | 214.4 | 152.2 | 220.9 | 220.2 | 1.027 | +| SPECTRUM | FX1 mode2 | today's | 7.90 | 358.0 | 254.2 | 371.1 | 369.7 | 1.033 | +| SPECTRUM | FX1 mode3 | today's | 7.14 | 323.6 | 245.9 | 333.6 | 332.8 | 1.029 | +| SPRING REV | FX2 def | today's | 6.38 | 289.1 | 261.1 | 293.1 | 293.1 | 1.014 | +| STUTTR | FX2 dear | today's | 4.60 | 208.5 | 127.7 | 268.4 | 267.3 | 1.282 | +| STUTTR | FX2 def | today's | 3.11 | 140.9 | 75.7 | 153.4 | 153.3 | 1.088 | +| STUTTR | FX2 mode1+dear | today's | 4.19 | 189.9 | 111.2 | 232.9 | 231.8 | 1.221 | +| STUTTR | FX2 mode2+dear | today's | 3.94 | 178.6 | 102.9 | 215.2 | 214.1 | 1.199 | +| TRANSIENT | FX1 dear | today's | 5.32 | 241.1 | 169.0 | 270.0 | 258.9 | 1.074 | +| VOID | FX2 dear | today's | 10.46 | 474.0 | 281.9 | 503.9 | 498.5 | 1.052 | +| VOID | FX2 def | today's | 7.05 | 319.5 | 187.9 | 341.9 | 338.5 | 1.059 | + +- **Over the 38 points without STUTTR, the narrow model is a mean 3.0 % above + the unit (rms 3.8 %), from −0.2 % to +8.2 %.** The full model (both doubtful + stall kinds counted) is 0 to 4.6 points higher (TRANSIENT the most, its + Tcc results moved at once). +- The stock effects, Elektron's code and the code with the least risk in the + comparison, read +1.1 to +4.3 % (SPATIALIZER +8.1 %, 4.7 cycles on 58). +- **A second, independent measurement agrees.** Jannik Aßfalg's idle-pass + counts on an MKII (`CHIP.md` section 2, 12 Oct 2026, the dearest of + as-picked, all-min and all-max) against the scan's dearest of defaults, all + max and all min: + + | effect | unit, core 0 / core 1 | instructions | model | narrow | narrow ÷ core 0 / ÷ core 1 | + |---|---|---|---|---|---| + | DJ EQ | 330 / 342 | 297.6 | 334.5 | 334.5 | 1.014 / 0.978 | + | LO-FI | 301 / 311 | 279.6 | 305.9 | 305.9 | 1.016 / 0.984 | + | SPRING REV | 288 / 299 | 261.1 | 293.1 | 293.1 | 1.018 / 0.980 | + | CHORUS | 285 / 295 | 257.8 | 290.0 | 289.9 | 1.017 / 0.983 | + | FILTER | 276 / 285 | 240.2 | 280.1 | 280.1 | 1.015 / 0.983 | + | DARK REV | 248 / 257 | 197.4 | 253.5 | 253.5 | 1.022 / 0.986 | + | PLATE REV | 241 / 249 | 188.1 | 246.9 | 246.9 | 1.024 / 0.991 | + | PHASER | 234 / 242 | 185.7 | 240.8 | 238.7 | 1.020 / 0.986 | + | EQUALIZER | 187 / 193 | 142.2 | 191.1 | 191.1 | 1.022 / 0.990 | + | FLANGER | 142 / 147 | 119.8 | 148.6 | 144.8 | 1.020 / 0.985 | + | COMB FILTER | 124 / 128 | 99.6 | 130.0 | 126.9 | 1.023 / 0.991 | + | COMPRESSOR | 99 / 102 | 71.6 | 103.1 | 103.1 | 1.041 / 1.010 | + | SPATIALIZER | 78 / 80 | 68.6 | 82.1 | 82.1 | 1.053 / 1.027 | + + The narrow model lands between the two cores' readings for eleven of the + thirteen; COMPRESSOR and SPATIALIZER are 1.0 and 2.7 % above the dearer + core. +- **STUTTR** reads 8.8 % high at its defaults and up to 28 % at `dear`. Its load + varies with time (COSTS.md: core 0 mean 40.8 %, maximum 45.1 %), the + catalog keeps the mean, and the scan prices one block. Against the + maximum (5.65 %, 256 cycles) the `dear` figure is 4.4 % high. +- **Where the model runs high** (MINIVERB, TRANSIENT, EUCLID, VOID, LOFI2: + 4.6 to 8.2 %), a least-squares fit of the excess against what each run + contains puts it on P reads (`movem`, 0.53 of their extra cycles), + address-register stalls (0.35) and displaced moves (0.17); with those three + the fit leaves 4.2 cycles rms. Inferred, not measured: Table A-1's 6 cycles + for a P read may be high for internal P, and some address-register stalls + may be shorter than counted. +- **One reading is open.** A.2.4 counts the three-cycle distance "in clock + cycles" from the instruction that wrote the register. The scan counts from + that instruction's end (the default); `ILSCAN_AGU_FROM=start` counts from its + first cycle, so a two-word writer such as `move #>$ffff8f,n5` is one cycle + nearer clear. Only MINIVERB separates the two: +8.2 % from the end, +2.8 % + from the start. Every other point moves by 0.6 points or less (mean +3.0 % + against +2.8 %). The default stays until a unit separates them. +- **Not checked:** CHARACTER and SHATTER (their October sources no longer + build against today's tree), GATE VERB (now VERBERATION, rewritten), + TAPE ECHO and DELAY (on the ColdFire), and every effect the catalog has no + figure for (VOCODER, RESONATOR, CHARACTER TXTR, VERBERATION, VIBRATO, + DEVILISH, MULTIBCOMP, the servers, SEND). +- **The shared window is not in the model.** DSP56720RM section 16.2: every + program fetch from `0x30000..0x3ffff` costs one more cycle, and two cores in + one 8K block contend. The stock effects and everything measured on 25 Oct + ran from internal P (window placement landed that evening, `1a7bf9d7`, + `36b86291`). Where the 27 Oct images (`COST-*`: BBD, DISTORX, MINIVERB, + STUTTR, VOID) put their effects is not recorded; their figures fit the model + about as well as the internal ones. A window effect's real cost may be higher than its figure + here. To settle it, read one effect's slot cost on a unit from internal P + and from the window, the same code. + +## 2. What each effect costs + +### The modules + +| effect | setting (variant) | instr/sample | cycles/sample | % of a frame | stalls | where the cycles above one an instruction go | +|---|---|---|---|---|---|---| +| MODULATION | JUNO (def) | 206.2 | 321.8 | 7.1 % | 50.7 | arithmetic stalls 28, branches 18, calls 16 | +| MODULATION | DIM (def) | 252.1 | 390.9 | 8.6 % | 55.7 | arithmetic stalls 36, branches 25, two-word forms 18 | +| MODULATION | FLNG (def) | 245.9 | 398.8 | 8.8 % | 61.8 | arithmetic stalls 34, calls 28, branches 26 | +| MODULATION | COMB (def) | 256.1 | 360.9 | 8.0 % | 55.7 | arithmetic stalls 34, calls 16, address-register stalls 15 | +| MODULATION | PHSR (def) | 288.1 | 393.1 | 8.7 % | 45.1 | arithmetic stalls 37, calls 29, do/rep 8 | +| SPECTRUM | LADR (max) | 217.9 | 303.2 | 6.7 % | 48.4 | arithmetic stalls 44, calls 21, displaced moves 5 | +| SPECTRUM | SEM (def) | 153.0 | 223.3 | 4.9 % | 37.6 | arithmetic stalls 28, calls 10, displaced moves 9 | +| SPECTRUM | ISO (def) | 254.2 | 371.1 | 8.2 % | 55.2 | arithmetic stalls 40, (rn+nn) addresses 21, calls 14 | +| SPECTRUM | VOWL (def) | 245.9 | 333.6 | 7.4 % | 41.4 | arithmetic stalls 37, calls 23, displaced moves 7 | +| CHARACTER | SAT=TAPE (max) | 262.8 | 407.5 | 9.0 % | 79.5 | arithmetic stalls 62, branches 16, calls 14 | +| CHARACTER | SAT=TUBE (max) | 258.9 | 428.3 | 9.5 % | 76.7 | arithmetic stalls 57, branches 24, P reads (movem) 20 | +| CHARACTER | SAT=INFL (max) | 230.9 | 363.2 | 8.0 % | 72.2 | arithmetic stalls 54, branches 24, stalls after lua 13 | +| CHARACTER TXTR | SAT=TAPE (max) | 416.1 | 677.5 | 14.9 % | 114.6 | arithmetic stalls 88, P reads (movem) 41, calls 26 | +| CHARACTER TXTR | SAT=TUBE (max) | 411.1 | 697.9 | 15.4 % | 111.8 | arithmetic stalls 83, P reads (movem) 61, branches 28 | +| CHARACTER TXTR | SAT=INFL (max) | 385.8 | 636.2 | 14.0 % | 107.8 | arithmetic stalls 81, P reads (movem) 41, branches 28 | +| TRANSIENT | defaults (def) | 169.0 | 270.0 | 6.0 % | 33.5 | displaced moves 27, P reads (movem) 21, arithmetic stalls 19 | +| SHATTER | HARD (max) | 201.9 | 365.1 | 8.1 % | 33.0 | branches 59, displaced moves 52, arithmetic stalls 24 | +| SHATTER | SOFT (max) | 213.9 | 383.1 | 8.5 % | 37.0 | branches 59, displaced moves 52, arithmetic stalls 28 | +| SHATTER | CHAOS (max) | 202.3 | 366.1 | 8.1 % | 33.1 | branches 59, displaced moves 52, arithmetic stalls 24 | +| VERBERATION | all 4 modes (def) | 238.5 | 455.7 | 10.1 % | 107.8 | address-register stalls 72, displaced moves 58, arithmetic stalls 27 | +| VIBRATO | SHP=SINE, SHP=TRI, SHP=SQR (max) | 121.3 | 206.8 | 4.6 % | 36.4 | arithmetic stalls 19, displaced moves 16, calls 16 | +| VIBRATO | SHP=RND (max) | 118.7 | 202.1 | 4.5 % | 35.9 | arithmetic stalls 19, displaced moves 16, calls 15 | +| VOCODER | INT, EXT (def) | 757.1 | 1245.8 | 27.5 % | 204.8 | arithmetic stalls 179, P reads (movem) 151, displaced moves 96 | +| VOID | SHPE=SIN, SHPE=SQR, SHPE=SAW (dear) | 281.9 | 503.9 | 11.1 % | 62.4 | displaced moves 96, arithmetic stalls 46, branches 36 | +| BBD | STGS=1024, STGS=4096 (dear) | 365.2 | 528.3 | 11.7 % | 54.3 | displaced moves 50, arithmetic stalls 40, two-word forms 25 | +| DISTORX | OFF (def) | 1.8 | 4.1 | 0.1 % | 0.1 | | +| DISTORX | SD-1 (min) | 180.4 | 285.9 | 6.3 % | 25.8 | displaced moves 38, two-word forms 20, arithmetic stalls 19 | +| DISTORX | RAT, TURB (min) | 232.9 | 375.9 | 8.3 % | 40.8 | displaced moves 70, arithmetic stalls 35, two-word forms 11 | +| EUCLID | every RATE value (5) (def) | 141.8 | 232.3 | 5.1 % | 25.2 | displaced moves 53, arithmetic stalls 20, branches 5 | +| LOFI2 | RING (max) | 255.2 | 426.5 | 9.4 % | 56.5 | displaced moves 71, arithmetic stalls 35, address-register stalls 14 | +| LOFI2 | DOWN (max) | 410.6 | 654.2 | 14.4 % | 89.6 | displaced moves 88, arithmetic stalls 60, two-word forms 34 | +| LOFI2 | UP (max) | 410.2 | 653.4 | 14.4 % | 89.5 | displaced moves 88, arithmetic stalls 60, two-word forms 34 | +| MINIVERB | every RATE value (8) (max) | 314.6 | 608.8 | 13.4 % | 150.3 | address-register stalls 96, displaced moves 59, two-word forms 49 | +| RESONATOR | defaults (max) | 402.1 | 655.9 | 14.5 % | 82.6 | displaced moves 97, arithmetic stalls 53, calls 50 | +| STUTTR | FWD (dear) | 127.7 | 268.4 | 5.9 % | 20.6 | branches 61, displaced moves 40, arithmetic stalls 12 | +| STUTTR | HALF (dear) | 111.2 | 232.9 | 5.1 % | 17.6 | branches 53, displaced moves 34, arithmetic stalls 11 | +| STUTTR | QUART, RND (dear) | 102.9 | 215.2 | 4.7 % | 16.1 | branches 49, displaced moves 30, arithmetic stalls 11 | +| DEVILISH | SWP=ACID, SWP=WHST, SWP=SELF (def) | 1.1 | 1.5 | 0.0 % | | idle: a voice of OCTA303 with nothing triggering it | +| TAPE ECHO | SYNC=FREE, SYNC=BEAT (def) | 1.1 | 1.5 | 0.0 % | | runs on the ColdFire; the DSP entry is a stub | + +### The bus + +The servers' figures are one instance; SEND's is one client. COSTS.md does +not bound the bus remixes, and these are the first figures for the servers +since the burn sweep's reverb (`CHIP.md` section 2: about 1,650 cycles a +sample for an older engine). + +| effect | setting (variant) | instr/sample | cycles/sample | % of a frame | stalls | where the cycles above one an instruction go | +|---|---|---|---|---|---|---| +| REVERB SERVER | ROOM, PLATE, BIG (min) | 1009.4 | 1593.1 | 35.2 % | 261.9 | arithmetic stalls 185, displaced moves 125, two-word forms 64 | +| DELAY SERVER | CLEAN (min) | 775.1 | 976.2 | 21.5 % | 70.2 | displaced moves 65, arithmetic stalls 45, branches 26 | +| DELAY SERVER | GRAIN (min) | 1424.1 | 1966.2 | 43.4 % | 256.2 | arithmetic stalls 157, displaced moves 137, two-word forms 78 | +| DELAY SERVER | REVRS (min) | 851.1 | 1078.2 | 23.8 % | 87.2 | displaced moves 69, arithmetic stalls 57, branches 22 | +| SEND | defaults (def) | 37.1 | 57.5 | 1.3 % | 6.9 | displaced moves 7, arithmetic stalls 6, two-word forms 2 | + +### The stock effects + +| effect | setting (variant) | instr/sample | cycles/sample | % of a frame | stalls | where the cycles above one an instruction go | +|---|---|---|---|---|---|---| +| CHORUS | TAPS=1, TAPS=2 (def) | 257.3 | 288.1 | 6.4 % | 4.1 | do/rep 11, displaced moves 9, two-word forms 4 | +| CHORUS | TAPS=3, TAPS=4 (def) | 257.6 | 288.9 | 6.4 % | 4.6 | do/rep 11, displaced moves 9, two-word forms 4 | +| CHORUS | TAPS=5 (def) | 257.8 | 290.0 | 6.4 % | 5.1 | do/rep 12, displaced moves 9, two-word forms 4 | +| COMB FILTER | defaults (def) | 99.6 | 130.0 | 2.9 % | 20.2 | arithmetic stalls 8, address-register stalls 7, stalls after lua 3 | +| COMPRESSOR | defaults (def) | 71.6 | 103.1 | 2.3 % | 10.4 | displaced moves 8, two-word forms 7, arithmetic stalls 6 | +| DARK REV | MIXF=MIX (def) | 197.2 | 252.9 | 5.6 % | 14.6 | do/rep 12, arithmetic stalls 12, displaced moves 9 | +| DARK REV | MIXF=SEND (def) | 197.4 | 253.5 | 5.6 % | 14.7 | arithmetic stalls 12, do/rep 12, displaced moves 9 | +| DELAY | not scanned: DELAY runs on the ColdFire (stock.NO_DSP): its DSP entry is the passthrough stub | | | | | | +| DJ EQ | defaults (def) | 297.6 | 334.5 | 7.4 % | 4.9 | calls 16, do/rep 10, displaced moves 5 | +| EQUALIZER | TYP1=LOW, TYP1=PEQ, TYP1=HIGH (max) | 142.2 | 191.1 | 4.2 % | 26.7 | arithmetic stalls 25, do/rep 8, displaced moves 6 | +| FILTER | HP=12dB, HP=24dB (max) | 240.2 | 280.1 | 6.2 % | 11.1 | do/rep 8, arithmetic stalls 8, displaced moves 8 | +| FLANGER | defaults (def) | 119.8 | 148.6 | 3.3 % | 12.3 | arithmetic stalls 6, do/rep 6, lua 5 | +| LO-FI | defaults (def) | 279.6 | 305.9 | 6.7 % | 15.8 | arithmetic stalls 14, displaced moves 3, do/rep 3 | +| MULTIBCOMP | defaults (def) | 4.2 | 4.6 | 0.1 % | | a stub path in the stock image | +| PHASER | NUM=2 (def) | 185.4 | 240.6 | 5.3 % | 29.2 | arithmetic stalls 27, do/rep 12, lua 5 | +| PHASER | every NUM value (4) (def) | 185.5 | 240.6 | 5.3 % | 29.2 | arithmetic stalls 27, do/rep 12, lua 5 | +| PLATE REV | MIXF=MIX (min) | 187.9 | 246.2 | 5.4 % | 34.4 | arithmetic stalls 29, do/rep 11, displaced moves 5 | +| PLATE REV | MIXF=SEND (min) | 188.1 | 246.9 | 5.4 % | 34.5 | arithmetic stalls 30, do/rep 11, displaced moves 5 | +| SPATIALIZER | PHSE=NONE, PHSE=L, PHSE=R (max) | 68.4 | 81.6 | 1.8 % | 3.7 | do/rep 4, arithmetic stalls 3, displaced moves 2 | +| SPATIALIZER | PHSE=L,R (max) | 68.6 | 82.1 | 1.8 % | 3.7 | do/rep 4, arithmetic stalls 3, branches 2 | +| SPRING REV | TYPE=1, TYPE=2 (def) | 261.1 | 293.1 | 6.5 % | 5.9 | do/rep 7, displaced moves 5, arithmetic stalls 5 | +| SPRING REV | TYPE=3 (def) | 260.9 | 292.1 | 6.4 % | 5.9 | do/rep 7, displaced moves 5, arithmetic stalls 5 | + +## 3. Where to optimize + +In order of what a change would buy against the budget: the effects over the +9.07 % a slot that a core can give every slot (COSTS.md, "free everywhere") +first, then the dearest of the rest. The stall figures are what reordering +alone can recover, at most; a stall between two instructions that depend on +each other needs other work moved between them, which a short loop may not +have. + +- **MINIVERB** (13.4 %, over the cap). Its taps load each offset into `n5` + immediately before the access: `move #>$ffff8f,n5` then + `move y:(r5+n5),b` (`mv_mix+62..110`). Each tap pays a two-word immediate + (1 extra), an address-register stall (3; 2 by the other reading, section 1) + and an `(rn+nn)` address (1 extra): 7 cycles. A two-word displaced move, + `move y:(r5+$ffff8f),b`, does the access in 3 with no stall: about 4 cycles a + tap at about 30 taps a sample, up to about 120 of its 609. Check the form + against the chip-form register first. +- **VOCODER** (27.5 %, not in the catalog). 179 cycles a sample of arithmetic + stalls, in `vc_gend` (`macr` then a move of the same accumulator, 10 a site) + and 151 of P reads (if Table A-1's 6 cycles hold; section 1). Interleaving the + bands' `macr` chains would remove most of the stalls; moving the P tables to Y + once a block, the P reads. +- **CHARACTER TXTR** (15.4 %) and **CHARACTER** (9.5 %). Arithmetic stalls (55 to + 88), P reads (20 to 61) and a `lua` followed at once by a read through its + register (`lua (r5+$2),r5` then `move x:(r5),a`, 13 to 16 if a `lua` + destination interlocks). +- **RESONATOR** (14.5 %). Displaced moves (97), arithmetic stalls in `rs_one` + (five sites, 8 a sample each) and calls (50). +- **LOFI2** (14.4 %, over the cap). Displaced moves (88), arithmetic stalls (60), + two-word forms (34), and `move a1,r5` then `move p:(r5),y0` (a P read whose + address is written the instruction before: 3 + 6 cycles). +- **BBD** (11.7 % at `dear`, over the cap). Displaced moves (50), arithmetic + stalls (40), two-word forms (25). +- **VOID** (11.1 % at `dear`, over the cap). Displaced moves (96), arithmetic + stalls (46), branches (36). +- **VERBERATION** (10.1 %). The MINIVERB pattern: `move #>$ffff94,n5` or + `move x:(r7+$47),n5`, then `y:(r5+n5)` (`gv_p2a`), 72 cycles a sample of + address-register stalls. An immediate offset takes MINIVERB's remedy; an + offset read from the state block needs its load three cycles earlier. +- **MODULATION** (up to 8.8 %). `mo_tap` (the linear tap read, twice a sample, + three times in FLNG): `and #>$3ff,a` / `move a1,n5` / `move (r5)+n5` is an + arithmetic stall and a three-cycle address-register stall a call; its + `asl`/`asr` splits add two more. LINE's `move r2,r5` and `move r6,r5` each + followed by `move (r5)+n5` (3 each). Calls (16 to 29) and LINE's arm + branches (18 to 26) are the forms. 45 to 62 cycles a sample of stalls, + depending on the mode. +- **VIBRATO** (4.6 %). `vb_tap` is `mo_tap`'s pattern, with the same stalls; + one fix serves both. +- **SPECTRUM** (up to 8.2 %). Arithmetic stalls (28 to 44, the ladder core + `fs_lcore`: each `asr`/`asl` result moved at once) and calls (10 to 23). +- **SHATTER** (8.5 %). Branches (59) and displaced moves (52). +- **DISTORX** (8.3 % at RAT and TURB). Displaced moves (70), arithmetic stalls (35). +- **TRANSIENT** (6.0 %) and **EUCLID** (5.1 %): displaced moves first. +- **STUTTR** (5.9 % at `dear` in FWD): branches (49 to 61) and displaced moves + (30 to 40). +- **The servers.** The reverb (35.2 % of a core, one instance) has 185 cycles a + sample of arithmetic stalls in `lfrol` (8 a sample at each of its sites: an + ALU result moved at once), 125 of displaced moves and 64 of two-word forms. + The delay's GRAIN (43.4 %) has 157 of arithmetic stalls and 137 of displaced + moves; CLEAN (21.5 %) and REVRS (23.8 %) have the `move a1,r5` then + `move y:(r5+n5)` pair (6 a sample a site). + +The sites of each effect's dearest setting, largest first (the full list: +`--top N`): + +**MODULATION**, FLNG (def): 398.8 cycles a sample, 61.8 of them stalls. + +| stall/sample | kind | the instruction that waits | waits on | +|---|---|---|---| +| 9.00 | agu | `move (r5)+n5` at mo_tap+13 | `move a1,n5` at mo_tap+12 | +| 4.00 | arith | `move a,x0` at mo_itrd+3 | `sub b,a` at mo_itrd+2 | +| 3.00 | arith | `move a1,y1` at mo_tap+4 | `asl #$b,a,a` at mo_tap+3 | +| 3.00 | arith | `move a1,x0` at mo_tap+7 | `asr #$c,a,a` at mo_tap+6 | +| 3.00 | arith | `move a1,n5` at mo_tap+12 | `and #>$3ff,a` at mo_tap+10 | +| 3.00 | agu | `move (r5)+n5` at mo_line+133 | `move r2,r5` at mo_line+132 | + +**SPECTRUM**, ISO (def): 371.1 cycles a sample, 55.2 of them stalls. + +| stall/sample | kind | the instruction that waits | waits on | +|---|---|---|---| +| 6.00 | agu | `move (r5)+n5` at fs_ccore+2 | `move #$6,n5` at fs_ccore+1 | +| 3.00 | agu | `move x:(r6+n6),a` at fs_cap+73 | `move a1,n6` at fs_cap+72 | +| 3.00 | agu | `move (r3)+n3` at fs_cap+89 | `move #$c,n3` at fs_cap+88 | +| 2.00 | arith | `move a,x0` at fs_ccore+12 | `abs a` at fs_ccore+11 | +| 2.00 | arith | `move a,x:(r1)+` at fs_ccore+15 | `mpy x0,y1,a` at fs_ccore+14 | +| 2.00 | arith | `move a,x:(r1)+` at fs_ccore+20 | `add #>$7fffff,a` at fs_ccore+18 | + +**CHARACTER**, SAT=TUBE (max): 428.3 cycles a sample, 76.7 of them stalls. + +| stall/sample | kind | the instruction that waits | waits on | +|---|---|---|---| +| 3.00 | agu-lua | `move x:(r5),a` at proc+581 | `lua (r5+$2),r5` at proc+580 | +| 3.00 | agu-lua | `move x:(r5),a` at proc+585 | `lua (r5+$6),r5` at proc+584 | +| 3.00 | agu-lua | `move x:(r5),a` at proc+592 | `lua (r5+$2),r5` at proc+591 | +| 2.00 | agu-lua | `move x:(r3)+,x0` at proc+574 | `lua (r4+$3d),r3` at proc+572 | +| 2.00 | arith | `abs a a,x1` at proc+843 | `mpy x0,y1,a #$40,b` at proc+842 | +| 2.00 | arith | `tst b b,y0` at proc+845 | `sub a,b #$0,x0` at proc+844 | + +**CHARACTER TXTR**, SAT=TUBE (max): 697.9 cycles a sample, 111.8 of them stalls. + +| stall/sample | kind | the instruction that waits | waits on | +|---|---|---|---| +| 3.00 | agu-lua | `move x:(r5),a` at ch_rdone+11 | `lua (r5+$2),r5` at ch_rdone+10 | +| 3.00 | agu-lua | `move x:(r5),a` at ch_rdone+15 | `lua (r5+$6),r5` at ch_rdone+14 | +| 3.00 | agu-lua | `move x:(r5),a` at ch_rdone+22 | `lua (r5+$2),r5` at ch_rdone+21 | +| 3.00 | agu-lua | `lua (r1+$11),r2` at ch_rdone+69 | `lua (r1-$33),r1` at ch_rdone+68 | +| 2.00 | agu-lua | `move x:(r3)+,x0` at ch_rdone+4 | `lua (r4+$3d),r3` at ch_rdone+2 | +| 2.00 | arith | `move a,b` at chtx2+2 | `abs a` at chtx2+1 | + +**TRANSIENT**, defaults (def): 270.0 cycles a sample, 33.5 of them stalls. + +| stall/sample | kind | the instruction that waits | waits on | +|---|---|---|---| +| 1.00 | arith | `move b,x0` at proc+64 | `abs b` at proc+63 | +| 1.00 | arith-tcc | `move a,x1` at proc+67 | `tlt x0,a` at proc+66 | +| 1.00 | transfer | `move a1,x0` at proc+70 | `move x:(r7+$6),a0` at proc+69 | +| 1.00 | arith-tcc | `move a1,x:(r7+$4)` at proc+76 | `tlt x1,a` at proc+75 | +| 1.00 | arith | `move a1,x1` at proc+89 | `asl #$1,a,a` at proc+88 | +| 1.00 | arith | `move a1,n5` at proc+91 | `asr #$12,a,a` at proc+90 | + +**SHATTER**, SOFT (max): 383.1 cycles a sample, 37.0 of them stalls. + +| stall/sample | kind | the instruction that waits | waits on | +|---|---|---|---| +| 1.00 | arith | `move a,b` at sh00+12 | `add x0,a` at sh00+11 | +| 1.00 | arith | `move a,x0` at sh00+16 | `mpy x0,y1,a` at sh00+15 | +| 1.00 | arith | `move a,y0` at sh00+20 | `add b,a` at sh00+19 | +| 1.00 | arith | `move a1,x1` at sh00+31 | `add b,a` at sh00+30 | +| 1.00 | arith | `move a,y0` at sh00+36 | `asl a` at sh00+35 | +| 1.00 | arith | `move b,y1` at sh02+8 | `mpy x0,x0,b` at sh02+7 | + +**VERBERATION**, ROOM (def): 455.7 cycles a sample, 107.8 of them stalls. + +| stall/sample | kind | the instruction that waits | waits on | +|---|---|---|---| +| 3.00 | agu | `lua (r5)+n5,r4` at gv_p2a+85 | `move x:(r7+$2e),n5` at gv_p2a+83 | +| 3.00 | agu-lua | `move y:(r4)-,b` at gv_p2a+86 | `lua (r5)+n5,r4` at gv_p2a+85 | +| 3.00 | agu | `move a,y:(r5+n5)` at gv_p2a+95 | `move #>$ffff9c,n5` at gv_p2a+93 | +| 3.00 | agu | `move y0,y:(r5+n5)` at gv_p2a+150 | `move x:(r7+$47),n5` at gv_p2a+148 | +| 3.00 | agu | `move y:(r5+n5),x0` at gv_p2a+153 | `move x:(r7+$48),n5` at gv_p2a+151 | +| 3.00 | agu | `move y:(r5+n5),x0` at gv_p2a+159 | `move #>$ffff94,n5` at gv_p2a+157 | + +**VIBRATO**, SHP=TRI (max): 207.0 cycles a sample, 36.2 of them stalls. + +| stall/sample | kind | the instruction that waits | waits on | +|---|---|---|---| +| 6.00 | agu | `move (r5)+n5` at vb_tap+14 | `move a1,n5` at vb_tap+13 | +| 3.00 | agu | `move (r5)+n5` at vb_mixd+37 | `move r2,r5` at vb_mixd+36 | +| 3.00 | agu | `move (r5)+n5` at vb_mixd+60 | `move r6,r5` at vb_mixd+59 | +| 2.00 | arith | `move a1,y1` at vb_tap+5 | `asl #$b,a,a` at vb_tap+4 | +| 2.00 | arith | `move a1,x0` at vb_tap+8 | `asr #$c,a,a` at vb_tap+7 | +| 2.00 | arith | `move a1,n5` at vb_tap+13 | `and #>$3ff,a` at vb_tap+11 | + +**VOCODER**, INT (def): 1245.8 cycles a sample, 204.8 of them stalls. + +| stall/sample | kind | the instruction that waits | waits on | +|---|---|---|---| +| 10.00 | arith | `sub a,b a,x:(r5)+` at vc_gend+133 | `macr x0,y1,a x:(r7),b` at vc_gend+132 | +| 10.00 | arith | `tfr y1,a b,y0` at vc_gend+135 | `macr -y1,x1,b` at vc_gend+134 | +| 10.00 | arith | `move a,y0` at vc_gend+137 | `macr y0,x0,a` at vc_gend+136 | +| 10.00 | arith | `sub a,b a,x:(r5)+` at vc_gend+143 | `macr x0,y1,a` at vc_gend+142 | +| 10.00 | arith | `tfr y1,a b,y0` at vc_gend+145 | `macr -y1,x1,b` at vc_gend+144 | +| 10.00 | arith | `abs a a,x:(r5)+` at vc_gend+147 | `macr y0,x0,a` at vc_gend+146 | + +**VOID**, SHPE=SIN (dear): 503.9 cycles a sample, 62.4 of them stalls. + +| stall/sample | kind | the instruction that waits | waits on | +|---|---|---|---| +| 3.00 | agu | `move (r0)+n0` at vd_bal+19 | `move #>$2,n0` at vd_bal+17 | +| 2.81 | agu | `move x:(r0),a` at vd_nbr_go+3 | `move #>$1,n0` at vd_bal+20 | +| 1.00 | transfer | `move a,x:(r7+$22)` at vd_nbr_go+4 | `move x:(r0),a` at vd_nbr_go+3 | +| 1.00 | transfer | `move a,x:(r7+$23)` at vd_nbr_go+6 | `move x:(r0+n0),a` at vd_nbr_go+5 | +| 1.00 | arith | `move b0,x0` at vd_have_in+5 | `asr b` at vd_have_in+4 | +| 1.00 | arith | `move b1,x:(r7+$1)` at vd_have_in+9 | `add #>$6ef35f,b` at vd_have_in+7 | + +**BBD**, STGS=1024 (dear): 528.3 cycles a sample, 54.3 of them stalls. + +| stall/sample | kind | the instruction that waits | waits on | +|---|---|---|---| +| 3.00 | agu-lua | `move x:(r1)+,x1 y:(r5)+,y0` at bbpreoff+6 | `lua (r2+$35),r5` at bbpreoff+5 | +| 3.00 | agu | `move x:(r1)+,x1 y:(r5)+,y0` at bbpreoff+118 | `move r2,r5` at bbpreoff+117 | +| 1.00 | arith | `move a,x0` at bbpreok+29 | `sub b,a` at bbpreok+28 | +| 1.00 | arith | `move b,x:(r7+$7)` at bbpreok+33 | `mac y0,x0,b` at bbpreok+32 | +| 1.00 | arith | `move a,x:(r7+$16)` at bbpreok+39 | `add b,a` at bbpreok+38 | +| 1.00 | arith | `move a0,x:(r7+$4d)` at bbhsec+12 | `add x,a` at bbhsec+11 | + +**DISTORX**, RAT (min): 375.9 cycles a sample, 40.8 of them stalls. + +| stall/sample | kind | the instruction that waits | waits on | +|---|---|---|---| +| 2.00 | agu | `move (r5)+n5` at dtx_rstage+135 | `move r4,r5` at dtx_rstage+133 | +| 1.00 | arith | `move a,x0` at dtx_rstage+4 | `asr #$1,a,a` at dtx_rstage+3 | +| 1.00 | arith | `move a,x1` at dtx_rstage+7 | `mpy x0,y1,a` at dtx_rstage+6 | +| 1.00 | arith | `move a1,x:(r7+$35)` at dtx_rstage+20 | `mac x1,y0,a` at dtx_rstage+19 | +| 1.00 | arith | `move a1,b` at dtx_rstage+29 | `mac x0,y1,a` at dtx_rstage+28 | +| 1.00 | arith | `move a,x0` at dtx_rstage+33 | `asr #$1,a,a` at dtx_rstage+32 | + +**EUCLID**, RATE=1/32 (def): 232.3 cycles a sample, 25.2 of them stalls. + +| stall/sample | kind | the instruction that waits | waits on | +|---|---|---|---| +| 3.00 | agu | `move (r0)+n0` at eu_den_held+126 | `move #>$2,n0` at eu_den_held+124 | +| 1.00 | arith | `move a,x:(r7+$2e)` at eu_type_done+18 | `add x0,a` at eu_type_done+17 | +| 1.00 | transfer | `move a,x:(r7+$1c)` at eu_den_held+3 | `move x:(r7+$2e),a` at eu_den_held+2 | +| 1.00 | arith | `move b,x0` at eu_den_held+14 | `asr #$3,b,b` at eu_den_held+13 | +| 1.00 | arith | `move a,x0` at eu_den_held+18 | `asl #$3,a,a` at eu_den_held+17 | +| 1.00 | arith | `move a,x1` at eu_den_held+25 | `add b,a` at eu_den_held+24 | + +**LOFI2**, DOWN (max): 654.2 cycles a sample, 89.6 of them stalls. + +| stall/sample | kind | the instruction that waits | waits on | +|---|---|---|---| +| 3.00 | agu | `move (r1)+n1` at lf_nomod+75 | `move r7,r1` at lf_nomod+74 | +| 3.00 | agu | `move (r2)+` at lf_nomod+77 | `move r1,r2` at lf_nomod+76 | +| 3.00 | agu | `move p:(r5),y0` at lf_noshift+75 | `move a1,r5` at lf_noshift+74 | +| 3.00 | agu | `move p:(r5),y0` at lf_noshift+82 | `move a1,r5` at lf_noshift+81 | +| 3.00 | agu | `move (r0)+n0` at lf_noshift+161 | `move #>$2,n0` at lf_noshift+159 | +| 2.81 | agu | `move x:(r0),x1` at lf_fwd+66 | `move #>$1,n0` at lf_noshift+162 | + +**MINIVERB**, RATE=0.34 (max): 608.8 cycles a sample, 150.3 of them stalls. + +| stall/sample | kind | the instruction that waits | waits on | +|---|---|---|---| +| 3.00 | agu | `move y:(r5+n5),b` at mv_mix+64 | `move #>$ffff8f,n5` at mv_mix+62 | +| 3.00 | agu | `move a,y:(r5+n5)` at mv_mix+71 | `move #>$0,n5` at mv_mix+69 | +| 3.00 | agu | `move y:(r5+n5),b` at mv_mix+77 | `move #>$fffee1,n5` at mv_mix+75 | +| 3.00 | agu | `move a,y:(r5+n5)` at mv_mix+84 | `move #>$ffff8e,n5` at mv_mix+82 | +| 3.00 | agu | `move y:(r5+n5),b` at mv_mix+90 | `move #>$fffd8f,n5` at mv_mix+88 | +| 3.00 | agu | `move a,y:(r5+n5)` at mv_mix+97 | `move #>$fffee0,n5` at mv_mix+95 | + +**RESONATOR**, defaults (max): 655.9 cycles a sample, 82.6 of them stalls. + +| stall/sample | kind | the instruction that waits | waits on | +|---|---|---|---| +| 8.00 | arith | `move a,x:(r4)+` at rs_one+5 | `add b,a` at rs_one+4 | +| 8.00 | arith | `move a,x0` at rs_one+14 | `sub b,a` at rs_one+13 | +| 8.00 | arith | `move a,x:(r4)+` at rs_one+18 | `add b,a` at rs_one+17 | +| 8.00 | arith | `move a,x0` at rs_one+22 | `mpy x0,y1,a` at rs_one+21 | +| 8.00 | arith | `move b,x:(r7+$58)` at rs_one+29 | `add a,b` at rs_one+28 | +| 3.00 | agu | `move (r3)+n3` at rs_fbd+47 | `move #$30,n3` at rs_fbd+46 | + +**STUTTR**, FWD (dear): 268.4 cycles a sample, 20.6 of them stalls. + +| stall/sample | kind | the instruction that waits | waits on | +|---|---|---|---| +| 3.00 | agu | `move y:(r4)+,a` at st25+3 | `move #>$ffffff,m4` at st25+1 | +| 2.00 | agu | `move a,y:(r4)+` at st50+35 | `move #>$ffffff,m4` at st50+32 | +| 1.00 | transfer | `move a,y:(r4)+` at st50+37 | `move x:(r0+n0),a` at st50+36 | +| 1.00 | arith | `move a,x:(r7+$2c)` at st03+13 | `sub #>$1,a` at st03+11 | +| 1.00 | transfer | `move a,x:(r7+$2f)` at st25+4 | `move y:(r4)+,a` at st25+3 | +| 1.00 | transfer | `move a,x:(r7+$30)` at st25+6 | `move y:(r4)+,a` at st25+5 | + +**REVERB SERVER**, ROOM (min): 1593.1 cycles a sample, 261.9 of them stalls. + +| stall/sample | kind | the instruction that waits | waits on | +|---|---|---|---| +| 8.00 | agu | `move y:(r5+n5),b` at lfrol+375 | `move y:(r6)+,n5` at lfrol+372 | +| 8.00 | arith | `move a,r5` at lfrol+378 | `add x0,a` at lfrol+377 | +| 8.00 | arith | `move a,x0` at lfrol+381 | `sub b,a b,y:(r6)+` at lfrol+380 | +| 8.00 | arith | `move a,x0` at lfrol+385 | `sub b,a` at lfrol+384 | +| 8.00 | arith | `move a,y:(r6)+` at lfrol+388 | `add b,a` at lfrol+387 | +| 8.00 | arith | `move a,x0` at lfrol+392 | `sub b,a` at lfrol+391 | + +**DELAY SERVER**, GRAIN (min): 1966.2 cycles a sample, 256.2 of them stalls. + +| stall/sample | kind | the instruction that waits | waits on | +|---|---|---|---| +| 12.00 | agu | `move y:(r5+n5),a` at proc+1117 | `move a1,r5` at proc+1116 | +| 12.00 | agu | `move y:(r5+n5),a` at proc+1214 | `move a1,r5` at proc+1213 | +| 8.00 | agu | `move y:(r5+n5),b` at proc+1111 | `move a1,r5` at proc+1109 | +| 8.00 | agu | `move y:(r5+n5),b` at proc+1208 | `move a1,r5` at proc+1206 | +| 6.00 | agu | `move y:(r5+n5),b` at proc+1409 | `move a1,r5` at proc+1408 | +| 6.00 | agu | `move y:(r5+n5),a` at proc+1414 | `move a1,r5` at proc+1413 | + +**SEND**, defaults (def): 57.5 cycles a sample, 6.9 of them stalls. + +| stall/sample | kind | the instruction that waits | waits on | +|---|---|---|---| +| 1.00 | arith | `move a,x:(r7+$15)` at proc+234 | `add x0,a` at proc+233 | +| 1.00 | arith | `move a,x0` at proc+240 | `asr #$1,a,a` at proc+239 | +| 1.00 | arith | `move a,y:(r2)+` at proc+245 | `add b,a` at proc+244 | +| 1.00 | arith | `move a,x:(r7+$17)` at proc+249 | `add y1,a` at proc+248 | +| 1.00 | arith | `move a,y:(r4)+` at proc+255 | `add b,a` at proc+254 | +| 0.12 | agu | `move a,y:(r3)` at proc+98 | `move #>$ffffff,m3` at proc+95 | + +## 4. The stock effects + +Their code is Elektron's and is not edited here; a detour could replace a +routine (`MODULES.md`). Stalls are small in most of them (4 to 35 cycles a +sample); `do`/`rep` (5 cycles a loop entered) is often the largest extra. One +pattern recurs: a two-instruction loop whose second instruction +(`mac -x1,y0,a`) writes A and whose first (`mac y1,y0,a a,x1 a,y:(r5)+n5`) +moves A on the next pass, one idle cycle a pass. DJ EQ, PLATE REV and DARK REV +share it at `P:0x9b5` (2.8 to 5.6 cycles a sample); EQUALIZER has its own at +`P:0xc22` and `P:0xc8a` (5.6 and 15). + +**CHORUS**, TAPS=5 (def): 290.0 cycles a sample, 5.1 of them stalls. + +| stall/sample | kind | the instruction that waits | waits on | +|---|---|---|---| +| 0.62 | transfer | `mac x0,y1,b b,y0` at proc+82 | `move x:(r3+$3),b` at proc+81 | +| 0.62 | arith | `move b,x:(r3+$3)` at proc+84 | `mac -y1,y0,b a,y0` at proc+83 | +| 0.62 | transfer | `mac y1,y0,b b,y0` at proc+86 | `move x:(r3),b` at proc+85 | +| 0.62 | agu | `move x:(r1)+,x1 y:(r5)+,y1` at proc+173 | `move r1,r5` at proc+170 | + +**COMB FILTER**, defaults (def): 130.0 cycles a sample, 20.2 of them stalls. + +| stall/sample | kind | the instruction that waits | waits on | +|---|---|---|---| +| 3.00 | agu | `lua (r6)+n6,r4` at proc+204 | `move x:(r2)+,n6` at proc+203 | +| 3.00 | agu-lua | `move (r4)+n4` at proc+205 | `lua (r6)+n6,r4` at proc+204 | +| 3.00 | agu | `move (r4)+n4` at proc+231 | `move r6,r4` at proc+230 | +| 1.00 | arith | `move a0,b` at proc+110 | `mpyi #>$1000,x0,a` at proc+108 | + +**COMPRESSOR**, defaults (def): 103.1 cycles a sample, 10.4 of them stalls. + +| stall/sample | kind | the instruction that waits | waits on | +|---|---|---|---| +| 2.00 | agu | `move x:(r1+$6c00),b0` at proc+41 | `move a1,r1` at proc+39 | +| 2.00 | agu | `move x:(r2+$7400),a` at proc+69 | `move a,r2` at proc+67 | +| 1.00 | arith | `move a,l:(r5)+` at proc+23 | `mac -y0,x0,a y:(r4)+,y0` at proc+22 | +| 1.00 | arith | `move a1,x0` at proc+36 | `normf b1,a` at proc+35 | + +**DARK REV**, MIXF=SEND (def): 253.5 cycles a sample, 14.7 of them stalls. + +| stall/sample | kind | the instruction that waits | waits on | +|---|---|---|---| +| 5.62 | arith | `mac y1,y0,a a,x1 a,y:(r5)+n5` at P:9b5 | `mac -x1,y0,a` at P:9b6 | +| 3.50 | arith | `tfr y0,a b,x0 b,y:(r4)+` at proc+320 | `mac y1,y0,b a,x:(r1)+` at proc+323 | +| 1.50 | arith | `move b,x:(r3)+` at P:15a1 | `mac -y0,x0,b x:(r1)+,x0` at P:15a0 | +| 0.38 | arith | `move a,x:(r1)+` at P:9b7 | `mac -x1,y0,a` at P:9b6 | + +**DJ EQ**, defaults (def): 334.5 cycles a sample, 4.9 of them stalls. + +| stall/sample | kind | the instruction that waits | waits on | +|---|---|---|---| +| 2.81 | arith | `mac y1,y0,a a,x1 a,y:(r5)+n5` at P:9b5 | `mac -x1,y0,a` at P:9b6 | +| 0.56 | agu | `move (r0)+n0` at proc+309 | `move r3,r0` at proc+306 | +| 0.56 | agu | `move (r0)+n0` at proc+314 | `move r3,r0` at proc+311 | +| 0.50 | arith | `mpy x0,y1,b a,y:(r4)+` at proc+297 | `mpy y1,x1,a` at proc+296 | + +**EQUALIZER**, TYP1=HIGH (max): 191.1 cycles a sample, 26.7 of them stalls. + +| stall/sample | kind | the instruction that waits | waits on | +|---|---|---|---| +| 15.00 | arith | `mac y1,y0,a a,x1 a,y:(r5)+n5` at proc+216 | `mac -x1,y0,a` at proc+217 | +| 5.62 | arith | `mac y1,y0,a a,x1 a,y:(r5)+n5` at proc+112 | `mac -x1,y0,a` at proc+113 | +| 3.75 | arith | `mpy -x0,y1,b a,x:(r0)+n0 b,y0` at proc+267 | `asl #$4,a,a` at proc+274 | +| 0.38 | agu | `move x:(r3+$15c7),a` at proc+91 | `move a,r3` at proc+90 | + +**FILTER**, HP=12dB (max): 280.1 cycles a sample, 11.1 of them stalls. + +| stall/sample | kind | the instruction that waits | waits on | +|---|---|---|---| +| 1.00 | arith | `mpy y0,x0,a b,x1` at proc+384 | `mpy x0,x0,b x0,y1` at proc+383 | +| 1.00 | arith | `asl a b,x0` at proc+386 | `mpy x1,x0,b y:(r5)+,y0` at proc+385 | +| 1.00 | arith | `move b,x0 y:(r5)+,y0` at proc+389 | `mpy x1,x0,b y:(r5)+,x1` at proc+388 | +| 1.00 | arith | `mpy y0,x0,a b,x1` at proc+400 | `mpy x0,x0,b x0,y1` at proc+399 | + +**FLANGER**, defaults (def): 148.6 cycles a sample, 12.3 of them stalls. + +| stall/sample | kind | the instruction that waits | waits on | +|---|---|---|---| +| 3.75 | agu-lua | `move x:(r2)+,x0 y:(r4)+,y0` at proc+210 | `lua (r0)+n0,r4` at proc+216 | +| 2.00 | arith | `move b,y:(r0)+n0` at proc+245 | `mac y1,x1,b` at proc+244 | +| 1.00 | arith | `lsr b a1,y:(r4)+` at proc+78 | `lsr a y:(r4)-,b1` at proc+77 | +| 1.00 | arith | `move b1,y:(r4)+` at proc+79 | `lsr b a1,y:(r4)+` at proc+78 | + +**LO-FI**, defaults (def): 305.9 cycles a sample, 15.8 of them stalls. + +| stall/sample | kind | the instruction that waits | waits on | +|---|---|---|---| +| 4.00 | arith | `mpy y0,x0,a b,x1` at proc+87 | `mpy x0,x0,b x0,y1` at proc+86 | +| 4.00 | arith | `asl a b,x0` at proc+89 | `mpy x1,x0,b y:(r5)+,y0` at proc+88 | +| 4.00 | arith | `move b,x0 y:(r5)+,y0` at proc+92 | `mpy x1,x0,b y:(r5)+,x1` at proc+91 | +| 2.00 | arith | `move a,x1 y:(r4)+,y0` at proc+318 | `rnd a y:(r4)+,y1` at proc+317 | + +**PHASER**, NUM=10 (def): 240.8 cycles a sample, 29.2 of them stalls. + +| stall/sample | kind | the instruction that waits | waits on | +|---|---|---|---| +| 2.00 | agu-lua | `move x:(r0)+,x0 y:(r4)+,y0` at proc+82 | `lua (r7+$24),r0` at proc+80 | +| 2.00 | arith | `move a,y:(r5)+` at proc+91 | `sub y1,a x:(r0)+,x0` at proc+90 | +| 2.00 | arith | `mpy y1,x1,a b,x1 y:(r6)-,y1` at proc+137 | `add x0,b x:(r2)+,x1 y:(r6)+,y1` at proc+136 | +| 2.00 | arith | `mpy y1,x1,b a,x1 y:(r6)+,y1` at proc+140 | `mac -x1,y0,a b,x:(r3)+ y:(r6)+,y1` at proc+139 | + +**PLATE REV**, MIXF=SEND (min): 246.9 cycles a sample, 34.5 of them stalls. + +| stall/sample | kind | the instruction that waits | waits on | +|---|---|---|---| +| 6.00 | arith | `move b,y:(r5)+` at proc+354 | `mac y0,x0,b` at proc+353 | +| 5.62 | arith | `mac y1,y0,a a,x1 a,y:(r5)+n5` at P:9b5 | `mac -x1,y0,a` at P:9b6 | +| 4.69 | arith | `tfr y0,a b,x0 b,y:(r4)+` at proc+114 | `mac y1,y0,b a,x:(r1)+` at proc+117 | +| 3.75 | arith | `mac y0,x0,a a,x:(r1)+ a,y1` at proc+250 | `mac -x0,y1,a y:(r4)+,y0` at proc+251 | + +**SPATIALIZER**, PHSE=L,R (max): 82.1 cycles a sample, 3.7 of them stalls. + +| stall/sample | kind | the instruction that waits | waits on | +|---|---|---|---| +| 1.00 | arith | `move b,x0` at proc+92 | `mac -y1,x1,b a,x1` at proc+91 | +| 1.00 | arith | `mpy y1,x1,b a,x:(r3)+` at proc+150 | `mpy y1,x1,a x:(r5)-,x1 b,y1` at proc+149 | +| 1.00 | arith | `move b,x:(r3)+` at proc+151 | `mpy y1,x1,b a,x:(r3)+` at proc+150 | +| 0.19 | agu | `move x:(r2+$520),a` at proc+168 | `move b,r2` at proc+167 | + +**SPRING REV**, TYPE=1 (def): 293.1 cycles a sample, 5.9 of them stalls. + +| stall/sample | kind | the instruction that waits | waits on | +|---|---|---|---| +| 2.81 | arith | `mac y1,y0,a a,x1 a,y:(r5)+n5` at P:9b5 | `mac -x1,y0,a` at P:9b6 | +| 1.50 | arith | `move b,x:(r3)+` at proc+739 | `mac -y0,x0,b x:(r1)+,x0` at proc+738 | +| 0.25 | arith | `move a,x:(r0)+ a,y:(r5)+` at proc+316 | `mac -x1,y0,a x:(r2)+,x1 y:(r4)+,y0` at proc+315 | +| 0.19 | agu | `move (r1)-n1` at proc+948 | `move #$6c,n1` at proc+945 | + +## 5. Not scanned + +- **Frame hooks** (LOAD METER, FRAME GUARD, the demand loader's copier, STEM + REC's DSP hook, SIDECHAIN_COMPRESSOR's hooks): no effect entry to call. The + scan traces an effect's proc. +- **The probes** (CF METER, DLPROBE, EXTPROBE, PEXT PROBE, TESTGEN): diagnostics. +- **DELAY and TAPE ECHO**: they run on the ColdFire; their DSP entry is the + passthrough stub (TAPE ECHO's measures 1.1 instructions a sample). +- **DEVILISH**: a voice of OCTA303; with nothing triggering it, its proc returns + at once (1.1 instructions a sample). A trace with a voice playing needs the + port, not `dsp_host`. +- **MULTIBCOMP**: 4.2 instructions a sample, a stub path in the stock image. + +## 6. What the scan cannot see + +- **The window's wait state and contention** (section 1). +- **One block.** An effect whose work changes over time (STUTTR's buffer + state, a slow LFO's table steps) is priced at block 263. `dsp_host`'s + `-diff` picks the traced block; scanning more blocks is a loop around the + tool. +- **The dispatcher.** `dsp_host` calls the effect through the harness's model + of the calling convention (`tools/harness/README.md`); the stock dispatcher's + own work around a call is in the unit's figures and not here. +- **Interrupts.** The frame interrupt and the host commands run between + instructions on the chip. +- **Knob paths the sweep does not visit.** Three variants a selector value; + a module with several selects (DEVILISH, VOCODER) has combinations no run + took. diff --git a/sdk/cycle-scan/README.md b/sdk/cycle-scan/README.md new file mode 100644 index 0000000000..4ee2a96527 --- /dev/null +++ b/sdk/cycle-scan/README.md @@ -0,0 +1,27 @@ +# Cycle scan + +Prices the path an Octatrack DSP effect executes: each instruction's cycles from the DSP56300 manual (Table A-1) and +the idle cycles the core inserts for some sequences (pipeline stalls, sections A.2 and 3.5), with the sites that stall. +`cycle_count.py` counts words and `dsp_host -meter` counts instructions; neither sees cycles. + +Imported from [sambanks/octabam](https://github.com/sambanks/octabam) at `cc7cffc1` (#1169, GPL-3), recorded in +[`sdk/imports/octabam-cycle-scan-cc7cffc1.json`](../imports/octabam-cycle-scan-cc7cffc1.json). [CYCLE_SCAN.md](CYCLE_SCAN.md) +is upstream's page: its results for octabam's effects and how the model compares with their unit (3.0 % above it on +average over 38 settings of 22 effects). + +It lives here, not under `sdk/octabam/tools`, because that folder is part of the module-source fingerprint +(`scripts/module-source.mjs`): no compiler reads these files, so they must not make every package count as rebuilt. + +```bash +sdk/cycle-scan/build-tools.sh # once: dsp56300 at the pin, dsp_host with -steptrace +cd sdk/octabam # needs your own OS extraction in out/raw/ +python3 ../cycle-scan/interlock_scan.py --selftest # the manual's own examples +python3 ../cycle-scan/interlock_scan.py lofi2 --sweep --json out/scan/lofi2.json +python3 ../cycle-scan/interlock_scan.py "PLATE REV" --sweep # a stock effect, from your OS file +``` + +Modwerk's adaptations, both recorded: the scanner finds the octabam tree at `sdk/octabam` (`OCTABAM_ROOT` overrides), +and, since Modwerk has no SEND module (FX2 id 0x09 is LOFI2's), its scratch image is the module beside the stock +effects with no fallback, as the modules' own `perf.py` build theirs. + +It is a model, not a measurement: the unit stays the judge ([MODULE_PERFORMANCE.md](../../docs/MODULE_PERFORMANCE.md)). diff --git a/sdk/cycle-scan/build-tools.sh b/sdk/cycle-scan/build-tools.sh new file mode 100755 index 0000000000..d6a3ef3c20 --- /dev/null +++ b/sdk/cycle-scan/build-tools.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env bash +# SPDX-License-Identifier: GPL-3.0-or-later +# Builds the DSP tools the cycle scan runs: the patched dsp56300 at octabam's pin, with this folder's dsp_host.cpp +# (upstream's, with -steptrace) staged over the harness copy, then dsp_host, dsp_asm and the disassembler. +# +# sdk/cycle-scan/build-tools.sh [OCTABAM_TREE] # default sdk/octabam; the vendor tree and binaries stay there, untracked +# +# The harness copy under sdk/octabam/tools is left as it is: tools/ is part of the module-source fingerprint +# (scripts/module-source.mjs), and changing it would make every module package count as rebuilt from new source. +set -euo pipefail +here=$(cd "$(dirname "$0")" && pwd) +tree=$(cd "${1:-$here/../octabam}" && pwd) +cd "$tree" +bash scripts/vendor.sh dsp56300 +cp "$here/dsp_host.cpp" vendor/dsp56300/source/dsp_host/dsp_host.cpp +cmake -S vendor/dsp56300 -B vendor/dsp56300/build -DCMAKE_BUILD_TYPE=Release +cmake --build vendor/dsp56300/build --target dsp56kDisassemble dsp_asm dsp_host -j"${JOBS:-2}" +vendor/dsp56300/build/source/dsp_host/dsp_host 2>&1 | grep -q steptrace || { echo "dsp_host was built without -steptrace" >&2; exit 1; } +echo "built: $tree/vendor/dsp56300/build/source/dsp_host/dsp_host (with -steptrace)" diff --git a/sdk/cycle-scan/dsp_host.cpp b/sdk/cycle-scan/dsp_host.cpp new file mode 100644 index 0000000000..72cf1182df --- /dev/null +++ b/sdk/cycle-scan/dsp_host.cpp @@ -0,0 +1,1535 @@ +// Host-side test harness for the Octatrack's DSP56300 effect algorithms. +// +// The point of this is to make DSP work debuggable. Without it the loop is +// assemble -> repack -> flash -> listen, which is hopeless for tuning something +// like a reverb. With it we can run an effect on the desktop, feed it audio and +// write a WAV. +// +// It uses the emulator from the same project that gave us the disassembler +// (dsp56kEmu, built for the Access Virus), loads a payload's full memory image +// via tools/build/dsp_modmap.py --dumpmem, and calls an effect through the ABI we +// recovered: +// +// r0 = audio block base (interleaved stereo, processed IN PLACE) +// n7 = frame count +// r6 = parameter block; x:(r6+0..5) page 1, values 0..127 << 16 +// rts to return +// +// MULTIPLE INSTANCES +// +// The reverb works on one track and hangs the moment a second one exists, so +// the harness runs N instances the way the hardware does: every instance's init +// runs first, then each block is handed to every instance in turn, each with its +// own r7 state block, its own buffer base and its own audio. +// +// The instance model is measured, not assumed. dsp/r7probe.asm returned r7 = +// 0x6200 for the first FX2 instance, and dsp/baseprobe.asm returned bases +// 0x4000 and 0x8000 for two of them -- table entries 1 and 3. Both pointers step +// by TWO per track because each track allocates an FX1 slot and an FX2 slot, and +// the FX1 one comes first: +// +// track 1 FX1 -> alloc 0 (Y:0x1000, 3072 words) r7 = 0x6100 +// track 1 FX2 -> alloc 1 (Y:0x4000, 16384 words) r7 = 0x6200 <- measured +// track 2 FX1 -> alloc 2 (Y:0x1c00) r7 = 0x6400 <- 8 Sep 2026: 0x6400, NOT 0x6300 +// track 2 FX2 -> alloc 3 (Y:0x8000) r7 = 0x6500 <- 8 Sep 2026: 0x6500, NOT 0x6400 +// ⚠️ r7 is 0x6100 + 0x300*pos + 0x100*(fx-1), THREE blocks per track: the +// stock dispatcher bumps its r7 counter after FX1 (P:0x4ae), after FX2 +// (P:0x4e4) and a third time, unconditionally, after FX2 (P:0x51e). Measured +// 8 Sep 2026 on BOTH payloads with the firmware driving the DSP through the +// ColdFire port (git show 3ceba41:docs/history/COLDFIRE_PORT.md O11). The two-per-track table this comment +// carried (r7probe's "track 2 FX2 = 0x6400" reads as position 1's FX1 under +// the real stride) put every position >= 1 low, and the one-aux return's pin +// on position 3 matched only in this harness -- never on the unit. Callers +// (rig_render, verify_one_bus, send_probe) pass -r7 1 + 3*pos + (fx-1). +// +// so FX2 instance k defaults to alloc index 1+2k and state block 0x6000+(2+2k). +// +// TWO CORES (7 Sep 2026) +// +// The DSP56721 is two cores sharing Y:0x30000-0x3FFFF, and the shipping image +// is SPECIALIZED: BusVerb exists only in payload A (core 0, tracks 5-8) and +// BusDelay only in payload B (core 1, tracks 1-4). Until now the harness booted +// one core, always payload A, so the real image's delay -- and everything that +// crosses the core boundary -- could only be exercised through the DEV hatch, +// which packs all three servers into one payload. +// +// -memB gives core 1 its own image; -core assigns each instance to a core. +// Each core is a complete DSP + memory + peripherals, boots its OWN setup +// routine (found by opcode pattern -- payload B's sits at P:0x17a where A's is +// at P:0x372, the same code relocated), and X/Y 0x30000-0x3FFFF of core 1 are +// REDIRECTED into core 0's arrays (a patch to the vendored Memory class, +// tools/patches/dsp56300.patch) so the shared window really is shared. +// +// Default scheduling is lock-step: core 0 runs its whole block, then core 1. +// That is exactly what one core used to see, so every existing render is +// bit-identical, and it is structurally blind to the cross-core race +// (modules/send/README.md) just as before. -skew N interleaves instead: core 0 runs N +// instructions ahead, then the two alternate instruction by instruction. That +// is not the hardware's timing -- it is a FUZZ of it. A green run proves +// nothing; a red one is a real defect. +// +// GUARD +// +// -guard shadows Y:0x0000..0xBFFF (all of real Y) and the loaded part of P, and +// after every proc call reports any word that changed outside the calling +// instance's own [base, base+0x3800). That catches the two things that hang this +// DSP without any symptom at the point of failure: a buffer overrun into another +// instance, and a stray write into loaded code. +// +// Usage: +// dsp_host -mem out/dsp/mem_A.mem -init -proc [options] +// -memB FILE payload B's dump: boots core 1 (tracks 1-4) +// -audioidx a,b,.. audio BUFFER per instance (default: its own, k). +// Two instances with the same index on one core +// share a buffer and run in instance order -- an +// FX1 insert followed by the same track's FX2. The +// first owner receives the input, the last owner's +// result is captured. +// -core a,b,.. which core runs each instance (0 = payload A, +// 1 = payload B; default 0). Positions on a core +// are counted per core, so the k-th instance on a +// core defaults to that core's alloc 1+2k / r7 2+2k. +// -skew N interleave the cores instruction by instruction, +// core 0 N instructions ahead (negative: behind). +// Without it the cores run lock-step, core 0 first. +// -meter FILE per-block instruction counts per core, one line +// per block: "block c0 c1". The block maximum is +// printed at the end either way. +// -ctx lo,hi,exit override the detected setup routine / dispatcher +// exit (hex) -- applies to core 0; -ctxB to core 1 +// -share lo,hi the shared window (hex, default 30000,40000) +// -dumpcore N the core whose memory -dumpy / -peeky / -peekx read +// after the run (default 0) +// -sched b:i:s=v,... at block b (decimal) set instance i's param slot +// s to v before its calls -- a knob move mid-render +// (params are re-applied every call, so the move +// lands on the DSP the way the panel's does) +// -init a[,b..] entry points, hex, one per instance. A single value +// -proc a[,b..] runs the SAME effect on every instance (the original +// behaviour); a LIST runs a different effect per +// instance, which is the only way to put a real SEND +// and a real SERVER in one session and actually +// exercise the shared bus end to end. +// -inmask BITS which instances receive the input audio (default all). +// -inmask 2 feeds instance 1 only, so instance 0's +// output is purely what came in over the bus. +// -inst N number of instances to run (default 1) +// -alloc a,b,.. allocator table index per instance (default 1,3,5,..) +// -r7 a,b,.. state block index per instance (default 2,4,6,..) +// -allocproc MODE what X:0x213 holds during proc, not init: +// perinst (default) this instance's entry +// end left past the last instance +// keep never rewritten after the inits +// -tempo BPM publish tempo24 at r6+$13 (halfword 31, as the frame builder does) +// -params a,b,... parameter values 0..127 (default 64); 6 fills page 1, +// 8 also covers the page-2 slots. Repeat the option to +// give successive instances different values. +// -pword k:off=hex[,..] raw word at pblock+off (hex off and value) of instance +// k (decimal), written after the -params words on every +// call: a knob word with its companion bits 8-15 set, +// as an LFO leaves it. +// -paramfile FILE automate parameters per block. Repeat the option to +// give successive instances their own file, in the +// same order as repeated -params. Each non-comment +// line is block,p0,p1,... (8 to 12 values); omitted +// blocks retain the last values. Events must be ordered. +// -split N[,M..] a=0 sub-block call of N frames, then a=1 for the rest. +// A LIST gives each instance its OWN split, which is what +// hardware does -- tracks trig independently. +// (the post-trig state). Omitted = split 0, where the +// a=0 call is SKIPPED -- what the dispatcher does. +// -guard [words] police buffer bounds (default window 0x3800 words) +// -guard-shared also police the shared Y window after every call; +// use with -guard for effects whose allocator buffers +// can live above the core-private Y range +// -frames N frames per block (default 32) +// -blocks N blocks to run (default 256) +// -in file.raw 24-bit mono raw input, else an impulse is used. +// A LIST gives each instance its own file; "-" is +// silence. (-inmask still gates it.) +// -stereo the -in files are INTERLEAVED L,R (two words a +// frame) instead of mono copied to both channels -- +// rig_render's mixer model needs it for AMP BAL, +// which is pre-FX and per side (12 Sep 2026) +// -out file.raw write instance 0; others go to file.raw.i1, .i2, ... +// -track a,b,.. r7-relative X words (hex) dumped EVERY block, so a +// rate can be MEASURED by differencing -- -peekx only +// snapshots once, after the run +// -trackout FILE where -track writes (default /tmp/dsp_track.txt) +// -trackinst K which instance -track samples (default 0) +// -trace N log the first N instructions executed +// -steptrace step hardware DO loops one instruction at a time +// (the emulator's host-stepped mode, as ot_emu runs +// it), so -trace shows a loop's body; without it the +// interpreter runs a whole DO loop in one step and the +// trace jumps from the `do` to its end +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "dsp56kEmu/dsp.h" +#include "dsp56kEmu/memory.h" +#include "dsp56kEmu/peripherals.h" + +using namespace dsp56k; + +namespace { + +struct ParamEvent { + int block = 0; + std::vector values; +}; + +class AllowAll : public IMemoryValidator { +public: + bool memValidateAccess(EMemArea, TWord, bool) const override { return true; } +}; + +struct Args { + std::string mem, memB, out; + std::vector in; // one per instance, or one for all + TWord init = 0, proc = 0, audio = 0x000080, params = 0x000100, state = 0x010000; + int frames = 32, blocks = 256, trace = 0, diff = 0, spray = 0; + bool steptrace = false; + TWord flags = 0; int pingpong = -1; + int inst = 1; TWord dirty = 0; bool noctl = false; + bool dispatch = false; int fx2tracks = 0; TWord fxid = 0x16; + int split = 0; TWord prevfx = 0; + std::vector splitList; // split per instance + std::vector allocIdx, r7Idx, coreIdx, audioIdx; + std::vector initList, procList; // entry points, one per instance + unsigned inmask = ~0u; // which instances get the input + bool stereo = false; // -in is interleaved L,R + std::vector> pv; // one parameter set per instance + std::vector> pwords; // -pword: (instance, offset, word) + std::vector> paramEvents; // one event stream per instance + std::string allocProc = "perinst"; + bool guard = false, guardShared = false; TWord guardWords = 0x3800; + std::vector peekY, peekX; + std::string dumpyFile; TWord dumpyLo = 0, dumpyHi = 0; + std::vector track; // r7-relative X words, dumped EVERY block + int trackInst = 0; // -trackinst: which instance -track samples + std::string trackOut; + std::vector> pokeY; + struct Sched { int block, inst, slot, val; }; + std::vector sched; // -sched, in order + int dumpCore = 0; // -dumpcore: whose memory -dumpy/-peeky/-peekx read + double tempo = 0; // -tempo BPM: publish tempo24 at r6+$13 like the frame builder + long skew = 0; bool interleave = false; + std::string meterFile; + std::vector ctx, ctxB; // lo,hi,exit overrides + TWord shareLo = 0x30000, shareHi = 0x40000; +}; + +// Everything the dispatcher would set up for one effect instance. +struct Instance { + int core = 0; // which DSP runs it + int pos = 0; // its position on that core (0 = the housekeeper) + TWord alloc = 0; // X address of its entry in the base table + TWord base = 0; // Y base that entry holds + TWord state = 0; // r7 + TWord audio = 0; // r0 + bool fills = true; // first owner of its audio buffer: receives the input + bool captures = true; // last owner: its result is the track's output + TWord init = 0; // this instance's entry points -- per-instance so a + TWord proc = 0; // SEND and a SERVER can run in the same session + bool fed = true; // does this instance receive the input audio? + int split = 0; // ITS OWN split -- every track trigs + // independently on hardware, so two tracks + // sharing the bus can be running different + // splits, and the bus frame offset is + // per-track (XBUS.md). One split for all + // instances cannot model that at all. + std::vector pv; + std::ofstream out; + std::vector input; size_t inPos = 0; bool hasInput = false; + long nonzero = 0; + long violations = 0; + long clobbers = 0; + long cycles = 0; + long procCalls = 0; +}; + +// The frame-context addresses that differ between the two payloads: the setup +// routine the harness runs to derive the control words, the track loop it +// falls into, and where the dispatcher exits. Payload A's were read from the +// listing (P:0x372..0x39e, loop 0x385, exit 0x53e); payload B's are the same +// code relocated (P:0x17a..0x1a3, loop 0x18b, exit 0x333; measured 7 Sep 2026 +// by matching the opcode sequence). Detected by pattern so a re-linked payload +// cannot silently run the wrong range -- which is what "cannot boot payload B" +// was for a year. +struct Ctx { + TWord setupLo = 0, setupHi = 0, loop = 0, exit = 0; + bool ok() const { return setupLo && setupHi && exit; } +}; + +// A shadow of the memory an effect must not touch. Y is only real up to 0xC000 +// (measured with dsp/ymemprobe.asm); P is checked over the loaded image so a +// stray write into code shows up as itself rather than as a hang later. +struct Guard { + static const TWord Y_HI = 0xC000; + static const TWord P_HI = 0x20000; + std::vector y, p; + bool armed = false; + const std::vector* loadedY = nullptr; + const std::vector* loadedP = nullptr; + + void arm(Memory& mem, const std::vector& ly, const std::vector& lp) { + y.resize(Y_HI); p.resize(P_HI); + loadedY = &ly; loadedP = &lp; + snap(mem); + armed = true; + } + void snap(Memory& mem) { + for (TWord ad = 0; ad < Y_HI; ++ad) y[ad] = mem.get(MemArea_Y, ad); + for (TWord ad = 0; ad < P_HI; ++ad) p[ad] = mem.get(MemArea_P, ad); + } + // Report anything that changed outside [lo, hi) in Y, or at all in P. + // Returns the number of offending regions; resyncs the shadow either way. + // Two separate questions, because they have different severities: + // stray -- wrote outside [lo, hi), which for the stash is deliberate + // clobber -- wrote over a word a loaded module put there, which never is + int check(Memory& mem, TWord lo, TWord hi, const char* who, const char* when, + int block, bool quiet, int& clobber) { + int stray = 0; + TWord runLo = 0; bool inRun = false, runClob = false; + auto flush = [&](TWord end, const char* area) { + if (!inRun) return; + if (runClob) ++clobber; else ++stray; + if (!quiet && stray + clobber <= 12) + std::printf(" %s %s %s block %d wrote %s:0x%05x..0x%05x (%u words)%s\n", + runClob ? "!! CLOBBER" : " stray ", who, when, block, area, + runLo, end - 1, end - runLo, + runClob ? " -- OVER A LOADED MODULE" : ""); + inRun = false; runClob = false; + }; + for (TWord ad = 0; ad < Y_HI; ++ad) { + const TWord v = mem.get(MemArea_Y, ad); + const bool changed = v != y[ad]; + if (changed) y[ad] = v; + const bool bad = changed && !(ad >= lo && ad < hi); + if (bad) { + if (!inRun) { runLo = ad; inRun = true; } + if ((*loadedY)[ad]) runClob = true; + } else flush(ad, "Y"); + } + flush(Y_HI, "Y"); + for (TWord ad = 0; ad < P_HI; ++ad) { + const TWord v = mem.get(MemArea_P, ad); + if (v != p[ad]) { + p[ad] = v; + if (!inRun) { runLo = ad; inRun = true; } + if ((*loadedP)[ad]) runClob = true; + } else flush(ad, "P"); + } + flush(P_HI, "P"); + return stray; + } +}; + +// One shadow for the Y window shared by both cores. Separate per-core shadows +// would report core 0's legitimate write when core 1 next ran: both cores map +// this range to the same physical words. Checking and resyncing one shadow +// after every completed instance call gives each writer exactly its allocator +// window while still catching a cross-core or neighboring-buffer write. +struct SharedGuard { + std::vector y; + TWord lo = 0, hi = 0; + bool armed = false; + + void arm(Memory& mem, TWord first, TWord last) { + lo = first; hi = last; y.resize(hi - lo); + for (TWord ad = lo; ad < hi; ++ad) y[ad - lo] = mem.get(MemArea_Y, ad); + armed = true; + } + int check(Memory& mem, TWord allowLo, TWord allowHi, const char* who, + const char* when, int block, bool quiet) { + int stray = 0; + TWord runLo = 0; bool inRun = false; + auto flush = [&](TWord end) { + if (!inRun) return; + ++stray; + if (!quiet && stray <= 12) + std::printf(" stray %s %s block %d wrote Y:0x%05x..0x%05x (%u words)\n", + who, when, block, runLo, end - 1, end - runLo); + inRun = false; + }; + for (TWord ad = lo; ad < hi; ++ad) { + const TWord value = mem.get(MemArea_Y, ad); + const bool changed = value != y[ad - lo]; + if (changed) y[ad - lo] = value; + const bool bad = changed && !(ad >= allowLo && ad < allowHi); + if (bad) { + if (!inRun) { runLo = ad; inRun = true; } + } else flush(ad); + } + flush(hi); + return stray; + } +}; + +// One DSP core: its own memory image, peripherals, frame context and guard. +struct Core { + int id = 0; + std::string path; + AllowAll validator; + std::unique_ptr mem; + std::unique_ptr periphX; + std::unique_ptr periphY; + std::unique_ptr dsp; + std::vector loadedY, loadedP; // which words a loaded module occupies + Ctx ctx; + TWord pblock = 0, stateBase = 0, cnt = 0, ctlA = 0, ctlB = 0; + Guard guard; + std::vector insts; // global instance indices, dispatch order + // the meter: instructions per block on this core + long blockInstr = 0, maxBlockInstr = 0; int maxBlock = -1; + long initInstr = 0; + std::vector meter; +}; + +// Which Y and P words a loaded module occupies. Writing over one of these is +// the bug that made the reverb hang on two tracks: the base stash was placed in +// a window that is free in payload A but holds a live 128-word coefficient table +// in payload B, so the effect corrupted another algorithm and then read that +// algorithm's data back as its own buffer base. +bool loadMem(Core& c, int& modules, long& words) { + std::ifstream f(c.path, std::ios::binary); + if (!f.is_open()) { std::cerr << "cannot open " << c.path << "\n"; return false; } + modules = 0; words = 0; + c.loadedY.assign(0xC000, false); + c.loadedP.assign(0x20000, false); + for (;;) { + uint8_t sp; uint32_t addr, cnt; + f.read(reinterpret_cast(&sp), 1); + f.read(reinterpret_cast(&addr), 4); + f.read(reinterpret_cast(&cnt), 4); + if (!f || sp == 0xff) break; + for (uint32_t i = 0; i < cnt; ++i) { + uint32_t w; f.read(reinterpret_cast(&w), 4); + const TWord ad = addr + i; + if (sp == 0) { + c.dsp->memWriteP(ad, w & 0xffffff); + if (ad < c.loadedP.size()) c.loadedP[ad] = true; + } else if (sp == 1) { + c.dsp->memWrite(MemArea_X, ad, w & 0xffffff); + } else { + c.dsp->memWrite(MemArea_Y, ad, w & 0xffffff); + if (ad < c.loadedY.size()) c.loadedY[ad] = true; + } + } + ++modules; words += cnt; + } + return true; +} + +// Find the frame-context setup routine and the dispatcher exit by opcode +// pattern. The anchor is `move #>$6000,x0 / move x0,x:>$20a` (44f400 006000 +// 447000 00020a): the state-base seed no other code writes. The routine +// starts at the `move #$0,x0` (240000) that precedes the run of two-word +// `move x0,x:>$nnn` stores before it, and its last store is +// `move a,x:>$20e` (567000 00020e). The exit is the `move x:>$415,a` +// (56f000 000415) that follows the loop's `bne` (0d1042 ffxxxx). +Ctx detectCtx(Memory& mem) { + Ctx c; + auto P = [&](TWord a) { return mem.get(MemArea_P, a); }; + for (TWord a = 0; a + 4 < 0x2000; ++a) { + if (P(a) == 0x44f400 && P(a + 1) == 0x006000 && P(a + 2) == 0x447000 && P(a + 3) == 0x00020a) { + TWord s = a; + while (s >= 2 && P(s - 2) == 0x447000) s -= 2; + if (s >= 1 && P(s - 1) == 0x240000) c.setupLo = s - 1; + for (TWord e = a; e < a + 0x40; ++e) + if (P(e) == 0x567000 && P(e + 1) == 0x00020e) { c.setupHi = e + 1; break; } + break; + } + } + // The track loop: the first `move x:>$415,r2` (62f000 000415) after the setup start. + if (c.setupLo) + for (TWord a = c.setupLo; a < c.setupLo + 0x40; ++a) + if (P(a) == 0x62f000 && P(a + 1) == 0x000415) { c.loop = a; break; } + for (TWord a = 0; a + 3 < 0x2000; ++a) + if (P(a) == 0x0d1042 && (P(a + 1) & 0xff0000) == 0xff0000 && + P(a + 2) == 0x56f000 && P(a + 3) == 0x000415) { c.exit = a + 2; break; } + return c; +} + +// One instruction. A host-stepped core (-steptrace) returns from a `do` before +// its body runs, and the loop-end test is the host's: doLoopEnd() after every +// step, as tools/emu/ot_emu does. Without -steptrace this is execInterpreter(). +inline void step(DSP& dsp) { + dsp.execInterpreter(); + if (dsp.isHostStepped()) + dsp.doLoopEnd(); +} + +// Run from _pc until the matching rts pops back past the entry stack depth. +uint32_t g_lastCycles = 0; +const TWord SENTINEL = 0x03f000; // must be a MAPPED P address -- an + // out-of-range one faults as soon as the + // rts returns to it +bool runToRts(DSP& dsp, TWord pc, int trace, const char* what, uint32_t maxCycles = 50000000) { + // Call through the emulator's own jsr so the return address is pushed the + // way the hardware would. + dsp.setPC(SENTINEL); + dsp.jsr(pc); + for (uint32_t i = 0; i < maxCycles; ++i) { + const TWord cur = dsp.getPC().toWord(); + if (cur == SENTINEL) { g_lastCycles = i; return true; } + if (trace && static_cast(i) < trace) + std::printf(" %s %6u pc=%06x a=%012llx r5=%06x n5=%06x m5=%06x x1=%06x n7=%06x\n", what, i, cur, + static_cast(dsp.regs().a.var & 0xffffffffffffull), + dsp.regs().r[5].var & 0xffffff, dsp.regs().n[5].var & 0xffffff, + dsp.regs().m[5].var & 0xffffff, + (unsigned)(dsp.regs().x.var >> 24) & 0xffffff, + dsp.regs().n[7].var); + step(dsp); // single-step; exec() may JIT past the sentinel + } + std::cerr << what << ": did not return after " << maxCycles << " cycles (pc=" + << std::hex << dsp.getPC().toWord() << ")\n"; + return false; +} + +// Run a straight-line range of P memory (used for the frame context setup). +void runRange(DSP& dsp, TWord lo, TWord hi) { + dsp.setPC(lo); + while (dsp.getPC().toWord() <= hi) + step(dsp); +} + +void dumpRegs(DSP& dsp, Memory& mem) { + std::printf(" r0=%06x r1=%06x r2=%06x r3=%06x r4=%06x r5=%06x r6=%06x r7=%06x\n", + dsp.regs().r[0].var, dsp.regs().r[1].var, dsp.regs().r[2].var, + dsp.regs().r[3].var, dsp.regs().r[4].var, dsp.regs().r[5].var, + dsp.regs().r[6].var, dsp.regs().r[7].var); + std::printf(" m0=%06x m1=%06x m2=%06x m3=%06x m4=%06x m5=%06x n7=%06x\n", + dsp.regs().m[0].var, dsp.regs().m[1].var, dsp.regs().m[2].var, + dsp.regs().m[3].var, dsp.regs().m[4].var, dsp.regs().m[5].var, + dsp.regs().n[7].var); + std::printf(" x:0x20a=%06x x:0x213=%06x x:0x418=%06x\n", + mem.get(MemArea_X, 0x20a), mem.get(MemArea_X, 0x213), + mem.get(MemArea_X, 0x418)); +} + +std::vector parseList(const char* s) { + std::vector v; + std::string t(s); + for (char* p = strtok(&t[0], ","); p; p = strtok(nullptr, ",")) v.push_back(atoi(p)); + return v; +} + +// Same, but hex -- for the entry-point lists, which are quoted in hex +// everywhere else on the command line. +std::vector parseHexList(const char* s) { + std::vector v; + std::string t(s); + for (char* p = strtok(&t[0], ","); p; p = strtok(nullptr, ",")) + v.push_back(strtoul(p, nullptr, 16)); + return v; +} + +std::vector parseStrList(const char* s) { + std::vector v; + std::string t(s); + for (char* p = strtok(&t[0], ","); p; p = strtok(nullptr, ",")) v.push_back(p); + return v; +} + +// One effect call as the dispatcher would make it, resumable one instruction +// at a time so two cores can be interleaved. `begin` sets the registers and +// pushes the return address through the emulator's own jsr, exactly as +// runToRts does; `step` executes one instruction and reports whether the +// sentinel came back. +struct Call { + int inst = -1; + bool ctl = false; // the a=0 sub-block call + uint32_t steps = 0; +}; + +} // namespace + +int main(int argc, char** argv) { + Args a; + for (int i = 1; i < argc; ++i) { + std::string k = argv[i]; + auto v = [&] { return std::string(argv[++i]); }; + if (k == "-mem") a.mem = v(); + else if (k == "-memB") a.memB = v(); + else if (k == "-init") { a.initList = parseHexList(argv[++i]); a.init = a.initList[0]; } + else if (k == "-proc") { a.procList = parseHexList(argv[++i]); a.proc = a.procList[0]; } + else if (k == "-inmask") a.inmask = strtoul(argv[++i], nullptr, 0); + else if (k == "-stereo") a.stereo = true; + else if (k == "-audio") a.audio = strtoul(argv[++i], nullptr, 16); + else if (k == "-pblock") a.params = strtoul(argv[++i], nullptr, 16); + else if (k == "-tempo") a.tempo = atof(argv[++i]); + else if (k == "-state") a.state = strtoul(argv[++i], nullptr, 16); + else if (k == "-frames") a.frames = atoi(argv[++i]); + else if (k == "-blocks") a.blocks = atoi(argv[++i]); + else if (k == "-trace") a.trace = atoi(argv[++i]); + else if (k == "-steptrace") a.steptrace = true; + else if (k == "-trackinst") a.trackInst = atoi(argv[++i]); + else if (k == "-flags") a.flags = strtoul(argv[++i], nullptr, 16); + else if (k == "-diff") a.diff = atoi(argv[++i]); + else if (k == "-spray") a.spray = atoi(argv[++i]); + else if (k == "-pp") a.pingpong = atoi(argv[++i]); + else if (k == "-inst") a.inst = atoi(argv[++i]); + else if (k == "-dirty") a.dirty = strtoul(argv[++i], nullptr, 0); + else if (k == "-noctl") a.noctl = true; + else if (k == "-in") a.in = parseStrList(argv[++i]); + else if (k == "-out") a.out = v(); + else if (k == "-dispatch") a.fx2tracks = atoi(argv[++i]), a.dispatch = true; + else if (k == "-fxid") a.fxid = strtoul(argv[++i], nullptr, 16); + else if (k == "-split") { a.splitList = parseList(argv[++i]); + a.split = a.splitList.empty() ? 0 : a.splitList[0]; } + else if (k == "-prevfx") a.prevfx = strtoul(argv[++i], nullptr, 16); + else if (k == "-alloc") a.allocIdx = parseList(argv[++i]); + else if (k == "-r7") a.r7Idx = parseList(argv[++i]); + else if (k == "-core") a.coreIdx = parseList(argv[++i]); + else if (k == "-audioidx") a.audioIdx = parseList(argv[++i]); + else if (k == "-skew") { a.skew = atol(argv[++i]); a.interleave = true; } + else if (k == "-meter") a.meterFile = v(); + else if (k == "-ctx") a.ctx = parseHexList(argv[++i]); + else if (k == "-ctxB") a.ctxB = parseHexList(argv[++i]); + else if (k == "-share") { auto s = parseHexList(argv[++i]); + if (s.size() == 2) { a.shareLo = s[0]; a.shareHi = s[1]; } } + else if (k == "-allocproc") a.allocProc = v(); + else if (k == "-params") { + auto p = parseList(argv[++i]); + std::vector pv(8, 64); + for (size_t j = 0; j < p.size() && j < 12; ++j) { + if (j >= pv.size()) pv.resize(j + 1, 0); + pv[j] = p[j]; + } + a.pv.push_back(pv); + } + else if (k == "-pword") { + const std::string spec = argv[++i]; + size_t pos = 0; + while (pos < spec.size()) { + size_t comma = spec.find(',', pos); + if (comma == std::string::npos) comma = spec.size(); + const std::string item = spec.substr(pos, comma - pos); + const size_t col = item.find(':'), eq = item.find('='); + if (col == std::string::npos || eq == std::string::npos) { std::cerr << "-pword wants k:off=hex\n"; return 1; } + a.pwords.push_back({static_cast(strtoul(item.substr(0, col).c_str(), nullptr, 10)), + static_cast(strtoul(item.substr(col + 1, eq - col - 1).c_str(), nullptr, 16)), + static_cast(strtoul(item.substr(eq + 1).c_str(), nullptr, 16))}); + pos = comma + 1; + } + } + else if (k == "-paramfile") { + const std::string path = v(); + std::ifstream f(path); + if (!f.is_open()) { + std::cerr << "cannot open parameter automation " << path << "\n"; + return 1; + } + std::vector events; + std::string line; + int last = -1; + while (std::getline(f, line)) { + const size_t hash = line.find('#'); + if (hash != std::string::npos) line.resize(hash); + if (line.find_first_not_of(" \t\r\n") == std::string::npos) continue; + auto row = parseList(&line[0]); + if (row.size() < 2 || row[0] < 0 || row[0] < last) { + std::cerr << "bad parameter automation row: " << line << "\n"; + return 1; + } + ParamEvent e; + e.block = row[0]; + e.values.assign(row.begin() + 1, row.end()); + if (e.values.size() < 8 || e.values.size() > 12 + || std::any_of(e.values.begin(), e.values.end(), + [](int value) { return value < 0 || value > 127; })) { + std::cerr << "parameter automation needs 8 to 12 values in 0..127: " + << line << "\n"; + return 1; + } + events.push_back(e); + last = e.block; + } + a.paramEvents.push_back(events); + } + else if (k == "-guard") { + a.guard = true; + if (i + 1 < argc && argv[i + 1][0] != '-') + a.guardWords = strtoul(argv[++i], nullptr, 0); + } + else if (k == "-guard-shared") a.guardShared = true; + else if (k == "-peeky") { + std::string t(argv[++i]); + for (char* p = strtok(&t[0], ","); p; p = strtok(nullptr, ",")) + a.peekY.push_back(strtoul(p, nullptr, 16)); + } + else if (k == "-track") a.track = parseHexList(argv[++i]); + else if (k == "-trackout") a.trackOut = v(); + else if (k == "-peekx") { + std::string t(argv[++i]); + for (char* p = strtok(&t[0], ","); p; p = strtok(nullptr, ",")) + a.peekX.push_back(strtoul(p, nullptr, 16)); + } + else if (k == "-dumpy") { + std::string t(argv[++i]); + char* p = strtok(&t[0], ","); + a.dumpyLo = strtoul(p, nullptr, 16); + a.dumpyHi = strtoul(strtok(nullptr, ","), nullptr, 16); + a.dumpyFile = strtok(nullptr, ","); + } + else if (k == "-dumpcore") a.dumpCore = atoi(argv[++i]); + else if (k == "-sched") { + std::string t(argv[++i]); + for (char* p = strtok(&t[0], ","); p; p = strtok(nullptr, ",")) { + Args::Sched sc{}; + if (std::sscanf(p, "%d:%d:%d=%d", &sc.block, &sc.inst, &sc.slot, &sc.val) == 4) + a.sched.push_back(sc); + } + } + else if (k == "-pokey") { + std::string t(argv[++i]); + for (char* p = strtok(&t[0], ","); p; p = strtok(nullptr, ",")) { + char* eq = strchr(p, '='); + if (!eq) continue; + *eq = 0; + a.pokeY.push_back({static_cast(strtoul(p, nullptr, 16)), + static_cast(strtoul(eq + 1, nullptr, 16))}); + } + } + else { + std::cerr << "unknown option " << k << "\n"; + return 2; + } + } + if (argc > 1 && std::string(argv[argc - 1]) == "-guard") a.guard = true; + + if (a.mem.empty() || !a.proc) { + std::cerr << "usage: dsp_host -mem -init -proc [-params a,b,..]\n" + " [-memB ] [-core a,b] [-skew N] [-meter FILE]\n" + " [-inst N] [-alloc a,b] [-r7 a,b] [-allocproc MODE] [-guard]\n" + " [-frames N] [-blocks N] [-in raw[,raw..]] [-out raw]\n" + " [-paramfile FILE ...] [-guard-shared] [-trace N] [-steptrace]\n"; + return 2; + } + if (a.inst < 1) a.inst = 1; + if (a.pv.empty()) a.pv.push_back(std::vector(8, 64)); + if (a.paramEvents.size() > static_cast(a.inst)) { + std::cerr << "more -paramfile options than instances\n"; + return 2; + } + + setvbuf(stdout, nullptr, _IONBF, 0); + + // ---- the cores ---------------------------------------------------------- + const int ncores = a.memB.empty() ? 1 : 2; + std::vector> cores; + for (int c = 0; c < ncores; ++c) { + cores.emplace_back(new Core); + Core& C = *cores.back(); + C.id = c; + C.path = c ? a.memB : a.mem; + std::printf("core %d: constructing DSP ...\n", c); + C.mem.reset(new Memory(C.validator, 0x080000, 0x800000, 0x200000)); // sizes the library's own tests use + C.periphX.reset(new Peripherals56362); + C.periphY.reset(new Peripherals56367); + C.dsp.reset(new DSP(*C.mem, C.periphX.get(), C.periphY.get())); + if (a.steptrace) C.dsp->setHostStepped(true); + if (c == 1) { + // Core 1's shared window lives in core 0's arrays. Both X and Y: + // on the chip P/X/Y all alias there (docs/firmware/CHIP.md), and the + // emulator keeps each core's X and Y apart exactly as it did + // before, so a single-core render is unchanged. + Core& C0 = *cores[0]; + C.mem->setSharedWindow(a.shareLo, a.shareHi, + C0.mem->getMemAreaPtr(MemArea_X) + a.shareLo, + C0.mem->getMemAreaPtr(MemArea_Y) + a.shareLo); + std::printf("core 1: X/Y 0x%05x..0x%05x shared with core 0\n", a.shareLo, a.shareHi - 1); + } + int modules = 0; long words = 0; + if (!loadMem(C, modules, words)) return 1; + std::printf("core %d: loaded %d modules, %ld words from %s\n", c, modules, words, C.path.c_str()); + + // ---- frame context -------------------------------------------------- + // The effects depend on control words that no module initialises; the + // DSP's own setup routine derives them from two loaded pointers + // (x:0x415, x:0x416). Rather than reconstruct that by hand, run it -- + // at whichever address THIS payload keeps it. + C.ctx = detectCtx(*C.mem); + const std::vector& ov = c ? a.ctxB : a.ctx; + if (ov.size() == 3) { C.ctx.setupLo = ov[0]; C.ctx.setupHi = ov[1]; C.ctx.exit = ov[2]; } + if (!C.ctx.ok()) { + std::printf("core %d: !! could not find the frame-context setup routine in this dump " + "(pass -ctx%s lo,hi,exit)\n", c, c ? "B" : ""); + return 1; + } + std::printf("core %d: setup P:0x%05x..0x%05x, track loop P:0x%05x, dispatcher exit P:0x%05x\n", + c, C.ctx.setupLo, C.ctx.setupHi, C.ctx.loop, C.ctx.exit); + // It reads the frame count out of x:(x:0x415 + 0x1e) as (w >> 8) & 0xf, so + // seed that first. The count is capped at 15 frames by the & 0xf. + // 9 Sep 2026 (git show 3ceba41:docs/history/COLDFIRE_PORT.md O12): under the firmware that nibble is + // the track's SPLIT, and 0 means a whole 16-sample block (x:$20c = 0, + // x:$20d = 16 at every unsplit dispatch, measured with the ColdFire + // port); the cap at 15 had every harness render processing 15 samples + // per block where the unit does 16, which is 16/15 on every per-block + // rate (BusVerb's allpass modulator, any per-block LFO). -frames 16 + // seeds the field as 0 and moves 16 samples per block. + if (a.frames > 16) { std::printf("frames capped to 16 (a whole block)\n"); a.frames = 16; } + const TWord blkA = C.mem->get(MemArea_X, 0x415); + C.mem->set(MemArea_X, blkA + 0x1e, (static_cast(a.frames & 0xf) << 8) | a.flags); + std::printf("core %d: seeded x:0x%05x+0x1e = frames %d\n", c, blkA, a.frames); + + runRange(*C.dsp, C.ctx.setupLo, C.ctx.setupHi); + if (a.pingpong >= 0) { C.mem->set(MemArea_X, 0x41f, static_cast(a.pingpong)); + std::printf("ping-pong selector x:0x41f = %d\n", a.pingpong); } + + C.ctlA = C.mem->get(MemArea_X, 0x419); + C.ctlB = C.mem->get(MemArea_X, 0x208); + // The per-block sample count is the a=0 sub-block's (x:$20c) when the + // frame is split, else the a=1 call's (x:$20d): the stock dispatcher + // skips the a=0 call at x:$20c == 0 and makes the a=1 call with n7 = + // x:$20d = 16 (git show 3ceba41:docs/history/COLDFIRE_PORT.md O12, measured under the firmware). + // At the legacy -frames 15 this still reads 15, so every existing + // bit-identity gate is untouched; at -frames 16 it reads 16. + C.cnt = C.mem->get(MemArea_X, 0x20c) ? C.mem->get(MemArea_X, 0x20c) : C.mem->get(MemArea_X, 0x20d); + std::printf("core %d: context: x:0x419=0x%05x x:0x208=0x%05x x:0x20c=%u (frames) " + "x:0x20d=%u x:0x20e=%u\n", c, C.ctlA, C.ctlB, C.cnt, + C.mem->get(MemArea_X, 0x20d), C.mem->get(MemArea_X, 0x20e)); + if (!C.cnt) { std::printf(" !! frame count is 0 -- the dispatcher would skip the effect\n"); } + // The dispatcher hands the routine r6 = x:0x208 + 6 and r7 = a state block. + C.pblock = C.ctlB + 6; + C.stateBase = C.mem->get(MemArea_X, 0x20a); + } + Core& C0 = *cores[0]; + Memory& mem = *C0.mem; // core 0's, for the single-core paths below + DSP& dsp = *C0.dsp; + + // ---- instances -------------------------------------------------------- + // DSP_ALLOC_IDX is kept for the single-instance case that predates -inst. + const char* ai = getenv("DSP_ALLOC_IDX"); + + std::vector inst(a.inst); + for (int k = 0; k < a.inst; ++k) { + Instance& I = inst[k]; + I.core = (k < static_cast(a.coreIdx.size())) ? a.coreIdx[k] : 0; + if (I.core < 0 || I.core >= ncores) { + std::printf("instance %d: core %d does not exist (%s)\n", k, I.core, + ncores == 1 ? "pass -memB to boot core 1" : "cores are 0 and 1"); + return 2; + } + Core& C = *cores[I.core]; + I.pos = static_cast(C.insts.size()); + C.insts.push_back(k); + // Defaults count positions PER CORE: the k-th instance on a core is + // that core's k-th FX2 slot. With one core that is the old k. + int ia = (k < static_cast(a.allocIdx.size())) ? a.allocIdx[k] : 1 + 2 * I.pos; + int ir = (k < static_cast(a.r7Idx.size())) ? a.r7Idx[k] : 2 + 2 * I.pos; + if (ai && a.inst == 1 && a.allocIdx.empty()) { ia = strtoul(ai, nullptr, 0); ir = ia; } + I.alloc = 0x255 + ia; + I.base = C.mem->get(MemArea_X, I.alloc); + I.state = C.stateBase + ir * 0x100; + const int aidx = (k < static_cast(a.audioIdx.size())) ? a.audioIdx[k] : k; + I.audio = a.audio + aidx * 0x40; // 15 frames = 30 words, well clear + // Buffer ownership on this core: the first instance on a buffer is + // fed, the last one is captured, the ones between see the previous + // instance's output -- the FX1 -> FX2 chain of one track. + for (int j = 0; j < k; ++j) + if (inst[j].core == I.core && inst[j].audio == I.audio) { I.fills = false; inst[j].captures = false; } + I.pv = a.pv[std::min(k, a.pv.size() - 1)]; + // Entry points fall back to the LAST list entry, so a single -init/-proc + // still runs one effect on every instance -- the behaviour every existing + // caller depends on. A list runs a DIFFERENT effect per instance, which is + // what a SEND feeding a SERVER needs: the two are separate modules in the + // same payload, and until now the harness could only ever run one of them. + I.init = a.initList.empty() ? a.init + : a.initList[std::min(k, a.initList.size() - 1)]; + I.proc = a.procList.empty() ? a.proc + : a.procList[std::min(k, a.procList.size() - 1)]; + I.fed = (a.inmask >> k) & 1; + I.split = a.splitList.empty() ? a.split + : a.splitList[std::min(k, a.splitList.size() - 1)]; + std::printf("instance %d: core %d pos %d, r7 = X:0x%05x (idx %d), base = Y:0x%05x (X:0x%03x idx %d), " + "audio X:0x%05x%s, init P:0x%05x proc P:0x%05x%s\n", + k, I.core, I.pos, I.state, ir, I.base, I.alloc, ia, I.audio, + I.fills ? "" : " (chained)", I.init, I.proc, + I.fed ? "" : " [no input]"); + std::printf(" params"); + for (int p : I.pv) std::printf(" %d", p); + std::printf("\n"); + if (!a.out.empty()) + I.out.open(k ? a.out + ".i" + std::to_string(k) : a.out, std::ios::binary); + // -in: one file for everyone (the old behaviour) or one per instance. + if (!a.in.empty()) { + const std::string& f = a.in.size() == 1 ? a.in[0] + : (k < static_cast(a.in.size()) ? a.in[k] : std::string("-")); + if (f != "-") { + std::ifstream fi(f, std::ios::binary); + if (!fi.is_open()) { std::cerr << "cannot open input " << f << "\n"; return 1; } + int32_t s; + while (fi.read(reinterpret_cast(&s), 4)) I.input.push_back(s); + } + I.hasInput = true; // named input, even if "-" (silence, not the impulse) + } + } + // Two instances landing on the same buffer or the same state block ON THE + // SAME CORE is not a configuration the hardware produces; say so rather + // than debug the result. (The same addresses on different cores are the + // normal case -- each core has its own private X and Y.) + for (int k = 1; k < a.inst; ++k) + for (int j = 0; j < k; ++j) { + if (inst[k].core != inst[j].core) continue; + if (inst[k].base == inst[j].base) + std::printf(" !! instances %d and %d share base Y:0x%05x\n", j, k, inst[k].base); + if (inst[k].state == inst[j].state) + std::printf(" !! instances %d and %d share r7 X:0x%05x\n", j, k, inst[k].state); + } + + // Page 1 is pblock+0..5. Page 2 is THREE words, each carrying TWO + // controls -- settled on hardware 17 Aug 2026 (docs/firmware/PARAM_PAGES.md): + // + // slot 6 -> +$c KNOB (bits 16-23) slot 7 -> +$c COMPANION (bits 8-15) + // slot 8 -> +$d KNOB slot 9 -> +$d COMPANION + // slot 10-> +$e KNOB slot 11 -> +$e COMPANION + // + // ⚠️ THE OLD MAP HERE WAS WRONG AND IT COST MONTHS. It sent slot 6 to +$b + // (from dsp/pagemap_probe.asm) and wrote every slot as a KNOB field -- + // which is exactly why the delay's WOW always worked locally and never on + // hardware, and why no companion select (MODE aside, which had a + // build-time override) was ever exercisable in the emulator. +$b is not a + // parameter word at all. The stock-DARK notes that used to live here + // (its +$c pre-delay read, the +$e `btst #$8` flag) are in the file + // history; the lesson they carried -- take a slot's MEANING from the + // effect's own reads -- survives as the map above, which was taken from + // exactly that. + // + // Params 0..5 are page 1; 6..11 follow the table. A companion value is + // written to bits 8-15 of the SAME word as its slot's knob, so both are + // composed together rather than the last write clobbering the word. + auto setParams = [&](Core& C, const std::vector& pv, size_t who) { + for (size_t i = 0; i < 6 && i < pv.size(); ++i) + C.mem->set(MemArea_X, C.pblock + i, (static_cast(pv[i]) & 0x7f) << 16); + for (TWord w = 0; w < 3; ++w) { // +$c, +$d, +$e + const size_t knob = 6 + 2 * w, comp = knob + 1; + TWord v = 0; + if (knob < pv.size()) v |= (static_cast(pv[knob]) & 0x7f) << 16; + if (comp < pv.size()) v |= (static_cast(pv[comp]) & 0x7f) << 8; + if (knob < pv.size() || comp < pv.size()) + C.mem->set(MemArea_X, C.pblock + 0xc + w, v); + } + for (auto& w : a.pwords) if (w[0] == who) C.mem->set(MemArea_X, C.pblock + w[1], w[2]); + // -tempo: what the stock frame builder publishes (0x40004d6a): tempo24 = + // BPM*24 in halfword 31 of the track's record, r6+$13 of an FX2 + // instance, <<8 like every published word. BusDelay derives the clock + // period itself. (Until 15 Sep 2026 the ColdFire cave put tempo24 and + // the period at r6+$6/$7 -- the FX1 instance's page 2.) + if (a.tempo > 0) { + const TWord t24 = static_cast(a.tempo * 24 + 0.5); + C.mem->set(MemArea_X, C.pblock + 0x13, (t24 & 0xffff) << 8); + } + }; + + // X:0x213 points at an instance's entry in the base table at X:0x255. The + // stock reverbs read it in INIT, where it is per-instance. Whether it is + // still per-instance during PROC is the open question -- the dispatcher + // advances it, so by the time blocks are running it may sit past the last + // effect. -allocproc chooses which model to run. + auto setAlloc = [&](Core& C, TWord v) { C.mem->set(MemArea_X, 0x213, v); }; + + // Hardware does not hand an effect a zeroed buffer -- it holds whatever the + // previous algorithm left. The emulator does, which can make a build look + // fine here and behave differently on the device. + if (a.dirty) { + for (auto& Cp : cores) { + TWord x = a.dirty; + for (TWord ad = 0x1000; ad < 0xC000; ++ad) { + x ^= x << 13; x ^= x >> 17; x ^= x << 5; x &= 0xffffff; + Cp->mem->set(MemArea_Y, ad, x); + } + } + std::printf("Y:0x1000..0xBFFF filled with garbage (seed 0x%x)\n", a.dirty); + } + + // -pokey addr=val,... : seed arbitrary Y words before any block runs -- + // e.g. planting a fake "last block's bus accumulator" so a server can be + // tested for whether it actually reads shared bus scratch, without a + // second instance running the client code that would normally write it. + for (auto& pv : a.pokeY) { + mem.set(MemArea_Y, pv.first, pv.second); + std::printf("poked Y:0x%05x = 0x%06x\n", pv.first, pv.second); + } + + SharedGuard sharedGuard; + if (a.guard) { + for (auto& Cp : cores) Cp->guard.arm(*Cp->mem, Cp->loadedY, Cp->loadedP); + std::printf("guard armed: Y:0x0000..0x%05x + P:0x00000..0x%05x, " + "window %u words per instance\n", Guard::Y_HI - 1, Guard::P_HI - 1, + a.guardWords); + } + if (a.guardShared) { + sharedGuard.arm(*cores[0]->mem, a.shareLo, a.shareHi); + std::printf("shared guard armed: Y:0x%05x..0x%05x, window %u words per instance\n", + a.shareLo, a.shareHi - 1, a.guardWords); + } + + // ---- init, every instance, before any block --------------------------- + for (int k = 0; k < a.inst; ++k) { + Core& C = *cores[inst[k].core]; + setAlloc(C, inst[k].alloc); + setParams(C, inst[k].pv, k); + C.dsp->regs().r[6].var = C.pblock; + C.dsp->regs().r[7].var = inst[k].state; + if (inst[k].init) { + std::printf("running init @P:0x%05x for instance %d (core %d) ...\n", inst[k].init, k, inst[k].core); + const uint64_t i0 = C.dsp->getInstructionCounter(); + if (!runToRts(*C.dsp, inst[k].init, a.trace, "init")) return 1; + C.initInstr += static_cast(C.dsp->getInstructionCounter() - i0); + char who[32]; std::snprintf(who, sizeof who, "inst %d", k); + if (C.guard.armed) { + int cl = 0; + inst[k].violations += C.guard.check(*C.mem, inst[k].base, + inst[k].base + a.guardWords, + who, "init", 0, false, cl); + inst[k].clobbers += cl; + } + if (sharedGuard.armed) + inst[k].violations += sharedGuard.check(*cores[0]->mem, inst[k].base, + inst[k].base + a.guardWords, + who, "init", 0, false); + } + } + if (a.init) std::printf("all inits returned ok\n"); + + for (auto& Cp : cores) { + Core& C = *Cp; + if (C.insts.empty()) continue; + const int last = C.insts.back(); + const TWord allocEnd = 0x255 + (a.allocIdx.empty() ? 1 + 2 * inst[last].pos + 1 + : (last < static_cast(a.allocIdx.size()) + ? a.allocIdx[last] : a.allocIdx.back()) + 1); + if (a.allocProc == "end") { + setAlloc(C, allocEnd); + std::printf("core %d: proc-time X:0x213 = 0x%03x for every instance (past the last effect)\n", + C.id, allocEnd); + } else if (a.allocProc == "keep") { + std::printf("core %d: proc-time X:0x213 left at 0x%03x from the last init\n", + C.id, C.mem->get(MemArea_X, 0x213)); + } + } + + // ---- FAITHFUL MODE: run the host's own dispatcher (core 0 only) --------- + // Everything above hand-rolls the calling convention from a reading of the + // listing, and a mistake in that reading is invisible here -- which is how + // the A-flag bug survived six builds and why r6 is still the FX1 block. + // + // The setup routine resets x:0x418/0x20a/0x213/0x20b/0x420 and falls into + // the track loop, which runs four times (x:0x418 steps 0x20 to 0x80) and + // exits to the dispatcher exit. Per track it dispatches FX1 then FX2, + // advancing x:0x20a three times and x:0x213 twice -- exactly the measured + // 0x6200/0x6500 and 0x4000/0x8000. + // + // Each track's config is a 0x20-word block: x:0x416 + t*0x20 is current, + // x:0x415 + t*0x20 is pending, the FX1 id sits at +$1b and the FX2 id at + // +$1c as value<<8, and +$1e's bits 8..11 are the effect-change split point. + // Setting the split to 0 is steady state: the outgoing call is skipped and + // the effect gets the whole 16-frame block at r0 = 0. + if (a.dispatch) { + const TWord pend = mem.get(MemArea_X, 0x415); + const TWord curr = mem.get(MemArea_X, 0x416); + std::printf("dispatch mode: pending blocks at X:0x%05x, current at X:0x%05x\n", + pend, curr); + // -split models the moment the effect is ADDED to the LAST enabled track, + // which is the only thing the hardware has ever been observed to die on. + // That track's CURRENT id stays the old effect and its PENDING id becomes + // ours, so the dispatcher runs the outgoing effect over [0, split), calls + // our init because the ids differ, then calls US over [split, 16) at + // r0 = split*2. Steady state (split 0) never exercises any of that. + for (int t = 0; t < 4; ++t) { + const bool on = t < a.fx2tracks; + const bool incoming = on && a.split && (t == a.fx2tracks - 1); + if (on) { + mem.set(MemArea_X, pend + t * 0x20 + 0x1c, a.fxid << 8); + mem.set(MemArea_X, curr + t * 0x20 + 0x1c, + (incoming ? a.prevfx : a.fxid) << 8); + } + const TWord sp = incoming ? (static_cast(a.split) & 0xf) << 8 : 0; + mem.set(MemArea_X, pend + t * 0x20 + 0x1e, sp); + mem.set(MemArea_X, curr + t * 0x20 + 0x1e, sp); + if (on) + std::printf(" track %d: FX2 pending 0x%02x, current 0x%02x, split %d%s\n", + t, a.fxid, incoming ? a.prevfx : a.fxid, + incoming ? a.split : 0, incoming ? " <- BEING ADDED" : ""); + } + // ---- drain the host transmit FIFO ------------------------------- + // FAITHFUL MODE RUNS THE FIRMWARE'S OWN HOST WRITES, and we model no + // ColdFire to read them. HDI08's TX ring is 8192 words and BLOCKING: + // once it fills, `movep a,x:<getHDI08().setTransmitDataAlwaysEmpty(false); + auto drainHostTX = [&]() { + auto& h = C0.periphX->getHDI08(); + while (h.hasTX()) h.readTX(); + }; + for (int b = 0; b < a.blocks; ++b) { + dsp.setPC(C0.ctx.setupLo); + bool ok = false; + std::vector recent; + const uint64_t i0 = dsp.getInstructionCounter(); + for (uint32_t i = 0; i < 400000; ++i) { + const TWord pc = dsp.getPC().toWord(); + if (pc == C0.ctx.exit) { ok = true; break; } + if (b == 0 && a.trace) { + recent.push_back(pc); + if (recent.size() > 40) recent.erase(recent.begin()); + } + // Cheap enough at 1/1024 instructions, and it has to be + // INSIDE the block: the ring can fill mid-block. + if ((i & 0x3ff) == 0) drainHostTX(); + step(dsp); + } + drainHostTX(); + const long n = static_cast(dsp.getInstructionCounter() - i0); + C0.meter.push_back(n); + if (n > C0.maxBlockInstr) { C0.maxBlockInstr = n; C0.maxBlock = b; } + if (!ok && a.trace && !recent.empty()) { + std::printf(" last 40 PCs: "); + for (TWord q : recent) std::printf("%05x ", q); + std::printf("\n"); + } + if (!ok) { + std::printf("\nHANG in the dispatcher: block %d, pc=0x%06x\n", + b, dsp.getPC().toWord()); + dumpRegs(dsp, mem); + return 1; + } + if (C0.guard.armed) { + int cl = 0; char who[24]; std::snprintf(who, sizeof who, "dispatch"); + inst[0].violations += C0.guard.check(mem, 0x4000, 0x4000 + a.guardWords, + who, "blk", b, b > 2, cl); + inst[0].clobbers += cl; + } + if (sharedGuard.armed) + inst[0].violations += sharedGuard.check(mem, 0x4000, + 0x4000 + a.guardWords, + "dispatch", "blk", b, b > 2); + } + std::printf("dispatcher completed %d blocks with %d FX2 track(s) on effect 0x%02x\n", + a.blocks, a.fx2tracks, a.fxid); + std::printf(" meter: max %ld instructions in block %d (%.1f per frame of %d)\n", + C0.maxBlockInstr, C0.maxBlock, double(C0.maxBlockInstr) / a.frames, a.frames); + if (C0.guard.armed) + std::printf(" %ld stray regions, %ld CLOBBERING a loaded module\n", + inst[0].violations, inst[0].clobbers); + return inst[0].clobbers ? 3 : 0; + } + + std::ofstream trackFile; + if (!a.track.empty()) { + trackFile.open(a.trackOut.empty() ? "/tmp/dsp_track.txt" : a.trackOut); + std::printf("tracking r7-relative X words every block -> %s\n", + a.trackOut.empty() ? "/tmp/dsp_track.txt" : a.trackOut.c_str()); + } + std::ofstream meterFile; + if (!a.meterFile.empty()) meterFile.open(a.meterFile); + + // ---- the block loop ----------------------------------------------------- + // Per core, per block, the dispatcher's calls in order. Each call is made + // exactly as runToRts made it -- the same register setup, the same jsr + // through the emulator, the same sentinel -- but resumably, one + // instruction per step, so the two cores can be interleaved. + struct CoreRun { + Core* C = nullptr; + std::vector calls; size_t idx = 0; + bool inCall = false; Call cur; uint64_t i0 = 0; + int block = 0; + bool done() const { return idx >= calls.size() && !inCall; } + }; + std::vector runs(ncores); + for (int c = 0; c < ncores; ++c) runs[c].C = cores[c].get(); + + const TWord DIFF_LO = 0x000, DIFF_HI = 0x8000; + std::vector snap; + bool hung = false; + + // Start a call: what the dispatcher does before `jsr (r2)`. + auto beginCall = [&](CoreRun& R, const Call& call) { + Core& C = *R.C; Instance& I = inst[call.inst]; + if (a.allocProc == "perinst") setAlloc(C, I.alloc); + setParams(C, I.pv, static_cast(call.inst)); + DSP& D = *C.dsp; + D.regs().r[6].var = C.pblock; + D.regs().r[7].var = I.state; + const int sp = (I.split > 0 && I.split < a.frames) ? I.split : 0; + if (call.ctl) { + // The dispatcher's two calls per block (P:0x4b8..0x4d7, read from + // the listing): when the track's SPLIT is nonzero it first calls + // with a = 0, r0 = 0, n7 = split -- the FIRST SUB-BLOCK, frames + // [0,split) of the same buffer -- then always calls with a = 1, + // r0 = split*2, n7 = 16-split for [split,16). At split = 0 the + // first call is skipped and the a=1 call gets the whole block. + // Every trig sets the split to its landing offset inside the + // block and it persists until the next trig. + // + // -split N models the post-trig steady state: the block's frames + // are tiled across the two calls. WITHOUT -split the a=0 call is + // SKIPPED, because that is what the hardware does at split = 0. + // + // It used to be made anyway, at r0 = 0 with n7 = cnt, to model what + // an a=0-rts effect sees. That is now a trap: since v57 the reverb + // runs its body on BOTH calls, so the harness was executing the + // whole engine against r0 = 0 -- which on hardware IS the audio + // buffer, but here is unrelated low X memory. The engine read that + // as input and fed it to the tank every block, so the reverb never + // decayed and looked self-oscillating for hours of investigation, + // while the hardware decayed perfectly. Model the dispatcher, not a + // historical special case. + D.regs().r[0].var = sp ? I.audio : 0; + D.regs().a.var = 0; + D.regs().n[7].var = sp ? sp : C.cnt; + } else { + D.regs().r[0].var = I.audio + 2 * sp; + D.regs().n[7].var = C.cnt - sp; + // The dispatcher raises the flag with `move #$1,a`, and a short + // immediate to an accumulator is LEFT-ALIGNED: a1 = $010000, not + // a0 = 1. The distinction is invisible to `tst a` (both are + // nonzero) but not to `move a,x:..`, which transfers A1 -- an + // effect that stores the flag and tests the copy reads 0 here if + // the harness sets the raw var. stageprobe4's audio stage was + // silently gated off by exactly this. + D.regs().a.var = 0x010000000000ULL; + } + D.setPC(SENTINEL); + D.jsr(I.proc); + R.cur = call; R.cur.steps = 0; R.inCall = true; + R.i0 = D.getInstructionCounter(); + }; + + // Finish a call: what the harness does after the rts. + auto endCall = [&](CoreRun& R) { + Core& C = *R.C; Instance& I = inst[R.cur.inst]; DSP& D = *C.dsp; + const int k = R.cur.inst, b = R.block; + char who[32]; std::snprintf(who, sizeof who, "inst %d", k); + R.inCall = false; + if (R.cur.ctl) { + // the a=0 call: nothing captured, the a=1 call follows + return; + } + // -track: sample r7-relative state EVERY block. -peekx only snapshots + // after the whole run, which cannot measure a RATE -- an LFO phase has + // to be differenced block to block to get its increment. + if (!a.track.empty() && k == a.trackInst) { + if (trackFile.is_open()) { + trackFile << b; + for (TWord off : a.track) + trackFile << ' ' << C.mem->get(MemArea_X, I.state + off); + trackFile << '\n'; + } + } + I.cycles += R.cur.steps; ++I.procCalls; + if (C.guard.armed) { + int cl = 0; + I.violations += C.guard.check(*C.mem, I.base, I.base + a.guardWords, who, + "proc", b, I.violations + I.clobbers > 12, cl); + I.clobbers += cl; + } + if (sharedGuard.armed) + I.violations += sharedGuard.check(*cores[0]->mem, I.base, + I.base + a.guardWords, who, "proc", b, + I.violations + I.clobbers > 12); + if (a.diff && b == a.diff - 1 && k == 0) { + std::printf("X writes during block %d (impulse block):\n", b); + int n = 0; TWord runLo = 0; bool inRun = false; + for (TWord ad = DIFF_LO; ad < DIFF_HI; ++ad) { + const bool ch = C.mem->get(MemArea_X, ad) != snap[ad - DIFF_LO]; + if (ch && !inRun) { runLo = ad; inRun = true; } + if (!ch && inRun) { + if (n < 40) std::printf(" X:0x%05x..0x%05x (%u words)\n", runLo, ad - 1, ad - runLo); + ++n; inRun = false; + } + } + if (inRun) std::printf(" X:0x%05x..0x%05x\n", runLo, DIFF_HI - 1); + std::printf(" %d changed regions total\n", n); + // values of every changed word (capped), so two runs can be + // value-diffed, not just region-diffed + int nv = 0; + for (TWord ad = DIFF_LO; ad < DIFF_HI && nv < 400; ++ad) { + if (C.mem->get(MemArea_X, ad) != snap[ad - DIFF_LO]) { + std::printf(" XVAL 0x%05x = 0x%06x\n", ad, C.mem->get(MemArea_X, ad)); + ++nv; + } + } + } + if (getenv("DSP_DBG") && k == 0 && b < atoi(getenv("DSP_DBG"))) + std::printf(" dbg blk %3d: $82=%06x $83=%06x $3e=%06x $30=%06x n5=%06x\n", b, + C.mem->get(MemArea_X, I.state + 0x82), + C.mem->get(MemArea_X, I.state + 0x83), + C.mem->get(MemArea_X, I.state + 0x3e), + C.mem->get(MemArea_X, I.state + 0x30), + D.regs().n[5].var); + if (!I.captures) return; // the next instance on this buffer finishes the track + for (int f = 0; f < a.frames; ++f) { + for (int ch = 0; ch < 2; ++ch) { + TWord w = C.mem->get(MemArea_X, I.audio + f * 2 + ch); + int32_t s = static_cast(w << 8) >> 8; // sign-extend 24 -> 32 + if (s) ++I.nonzero; + if (I.out.is_open()) I.out.write(reinterpret_cast(&s), 4); + } + } + }; + + // One instruction on a core. Returns false on a hang. + auto stepCore = [&](CoreRun& R) -> bool { + if (R.done()) return true; + if (!R.inCall) beginCall(R, R.calls[R.idx++]); + Core& C = *R.C; DSP& D = *C.dsp; + const TWord cur = D.getPC().toWord(); + if (cur == SENTINEL) { endCall(R); return true; } + if (R.cur.steps >= 50000000u) { + std::printf("\nHANG%s: instance %d, block %d, pc=0x%06x (core %d)\n", + R.cur.ctl ? " in the a=0 call" : "", R.cur.inst, R.block, cur, C.id); + dumpRegs(D, *C.mem); + return false; + } + const bool tr = a.trace && (R.cur.inst == a.trackInst) && !R.cur.ctl && + (R.block == 0 || (a.diff && R.block == a.diff - 1)) && + static_cast(R.cur.steps) < a.trace; + if (tr) + std::printf(" inst 0 %6u pc=%06x a=%012llx r5=%06x n5=%06x m5=%06x x1=%06x n7=%06x\n", + R.cur.steps, cur, + static_cast(D.regs().a.var & 0xffffffffffffull), + D.regs().r[5].var & 0xffffff, D.regs().n[5].var & 0xffffff, + D.regs().m[5].var & 0xffffff, + (unsigned)(D.regs().x.var >> 24) & 0xffffff, + D.regs().n[7].var); + step(D); + ++R.cur.steps; + return true; + }; + // Run a core to the end of its block. + auto runCore = [&](CoreRun& R) -> bool { + while (!R.done()) if (!stepCore(R)) return false; + return true; + }; + + std::vector nextParamEvent(a.paramEvents.size()); + for (int b = 0; b < a.blocks; ++b) { + // -sched: this block's knob moves (beginCall re-applies I.pv) + for (auto& sc : a.sched) + if (sc.block == b && sc.inst >= 0 && sc.inst < a.inst && sc.slot >= 0 && sc.slot < 12) { + if (static_cast(sc.slot) >= inst[sc.inst].pv.size()) inst[sc.inst].pv.resize(sc.slot + 1, 0); + inst[sc.inst].pv[sc.slot] = sc.val; + } + // Repeated -paramfile options map to successive instances, exactly + // like repeated -params. Apply every event for this block before any + // core runs so lock-step and interleaved schedules see the same knobs. + for (size_t k = 0; k < a.paramEvents.size(); ++k) { + auto& events = a.paramEvents[k]; + while (nextParamEvent[k] < events.size() + && events[nextParamEvent[k]].block == b) { + inst[k].pv = events[nextParamEvent[k]].values; + ++nextParamEvent[k]; + } + } + // fill every instance's block: impulse on the first frame unless an + // input file is given. Without per-instance files all instances see + // the same audio. + for (int k = 0; k < a.inst; ++k) { + Instance& I = inst[k]; + Core& C = *cores[I.core]; + if (!I.fills) continue; // a chained instance sees its predecessor's output + for (int f = 0; f < a.frames; ++f) { + int32_t s = 0, s2 = 0; + if (I.hasInput) { + s = I.inPos < I.input.size() ? I.input[I.inPos++] : 0; + // -stereo: the next word is R; mono copies L to both + s2 = a.stereo ? (I.inPos < I.input.size() ? I.input[I.inPos++] : 0) : s; + } + else if (b == 0 && f == 0) s = s2 = 0x400000; // 0.5 full scale + // -inmask silences an instance's own input so its output is + // ONLY what arrived through the shared bus. Feeding a server + // dry audio as well would bury the bus contribution under it. + const int32_t sk = I.fed ? s : 0, sk2 = I.fed ? s2 : 0; + C.dsp->memWrite(MemArea_X, I.audio + f * 2 + 0, sk & 0xffffff); + C.dsp->memWrite(MemArea_X, I.audio + f * 2 + 1, sk2 & 0xffffff); + } + } + if (a.spray && b == 0) { + // excite every candidate input word: if the effect reads audio from + // anywhere in the low X region, this will find it + for (TWord ad = 0; ad < static_cast(a.spray); ++ad) + dsp.memWrite(MemArea_X, ad, 0x400000); + } + if (a.pingpong >= 0) + for (auto& Cp : cores) Cp->mem->set(MemArea_X, 0x41f, static_cast(a.pingpong)); + if (a.diff && b == a.diff - 1) { + snap.resize(DIFF_HI - DIFF_LO); + Core& C = *cores[inst[0].core]; + for (TWord ad = DIFF_LO; ad < DIFF_HI; ++ad) snap[ad - DIFF_LO] = C.mem->get(MemArea_X, ad); + } + + // the calls each core makes this block, in dispatch order + for (int c = 0; c < ncores; ++c) { + CoreRun& R = runs[c]; + R.calls.clear(); R.idx = 0; R.inCall = false; R.block = b; + for (int k : cores[c]->insts) { + Instance& I = inst[k]; + const int sp = (I.split > 0 && I.split < a.frames) ? I.split : 0; + if (!a.noctl && sp) R.calls.push_back(Call{k, true, 0}); + R.calls.push_back(Call{k, false, 0}); + } + } + std::vector i0(ncores); + for (int c = 0; c < ncores; ++c) i0[c] = cores[c]->dsp->getInstructionCounter(); + + if (!a.interleave || ncores == 1) { + // LOCK-STEP: core 0's whole block, then core 1's. What a single + // core always saw; blind to the race by construction. + for (int c = 0; c < ncores && !hung; ++c) + if (!runCore(runs[c])) hung = true; + } else { + // INTERLEAVED: the leader runs |skew| instructions alone, then + // the two alternate one instruction at a time until both blocks + // are done. Not the hardware's timing: a fuzz of it. + CoreRun& lead = runs[a.skew >= 0 ? 0 : 1]; + CoreRun& lag = runs[a.skew >= 0 ? 1 : 0]; + for (long i = 0; i < std::labs(a.skew) && !lead.done() && !hung; ++i) + if (!stepCore(lead)) hung = true; + while (!hung && !(lead.done() && lag.done())) { + if (!stepCore(lead)) { hung = true; break; } + if (!stepCore(lag)) { hung = true; break; } + } + } + if (hung) return 1; + + for (int c = 0; c < ncores; ++c) { + Core& C = *cores[c]; + const long n = static_cast(C.dsp->getInstructionCounter() - i0[c]); + C.meter.push_back(n); + if (n > C.maxBlockInstr) { C.maxBlockInstr = n; C.maxBlock = b; } + } + if (meterFile.is_open()) { + meterFile << b; + for (int c = 0; c < ncores; ++c) meterFile << ' ' << cores[c]->meter.back(); + meterFile << '\n'; + } + + if (a.spray) { + TWord acc = 0; + for (TWord ad = 0xa0; ad <= 0xa1; ++ad) acc |= mem.get(MemArea_X, ad); + for (TWord ad = 0x130; ad <= 0x133; ++ad) acc |= mem.get(MemArea_X, ad); + if (acc && (b % 40 == 0 || b < 6)) + std::printf(" block %4d: X:0xa0=%06x %06x X:0x130=%06x %06x %06x %06x\n", b, + mem.get(MemArea_X,0xa0), mem.get(MemArea_X,0xa1), + mem.get(MemArea_X,0x130), mem.get(MemArea_X,0x131), + mem.get(MemArea_X,0x132), mem.get(MemArea_X,0x133)); + } + } + + // where did anything actually land? scan the low X region for non-zero words + std::printf("non-zero X words in 0x000..0x0ff after the run:\n"); + int shown = 0; + for (TWord ad = 0; ad < 0x100; ++ad) { + TWord w = mem.get(MemArea_X, ad); + if (w && shown < 24) { std::printf(" X:0x%03x = 0x%06x\n", ad, w); ++shown; } + } + if (!shown) std::printf(" (none)\n"); + + { // full register file at end of run, for cross-engine divergence hunts + auto& R = dsp.regs(); + std::printf("REGS a=%012llx b=%012llx x=%012llx y=%012llx\n", + (long long)R.a.var & 0xffffffffffffLL, (long long)R.b.var & 0xffffffffffffLL, + (long long)R.x.var, (long long)R.y.var); + for (int i = 0; i < 8; ++i) + std::printf("REGS r%d=%06x n%d=%06x m%d=%06x\n", i, R.r[i].var & 0xffffff, + i, R.n[i].var & 0xffffff, i, R.m[i].var & 0xffffff); + std::printf("REGS sr=%06x omr=%06x sp=%06x la=%06x lc=%06x\n", + R.sr.var & 0xffffff, R.omr.var & 0xffffff, R.sp.var & 0xffffff, + R.la.var & 0xffffff, R.lc.var & 0xffffff); + } + Memory& dmem = *cores[(a.dumpCore >= 0 && a.dumpCore < ncores) ? a.dumpCore : 0]->mem; + if (!a.dumpyFile.empty() && a.dumpyFile[0] == '@') { // @file = X space + std::ofstream df(a.dumpyFile.substr(1), std::ios::binary); + for (TWord ad = a.dumpyLo; ad < a.dumpyHi; ++ad) { + uint32_t w = dmem.get(MemArea_X, ad); + df.write(reinterpret_cast(&w), 4); + } + std::printf("dumped X 0x%05x..0x%05x\n", a.dumpyLo, a.dumpyHi); + } + else if (!a.dumpyFile.empty()) { + std::ofstream df(a.dumpyFile, std::ios::binary); + for (TWord ad = a.dumpyLo; ad < a.dumpyHi; ++ad) { + uint32_t w = dmem.get(MemArea_Y, ad); + df.write(reinterpret_cast(&w), 4); + } + std::printf("dumped Y 0x%05x..0x%05x -> %s\n", a.dumpyLo, a.dumpyHi, a.dumpyFile.c_str()); + } + if (!a.peekY.empty()) { + std::printf("peek Y memory after the run:\n"); + for (TWord ad : a.peekY) + std::printf(" Y:0x%05x = 0x%06x\n", ad, dmem.get(MemArea_Y, ad)); + } + if (!a.peekX.empty()) { + std::printf("peek X memory after the run:\n"); + for (TWord ad : a.peekX) + std::printf(" X:0x%05x = 0x%06x\n", ad, dmem.get(MemArea_X, ad)); + } + + std::printf("ran %d blocks x %d frames on %d instance(s), %d core(s)%s\n", a.blocks, a.frames, + a.inst, ncores, + ncores == 1 ? "" : (a.interleave ? " interleaved" : " lock-step")); + // THE METER. Instructions, not cycles: the emulator counts executed + // instructions and models no memory-contention stall, so this is a floor + // on the chip's cycles in the same way tools/build/cycle_count.py is -- but + // per BLOCK, for THIS layout, with every instance's real work (and any + // init landing inside a block) rather than one composition's sample + // loops. The wall is docs/firmware/CHIP.md's measured budget. + for (auto& Cp : cores) { + Core& C = *Cp; + if (C.meter.empty()) continue; + long sum = 0; for (long n : C.meter) sum += n; + std::printf(" core %d meter: max %ld instructions in block %d, mean %.0f " + "(%.1f/sample max, %.1f/sample mean at %d frames); inits %ld\n", + C.id, C.maxBlockInstr, C.maxBlock, double(sum) / C.meter.size(), + double(C.maxBlockInstr) / a.frames, double(sum) / C.meter.size() / a.frames, + a.frames, C.initInstr); + } + long total = 0, bad = 0; + bool anyGuard = false; + for (auto& Cp : cores) anyGuard |= Cp->guard.armed; + anyGuard |= sharedGuard.armed; + for (int k = 0; k < a.inst; ++k) { + std::printf(" instance %d: %.1f instructions/sample (%ld calls)\n", k, + inst[k].procCalls ? double(inst[k].cycles) / inst[k].procCalls / a.frames : 0.0, + inst[k].procCalls); + std::printf(" instance %d: %ld non-zero output samples", k, inst[k].nonzero); + if (anyGuard) + std::printf(", %ld stray write regions, %ld CLOBBERING a loaded module", + inst[k].violations, inst[k].clobbers); + std::printf("\n"); + total += inst[k].nonzero; bad += inst[k].clobbers; + } + if (!total) std::printf(" (all silent -- the effect produced nothing)\n"); + if (anyGuard && !bad) + std::printf(" guard clean: nothing written over a loaded module\n"); + return bad ? 3 : 0; +} diff --git a/sdk/cycle-scan/interlock_scan.py b/sdk/cycle-scan/interlock_scan.py new file mode 100644 index 0000000000..6d191eb419 --- /dev/null +++ b/sdk/cycle-scan/interlock_scan.py @@ -0,0 +1,846 @@ +#!/usr/bin/env python3 +"""Pipeline stalls on the path a DSP module's proc actually executes. + +The DSP56300 core inserts idle cycles for some instruction sequences +(DSP56300 Family Manual, Rev 5: section A.2 and section 3.5), and its +instructions do not all take one cycle (Table A-1). tools/build/cycle_count.py +counts words and dsp_host's -meter counts instructions; neither sees either. +This tool runs a module's proc under dsp_host, records the executed +instruction sequence of one steady block per setting, and prices it: + + cycles Table A-1's T for the form, plus its +pru / +lab / +lim terms + stalls the sequence delays of A.2 and 3.5 that apply to code in + internal memory (no external bus, no stack extension) + +It is a model from the manual, not a measurement. Not counted: wait states +(a fetch from the shared window takes one more, DSP56720RM 16.2), memory +contention, interrupts. See "Readings" below for the calls the manual +leaves open. + +usage: + python3 tools/build/interlock_scan.py EFFECT [NAME=VALUE ...] [--sweep] [--top N] [--json FILE] [--dump] + python3 tools/build/interlock_scan.py --selftest + +EFFECT is a module name (modulation, busverb) or a stock effect's key +(FILTER, "PLATE REV"). NAME=VALUE sets a knob; a select takes its label +(MODE=JUNO), and a MODE starts from that mode's view defaults. A run is made +for every value of the selector (MODE, else the first select of at most 8 +values) not set on the command line. --sweep runs three variants a value: +the defaults, every other named knob at its maximum, and every other at its +minimum, and a fourth with the manifest's `dear` knobs when it declares +them; the sites printed are the dearest variant's. --noviews leaves a +mode's view defaults out: the knobs are the manifest's defaults plus the +command line, as the hardware matrix stamps them (tools/hw/ot_matrix.py). +--json writes every run's figures and sites. +Run it from the root of a built tree (vendor/, out/raw/). The audition's +scratch dump (out/dsp/_audition__A.mem) is built when it is missing +or older than modules/. The trace needs a dsp_host with -steptrace (make +setup builds it from this tree); ILSCAN_HOST overrides the one it runs, for +example a branch's dsp_host built in an isolated tree +(docs/contributing/TOOLING.md section 1). + +Readings (each kind is reported on its own, so a different reading can be +subtracted): + agu-lua A.2.4 counts a register written "in its move portion"; LUA has + no move portion. Its destination is counted as such a write. + arith-tcc 3.5.1 counts a "data ALU instruction". A Tcc writing an + accumulator is counted as one. + Several stalls on one instruction are combined as their maximum: the idle + cycles inserted for one let the other's producer finish. + The A.2.4 distance runs from the END of the writing instruction. +""" +import json +import os +import pathlib +import re +import struct +import subprocess +import sys +import tempfile +from collections import Counter, defaultdict + +# Modwerk: the scan lives in sdk/cycle-scan, outside the module-source fingerprint; the octabam tree it runs +# against is sdk/octabam (OCTABAM_ROOT overrides it, for a built scan workspace). +ROOT = pathlib.Path(os.environ.get("OCTABAM_ROOT", pathlib.Path(__file__).resolve().parents[1] / "octabam")).resolve() +sys.path.insert(0, str(ROOT / "tools")); import toolpath # noqa: E402,F401 +HOST = pathlib.Path(os.environ.get("ILSCAN_HOST", ROOT / "vendor/dsp56300/build/source/dsp_host/dsp_host")) +DIS = ROOT / "vendor/dsp56300/build/source/disassemble/dsp56kDisassemble" +ASM = ROOT / "vendor/dsp56300/build/source/dsp_host/dsp_asm" +LINE = re.compile(r"^([0-9a-f]{5,6}):\s+(.*?)\s*;\s*([0-9a-f]{6})(?:\s+([0-9a-f]{6}))?\s*$") +TRACE = re.compile(r"^\s+inst 0\s+(\d+)\s+pc=([0-9a-f]{6})") +FRAMES = 16 # the unit's block (docs/firmware/DSP.md); the gates run 15 +# The traced block is the last of BLOCKS: past the servers' dry start ("the +# engine stays dry for 256 CALLS", tools/harness/render_reverb.py WARMUP_BLOCKS). +BLOCKS = 264 + +KINDS = ("agu", "agu-lua", "agu-tcc", "arith", "arith-tcc", "transfer", "logic-ext", "status", "tcc-r") + +# ---- the instruction model --------------------------------------------------- + +CONDS = {"cc", "hs", "cs", "lo", "ec", "eq", "es", "ge", "gt", "lc", "le", "ls", "lt", + "mi", "ne", "nr", "pl", "nn"} +ACC = {"a": "a", "a0": "a", "a1": "a", "a2": "a", "a10": "a", + "b": "b", "b0": "b", "b1": "b", "b2": "b", "b10": "b"} +EXT_LSP = {"a0", "a2", "b0", "b2"} +LOGIC = {"and", "or", "eor", "not", "lsl", "lsr", "rol", "ror"} +NO_DEST = {"cmp", "cmpm", "cmpu", "tst"} +SR_NAMES = {"sr", "mr", "ccr"} +AGU = re.compile(r"^([rnm])([0-7])$") +MEM = re.compile(r"^([xylp]):(.+)$") + + +def _accs(reg): + if reg in ("ab", "ba"): + return {"a", "b"} + return {ACC[reg]} if reg in ACC else set() + + +class Ins: + """One executed instruction, classified for Table A-1 and A.2 / 3.5.""" + __slots__ = ("pc", "text", "nwords", "mnem", "cyc", "alu_dst", "is_tcc", "is_dalu", + "mv_src_acc", "mv_dst_acc", "mv_dst_regs", "agu_use", "agu_dst", + "r_src", "sr_read", "cond", "lua", "taken") + + def __init__(self, pc, text, nwords): + self.pc, self.text, self.nwords = pc, text, nwords + self.taken = None # a conditional branch's outcome, from the trace + tok = text.split() + self.mnem = m = tok[0] if tok else "nop" + fields = tok[1:] + self.alu_dst = None + self.is_tcc = m[0] == "t" and m[1:] in CONDS + self.mv_src_acc, self.mv_dst_acc, self.mv_dst_regs = set(), set(), set() + self.agu_use, self.agu_dst = set(), {} + self.r_src = False + self.sr_read = None + self.cond = (m[0] in "bj" and m[1:] in CONDS) or (m[:2] in ("bs", "js") and m[2:] in CONDS) + self.lua = m in ("lua", "lea") + pru = disp = 0 + movem = False + + def mem_operand(op): + nonlocal pru, disp, movem + mm = MEM.match(op) + if not mm: + return False + space, addr = mm.groups() + if space == "p": + movem = True + r = re.search(r"\(r([0-7])", addr) + if r: + self.agu_use.add(int(r.group(1))) + if re.search(r"\(r[0-7]\+n[0-7]\)", addr) or addr.startswith("-("): + pru += 1 + if re.search(r"\(r[0-7][+-]\$", addr): + disp += 1 + return True + + def reg_read(op): + self.mv_src_acc |= _accs(op) + if AGU.match(op) and op[0] == "r": + self.r_src = True + if op in SR_NAMES: + self.sr_read = "move" + + def reg_write(op, how="move"): + self.mv_dst_acc |= _accs(op) + self.mv_dst_regs.add(op) + g = AGU.match(op) + if g: + self.agu_dst[int(g.group(2))] = how + + def move_field(f): + parts = f.split(",") + if len(parts) == 1: # U move: (r5)+n5 + r = re.search(r"\(r([0-7])", f) + if r: + self.agu_use.add(int(r.group(1))) + return + src, dst = parts[0], parts[-1] + if not mem_operand(src) and not src.startswith("#"): + reg_read(src) + if not mem_operand(dst): + reg_write(dst) + + if m == "move" or m == "movec" or m == "movem" or m == "movep": + for f in fields: + move_field(f) + elif self.lua: + ea, dst = fields[0].split(",") + r = re.search(r"\(r([0-7])", ea) + if r: + self.agu_use.add(int(r.group(1))) + g = AGU.match(dst) + if g: + self.agu_dst[int(g.group(2))] = "lua" + elif self.is_tcc: + s1, d1 = fields[0].split(",") + self.alu_dst = ACC.get(d1) + if len(fields) > 1: # Tcc S1,D1 S2,D2: an address register transfer + s2, d2 = fields[1].split(",") + self.r_src = self.r_src or bool(AGU.match(s2)) + g = AGU.match(d2) + if g: + self.agu_dst[int(g.group(2))] = "tcc" + elif m in ("bset", "bclr", "bchg", "btst", "brset", "brclr", "bsset", "bsclr", + "jset", "jclr", "jsset", "jsclr"): + ops = fields[0].split(",") if fields else [] + tgt = ops[1] if len(ops) > 1 else "" + if tgt in SR_NAMES: + self.sr_read = "bit" + elif not mem_operand(tgt): + self.mv_src_acc |= _accs(tgt) # 3.5.1: a bit operation reads the accumulator + elif m in ("do", "dor", "rep", "rts", "rti", "nop", "bsr", "bra", "jsr", "jmp", + "enddo", "brkcc") or self.cond: + for f in fields: + for op in f.split(","): + mem_operand(op) + else: # a data ALU instruction + if fields: + ops = fields[0].split(",") + if m not in NO_DEST and ops[-1] in ACC and m not in ("norm",): + self.alu_dst = ACC[ops[-1]] + elif m == "norm": + self.alu_dst = ACC.get(ops[-1]) + for f in fields[1:]: + move_field(f) + self.is_dalu = (self.alu_dst is not None or m in NO_DEST or self.is_tcc + or bool(self.mv_src_acc)) + + # Table A-1 + if m in ("do", "dor", "rep"): + c = 5 + elif m in ("rts", "rti", "jsr", "jmp"): + c = 3 + (nwords - 1 if m in ("jsr", "jmp") else 0) + elif m in ("bsr", "bra") or (self.cond and m[0] == "b"): + c = 4 if nwords == 1 else 5 + elif self.cond: # Jcc, JScc + c = 4 + elif m in ("brset", "brclr", "bsset", "bsclr", "jset", "jclr", "jsset", "jsclr"): + c = 4 if m[0] == "j" else 5 + elif m in ("bset", "bclr", "bchg", "btst"): + c = 2 + pru + elif self.lua or m == "lra": + c = 3 + elif movem or m == "movem": + c = 6 + elif m == "movep": + c = 2 + elif m in ("norm", "brkcc"): + c = 5 + elif m in ("andi", "ori"): + c = 3 + elif m in ("mpyi", "maci", "macri", "mpyri"): + c = 2 + elif disp: + c = 2 if nwords == 1 else 3 + else: + c = 1 + (nwords - 1) + pru # +lim / +lab for the second word; +pru + self.cyc = c + + +def form_of(ins): + """Why an instruction takes more than one cycle (Table A-1), or None.""" + m = ins.mnem + if ins.cyc <= 1: + return None + if m in ("bsr", "jsr", "rts", "rti"): + return "call/return" + if m in ("bra", "jmp") or ins.cond: + return "branch" + if ins.lua: + return "lua" + if m in ("do", "dor", "rep"): + return "do/rep" + if ins.cyc == 6: + return "movem" + if re.search(r"\(r[0-7][+-]\$", ins.text): + return "displaced move" + if re.search(r"\(r[0-7]\+n[0-7]\)|-\(r", ins.text): + return "(rn+nn) / -(rn)" + if ins.nwords == 2: + return "long immediate/absolute" + return "other" + + +FORMS = ("call/return", "branch", "lua", "displaced move", "(rn+nn) / -(rn)", + "long immediate/absolute", "do/rep", "movem", "other") + + +def analyze(seq, agu_from=None): + """seq: [Ins] in executed order, the conditional branches' outcome in .taken. + -> (cycles, stalls {kind: cycles}, sites [(index, kind, n, index of the producer)]) + + agu_from: where A.2.4's three-cycle distance starts. "end" (the default, + ILSCAN_AGU_FROM) counts from the end of the writing instruction; "start" + from its first cycle, so a two-cycle writer (a long immediate) is one + cycle nearer clear. The manual's examples do not separate the two.""" + agu_from = agu_from or os.environ.get("ILSCAN_AGU_FROM", "end") + t = 0 + last_w = {} # AGU set -> (end cycle, how, index of the writer) + stalls = Counter() + sites = [] + for k, ins in enumerate(seq): + prev = seq[k - 1] if k else None + prev2 = seq[k - 2] if k > 1 else None + cand = [] # (kind, cycles, producer index) + if prev is not None: + if prev.alu_dst and prev.alu_dst in ins.mv_src_acc: + cand.append(("arith-tcc" if prev.is_tcc else "arith", 1, k - 1)) + if prev.mv_dst_acc & ins.mv_src_acc: + cand.append(("transfer", 1, k - 1)) + if prev.is_tcc and ins.r_src: + cand.append(("tcc-r", 1, k - 1)) + if ins.mnem in LOGIC and ins.alu_dst and any( + r in EXT_LSP and ACC[r] == ins.alu_dst for r in ins.mv_dst_regs): + cand.append(("logic-ext", 1, k)) + if ins.sr_read: + if prev is not None and prev.is_dalu: + cand.append(("status", 2 if ins.sr_read == "move" else 1, k - 1)) + elif prev2 is not None and prev2.is_dalu: + cand.append(("status", 1, k - 2)) + for s in ins.agu_use: + if s in last_w: + end, how, w = last_w[s] + gap = t - end + if gap < 3: + cand.append(({"move": "agu", "lua": "agu-lua", "tcc": "agu-tcc"}[how], 3 - gap, w)) + st = 0 + if cand: + kind, st, w = max(cand, key=lambda c: c[1]) + stalls[kind] += st + sites.append((k, kind, st, w)) + start = t + st + t += st + ins.cyc + if ins.cond and ins.taken is False: + t += 1 # A.2.6.3: a false condition delays the next decode by one + for s, how in ins.agu_dst.items(): + last_w[s] = ((start + 1) if agu_from == "start" else t, how, k) + return t, stalls, sites + + +# ---- the manual's own examples ---------------------------------------------- + +def selftest(): + def run(lines): + seq = [Ins(i, l, 1) for i, l in enumerate(lines)] + _t, _s, sites = analyze(seq) + return [(seq[k].text, kind, n) for k, kind, n, _w in sites] + + cases = [ + ("A-1: N0 written two cycles back... I5/I6 (Type0)", + ["move #$1000,r0", "nop", "nop", "nop", "move #$10,n0", "move x:(r0)+,y1"], + [("move x:(r0)+,y1", "agu", 3)]), + ("Figure A-1 Type0", ["move #$1000,r0", "move x:(r0)+,y1"], [("move x:(r0)+,y1", "agu", 3)]), + ("Figure A-1 Type1", ["move #$1000,r0", "clr a", "move x:(r0)+,y1"], [("move x:(r0)+,y1", "agu", 2)]), + ("Figure A-1 Type2", ["move #$1000,r0", "clr a", "inc b", "move x:(r0)+,y1"], + [("move x:(r0)+,y1", "agu", 1)]), + ("A-2 as given", ["move #$1000,r0", "clr a", "move x:(r0)+,y1", "move x:(r0)+,y0"], + [("move x:(r0)+,y1", "agu", 2)]), + ("A-2 with I3 not using R0", ["move #$1000,r0", "clr a", "move x:(r1)+,y1", "move x:(r0)+,y0"], + [("move x:(r0)+,y0", "agu", 1)]), + ("3-11 mac then move a1", ["mac x0,y0,a", "move a1,x:(r0)+"], [("move a1,x:(r0)+", "arith", 1)]), + ("3-11 tfr then bset", ["tfr a,b", "bset #3,b"], [("bset #3,b", "arith", 1)]), + ("3-11 a useful instruction between", ["mac x0,y0,a", "mac x1,y1,b", "move a,x:(r0)+"], []), + ("3-12 mac then move sr", ["mac x0,y0,a", "move sr,x:(r0)+"], [("move sr,x:(r0)+", "status", 2)]), + ("3-12 accumulator read, nop, btst sr", ["move a,x:(r0)+", "nop", "btst #5,sr"], + [("btst #5,sr", "status", 1)]), + ("3-13 transfer stall", ["move y:(r1)+,a1", "move a2,x:(r0)+"], [("move a2,x:(r0)+", "transfer", 1)]), + ("3-13 a useful instruction between", ["move y:(r1)+,a1", "mac x1,y1,b", "move a,x:(r0)+"], []), + ("3-13 note: logic with an EXT/LSP write", ["or x1,a y1,a0"], [("or x1,a y1,a0", "logic-ext", 1)]), + ("A.2.4 Tcc then an R source", ["tgt x0,a", "move r2,r5"], [("move r2,r5", "tcc-r", 1)]), + ("post-update does not interlock", ["move x:(r0)+,x0", "move x:(r0)+,x1"], []), + ("arithmetic result into arithmetic", ["add x0,a", "add a,b"], []), + ] + bad = 0 + for name, lines, want in cases: + got = run(lines) + ok = got == want + bad += not ok + print(f" {'ok ' if ok else 'FAIL'} {name}" + ("" if ok else f": got {got}, want {want}")) + # Table A-1 forms the scan relies on (probe 57's four among them) + forms = [("move x0,a", 1, 1), ("move x:(r0),a", 1, 1), ("move x:(r7+$15),a", 1, 2), + ("move x:(r7+$70),a", 2, 3), ("move x:(r0+n0),x0", 1, 2), ("move #>$7f0000,x0", 2, 2), + ("and #>$7f0000,a", 2, 2), ("lua (r7+$23),r3", 1, 3), ("move p:(r5),x0", 1, 6), + ("bsr func_0015fa", 1, 4), ("rts", 1, 3), ("do n7,>$13de", 2, 5), + ("mpy x0,y1,a x:(r3),x0", 1, 1), ("move (r5)+n5", 1, 1), ("tge x0,a", 1, 1)] + for text, nw, want in forms: + got = Ins(0, text, nw).cyc + ok = got == want + bad += not ok + print(f" {'ok ' if ok else 'FAIL'} Table A-1: {text} ({nw}w) = {got}" + ("" if ok else f", want {want}")) + print("selftest:", "PASS" if not bad else f"{bad} FAILED") + return bad == 0 + + +# ---- the dump, the trace and the decode --------------------------------------- + +def load_p(mem): + """P words of a dsp_host .mem dump: {address: word}.""" + b = pathlib.Path(mem).read_bytes() + p, i = {}, 0 + while i + 9 <= len(b): + sp = b[i] + addr, cnt = struct.unpack_from(" best_same: + best, best_same = base, same + if best is None or best_same < 0.9: + return [] + return [(a + best, k) for a, k in syms] + + +def insert_mem(mod): + """The audition's scratch dump for an insert, with the modules it requires. + + audition._ensure_insert_mem builds a two-module remix (the insert and + SEND); a module with `requires` (DEVILISH needs OCTA303, EUCLID EVENTS) + refuses that build, so its scratch remix carries them too.""" + from remix import audition, registry + need, todo = [], list(mod.requires or ()) + while todo: + k = todo.pop() + if k not in need and k != mod.key: + need.append(k) + todo += list(registry.by_key(k).requires or ()) + send = _send() + if not need and send is not None: + return audition._ensure_insert_mem(mod, log=lambda *_a: None) + mem = ROOT / f"out/dsp/_audition_{mod.name}_A.mem" + if mem.exists() and mem.stat().st_mtime > audition._newest_input_mtime(): + return mem + # Modwerk: no SEND module (its FX2 id 0x09 is LOFI2's here). The scratch remix is the module and what it + # requires beside the stock effects, with no fallback, as the modules' own perf.py builds theirs. + keys = ", ".join(f'"{k}"' for k in [mod.key, *([send.key] if send else []), *need]) + tail = f' fallback="{send.key}",\n)\n' if send else ' fallback="NONE",\n static_stock=True,\n)\n' + scratch = ROOT / "remixes/_audition.py" + scratch.parent.mkdir(exist_ok=True) + scratch.write_text( + f'"""_audition -- scratch: {mod.name} + what it requires, for interlock_scan.\n\n' + f'Written and removed by tools/build/interlock_scan.py.\n"""\n\n' + f'from remix.schema import Remix\n\n' + f'REMIX = Remix(\n name="_audition",\n doc="audition scratch",\n' + f' modules=({keys},),\n' + tail) + keep = audition.IMAGE.read_bytes() if audition.IMAGE.exists() else None + try: + audition._build({"REMIX": "_audition", "XBUS": "1", "SPEC": "1"}) + audition._dump(mem) + finally: + scratch.unlink(missing_ok=True) + for junk in (ROOT / "remixes/__pycache__").glob("_audition*"): + junk.unlink(missing_ok=True) + if keep is not None: + audition.IMAGE.write_bytes(keep) + return mem + + +def _send(): + """octabam's SEND module, or None where the tree has none (Modwerk).""" + from remix import registry + return next((m for m in registry.modules().values() if m.name == "send"), None) + + +class Target: + """What one effect needs for a run: its dump, entries, slot and labels.""" + + def __init__(self, mod): + import send_probe + from remix import audition, registry, schema, stock + self.mod = mod + quiet = lambda *_a: None # noqa: E731 + self.audio0 = False + if getattr(mod, "is_stock", False): + if mod.key in stock.NO_DSP: + raise ScanError(f"{mod.key} runs on the ColdFire (stock.NO_DSP): its DSP entry is " + "the passthrough stub") + self.mem = audition._ensure_stock_mem(log=quiet) + self.r7, self.alloc = schema.render_slot(mod) + self.audio0 = True # dsp_host's default audio block sits in stock scratch + elif mod.dsp is None or mod.menu is None: + raise ScanError(f"{mod.name} has no DSP effect of its own to scan") + elif mod.name == "busdelay": + self.mem = audition._ensure_delay_mem(log=quiet) # the DEV hatch: the server in payload A + self.r7, self.alloc = schema.render_slot(mod) + elif _send() is not None and mod.key == _send().key: + # SEND cannot pair with itself in the audition's scratch remix; the + # reverb server's scratch dump is the reverb plus SEND + self.mem = audition._ensure_insert_mem(registry.by_name("busverb"), log=quiet) + self.r7, self.alloc = schema.render_slot(mod) + else: + try: + self.mem = insert_mem(mod) + except RuntimeError as e: # the audition's build refused the scratch remix + raise ScanError(str(e)) + if mod.name == "busverb": + import render_reverb # its slot rule: the first FX2 slot on a guarded image + self.r7, self.alloc = (2 if render_reverb._guarded(self.mem) else 4), 3 + else: + self.r7, self.alloc = schema.render_slot(mod) + self.init, self.proc = send_probe.entry_points(str(self.mem), mod.menu.fx2_id) + send = _send() + if send is not None and not getattr(mod, "is_stock", False) and mod.key != send.key and \ + (self.init, self.proc) == send_probe.entry_points(str(self.mem), send.menu.fx2_id): + raise ScanError(f"fx id 0x{mod.menu.fx2_id:02x} resolves to SEND's entry points: " + f"{mod.name} is not in {self.mem}") + self.p = load_p(self.mem) + self.syms = [] if getattr(mod, "is_stock", False) else labels_for(mod, self.init, self.p) + self.labelled = bool(self.syms) + if not self.syms: + # stock code, or a source the build edits (a key bus reader, a + # per-remix substitution): sites read from the entries instead + self.syms = sorted({(self.init, "init"), (self.proc, "proc")}) + + +def where(pc, syms): + best = None + for a, k in syms: + if a <= pc: + best = (a, k) + else: + break + return f"{best[1]}+{pc - best[0]}" if best else f"P:{pc:x}" + + +# ---- settings ----------------------------------------------------------------- + +def _name(q): + n = q.name + return (n.decode() if isinstance(n, bytes) else n) or "" + + +def selector(mod): + """The knob a sweep runs every value of: MODE, else the first select of at most 8 values.""" + names = [_name(q) for q in mod.params] + if "MODE" in names: + return "MODE" + for q in mod.params: + if q.labels and q.count and q.count <= 8: + return _name(q) + return None + + +def settings_for(mod, args, sweep=False, views=True): + """[(label, variant, params)]: the knob vector of each run. + + A run per value of the selector (MODE, or the first small select), from + that value's view defaults when the module has views. With sweep, three + variants a value: the defaults, every other named knob at its maximum, + and every other named knob at its minimum (the "dearest of as-picked, + all-min, all-max" of the stock measurements in CHIP.md), and the + manifest's `dear` knobs when it has them.""" + names = [_name(q) for q in mod.params] + K = {n: i for i, n in enumerate(names) if n} + base = [(q.default or 0) for q in mod.params] + over = {} + for a in args: + name, val = a.split("=", 1) + name = name.upper() + if name not in K: + sys.exit(f"{mod.name} has no knob {name} ({', '.join(K)})") + q = mod.params[K[name]] + labels = [l.upper() for l in (q.labels or ())] + over[name] = labels.index(val.upper()) if val.upper() in labels else int(val) + sel = selector(mod) + qsel = mod.params[K[sel]] if sel else None + values = [over[sel]] if sel in over else (list(range(qsel.count)) if sel else [None]) + runs = [] + for sv in values: + v = list(base) + label = "defaults" + if sv is not None: + view = mod.view_for(sv) if views and sel == "MODE" and hasattr(mod, "view_for") else None + for slot, val in (view.defaults.items() if view is not None else ()): + v[K[mod.canon_name(slot)]] = val + v[K[sel]] = sv + label = (qsel.labels[sv] if qsel.labels else f"{sel}={sv}") + if sel != "MODE": + label = f"{sel}={label}" + variants = [("def", v)] + if sweep: + hi, lo = list(v), list(v) + for i, q in enumerate(mod.params): + n = names[i] + if not n or n == sel: + continue + hi[i] = (q.count - 1) if q.count else 127 + lo[i] = 0 + variants += [("max", hi), ("min", lo)] + dear = dict(getattr(mod, "dear", None) or {}) + if dear: + # the manifest's dearest knobs (schema `dear`, what the hardware + # matrix and the pressure render use), the selector kept + dv = list(v) + for n, val in dear.items(): + if n != sel and n in K: + dv[K[n]] = val + variants.append(("dear", dv)) + for var, vec in variants: + vec = list(vec) + for name, val in over.items(): + if name != sel: + vec[K[name]] = val + extra = " ".join(f"{n}={x}" for n, x in over.items() if n != sel) + runs.append(((label + " " + extra).strip(), var, vec)) + return runs + + +# ---- the report ----------------------------------------------------------------- + +def scan(t, params): + pcs = trace(t, params) + p = t.p + ins = decode(p, pcs, min(min(pcs), t.init)) + # dsp_host ignores an option it does not know: a host without -steptrace + # runs each DO loop inside one step, and the trace goes from the `do` + # straight to the address after the loop (the disassembler prints that + # address, LA + 1, as the `do`'s operand). + # A `do` whose count is zero skips its body too (an annulled DO, A.2.6.6: + # three more decode cycles), so only a count known to be non-zero proves + # the host: n7 (the frame count) or a non-zero immediate. + annulled = set() + for k in range(len(pcs) - 1): + txt = ins[pcs[k]][0] + m = re.match(r"do\s+(\S+),>?\$([0-9a-f]+)", txt) + if m and pcs[k + 1] == int(m.group(2), 16): + cnt = m.group(1) + imm = re.match(r"#[<>]?\$?([0-9a-f]+)$", cnt) + if cnt == "n7" or (imm and int(imm.group(1), 16) != 0): + sys.exit(f"the trace skips the body of `{txt}` at P:0x{pcs[k]:x}: this dsp_host ({HOST}) " + "does not step DO loops (-steptrace). Set ILSCAN_HOST to one that does.") + annulled.add(k) + seq = [] + for k, pc in enumerate(pcs): + i = Ins(pc, *ins[pc]) + if i.cond and k + 1 < len(pcs): + i.taken = pcs[k + 1] != pc + i.nwords + if k in annulled: + i.cyc += 3 + seq.append(i) + total, stalls, sites = analyze(seq) + return seq, total, stalls, sites + + +def main(argv): + if "--selftest" in argv: + sys.exit(0 if selftest() else 1) + dump = "--dump" in argv + sweep = "--sweep" in argv + views = "--noviews" not in argv + top, jpath = 12, None + for opt in ("--top", "--json"): + if opt in argv: + i = argv.index(opt) + if opt == "--top": + top = int(argv[i + 1]) + else: + jpath = argv[i + 1] + del argv[i:i + 2] + argv = [a for a in argv if a not in ("--dump", "--sweep", "--noviews")] + if not argv: + sys.exit(__doc__) + # the servers' build paths (the DEV hatch, BusDelay's geometry) read the + # selected remix; octabam-bus carries both servers + os.environ.setdefault("REMIX", "octabam-bus") + from remix import registry, stock + e = next((e for e in stock.MODULES if e.key.upper() == argv[0].upper()), None) + mod = registry.by_key(e.key) if e is not None else None + if mod is None: + mod = next((m for m in registry.modules().values() if m.key.upper() == argv[0].upper()), None) + if mod is None: + try: + mod = registry.by_name(argv[0]) + except SystemExit: + mod = None + if mod is None: + sys.exit(f"no module or stock effect named {argv[0]!r}") + who = getattr(mod, "key", mod.name) + result = dict(target=who, name=mod.name, stock=bool(getattr(mod, "is_stock", False)), + frames=FRAMES, runs=[], error=None) + try: + t = Target(mod) + except ScanError as e: + result["error"] = str(e) + print(f"{who}: not scanned: {e}") + if jpath: + pathlib.Path(jpath).write_text(json.dumps(result, indent=1)) + return + result.update(init=t.init, proc=t.proc, r7=t.r7, alloc=t.alloc, labels=t.labelled) + print(f"{who}: init P:0x{t.init:x} proc P:0x{t.proc:x} (r7 {t.r7}, alloc {t.alloc}" + f"{', -audio 0' if t.audio0 else ''}), {FRAMES}-sample blocks, one steady block a setting") + print("cycles = Table A-1 (DSP56300FM Rev 5); stalls = sections A.2 and 3.5; internal memory, no wait states") + print(f"{'setting':28} {'var':3} {'instr/smp':>9} {'cyc/smp':>8} {'stall/smp':>9} " + + " ".join(f"{k:>9}" for k in KINDS)) + reports = [] + for label, var, params in settings_for(mod, argv[1:], sweep, views): + try: + seq, total, stalls, sites = scan(t, params) + except ScanError as e: + print(f"{label:28} {var:3} not scanned: {e}") + result["runs"].append(dict(label=label, variant=var, params=params, error=str(e))) + continue + base = sum(i.cyc for i in seq) + st = sum(stalls.values()) + print(f"{label:28} {var:3} {len(seq) / FRAMES:9.1f} {total / FRAMES:8.1f} {st / FRAMES:9.1f} " + + " ".join(f"{stalls[k] / FRAMES:9.2f}" for k in KINDS)) + extra = Counter() + for i in seq: + f = form_of(i) + if f: + extra[f] += i.cyc - 1 + nt = sum(1 for i in seq if i.cond and i.taken is False) + agg = defaultdict(lambda: [0, 0]) + for k, kind, n, w in sites: + agg[(seq[w].pc, seq[k].pc, kind)][0] += 1 + agg[(seq[w].pc, seq[k].pc, kind)][1] += n + at = {i.pc: i for i in seq} + topsites = [dict(stall=n / FRAMES, kind=kind, site=where(pc, t.syms), pc=pc, text=at[pc].text, + waits_on=at[wpc].text, waits_on_site=where(wpc, t.syms)) + for (wpc, pc, kind), (cnt, n) in sorted(agg.items(), key=lambda kv: -kv[1][1])] + run = dict(label=label, variant=var, params=params, instr=len(seq) / FRAMES, + cycles=total / FRAMES, base=base / FRAMES, stall=st / FRAMES, + stalls={k: stalls[k] / FRAMES for k in KINDS}, + forms={f: extra[f] / FRAMES for f in FORMS}, branch_false=nt / FRAMES, + sites=topsites[:40]) + result["runs"].append(run) + reports.append((run, seq, sites)) + print("\ncyc/smp includes the stalls and A.2.6.3's +1 after a conditional branch not taken.") + print(f"\ncycles a sample above one an instruction, by form (Table A-1):\n{'setting':28} {'var':3} " + + " ".join(f"{f[:11]:>11}" for f in FORMS) + f" {'branch+1':>9}") + for run, _seq, _sites in reports: + print(f"{run['label']:28} {run['variant']:3} " + " ".join(f"{run['forms'][f]:11.2f}" for f in FORMS) + + f" {run['branch_false']:9.2f}") + # the sites of the dearest variant of each setting + dearest = {} + for run, seq, sites in reports: + if run["label"] not in dearest or run["cycles"] > dearest[run["label"]][0]["cycles"]: + dearest[run["label"]] = (run, seq, sites) + for run, seq, sites in dearest.values(): + print(f"\n{run['label']} ({run['variant']}): params {run['params']}; {run['instr']:.1f} instructions " + f"a sample, {run['base']:.1f} cycles before stalls, {run['cycles']:.1f} after") + print(f" {'stall/smp':>9} {'kind':9} {'site':22} the instruction that waits waits on") + for s in run["sites"][:top]: + print(f" {s['stall']:9.2f} {s['kind']:9} {s['site']:22} {s['text']:30} " + f"{s['waits_on']} ({s['waits_on_site']})") + if dump: + st = {k: (kind, n) for k, kind, n, _w in sites} + for k, i in enumerate(seq): + s = st.get(k) + print(f" {k:6} {i.pc:06x} {where(i.pc, t.syms):22} {i.cyc}c " + f"{('+' + str(s[1]) + ' ' + s[0]) if s else '':14} {i.text}") + if jpath: + pathlib.Path(jpath).write_text(json.dumps(result, indent=1)) + + +if __name__ == "__main__": + main(sys.argv[1:]) diff --git a/sdk/imports/octabam-cycle-scan-cc7cffc1.json b/sdk/imports/octabam-cycle-scan-cc7cffc1.json new file mode 100644 index 0000000000..d45430ec73 --- /dev/null +++ b/sdk/imports/octabam-cycle-scan-cc7cffc1.json @@ -0,0 +1,28 @@ +{ + "schemaVersion": 1, + "repository": "https://github.com/sambanks/octabam", + "revision": "cc7cffc1a675a763c5b8d6fbe1659f2b322cc540", + "kind": "infrastructure-backport", + "modules": [], + "files": [ + { + "path": "interlock_scan.py", + "sourcePath": "tools/build/interlock_scan.py", + "sourceSha256": "3c8837e2abf697f8d2a2e40bfa88932a97c29616e828cf2816fff20998d9f1cc", + "vendoredSha256": "23bcc590bc9fe17faf1a822b12cef0da53a031494a9a718126942451e9e37819" + }, + { + "path": "dsp_host.cpp", + "sourcePath": "tools/harness/dsp_host/dsp_host.cpp", + "sourceSha256": "80d0186deec8829fe655f833f0ffa4f1fd6054ffc9a863d63da046ff61538e8a", + "vendoredSha256": "80d0186deec8829fe655f833f0ffa4f1fd6054ffc9a863d63da046ff61538e8a" + }, + { + "path": "CYCLE_SCAN.md", + "sourcePath": "docs/contributing/CYCLE_SCAN.md", + "sourceSha256": "d8c0446e768e6ba22ed8474d9ec8213e59cae15156949af056589211065fb89a", + "vendoredSha256": "d8c0446e768e6ba22ed8474d9ec8213e59cae15156949af056589211065fb89a" + } + ], + "destination": "sdk/cycle-scan" +} diff --git a/sdk/tests/test_infrastructure_regressions.py b/sdk/tests/test_infrastructure_regressions.py index cb9367ff0c..d73dede490 100644 --- a/sdk/tests/test_infrastructure_regressions.py +++ b/sdk/tests/test_infrastructure_regressions.py @@ -340,6 +340,36 @@ def test_emulator_parent_exit_extension_changes_only_main_cpp(self): self.assertLess(source.index('int serveInteractive('), source.index('::getppid()')) self.assertNotIn('OT_STALL_CPU', source) + def test_cycle_scan_import_sits_outside_the_module_source_fingerprint(self): + import hashlib, json + imported = json.loads((ROOT.parent / 'imports/octabam-cycle-scan-cc7cffc1.json').read_text(encoding='utf-8')) + self.assertEqual((imported['kind'], imported['modules']), ('infrastructure-backport', [])) + self.assertEqual(imported['revision'], 'cc7cffc1a675a763c5b8d6fbe1659f2b322cc540') + # sdk/cycle-scan, not sdk/octabam/tools: tools/ is in the module-source fingerprint (scripts/module-source.mjs), and + # no compiler reads these files, so they must not make every module package count as rebuilt. + self.assertEqual(imported['destination'], 'sdk/cycle-scan') + scan_dir = ROOT.parent / 'cycle-scan' + self.assertEqual([f['path'] for f in imported['files']], ['interlock_scan.py', 'dsp_host.cpp', 'CYCLE_SCAN.md']) + for file in imported['files']: + with self.subTest(path=file['path']): + self.assertEqual(hashlib.sha256((scan_dir / file['path']).read_bytes()).hexdigest(), file['vendoredSha256']) + self.assertFalse((ROOT / 'tools/build/interlock_scan.py').exists()) + # Two adaptations, both in the scanner: it finds sdk/octabam from its own folder, and, Modwerk having no SEND module + # (FX2 id 0x09 is LOFI2's), its scratch remix is the module beside the stock effects with no fallback, as the + # modules' perf.py builds theirs. dsp_host.cpp and the page are upstream's byte for byte. + adapted = {f['path'] for f in imported['files'] if f['sourceSha256'] != f['vendoredSha256']} + self.assertEqual(adapted, {'interlock_scan.py'}) + scan = (scan_dir / 'interlock_scan.py').read_text(encoding='utf-8') + self.assertIn('def _send():', scan) + self.assertIn("fallback=\"NONE\",\\n static_stock=True", scan) + self.assertNotIn('registry.by_name("send")', scan) + self.assertIn('os.environ.get("OCTABAM_ROOT"', scan) + # The harness copy under tools/ stays the 5c71bc8c import's; build-tools.sh stages upstream's -steptrace copy over the + # vendor tree's only when the scan's tools are built. + self.assertNotIn('-steptrace', (ROOT / 'tools/harness/dsp_host/dsp_host.cpp').read_text(encoding='utf-8')) + self.assertIn('-steptrace', (scan_dir / 'dsp_host.cpp').read_text(encoding='utf-8')) + self.assertIn('cp "$here/dsp_host.cpp" vendor/dsp56300/source/dsp_host/dsp_host.cpp', (scan_dir / 'build-tools.sh').read_text(encoding='utf-8')) + def test_docs_imports_are_upstream_files_byte_for_byte(self): import hashlib, json records = [json.loads((ROOT.parent / 'imports' / name).read_text(encoding='utf-8')) for name in DOC_IMPORTS] From bad894a40cd2391ff1b21562ca1df907e3a44fa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Thu, 19 Nov 2026 14:10:42 +0100 Subject: [PATCH 108/415] Cycle scan records and the check over them scripts/cycle-scan.mjs record scans a module and its stock comparator on the developer's computer and commits sdk/cycle-scan/records/.json, bound to the module source by performance.json's hash. check (CI, through scripts/cycle-scan.test.mjs) fails a record whose source changed since its scan and a performance.json recording fewer than 90 % of the instructions the scan saw executing; it lists DSP modules without a record. Records for the ten Octatrack modules with DSP code of their own, all current. Co-Authored-By: Claude Opus 5.5 --- changelog/2026-11-19-octabam-cycle-scan.md | 2 +- docs/MODULE_PERFORMANCE.md | 9 ++ scripts/cycle-scan.mjs | 124 ++++++++++++++++++ scripts/cycle-scan.test.mjs | 42 ++++++ sdk/cycle-scan/README.md | 14 ++ sdk/cycle-scan/records/airwindows-chorus.json | 28 ++++ sdk/cycle-scan/records/bbd.json | 30 +++++ sdk/cycle-scan/records/euclid.json | 21 +++ sdk/cycle-scan/records/everb.json | 29 ++++ sdk/cycle-scan/records/lofi2.json | 28 ++++ sdk/cycle-scan/records/miniverb.json | 21 +++ sdk/cycle-scan/records/ring-sc.json | 27 ++++ .../records/sidechain-compressor.json | 20 +++ sdk/cycle-scan/records/tapehead.json | 20 +++ sdk/cycle-scan/records/vibrato.json | 28 ++++ 15 files changed, 442 insertions(+), 1 deletion(-) create mode 100644 scripts/cycle-scan.mjs create mode 100644 scripts/cycle-scan.test.mjs create mode 100644 sdk/cycle-scan/records/airwindows-chorus.json create mode 100644 sdk/cycle-scan/records/bbd.json create mode 100644 sdk/cycle-scan/records/euclid.json create mode 100644 sdk/cycle-scan/records/everb.json create mode 100644 sdk/cycle-scan/records/lofi2.json create mode 100644 sdk/cycle-scan/records/miniverb.json create mode 100644 sdk/cycle-scan/records/ring-sc.json create mode 100644 sdk/cycle-scan/records/sidechain-compressor.json create mode 100644 sdk/cycle-scan/records/tapehead.json create mode 100644 sdk/cycle-scan/records/vibrato.json diff --git a/changelog/2026-11-19-octabam-cycle-scan.md b/changelog/2026-11-19-octabam-cycle-scan.md index 318aaba06b..59b7804455 100644 --- a/changelog/2026-11-19-octabam-cycle-scan.md +++ b/changelog/2026-11-19-octabam-cycle-scan.md @@ -1 +1 @@ -SDK: octabam's cycle scan is imported at `cc7cffc1` into `sdk/cycle-scan/`. It prices the path an Octatrack DSP effect executes with the DSP56300 manual's instruction cycles and pipeline stalls and names the sites that stall, for Modwerk's modules and the stock effects. It sits outside the module-source fingerprint, so no module package needs a rebuild. +SDK: octabam's cycle scan is imported at `cc7cffc1` into `sdk/cycle-scan/`. It prices the path an Octatrack DSP effect executes with the DSP56300 manual's instruction cycles and pipeline stalls and names the sites that stall. `node scripts/cycle-scan.mjs record` commits a module's scan, and `npm run check` fails one whose source changed since or whose performance.json records far fewer instructions than the scan saw executing. It sits outside the module-source fingerprint, so no module package needs a rebuild. diff --git a/docs/MODULE_PERFORMANCE.md b/docs/MODULE_PERFORMANCE.md index 3e2ece1769..6cbf26531f 100644 --- a/docs/MODULE_PERFORMANCE.md +++ b/docs/MODULE_PERFORMANCE.md @@ -12,6 +12,15 @@ New FX should aim for DSP cost in the **same ballpark as stock SPRING REV at its **Stamp the record when you measure.** `npm run perf:audit -- check /evidence/performance.json --stamp`, run right after the measurements, writes `sourceSha256`: the hash of the module's source the numbers were taken on (everything but its documents, media, manifest and `evidence/`). `module:doctor` fails a stamp for other source, so changed code needs new numbers, and a record without one for a module listed from 18 November 2026 or a draft judged as a release; earlier records are asked to stamp at their next measurement. Measure, then stamp: a stamp on numbers you did not take again is a false record. +**The cycle scan checks what you record.** Instructions are not cycles: a DSP56300 instruction takes 1 to 6 cycles and the +core idles on some sequences (pipeline stalls), so a module's instructions a sample understate what it costs beside stock +(every stock effect runs 1.09 to 1.44 cycles an instruction; the scanned modules 1.45 to 1.92, 19 November 2026). After +measuring, run `node scripts/cycle-scan.mjs record ` on your computer ([sdk/cycle-scan](../sdk/cycle-scan/README.md)): +it prices the module's executed path and its stock comparator's from the chip manual and commits +`sdk/cycle-scan/records/.json`. The check in `npm run check` then fails a record whose module source changed since its +scan, and a performance.json that records fewer than 90 % of the instructions the scan saw executing at the dearest +setting. It is a model; the unit stays the judge. + **A module that runs only on a key press.** ColdFire code with no MIDI path and no work in the frame interrupt (a save, a slice or a lock applied when a key is pressed) runs in the UI task, outside the audio frame. Its record (`template key`) needs no static bound, no stock benchmark and no flood. The dearest press, measured as executed instructions in `ot_emu` or timed on the unit, must fit 26,600,000 cycles (100 ms at 266 MHz, a responsiveness target), and that press, repeated at least 20 times while the sequencer plays with a STOP and a Part change between, must not hang it. `module:doctor` refuses this record for a MIDI or machine module (owner, 5 November 2026). **Every module names its CPU price** (owner, 16 November 2026): `resources.cpuPrice` in `octamod.module.json`, as `{"value", "unit": "percent-of-frame", "measure", "tool", "date", "conditions", "source"}`, measured on a unit. A machine's `measure` is `machine-render`, a whole percent read with `npm run device -- do` and `guard` (below), and its descriptor's `reserved[0]` carries the same number (a ported machine's comes from `"cpuPrice"` in its `machine-ports.json` entry). Every other module's is `frame-interrupt`, the share `npm run device:price -- ` reports, to a tenth of a point; the base reads no effect or hook price yet, so for those it is a declaration the next base can admit by. `conditions` names the model, the base, what played and for how long, and `source` the file holding the run's output (TESTING.md). `modules:check` (so CI and `pr:ready`) and `module:doctor` refuse a module without one, or a machine whose two numbers differ. The modules listed before 17 November 2026 wait on `sdk/module-cpu-prices-pending.json` until measured; the list only shrinks, and a module that names its price deletes its line in the same pull request. A ported machine's descriptor is generated by `machine_ports.py` from `"cpuPrice"` in its `machine-ports.json` entry. diff --git a/scripts/cycle-scan.mjs b/scripts/cycle-scan.mjs new file mode 100644 index 0000000000..742b182051 --- /dev/null +++ b/scripts/cycle-scan.mjs @@ -0,0 +1,124 @@ +#!/usr/bin/env node +// SPDX-License-Identifier: GPL-3.0-or-later +// The cycle scan's records and the check over them (sdk/cycle-scan/README.md). +// +// node scripts/cycle-scan.mjs record [ ...] # on your computer: scan each Octatrack module, write its record +// node scripts/cycle-scan.mjs check # anywhere, CI included: judge every committed record +// +// `record` runs sdk/cycle-scan/interlock_scan.py --sweep on the module and on the stock effect its performance.json compares +// it with, and writes sdk/cycle-scan/records/.json: the dearest setting's instructions, cycles and stalls a sample, +// bound to the module's source by the same hash as performance.json's sourceSha256. It needs the scan's tools and your own +// OS extraction (sdk/cycle-scan/README.md); OCTABAM_ROOT names a built tree other than sdk/octabam, and the module copy +// that tree scans must be this repository's, byte for byte in its source, or nothing is written. +// +// `check` needs neither: a record whose module source has changed since its scan fails (scan it again), and so does a +// module whose performance.json records far fewer instructions a sample than the scan saw it execute. The records live +// here, not in the module folders: those belong to their authors. +import { execFileSync } from 'node:child_process' +import { existsSync, mkdtempSync, readdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs' +import { tmpdir } from 'node:os' +import { dirname, join, resolve } from 'node:path' +import { fileURLToPath } from 'node:url' +import { modulePerformanceSourceSha256 } from './module-qualification.mjs' +import { parseModuleDocument } from '../src/catalog/module-contract.ts' + +const root = resolve(dirname(fileURLToPath(import.meta.url)), '..') +export const RECORDS = 'sdk/cycle-scan/records' +export const MODULES = 'sdk/octatrack/modules' +/** A performance.json may record fewer instructions than the scan's dearest setting by this share at most: the scan + * prices one steady block per setting, a measurement can land on a cheaper one, but not on far cheaper code. */ +export const UNDER_REPORT = 0.9 +/** The DSP's cycles a sample (sdk/cycle-scan/CYCLE_SCAN.md, the measured clock). */ +export const CLOCK = 4532 +const SCAN_REVISION = 'cc7cffc1a675a763c5b8d6fbe1659f2b322cc540' + +/** The dearest run of an interlock_scan --json report, as a record keeps it. */ +export function dearest(report) { + const runs = (report.runs ?? []).filter(run => run.cycles) + if (!runs.length) throw new Error(`${report.name ?? report.target}: the scan has no runs${report.error ? ': ' + report.error : ''}`) + const run = runs.reduce((a, b) => (b.cycles > a.cycles ? b : a)) + const round = n => Math.round(n * 100) / 100 + return { setting: `${run.label}/${run.variant}`, settings: runs.length, instructions: round(run.instr), cycles: round(run.cycles), + stalls: round(run.stall), stallsByKind: Object.fromEntries(Object.entries(run.stalls).filter(([, v]) => v).map(([k, v]) => [k, round(v)])) } +} + +/** One record's verdict: {fail: [...], info: [...]}. `sourceSha256` is the module's source now; `performance` its + * evidence/performance.json, or null. */ +export function judge({ id, record, sourceSha256, performance }) { + const fail = [], info = [] + if (record.schema !== 1 || record.module !== id) fail.push(`${id}: not a cycle-scan record for this module`) + if (record.sourceSha256 !== sourceSha256) + fail.push(`${id}: the module's source changed since its cycle scan: run node scripts/cycle-scan.mjs record ${id} on your computer`) + const scan = record.dearest + const measured = performance?.cycles?.unit === 'instructions/sample' ? performance.cycles.measured : undefined + if (typeof measured !== 'number') info.push(`${id}: performance.json records no instructions a sample to compare`) + else if (measured < scan.instructions * UNDER_REPORT) + fail.push(`${id}: performance.json records ${measured} instructions a sample, but the cycle scan saw ${scan.instructions} executing at ` + + `${scan.setting}: measure the dearest case again (docs/MODULE_PERFORMANCE.md)`) + const pct = n => (100 * n / CLOCK).toFixed(1) + ' %' + info.push(`${id}: ${scan.cycles} cycles a sample (${pct(scan.cycles)}), ${scan.stalls} of them stalls, at ${scan.setting}` + + (record.stock ? `; stock ${record.stock.comparator} ${record.stock.cycles} (${pct(record.stock.cycles)}), ` + + `${(scan.cycles / record.stock.cycles).toFixed(2)}x in cycles against ${(scan.instructions / record.stock.instructions).toFixed(2)}x in instructions` : '')) + return { fail, info } +} + +const readJson = path => JSON.parse(readFileSync(path, 'utf8')) +const documentOf = folder => parseModuleDocument(readJson(join(folder, 'octamod.module.json'))) +const performanceOf = folder => existsSync(join(folder, 'evidence/performance.json')) ? readJson(join(folder, 'evidence/performance.json')) : null + +/** Every committed record judged, and the DSP modules that have none (told, not failed). */ +export async function check(base = root) { + const dir = join(base, RECORDS), fail = [], info = [] + const ids = existsSync(dir) ? readdirSync(dir).filter(name => name.endsWith('.json')).map(name => name.slice(0, -5)).sort() : [] + for (const id of ids) { + const folder = join(base, MODULES, id) + if (!existsSync(join(folder, 'octamod.module.json'))) { fail.push(`${id}: a cycle-scan record for a module that is not in ${MODULES}`); continue } + const verdict = judge({ id, record: readJson(join(dir, id + '.json')), sourceSha256: await modulePerformanceSourceSha256(folder, documentOf(folder)), performance: performanceOf(folder) }) + fail.push(...verdict.fail); info.push(...verdict.info) + } + const unscanned = readdirSync(join(base, MODULES)).filter(id => !ids.includes(id) && performanceOf(join(base, MODULES, id))?.kind === 'dsp') + if (unscanned.length) info.push(`no cycle scan yet: ${unscanned.sort().join(', ')}`) + return { fail, info, records: ids.length } +} + +function scan(tree, target) { + const dir = mkdtempSync(join(tmpdir(), 'cycle-scan-')), out = join(dir, 'scan.json') + try { + execFileSync('python3', ['-B', join(root, 'sdk/cycle-scan/interlock_scan.py'), target, '--sweep', '--json', out], + { cwd: tree, env: { ...process.env, OCTABAM_ROOT: tree }, stdio: ['ignore', 'ignore', 'inherit'], timeout: 1800000 }) + return readJson(out) + } finally { rmSync(dir, { recursive: true, force: true }) } +} + +async function record(ids) { + const tree = resolve(process.env.OCTABAM_ROOT ?? join(root, 'sdk/octabam')) + if (!existsSync(join(tree, 'vendor/dsp56300/build/source/dsp_host/dsp_host'))) throw new Error(`${tree} has no built dsp_host: run sdk/cycle-scan/build-tools.sh first.`) + for (const id of ids) { + const folder = join(root, MODULES, id), document = documentOf(folder), sourceSha256 = await modulePerformanceSourceSha256(folder, document) + const scanned = join(tree, 'modules', id) + if (!existsSync(scanned) || await modulePerformanceSourceSha256(scanned, documentOf(scanned)) !== sourceSha256) + throw new Error(`${id}: the module ${tree} scans is not this repository's source: refresh that tree (npm run prepare there) and record again.`) + const performance = performanceOf(folder), result = dearest(scan(tree, id)) + if (result.instructions < 5) throw new Error(`${id}: ${result.instructions} instructions a sample: its DSP entry is a stub (the module runs on the ColdFire), nothing to record.`) + const comparator = performance?.stock?.comparator, stock = comparator ? dearest(scan(tree, comparator)) : null + const doc = { schema: 1, module: id, version: document.version, sourceSha256, scanRevision: SCAN_REVISION, + model: 'DSP56300FM Table A-1 cycles and the A.2 and 3.5 stalls on one steady block of each --sweep setting; a model, not a measurement', + dearest: result, ...(stock ? { stock: { comparator, setting: stock.setting, instructions: stock.instructions, cycles: stock.cycles, stalls: stock.stalls } } : {}) } + writeFileSync(join(root, RECORDS, id + '.json'), JSON.stringify(doc, null, 2) + '\n') + console.log(`${id}: ${result.cycles} cycles a sample at ${result.setting} (${result.stalls} stalls)` + (stock ? `; ${comparator} ${stock.cycles}` : '')) + } +} + +if (process.argv[1] && resolve(process.argv[1]) === fileURLToPath(import.meta.url)) { + const [command, ...ids] = process.argv.slice(2) + try { + if (command === 'record' && ids.length) await record(ids) + else if (command === 'check') { + const { fail, info, records } = await check() + for (const line of info) console.log(' · ' + line) + for (const line of fail) console.error(' ✗ ' + line) + console.log(fail.length ? `Cycle scan: ${fail.length} of ${records} records fail.` : `Cycle scan: ${records} records current, none under-reported.`) + if (fail.length) process.exitCode = 1 + } else { console.error('Usage: node scripts/cycle-scan.mjs record [ ...] | check'); process.exitCode = 2 } + } catch (error) { console.error(error.message); process.exitCode = 1 } +} diff --git a/scripts/cycle-scan.test.mjs b/scripts/cycle-scan.test.mjs new file mode 100644 index 0000000000..ba6f0bb9be --- /dev/null +++ b/scripts/cycle-scan.test.mjs @@ -0,0 +1,42 @@ +import { describe, expect, it } from 'vitest' +import { UNDER_REPORT, check, dearest, judge } from './cycle-scan.mjs' + +const record = (more = {}) => ({ schema: 1, module: 'fx', version: '0.1.0', sourceSha256: 'a'.repeat(64), + dearest: { setting: 'MODE=B/max', settings: 4, instructions: 400, cycles: 650, stalls: 90, stallsByKind: { arith: 60 } }, + stock: { comparator: 'LO-FI', setting: 'defaults/def', instructions: 280, cycles: 306, stalls: 16 }, ...more }) +const performance = measured => ({ kind: 'dsp', cycles: { unit: 'instructions/sample', measured } }) + +describe('cycle scan records', () => { + it('keeps the dearest run of a scan report', () => { + const report = { name: 'fx', runs: [ + { label: 'A', variant: 'def', instr: 100, cycles: 150.123, stall: 10, stalls: { arith: 10, agu: 0 } }, + { label: 'B', variant: 'max', instr: 120, cycles: 200.456, stall: 30, stalls: { arith: 20, agu: 10 } }, + { label: 'C', variant: 'min', error: 'dsp_host failed' }] } + expect(dearest(report)).toEqual({ setting: 'B/max', settings: 2, instructions: 120, cycles: 200.46, stalls: 30, stallsByKind: { arith: 20, agu: 10 } }) + expect(() => dearest({ name: 'fx', runs: [], error: 'not scanned' })).toThrow(/no runs: not scanned/) + }) + it('passes a current record whose recorded cost is at or near the scan', () => { + const verdict = judge({ id: 'fx', record: record(), sourceSha256: 'a'.repeat(64), performance: performance(410) }) + expect(verdict.fail).toEqual([]) + expect(verdict.info[0]).toMatch(/650 cycles a sample \(14\.3 %\).*stock LO-FI 306 .*2\.12x in cycles against 1\.43x in instructions/) + expect(judge({ id: 'fx', record: record(), sourceSha256: 'a'.repeat(64), performance: performance(400 * UNDER_REPORT) }).fail).toEqual([]) + }) + it('fails a record whose module source changed since the scan', () => { + expect(judge({ id: 'fx', record: record(), sourceSha256: 'b'.repeat(64), performance: performance(410) }).fail) + .toEqual([expect.stringMatching(/source changed since its cycle scan: run node scripts\/cycle-scan\.mjs record fx/)]) + }) + it('fails a performance record far below what the scan saw executing', () => { + expect(judge({ id: 'fx', record: record(), sourceSha256: 'a'.repeat(64), performance: performance(300) }).fail) + .toEqual([expect.stringMatching(/records 300 instructions a sample, but the cycle scan saw 400 executing at MODE=B\/max/)]) + }) + it('tells, not fails, a module without instructions to compare, and refuses a record for another module', () => { + const none = judge({ id: 'fx', record: record(), sourceSha256: 'a'.repeat(64), performance: null }) + expect(none.fail).toEqual([]) + expect(none.info[0]).toMatch(/records no instructions a sample/) + expect(judge({ id: 'other', record: record(), sourceSha256: 'a'.repeat(64), performance: performance(410) }).fail[0]).toMatch(/not a cycle-scan record for this module/) + }) + it('finds every committed record current and none under-reported', async () => { + const result = await check() + expect(result.fail).toEqual([]) + }) +}) diff --git a/sdk/cycle-scan/README.md b/sdk/cycle-scan/README.md index 4ee2a96527..e5a3f36cbe 100644 --- a/sdk/cycle-scan/README.md +++ b/sdk/cycle-scan/README.md @@ -24,4 +24,18 @@ Modwerk's adaptations, both recorded: the scanner finds the octabam tree at `sdk and, since Modwerk has no SEND module (FX2 id 0x09 is LOFI2's), its scratch image is the module beside the stock effects with no fallback, as the modules' own `perf.py` build theirs. +## Records and the check + +```bash +node scripts/cycle-scan.mjs record lofi2 vibrato # on your computer; OCTABAM_ROOT names a built tree other than sdk/octabam +node scripts/cycle-scan.mjs check # anywhere; npm run check runs it through scripts/cycle-scan.test.mjs +``` + +`record` scans the module and the stock effect its `performance.json` compares it with, and writes `records/.json`: +the dearest setting's instructions, cycles and stalls, bound to the module's source by the hash `performance.json`'s +`sourceSha256` uses. It writes nothing when the tree it scans holds other module source than this repository. `check` fails +a record whose module source has changed since (scan it again) and a `performance.json` recording fewer than 90 % of the +instructions the scan saw executing; it lists the DSP modules without a record, without failing them. The records sit +here, not in the module folders, which belong to their authors. + It is a model, not a measurement: the unit stays the judge ([MODULE_PERFORMANCE.md](../../docs/MODULE_PERFORMANCE.md)). diff --git a/sdk/cycle-scan/records/airwindows-chorus.json b/sdk/cycle-scan/records/airwindows-chorus.json new file mode 100644 index 0000000000..5040f74ec1 --- /dev/null +++ b/sdk/cycle-scan/records/airwindows-chorus.json @@ -0,0 +1,28 @@ +{ + "schema": 1, + "module": "airwindows-chorus", + "version": "0.1.3-experimental", + "sourceSha256": "65cbea807a4368fcf8c6c453c2939b3fe77ace8570e21fc778b9e589f8d32443", + "scanRevision": "cc7cffc1a675a763c5b8d6fbe1659f2b322cc540", + "model": "DSP56300FM Table A-1 cycles and the A.2 and 3.5 stalls on one steady block of each --sweep setting; a model, not a measurement", + "dearest": { + "setting": "defaults/max", + "settings": 4, + "instructions": 357.94, + "cycles": 649, + "stalls": 56.5, + "stallsByKind": { + "agu": 7.88, + "arith": 46, + "arith-tcc": 1, + "transfer": 1.63 + } + }, + "stock": { + "comparator": "CHORUS", + "setting": "defaults/max", + "instructions": 257.81, + "cycles": 290, + "stalls": 5.06 + } +} diff --git a/sdk/cycle-scan/records/bbd.json b/sdk/cycle-scan/records/bbd.json new file mode 100644 index 0000000000..4ef61f37c6 --- /dev/null +++ b/sdk/cycle-scan/records/bbd.json @@ -0,0 +1,30 @@ +{ + "schema": 1, + "module": "bbd", + "version": "0.1.2-experimental", + "sourceSha256": "00d07afa85d75457dee08b3da7c81d44d603f950d758d004738d4eeb78cb2fb3", + "scanRevision": "cc7cffc1a675a763c5b8d6fbe1659f2b322cc540", + "model": "DSP56300FM Table A-1 cycles and the A.2 and 3.5 stalls on one steady block of each --sweep setting; a model, not a measurement", + "dearest": { + "setting": "STGS=1024/dear", + "settings": 8, + "instructions": 365.19, + "cycles": 528.31, + "stalls": 54.31, + "stallsByKind": { + "agu": 3.38, + "agu-lua": 3.19, + "arith": 40.38, + "arith-tcc": 5.94, + "transfer": 1.38, + "tcc-r": 0.06 + } + }, + "stock": { + "comparator": "CHORUS", + "setting": "defaults/max", + "instructions": 257.81, + "cycles": 290, + "stalls": 5.06 + } +} diff --git a/sdk/cycle-scan/records/euclid.json b/sdk/cycle-scan/records/euclid.json new file mode 100644 index 0000000000..1dff65286d --- /dev/null +++ b/sdk/cycle-scan/records/euclid.json @@ -0,0 +1,21 @@ +{ + "schema": 1, + "module": "euclid", + "version": "0.1.5-experimental", + "sourceSha256": "ff35c2418497641bbf4647cc8ed50adc1e6a31d2269e0133ecb5e5701af4c964", + "scanRevision": "cc7cffc1a675a763c5b8d6fbe1659f2b322cc540", + "model": "DSP56300FM Table A-1 cycles and the A.2 and 3.5 stalls on one steady block of each --sweep setting; a model, not a measurement", + "dearest": { + "setting": "RATE=1/32/def", + "settings": 15, + "instructions": 141.81, + "cycles": 232.44, + "stalls": 25.19, + "stallsByKind": { + "agu": 3.38, + "arith": 19.75, + "arith-tcc": 0.06, + "transfer": 2 + } + } +} diff --git a/sdk/cycle-scan/records/everb.json b/sdk/cycle-scan/records/everb.json new file mode 100644 index 0000000000..f5ecb40808 --- /dev/null +++ b/sdk/cycle-scan/records/everb.json @@ -0,0 +1,29 @@ +{ + "schema": 1, + "module": "everb", + "version": "0.1.2-experimental", + "sourceSha256": "79eefc04afbab19f28a002d8b2031919d93ba42b598d1c613c80708e782b4f9f", + "scanRevision": "cc7cffc1a675a763c5b8d6fbe1659f2b322cc540", + "model": "DSP56300FM Table A-1 cycles and the A.2 and 3.5 stalls on one steady block of each --sweep setting; a model, not a measurement", + "dearest": { + "setting": "REV=ON/dear", + "settings": 8, + "instructions": 369.06, + "cycles": 664.88, + "stalls": 132.81, + "stallsByKind": { + "agu": 25.44, + "agu-lua": 29.94, + "arith": 74.75, + "arith-tcc": 1.56, + "transfer": 1.13 + } + }, + "stock": { + "comparator": "DARK REV", + "setting": "defaults/max", + "instructions": 197.44, + "cycles": 253.25, + "stalls": 14.69 + } +} diff --git a/sdk/cycle-scan/records/lofi2.json b/sdk/cycle-scan/records/lofi2.json new file mode 100644 index 0000000000..2d2bd272e2 --- /dev/null +++ b/sdk/cycle-scan/records/lofi2.json @@ -0,0 +1,28 @@ +{ + "schema": 1, + "module": "lofi2", + "version": "0.1.1-experimental", + "sourceSha256": "b547e5ff4ed0b9c1d77f02629a83f6195887073fee58bdc1e8c5a3677ab2e62f", + "scanRevision": "cc7cffc1a675a763c5b8d6fbe1659f2b322cc540", + "model": "DSP56300FM Table A-1 cycles and the A.2 and 3.5 stalls on one steady block of each --sweep setting; a model, not a measurement", + "dearest": { + "setting": "DOWN/max", + "settings": 12, + "instructions": 410.63, + "cycles": 654.25, + "stalls": 89.63, + "stallsByKind": { + "agu": 20, + "arith": 59.81, + "arith-tcc": 7.25, + "transfer": 2.56 + } + }, + "stock": { + "comparator": "LO-FI", + "setting": "defaults/def", + "instructions": 279.56, + "cycles": 305.88, + "stalls": 15.81 + } +} diff --git a/sdk/cycle-scan/records/miniverb.json b/sdk/cycle-scan/records/miniverb.json new file mode 100644 index 0000000000..d7fef4be4a --- /dev/null +++ b/sdk/cycle-scan/records/miniverb.json @@ -0,0 +1,21 @@ +{ + "schema": 1, + "module": "miniverb", + "version": "0.2.3-experimental", + "sourceSha256": "59b60c1e34a03727b1f45c63181621a60c889e39eabf0811eae7a32079465195", + "scanRevision": "cc7cffc1a675a763c5b8d6fbe1659f2b322cc540", + "model": "DSP56300FM Table A-1 cycles and the A.2 and 3.5 stalls on one steady block of each --sweep setting; a model, not a measurement", + "dearest": { + "setting": "RATE=0.34/min", + "settings": 24, + "instructions": 363.38, + "cycles": 698.56, + "stalls": 159.25, + "stallsByKind": { + "agu": 96, + "agu-lua": 6, + "arith": 47.19, + "transfer": 10.06 + } + } +} diff --git a/sdk/cycle-scan/records/ring-sc.json b/sdk/cycle-scan/records/ring-sc.json new file mode 100644 index 0000000000..b1b1ecdea6 --- /dev/null +++ b/sdk/cycle-scan/records/ring-sc.json @@ -0,0 +1,27 @@ +{ + "schema": 1, + "module": "ring-sc", + "version": "0.2.1-experimental", + "sourceSha256": "d5782f60b1eac8e7207b747a78a202c5973f2ef8475bb72c8fc3291e7ae79394", + "scanRevision": "cc7cffc1a675a763c5b8d6fbe1659f2b322cc540", + "model": "DSP56300FM Table A-1 cycles and the A.2 and 3.5 stalls on one steady block of each --sweep setting; a model, not a measurement", + "dearest": { + "setting": "RING/dear", + "settings": 8, + "instructions": 70.81, + "cycles": 121.94, + "stalls": 15.94, + "stallsByKind": { + "agu": 0.38, + "arith": 12.44, + "arith-tcc": 3.13 + } + }, + "stock": { + "comparator": "COMPRESSOR", + "setting": "defaults/def", + "instructions": 71.63, + "cycles": 103.06, + "stalls": 10.38 + } +} diff --git a/sdk/cycle-scan/records/sidechain-compressor.json b/sdk/cycle-scan/records/sidechain-compressor.json new file mode 100644 index 0000000000..c7704e6f10 --- /dev/null +++ b/sdk/cycle-scan/records/sidechain-compressor.json @@ -0,0 +1,20 @@ +{ + "schema": 1, + "module": "sidechain-compressor", + "version": "0.2.2-experimental", + "sourceSha256": "64e63af143409824566819fc16a020352ab9316a9f275ba6e1fceb04fd634d1a", + "scanRevision": "cc7cffc1a675a763c5b8d6fbe1659f2b322cc540", + "model": "DSP56300FM Table A-1 cycles and the A.2 and 3.5 stalls on one steady block of each --sweep setting; a model, not a measurement", + "dearest": { + "setting": "MON=OFF/def", + "settings": 12, + "instructions": 73, + "cycles": 106.69, + "stalls": 11, + "stallsByKind": { + "agu": 4.63, + "arith": 6.31, + "transfer": 0.06 + } + } +} diff --git a/sdk/cycle-scan/records/tapehead.json b/sdk/cycle-scan/records/tapehead.json new file mode 100644 index 0000000000..0bcfeb3975 --- /dev/null +++ b/sdk/cycle-scan/records/tapehead.json @@ -0,0 +1,20 @@ +{ + "schema": 1, + "module": "tapehead", + "version": "0.1.2-experimental", + "sourceSha256": "9b005a4f1a186cc7731c5bf973d59ebef9538190ac63fddba26f0e60c96c8646", + "scanRevision": "cc7cffc1a675a763c5b8d6fbe1659f2b322cc540", + "model": "DSP56300FM Table A-1 cycles and the A.2 and 3.5 stalls on one steady block of each --sweep setting; a model, not a measurement", + "dearest": { + "setting": "COLOR=BRGT/def", + "settings": 12, + "instructions": 274.13, + "cycles": 425.5, + "stalls": 67.13, + "stallsByKind": { + "agu": 5.81, + "arith": 54.56, + "transfer": 6.75 + } + } +} diff --git a/sdk/cycle-scan/records/vibrato.json b/sdk/cycle-scan/records/vibrato.json new file mode 100644 index 0000000000..960f61c494 --- /dev/null +++ b/sdk/cycle-scan/records/vibrato.json @@ -0,0 +1,28 @@ +{ + "schema": 1, + "module": "vibrato", + "version": "0.1.0-experimental", + "sourceSha256": "4129c9655376d72f1b9fd882c525b1ff49e38a58d058bbd4f9955b1826bcfbf0", + "scanRevision": "cc7cffc1a675a763c5b8d6fbe1659f2b322cc540", + "model": "DSP56300FM Table A-1 cycles and the A.2 and 3.5 stalls on one steady block of each --sweep setting; a model, not a measurement", + "dearest": { + "setting": "SHP=TRI/max", + "settings": 16, + "instructions": 121.06, + "cycles": 207, + "stalls": 36.25, + "stallsByKind": { + "agu": 12.19, + "arith": 19.13, + "arith-tcc": 0.81, + "transfer": 4.13 + } + }, + "stock": { + "comparator": "CHORUS", + "setting": "defaults/max", + "instructions": 257.81, + "cycles": 290, + "stalls": 5.06 + } +} From cdd0dfb999cffcb4fc97ddb2d157043acf8cf26b Mon Sep 17 00:00:00 2001 From: repeat98 Date: Thu, 19 Nov 2026 16:48:56 +0100 Subject: [PATCH 109/415] Fix: keep a recovery copy when importing an Octatrack card set --- changelog/2026-11-19-octatrack-card-import.md | 1 + docs/OCTATRACK_DRIVING.md | 2 +- scripts/octatrack-card-set.mjs | 27 ++++++++------ sdk/tests/test_runtime_journal.py | 7 ++-- src/components/CardSetDownload.test.ts | 17 +++++++++ src/components/UnitPanel.tsx | 35 +++++++++++++------ src/components/faq-content.tsx | 2 +- src/engine/elekloader/card-set.test.ts | 17 +++++++-- src/engine/elekloader/card-set.ts | 25 +++++++++++-- 9 files changed, 105 insertions(+), 28 deletions(-) create mode 100644 changelog/2026-11-19-octatrack-card-import.md diff --git a/changelog/2026-11-19-octatrack-card-import.md b/changelog/2026-11-19-octatrack-card-import.md new file mode 100644 index 0000000000..8981bb7e9e --- /dev/null +++ b/changelog/2026-11-19-octatrack-card-import.md @@ -0,0 +1 @@ +Load from the card can use the card’s MODWERK1.SET to prepare a module set that takes priority on the next boot. The other slot stays available for recovery, even when the computer clock is behind. diff --git a/docs/OCTATRACK_DRIVING.md b/docs/OCTATRACK_DRIVING.md index 4bf9287c6c..acc51d60a2 100644 --- a/docs/OCTATRACK_DRIVING.md +++ b/docs/OCTATRACK_DRIVING.md @@ -148,7 +148,7 @@ error and moves on. macOS `nc -U` hangs up before the reply, so use the script. | `screen` | the screen as block characters (thousands of tokens; avoid) | | `crash` | the last crash record (vector, PC, registers); `crashtest` makes one. The PC and the stack read as names (`mw_frame_exit+0x2c`) when the running base was built with `octatrack:base -- --out` or started with `boot DIR` on this computer; your own names for stock addresses go in `~/.cache/modwerk-local/octatrack/addresses.json` (`{"0x…": "name"}`), never in Git. `diaglog` and `diagnostics:pull` name them the same way | | `selftest` | PROJ > MODWERK > SELF TEST over USB: start it (transport stopped), wait, print the verdict, the modules that ran and the CPU and core peaks | -| `saved` | the card set's result code, modules saved and live, read without a test: 1 restored at this start, 7 saved since. Not its generation, which no request reports. To try a set from the card, `node scripts/octatrack-card-set.mjs --out DIR ID…` writes `MODWERK0.SET` for the published base; the owner copies it and power-cycles (restored so on the MKII, released base `d891acb3`, 11 November 2026) | +| `saved` | the card set's result code, modules saved and live, read without a test: 1 restored at this start, 7 saved since. Not its generation, which no request reports. To try a set from the card, `node scripts/octatrack-card-set.mjs --out DIR ID…` writes `MODWERK0.SET` for the published base; on a used card run the same script with `--out CARD --import DIR/MODWERK0.SET` to select that export ahead of `MODWERK1.SET` and keep the recovery slot, then power-cycle (restored so on the MKII, released base `d891acb3`, 11 November 2026) | | `dspmap`, `dspmap:watch:N` | each core's DSP code arena drawn as 64 cells, a letter per placed block and `.` per free words, then each block's name, start, words and the slots running it (else `preloaded`: code another Part of the bank names). `watch:N` redraws it for N seconds (at most 15) whenever a block comes, goes or moves, so compaction shows: on 24 October 2026 removing a Mini Verb between SPRING REV and DARK REV left a 538-word hole and DARK REV moved down into it 2.1 s later | | `profile`, `profile:N` | the base's tick profile (`modwerk_cost`, diag.h): each UI tick hook's µs a tick over N seconds (3, at most 15) and the frame transfer's µs a frame. It reads the address from the build `boot DIR` last started (`~/.cache/modwerk-octatrack/last-boot`) and refuses when another base runs. On 24 October 2026 it showed the controller tick at 814 µs with 26 modules installed, 212 µs after the fix in #880 | | `selftest:trace` | the same, printing each half second's phase, progress, the CPU the test recorded and the meter's latest window beside it: what a CPU or core peak came from | diff --git a/scripts/octatrack-card-set.mjs b/scripts/octatrack-card-set.mjs index 332bf5733c..ae514e7ec7 100644 --- a/scripts/octatrack-card-set.mjs +++ b/scripts/octatrack-card-set.mjs @@ -2,25 +2,32 @@ // Writes a module set as the file the Modwerk base restores from the card (src/engine/elekloader/card-set.ts), from // the packages this checkout publishes, for trying the card route on a unit before the site offers it: // node scripts/octatrack-card-set.mjs --out [ …] -// Copy MODWERK0.SET to the card's top folder and switch the Octatrack on with the base named below. +// To replay an older export, use --out --import . Its other slot stays intact. // The site's own code does the work, loaded through Vite as the page loads it. -import { mkdirSync, readFileSync, writeFileSync } from 'node:fs' -import { createHash } from 'node:crypto' +import { existsSync, mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from 'node:fs' +import { createHash, randomUUID } from 'node:crypto' import { dirname, join, relative, resolve } from 'node:path' import { fileURLToPath } from 'node:url' import { createServer } from 'vite' const root = resolve(dirname(fileURLToPath(import.meta.url)), '..'), args = process.argv.slice(2), at = args.indexOf('--out') const out = at < 0 ? '' : resolve(args[at + 1] ?? ''), ids = args.filter((_, index) => at < 0 || (index !== at && index !== at + 1)) -if (!out || !ids.length) throw new Error('Usage: node scripts/octatrack-card-set.mjs --out [ …]') +const importing = ids[0] === '--import' +if (!out || !ids.length || (importing && ids.length !== 2)) throw new Error('Usage: node scripts/octatrack-card-set.mjs --out ') if (!relative(root, out).startsWith('..')) throw new Error('Write the set outside the repository: built files are never committed.') const vite = await createServer({ root, logLevel: 'error', appType: 'custom', server: { middlewareMode: true, hmr: false, ws: false }, optimizeDeps: { noDiscovery: true } }) try { const { prepareCardSet } = await vite.ssrLoadModule('/src/engine/elekloader/module-set.ts') - const { CARD_SET_FILE } = await vite.ssrLoadModule('/src/engine/elekloader/card-set.ts') - const { layoutName } = await vite.ssrLoadModule('/src/engine/elekloader/base-variants.ts') - const set = await prepareCardSet({ name: 'Card set', moduleIds: ids, removedStockFx: [] }, async entry => new Uint8Array(readFileSync(join(root, 'public', entry.path)))) - mkdirSync(out, { recursive: true }); writeFileSync(join(out, CARD_SET_FILE), set.file) - console.log(`${join(out, CARD_SET_FILE)}: ${set.modules.join(', ')} (${set.file.length} bytes, SHA-256 ${createHash('sha256').update(set.file).digest('hex')})`) - console.log(`For the Modwerk base ${set.base.slice(0, 8)} (${layoutName(set.layout)}); a unit on another base ignores it.`) + const { CARD_SET_FILE, CARD_RECOVERY_FILE, forCardImport } = await vite.ssrLoadModule('/src/engine/elekloader/card-set.ts') + const source = importing ? readFileSync(ids[1]) : (await prepareCardSet({ name: 'Card set', moduleIds: ids, removedStockFx: [] }, async entry => new Uint8Array(readFileSync(join(root, 'public', entry.path))))).file + mkdirSync(out, { recursive: true }) + const retained = join(out, CARD_RECOVERY_FILE) + const file = forCardImport(source, existsSync(retained) ? readFileSync(retained) : undefined) + const temp = join(out, '.' + randomUUID() + '.tmp') + try { + writeFileSync(temp, file, { flag: 'wx', flush: true }) + renameSync(temp, join(out, CARD_SET_FILE)) + } finally { rmSync(temp, { force: true }) } + console.log(`${join(out, CARD_SET_FILE)} (${file.length} bytes, SHA-256 ${createHash('sha256').update(file).digest('hex')})`) + console.log('For the Modwerk base ' + Buffer.from(file.subarray(20, 24)).toString('hex') + '. If copying to another card that already holds MODWERK1.SET, run --import with that card as --out.') } finally { await vite.close() } diff --git a/sdk/tests/test_runtime_journal.py b/sdk/tests/test_runtime_journal.py index 60f50754f0..a1731340f7 100644 --- a/sdk/tests/test_runtime_journal.py +++ b/sdk/tests/test_runtime_journal.py @@ -187,8 +187,11 @@ def test_the_base_restores_a_set_file_the_site_wrote_for_the_card(self): CHECK(modwerk_modset_result == SAVED && modwerk_modset_generation == 1700000001u); boot(); modwerk_modset_service(); CHECK(modwerk_modset_result == RESTORED && installed == 3 && modwerk_modset_count == 3); - /* A changed byte in a package: not whole, so the unit's own newer file stays the set. */ - copy_to_card(); card[0][HEADER + 9] ^= 1; boot(); modwerk_modset_service(); + /* Import the old two-module export again at the generation produced by forCardImport in card-set.test.ts. */ + copy_to_card(); put32(card[0] + 8, 1700000002u); boot(); modwerk_modset_service(); + CHECK(modwerk_modset_result == RESTORED && installed == 2 && modwerk_modset_generation == 1700000002u); + /* Damage that higher-generation import: slot one's saved three-module set is still recoverable. */ + card[0][HEADER + 9] ^= 1; boot(); modwerk_modset_service(); CHECK(modwerk_modset_result == RESTORED && installed == 3); /* Alone on the card of a unit that runs another base: nothing is installed. */ memset(card, 0, sizeof card); memset(card_bytes, 0, sizeof card_bytes); diff --git a/src/components/CardSetDownload.test.ts b/src/components/CardSetDownload.test.ts index 0dce49a858..a2e93c325f 100644 --- a/src/components/CardSetDownload.test.ts +++ b/src/components/CardSetDownload.test.ts @@ -8,6 +8,7 @@ vi.mock('../engine/elekloader/module-set', () => ({ prepareCardSet: mocked.prepa vi.mock('./OctatrackBackups', () => ({ save: mocked.save })) vi.mock('../community/usage', () => ({ trackModuleDownloads: mocked.count })) vi.mock('../community/useDownloadFollows', () => ({ useDownloadFollows: () => ({ followDownloads: mocked.follow, followNotice: '' }) })) +import { encodeCardSet } from '../engine/elekloader/card-set' import { CardSetDownload } from './UnitPanel' let root: Root, container: HTMLDivElement @@ -23,6 +24,8 @@ describe('loading a module set from the card', () => { expect(button().textContent).toBe('Load from the card'); expect(button().className).toContain('button-primary') expect(container.textContent).toContain('It needs the Modwerk base on the Octatrack'); expect(container.querySelector('dialog')).toBeNull() await act(async () => { button().click() }) + expect(mocked.save).not.toHaveBeenCalled() + await act(async () => { [...container.querySelectorAll('dialog button')].find(item => item.textContent?.includes('without MODWERK1.SET'))!.dispatchEvent(new MouseEvent('click', { bubbles: true })) }) expect(mocked.prepare).toHaveBeenCalledWith(set); expect(mocked.save).toHaveBeenCalledWith(file, 'MODWERK0.SET'); expect(mocked.count).toHaveBeenCalledWith(['everb', 'euclid']) // As a downloaded build did: update notifications and the hardware feedback reminder, for the versions the base packages hold. expect(mocked.follow).toHaveBeenCalledWith(['everb', 'euclid'], { machine: 'Octatrack', os: '1.40C', modules: [expect.objectContaining({ id: 'everb', name: 'E-Verb' }), expect.objectContaining({ id: 'euclid' })] }) @@ -35,6 +38,20 @@ describe('loading a module set from the card', () => { await act(async () => { [...dialog.querySelectorAll('button')].find(item => item.textContent === 'Done')!.click() }) expect(container.querySelector('dialog')).toBeNull() }) + it('downloads a copy ahead of the selected recovery slot', async () => { + const base = 'd891acb3' + '0'.repeat(56) + const source = encodeCardSet(base, [], 15), recovery = encodeCardSet(base, [], 99) + mocked.prepare.mockResolvedValue({ base, layout: 'off', modules: [], file: source }) + await act(() => root.render(createElement(CardSetDownload, { set }))) + await act(async () => { button().click() }) + const input = container.querySelector('dialog input[type=file]')! + Object.defineProperty(input, 'files', { value: [{ name: 'MODWERK1.SET', arrayBuffer: async () => recovery.buffer }] }) + await act(async () => { input.dispatchEvent(new Event('change', { bubbles: true })) }) + const [file, name] = mocked.save.mock.calls[0] + expect(name).toBe('MODWERK0.SET') + expect(new DataView(file.buffer).getUint32(8)).toBe(100) + expect(new DataView(recovery.buffer).getUint32(8)).toBe(99) + }) it('says why a set can’t be written, and saves nothing', async () => { mocked.prepare.mockRejectedValue(new Error('Tuner can’t be loaded onto the base yet. Take it out of the set.')) await act(() => root.render(createElement(CardSetDownload, { set }))) diff --git a/src/components/UnitPanel.tsx b/src/components/UnitPanel.tsx index 9813725f9c..ef738540ad 100644 --- a/src/components/UnitPanel.tsx +++ b/src/components/UnitPanel.tsx @@ -1,5 +1,5 @@ import { useEffect, useRef, useState } from 'react' -import { CARD_SET_FILE } from '../engine/elekloader/card-set' +import { CARD_SET_FILE, CARD_RECOVERY_FILE, forCardImport } from '../engine/elekloader/card-set' import { firmwareFilename } from '../config/firmware-filename' import { prepareCardSet } from '../engine/elekloader/module-set' import { baseName, layoutName, runningLayout, type BaseLayout } from '../engine/elekloader/base-variants' @@ -28,21 +28,19 @@ export function CardSetButton({ set, onInstall }: { set?: InventoryTarget; onIns setState({ busy: true }) try { const made = await prepareCardSet(set) - save(made.file, CARD_SET_FILE) // What a downloaded build got: the count, update notifications and the hardware feedback reminder. const ids = set.moduleIds.filter(id => id !== USB_AUDIO_MODULE) - trackModuleDownloads(ids); followDownloads(ids, installedOnOctatrack(ids)) const known = knownBase() - setState({ written: { base: made.base, layout: made.layout, ...known && known.base !== made.base ? { other: known } : {} } }) + setState({ written: { file: made.file, ids, base: made.base, layout: made.layout, ...known && known.base !== made.base ? { other: known } : {} } }) } catch (error) { setState({ error: error instanceof Error ? error.message : 'Couldn’t write the module file.' }) } } return <> - {(state.written || state.error) && setState({})} />} + {(state.written || state.error) && { trackModuleDownloads(ids); followDownloads(ids, installedOnOctatrack(ids)) }} onInstall={onInstall} onClose={() => setState({})} />} } -interface Written { base: string; layout: BaseLayout; other?: { base: string; from: 'unit' | 'download' } } +interface Written { file: Uint8Array; ids: string[]; base: string; layout: BaseLayout; other?: { base: string; from: 'unit' | 'download' } } /** A base by its version, with its USB Audio layout when the version alone doesn't tell two bases apart. */ const describeBase = (base: string, other: string) => { const layout = runningLayout(base) @@ -50,7 +48,18 @@ const describeBase = (base: string, other: string) => { } /** After the download: where the file goes, which base it is for, and a way to that base. */ -function CardSetDialog({ name, written, error, notice, onInstall, onClose }: { name?: string; written?: Written; error?: string; notice?: string; onInstall?: (layout: BaseLayout) => void; onClose: () => void }) { +function CardSetDialog({ name, written, error, notice, onDownload, onInstall, onClose }: { name?: string; written?: Written; error?: string; notice?: string; onDownload: (ids: string[]) => void; onInstall?: (layout: BaseLayout) => void; onClose: () => void }) { + const [saved, setSaved] = useState(false), [problem, setProblem] = useState(''), [reading, setReading] = useState(false) + async function download(retained?: File) { + if (!written) return + setReading(true); setProblem('') + try { + if (retained && retained.name.toUpperCase() !== CARD_RECOVERY_FILE) throw new Error('Choose ' + CARD_RECOVERY_FILE + ' from the top folder of this card.') + const file = retained ? forCardImport(written.file, new Uint8Array(await retained.arrayBuffer())) : written.file + save(file, CARD_SET_FILE); setSaved(true); onDownload(written.ids) + } catch (failure) { setProblem(failure instanceof Error ? failure.message : 'Couldn’t prepare the card file.') } + finally { setReading(false) } + } const dialog = useRef(null), done = useRef(null) useEffect(() => { const element = dialog.current, previous = document.activeElement @@ -59,7 +68,7 @@ function CardSetDialog({ name, written, error, notice, onInstall, onClose }: { n }, []) return { event.preventDefault(); onClose() }} onKeyDown={event => event.stopPropagation()}>
-

{written ? 'Put ' + CARD_SET_FILE + ' on the card' : 'The module file couldn’t be written'}

+

{written ? saved ? 'Put ' + CARD_SET_FILE + ' on the card' : 'Prepare the file for your card' : 'The module file couldn’t be written'}

{written ? <> @@ -67,11 +76,17 @@ function CardSetDialog({ name, written, error, notice, onInstall, onClose }: { n This file is for another base

{written.other.from === 'unit' ? 'Your Octatrack last ran' : 'The base you last downloaded here is'} {describeBase(written.other.base, written.base)}. This file only loads on {describeBase(written.base, written.other.base)}; on any other base the Octatrack ignores it and starts without modules. Install that base first, then copy this file.

} -
    + {saved ?
    1. Copy the file to the card

      Top folder, replacing the one there, named exactly {CARD_SET_FILE}: if your browser added a number to the name, take it out. Card reader or USB DISK MODE.

    2. Switch the Octatrack off and on

      It reads the file when it starts.

    3. Play

      {name ? <>It starts with the modules of {name}. : 'It starts with your modules.'}

    4. -
    +
:
+ Check the top folder of your card +

If it contains {CARD_RECOVERY_FILE}, choose that file here. The download will load ahead of it, and the original stays on the card for recovery.

+ +

+ {problem &&

{problem}

} +
}

Needs the Modwerk base {baseName(written.base)} ({layoutName(written.layout)}) on the Octatrack, the file {firmwareFilename('base', written.base)} installed with OS UPGRADE. On any other OS or base the Octatrack ignores this file.{notice && <> {notice}}

:

{error}

}
diff --git a/src/components/faq-content.tsx b/src/components/faq-content.tsx index a10135c7ed..c26f377c13 100644 --- a/src/components/faq-content.tsx +++ b/src/components/faq-content.tsx @@ -239,7 +239,7 @@ const octatrack: FaqSection[] = [

An Octatrack on the Modwerk base reads its modules from one file on the card. That works from any browser and without the Octatrack at the computer.

  1. Add modules to your module set.
  2. -
  3. On Setup, choose Load from the card to download {CARD_SET_FILE}.
  4. +
  5. On Setup, choose Load from the card. If the card holds MODWERK1.SET, select it when prompted so the download takes priority and the other slot stays available for recovery.
  6. Copy it to the top folder of the card, outside every folder.
  7. Switch the Octatrack off and on. It starts with your modules.
diff --git a/src/engine/elekloader/card-set.test.ts b/src/engine/elekloader/card-set.test.ts index 580bc2e4ed..45c3a298e5 100644 --- a/src/engine/elekloader/card-set.test.ts +++ b/src/engine/elekloader/card-set.test.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest' import { readFileSync } from 'node:fs' import { createHash } from 'node:crypto' -import { cardSetGeneration, encodeCardSet } from './card-set' +import { cardSetGeneration, encodeCardSet, forCardImport } from './card-set' import { prepareCardSet } from './module-set' import { SAVED_SET_CAPACITY } from './upload-wire' import { layoutIdentity } from './base-variants' @@ -32,7 +32,20 @@ describe('the module set file for the card', () => { // Changed on purpose? Write this hex to the fixture; the C test then proves the base still takes it. expect(hex(fixture())).toBe(readFileSync(FIXTURE, 'utf8').trim()) }) - it('outranks the unit’s own saves and earlier files, and leaves the unit room to count on', () => { + it('reimports an old or slow-clock export ahead of a later USB save and keeps that recovery slot intact', () => { + const original = fixture(), saved = encodeCardSet(HOST_BASE, [pkg(1), pkg(2), pkg(3)], 1700000001) + const before = saved.slice() + for (const selected of [original, encodeCardSet(HOST_BASE, [pkg(1), pkg(2)], 1)]) { + const copy = forCardImport(selected, saved) + expect(new DataView(copy.buffer).getUint32(8)).toBe(1700000002) + expect(copy.subarray(12)).toEqual(selected.subarray(12)) + expect(saved).toEqual(before) + } + expect(() => forCardImport(original, new Uint8Array(8))).toThrow(/complete/) + new DataView(saved.buffer).setUint32(8, 0xfffffffe) + expect(() => forCardImport(original, saved)).toThrow(/generation is full/) + }) + it('dates a fresh export and leaves the unit room to count on', () => { expect(cardSetGeneration(Date.UTC(2026, 10, 11))).toBe(1794355200) expect(cardSetGeneration(1000 * 1000)).toBeLessThan(cardSetGeneration(1001 * 1000)) for (const generation of [0, 1.5, 0xffffffff]) expect(() => encodeCardSet(HOST_BASE, [pkg(1)], generation)).toThrow(/generation/) diff --git a/src/engine/elekloader/card-set.ts b/src/engine/elekloader/card-set.ts index c59e987ddb..2b37dce63e 100644 --- a/src/engine/elekloader/card-set.ts +++ b/src/engine/elekloader/card-set.ts @@ -9,13 +9,34 @@ import { SET_CHANGES, SET_MAX_ABI } from './set-package.ts' /** The name to give the file in the card's top folder. */ export const CARD_SET_FILE = 'MODWERK0.SET' +export const CARD_RECOVERY_FILE = 'MODWERK1.SET' const HEADER = 84, SECTOR = 512 const padded = (bytes: number) => Math.ceil(bytes / 4) * 4 -/** A generation that outranks a set the unit saved itself (it counts up from 1) and every file written here before: - * the time in seconds. The unit's later saves count on from it, so they win over this file in turn. */ +/** Initial generation for an export. A card with a second slot needs its own ordering at import time. */ export const cardSetGeneration = (now = Date.now()) => Math.floor(now / 1000) +/** Prepare an export for slot zero alongside the retained slot one. The generation is outside the payload digest. */ +export function forCardImport(file: Uint8Array, retained?: Uint8Array): Uint8Array { + function header(bytes: Uint8Array) { + const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength) + if (bytes.length < HEADER || view.getUint32(0) !== 0x4d575354 || ![1, 2].includes(view.getUint32(4)) || + view.getUint32(16) < HEADER || view.getUint32(16) > bytes.length) + throw new Error('Choose a complete Modwerk set file.') + return view + } + const selected = header(file), used = selected.getUint32(16) + if (selected.getUint32(4) !== 1 || used > SAVED_SET_CAPACITY || !sha256(file.subarray(HEADER, used)).every((byte, i) => byte === file[52 + i])) + throw new Error('Choose an intact exported module set.') + const other = retained && header(retained) + const sameBase = retained && file.subarray(20, 52).every((byte, i) => byte === retained[20 + i]) + const generation = Math.max(selected.getUint32(8), sameBase && other ? other.getUint32(8) + 1 : 1) + if (generation > 0xfffffffe) throw new Error('The card generation is full. Back up both slot files outside the top folder before importing.') + const copy = Uint8Array.from(file) + new DataView(copy.buffer).setUint32(8, generation) + return copy +} + /** The set file for the base `base` (its identity) holding `packages`, each exactly as USB sync would stage it. Whole * sectors, as the base writes and reads it; the header carries the length in use. */ export function encodeCardSet(base: string, packages: readonly Uint8Array[], generation: number): Uint8Array { From ccdfe12fae78ac301ea2e17aa8bdf8681f1f264e Mon Sep 17 00:00:00 2001 From: repeat98 Date: Thu, 19 Nov 2026 16:50:10 +0100 Subject: [PATCH 110/415] Hide selection details on mobile --- .../2026-11-19-mobile-selection-details.md | 1 + src/App.tsx | 14 +++--- src/components/LibraryDiscovery.test.ts | 6 +-- src/components/LibrarySelection.tsx | 4 +- src/components/MobileWorkspace.test.ts | 47 +++++++++++++++++-- src/styles.css | 6 --- 6 files changed, 55 insertions(+), 23 deletions(-) create mode 100644 changelog/2026-11-19-mobile-selection-details.md diff --git a/changelog/2026-11-19-mobile-selection-details.md b/changelog/2026-11-19-mobile-selection-details.md new file mode 100644 index 0000000000..9ed2aa6213 --- /dev/null +++ b/changelog/2026-11-19-mobile-selection-details.md @@ -0,0 +1 @@ +The mobile module library no longer shows a Selection details panel. Open your configuration to review your modules and compatibility. diff --git a/src/App.tsx b/src/App.tsx index 19d0d07638..688dff0888 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -408,13 +408,14 @@ export default function App() { }, [overviewRoute, projectsRoute, faqRoute, route,detailModule,digiMod,zoomEffect,forumRoute,accountRoute,betaInvitationRoute,developerRoute,developer?.user,allRoute,machineView,currentDevice.name,w,hubRoute,zoomHubName]) const availabilityError = moduleAvailabilityError(selectedIds, betaAccess) const { blocks: addBlockMap } = withSetLimit<{ blocks: Record }>({ blocks: {} }, selectedIds) - const showSelection = (onLibrary && (allMachines || currentDevice.id === 'octatrack' || isDigiDevice(currentDevice.id))) - || (!phoneLayout && !!(detailModule || digiMod)) + const showSelection = !mobileWorkspace && ( + (onLibrary && (allMachines || currentDevice.id === 'octatrack' || isDigiDevice(currentDevice.id))) + || !!(detailModule || digiMod) + ) const browsingSets = ready && showSelection ? (allMachines ? ['octatrack', ...DIGI_DEVICES] : [currentDevice.id]).flatMap(device => activeFor(device) ?? []) : [] - // On desktop the selection is a meter card in the corner; phones and the drawer layout keep the collapsible panel. - const cornerSelection = showSelection && !phoneLayout && !drawerLayout + const cornerSelection = showSelection && !drawerLayout const libraryFilter = allRoute ? allCategory ?? 'all' : filter const libraryFamily = allRoute || accessibleModules.some(module=>DETAILS[module.id].family===family) ? family : 'all' const visibleModules = accessibleModules.filter((module) => @@ -561,7 +562,6 @@ export default function App() { {phoneLayout ? <>
{phoneLibrary && machinePicker()}{categoryNav}
{phoneLibrary &&
} - {showSelection && } : <>
Community-built firmware @@ -636,7 +636,7 @@ export default function App() { {/* The sync pill and the live load share the corner; the load stays off Status, which shows it in full, and off the forum, whose chat opens in the same corner. */} {(usbLink || cornerSelection) &&
- {cornerSelection && } + {cornerSelection && } {usbLink && !hubRoute && !loadingTarget && } {usbLink && octatrackUi && !(hubRoute && hubView === 'status') && !forumRoute && }
} @@ -700,7 +700,7 @@ export default function App() { {legalLinks} : } diff --git a/src/community/AccountPage.tsx b/src/community/AccountPage.tsx index 7d4477258d..4443da6bf3 100644 --- a/src/community/AccountPage.tsx +++ b/src/community/AccountPage.tsx @@ -29,6 +29,7 @@ function AccountContent({route}:{route:string}) { const accountSections=[{id:'profile',label:'Profile',href:'#account'},{id:'activity',label:'Activity',href:'#account/activity'},{id:'notifications',label:'Emails',href:'#account/notifications'},{id:'security',label:'Security & data',href:'#account/security'},{id:'developer',label:'Developer',href:'#account/developer'}] as const const section=action==='report'?'activity':accountSections.find(item=>item.id===action)?.id??'profile' const emailAvailable=session.emailAvailable??session.registrationAvailable + const socialProviders=session.ssoProviders??[] const [lastLink,setLastLink]=useState(linkToken) // A fresh emailed link starts a fresh form; stripping a consumed token keeps // the successful confirmation visible without retaining the sensitive URL. @@ -87,7 +88,15 @@ function AccountContent({route}:{route:string}) { {!(mode==='verify'||mode==='reset')&&} {mode==='register'&&!session.registrationAvailable&&

New registrations are temporarily closed. Existing accounts can still sign in.

} {!emailAvailable&&['forgot','resend'].includes(mode)&&

Account email is not available yet. Please try again later.

} - {(mode==='login'||mode==='register')&&<>
{(['google','github','discord'] as const).map(provider=>void social(provider)}/>)}
{session.ssoProviders?.length?

Continue to sign in or create an account. No username needed to get started.

:

Social sign-in is being prepared. Use email to continue.

}

{mode==='register'?'Or create an account with email':'Or use email'}

} + {(mode==='login'||mode==='register')&&socialProviders.length>0&&<> +
+
+ {socialProviders.map(provider=>void social(provider)}/>)} +
+

Continue to sign in or create an account. No username needed to get started.

+
+

{mode==='register'?'Or create an account with email':'Or use email'}

+ } {message&&mode==='reset'?Continue to sign in:
{event.preventDefault();void submit(event.currentTarget)}}> {mode==='register'&&} {mode!=='verify'&&mode!=='reset'&&} diff --git a/src/community/AdminPage.tsx b/src/community/AdminPage.tsx index 8c7e325d51..ac006e8489 100644 --- a/src/community/AdminPage.tsx +++ b/src/community/AdminPage.tsx @@ -20,6 +20,7 @@ import { AnnouncementsPanel } from './AnnouncementsPanel' import { NewsPanel } from './NewsPanel' import { DiagnosticsMailPanel } from './DiagnosticsMailPanel' import type { PublishedModule } from './api' +const ADMIN_SECTIONS = [['statistics', 'Statistics'], ['octatrack', 'Octatrack'], ['issues', 'Issues'], ['comments', 'Comments'], ['forum', 'Forum'], ['accounts', 'Accounts'], ['modules', 'Modules'], ['review', 'Module PRs'], ['announcements', 'Announcements'], ['news', 'News'], ['history', 'History']] type ReviewEvent = { id: string; module_id: string; action: string; note: string; created_at: string; actor: string } function PublishedModules({ onChange }: { onChange: () => void }) { const [items, setItems] = useState([]), [error, setError] = useState(''), [loading, setLoading] = useState(true), [selected, setSelected] = useState(''), [note, setNote] = useState(''), [busy, setBusy] = useState(false) @@ -36,5 +37,12 @@ export function AdminPage() { const { session, refresh } = useCommunity(), [tab, setTab] = useState('statistics'), [issueModule,setIssueModule] = useState('') function navigate(next: string, moduleId = '') { setIssueModule(moduleId); setTab(next) } if (!session.admin) return
Community forum

MODWERK / ADMIN

Admin workspace

Moderation and publication history for the site administrator.

Administrators only

{session.available ? (session.user ? 'Your account does not have administrator access.' : 'Sign in with an administrator account to continue.') : 'Community services are not connected yet.'}

{session.available && !session.user ? Sign in : Return to library →}
- return
Community forum

MODWERK / ADMIN

Admin workspace

Understand site activity, explore module engagement and manage the community.

{tab === 'statistics' ? <> : tab === 'octatrack' ? <> : tab === 'review' ? : tab === 'modules' ? void refresh()}/> : tab === 'accounts' ? <> : tab === 'forum' ? : tab === 'announcements' ? : tab === 'news' ? : tab === 'comments' ? : tab === 'issues' ? navigate('issues')}/> : }
+ return
Community forum

MODWERK / ADMIN

Admin workspace

Understand site activity, explore module engagement and manage the community.

{tab === 'statistics' ? <> : tab === 'octatrack' ? <> : tab === 'review' ? : tab === 'modules' ? void refresh()}/> : tab === 'accounts' ? <> : tab === 'forum' ? : tab === 'announcements' ? : tab === 'news' ? : tab === 'comments' ? : tab === 'issues' ? navigate('issues')}/> : }
} diff --git a/src/community/ForumPage.tsx b/src/community/ForumPage.tsx index 2d79fe77b3..95247253d8 100644 --- a/src/community/ForumPage.tsx +++ b/src/community/ForumPage.tsx @@ -74,7 +74,7 @@ function ForumList({query,profile,machineHint}:{query:URLSearchParams;profile?:s const gallery=!profile&&category==='showcase'&&!saved&&!following&&!filtered&&page===0&& return <> {profile&&All discussions} -
Connect · Create · Explore

{profile?'@'+profile:'Community forum'}

{profile?'Public threads by this member.':'A place for the people who make their machines do more.'}

+
Connect · Create · Explore

{profile?'@'+profile:'Community forum'}

{profile?'Public threads by this member.':'A place for the people who make their machines do more.'}

{profile&&} {home&&session.user?.verified&&} {home&&session.user?.verified&&setRevision(value=>value+1)}/>} diff --git a/src/community/ForumShoutbox.test.ts b/src/community/ForumShoutbox.test.ts new file mode 100644 index 0000000000..7c4652c154 --- /dev/null +++ b/src/community/ForumShoutbox.test.ts @@ -0,0 +1,113 @@ +// @vitest-environment jsdom +import { act, createElement } from 'react' +import { createRoot, type Root } from 'react-dom/client' +import { afterEach, beforeEach, expect, it, vi } from 'vitest' +import { CommunityContext, emptySession } from './context' +import { ForumShoutbox } from './ForumShoutbox' +import { api } from './api' +import type { ForumShout, ForumShouts } from './forum-contract' + +vi.mock('./api', () => ({ api: vi.fn(), apiFetch: vi.fn(), post: vi.fn() })) + +const shout = (id: string, overrides: Partial = {}): ForumShout => ({ + id, body: id, username: 'alex', created_at: '2026-11-19 12:00:00', edited_at: null, hidden: 0, canEdit: false, ...overrides, +}) +let root: Root, container: HTMLDivElement, feed: ForumShouts +const render = (props = { floating: true }, member = '') => act(async () => { + const session = { ...emptySession, available: true, user: member ? { id: member, username: member, displayName: member, verified: true } : null } + root.render(createElement(CommunityContext.Provider, { value: { session, developer: null, catalog: [], refresh: async () => {}, refreshDeveloper: async () => {} } }, createElement(ForumShoutbox, props))) +}) +const badge = () => container.querySelector('.shoutbox-unread')?.textContent +const launcher = () => container.querySelector('#shoutbox-launcher')! +const tick = () => act(async () => { await vi.advanceTimersByTimeAsync(30000) }) +const visibility = (state: DocumentVisibilityState) => { + vi.spyOn(document, 'visibilityState', 'get').mockReturnValue(state) + return act(async () => { document.dispatchEvent(new Event('visibilitychange')) }) +} +beforeEach(() => { + vi.stubGlobal('IS_REACT_ACT_ENVIRONMENT', true) + vi.useFakeTimers() + vi.clearAllMocks() + localStorage.clear() + feed = { messages: [shout('old')], hasMore: false } + vi.mocked(api).mockImplementation(async () => feed) + container = document.createElement('div'); document.body.append(container); root = createRoot(container) +}) +afterEach(async () => { + await act(async () => root.unmount()) + container.remove(); vi.useRealTimers(); vi.restoreAllMocks(); vi.unstubAllGlobals() +}) + +it('starts clear, counts new messages during visible polling, and clears on opening', async () => { + await render() + expect(badge()).toBeUndefined() + feed = { messages: [shout('newest'), shout('new'), shout('old', { edited_at: '2026-11-19 12:01:00' })], hasMore: false } + await visibility('hidden') + await tick() + expect(api).toHaveBeenCalledTimes(1) + await visibility('visible') + expect(badge()).toBe('2') + expect(launcher().getAttribute('aria-label')).toBe('Shoutbox 8, 2 new messages') + await act(async () => launcher().click()) + await act(async () => { await vi.advanceTimersByTimeAsync(17) }) + expect(document.activeElement?.getAttribute('aria-label')).toBe('Minimize Shoutbox 8') + await act(async () => { document.activeElement?.dispatchEvent(new KeyboardEvent('keydown', { key: 'Escape', bubbles: true })) }) + await act(async () => { await vi.advanceTimersByTimeAsync(17) }) + expect(document.activeElement).toBe(launcher()) + expect(badge()).toBeUndefined() +}) + +it('keeps separate guest and member progress and excludes edits, own and hidden messages', async () => { + await render({ floating: true }, 'alex') + feed = { messages: [shout('other'), shout('mine', {canEdit: true}), shout('moderated', {hidden: 1}), shout('old')], hasMore: false } + await tick() + expect(badge()).toBe('1') + await render() + expect(badge()).toBeUndefined() + await render({ floating: true }, 'alex') + expect(badge()).toBe('1') + feed = { messages: [shout('other')], hasMore: false } + await tick() + expect(badge()).toBe('1') +}) + +it('handles an empty first visit, a long absence, and read progress shared by the archive', async () => { + feed = { messages: [], hasMore: false } + await render() + feed = { messages: Array.from({length: 50}, (_, i) => shout('new-' + i)), hasMore: true } + await tick() + expect(badge()).toBe('50+') + await act(async () => root.render(createElement(ForumShoutbox, { archive: true, page: 1 }))) + await render() + expect(badge()).toBe('50+') + await act(async () => root.render(createElement(ForumShoutbox, { archive: true, page: 0 }))) + await render() + expect(badge()).toBeUndefined() +}) + +it('retains progress after a failed poll and clears a second tab when the chat is read elsewhere', async () => { + await render() + feed = { messages: [shout('new'), shout('old')], hasMore: false } + await tick() + vi.mocked(api).mockRejectedValueOnce(new Error('Offline')) + await tick() + expect(badge()).toBe('1') + const archive = createRoot(document.createElement('div')) + await act(async () => archive.render(createElement(ForumShoutbox, { archive: true }))) + await act(async () => { window.dispatchEvent(new StorageEvent('storage', {key: localStorage.key(0)})) }) + expect(badge()).toBeUndefined() + await act(async () => archive.unmount()) +}) + +it('keeps arrivals unread while the reader is scrolled back in the open chat', async () => { + await render() + await act(async () => launcher().click()) + const list = container.querySelector('.shoutbox-messages')! + Object.defineProperties(list, {clientHeight: {value: 250}, scrollHeight: {value: 1000}}) + list.scrollTop = 150 + feed = {messages: [shout('new'), shout('old')], hasMore: false} + await tick() + expect(list.scrollTop).toBe(150) + await act(async () => container.querySelector('[aria-label="Minimize Shoutbox 8"]')!.click()) + expect(badge()).toBe('1') +}) diff --git a/src/community/ForumShoutbox.tsx b/src/community/ForumShoutbox.tsx index 59f0aca384..04aeb9cbc7 100644 --- a/src/community/ForumShoutbox.tsx +++ b/src/community/ForumShoutbox.tsx @@ -1,4 +1,4 @@ -import { useEffect, useRef, useState } from 'react' +import { useEffect, useMemo, useRef, useState } from 'react' import { api, apiFetch, post } from './api' import { useCommunity } from './context' import { SHOUT_MAX_LENGTH, type ForumShout, type ForumShouts } from './forum-contract' @@ -9,18 +9,35 @@ import { MentionText, useTextareaMentions } from './mentions' import { useLoginPrompt } from './LoginPromptDialog' import { TextVideo } from './YouTubeEmbed' import { profileHref } from '../routing' +import { trackShoutReads, type ShoutCount } from './shout-read' -export function ForumShoutbox({archive=false,page=0,floating=false}:{archive?:boolean;page?:number;floating?:boolean}) { +type ShoutboxProps = { archive?: boolean; page?: number; floating?: boolean } +export function ForumShoutbox(props: ShoutboxProps) { const {session}=useCommunity() - const [data,setData]=useState(null),[error,setError]=useState(''),[notice,setNotice]=useState(''),[draft,setDraft]=useState(''),[busy,setBusy]=useState(false),[collapsed,setCollapsed]=useState(()=>!archive&&typeof window!=='undefined'&&window.matchMedia('(max-width: 600px)').matches),[revision,setRevision]=useState(0),[editing,setEditing]=useState(null),[editBody,setEditBody]=useState('') + const readKey='modwerk.shoutbox.read.'+(session.user?.id??'guest') + return +} + +function ShoutboxContent({archive=false,page=0,floating=false,readKey}:ShoutboxProps & {readKey:string}) { + const {session}=useCommunity() + const [data,setData]=useState(null),[error,setError]=useState(''),[notice,setNotice]=useState(''),[draft,setDraft]=useState(''),[busy,setBusy]=useState(false),[collapsed,setCollapsed]=useState(floating),[revision,setRevision]=useState(0),[editing,setEditing]=useState(null),[editBody,setEditBody]=useState('') const composer=useRef(null),mentions=useTextareaMentions(composer,draft,setDraft,'shoutbox-mentions') // The chat floats over every forum page, so a visitor's sign-in returns to the page they were reading. const {dialog,prompt}=useLoginPrompt(()=>window.location.hash.slice(1)||'forum'),joinPrompt=()=>prompt('Sign in to join the Shoutbox') const list=useRef(null),followEnd=useRef(true),minimizeButton=useRef(null) - function expand(){setCollapsed(false);window.requestAnimationFrame(()=>minimizeButton.current?.focus())} + const trackReads=useMemo(()=>trackShoutReads(readKey),[readKey]) + const [unread,setUnread]=useState({count:0,more:false}) + function expand(){ + if(data)setUnread(trackReads(data,true)) + followEnd.current=true + setCollapsed(false) + window.requestAnimationFrame(()=>minimizeButton.current?.focus()) + } function minimize(){setCollapsed(true);window.requestAnimationFrame(()=>document.getElementById('shoutbox-launcher')?.focus())} + function readAtEnd(element:HTMLDivElement){ + if(page===0&&data&&unread.count>0&&document.visibilityState==='visible'&&nearEnd(element))setUnread(trackReads(data,true)) + } useEffect(()=>{ - if(collapsed)return let cancelled=false,inFlight=false const controller=new AbortController() async function load(){ @@ -28,17 +45,28 @@ export function ForumShoutbox({archive=false,page=0,floating=false}:{archive?:bo inFlight=true try{ const next=await api('/forum/shouts?'+(archive?'page='+page:'compact=1'),{signal:controller.signal}) - if(!cancelled){const element=list.current;followEnd.current=!element||element.scrollHeight-element.scrollTop-element.clientHeight<60;setData(next);setError('')} + if(!cancelled){ + const element=list.current + followEnd.current=!element||nearEnd(element) + setData(next);setError('') + if(page===0&&document.visibilityState==='visible')setUnread(trackReads(next,!collapsed&&followEnd.current)) + } }catch(error){if(!cancelled)setError(error instanceof Error?error.message:'Messages could not load.')} finally{inFlight=false} } - void load() + if(document.visibilityState==='visible')void load() const timer=window.setInterval(()=>{if(page===0&&document.visibilityState==='visible')void load()},30000) - const visible=()=>{if(page===0&&document.visibilityState==='visible')void load()} + const visible=()=>{if(document.visibilityState==='visible')void load()} document.addEventListener('visibilitychange',visible) return()=>{cancelled=true;controller.abort();window.clearInterval(timer);document.removeEventListener('visibilitychange',visible)} - },[archive,page,revision,collapsed,session.user?.id,session.admin]) - useEffect(()=>{if(followEnd.current&&list.current)list.current.scrollTop=list.current.scrollHeight},[data]) + },[archive,page,revision,collapsed,trackReads]) + useEffect(()=>{if(followEnd.current&&list.current)list.current.scrollTop=list.current.scrollHeight},[data,collapsed]) + useEffect(()=>{ + if(!collapsed||!data)return + const sync=(event:StorageEvent)=>{if(event.key===readKey)setUnread(trackReads(data,false))} + window.addEventListener('storage',sync) + return()=>window.removeEventListener('storage',sync) + },[collapsed,data,readKey,trackReads]) async function act(path:string,payload?:unknown,method='POST'){ setBusy(true);setError('');setNotice('') try{ @@ -57,11 +85,17 @@ export function ForumShoutbox({archive=false,page=0,floating=false}:{archive?:bo {session.admin&&{event.preventDefault();const form=event.currentTarget;void act('/admin/forum/shouts/'+item.id,{action:'hidden',value:!item.hidden,reason:new FormData(form).get('reason')},'PATCH').then(ok=>{if(ok){form.reset();form.closest('details')?.removeAttribute('open')}})}}>} } - if(floating&&collapsed)return + if(floating&&collapsed){ + const label = unread.count ? `Shoutbox 8, ${unread.count}${unread.more?' or more':''} new message${unread.count===1&&!unread.more?'':'s'}` : undefined + return + } return
{if(floating&&event.key==='Escape'){event.stopPropagation();minimize()}}}>

Shoutbox 8

Quick questions. Small discoveries. Say hello.
{archive&&} {archive?'Back to forum':'Archive'}{!archive&&}
{!collapsed&&
-
+
readAtEnd(event.currentTarget)}> {!data&&!error?

Loading messages…

:data?.messages.length?[...data.messages].reverse().map(item=>
{item.username?@{item.username}:Deleted member}{item.edited_at&&Edited}{!!item.hidden&&Hidden}
@@ -76,3 +110,7 @@ export function ForumShoutbox({archive=false,page=0,floating=false}:{archive?:bo
}
} + +function nearEnd(element: HTMLDivElement) { + return element.scrollHeight - element.scrollTop - element.clientHeight < 60 +} diff --git a/src/community/GetStarted.tsx b/src/community/GetStarted.tsx index 867958b9bc..2425990a44 100644 --- a/src/community/GetStarted.tsx +++ b/src/community/GetStarted.tsx @@ -1,4 +1,4 @@ -import { useEffect, useState } from 'react' +import { useEffect, useId, useState } from 'react' import { api } from './api' import { useCommunity } from './context' import { Icon } from '../components/Icon' @@ -13,6 +13,8 @@ function dismiss(id: string) { try { localStorage.setItem(getStartedKey(id), '1' export function GetStarted({ machine }: { machine?: string }) { const { session } = useCommunity(), user = session.user, [loaded, setLoaded] = useState(null), [closed, setClosed] = useState(false) const id = user?.verified && user.username ? user.id : '', username = user?.username ?? '' + const stepsId = useId() + const [expanded, setExpanded] = useState(() => typeof window === 'undefined' || !window.matchMedia?.('(max-width: 600px)').matches) // Progress is keyed by member so another account's answers never show for this one. const progress = loaded && loaded.id === id ? loaded : null useEffect(() => { @@ -33,8 +35,11 @@ export function GetStarted({ machine }: { machine?: string }) { if (!id || !steps || closed || complete) return null const done = steps.filter(step => step.done).length return
-

Get started

{done ? done + ' of ' + steps.length + ' done.' : 'Four small steps to settle in.'}

-
    {steps.map((step, index) =>
  1. +
    +

    {done} of {steps.length} steps complete

    + +
    +
+ {!searching &&

{quick.title}

{quick.actions.map((action, index) => {action.label} )}
@@ -87,7 +88,6 @@ export function FaqPage({ previewGuide = false, open, machine: device }: { previ
    {quick.steps.map(step =>
  1. {step.title}{step.text}
  2. )}

{quick.caution} All steps

} - {searching &&

{count} {count === 1 ? 'answer' : 'answers'} for the {FAQ_MACHINES.find(item => item.id === machine)!.name} {elsewhere.map(item => )}

} {count > 0 &&
diff --git a/src/components/LibraryDiscovery.test.ts b/src/components/LibraryDiscovery.test.ts index 407afee447..3f2d36fcba 100644 --- a/src/components/LibraryDiscovery.test.ts +++ b/src/components/LibraryDiscovery.test.ts @@ -34,7 +34,7 @@ const library = { } describe('module library discovery', () => { - it('opens desktop category and type filters together and returns focus after choosing a type', async () => { + it('lets desktop users change type directly and dismiss the separate category menu with Escape', async () => { const onFamilyChange = vi.fn() const categoryNav = createElement('nav', { 'aria-label': 'Module library' }, createElement('a', { href: '#effects' }, 'Effects')) await act(() => root.render(createElement(MachineLibrary, { ...library, categoryNav, onFamilyChange }))) @@ -44,18 +44,26 @@ describe('module library discovery', () => { await click(toggle) expect(panel.hidden).toBe(false) expect(document.activeElement).toBe(panel.querySelector('a')) - const type = panel.querySelector('select')! - await act(() => { type.value = 'Delay'; type.dispatchEvent(new Event('change', { bubbles: true })) }) - expect(onFamilyChange).toHaveBeenCalledWith('Delay') + expect(panel.querySelector('select')).toBeNull() + await act(() => { document.activeElement!.dispatchEvent(new KeyboardEvent('keydown', { key: 'Escape', bubbles: true })) }) expect(panel.hidden).toBe(true) expect(document.activeElement).toBe(toggle) + const type = container.querySelector('.catalog-sort-group select')! + await act(() => { type.focus(); type.value = 'Delay'; type.dispatchEvent(new Event('change', { bubbles: true })) }) + expect(onFamilyChange).toHaveBeenCalledWith('Delay') + expect(panel.hidden).toBe(true) + expect(document.activeElement).toBe(type) }) - it('uses the active machine’s configuration for the All machines build action', async () => { - await act(() => root.render(createElement(MachineLibrary, { ...library, buildHref: '#digitakt/configuration', buildLabel: 'Build firmware for Digitakt' }))) + it.each([ + { buildHref: '#digitakt/configuration', buildLabel: 'Build firmware for Digitakt', buildText: undefined }, + { buildHref: '#zoom-ms-70cdr/pedal/set', buildLabel: 'Open your MS-70CDR and sync your set to it', buildText: 'Your MS-70CDR' }, + ])('uses the active machine’s destination and action label for $buildHref in All machines', async ({ buildHref, buildLabel, buildText }) => { + await act(() => root.render(createElement(MachineLibrary, { ...library, buildHref, buildLabel, buildText }))) const build = container.querySelector('.discovery-actions a')! - expect(build.getAttribute('href')).toBe('#digitakt/configuration') - expect(build.getAttribute('aria-label')).toBe('Build firmware for Digitakt') + expect(build.getAttribute('href')).toBe(buildHref) + expect(build.getAttribute('aria-label')).toBe(buildLabel) + expect(build.textContent).toBe(buildText ?? 'Build firmware') }) it('finds Digi modules with combined instrument and type words', async () => { await act(() => root.render(createElement(MachineLibrary, { ...library, octatrackModules: [], query: 'digitakt midi' }))) diff --git a/src/components/LibraryResultsBar.tsx b/src/components/LibraryResultsBar.tsx index 298b3ad7c3..8f1b58f6d9 100644 --- a/src/components/LibraryResultsBar.tsx +++ b/src/components/LibraryResultsBar.tsx @@ -29,7 +29,10 @@ export function LibraryResultsBar({ summary, sort, onSortChange, family, onFamil const sortShort = period && period.days ? sortOption.short + ' · ' + period.short : sortOption.short const close = useCallback(() => { setOpen(null); trigger.current?.focus() }, []) function show(sheet: 'sort' | 'type', button: HTMLButtonElement) { trigger.current = button; setOpen(sheet) } - const typeOptions: SheetOption[] = [{ value: 'all', label: 'All types', count: allCount }, ...families.map(option => ({ value: option.value, label: option.value, count: option.count }))] + const typeOptions: SheetOption[] = [ + { value: 'all', label: 'All types', count: allCount }, + ...[...families].sort((a, b) => a.value.localeCompare(b.value)).map(option => ({ ...option, label: option.value })), + ] return
{summary} {!disabled && <> diff --git a/src/components/LibraryTools.tsx b/src/components/LibraryTools.tsx index c178688195..9f7b235a8c 100644 --- a/src/components/LibraryTools.tsx +++ b/src/components/LibraryTools.tsx @@ -31,24 +31,26 @@ export function LibraryTools({ family, families, onFamilyChange, sort, onSortCha // #configuration opens it on the set you edit. const usb = useOctatrackBase() && buildHref === '#configuration', mobile = useMobileWorkspace() const days = downloadPeriod(sort) - const { open, setOpen, buttonRef, panelRef, panelId, moveFocus, choose } = useActionsMenu() - const activeFilters = [categoryLabel, family !== 'all' ? family : undefined].filter(Boolean).join(' · ') + const { open, setOpen, buttonRef, panelRef, panelId, moveFocus } = useActionsMenu() return
{machine}
-
+ {categoryNav &&
{ + if (open && !event.currentTarget.contains(event.relatedTarget)) setOpen(false) + }}> - +
}
+ {days !== undefined && }
diff --git a/src/components/MobileWorkspace.test.ts b/src/components/MobileWorkspace.test.ts index b73f2efe1c..478799cbbf 100644 --- a/src/components/MobileWorkspace.test.ts +++ b/src/components/MobileWorkspace.test.ts @@ -121,6 +121,14 @@ describe('mobile configuration workspaces', () => { }) describe('the MS-70CDR pedal page without the beta', () => { + it('names the pedal and links to its library on phones', async () => { + window.location.hash = 'zoom-ms-70cdr/pedal/set' + await act(async () => root.render(createElement(App))) + await vi.waitFor(() => expect(container.querySelector('main h1')?.textContent).toBe('Your MS-70CDR')) + expect(container.querySelector('main a')?.getAttribute('href')).toBe('#zoom-ms-70cdr') + noFirmware() + }) + it('offers to install the base', async () => { media.width = 1280 media.coarse = false diff --git a/src/components/ZoomHub.test.ts b/src/components/ZoomHub.test.ts index fc2a963ce8..a5673c22e4 100644 --- a/src/components/ZoomHub.test.ts +++ b/src/components/ZoomHub.test.ts @@ -45,7 +45,7 @@ describe('the Zoom pedal page', () => { expect(container.querySelector('[role=status]')?.textContent).toMatch(/Not connected/) await click([...container.querySelectorAll('button')].find(b => b.textContent === 'Connect')!); await settle() expect(container.querySelector('[role=status]')?.textContent).toMatch(/Connected · firmware 2\.10/) - expect(container.querySelector('.hub-hero h2')?.textContent).toBe('MS-70CDR') + expect(container.querySelector('.hub-hero h1')?.textContent).toBe('MS-70CDR') for (let i = 0; i < 150 && !open().querySelector('.zoom-files'); i++) await settle() // reads every effect's version first expect(open().textContent).toMatch(/1 effect · 1 capture or cab · 200 KB free/) expect([...open().querySelectorAll('.zoom-files strong')].map(c => c.textContent)).toEqual(['LOOP.ZDL', 'NAM1smok.ZDL']) diff --git a/src/components/ZoomHub.tsx b/src/components/ZoomHub.tsx index 9cf7123170..c6a8125dcc 100644 --- a/src/components/ZoomHub.tsx +++ b/src/components/ZoomHub.tsx @@ -188,13 +188,17 @@ export function ZoomHub({ device, view, link, header, onInstall, sets, selectedI const listAlert = files && listFile?.size !== EFFECT_LIST_SIZE &&

The pedal’s effect list ({EFFECT_LIST}) is {listFile ? listFile.size + ' bytes, not ' + EFFECT_LIST_SIZE : 'missing'}: an install or removal was cut short. Don’t power-cycle the pedal. {recovery ? 'Write the effect list back here, or, failing that, run' : 'Run'} Zoom Effect Manager 2.3.3 with the pedal in update mode, which rewrites its whole effect file system.

const effects = files?.filter(f => /\.zdl$/i.test(f.name)) ?? [], captures = effects.filter(f => isCapture(f.name)) - if (mobile) return
{header}

Connecting a Zoom pedal needs Chrome or Edge on a computer.

+ if (mobile) return
+ {header} +

Your {device.name}

Connecting a Zoom pedal needs Chrome or Edge on a computer.

+ Open {device.name} library +
return
{header}
-

{model}

+

{model}

{other &&

This is an {identity!.model}, not an {device.name}. Open its own page, or plug in the {device.name}.

}
diff --git a/src/components/credits.css b/src/components/credits.css index e8445be61b..0a473ea6e7 100644 --- a/src/components/credits.css +++ b/src/components/credits.css @@ -37,5 +37,6 @@ .credits-nav button, .credit-links a { min-height: 44px; } .credits-section { margin-top: 28px; } .credits-section-heading { gap: 10px; } + .credits-section-heading h2 { scroll-margin-top: calc(72px + env(safe-area-inset-top)); } .credit-project { padding: 18px 20px; } } diff --git a/src/components/octatrack-link.css b/src/components/octatrack-link.css index a67ba0ff96..fbf23625bb 100644 --- a/src/components/octatrack-link.css +++ b/src/components/octatrack-link.css @@ -289,7 +289,8 @@ button.octatrack-status { width: 100%; border: 0; border-top: 1px solid var(--li .hub-history time { color: var(--muted); font-size: 12px; white-space: nowrap; } .hub-history .hub-report { min-height: 24px; color: var(--issue-confirmed); font-size: 12px; } /* A module set: its name and menu, the sync row, then its modules. */ -.hub-editor-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; } +.hub-editor-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-block-end: 20px; } +.hub-editor-head > div:first-child { min-width: 0; overflow-wrap: anywhere; } .hub-editor-head .guide-eyebrow { display: block; margin-bottom: 4px; } .hub-sync { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 14px 0 20px; padding: 12px 0; border-block: 1px solid var(--line); } .hub-sync p { flex: 1 1 220px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; } @@ -344,7 +345,7 @@ button.octatrack-status { width: 100%; border: 0; border-top: 1px solid var(--li .hub-split { flex-basis: auto; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(min-content, 1fr); } .hub-hero { display: grid; grid-template-columns: minmax(96px, 120px) minmax(0, 1fr); gap: 12px 16px; padding: 16px; } .hub-hero .device-photo { width: 100%; } - .hub-hero h2 { font-size: 20px; } + .hub-hero .hub-view-title { font-size: 20px; } .hub-hero p { display: block; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; } .hub-hero p > .unit-led { margin-right: 7px; vertical-align: middle; } .hub-hero > .button { grid-column: 1 / -1; justify-self: start; min-height: 44px; } diff --git a/src/devices/MachinePages.tsx b/src/devices/MachinePages.tsx index 0e6cb6c544..ce5c479dd5 100644 --- a/src/devices/MachinePages.tsx +++ b/src/devices/MachinePages.tsx @@ -138,10 +138,10 @@ type AllMachinesLibraryProps = { type MachineLibraryProps = AllMachinesLibraryProps & { device?: DeviceProfile; children?: ReactNode; categoryNav?: ReactNode; onClearSearch?: () => void; onClearQuery?: () => void phone?: boolean; resultsSlot?: HTMLElement | null; octatrackCatalogue?: readonly FirmwareModule[] - buildHref?: string; buildLabel?: string + buildHref?: string; buildLabel?: string; buildText?: string } -export function MachineLibrary({ device, query, category, octatrackModules: octatrack, octatrackSelected, onToggleOctatrack, digiSelected, onToggleDigi, zoomSelected = {}, onToggleZoom, family, onFamilyChange, sort, onSortChange, statistics, octatrackBlocks, onSwapOctatrack, comparison, onCompare, onOpenComparison, viewedModuleVersions, moduleBaseline, machinePicker, categoryNav, children, onClearSearch, onClearQuery, onBrowse, phone = false, resultsSlot, octatrackCatalogue = AVAILABLE_MODULES, buildHref, buildLabel }: MachineLibraryProps) { +export function MachineLibrary({ device, query, category, octatrackModules: octatrack, octatrackSelected, onToggleOctatrack, digiSelected, onToggleDigi, zoomSelected = {}, onToggleZoom, family, onFamilyChange, sort, onSortChange, statistics, octatrackBlocks, onSwapOctatrack, comparison, onCompare, onOpenComparison, viewedModuleVersions, moduleBaseline, machinePicker, categoryNav, children, onClearSearch, onClearQuery, onBrowse, phone = false, resultsSlot, octatrackCatalogue = AVAILABLE_MODULES, buildHref, buildLabel, buildText }: MachineLibraryProps) { const w = useSetWords() const heading = useRef(null) const term = query.toLowerCase().trim() @@ -199,7 +199,7 @@ export function MachineLibrary({ device, query, category, octatrackModules: octa
{category === 'standalone' &&

{STANDALONE_NOTE}

} {phone && projectLink} - {phone ? resultsSlot && createPortal(, resultsSlot) : } + {phone ? resultsSlot && createPortal(, resultsSlot) : option.value)} onFamilyChange={onFamilyChange} sort={sort} onSortChange={onSortChange} comparisonCount={comparison.length} onCompare={onOpenComparison} buildHref={hasMods ? buildHref ?? deviceHref(device?.id ?? 'octatrack', 'configuration') : null} buildLabel={hasMods ? buildLabel ?? 'Build firmware for ' + (device?.name ?? 'Octatrack') : 'No modules to build yet'} categoryNav={categoryNav} categoryLabel={category && LIBRARY_CATEGORY_LABELS[category]} machine={typeof machinePicker === 'function' ? machinePicker(countLabel) : machinePicker} disabled={!hasMods} build={device?.family !== 'zoom' || isZoomSetDevice(device.id)} buildText={buildText ?? (device?.family === 'zoom' ? 'Your ' + device.name : undefined)} />} {hasMods && (term || libraryFamily !== 'all') &&
Filtered by {term && onClearQuery && } diff --git a/src/overview/overview.css b/src/overview/overview.css index d987ccdb37..f904e01c2d 100644 --- a/src/overview/overview.css +++ b/src/overview/overview.css @@ -24,7 +24,7 @@ /* Machine cards: a dark panel rather than a grey box. A faint top-lit surface, a hairline edge that barely separates it from the page and a thin highlight along the top. Every card is the same size; on hover the panel brightens one step and nothing moves. */ -.machine-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); grid-auto-rows: 1fr; gap: 18px; } +.machine-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 18px; } .overview-tile { display: flex; flex-direction: column; min-width: 0; border: 1px solid #ffffff0d; border-radius: 14px; background: linear-gradient(180deg, #ffffff09, #ffffff02 60%); box-shadow: inset 0 1px 0 #ffffff0d, 0 10px 24px -14px #00000080; color: inherit; transition: background .2s, border-color .2s; } .overview-tile:hover { border-color: #ffffff1a; background: linear-gradient(180deg, #ffffff0f, #ffffff04 60%); } .overview-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; } @@ -65,8 +65,9 @@ } .overview-tile-body { display: flex; flex-direction: column; flex: 1; gap: 11px; padding: 6px 20px 20px; } .overview-tile-line { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; } -.overview-tile-name { display: flex; align-items: baseline; gap: 7px; min-width: 0; overflow: hidden; white-space: nowrap; font-size: 17px; font-weight: 600; letter-spacing: -.25px; } -.overview-tile-name small { overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: 12.5px; font-weight: 400; letter-spacing: 0; } +.overview-tile-line:has(.overview-state) { flex-direction: column; gap: 5px; } +.overview-tile-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 7px; min-width: 0; font-size: 17px; font-weight: 600; letter-spacing: -.25px; } +.overview-tile-name small { color: var(--muted); font-size: 12.5px; font-weight: 400; letter-spacing: 0; } .overview-state { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; color: var(--text-secondary); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; } .overview-state::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--done); } .overview-tile.is-preview .overview-state::before { background: var(--apricot); } diff --git a/src/projects/ProjectsPage.tsx b/src/projects/ProjectsPage.tsx index 8b2080494f..88cb237bf4 100644 --- a/src/projects/ProjectsPage.tsx +++ b/src/projects/ProjectsPage.tsx @@ -14,8 +14,10 @@ export function ProjectsPage({ route = 'projects' }: { route?: string }) { const filtered = query !== '' || machine !== 'all' || type !== 'all' function reset() { setQuery(''); setMachine('all'); setType('all') } return
-
Beyond the builder

{PROJECT_TITLE}

A few good rabbit holes, chosen for what they bring to your setup. Prepare samples, manage projects, play in new ways or build your own tools.

{EXTERNAL_PROJECTS.length}selected
projects
- +
+

{PROJECT_TITLE}

+

Independent mods and tools for your instrument. Check each project’s page for compatibility and installation instructions. These projects cannot be added to a Modwerk configuration.

+
{!filtered && }
diff --git a/src/projects/projects.css b/src/projects/projects.css index 4702843ba1..961d135492 100644 --- a/src/projects/projects.css +++ b/src/projects/projects.css @@ -3,18 +3,7 @@ .machine-external-projects { margin: -6px 0 18px; font-size: 12px; color: var(--accent); } .machine-external-projects a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; } .machine-external-projects a:hover { text-decoration: underline; text-underline-offset: 3px; } -.projects-heading { display: flex; align-items: center; gap: 32px; padding: 6px 0 26px; } -.projects-kicker { display: block; margin-bottom: 11px; color: var(--accent); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; } -.projects-heading h1 { font-size: clamp(28px, 3.2vw, 42px); font-weight: 550; letter-spacing: -.045em; line-height: 1.15; } -.projects-heading p { max-width: 680px; margin-top: 14px; color: var(--muted); font-size: 14px; line-height: 1.75; } -.projects-heading-count { display: flex; align-items: center; gap: 13px; margin-left: auto; padding-left: 26px; border-left: 1px solid var(--line); flex-shrink: 0; } -.projects-heading-count strong { font-size: 48px; font-weight: 400; line-height: 1; letter-spacing: -.065em; color: var(--accent); } -.projects-heading-count span { color: var(--muted); font-size: 11px; line-height: 1.7; } -.projects-heading-count svg { vertical-align: middle; margin-left: 2px; } -.projects-intro { display: flex; gap: 14px; padding: 18px 20px; background: var(--surface); border-radius: 10px; } -.projects-intro > svg { color: var(--accent); margin-top: 2px; } -.projects-intro strong { font-size: 14px; font-weight: 550; } -.projects-intro p { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.7; max-width: 850px; } +.projects-heading p { max-width: 70ch; margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.65; } .projects-starting-points { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin: 20px 0 0; } .projects-starting-points > span { color: var(--muted); font-size: 11px; } .projects-starting-points button { display: inline-flex; align-items: center; gap: 7px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 9px 0; min-height: 44px; color: var(--accent); font-size: 12px; } @@ -53,9 +42,6 @@ .projects-footer small a { min-height: 0; font-size: inherit; } @media (max-width: 1250px) { .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @media (max-width: 650px) { - .projects-heading { align-items: flex-start; gap: 18px; } - .projects-heading-count { display: none; } - .projects-intro { padding: 16px; } .projects-filters { flex-direction: column; margin-top: 18px; } .projects-machine select { width: 100%; } .projects-grid { grid-template-columns: minmax(0, 1fr); } diff --git a/src/styles.css b/src/styles.css index 650ca55c88..f8cb9f3c8b 100644 --- a/src/styles.css +++ b/src/styles.css @@ -44,7 +44,7 @@ --mono: "SFMono-Regular", Consolas, monospace; } * { box-sizing: border-box; } -body { margin: 0; min-width: 320px; } +body { margin: 0; } button, input, textarea { font: inherit; } input::placeholder, textarea::placeholder { color: var(--faint); opacity: 1; } button, a, input, textarea { -webkit-tap-highlight-color: transparent; } @@ -162,6 +162,7 @@ h2 { font-size: 16px; letter-spacing: -.15px; font-weight: 600; } .module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 18px; } .module-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; overflow: hidden; box-shadow: 0 3px 10px #00000025; transition: background .15s, box-shadow .15s; } .module-card:hover { background: var(--surface-raised); box-shadow: 0 5px 14px #00000035; } +.module-card.is-selected { border-color: var(--accent-line); } .module-card.is-selected .module-card-body { background: var(--surface-raised); } .module-card .module-preview { background-color: var(--preview); } .module-cover { display: block; position: relative; overflow: hidden; } @@ -179,7 +180,7 @@ h2 { font-size: 16px; letter-spacing: -.15px; font-weight: 600; } .hover-info > span { font-size: 13px; line-height: 1.7; max-width: 230px; } .hover-info strong { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; color: var(--accent); } .module-cover:hover .hover-info, .module-cover:focus-visible .hover-info { opacity: 1; transform: none; } -@media (hover: none) { .hover-info { display: none; } .card-description { display: -webkit-box; } } +@media (hover: none) { .hover-info { display: none; } } .module-card-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 12px; } .module-card-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; } .module-card-heading { min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; row-gap: 2px; } @@ -225,8 +226,8 @@ h2 { font-size: 16px; letter-spacing: -.15px; font-weight: 600; } .module-card > .add-block-prompt .add-block-actions { margin-top: 4px; } .card-credit { display: flex; justify-content: space-between; gap: 10px; margin-top: 4px; color: #b9b9c7; font-size: 12px; line-height: 1.5; } .card-credit a:hover, .author-link:hover { color: var(--accent); } -/* The summary lives in the cover hover on pointer devices; phones and touch screens show it in the body. */ -.card-description { display: none; margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: var(--reading-line-height); -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } +/* Keep enough of the summary on each card to compare modules without opening their covers. */ +.card-description { display: -webkit-box; margin: 9px 0 0; color: var(--text-secondary); font-size: 13px; line-height: var(--reading-line-height); -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .card-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; margin: 11px 0 10px; color: #c0c0ce; font-size: 12px; } .card-stats { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-left: auto; font-variant-numeric: tabular-nums; } .card-stat { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; } @@ -271,10 +272,8 @@ h2 { font-size: 16px; letter-spacing: -.15px; font-weight: 600; } .add-button, .card-credit a, .card-proof label { position: relative; z-index: 1; } .module-card:has(.module-card-heading > a:active) { border-color: #707080; background: var(--surface-hover); } .module-card .preview-led { display: none; } - /* Touch has no hover: the overlay becomes a small "Explore module" pill in the cover's corner. */ - .module-cover .hover-info, .module-cover:hover .hover-info { display: block; inset: 10px 10px auto auto; padding: 0; background: none; opacity: 1; transform: none; } - .hover-info > span { display: none; } - .hover-info strong { gap: 5px; padding: 5px 9px; border: 1px solid #ffffff1f; border-radius: 6px; background: #18181dcc; color: var(--text-secondary); font-size: 12px; } + .module-cover .hover-info { display: none; } + .module-card-heading > a { text-decoration: underline; text-decoration-color: var(--line-hover); text-underline-offset: .2em; } } .module-preview { --signal: #b5a0ff; --signal-rgb: 181,160,255; height: 168px; display: flex; flex-direction: column; background: radial-gradient(ellipse at 60% 100%, rgba(var(--signal-rgb), .09), transparent 75%), var(--preview); position: relative; } .module-preview[data-module="miniverb"] { --signal: #83c7bc; --signal-rgb: 131,199,188; } @@ -1539,7 +1538,25 @@ h1 { font-size: 28px; } .legal-page p, .legal-page li { line-height:var(--reading-line-height); } .legal-page li + li { margin-top:8px; } .legal-page a { overflow-wrap:anywhere; } -.legal-language { display:flex; gap:10px; margin-bottom:24px; } +.legal-page .configuration-section > :is(p, address, ul) { + max-width: 72ch; + color: var(--text-secondary); +} +.legal-page .configuration-section > * + * { margin-block-start: .75rem; } +.legal-page .configuration-section > h2 { font-size: 1.125rem; line-height: 1.4; } +.legal-page .configuration-section > * + h2 { + margin-block-start: 1.5rem; + padding-block-start: 1.25rem; + border-top: 1px solid var(--line); +} +.legal-page .configuration-section a:not(.button) { + color: var(--accent); + text-decoration: underline; + text-underline-offset: .18em; +} +.legal-language { display: inline-flex; gap: .125rem; margin-bottom: 1.25rem; padding: .1875rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--field); } +.legal-language button { min-height: 2.5rem; padding-inline: .875rem; border-radius: .375rem; color: var(--muted); } +.legal-language button[aria-pressed="true"] { background: var(--surface-hover); color: var(--text); } /* Modding guidelines: one row per rule group, its name beside its rules; one column in a narrow pane. */ .legal-page.guidelines-page { max-width:820px; } .guidelines-card { container-type:inline-size; padding-top:26px; padding-bottom:26px; } @@ -1743,7 +1760,7 @@ button.signal-tile[aria-pressed="true"] > svg { fill: currentColor; } .page-heading > .pill, .library-total { margin-top: 5px; } /* The results bar under the chips names the view and its count; the heading stays for screen readers. */ - .library-page > .page-heading { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } + .has-library-nav .library-page > .page-heading { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } .module-grid { gap: 16px; } @@ -2302,10 +2319,10 @@ button.signal-tile[aria-pressed="true"] > svg { fill: currentColor; } .discovery-tools .catalog-command:hover, .discovery-tools .catalog-command[aria-expanded="true"] { background: var(--surface); } .catalog-command svg { flex: none; } .catalog-filter-panel { position: absolute; z-index: 24; inset-block-start: calc(100% + .25rem); inset-inline-start: 0; width: 15rem; max-height: min(65dvh, 33rem); overflow-y: auto; padding: .5rem; border-radius: .625rem; background: var(--surface-raised); box-shadow: 0 .5rem 1.5rem #0007; } - .catalog-filter-heading, .discovery-tools .catalog-filter-panel label { display: block; padding: .375rem .5rem; color: var(--muted); font-size: .8125rem; } - .catalog-filter-panel .library-categories { display: grid; gap: .125rem; margin-bottom: .5rem; } + .catalog-filter-panel .library-categories { display: grid; gap: .125rem; } .catalog-filter-panel .library-categories a { display: flex; justify-content: space-between; min-height: 2.125rem; } - .discovery-tools .catalog-filter-panel select { display: block; width: 100%; margin-top: .375rem; } + .catalog-command::after { content: ''; width: .75rem; height: .75rem; background: var(--select-chevron) center / contain no-repeat; } + .catalog-command[aria-expanded="true"]::after { transform: rotate(180deg); } .discovery-tools .catalog-sort { position: relative; display: flex; justify-content: center; } .catalog-sort > svg { position: absolute; left: .5rem; top: 50%; transform: translateY(-50%); pointer-events: none; } .catalog-sort-group { display: inline-flex; flex-wrap: wrap; align-items: center; max-width: 100%; } @@ -2353,15 +2370,9 @@ button.signal-tile[aria-pressed="true"] > svg { fill: currentColor; } .workspace-status .library-selection-list { position: absolute; z-index: 40; inset: auto auto 100% 1rem; width: min(24rem, calc(100% - 2rem)); max-height: 40dvh; border-radius: .5rem; background: var(--surface-raised); box-shadow: 0 .4rem 1.5rem #0006; } } -.workspace.has-footer-notice { grid-template-columns: minmax(0, 1fr) auto; } -.has-footer-notice > :is(.app-toolbar, .workspace-content) { grid-column: 1 / -1; } -.has-footer-notice > .status-bar { position: relative; grid-area: 3 / 1; } -.has-footer-notice > .live-use-notice { position: relative; inset: auto; grid-area: 3 / 2; display: flex; align-items: center; padding-inline-end: .75rem; background: var(--sidebar); box-shadow: inset 0 1px var(--chrome-edge); } -.has-footer-notice .live-use-toggle { min-height: 1.875rem; border: 0; background: none; box-shadow: none; } -.has-footer-notice .live-use-panel { inset-inline: auto .75rem; } -/* The permanent live-use reminder: a pill at the bottom left of the page, clear of the right-hand prompts and docks. */ -.live-use-notice { position: fixed; z-index: 34; left: calc(var(--sidebar-width) + 18px); bottom: var(--footer-float-bottom, 50px); } -.live-use-toggle { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 7px 13px; border: 1px solid #6b5a45; border-radius: 20px; background: #2d2721; color: #e6c398; box-shadow: 0 5px 20px #0005; font-size: 12px; font-weight: 600; cursor: pointer; } +/* Keep the live-use advice with workspace status so it can't cover a link or a module. */ +.live-use-notice { position: relative; display: flex; align-items: center; background: var(--sidebar); z-index: 2; } +.live-use-toggle { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 6px 10px; border: 0; border-radius: 6px; background: transparent; color: #e6c398; font-size: 12px; font-weight: 600; } .live-use-toggle:hover, .live-use-toggle[aria-expanded="true"] { background: #382d23; } .live-use-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; } .live-use-panel { position: absolute; left: 0; bottom: calc(100% + 10px); width: min(340px, calc(100vw - 32px)); padding: 0 16px 16px; border: 1px solid #715235; border-radius: 12px; background: #2d2721; color: #f0c792; box-shadow: 0 12px 40px #0008; } @@ -2371,14 +2382,20 @@ button.signal-tile[aria-pressed="true"] > svg { fill: currentColor; } .live-use-panel .icon-button { flex-shrink: 0; min-width: 36px; min-height: 36px; } .live-use-panel p, .live-use-panel li { color: #d0bca4; font-size: 12px; line-height: 1.6; } .live-use-panel ul { display: grid; gap: 4px; margin: 10px 0 0; padding-left: 18px; } -.workspace-content { padding-bottom: 76px; } +@media (min-width: 601px) { + .workspace { grid-template-columns: minmax(0, 1fr) auto; } + .workspace > :is(.app-toolbar, .workspace-content) { grid-column: 1 / -1; } + .workspace > .status-bar { position: relative; grid-area: 3 / 1; } + .live-use-notice { grid-area: 3 / 2; padding-inline-end: .75rem; box-shadow: inset 0 1px var(--chrome-edge); } + .live-use-panel { inset-inline: auto .75rem; } +} @media (max-width: 600px) { - .live-use-notice { left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); } - .app-shell.has-library-dock .live-use-notice { bottom: calc(88px + env(safe-area-inset-bottom)); } - .live-use-toggle { justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; } - .live-use-toggle span { display: none; } + .your-module-sets .configuration-browser-heading { flex-wrap: wrap; } + .live-use-notice { padding: 8px 16px 0; border-top: 1px solid var(--chrome-edge); } + .live-use-toggle { min-height: 44px; padding-inline: 0; } + .live-use-panel { left: 16px; bottom: 100%; } .live-use-panel .icon-button { min-width: 44px; min-height: 44px; } .workspace-content { padding-bottom: 36px; } .phone-footer :is(.phone-footer-status, .legal-links) { font-size: .8125rem; line-height: 1.5; } - .phone-footer { border: 0; font-size: .8125rem; padding-bottom: calc(76px + env(safe-area-inset-bottom)); } + .phone-footer { margin-top: 0; border: 0; font-size: .8125rem; padding-top: 8px; } } From a903e4b72d955c86100474610f522f6f8f21f2f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Fri, 20 Nov 2026 08:10:28 +0100 Subject: [PATCH 150/415] Keep the Shoutbox guide concise --- docs/FORUM.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/FORUM.md b/docs/FORUM.md index 59432a0af2..e851ca4c86 100644 --- a/docs/FORUM.md +++ b/docs/FORUM.md @@ -35,9 +35,9 @@ The forum front page opens with a **Showcase** strip, “Fresh from the communit **Unread threads.** Signed-in members see which discussions hold replies they have not read (migration 0043). Opening a thread page records the newest post on it in `forum_thread_reads`, one upsert per page view that never moves the marker backwards; anonymous readers record nothing and get the thread list as before. Thread rows for members carry `unread` and `new_replies` (visible replies by other people after the marker), shown as a dot with a heavier title and “N new”; a thread the member never opened counts only when it was started, or replied to, after they joined, so a new member is not drowned. `unread=1` on the thread-list API keeps only unread threads (members only; the Following tab links there), and the thread view answers `firstUnread` (post and page) for the “Jump to first unread reply” link, computed before the page's own read is recorded. The forum home opens with **Since your last visit** for members: `GET /api/forum/visit` keeps one `forum_visits` row per member (last-seen time rewritten at most every two minutes; a load 30 minutes after the previous one starts a new visit, so the comparison time holds still while the member reads) and answers how many still-unread threads other people started and how many unread replies remain in followed threads since then, plus the number of unread followed threads. The summary counts use the same read markers as the thread lists and decrease as the member reads, including page by page in long discussions. Only positive counts have links, which open the matching unread view. The whole block is hidden on the first visit and once all counts are zero, including immediately after a successful Mark all as read. **Mark all as read** (`POST /api/forum/read-all`) sets a watermark before which nothing counts as unread and restarts the block. Read markers and visits leave with the account and appear in the data export. -**Shoutbox 8** opens from a button at the bottom right of forum screens. A red number on the button counts new public messages from other people. The first visit starts with a clear badge. The forum checks the latest 50 messages every 30 seconds while its tab is visible and refreshes when you return. A plus sign means more new messages may precede that window. Opening the chat or reading the latest messages in the archive clears the badge. If you scroll back to older messages, catching up at the bottom marks new arrivals as read. This browser keeps a separate read position for each member and for guests. +**Shoutbox 8** starts as a bottom-right button. Its red badge counts new public messages from others. A first visit starts clear. Opening the chat or catching up clears the badge. This browser remembers reads per member or guest. The latest 50 messages refresh every 30 seconds in a visible tab and on return. A `+` marks a lower bound. Escape minimizes the panel and returns focus. It stays open between discussions. -The chat overlays the page and stays open while navigating between discussions. Minimizing it or pressing Escape returns focus to the button. Anyone can read the chat and its archive, which has pages of 30. Verified, unsuspended members can send plain text up to 600 characters, edit or delete their own messages, and report messages privately. The service allows six sends per minute and 30 per hour per member, with additional member/IP limits. An `@username` in a shout notifies that member like a forum mention (at most 10 names, never the author). The bell entry links to the archive and disappears while the shout is hidden or once it is deleted. Other chat activity only updates the launcher badge. +Anyone can read, with 30 messages per archive page. Verified, unsuspended members can send up to 600 plain-text characters, edit or delete their own messages, and report privately. Each member can send six per minute and 30 per hour, with additional member/IP limits. An `@username` mention notifies up to ten other members. Its bell entry links to the archive and disappears when the message is hidden or deleted. The administrator's forum report queue includes chat reports. Hiding/restoring messages and reviewing reports require administrator access and a recorded reason; hidden messages are visible only to administrators. Account exports include only the owner's messages/reports, and account deletion removes their chat messages and report records. From 060d1fa55b103a1aafbf44fbf1f71f5c01df2a14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Fri, 20 Nov 2026 08:25:08 +0100 Subject: [PATCH 151/415] Improvement: agents review their session before finishing and flag workflow fixes Co-Authored-By: Claude Fable 5.2 --- .agents/skills/modwerk-pr-ready/SKILL.md | 3 +- .claude/skills/modwerk-pr-ready/SKILL.md | 3 +- .github/pull_request_template.md | 2 +- .github/workflows/pr-flags.yml | 3 +- AGENTS.md | 4 +- changelog/2026-11-20-session-review.md | 1 + docs/AGENT_SESSIONS.md | 18 +++- docs/DEVELOPER_WORKFLOW.md | 2 +- docs/README.md | 2 +- scripts/agent-session-review.mjs | 102 +++++++++++++++++++++++ scripts/agent-session-review.test.mjs | 58 +++++++++++++ scripts/agent-session.mjs | 14 +++- scripts/pr-ready.mjs | 4 +- src/community/starter-prompts.test.ts | 1 + 14 files changed, 204 insertions(+), 13 deletions(-) create mode 100644 changelog/2026-11-20-session-review.md create mode 100644 scripts/agent-session-review.mjs create mode 100644 scripts/agent-session-review.test.mjs diff --git a/.agents/skills/modwerk-pr-ready/SKILL.md b/.agents/skills/modwerk-pr-ready/SKILL.md index f4129b1ed2..eea1a61449 100644 --- a/.agents/skills/modwerk-pr-ready/SKILL.md +++ b/.agents/skills/modwerk-pr-ready/SKILL.md @@ -15,4 +15,5 @@ Follow `docs/DEVELOPER_WORKFLOW.md#make-it-mergeable`. - Watch `gh pr checks --watch` until green. For a red job, read `gh run view --log-failed`. - If `main` moves before the merge, start again at 1. 5. **Answer what pr:ready asks:** a guide edit for what you learned, or "nothing" in the pull request. -6. **Offer to share the session** when pr:ready prints the session-sharing line: ask the developer once whether to share this session with the owner, and on a yes run `npm run session -- share --note "…"` with a few sentences on what got in the way. "Always" or "never" from the developer goes into `npm run session -- prefer always|never` (`docs/AGENT_SESSIONS.md`). +6. **Review the session** when pr:ready prints the session-review line: run `npm run session -- review`, add what its figures cannot show, and tell the developer at most three things that cost time, each with its fix. A concrete fix goes in its own `Workflow: …` pull request (`docs/AGENT_SESSIONS.md#review-the-session-first`). +7. **Offer to share the session** when pr:ready prints the session-sharing line: ask the developer once whether to share this session with the owner, say why it helps (what slowed it down stays in the session unless shared, and the owner turns it into a guide edit, a check or a fix), and on a yes run `npm run session -- share --note "…"` with a few sentences on what got in the way. "Always" or "never" from the developer goes into `npm run session -- prefer always|never` (`docs/AGENT_SESSIONS.md`). diff --git a/.claude/skills/modwerk-pr-ready/SKILL.md b/.claude/skills/modwerk-pr-ready/SKILL.md index f4129b1ed2..eea1a61449 100644 --- a/.claude/skills/modwerk-pr-ready/SKILL.md +++ b/.claude/skills/modwerk-pr-ready/SKILL.md @@ -15,4 +15,5 @@ Follow `docs/DEVELOPER_WORKFLOW.md#make-it-mergeable`. - Watch `gh pr checks --watch` until green. For a red job, read `gh run view --log-failed`. - If `main` moves before the merge, start again at 1. 5. **Answer what pr:ready asks:** a guide edit for what you learned, or "nothing" in the pull request. -6. **Offer to share the session** when pr:ready prints the session-sharing line: ask the developer once whether to share this session with the owner, and on a yes run `npm run session -- share --note "…"` with a few sentences on what got in the way. "Always" or "never" from the developer goes into `npm run session -- prefer always|never` (`docs/AGENT_SESSIONS.md`). +6. **Review the session** when pr:ready prints the session-review line: run `npm run session -- review`, add what its figures cannot show, and tell the developer at most three things that cost time, each with its fix. A concrete fix goes in its own `Workflow: …` pull request (`docs/AGENT_SESSIONS.md#review-the-session-first`). +7. **Offer to share the session** when pr:ready prints the session-sharing line: ask the developer once whether to share this session with the owner, say why it helps (what slowed it down stays in the session unless shared, and the owner turns it into a guide edit, a check or a fix), and on a yes run `npm run session -- share --note "…"` with a few sentences on what got in the way. "Always" or "never" from the developer goes into `npm run session -- prefer always|never` (`docs/AGENT_SESSIONS.md`). diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index b9caf761d9..2633cb5c30 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,4 +1,4 @@ -**A fix or improvement outside a module?** Title it `Fix: …`, `Improvement: …` or `Docs: …` (it is labelled from that), keep it to one change, delete everything below and answer four questions in plain words: +**A fix or improvement outside a module?** Title it `Fix: …`, `Improvement: …`, `Docs: …` or `Workflow: …` (it is labelled from that), keep it to one change, delete everything below and answer four questions in plain words: - **What was wrong or hard:** - **What this changes:** diff --git a/.github/workflows/pr-flags.yml b/.github/workflows/pr-flags.yml index 59e3910fd7..813bfeb896 100644 --- a/.github/workflows/pr-flags.yml +++ b/.github/workflows/pr-flags.yml @@ -1,7 +1,7 @@ # SPDX-License-Identifier: Elastic-2.0 # Copyright (c) 2026 Jannik Aßfalg (repeat98) name: Flag PRs -# A fork cannot label its own PR, so the title carries the flag: "Fix: …", "Improvement: …" or "Docs: …". +# A fork cannot label its own PR, so the title carries the flag: "Fix: …", "Improvement: …", "Docs: …" or "Workflow: …". # The flag job reads only the title (passed as data, never as script) and adds the matching existing label. on: pull_request_target: @@ -25,6 +25,7 @@ jobs: Fix:*) label=bug ;; Improvement:*) label=enhancement ;; Docs:*) label=documentation ;; + Workflow:*) label=workflow ;; *) echo "No flag in the title."; exit 0 ;; esac gh api -X POST "repos/$REPOSITORY/issues/$NUMBER/labels" -f "labels[]=$label" > /dev/null diff --git a/AGENTS.md b/AGENTS.md index e343a3b192..d0f13fab68 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -47,8 +47,8 @@ Skills load on clone: Claude Code reads `.claude/skills/`, Codex the identical ` ## Pull requests -- Branch off current `main`. Never push there because it deploys. Add this session's work to your open pull request with an updated description; open another only when none is open, for each `/modwerk-contribute` change, and for a module release or new module, which ships alone. Base changes join their machine's cumulative `base/-next` pull request, a draft until extensively tested on a unit ([how](docs/DEVELOPER_WORKFLOW.md#change-a-base)). Push once the developer's testing is done, then `gh pr create` before reporting it done; a built package stays a draft until that exact build ran on a unit, named in the description. [Device reviewers](docs/DEVELOPER_WORKFLOW.md#who-reviews-a-first-release) or repository maintainers approve and merge a module's first release through the maintenance worker. Registered authors then release their own updates ([docs/MODULE_AUTHOR_UPDATES.md](docs/MODULE_AUTHOR_UPDATES.md)). -- Fold what you learn back into the context. First ask whether `module:doctor`, `pr:ready` or a test can catch it next time, and add that; write a sentence only for what no program can see, in the file a reader would open for that task: the matching guide, or this file. Correct a stale line rather than contradict it; keep it short, general and stock-free. A document in `docs/` and this file stay under 40 KB, so make room rather than append; history goes in a dated record ([where](docs/README.md)). Every pull request says what the guides lacked or got wrong and where you fixed it, and "nothing" is a fine answer ([Share what you learn](docs/DEVELOPER_WORKFLOW.md#share-what-you-learn)). +- Branch off current `main`. Never push there because it deploys. Add this session's work to your open pull request with an updated description; open another only when none is open, for each `/modwerk-contribute` or `Workflow: …` change, and for a module release or new module, which ships alone. Base changes join their machine's cumulative `base/-next` pull request, a draft until extensively tested on a unit ([how](docs/DEVELOPER_WORKFLOW.md#change-a-base)). Push once the developer's testing is done, then `gh pr create` before reporting it done; a built package stays a draft until that exact build ran on a unit, named in the description. [Device reviewers](docs/DEVELOPER_WORKFLOW.md#who-reviews-a-first-release) or repository maintainers approve and merge a module's first release through the maintenance worker. Registered authors then release their own updates ([docs/MODULE_AUTHOR_UPDATES.md](docs/MODULE_AUTHOR_UPDATES.md)). +- Fold what you learn back into the context. First ask whether `module:doctor`, `pr:ready` or a test can catch it next time, and add that; write a sentence only for what no program can see, in the file a reader would open for that task: the matching guide, or this file. Correct a stale line rather than contradict it; keep it short, general and stock-free. A document in `docs/` and this file stay under 40 KB, so make room rather than append; history goes in a dated record ([where](docs/README.md)). Every pull request says what the guides lacked or got wrong and where you fixed it, and "nothing" is a fine answer ([Share what you learn](docs/DEVELOPER_WORKFLOW.md#share-what-you-learn)). End with `npm run session -- review` ([why](docs/AGENT_SESSIONS.md#review-the-session-first)). - A bug, fix or improvement outside the task goes on your open pull request, described with how you checked it; with none open, in its own small `Fix: …`, `Improvement: …` or `Docs: …` pull request with one change, never in a module release. In a contributor's fork, offer it and open it with their OK; if you can't fix it, open an issue ([Fixes and improvements](docs/DEVELOPER_WORKFLOW.md#fixes-and-improvements)). ## Site, machines and operations diff --git a/changelog/2026-11-20-session-review.md b/changelog/2026-11-20-session-review.md new file mode 100644 index 0000000000..4aa4b56d1f --- /dev/null +++ b/changelog/2026-11-20-session-review.md @@ -0,0 +1 @@ +An agent now looks back at its own session before it finishes: `npm run session -- review` shows where the time went, what failed and what was repeated, and the agent names up to three things that cost time. A fix for one goes in its own pull request titled `Workflow: …`, labelled `workflow`. When it asks whether to share the session, it says why that helps. diff --git a/docs/AGENT_SESSIONS.md b/docs/AGENT_SESSIONS.md index 53a988d974..935bdb01b4 100644 --- a/docs/AGENT_SESSIONS.md +++ b/docs/AGENT_SESSIONS.md @@ -2,9 +2,25 @@ Since 19 November 2026. Developers build with coding agents on their own computers, and what slows them down (a guide that sent the agent the wrong way, a check that failed without saying why, a setup step that took an hour) mostly stays in their sessions. A developer can now send the owner the conversation of one session, so the owner can fix what got in the way. Sharing is voluntary, one session at a time, and never needed to contribute. +## Review the session first + +Since 20 November 2026. Before the final message of a session that did real work (about half an hour or 40 tool calls, not a short question), the agent looks back at it once. `pr:ready` prints the reminder. + +1. **Measure.** `npm run session -- review` reads this session's transcript and prints the wall time per tool, the slowest calls, the failed calls, what ran three times or more, and how long questions waited for the developer. Nothing is sent. A transcript holds no processor time, so wall time is the measure, and it includes waiting for a permission prompt. +2. **Add what the figures cannot show:** where you guessed and were wrong, which guide, check or error message sent you the wrong way or said nothing, and what the developer had to correct or say twice. +3. **Tell the developer at most three findings**, a line each: what cost time, why, and the fix. When nothing would spare a later session time, say so in a line and stop. + +A finding with a concrete fix becomes a pull request of its own, titled `Workflow: …` and labelled `workflow` from that: a check that names its cause, a quicker command, a script for what you ran by hand, a corrected guide line. It holds one change, branched from current `main`, and stays off the task's pull request and out of a module release, so every one can be found under the label. Its description says what cost time, how much the review measured, and what changes, without names or quotes from the session. The rest of [Fixes and improvements](DEVELOPER_WORKFLOW.md#fixes-and-improvements) applies: prefer a check to a sentence, ask first in a contributor's fork, and open an issue for what you cannot fix. + ## Ask once, at the end -When a task is done (`npm run pr:ready` says Ready, or the developer stops), the agent asks the developer once, in one line, whether to share this session. `pr:ready` prints the reminder, and `npm run session -- status` says what to do: +When a task is done (`npm run pr:ready` says Ready, or the developer stops) and the review is told, the agent asks the developer once whether to share this session, and says why it helps: + +- What slowed a session down stays in it. The owner sees the pull request, not the hour before it. +- The owner turns what a session shows into a guide edit, a check or a fix, which spares the developer's next session and every other developer the same. +- The conversation shows what was tried and in which order. The review and the note hold only what the agent noticed. + +`pr:ready` prints the reminder, and `npm run session -- status` says what to do: - **ask** (the default): ask, and share only on a yes. Write the developer's answer and the agent's own short account of what got in the way as the note: `npm run session -- share --note "…"`. - **always**: the developer said to share every session. Share it and say so in a line. diff --git a/docs/DEVELOPER_WORKFLOW.md b/docs/DEVELOPER_WORKFLOW.md index 4261cd65f4..e42f982ced 100644 --- a/docs/DEVELOPER_WORKFLOW.md +++ b/docs/DEVELOPER_WORKFLOW.md @@ -185,7 +185,7 @@ The guides are the context every prompt and agent reads, so a finding that helps When work turns up a bug, a fix, or an improvement that makes Modwerk easier to use or to develop for, in the SDK, the tools, the site or a guide, and it is not the task at hand, commit it to the pull request you already have open for this work and say in its description what it is and how you checked it; never fold it into a module release. With no pull request open, send it as its own small one. These are welcome and quick to merge when they are easy to read, and the points below apply to a stand-alone pull request: -- **Flag it in the title:** `Fix: …` for something broken, `Improvement: …` for something made easier or better, `Docs: …` for a guide-only finding. A workflow labels the PR from that prefix (`bug`, `enhancement`, `documentation`). +- **Flag it in the title:** `Fix: …` for something broken, `Improvement: …` for something made easier or better, `Docs: …` for a guide-only finding, `Workflow: …` for a [session review](AGENT_SESSIONS.md#review-the-session-first)'s fix, always its own PR. A workflow labels the PR from that prefix (`bug`, `enhancement`, `documentation`, `workflow`). - **One change, in plain words.** A title a musician could follow, a small diff and a description that answers what was wrong or hard, what this changes and how you checked it. The PR template has those three lines. - **Mergeable as it is.** Branch from current `main`, run `npm run pr:ready` until it says Ready, and keep generated files, versions and other modules out of it unless the change needs them. - **Ask first in someone's fork.** An agent working for a contributor offers the PR and opens it with their OK. If you can't fix it, open an issue or a site report instead, saying what you saw and on which build. diff --git a/docs/README.md b/docs/README.md index f6172b0d0a..d64061c077 100644 --- a/docs/README.md +++ b/docs/README.md @@ -79,7 +79,7 @@ Every document in `docs/`, one line each. [AGENTS.md](../AGENTS.md) says which t - [SINGLE_SIGN_ON.md](SINGLE_SIGN_ON.md): accounts and single sign-on. - [DEVELOPER_WORKSPACE.md](DEVELOPER_WORKSPACE.md): creator settings and private report details. - [AGENT_BOARD.md](AGENT_BOARD.md): the agent board: claims every developer's agent sees and makes (module ports, hook, table and migration numbers), the questions and findings agents leave each other, and the commands that check them. -- [AGENT_SESSIONS.md](AGENT_SESSIONS.md): sharing the conversation of an agent session with the owner, what is removed before it leaves the computer, and who reads it for how long. +- [AGENT_SESSIONS.md](AGENT_SESSIONS.md): the review an agent makes of its own session before it finishes, and sharing the conversation of an agent session with the owner, what is removed before it leaves the computer, and who reads it for how long. - [STATISTICS.md](STATISTICS.md): the admin statistics. - [WEB_PUSH.md](WEB_PUSH.md): device push notifications. - [FIRMWARE_DOWNLOAD_API.md](FIRMWARE_DOWNLOAD_API.md): building and saving firmware without a browser. diff --git a/scripts/agent-session-review.mjs b/scripts/agent-session-review.mjs new file mode 100644 index 0000000000..072194f03a --- /dev/null +++ b/scripts/agent-session-review.mjs @@ -0,0 +1,102 @@ +// SPDX-License-Identifier: Elastic-2.0 +// Copyright (c) 2026 Jannik Aßfalg (repeat98) +// Where a coding-agent session spent its time, read from its transcript (docs/AGENT_SESSIONS.md#review-the-session-first). +// Nothing leaves the computer: `npm run session -- review` prints this for the agent that is about to finish. +// A transcript holds no processor time, so every figure is the wall time between a tool call and its result, +// which includes waiting for the developer to allow it. +import { describeTool } from '../src/community/agent-sessions.ts' + +const record = value => !!value && typeof value === 'object' && !Array.isArray(value) +const str = value => typeof value === 'string' ? value : '' +const time = value => { const at = Date.parse(str(value)); return Number.isFinite(at) ? at : null } +/** Tools that wait for the developer's answer: their time is the developer's, not the tool's. */ +const QUESTIONS = new Set(['AskUserQuestion', 'ExitPlanMode', 'request_user_input']) +const CODEX_FAILED = /"exit_code"\s*:\s*[1-9]|Process exited with code [1-9]|exit code:? [1-9]/i + +/** Every tool call of one transcript in order: `{ tool, label, start, seconds, failed }`, `seconds` null while it has no + * result. Subagent turns are left out, as in a shared session. */ +export function readCalls(lines, agent = 'claude-code') { + const calls = [], open = new Map() + let prompts = 0, first = null, last = null + const begin = (id, tool, input, at) => { const call = { tool, label: describeTool(tool, input), start: at, seconds: null, failed: false }; calls.push(call); open.set(id, call) } + const end = (id, at, failed) => { + const call = open.get(id) + if (!call) return + if (call.start !== null && at !== null) call.seconds = Math.max(0, (at - call.start) / 1000) + if (failed) call.failed = true + } + for (const line of lines) { + let row + try { row = JSON.parse(line) } catch { continue } + if (!record(row)) continue + const at = time(row.timestamp) + if (agent === 'codex') { + const item = row.payload + if (row.type !== 'response_item' || !record(item)) continue + if (at !== null) { first ??= at; last = at } + if (item.type === 'function_call' || item.type === 'custom_tool_call' || item.type === 'local_shell_call') { + let input = item.input ?? item.action + if (typeof item.arguments === 'string') { try { input = JSON.parse(item.arguments) } catch { input = {} } } + begin(str(item.call_id), str(item.name) || 'shell', item.type === 'custom_tool_call' ? {} : input, at) + } else if (item.type === 'function_call_output' || item.type === 'custom_tool_call_output') { + end(str(item.call_id), at, CODEX_FAILED.test(typeof item.output === 'string' ? item.output : JSON.stringify(item.output ?? ''))) + } else if (item.type === 'message' && item.role === 'user') { + const text = (Array.isArray(item.content) ? item.content.filter(record) : []).map(part => str(part.text)).join('\n') + if (text.trim() && !/^\s*(?:||# AGENTS\.md instructions)/.test(text)) prompts++ + } + continue + } + if ((row.type !== 'user' && row.type !== 'assistant') || row.isSidechain === true || !record(row.message)) continue + if (at !== null) { first ??= at; last = at } + const content = row.message.content, blocks = typeof content === 'string' ? [{ type: 'text', text: content }] : Array.isArray(content) ? content.filter(record) : [] + if (row.type === 'assistant') { for (const block of blocks) if (block.type === 'tool_use') begin(str(block.id), str(block.name), block.input, at); continue } + let result = false + for (const block of blocks) if (block.type === 'tool_result') { result = true; end(str(block.tool_use_id), at, block.is_error === true) } + const human = !record(row.origin) || row.origin.kind === 'human' + if (!result && human && row.isMeta !== true && row.isCompactSummary !== true && row.isVisibleInTranscriptOnly !== true && blocks.some(block => block.type === 'text' && str(block.text).trim())) prompts++ + } + return { calls, prompts, minutes: first !== null && last !== null ? (last - first) / 60000 : 0 } +} + +const sum = list => list.reduce((total, call) => total + (call.seconds ?? 0), 0) + +/** The figures of a session: where the time went, what failed, and what was done over and over. */ +export function reviewSession({ calls, prompts, minutes }, top = 10) { + const questions = calls.filter(call => QUESTIONS.has(call.tool)), work = calls.filter(call => !QUESTIONS.has(call.tool)) + const tools = new Map(), labels = new Map() + for (const call of work) { + const row = tools.get(call.tool) ?? { tool: call.tool, calls: 0, seconds: 0, failed: 0 } + row.calls++; row.seconds += call.seconds ?? 0; if (call.failed) row.failed++ + tools.set(call.tool, row) + labels.set(call.label, (labels.get(call.label) ?? 0) + 1) + } + return { + minutes, prompts, calls: work.length, seconds: sum(work), + questions: questions.length, questionSeconds: sum(questions), + byTool: [...tools.values()].sort((a, b) => b.seconds - a.seconds), + slowest: work.filter(call => call.seconds !== null).sort((a, b) => b.seconds - a.seconds).slice(0, top), + failed: work.filter(call => call.failed), + repeated: [...labels].filter(([, times]) => times >= 3).sort((a, b) => b[1] - a[1]).slice(0, top).map(([label, times]) => ({ label, times })), + } +} + +const span = seconds => seconds >= 90 ? (seconds / 60).toFixed(1) + ' min' : seconds.toFixed(1) + ' s' +const cut = (text, limit = 110) => text.length > limit ? text.slice(0, limit - 1) + '…' : text + +/** The review as the lines the agent reads, ending with what the figures cannot show. */ +export function formatReview(review) { + const lines = [ + `Session: ${review.minutes.toFixed(0)} min from first to last entry (time away included), ${review.prompts} prompts from the developer.`, + `Tools: ${review.calls} calls, ${span(review.seconds)} of wall time, ${review.failed.length} failed.`, + ] + if (review.questions) lines.push(`Questions to the developer: ${review.questions}, ${span(review.questionSeconds)} until answered (not counted as tool time).`) + if (!review.calls) return lines + lines.push('', 'By tool:', ...review.byTool.map(row => ` ${span(row.seconds).padStart(9)} ${String(row.calls).padStart(4)} calls ${row.tool}${row.failed ? ` (${row.failed} failed)` : ''}`)) + lines.push('', 'Slowest calls:', ...review.slowest.map(call => ` ${span(call.seconds).padStart(9)} ${cut(call.label)}`)) + if (review.failed.length) lines.push('', `Failed calls (${review.failed.length}):`, ...review.failed.slice(0, 25).map(call => ' ' + cut(call.label))) + if (review.repeated.length) lines.push('', 'Run three times or more:', ...review.repeated.map(row => ` ${String(row.times).padStart(3)}× ${cut(row.label)}`)) + lines.push('', 'The figures are wall time; a transcript holds no processor time. They cannot show where you guessed and were wrong,', + 'which guide or check sent you the wrong way or said nothing, and what the developer had to correct or say twice: add those yourself.', + 'Then tell the developer at most three findings, each with its fix (docs/AGENT_SESSIONS.md#review-the-session-first).') + return lines +} diff --git a/scripts/agent-session-review.test.mjs b/scripts/agent-session-review.test.mjs new file mode 100644 index 0000000000..bdedc0ea7d --- /dev/null +++ b/scripts/agent-session-review.test.mjs @@ -0,0 +1,58 @@ +import { describe, expect, it } from 'vitest' +import { formatReview, readCalls, reviewSession } from './agent-session-review.mjs' + +const at = seconds => new Date(Date.UTC(2026, 10, 20, 9, 0, seconds)).toISOString() +const claude = rows => rows.map(row => JSON.stringify(row)) +const use = (id, name, input, seconds, extra = {}) => ({ type: 'assistant', timestamp: at(seconds), message: { content: [{ type: 'tool_use', id, name, input }] }, ...extra }) +const result = (id, seconds, failed = false) => ({ type: 'user', timestamp: at(seconds), message: { content: [{ type: 'tool_result', tool_use_id: id, content: 'secret output', is_error: failed }] } }) +const prompt = (text, seconds, extra = {}) => ({ type: 'user', timestamp: at(seconds), message: { content: text }, ...extra }) + +describe('session review', () => { + it('times each Claude Code tool call from its request to its result', () => { + const read = readCalls(claude([ + prompt('Fix the check', 0), + use('a', 'Bash', { command: 'npm run check', description: 'Run the check' }, 10), + result('a', 250, true), + use('b', 'Read', { file_path: 'docs/SDK.md' }, 260), + result('b', 261), + prompt('injected', 262, { isMeta: true }), + use('c', 'Bash', { command: 'sleep 9' }, 270, { isSidechain: true }), + use('d', 'Bash', { command: 'never returns' }, 300), + ])) + expect(read.prompts).toBe(1) + expect(read.minutes).toBe(5) + expect(read.calls.map(call => [call.tool, call.seconds, call.failed])).toEqual([['Bash', 240, true], ['Read', 1, false], ['Bash', null, false]]) + expect(read.calls[0].label).toBe('Bash: Run the check · npm run check') + }) + + it('keeps the wait for the developer out of the tool time and finds what was repeated', () => { + const rows = [use('q', 'AskUserQuestion', {}, 0), result('q', 600)] + for (let index = 0; index < 3; index++) rows.push(use('r' + index, 'Bash', { command: 'npm run pr:ready' }, 700 + index * 100), result('r' + index, 760 + index * 100, index === 0)) + const review = reviewSession(readCalls(claude(rows))) + expect(review).toMatchObject({ calls: 3, seconds: 180, questions: 1, questionSeconds: 600 }) + expect(review.byTool).toEqual([{ tool: 'Bash', calls: 3, seconds: 180, failed: 1 }]) + expect(review.repeated).toEqual([{ label: 'Bash: npm run pr:ready', times: 3 }]) + const text = formatReview(review).join('\n') + expect(text).toContain('Tools: 3 calls, 3.0 min of wall time, 1 failed.') + expect(text).toContain('Questions to the developer: 1, 10.0 min until answered') + expect(text).toContain('3× Bash: npm run pr:ready') + expect(text).not.toContain('secret output') + }) + + it('reads a Codex rollout', () => { + const row = (seconds, payload) => JSON.stringify({ type: 'response_item', timestamp: at(seconds), payload }) + const read = readCalls([ + JSON.stringify({ type: 'session_meta', timestamp: at(0), payload: { cwd: '/work' } }), + row(1, { type: 'message', role: 'user', content: [{ text: '…' }] }), + row(2, { type: 'message', role: 'user', content: [{ text: 'Build the module' }] }), + row(5, { type: 'function_call', name: 'shell', call_id: 'x', arguments: JSON.stringify({ command: ['make', 'all'] }) }), + row(65, { type: 'function_call_output', call_id: 'x', output: '{"metadata":{"exit_code":2}}' }), + ], 'codex') + expect(read.prompts).toBe(1) + expect(read.calls).toEqual([{ tool: 'shell', label: 'shell: make all', start: Date.parse(at(5)), seconds: 60, failed: true }]) + }) + + it('says so when a session ran no tools', () => { + expect(formatReview(reviewSession(readCalls(claude([prompt('Hello', 0)]))))).toEqual(['Session: 0 min from first to last entry (time away included), 1 prompts from the developer.', 'Tools: 0 calls, 0.0 s of wall time, 0 failed.']) + }) +}) diff --git a/scripts/agent-session.mjs b/scripts/agent-session.mjs index c6a1f70db1..e385847378 100644 --- a/scripts/agent-session.mjs +++ b/scripts/agent-session.mjs @@ -7,6 +7,7 @@ // npm run session -- preview [--skip 3,7] # what would be sent, written to ~/.cache/modwerk/session-preview.json // npm run session -- share --note "…" [--skip 3,7] [--file ] [--agent claude-code|codex] // npm run session -- list | get | delete +// npm run session -- review [--file ] # where this session spent its time; printed here, nothing is sent // npm run session -- pull # the owner: every shared session into ~/.cache/modwerk-local/sessions/, // # signed in with the owner's site account (prompt, or MODWERK_EMAIL/PASSWORD) // Only the conversation is sent: the developer's prompts, the agent's replies and which tools ran and whether they failed. @@ -19,6 +20,7 @@ import { gzipSync } from 'node:zlib' import { parseArgs } from 'node:util' import { pathToFileURL } from 'node:url' import { boardRequest, readToken, BoardError, BoardUnavailable } from './agent-board.mjs' +import { formatReview, readCalls, reviewSession } from './agent-session-review.mjs' import { claudeProjectFolder, firmwareFindings, prepareSession, readClaudeTranscript, readCodexRollout, SESSION_CONSENT_VERSION, SESSION_GZIP_LIMIT, SESSION_NOTE_LIMIT } from '../src/community/agent-sessions.ts' const PREFERENCES = ['ask', 'always', 'never'] @@ -33,11 +35,14 @@ async function writePrivate(file, text) { await writeFile(file, text, { mode: 0o600 }); await chmod(file, 0o600) } +/** What the agent does before its final message, whatever the developer chose about sharing (pr:ready prints it). */ +export const reviewLine = 'Session review: before your final message, run npm run session -- review, add what its figures cannot show, and tell the developer at most three things that cost time, each with its fix. A concrete fix goes in its own "Workflow: …" pull request (docs/AGENT_SESSIONS.md#review-the-session-first).' + /** What the agent should do about sharing at the end of a task, in one line (pr:ready prints it too). */ export function sharingLine(preference) { return preference === 'never' ? 'Session sharing: never. The developer chose not to be asked; do not offer it.' : preference === 'always' ? 'Session sharing: always. When the task is done, share this session yourself (npm run session -- share --note "…") and tell the developer in a line.' - : 'Session sharing: ask. When the task is done, ask the developer once whether to share this session with the owner, so they can remove what got in the way (npm run session -- share --note "…"; only the conversation is sent, docs/AGENT_SESSIONS.md). If they answer always or never, save it with npm run session -- prefer always|never.' + : 'Session sharing: ask. When the task is done, ask the developer once whether to share this session with the owner, and say why it helps: what slowed this session down stays in it unless it is shared, and the owner turns it into a guide edit, a check or a fix that spares their next session and every other developer (npm run session -- share --note "…"; only the conversation is sent, docs/AGENT_SESSIONS.md). If they answer always or never, save it with npm run session -- prefer always|never.' } /** The working directories this session may have started in: where npm was called, here, and the checkout's root. */ @@ -203,6 +208,11 @@ export async function main(argv = process.argv.slice(2)) { const [command = 'help', arg] = positionals const skip = (values.skip ?? '').split(',').filter(Boolean).map(Number).filter(Number.isInteger) if (command === 'status') { console.log(sharingLine(await readPreference())); return 0 } + if (command === 'review') { + const found = await findTranscript({ file: values.file, agent: values.agent }) + for (const line of formatReview(reviewSession(readCalls((await readFile(found.file, 'utf8')).split('\n').filter(Boolean), found.agent)))) console.log(line) + return 0 + } if (command === 'prefer') { if (!PREFERENCES.includes(arg)) { console.error('Choose ask, always or never.'); return 2 } await writePrivate(preferenceFile(), JSON.stringify({ sharing: arg }) + '\n') @@ -256,7 +266,7 @@ export async function main(argv = process.argv.slice(2)) { console.log(`${count} shared sessions in ${folder} (INDEX.md lists them).`) return 0 } - console.log('npm run session -- status | prefer ask|always|never | preview | share --note "…" [--skip 3,7] [--file ] | list | get | delete | pull') + console.log('npm run session -- review | status | prefer ask|always|never | preview | share --note "…" [--skip 3,7] [--file ] | list | get | delete | pull') return command === 'help' ? 0 : 2 } diff --git a/scripts/pr-ready.mjs b/scripts/pr-ready.mjs index 4f1668c4a4..8bfbfae255 100644 --- a/scripts/pr-ready.mjs +++ b/scripts/pr-ready.mjs @@ -204,8 +204,8 @@ async function main(argv) { const verdict = readiness({ python, dirty, behind, remote, regenerated, checkPassed, author, scope, guideEdits, gateEdits: gateEdits(changed), baseEdits: baseEdits(changed), instrument: instrumentFiles(changed), compiled, board }) console.log('') for (const line of verdict.problems) console.log('✗ ' + line) - // Once the work is ready, the agent asks whether to share the session with the owner (docs/AGENT_SESSIONS.md), unless the developer said never. - if (verdict.ok) { const sharing = await import('./agent-session.mjs'), preference = await sharing.readPreference(); if (preference !== 'never') verdict.notes.push(sharing.sharingLine(preference)) } + // Once the work is ready, the agent reviews its session and asks whether to share it with the owner (docs/AGENT_SESSIONS.md), unless the developer said never. + if (verdict.ok) { const sharing = await import('./agent-session.mjs'), preference = await sharing.readPreference(); verdict.notes.push(sharing.reviewLine); if (preference !== 'never') verdict.notes.push(sharing.sharingLine(preference)) } for (const line of verdict.notes) console.log('· ' + line) console.log(!verdict.ok ? 'Not ready yet.' : verdict.instrument ? 'Ready to open as a draft: the checks pass. Mark it ready for review once the exact build has run on a unit (above).' diff --git a/src/community/starter-prompts.test.ts b/src/community/starter-prompts.test.ts index b626941487..9b2da6b2a8 100644 --- a/src/community/starter-prompts.test.ts +++ b/src/community/starter-prompts.test.ts @@ -136,6 +136,7 @@ describe('starter prompts', () => { expect(workflow).toContain('## Make it mergeable') expect(workflow).toContain('### Fixes and improvements') expect(readFileSync('.github/workflows/pr-flags.yml', 'utf8')).toContain('Improvement:*) label=enhancement') + expect(readFileSync('.github/workflows/pr-flags.yml', 'utf8')).toContain('Workflow:*) label=workflow') expect(readFileSync('.github/pull_request_template.md', 'utf8')).toContain('**What was wrong or hard:**') expect(agents).toContain('npm run pr:ready') expect(agents).toContain('what the guides lacked or got wrong') From de6cea0e26fc1f43807315e3696e0f0f65054bc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Fri, 20 Nov 2026 08:28:42 +0100 Subject: [PATCH 152/415] Refine card sizing and restore the floating live-use notice --- changelog/2026-11-20-library-card-sizing.md | 2 ++ docs/APP_DEVELOPMENT.md | 2 +- src/community/ForumProfile.tsx | 1 - src/components/ModuleAudioPreview.tsx | 6 ++--- src/components/ModuleCard.tsx | 3 +-- src/components/audio-preview.test.ts | 3 +++ src/devices/MachinePages.tsx | 3 +-- src/devices/ZoomEffectDetail.tsx | 1 - src/overview/overview.css | 9 ++++--- src/styles.css | 26 +++++++-------------- 10 files changed, 26 insertions(+), 30 deletions(-) create mode 100644 changelog/2026-11-20-library-card-sizing.md diff --git a/changelog/2026-11-20-library-card-sizing.md b/changelog/2026-11-20-library-card-sizing.md new file mode 100644 index 0000000000..c571e6b9e5 --- /dev/null +++ b/changelog/2026-11-20-library-card-sizing.md @@ -0,0 +1,2 @@ +Module cards keep descriptions in the preview and on the module page. The machine overview gives instruments more room at laptop widths. +“Playing live? Take care” floats at the lower left, above the footer and the phone library dock. diff --git a/docs/APP_DEVELOPMENT.md b/docs/APP_DEVELOPMENT.md index 42cbda7b24..6c0c3c0328 100644 --- a/docs/APP_DEVELOPMENT.md +++ b/docs/APP_DEVELOPMENT.md @@ -322,7 +322,7 @@ The public audio-preview announcement’s **Show me how** action opens `#module/ Declared module recordings play in the card and main detail preview; the screenshots gallery no longer repeats them as standalone audio tiles. Community submissions retain their contributor, caption and removal controls in the Previews tab, and media credits remain available. -Cards with recordings retain the waveform strip on thumbnail hover or keyboard focus. Clicking the waveform seeks and starts playback; playing controls remain visible after pointer exit. Card dimensions and the hover description stay unchanged. The idle play indicator matches the Add button height: 32px on desktop and 40px on phones. Touch users open the module page to play. +Card thumbnails show a summary on hover. For recordings, the cover link has a tooltip and hover or keyboard focus reveals the waveform. Seeking starts playback. Playing controls stay visible after pointer exit. The idle play indicator matches Add (32px on desktop, 40px on phones). On touch, open the module page for the description or playback. The module-page player has a persistent audio strip below the illustration, with 44px Play/Pause and seek targets. Play/Pause comes before seeking in keyboard order; elapsed and total times sit below the waveform. Pressing Play loads the clip on touch. A manual carousel provides previous/next controls and a clip counter when multiple previews are available. Modules without recordings retain their artwork and an Add preview action. The standalone preview player uses this layout too; forum and gallery players keep their existing layout. diff --git a/src/community/ForumProfile.tsx b/src/community/ForumProfile.tsx index bd0140a698..c31ea58381 100644 --- a/src/community/ForumProfile.tsx +++ b/src/community/ForumProfile.tsx @@ -62,7 +62,6 @@ function MaintainedModules({ maintains }: { maintains: MemberProfile['maintains'
{module.description}Explore module
-

{module.description}

{DETAILS[module.id].family} · {machine} stats.module_id === module.id)} />
diff --git a/src/components/ModuleAudioPreview.tsx b/src/components/ModuleAudioPreview.tsx index 2ef3f05a19..be171f44c4 100644 --- a/src/components/ModuleAudioPreview.tsx +++ b/src/components/ModuleAudioPreview.tsx @@ -7,12 +7,12 @@ import type { AudioPreviewClip } from './audio-preview' import './audio-preview.css' /** The dock is a sibling of the cover link, so seeking never opens the module page. */ -export function ModuleAudioCardCover({ id, name, href, onBrowse, inert, prepare, onPrepare, clip, children }: { - id: string; name: string; href: string; onBrowse?: () => void; inert?: boolean; prepare: boolean +export function ModuleAudioCardCover({ id, name, summary, href, onBrowse, inert, prepare, onPrepare, clip, children }: { + id: string; name: string; summary: string; href: string; onBrowse?: () => void; inert?: boolean; prepare: boolean onPrepare: () => void; clip: AudioPreviewClip; children: ReactNode }) { return
{ if (event.pointerType !== 'touch') onPrepare() }} onFocus={onPrepare}> - {children} + {children}
diff --git a/src/components/ModuleCard.tsx b/src/components/ModuleCard.tsx index a9d8bc0cdd..dc28b1f0bb 100644 --- a/src/components/ModuleCard.tsx +++ b/src/components/ModuleCard.tsx @@ -96,7 +96,7 @@ export function ModuleCard({ module, selected, statistics, viewedVersion, baseli const trigger = useRef(null) const prompt = useAddBlockPrompt(pending, trigger) return
{module.id === USB_AUDIO_MODULE && Outbox 8 compatible}
{module.detail}
-

{module.description}

{pending ? : {DETAILS[module.id].family}}
diff --git a/src/components/audio-preview.test.ts b/src/components/audio-preview.test.ts index 8472d99b8b..7c69f78e5f 100644 --- a/src/components/audio-preview.test.ts +++ b/src/components/audio-preview.test.ts @@ -17,6 +17,7 @@ describe('module audio previews', () => { expect(moduleAudioPreviews('unknown')).toEqual([]) expect(markup).toContain('class="module-cover"') expect(markup).toContain('hover-info') + expect(markup.slice(markup.indexOf('class="module-card-body"'))).not.toContain(module.description) expect(markup).not.toContain('audio-preview-player') expect(markup).not.toContain('audio-preview-hint') }) @@ -24,6 +25,8 @@ describe('module audio previews', () => { it('keeps playback outside the navigation link and omits clip descriptions', () => { const markup = renderToStaticMarkup(createElement(AudioPreviewContext.Provider, { value: { clips: { quantizer: [clip] }, onAdd: () => {} } }, card())) expect(markup).toContain('module-audio-cover-link') + expect(markup).toContain('title="' + module.description + '"') + expect(markup.slice(markup.indexOf('class="module-card-body"'))).not.toContain(module.description) expect(markup.indexOf('')).toBeLessThan(markup.indexOf('audio-player-play"')) expect(markup).toContain('preload="none"') expect(markup).not.toContain('autoplay') diff --git a/src/devices/MachinePages.tsx b/src/devices/MachinePages.tsx index ce5c479dd5..884ae95056 100644 --- a/src/devices/MachinePages.tsx +++ b/src/devices/MachinePages.tsx @@ -89,7 +89,7 @@ function DigiModCard({ mod, selected, statistics, compared, canCompare, onToggle const [prepare, setPrepare] = useState(false) const stability = moduleStability(statistics, { hardware: mod.hardware ? 'Author-tested on hardware.' : 'Author release, not yet tested in Modwerk.' }) return
- {clips.length ? setPrepare(true)}> : + {clips.length ? setPrepare(true)}> :
{mod.summary}Explore module
}
@@ -97,7 +97,6 @@ function DigiModCard({ mod, selected, statistics, compared, canCompare, onToggle
{mod.license}
-

{mod.summary}

{mod.category}{kib(mod.ramBytes)} memory
diff --git a/src/devices/ZoomEffectDetail.tsx b/src/devices/ZoomEffectDetail.tsx index 45fc6ca3bb..afeea08b23 100644 --- a/src/devices/ZoomEffectDetail.tsx +++ b/src/devices/ZoomEffectDetail.tsx @@ -35,7 +35,6 @@ export function ZoomEffectCard({ effect, selected, onToggle, statistics, compare
{effect.name}
v{effect.version}
{effect.license.spdx}
-

{effect.presentation.summary}

{effect.presentation.family}DSP {effect.platform.dspCost}
diff --git a/src/overview/overview.css b/src/overview/overview.css index f904e01c2d..251bb4c572 100644 --- a/src/overview/overview.css +++ b/src/overview/overview.css @@ -1,7 +1,10 @@ /* The landing page (#overview) and the temporary Start developing highlight. Colours reuse the app tokens; apricot is the kicker colour and stands for "open for development" throughout. */ .overview-page, .develop-card, .mobile-menu-panel a.is-highlight { --apricot: #c7a16c; --apricot-text: #ecd6b0; --apricot-line: #7a6546; --apricot-surface: #2a2620; --done: #7fd1a0; } -.overview-page { width: 100%; max-width: 1280px; margin: 0 auto; } +.overview-page { width: 100%; max-width: 75rem; margin: 0 auto; } +@media (min-width: 1051px) { + .overview-page { width: 90%; } +} /* Heading: the title, one line of numbers and the filters in a single row */ .overview-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 18px; } @@ -24,7 +27,7 @@ /* Machine cards: a dark panel rather than a grey box. A faint top-lit surface, a hairline edge that barely separates it from the page and a thin highlight along the top. Every card is the same size; on hover the panel brightens one step and nothing moves. */ -.machine-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 18px; } +.machine-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18.75rem), 1fr)); grid-auto-rows: 1fr; gap: 18px; } .overview-tile { display: flex; flex-direction: column; min-width: 0; border: 1px solid #ffffff0d; border-radius: 14px; background: linear-gradient(180deg, #ffffff09, #ffffff02 60%); box-shadow: inset 0 1px 0 #ffffff0d, 0 10px 24px -14px #00000080; color: inherit; transition: background .2s, border-color .2s; } .overview-tile:hover { border-color: #ffffff1a; background: linear-gradient(180deg, #ffffff0f, #ffffff04 60%); } .overview-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; } @@ -65,7 +68,7 @@ } .overview-tile-body { display: flex; flex-direction: column; flex: 1; gap: 11px; padding: 6px 20px 20px; } .overview-tile-line { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; } -.overview-tile-line:has(.overview-state) { flex-direction: column; gap: 5px; } +.overview-tile-line:has(.overview-state) { flex-wrap: wrap; row-gap: 5px; } .overview-tile-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 7px; min-width: 0; font-size: 17px; font-weight: 600; letter-spacing: -.25px; } .overview-tile-name small { color: var(--muted); font-size: 12.5px; font-weight: 400; letter-spacing: 0; } .overview-state { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; color: var(--text-secondary); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; } diff --git a/src/styles.css b/src/styles.css index f8cb9f3c8b..ca4f65ca5f 100644 --- a/src/styles.css +++ b/src/styles.css @@ -226,8 +226,6 @@ h2 { font-size: 16px; letter-spacing: -.15px; font-weight: 600; } .module-card > .add-block-prompt .add-block-actions { margin-top: 4px; } .card-credit { display: flex; justify-content: space-between; gap: 10px; margin-top: 4px; color: #b9b9c7; font-size: 12px; line-height: 1.5; } .card-credit a:hover, .author-link:hover { color: var(--accent); } -/* Keep enough of the summary on each card to compare modules without opening their covers. */ -.card-description { display: -webkit-box; margin: 9px 0 0; color: var(--text-secondary); font-size: 13px; line-height: var(--reading-line-height); -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .card-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; margin: 11px 0 10px; color: #c0c0ce; font-size: 12px; } .card-stats { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-left: auto; font-variant-numeric: tabular-nums; } .card-stat { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; } @@ -262,7 +260,6 @@ h2 { font-size: 16px; letter-spacing: -.15px; font-weight: 600; } .module-card-title { align-items: center; } .add-button { display: inline-flex; gap: 6px; width: auto; height: 44px; margin-top: 0; padding: 0 14px; border-radius: 8px; font-size: 13px; } .add-button span { display: inline; } - .card-description { display: -webkit-box; font-size: 14px; line-height: 1.6; -webkit-line-clamp: 3; } .card-bottom { font-size: 13px; } .card-stats { gap: 4px 14px; } .card-proof { font-size: 12px; } @@ -2370,9 +2367,9 @@ button.signal-tile[aria-pressed="true"] > svg { fill: currentColor; } .workspace-status .library-selection-list { position: absolute; z-index: 40; inset: auto auto 100% 1rem; width: min(24rem, calc(100% - 2rem)); max-height: 40dvh; border-radius: .5rem; background: var(--surface-raised); box-shadow: 0 .4rem 1.5rem #0006; } } -/* Keep the live-use advice with workspace status so it can't cover a link or a module. */ -.live-use-notice { position: relative; display: flex; align-items: center; background: var(--sidebar); z-index: 2; } -.live-use-toggle { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 6px 10px; border: 0; border-radius: 6px; background: transparent; color: #e6c398; font-size: 12px; font-weight: 600; } +/* Pin the live-use reminder above the workspace footer and the phone library dock. */ +.live-use-notice { position: fixed; z-index: 34; left: calc(var(--sidebar-width) + 18px); bottom: var(--footer-float-bottom, 50px); } +.live-use-toggle { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 7px 13px; border: 1px solid #6b5a45; border-radius: 20px; background: #2d2721; color: #e6c398; box-shadow: 0 5px 20px #0005; font-size: 12px; font-weight: 600; cursor: pointer; } .live-use-toggle:hover, .live-use-toggle[aria-expanded="true"] { background: #382d23; } .live-use-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; } .live-use-panel { position: absolute; left: 0; bottom: calc(100% + 10px); width: min(340px, calc(100vw - 32px)); padding: 0 16px 16px; border: 1px solid #715235; border-radius: 12px; background: #2d2721; color: #f0c792; box-shadow: 0 12px 40px #0008; } @@ -2382,20 +2379,15 @@ button.signal-tile[aria-pressed="true"] > svg { fill: currentColor; } .live-use-panel .icon-button { flex-shrink: 0; min-width: 36px; min-height: 36px; } .live-use-panel p, .live-use-panel li { color: #d0bca4; font-size: 12px; line-height: 1.6; } .live-use-panel ul { display: grid; gap: 4px; margin: 10px 0 0; padding-left: 18px; } -@media (min-width: 601px) { - .workspace { grid-template-columns: minmax(0, 1fr) auto; } - .workspace > :is(.app-toolbar, .workspace-content) { grid-column: 1 / -1; } - .workspace > .status-bar { position: relative; grid-area: 3 / 1; } - .live-use-notice { grid-area: 3 / 2; padding-inline-end: .75rem; box-shadow: inset 0 1px var(--chrome-edge); } - .live-use-panel { inset-inline: auto .75rem; } -} +.workspace-content { padding-bottom: 76px; } @media (max-width: 600px) { .your-module-sets .configuration-browser-heading { flex-wrap: wrap; } - .live-use-notice { padding: 8px 16px 0; border-top: 1px solid var(--chrome-edge); } - .live-use-toggle { min-height: 44px; padding-inline: 0; } - .live-use-panel { left: 16px; bottom: 100%; } + .live-use-notice { left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); } + .app-shell.has-library-dock .live-use-notice { bottom: calc(88px + env(safe-area-inset-bottom)); } + .live-use-toggle { justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; } + .live-use-toggle span { display: none; } .live-use-panel .icon-button { min-width: 44px; min-height: 44px; } .workspace-content { padding-bottom: 36px; } .phone-footer :is(.phone-footer-status, .legal-links) { font-size: .8125rem; line-height: 1.5; } - .phone-footer { margin-top: 0; border: 0; font-size: .8125rem; padding-top: 8px; } + .phone-footer { border: 0; font-size: .8125rem; padding-bottom: calc(76px + env(safe-area-inset-bottom)); } } From 86ea736979eb5013f316066ccc5b9484be2335db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Fri, 20 Nov 2026 08:42:54 +0100 Subject: [PATCH 153/415] Improvement: sessions take turns on the connected unit by themselves A machine-wide unit queue (npm run unit -- status, hold, release, run): the device commands wait in line for the one connected unit and start when it is free, instead of an agent asking whether it is free. Co-Authored-By: Claude Opus 5.5 --- .agents/skills/modwerk-test-on-unit/SKILL.md | 2 +- .claude/skills/modwerk-test-on-unit/SKILL.md | 2 +- changelog/2026-11-20-unit-queue.md | 1 + docs/FRONTEND_MCP.md | 10 + docs/OCTATRACK_DRIVING.md | 41 +- docs/OWNER_OPERATIONS.md | 2 +- package.json | 1 + scripts/device-send.py | 9 +- scripts/device.mjs | 16 +- scripts/frontend-mcp-device.test.mjs | 45 +++ scripts/frontend-mcp.mjs | 58 ++- scripts/octatrack-bootsoak.mjs | 3 + scripts/octatrack-price.mjs | 4 + scripts/octatrack-qualify.py | 4 + scripts/octatrack-test.py | 5 +- scripts/unit-queue.mjs | 378 +++++++++++++++++++ scripts/unit-queue.test.mjs | 238 ++++++++++++ scripts/unit_turn.py | 23 ++ 18 files changed, 814 insertions(+), 28 deletions(-) create mode 100644 changelog/2026-11-20-unit-queue.md create mode 100755 scripts/unit-queue.mjs create mode 100644 scripts/unit-queue.test.mjs create mode 100644 scripts/unit_turn.py diff --git a/.agents/skills/modwerk-test-on-unit/SKILL.md b/.agents/skills/modwerk-test-on-unit/SKILL.md index 199160a1bb..15a58f2f44 100644 --- a/.agents/skills/modwerk-test-on-unit/SKILL.md +++ b/.agents/skills/modwerk-test-on-unit/SKILL.md @@ -7,7 +7,7 @@ description: Test a Modwerk build on the developer's instrument over USB in two The order is fixed: your tests on the unit first, then the developer's. A build that fails your stage is fixed and run again; the developer never gets it to find out. -1. **One session at a time on the unit.** Every session on a computer shares its one connected unit. Ask before using it, and stop if another session holds it. Emulators need no turn: each session may run its own, with its own socket path, card copy and MCP (`--data-dir`, `--device-socket`); never attach to one another session started. On the owner's computer, sessions share one emulator (`docs/OWNER_OPERATIONS.md`). +1. **One session at a time on the unit.** Every session on a computer shares its one connected unit, and the device commands take turns on it by themselves: `device:test`, `device:qualify`, `device:price`, a RAM boot, the steps that drive it and the MCP's trial wait in line and go ahead when their turn comes, so run them in the background. `npm run unit -- status` shows who has it; `npm run unit -- hold --note "…"` keeps it across several commands until `release` (`docs/OCTATRACK_DRIVING.md#taking-turns-on-the-unit`). Emulators need no turn: each session may run its own, with its own socket path, card copy and MCP (`--data-dir`, `--device-socket`); never attach to one another session started. On the owner's computer, sessions share one emulator (`docs/OWNER_OPERATIONS.md`). 2. **Prepare.** - The software checks are green first (`npm run module:doctor -- `, `npm run modules:compat -- `). - Name the build: the source revision and each package's SHA-256. A draft's package comes from `npm run module:dev -- --build-only`. Both stages are about this build only; a rebuild starts again at stage 1. diff --git a/.claude/skills/modwerk-test-on-unit/SKILL.md b/.claude/skills/modwerk-test-on-unit/SKILL.md index 199160a1bb..15a58f2f44 100644 --- a/.claude/skills/modwerk-test-on-unit/SKILL.md +++ b/.claude/skills/modwerk-test-on-unit/SKILL.md @@ -7,7 +7,7 @@ description: Test a Modwerk build on the developer's instrument over USB in two The order is fixed: your tests on the unit first, then the developer's. A build that fails your stage is fixed and run again; the developer never gets it to find out. -1. **One session at a time on the unit.** Every session on a computer shares its one connected unit. Ask before using it, and stop if another session holds it. Emulators need no turn: each session may run its own, with its own socket path, card copy and MCP (`--data-dir`, `--device-socket`); never attach to one another session started. On the owner's computer, sessions share one emulator (`docs/OWNER_OPERATIONS.md`). +1. **One session at a time on the unit.** Every session on a computer shares its one connected unit, and the device commands take turns on it by themselves: `device:test`, `device:qualify`, `device:price`, a RAM boot, the steps that drive it and the MCP's trial wait in line and go ahead when their turn comes, so run them in the background. `npm run unit -- status` shows who has it; `npm run unit -- hold --note "…"` keeps it across several commands until `release` (`docs/OCTATRACK_DRIVING.md#taking-turns-on-the-unit`). Emulators need no turn: each session may run its own, with its own socket path, card copy and MCP (`--data-dir`, `--device-socket`); never attach to one another session started. On the owner's computer, sessions share one emulator (`docs/OWNER_OPERATIONS.md`). 2. **Prepare.** - The software checks are green first (`npm run module:doctor -- `, `npm run modules:compat -- `). - Name the build: the source revision and each package's SHA-256. A draft's package comes from `npm run module:dev -- --build-only`. Both stages are about this build only; a rebuild starts again at stage 1. diff --git a/changelog/2026-11-20-unit-queue.md b/changelog/2026-11-20-unit-queue.md new file mode 100644 index 0000000000..aa2419301c --- /dev/null +++ b/changelog/2026-11-20-unit-queue.md @@ -0,0 +1 @@ +Agent sessions on one computer now take turns on the connected unit by themselves: device:test, device:qualify, device:price, RAM boots, driving device steps and the developer MCP's trials wait in line for it and start when it is free, and `npm run unit -- status` shows who has it and who waits (`hold` and `release` keep it across several commands or for playing it by hand). diff --git a/docs/FRONTEND_MCP.md b/docs/FRONTEND_MCP.md index 19b43614d7..5ddc99d316 100644 --- a/docs/FRONTEND_MCP.md +++ b/docs/FRONTEND_MCP.md @@ -124,6 +124,16 @@ It claims no mass-storage or audio interface. `device_status` reads IDENTIFY, inventory, missing modules and bounded diagnostic status. Socket loss invalidates the connection; restart the server/bridge to establish a fresh session. +The unit is shared by every session on the computer, and the MCP takes its turn +([taking turns](OCTATRACK_DRIVING.md#taking-turns-on-the-unit)): `device_trial` +holds it until Keep, Undo or the MCP's exit, and opening the link takes it for a +moment, since an opening link rolls back a transaction left open. While another +session has the unit the call waits up to 50 s (`MODWERK_UNIT_MCP_WAIT`), then +sends nothing and names the holder. Run `npm run unit -- hold` from the same +checkout in a background shell to wait for the turn, call again once it returns, +and `npm run unit -- release` after Keep or Undo. `MODWERK_UNIT=emulator` in the +MCP's environment skips the queue for an emulator. + Before handing the instrument to the browser's WebUSB client, finish the authorized trial and verify its restored baseline, close the MCP, then stop only the bridge process you own. The bridge holds the vendor interface; a competing diff --git a/docs/OCTATRACK_DRIVING.md b/docs/OCTATRACK_DRIVING.md index acc51d60a2..0e511066fb 100644 --- a/docs/OCTATRACK_DRIVING.md +++ b/docs/OCTATRACK_DRIVING.md @@ -65,6 +65,41 @@ seconds before USB latency. An unconfirmed reply still stops the connection, and restoration is verified before reporting success. +## Taking turns on the unit + +Every agent session and terminal of one user on one computer shares the one unit on its USB. Since 20 November 2026 the +device commands take turns on it by themselves (`scripts/unit-queue.mjs`), so nobody asks whether it is free: + +- **These wait in line,** in the order they came, and go ahead by themselves when their turn comes: `npm run device:test`, + `device:qualify` and `device:price` (the whole run is one turn), `scripts/octatrack-bootsoak.mjs` (the whole batch), + the `npm run device` commands that drive (`try`, `set`, `remove`, `recover`, `lifecycle`, `boot`, `flash`, `status`, + `key`, `enc`, `fader`, `probe`, `meter`, and `do` with any step but the reads below), `scripts/device-send.py` lines + that drive, and the frontend MCP's `device_trial` until its Keep or Undo. A waiting command prints who has the unit and + its place in line; run it in the background. The commands a turn starts (the trial `device:test` runs) are inside it. +- **Reads go beside another session's turn:** `screen`, `ui`, `state`, `mem`, `stats`, `loader`, `report`, `missing`, and + `do` or `device-send.py` lines made only of `ui`, `screen`, `png:`, `mem:`, `state`, `stats`, `report`, `loader`, + `missing`, `inventory`, `crash`, `stall`, `diaglog`, `saved`, `memory`, `dspmap` and at most a second of `w`. `status` + is not a read: its HELLO moves on the upload session another process may be in (below, one uploader owner). Nor are + `guard`, `cpu` and `gap`, which restart another run's measurement window. The MCP takes the turn for the moment it + opens its link, since an opening link rolls back a transaction it finds left open; reads through an open link need none. +- **`serve` takes no turn:** it is the shared link. Its sender gates a line (`device-send.py`); a client that writes to + its socket by other means is not queued. +- **By hand:** `npm run unit -- status` shows who has the unit, doing what, since when and until when, and who waits. + `npm run unit -- hold --note "…" [--for 30m]` keeps it across several commands, or while the owner plays it: commands + from the same checkout go ahead inside the hold, everyone else's wait. `release` gives it back, `hold` again extends + it, and `npm run unit -- run --note "…" [--expect 15m] -- COMMAND` puts any other command in a turn. +- **A holder that is gone or late:** a turn whose processes are gone (a crash, a kill) ends, and the next in line is + told to check the unit first: a trial the dead holder started may still run (`do inventory`, then `recover`). A live + turn five minutes past its expected end is reported to `status` and to the waiters, never taken over, since that + would end its trial; `release --force` is the owner's call for one that is stuck. A hold ten minutes past its time, + with nothing of its own running, ends once someone waits. +- **Emulators need no turn:** `--emulator`, or `MODWERK_UNIT=emulator` for the scripts. The queue lives per user + (Linux `~/.local/state/modwerk/unit-queue`, macOS `~/Library/Application Support/modwerk/unit-queue`, Windows + `%LOCALAPPDATA%\modwerk\unit-queue`; `MODWERK_UNIT_DIR` moves it), shared by every clone and worktree. Sessions in WSL + and on its Windows host keep separate queues. +- The queue replaces only asking whether the unit is free. What runs on the developer's unit still needs their OK, and + power cycles, flashing and Keeps stay as the rules above say. + ## Start the link **One Elektron device on the Mac's USB.** The bridge opens the first device with Elektron's vendor id that offers the Modwerk interface; before 27 October 2026 it opened the first Elektron device of any kind, so an Analog Rytm on Overbridge plugged in beside the Octatrack made every request fail ("unit went away", "no unit running the test base"). Unplug other Elektron devices before a RAM boot or a flash all the same: on that day a RAM boot staged with a Rytm attached failed part-way and hung at the logo, and the retry with the Rytm unplugged came back. Other USB audio gear too: on 10 November 2026 a RAM boot with a Zoom pedal on another hub started but never came back on USB, and with the pedal unplugged every boot did (cause not separated). @@ -236,9 +271,9 @@ To compare a Part's working and saved copies: `mem:` both addresses with length ## Fast and safe habits -- One session; a handful of steps per command; `perl -e 'alarm N; exec @ARGV'` around anything that talks to - the unit. Right before a trial, check `~/.cache/modwerk-octatrack/last-boot` and running `device.mjs` - processes: another session's RAM boot mid-trial replaces your image and ends the trial. +- One session drives at a time; a handful of steps per command; `perl -e 'alarm N; exec @ARGV'` around anything that + talks to the unit (its time includes any wait in line). Another session's RAM boot mid-trial replaces your image and + ends the trial, which is why a boot waits for the turn like a trial does ([taking turns](#taking-turns-on-the-unit)). - Let steps wait for their result (`pick:`, `part`), not fixed `w` waits. - After a power cycle, the first `npm run device` command often fails while the bridge reopens the unit; run it again before treating it as a fault. `status` then shows generation 0 and the base's own digest as the active diff --git a/docs/OWNER_OPERATIONS.md b/docs/OWNER_OPERATIONS.md index c9eb4a622b..f8da659740 100644 --- a/docs/OWNER_OPERATIONS.md +++ b/docs/OWNER_OPERATIONS.md @@ -4,7 +4,7 @@ Running the live Modwerk site is the owner's work: the complete issue-fix and re ## On the owner's computer -- Other agents often work on this computer at the same time, and checks or native builds running in parallel fill the disk and slow each other down. Queue them behind one machine-wide lock, for example `lockf -k /tmp/modwerk-check.lock npm run check -- --base origin/main`, which waits for any running check to finish first. There is also one connected Octatrack and one emulator for all of them: one session uses either at a time, and the unit only once the owner says it is free ([driving the unit](OCTATRACK_DRIVING.md)). +- Other agents often work on this computer at the same time, and checks or native builds running in parallel fill the disk and slow each other down. Queue them behind one machine-wide lock, for example `lockf -k /tmp/modwerk-check.lock npm run check -- --base origin/main`, which waits for any running check to finish first. There is also one connected Octatrack and one emulator for all of them: one session uses either at a time. The device commands queue for the unit by themselves, so nobody waits for the owner to say it is free: `npm run unit -- status` shows who has it, and `npm run unit -- hold` keeps it while the owner plays it by hand ([taking turns on the unit](OCTATRACK_DRIVING.md#taking-turns-on-the-unit)). - Disk space on the owner's computer runs out. Once a pull request you opened is merged or closed, remove its worktree with `git worktree remove` and delete the temporary folders you created for it, such as builds, renders and logs under `/private/tmp`. Keep anything with uncommitted or unpushed work, and leave folders another session created. ## Email sendouts diff --git a/package.json b/package.json index 335ae6fb88..41bd8fcf6e 100644 --- a/package.json +++ b/package.json @@ -65,6 +65,7 @@ "coldfire:isa": "node scripts/mirror-octatrack-modules.mjs && python3 -B sdk/runtime/coldfire_isa.py", "sdk:check": "node scripts/sdk-check.mjs", "slots": "node scripts/machine-slots.mjs status", + "unit": "node scripts/unit-queue.mjs", "lane": "node scripts/lane.mjs", "sdk:imports:check": "node scripts/sdk-imports.mjs", "modules:build": "node scripts/mirror-octatrack-modules.mjs && python3 -B scripts/build-module-packages.py", diff --git a/scripts/device-send.py b/scripts/device-send.py index 984052001e..fe04491117 100755 --- a/scripts/device-send.py +++ b/scripts/device-send.py @@ -1,9 +1,14 @@ #!/usr/bin/env python3 # SPDX-License-Identifier: Elastic-2.0 # Copyright (c) 2026 Jannik Aßfalg (repeat98) -"""device-send.py 'SEQUENCE' - one line to `npm run device -- serve`, its reply printed (macOS nc hangs up before it).""" +"""device-send.py 'SEQUENCE' - one line to `npm run device -- serve`, its reply printed (macOS nc hangs up before it). +A line that drives the unit waits for this computer's turn on it first (scripts/unit-queue.mjs); a line that only reads does not.""" import os, socket, sys +sys.dont_write_bytecode = True # no __pycache__ beside the scripts +from unit_turn import take_turn +line = ' '.join(sys.argv[1:]) +take_turn('device-send ' + line, expect='2m', steps=line) s = socket.socket(socket.AF_UNIX) s.connect(os.environ.get('MODWERK_DEV_SOCKET', '/tmp/modwerk-dev.sock')) -s.sendall((' '.join(sys.argv[1:]) + '\n').encode()) +s.sendall((line + '\n').encode()) sys.stdout.write(s.makefile().read()) diff --git a/scripts/device.mjs b/scripts/device.mjs index 044aa1e141..c42bbe34ed 100644 --- a/scripts/device.mjs +++ b/scripts/device.mjs @@ -38,7 +38,7 @@ // the base rolls back any module that was not accepted. import { mkdirSync, readFileSync, writeFileSync } from 'node:fs' import { deflateSync, crc32 } from 'node:zlib' -import { join, resolve } from 'node:path' +import { basename, join, resolve } from 'node:path' import { createConnection, createServer } from 'node:net' import { spawn, spawnSync } from 'node:child_process' import { homedir, tmpdir } from 'node:os' @@ -57,6 +57,7 @@ import { describeRefusal } from './loader-refusals.mjs' import { crashNames, keepSymbols, namesFor } from '../src/dev/address-names.ts' import { trialVerdict } from '../src/dev/trial-verdict.ts' import { Bench, benchEndpoint, device, enumerate, shareBench } from './usb-bench.mjs' +import { sequenceDrives, takeUnitTurn } from './unit-queue.mjs' const { values, positionals: [command, file] } = parseArgs({ allowPositionals: true, options: { socket: { type: 'string', default: '/tmp/modwerk-ot.sock' }, @@ -76,6 +77,16 @@ if (!['serve', 'status', 'stats', 'try', 'set', 'recover', 'remove', 'lifecycle' process.exit(2) } +// The unit's turn (scripts/unit-queue.mjs): a command that drives the unit waits in line for it and gives it back when it +// exits. `serve` is the shared link and takes none. Reads (IDENTIFY, RAM, the report, the screen, a read-only `do`) go +// beside another session's turn; `status` does not, since its HELLO moves on the upload session another process may be +// in the middle of (docs/OCTATRACK_DRIVING.md). An emulator needs no turn. +const DRIVES = ['status', 'try', 'set', 'recover', 'remove', 'lifecycle', 'boot', 'flash', 'key', 'enc', 'fader', 'probe', 'meter'] +if (command !== 'serve' && !values.emulator && (DRIVES.includes(command) || command === 'do' && sequenceDrives(file))) + await takeUnitTurn({ note: `device ${command}${command === 'do' ? ` '${file.slice(0, 80)}'` : file ? ' ' + basename(file) : ''}`, + command: 'npm run device -- ' + process.argv.slice(2).join(' ').slice(0, 300), + expectMs: ['try', 'set', 'remove'].includes(command) ? (seconds + 120) * 1000 : command === 'flash' ? 600000 : command === 'boot' ? 300000 : 120000 }) + const wait = ms => new Promise(resolve => setTimeout(resolve, ms)) if (command === 'serve' && !await new Promise(resolve => { const c = createConnection(benchEndpoint(values.socket), () => { c.end(); resolve(true) }); c.on('error', () => resolve(false)) })) { const bridge = spawn(process.env.MODWERK_PYTHON ?? join(homedir(), '.cache/modwerk-upstream/venv/bin/python'), @@ -569,7 +580,8 @@ if (command === 'serve') { const [verb, arg, chunk] = line.trim().split(/\s+/) if (verb === 'boot' || verb === 'flash') { // the unit reboots and this link goes with it: hand the bridge to a one-shot boot or flash, then exit (run serve in a loop) bench.socket.end(); await wait(300) - const r = spawnSync(process.execPath, [process.argv[1], verb, arg, '--socket', values.socket, ...(chunk ? ['--chunk', chunk] : [])], { encoding: 'utf8', timeout: 400000 }) + // MODWERK_UNIT=served: whoever sent this line took the unit's turn for it (device-send.py), so the boot waits for none + const r = spawnSync(process.execPath, [process.argv[1], verb, arg, '--socket', values.socket, ...(chunk ? ['--chunk', chunk] : [])], { encoding: 'utf8', timeout: 400000, env: { ...process.env, MODWERK_UNIT: 'served' } }) out.push(r.stdout, r.stderr, 'serve exits; the loop restarts it'); setTimeout(() => process.exit(0), 200) } else if (verb === 'recover') { // a transaction left behind (an install whose reply went missing): undo it, as the site does const session = await UploadSession.connect(transport, identity.base, { timeoutMs: 10000 }) diff --git a/scripts/frontend-mcp-device.test.mjs b/scripts/frontend-mcp-device.test.mjs index 0fae4b92f9..b1bb3974e9 100644 --- a/scripts/frontend-mcp-device.test.mjs +++ b/scripts/frontend-mcp-device.test.mjs @@ -6,6 +6,7 @@ import { join } from 'node:path' import { fileURLToPath } from 'node:url' import { build } from 'vite' import { createFrontendTools } from './frontend-mcp.mjs' +import { acquire, readTurn } from './unit-queue.mjs' const root = fileURLToPath(new URL('../', import.meta.url)) const base = 'a'.repeat(64), active = 'b'.repeat(64), candidate = 'c'.repeat(64) @@ -424,3 +425,47 @@ describe('frontend MCP remote sessions', () => { expect(calls).toEqual([]) }) }) + +describe('frontend MCP and the unit queue', () => { + let folder, queue, service, link + const requested = ['everb', 'tapehead'] + // The real queue in a folder of its own; the link is the fake above. + const open = async () => createFrontendTools({ dataDir: folder, deviceSocket: 'test-only', allowDeviceWrites: true }, frontend, { + openLink: async () => link, unit: { acquire: options => acquire({ ...options, directory: queue, poll: 20, log: () => {} }) } }) + beforeEach(async () => { + folder = await mkdtemp(join(tmpdir(), 'modwerk-mcp-turn-')); queue = await mkdtemp(join(tmpdir(), 'modwerk-unit-queue-')) + link = new FakeLink(); process.env.MODWERK_UNIT_MCP_WAIT = '0.3' + }) + afterEach(async () => { + await service?.close(); delete process.env.MODWERK_UNIT_MCP_WAIT + await rm(folder, { recursive: true, force: true }); await rm(queue, { recursive: true, force: true }) + }) + + it('holds the turn from the trial to its Undo, and takes it only for the moment of connecting', async () => { + service = await open() + await service.call('device_status') + expect(readTurn(queue)).toBe(null) // connecting took the turn and gave it back + const { review } = await service.call('device_review', { moduleIds: requested }) + const { trial } = await service.call('device_trial', { review }) + expect(readTurn(queue).holder).toMatchObject({ note: 'frontend MCP device_trial', pid: process.pid, kind: 'run' }) + await service.call('device_undo', { trial }) + expect(readTurn(queue)).toBe(null) + }) + + it('sends nothing while another session has the unit, and says how to wait for the turn', async () => { + const other = await mkdtemp(join(tmpdir(), 'modwerk-other-session-')) + try { + const hold = await acquire({ directory: queue, cwd: other, kind: 'hold', note: 'device:test tapehead', env: {}, log: () => {} }) + // Connecting would roll back a trial the other session left open (OctatrackLink cleanUp): it waits for the turn too. + service = await open() + await expect(service.call('device_status')).rejects.toThrow(/Nothing was sent: the unit is in another session.s turn[\s\S]*device:test tapehead[\s\S]*npm run unit -- hold/) + hold.release() + const { review } = await service.call('device_review', { moduleIds: requested }) + const again = await acquire({ directory: queue, cwd: other, kind: 'hold', note: 'by hand', env: {}, log: () => {} }) + await expect(service.call('device_trial', { review })).rejects.toThrow(/another session.s turn/) + expect(link.updates).toHaveLength(0) + expect(readTurn(queue).holder.note).toBe('by hand') + again.release() + } finally { await rm(other, { recursive: true, force: true }) } + }) +}) diff --git a/scripts/frontend-mcp.mjs b/scripts/frontend-mcp.mjs index 3b2d72bf49..e5e84e8421 100644 --- a/scripts/frontend-mcp.mjs +++ b/scripts/frontend-mcp.mjs @@ -14,6 +14,7 @@ import { saveSavedBackup } from './frontend-mcp-saved-backup.mjs' import { openRemoteUnit } from './frontend-mcp-remote.mjs' import * as board from './agent-board.mjs' import { nodeMidiAccess, zoomCommand } from './zoom-device.ts' +import { acquire, UnitBusyError } from './unit-queue.mjs' const ROOT = fileURLToPath(new URL('../', import.meta.url)) let activeWorkspace = false @@ -182,16 +183,34 @@ export async function createFrontendTools(options, injected, dependencies = {}) } const sessionId = value => { if (typeof value !== 'string' || !/^[0-9a-f-]{36}$/.test(value)) throw new Error('Give the remote session id.'); return value } const readOnlyRemote = () => { if (remote) throw new Error('Remote sessions are read-only: no trial, Keep, Undo or saved-file backup.') } - const dropLink = () => { release?.(); bench?.socket.destroy(); link = undefined; release = undefined; bench = undefined; trial = undefined; reviews.clear() } + // The unit's turn on this computer (scripts/unit-queue.mjs): a trial holds it from device_trial to its Keep or Undo, and + // opening the link takes it for the moment it takes, since a link that opens on a transaction left open rolls it back + // (OctatrackLink's cleanUp), which would end another session's trial. Reads through an open link need no turn. An + // injected link (the tests) or a member's unit in a remote session is not this computer's unit. + const unitQueue = dependencies.unit ?? (dependencies.openLink ? null : { acquire }) + const unitWaitMs = (Number(process.env.MODWERK_UNIT_MCP_WAIT) || 50) * 1000 // under a client's usual minute per tool call + let trialTurn + const endTrialTurn = () => { const turn = trialTurn; trialTurn = undefined; turn?.release() } + async function unitTurn(what, expectMs) { + if (!unitQueue || remote || process.env.MODWERK_UNIT === 'emulator') return null + try { return await unitQueue.acquire({ note: 'frontend MCP ' + what, command: 'frontend-mcp ' + what, expectMs, waitMs: unitWaitMs }) } + catch (error) { + if (!(error instanceof UnitBusyError)) throw error + throw new Error('Nothing was sent: the unit is in another session\'s turn.\n' + error.message + '\nTo wait for your turn, run `npm run unit -- hold --note "why"` ' + + 'from this checkout in a background shell; once it returns, call this tool again, and run `npm run unit -- release` after Keep or Undo.', { cause: error }) + } + } + const dropLink = () => { release?.(); bench?.socket.destroy(); link = undefined; release = undefined; bench = undefined; trial = undefined; endTrialTurn(); reviews.clear() } const clock = dependencies.now ?? Date.now const reviews = new Map() async function connected() { if (!options.deviceSocket && !remote) throw new Error('Device tools require an explicitly selected --device-socket or a connected remote session (remote_session_connect).') if (remote?.relay.state().ended) { remote = undefined; dropLink(); throw new Error('The remote session has ended.') } if (link && ['idle', 'disconnected', 'unavailable', 'error'].includes(link.getState().status)) { - release?.(); bench?.socket.destroy(); link = undefined; release = undefined; bench = undefined; trial = undefined; reviews.clear() + release?.(); bench?.socket.destroy(); link = undefined; release = undefined; bench = undefined; trial = undefined; endTrialTurn(); reviews.clear() } if (!link) { + const opening = trialTurn ? null : await unitTurn('connect', 60000) try { if (dependencies.openLink) link = await dependencies.openLink() else if (remote) { link = new frontend.OctatrackLink(remote.relay.usb, undefined, 3000, frontend.tabLocks()); release = link.start(); await link.connect() } @@ -209,6 +228,7 @@ export async function createFrontendTools(options, injected, dependencies = {}) link = new frontend.OctatrackLink(usb, undefined, 3000, frontend.tabLocks()); release = link.start(); await link.connect() } } catch (error) { release?.(); bench?.socket.destroy(); link = undefined; release = undefined; bench = undefined; throw error } + finally { opening?.release() } } if (link.getState().status !== 'ready' && !(trial && link.getState().status === 'trial')) throw new Error('Octatrack is not ready: ' + link.getState().status) return link @@ -354,20 +374,23 @@ export async function createFrontendTools(options, injected, dependencies = {}) if (trial) throw new Error('Finish the current trial first.') const plan = reviews.get(args.review); reviews.delete(args.review) if (!plan || plan.expires < clock()) throw new Error('Review expired; review the connected device again.') - const now = await snapshot() - if (now.state.identity.base !== plan.before.state.identity.base || now.state.active !== plan.before.state.active || JSON.stringify(now.inventory) !== JSON.stringify(plan.before.inventory)) throw new Error('The device changed after review; nothing was sent.') - if (!plan.prepared.changes.length) return { unchanged: true, state: now.state } - // Capability 512 retains the complete baseline on the device. Older - // bases can trial one change, and cannot receive a hidden intermediate Keep. - const wholeSet = !!(now.capabilities?.features & 512) - if (!wholeSet && plan.prepared.changes.length > 1) throw new Error('Multiple changes require a base with module-set transactions; nothing was sent.') - if (!wholeSet && plan.prepared.changes.some(change => !change.undo)) throw new Error('Exact Undo is unavailable; nothing was sent.') - // No self-test at install (owner, 30 October 2026): a module is compatible or it isn't published. The menu's - // SELF TEST (link.test()) still checks the running set. - await link.update(plan.prepared.name, plan.prepared.changes) - if (link.getState().status !== 'trial') throw new Error('Device trial did not start: ' + (link.getState().notice?.text ?? link.getState().status)) - trial = { id: randomUUID(), before: plan.before, base: now.state.identity.base, active: link.getState().active } - return { trial: trial.id, state: link.getState() } + trialTurn = await unitTurn('device_trial', 10 * 60000) // held until Keep, Undo or close; given back if no trial starts + try { + const now = await snapshot() + if (now.state.identity.base !== plan.before.state.identity.base || now.state.active !== plan.before.state.active || JSON.stringify(now.inventory) !== JSON.stringify(plan.before.inventory)) throw new Error('The device changed after review; nothing was sent.') + if (!plan.prepared.changes.length) return { unchanged: true, state: now.state } + // Capability 512 retains the complete baseline on the device. Older + // bases can trial one change, and cannot receive a hidden intermediate Keep. + const wholeSet = !!(now.capabilities?.features & 512) + if (!wholeSet && plan.prepared.changes.length > 1) throw new Error('Multiple changes require a base with module-set transactions; nothing was sent.') + if (!wholeSet && plan.prepared.changes.some(change => !change.undo)) throw new Error('Exact Undo is unavailable; nothing was sent.') + // No self-test at install (owner, 30 October 2026): a module is compatible or it isn't published. The menu's + // SELF TEST (link.test()) still checks the running set. + await link.update(plan.prepared.name, plan.prepared.changes) + if (link.getState().status !== 'trial') throw new Error('Device trial did not start: ' + (link.getState().notice?.text ?? link.getState().status)) + trial = { id: randomUUID(), before: plan.before, base: now.state.identity.base, active: link.getState().active } + return { trial: trial.id, state: link.getState() } + } finally { if (!trial) endTrialTurn() } }, device_keep: async args => finish(args, true), device_undo: async args => finish(args, false), @@ -454,6 +477,7 @@ export async function createFrontendTools(options, injected, dependencies = {}) // Mutation completion and a later status receipt are distinct. Never let a // failed receipt leave a reusable token for an already completed mutation. trial = undefined + endTrialTurn() // the trial is over, so is the unit's turn: the next session in line goes ahead if (link.getState().notice?.tone === 'error') return { kept: keep, completed: true, warning: link.getState().notice.text } const result = await snapshot() if (!keep && !frontend.sameModules(result.inventory.moduleIds, completed.before.inventory.moduleIds)) throw new Error('Undo did not restore the reviewed inventory.') @@ -478,7 +502,7 @@ export async function createFrontendTools(options, injected, dependencies = {}) }, // Every caller gets the same promise: on SIGTERM both the closed input and the signal handler close, and the handler // exits only after the lock is removed (an early return here once let the process exit with the lock still there). - close() { return closing ??= (async () => { closed = true; try { if (trial) { try { await link.undo() } catch { /* Unaccepted trials also recover through device timeout. */ } } remote?.relay.end(); release?.(); bench?.socket.destroy(); zoom?.access.close?.() } finally { activeWorkspace = false; await rm(lease, { recursive: true, force: true }) } })() }, + close() { return closing ??= (async () => { closed = true; try { if (trial) { try { await link.undo() } catch { /* Unaccepted trials also recover through device timeout. */ } } remote?.relay.end(); release?.(); bench?.socket.destroy(); zoom?.access.close?.() } finally { endTrialTurn(); activeWorkspace = false; await rm(lease, { recursive: true, force: true }) } })() }, } } catch (error) { activeWorkspace = false; await rm(lease, { recursive: true, force: true }); throw error } } diff --git a/scripts/octatrack-bootsoak.mjs b/scripts/octatrack-bootsoak.mjs index 29c1cde642..b7227d3b3e 100755 --- a/scripts/octatrack-bootsoak.mjs +++ b/scripts/octatrack-bootsoak.mjs @@ -18,6 +18,7 @@ import { appendFileSync, existsSync, readFileSync } from 'node:fs' import { dirname, join, resolve } from 'node:path' import { fileURLToPath } from 'node:url' import { parseArgs } from 'node:util' +import { takeUnitTurn } from './unit-queue.mjs' const TIMEOUT_MS = 200000 // device.mjs gives each of up to two restarts 60 s, and the upload its own time @@ -62,6 +63,8 @@ if (process.argv[1] && resolve(process.argv[1]) === fileURLToPath(import.meta.ur process.exit(1) } const base = JSON.parse(readFileSync(join(dir, 'proofs.json'), 'utf8')).configurationHash.slice(0, 16) + // Every boot of the batch is one turn on the unit (scripts/unit-queue.mjs): nobody else's trial starts between two boots. + await takeUnitTurn({ note: `bootsoak ${cycles} RAM boots of ${base}…`, command: 'node scripts/octatrack-bootsoak.mjs ' + process.argv.slice(2).join(' ').slice(0, 300), expectMs: (5 + cycles * 0.5) * 60000 }) let cycle = last?.cycle ?? 0 const written = [...earlier] for (let n = 0; n < cycles; n++) { diff --git a/scripts/octatrack-price.mjs b/scripts/octatrack-price.mjs index 46951a575f..553a829cb4 100644 --- a/scripts/octatrack-price.mjs +++ b/scripts/octatrack-price.mjs @@ -16,6 +16,7 @@ import { connect } from 'node:net' import { existsSync, readFileSync, writeFileSync } from 'node:fs' import { basename, resolve } from 'node:path' import { parseArgs } from 'node:util' +import { takeUnitTurn } from './unit-queue.mjs' const mean = values => values.reduce((sum, value) => sum + value, 0) / values.length, tenth = value => Math.round(value * 10) / 10 /** One reading from the session's `guard` line and `stats` lines: percent of a frame, percent of the meter, per mille of a DSP. */ @@ -40,6 +41,9 @@ if (import.meta.filename === process.argv[1]) { : catalogue.filter(row => !row.requiredBase) const unknown = ids.filter(id => !catalogue.some(row => row.id === id)).concat(files.filter(file => !existsSync(file))) if (unknown.length) throw new Error('No USB package for ' + unknown.join(', ')) + // All the readings are one turn on the unit (scripts/unit-queue.mjs); the trials below run inside it. + await takeUnitTurn({ note: 'device:price ' + chosen.map(row => row.id).join(' ').slice(0, 100), command: 'npm run device:price -- ' + process.argv.slice(2).join(' ').slice(0, 300), + expectMs: Math.max(10, 3 * chosen.length) * 60000 }) const wait = ms => new Promise(done => setTimeout(done, ms)) const send = line => new Promise((done, fail) => { // one line to the session, its whole reply let reply = ''; const socket = connect(args.socket, () => socket.write(line + '\n')) diff --git a/scripts/octatrack-qualify.py b/scripts/octatrack-qualify.py index f93879bcdc..e881584d3b 100755 --- a/scripts/octatrack-qualify.py +++ b/scripts/octatrack-qualify.py @@ -286,6 +286,10 @@ def main(): raise SystemExit('Each install and removal in this run is a Keep, which rewrites the card\'s kept set; on a RAM-booted base the flashed base ' 'then starts with no modules after a power cycle. Note the flashed set first (the session\'s inventory step, ' 'docs/OCTATRACK_DRIVING.md), then run again with --keeps-ok. For a run that keeps nothing: npm run device:test.') + # The whole run is one turn on the unit: it waits here while another session has it (scripts/unit-queue.mjs). + from unit_turn import take_turn + take_turn('device:qualify ' + ' '.join(os.path.basename(p) for p in args.packages), + expect='%ds' % (600 + 120 * len(args.packages) + 2 * args.soak + 4 * args.seconds)) pkgs = [package(p) for p in args.packages] def install(pkgs): diff --git a/scripts/octatrack-test.py b/scripts/octatrack-test.py index 4229001ba1..83edd176d5 100755 --- a/scripts/octatrack-test.py +++ b/scripts/octatrack-test.py @@ -24,6 +24,7 @@ _spec = importlib.util.spec_from_file_location('octatrack_qualify', ROOT / 'scripts/octatrack-qualify.py') qualify = importlib.util.module_from_spec(_spec) _spec.loader.exec_module(qualify) +from unit_turn import take_turn # scripts/ is this script's folder, so it is on the path SHARE = os.environ.get('MODWERK_SHARE_SOCKET', '/tmp/modwerk-share.sock') LEFT_FOR_THE_DEVELOPER = ('listening (how it sounds and plays, timing by ear)', 'MIDI, scenes and recording', @@ -90,8 +91,10 @@ def main(): if not args.share.isdigit() and not os.path.exists(args.share): raise SystemExit('Nothing shares the unit on %s: start the session with `npm run device -- serve --share %s`.' % (args.share, args.share)) args.crash = False - pkgs = [qualify.package(p) for p in args.packages] hold = args.hold or min(3600, 300 + 2 * args.seconds + 2 * args.soak) + # The whole run is one turn on the unit: it waits here while another session has it (scripts/unit-queue.mjs). + take_turn('device:test ' + os.path.basename(args.packages[0]), expect='%ds' % (hold + 120)) + pkgs = [qualify.package(p) for p in args.packages] trials = [] def install(pkgs): diff --git a/scripts/unit-queue.mjs b/scripts/unit-queue.mjs new file mode 100755 index 0000000000..2ce73e53b6 --- /dev/null +++ b/scripts/unit-queue.mjs @@ -0,0 +1,378 @@ +#!/usr/bin/env node +// SPDX-License-Identifier: GPL-3.0-or-later +// Taking turns on the connected unit. Every agent session and terminal of one user on one computer shares the one +// instrument on its USB, so whatever drives it (a trial, a RAM boot, a scripted pass, the owner playing it by hand) takes +// the turn here first. Everyone else waits in line in the order they came and starts by themselves when their turn comes +// (docs/OCTATRACK_DRIVING.md#taking-turns-on-the-unit). +// +// npm run unit -- status [--json] # who has the unit, since when, for how long, and who waits +// npm run unit -- hold [--for 30m] [--note "why"] # keep it across several commands, or to play it by hand +// npm run unit -- release [--force] # give this checkout's hold back (--force: end anyone's turn) +// npm run unit -- run [--note "why"] [--expect 15m] -- COMMAND… # wait, run COMMAND, give the turn back however it ends +// +// The device commands take their turn by themselves (device.mjs, device-send.py, octatrack-test.py, octatrack-qualify.py, +// octatrack-price.mjs, octatrack-bootsoak.mjs and the frontend MCP's trial). A turn belongs to its process and to the +// processes it starts (MODWERK_UNIT_TURN); a hold belongs to its checkout, so the holder's later commands from the same +// worktree go ahead while everyone else's wait. A turn whose processes are gone ends at once. A live one past its expected +// end is reported, never taken over: that would end the trial it may be in the middle of. A hold past its time plus ten +// minutes, with nothing of its own running, ends once someone waits. MODWERK_UNIT_DIR moves the state (default: a +// per-user state folder, shared by every clone and worktree); MODWERK_UNIT=emulator skips the queue, since an emulator +// needs no turn. +import { execFileSync, spawn } from 'node:child_process' +import { randomUUID } from 'node:crypto' +import { mkdirSync, readFileSync, readdirSync, renameSync, rmSync, statSync, watch, writeFileSync } from 'node:fs' +import { homedir } from 'node:os' +import { basename, join, resolve } from 'node:path' +import { fileURLToPath } from 'node:url' + +const SECOND = 1000, MINUTE = 60 * SECOND +export const RUN_EXPECT = 15 * MINUTE, RUN_GRACE = 5 * MINUTE +export const HOLD_FOR = 30 * MINUTE, HOLD_GRACE = 10 * MINUTE, HOLD_MOST = 12 * 60 * MINUTE +const TURN = 'turn', HOLDER = 'holder.json', TICKET = /^wait-(\d{13})-(\d+)-([\da-f-]+)\.json$/ + +/** Where the queue lives: MODWERK_UNIT_DIR, else a per-user state folder outside every checkout. */ +export function unitDirectory(env = process.env, platform = process.platform, home = homedir()) { + if (env.MODWERK_UNIT_DIR) return resolve(env.MODWERK_UNIT_DIR) + if (platform === 'win32') return join(env.LOCALAPPDATA || join(home, 'AppData', 'Local'), 'modwerk', 'unit-queue') + if (platform === 'darwin') return join(home, 'Library', 'Application Support', 'modwerk', 'unit-queue') + return join(env.XDG_STATE_HOME || join(home, '.local', 'state'), 'modwerk', 'unit-queue') +} + +/** 90s, 20m, 1h30m; a bare number is minutes. */ +export function parseDuration(text) { + const value = String(text ?? '').trim().toLowerCase().replace(/\s+/g, '') + if (/^\d+(\.\d+)?$/.test(value)) return Math.round(Number(value) * MINUTE) + const parts = [...value.matchAll(/(\d+(?:\.\d+)?)(h|m|min|s)/g)] + if (!value || parts.map(part => part[0]).join('') !== value) throw new Error(`Not a duration: ${text} (use 90s, 20m or 1h30m).`) + return Math.round(parts.reduce((sum, [, n, unit]) => sum + Number(n) * { h: 60 * MINUTE, m: MINUTE, min: MINUTE, s: SECOND }[unit], 0)) +} +export function formatDuration(ms) { + const minutes = Math.round(ms / MINUTE) + if (minutes < 1) return `${Math.max(1, Math.round(ms / SECOND))} s` + return minutes < 60 ? `${minutes} min` : `${Math.floor(minutes / 60)} h${minutes % 60 ? ` ${minutes % 60} min` : ''}` +} +const clock = ms => new Date(ms).toTimeString().slice(0, 5) + +/** Linux: when the process started, in clock ticks since boot, so a PID the system gave to a new process is not taken + * for the old one. Elsewhere undefined, and the PID alone decides. */ +function startTime(pid) { + try { const stat = readFileSync(`/proc/${pid}/stat`, 'utf8'); return stat.slice(stat.lastIndexOf(')') + 2).split(' ')[19] } catch { return undefined } +} +export const processEntry = pid => ({ pid, start: startTime(pid) }) +/** Whether the process an entry names still runs (EPERM: it runs, under another user). */ +export function alive(entry) { + const pid = entry?.pid + if (!Number.isInteger(pid) || pid <= 0) return false // kill(0) would signal our own process group + try { process.kill(pid, 0) } catch (error) { if (error.code !== 'EPERM') return false } + if (!entry.start) return true + const now = startTime(pid) + return now === undefined || now === entry.start +} + +/** The checkout a command runs in (its Git top level, else the folder) and its branch: a hold belongs to a checkout. */ +export function checkoutOf(cwd = process.cwd()) { + try { + const [top, branch] = execFileSync('git', ['rev-parse', '--show-toplevel', '--abbrev-ref', 'HEAD'], { cwd, encoding: 'utf8', stdio: ['ignore', 'pipe', 'ignore'], timeout: 5000 }).trim().split('\n') + return { checkout: resolve(top), branch: branch === 'HEAD' ? '' : branch } + } catch { return { checkout: resolve(cwd), branch: '' } } +} +const whoIs = ({ checkout, branch }, env) => env.MODWERK_UNIT_WHO || basename(checkout) + (branch ? ` (${branch})` : '') + +function readJson(path) { try { return JSON.parse(readFileSync(path, 'utf8')) } catch { return null } } +/** Write by rename, so a reader never sees half a file (Windows refuses a rename onto a file being read: try again). */ +function writeJson(path, value) { + const temporary = `${path}.${randomUUID()}` + writeFileSync(temporary, JSON.stringify(value) + '\n') + for (let attempt = 0; ; attempt++) { + try { renameSync(temporary, path); return } catch (error) { + if (attempt >= 20 || !['EPERM', 'EBUSY', 'EACCES'].includes(error.code)) { rmSync(temporary, { force: true }); throw error } + Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, 10) + } + } +} + +/** The turn as it stands: its folder's age, its holder (null while it is being written) and the runs nested in it. */ +export function readTurn(directory) { + const folder = join(directory, TURN) + let made + try { made = statSync(folder).mtimeMs } catch { return null } + const nested = [] + try { + for (const name of readdirSync(folder)) if (/^nested-.+\.json$/.test(name)) { const entry = readJson(join(folder, name)); if (entry) nested.push(entry) } + } catch { /* ended meanwhile */ } + return { made, holder: readJson(join(folder, HOLDER)), nested } +} + +/** What a turn means for everyone else: free, starting, dead (its processes are gone), or held, and if held, whether it is + * past its end (late) and whether a waiter may end it (expired: a hold past its time and grace with nothing running). */ +export function judge(turn, now = Date.now()) { + if (!turn) return { state: 'free' } + const { holder, nested } = turn + if (!holder) return now - turn.made > 30 * SECOND ? { state: 'dead', why: 'its holder never wrote itself down' } : { state: 'starting' } + const running = nested.filter(entry => alive(entry) || alive(entry.child)) + if (holder.kind === 'hold') { + const over = now - holder.until + return { state: 'held', running: running.length, over, late: over > 0, expired: over > HOLD_GRACE && !running.length } + } + if (!alive(holder) && !alive(holder.child)) return { state: 'dead', why: 'its process ended without giving the turn back' } + const over = now - holder.since - holder.expectMs + return { state: 'held', running: running.length, over, late: over > RUN_GRACE, expired: false } +} + +/** End the turn whose holder has this id (null: one whose holder was never written). Moved aside first, so of two + * processes ending it at once only one does, and a turn that changed hands meanwhile is put back. */ +export function endTurn(directory, id) { + const aside = join(directory, `ended-${randomUUID()}`) + try { renameSync(join(directory, TURN), aside) } catch { return false } + const moved = readJson(join(aside, HOLDER))?.id ?? null + if (moved !== id) { try { renameSync(aside, join(directory, TURN)); return false } catch { /* a new turn exists: this one ended anyway */ } } + rmSync(aside, { recursive: true, force: true }) + return true +} + +/** The waiting line, oldest first; tickets of processes that are gone are dropped on the way. */ +export function waiting(directory) { + let names + try { names = readdirSync(directory) } catch { return [] } + const line = [] + for (const name of names.filter(name => TICKET.test(name)).sort()) { + const [, since, pid] = TICKET.exec(name), entry = readJson(join(directory, name)) ?? { pid: Number(pid), since: Number(since) } + if (!alive(entry)) { rmSync(join(directory, name), { force: true }); continue } + line.push({ ticket: name, ...entry }) + } + return line +} + +const doing = entry => entry.note || entry.command || 'no note' +function holderLines(turn, verdict, now) { + const h = turn.holder, lines = [] + lines.push(`The unit is in use: ${h.who} has it since ${clock(h.since)} (${formatDuration(now - h.since)}).`) + lines.push(` doing: ${doing(h)}${h.command && h.note ? ` [${h.command}]` : ''}`) + lines.push(` in ${h.checkout}`) + if (h.kind === 'hold') { + lines.push(` a hold until ${clock(h.until)}${verdict.running ? `, with ${verdict.running} command(s) of its own running` : ''}`) + if (verdict.late) lines.push(` OVER ITS TIME by ${formatDuration(verdict.over)}. ${verdict.expired ? 'The next one in line takes over.' : verdict.running ? 'Something of its own still runs, so it keeps the unit.' : `Once ${formatDuration(HOLD_GRACE - verdict.over)} more pass, the next one in line takes over.`}`) + } else { + lines.push(` run by PID ${h.pid}${h.child ? ` (command PID ${h.child.pid})` : ''}, expected ${formatDuration(h.expectMs)}, until about ${clock(h.since + h.expectMs)}`) + if (verdict.late) lines.push(` LATE: ${formatDuration(verdict.over)} past its expected end. Its process still runs, so it keeps the unit: a live turn is never taken over, since that would end the trial it may be in. Ask the owner if it looks stuck.`) + } + for (const entry of turn.nested) lines.push(` also running under it: ${doing(entry)} (PID ${entry.child?.pid ?? entry.pid})`) + return lines +} + +/** The queue as text (status) and as data (--json). */ +export function describe(directory = unitDirectory(), now = Date.now()) { + const turn = readTurn(directory), verdict = judge(turn, now), line = waiting(directory), lines = [] + if (verdict.state === 'held') lines.push(...holderLines(turn, verdict, now)) + else if (verdict.state === 'starting') lines.push('The unit is being taken right now.') + else if (verdict.state === 'dead') lines.push(`The unit is free: the last turn (${turn.holder?.who ?? 'unknown'}) ended because ${verdict.why}. The next command that needs the unit takes it.`) + else lines.push('The unit is free.') + if (line.length) { + lines.push('Waiting, in order:') + line.forEach((entry, i) => lines.push(` ${i + 1}. ${entry.who}: ${doing(entry)}, waiting ${formatDuration(now - entry.since)}`)) + } else lines.push('Nobody is waiting.') + return { text: lines.join('\n'), state: verdict.state === 'held' || verdict.state === 'starting' ? 'held' : 'free', verdict, holder: turn?.holder ?? null, + nested: turn?.nested ?? [], waiting: line, directory } +} + +export class UnitBusyError extends Error {} + +/** + * Take the turn on the unit, waiting in line for it. Resolves to { id, nested, release(), setChild(pid) }. + * - Inside a turn already (MODWERK_UNIT_TURN names it, or it is a hold of this checkout): nested, nothing waits, and + * release() only says this run ended. A hold asked for inside a hold of the same checkout extends it. + * - kind 'run' belongs to this process (and the child set with setChild); kind 'hold' to the checkout, for `forMs`. + * - waitMs: give up after that long in line with UnitBusyError, whose message is the queue's status. + */ +export async function acquire({ directory = unitDirectory(), env = process.env, cwd = process.cwd(), kind = 'run', note = '', command = '', + expectMs = RUN_EXPECT, forMs = HOLD_FOR, waitMs = Infinity, poll = 500, log = line => console.error(line), now = Date.now } = {}) { + mkdirSync(directory, { recursive: true }) + const place = checkoutOf(cwd), me = { ...place, who: whoIs(place, env), note, command } + const turnFolder = join(directory, TURN) + const current = readTurn(directory), verdict = judge(current, now()) + if (verdict.state === 'held' && (env.MODWERK_UNIT_TURN === current.holder.id || current.holder.kind === 'hold' && current.holder.checkout === me.checkout)) { + if (kind === 'hold' && current.holder.kind === 'hold') { // the same checkout asks again: a longer hold, the newest note + writeJson(join(turnFolder, HOLDER), { ...current.holder, until: now() + forMs, note: note || current.holder.note }) + return { id: current.holder.id, nested: false, extended: true, release: () => endTurn(directory, current.holder.id), setChild() {} } + } + const file = join(turnFolder, `nested-${process.pid}-${randomUUID()}.json`), entry = { ...processEntry(process.pid), who: me.who, note, command, since: now() } + try { writeJson(file, entry) } catch { /* the turn ended meanwhile: run anyway, as its own process would have */ } + return { id: current.holder.id, nested: true, release: () => rmSync(file, { force: true }), + setChild(pid) { try { writeJson(file, { ...entry, child: processEntry(pid) }) } catch { /* ended */ } } } + } + + const since = now(), ticket = `wait-${since}-${process.pid}-${randomUUID()}.json`, mine = { ...processEntry(process.pid), ...me, kind, since } + writeFileSync(join(directory, ticket), JSON.stringify(mine) + '\n', { flag: 'wx' }) + const leave = () => rmSync(join(directory, ticket), { force: true }) + process.once('exit', leave) + let watcher, wake, said = '', lastLoop = Date.now() + try { + try { + watcher = watch(directory, { persistent: false }, () => wake?.()) + watcher.on('error', () => watcher.close()) + } catch { /* the timer still wakes the loop */ } + for (;;) { + const loopGap = Date.now() - lastLoop > 5 * SECOND // this process slept (a suspended computer): judge others next round + lastLoop = Date.now() + const line = waiting(directory) + if (!line.some(entry => entry.ticket === ticket)) writeFileSync(join(directory, ticket), JSON.stringify(mine) + '\n') // dropped by mistake: back in place + const position = Math.max(1, line.findIndex(entry => entry.ticket === ticket) + 1), first = position === 1 && line[0]?.ticket === ticket + const turn = readTurn(directory), state = judge(turn, now()) + if (first && state.state === 'free') { + let made = false + try { mkdirSync(turnFolder); made = true } catch (error) { if (error.code !== 'EEXIST') throw error } + if (made) { + const id = randomUUID(), taken = now() + const holder = { id, ...mine, since: taken, ...(kind === 'hold' ? { until: taken + forMs } : { expectMs }) } + writeJson(join(turnFolder, HOLDER), holder) + if (Date.now() - since > 2 * SECOND) log(`Your turn on the unit, after ${formatDuration(Date.now() - since)} in line.`) + return { + id, nested: false, holder, + release: () => endTurn(directory, id), + setChild(pid) { holder.child = processEntry(pid); try { writeJson(join(turnFolder, HOLDER), holder) } catch { /* ended */ } }, + } + } + continue + } + if (first && !loopGap && (state.state === 'dead' || state.expired)) { + const who = turn.holder?.who ?? 'a session' + log(state.state === 'dead' + ? `${who}'s turn on the unit ended: ${state.why}. Taking over. Check the unit before you change it: a trial it started may still be running (npm run device -- do inventory; npm run device -- recover rolls a trial back).` + : `${who}'s hold on the unit ran out ${formatDuration(state.over)} ago with nothing of its own running. Taking over.`) + endTurn(directory, turn.holder?.id ?? null) + continue + } + if (state.state === 'held') { + const h = turn.holder, key = `${h.id} ${position} ${state.late}` + if (key !== said) { + said = key + log(`Waiting for the unit: ${h.who} has it (${doing(h)}) since ${clock(h.since)}, ${h.kind === 'hold' ? `held until ${clock(h.until)}` : `expected until about ${clock(h.since + h.expectMs)}`}. ` + + `You are number ${position} in line; this goes ahead by itself when the turn comes (npm run unit -- status shows the queue).`) + if (state.late) log(h.kind === 'hold' + ? ` That hold is ${formatDuration(state.over)} over its time; ${state.running ? 'something of its own still runs, so it keeps the unit.' : `it ends ${formatDuration(Math.max(0, HOLD_GRACE - state.over))} from now unless it is renewed.`}` + : ` It is ${formatDuration(state.over)} past its expected end and its process still runs, so it keeps the unit: a live turn is never taken over. Ask the owner if it looks stuck.`) + } + } + if (Date.now() - since >= waitMs) throw new UnitBusyError(describe(directory, now()).text) + await new Promise(done => { + const timer = setTimeout(done, Math.max(1, Math.min(poll, waitMs - (Date.now() - since)))) + wake = () => { clearTimeout(timer); done() } + }) + } + } finally { + wake = undefined + watcher?.close() + process.off('exit', leave) + leave() + } +} + +/** For a device command: take the turn (unless MODWERK_UNIT says this is an emulator, or a session that already took it + * runs this), pass it to the processes this one starts, and give it back when this process exits. */ +export async function takeUnitTurn(options = {}) { + const env = options.env ?? process.env + if (['emulator', 'served'].includes(env.MODWERK_UNIT)) return null + const turn = await acquire({ ...options, env }) + env.MODWERK_UNIT_TURN = turn.id + process.once('exit', () => turn.release()) + return turn +} + +// Device steps (device.mjs do, a line to `serve`) that only read: beside someone else's turn they change nothing it relies +// on. Everything else drives the unit: keys, encoders and the fader, a pick, a Part, a trial, a boot, the self-test, and +// the readings that restart a measurement window (guard, cpu, gap) or occupy the session for seconds (profile, a watch). +const READ_STEPS = [/^(ui|screen|state|stats|report|loader|missing|inventory|crash|stall|diaglog|saved|memory|dspmap)$/, /^png:\S+$/, /^mem:0x[0-9a-f]+:\d+$/i, /^w\d+$/] +/** Whether a device step sequence drives the unit (needs the turn) or only reads it. */ +export function sequenceDrives(line) { + const steps = String(line ?? '').trim().split(/\s+/).filter(Boolean) + if (!steps.length) return false + if (/^(try|remove|recover|boot|flash)$/.test(steps[0])) return true // serve's own verbs + const waits = steps.reduce((sum, step) => sum + (Number(/^w(\d+)$/.exec(step)?.[1]) || 0), 0) + return waits > 1000 || !steps.every(step => READ_STEPS.some(pattern => pattern.test(step))) // a long wait holds serve's queue +} + +const USAGE = 'Usage: npm run unit -- status [--json] | hold [--for 30m] [--note TEXT] [--wait D] | release [--force] | run [--note TEXT] [--expect 15m] [--wait D] [--steps LINE] -- COMMAND…' + +/** The command line; returns the exit status. */ +export async function main(argv, { env = process.env, out = line => console.log(line), err = line => console.error(line), cwd = process.cwd() } = {}) { + const split = argv.indexOf('--'), words = split < 0 ? argv : argv.slice(0, split), commandLine = split < 0 ? [] : argv.slice(split + 1) + const [verb, ...rest] = words, options = {} + for (let i = 0; i < rest.length; i++) { + const m = /^--(json|force|for|note|expect|wait|steps)$/.exec(rest[i]) + if (!m) { err(USAGE); return 2 } + if (['json', 'force'].includes(m[1])) options[m[1]] = true + else if (i + 1 < rest.length) options[m[1]] = rest[++i] + else { err(USAGE); return 2 } + } + const directory = unitDirectory(env) + let waitMs = Infinity, expectMs = RUN_EXPECT, forMs = HOLD_FOR + try { + if (options.wait) waitMs = parseDuration(options.wait) + if (options.expect) expectMs = parseDuration(options.expect) + if (options.for) forMs = parseDuration(options.for) + } catch (error) { err(error.message); return 2 } + if (forMs > HOLD_MOST) { err(`A hold lasts at most ${formatDuration(HOLD_MOST)}; hold again to extend it.`); return 2 } + + if (verb === 'status' && !commandLine.length) { + const queue = describe(directory) + out(options.json ? JSON.stringify({ state: queue.state, holder: queue.holder, late: queue.verdict.late ?? false, nested: queue.nested, waiting: queue.waiting, directory }, null, 1) : queue.text) + return 0 + } + + if (verb === 'hold' && !commandLine.length) { + let turn + try { turn = await acquire({ directory, env, cwd, kind: 'hold', note: options.note ?? 'held', command: 'npm run unit -- hold', forMs, waitMs, log: err }) } + catch (error) { if (error instanceof UnitBusyError) { err('Gave up waiting.\n' + error.message); return 3 } throw error } + if (turn.nested) { turn.release(); err(`This runs inside a turn already (${turn.id.slice(0, 8)}); a hold would wait for itself. Nothing changed.`); return 1 } + const until = Date.now() + forMs + out(`${turn.extended ? 'Hold extended' : 'You hold the unit'} until ${clock(until)} (${formatDuration(forMs)}). Commands from this checkout use it without waiting; everyone else waits in line. ` + + `Give it back with npm run unit -- release; hold again to extend it. Past its time, and ${formatDuration(HOLD_GRACE)} more, the next one in line takes over.`) + return 0 + } + + if (verb === 'release' && !commandLine.length) { + const turn = readTurn(directory), verdict = judge(turn), { checkout } = checkoutOf(cwd) + if (!turn || verdict.state === 'free') { out('Nothing to release: the unit is free.'); return 0 } + const h = turn.holder + if (options.force) { + if (!endTurn(directory, h?.id ?? null)) { err('The turn changed hands while ending it; nothing was ended. Look again: npm run unit -- status'); return 1 } + out(`Ended ${h?.who ?? 'an unwritten'} turn (${h ? doing(h) : 'never written'}). A command of theirs that still runs goes on, but no longer holds the unit.`) + return 0 + } + if (h?.kind === 'hold' && h.checkout === checkout) { endTurn(directory, h.id); out(`Released. ${describe(directory).text}`); return 0 } + if (h && h.checkout === checkout) { err(`This checkout's turn is a running command (${doing(h)}, PID ${h.pid}); it gives the turn back when it ends.`); return 1 } + err(`This checkout holds no turn. ${describe(directory).text}\nnpm run unit -- release --force ends anyone's turn: the owner's call, and only for a turn that is stuck.`) + return 1 + } + + if (verb === 'run' && commandLine.length) { + // --steps LINE (device-send.py): take the turn only when those device steps drive the unit. + const reads = options.steps !== undefined && !sequenceDrives(options.steps) + let turn = null + if (!reads && !['emulator', 'served'].includes(env.MODWERK_UNIT)) { + try { turn = await acquire({ directory, env, cwd, kind: 'run', note: options.note ?? basename(commandLine[0]), command: commandLine.join(' ').slice(0, 300), expectMs, waitMs, log: err }) } + catch (error) { if (error instanceof UnitBusyError) { err('Gave up waiting.\n' + error.message); return 3 } throw error } + } + // Ctrl-C reaches the command from the terminal by itself, and a second SIGINT would cut its rollback short, so this + // process keeps waiting for it. SIGTERM or SIGHUP (a closed terminal, a stopped task) ask the command to stop the way + // Ctrl-C does, so a trial rolls back, and stop it outright 90 s on. + const child = spawn(commandLine[0], commandLine.slice(1), { stdio: 'inherit', cwd, shell: process.platform === 'win32', + env: { ...env, MODWERK_UNIT_TURN: turn?.id ?? env.MODWERK_UNIT_TURN ?? 'none' } }) + if (child.pid) turn?.setChild(child.pid) + const onInt = () => {}, onTerm = () => { child.kill('SIGINT'); setTimeout(() => child.kill('SIGTERM'), 90 * SECOND).unref() } + process.on('SIGINT', onInt) + for (const signal of ['SIGTERM', 'SIGHUP']) process.on(signal, onTerm) + const status = await new Promise(done => { + child.once('error', error => { err(`Could not start ${commandLine[0]}: ${error.message}`); done(127) }) + child.once('exit', (code, signal) => done(code ?? 128 + ({ SIGINT: 2, SIGKILL: 9, SIGTERM: 15 }[signal] ?? 1))) + }) + process.off('SIGINT', onInt) + for (const signal of ['SIGTERM', 'SIGHUP']) process.off(signal, onTerm) + turn?.release() + return status + } + err(USAGE) + return 2 +} + +if (process.argv[1] && resolve(process.argv[1]) === fileURLToPath(import.meta.url)) process.exitCode = await main(process.argv.slice(2)) diff --git a/scripts/unit-queue.test.mjs b/scripts/unit-queue.test.mjs new file mode 100644 index 0000000000..e8f988e508 --- /dev/null +++ b/scripts/unit-queue.test.mjs @@ -0,0 +1,238 @@ +import { execFileSync, spawn, spawnSync } from 'node:child_process' +import { mkdirSync, mkdtempSync, readFileSync, rmSync, utimesSync, writeFileSync } from 'node:fs' +import { tmpdir } from 'node:os' +import { join } from 'node:path' +import { fileURLToPath } from 'node:url' +import { afterEach, beforeEach, describe, expect, it } from 'vitest' +import { acquire, describe as describeQueue, HOLD_GRACE, judge, parseDuration, processEntry, readTurn, sequenceDrives, UnitBusyError, unitDirectory, waiting } from './unit-queue.mjs' + +const script = fileURLToPath(new URL('./unit-queue.mjs', import.meta.url)) +const goneProcess = () => Number(spawnSync(process.execPath, ['-e', 'process.stdout.write(String(process.pid))'], { encoding: 'utf8' }).stdout) +const until = async (test, ms = 15000) => { + for (const start = Date.now(); Date.now() - start < ms; await new Promise(done => setTimeout(done, 20))) if (await test()) return true + throw new Error('timed out waiting') +} +const MINUTE = 60000 + +let directory, places, env +const place = name => { const folder = join(places, name); mkdirSync(folder, { recursive: true }); return folder } +/** The CLI as a separate process, the way two sessions meet: its output collected, its exit awaited. */ +function cli(args, { cwd = place('a'), extra = {} } = {}) { + const child = spawn(process.execPath, [script, ...args], { cwd, env: { ...env, ...extra } }) + const run = { child, out: '', err: '' } + child.stdout.on('data', chunk => { run.out += chunk }); child.stderr.on('data', chunk => { run.err += chunk }) + run.done = new Promise(done => child.on('exit', code => done(code))) + return run +} +const quiet = { log: () => {}, poll: 20 } + +beforeEach(() => { + directory = mkdtempSync(join(tmpdir(), 'unit-queue-')) + places = mkdtempSync(join(tmpdir(), 'unit-places-')) + env = { ...process.env, MODWERK_UNIT_DIR: directory } + for (const name of ['MODWERK_UNIT_TURN', 'MODWERK_UNIT', 'MODWERK_UNIT_WHO']) delete env[name] +}) +afterEach(() => { rmSync(directory, { recursive: true, force: true }); rmSync(places, { recursive: true, force: true }) }) + +describe('the unit queue', () => { + it('keeps its state per user outside every checkout, or where MODWERK_UNIT_DIR says', () => { + expect(unitDirectory({ MODWERK_UNIT_DIR: '/x/q' }, 'linux', '/home/u')).toBe('/x/q') + expect(unitDirectory({}, 'linux', '/home/u')).toBe('/home/u/.local/state/modwerk/unit-queue') + expect(unitDirectory({ XDG_STATE_HOME: '/s' }, 'linux', '/home/u')).toBe('/s/modwerk/unit-queue') + expect(unitDirectory({}, 'darwin', '/Users/u')).toBe('/Users/u/Library/Application Support/modwerk/unit-queue') + expect(unitDirectory({ LOCALAPPDATA: 'C:\\Users\\u\\AppData\\Local' }, 'win32', 'C:\\Users\\u')).toMatch(/modwerk.unit-queue$/) + expect(parseDuration('90s')).toBe(90000); expect(parseDuration('1h30m')).toBe(90 * MINUTE); expect(parseDuration('20')).toBe(20 * MINUTE) + expect(() => parseDuration('soon')).toThrow(/Not a duration/) + }) + + it('says plainly when the unit is free, then who holds it and who waits, in order', async () => { + const free = cli(['status']) + expect(await free.done).toBe(0) + expect(free.out).toMatch(/^The unit is free\.\nNobody is waiting\./) + const hold = await acquire({ directory, cwd: place('owner'), kind: 'hold', note: 'playing by hand', forMs: 20 * MINUTE, env: {}, ...quiet }) + const first = acquire({ directory, cwd: place('one'), note: 'device:test tapehead', env: {}, ...quiet }) + await until(() => waiting(directory).length === 1) + const second = acquire({ directory, cwd: place('two'), note: 'device:price everb', env: {}, ...quiet }) + await until(() => waiting(directory).length === 2) + const status = cli(['status']) + await status.done + expect(status.out).toMatch(/The unit is in use: owner has it since \d\d:\d\d/) + expect(status.out).toContain('doing: playing by hand') + expect(status.out).toMatch(/a hold until \d\d:\d\d/) + expect(status.out).toMatch(/Waiting, in order:\n {2}1\. one: device:test tapehead, waiting .*\n {2}2\. two: device:price everb/) + const json = cli(['status', '--json']) + await json.done + expect(JSON.parse(json.out)).toMatchObject({ state: 'held', holder: { kind: 'hold', note: 'playing by hand' }, waiting: [{ note: 'device:test tapehead' }, { note: 'device:price everb' }] }) + hold.release() + ;(await first).release() + ;(await second).release() + expect(describeQueue(directory).text).toBe('The unit is free.\nNobody is waiting.') + }) + + it('lets three contenders in, one at a time, in the order they came', async () => { + const holder = await acquire({ directory, note: 'first', env: {}, ...quiet }) + const log = join(places, 'order.log'), runs = [] + for (const name of ['B', 'C', 'D']) { + // Each one runs a command that notes its name, stays a moment, and notes it again: overlapping turns would interleave. + runs.push(cli(['run', '--note', name, '--', process.execPath, '-e', + `const fs = require('fs'); fs.appendFileSync(${JSON.stringify(log)}, '${name}<'); setTimeout(() => fs.appendFileSync(${JSON.stringify(log)}, '>${name} '), 150)`])) + await until(() => waiting(directory).length === runs.length) + } + await until(() => runs[2].err.includes('number 3 in line')) + expect(runs[0].err).toMatch(/Waiting for the unit: .* has it \(first\) .*You are number 1 in line/) + holder.release() + expect(await Promise.all(runs.map(run => run.done))).toEqual([0, 0, 0]) + expect(readFileSync(log, 'utf8')).toBe('B<>B C<>C D<>D ') + expect(readTurn(directory)).toBe(null) + }) + + it('gives the turn back however the command ends: an error, SIGTERM (the command stops as on Ctrl-C) or a kill', async () => { + const failed = cli(['run', '--', process.execPath, '-e', 'process.exit(3)']) + expect(await failed.done).toBe(3) + expect(readTurn(directory)).toBe(null) + + // SIGTERM to the queue's process: the command gets SIGINT, so a trial rolls back, and the turn is given back after it. + const marker = join(places, 'rolled-back') + const stopped = cli(['run', '--note', 'trial', '--', process.execPath, '-e', + `process.on('SIGINT', () => { require('fs').writeFileSync(${JSON.stringify(marker)}, 'rolled back'); process.exit(130) }); console.log('ready'); setInterval(() => {}, 1000)`]) + await until(() => readTurn(directory)?.holder?.child && stopped.out.includes('ready')) + stopped.child.kill('SIGTERM') + expect(await stopped.done).toBe(130) + expect(readFileSync(marker, 'utf8')).toBe('rolled back') + expect(readTurn(directory)).toBe(null) + + // Killed outright, holder and command: the next in line finds the processes gone and takes over by itself. + const killed = cli(['run', '--note', 'about to crash', '--', process.execPath, '-e', 'setInterval(() => {}, 1000)']) + await until(() => readTurn(directory)?.holder?.child) + const { holder } = readTurn(directory) + const next = cli(['run', '--note', 'next', '--', process.execPath, '-e', 'console.log("ran")'], { cwd: place('b') }) + await until(() => next.err.includes('number 1 in line')) + killed.child.kill('SIGKILL') // the queue's process first: alone, the command it started still holds the turn + await killed.done + await new Promise(done => setTimeout(done, 100)) + expect(next.err).not.toMatch(/Taking over/) + process.kill(holder.child.pid, 'SIGKILL') + expect(await next.done).toBe(0) + expect(next.out).toContain('ran') + expect(next.err).toMatch(/turn on the unit ended: its process ended without giving the turn back\. Taking over\. Check the unit before you change it/) + expect(readTurn(directory)).toBe(null) + }) + + it('takes over from a holder whose process is gone, or that never wrote itself down', async () => { + mkdirSync(join(directory, 'turn')) + writeFileSync(join(directory, 'turn', 'holder.json'), JSON.stringify({ id: 'old', kind: 'run', pid: goneProcess(), who: 'crashed session', since: Date.now() - MINUTE, expectMs: MINUTE })) + expect(judge(readTurn(directory))).toMatchObject({ state: 'dead' }) + expect(describeQueue(directory).text).toMatch(/^The unit is free: the last turn \(crashed session\) ended because its process ended/) + const said = [] + const turn = await acquire({ directory, note: 'after a crash', env: {}, poll: 20, log: line => said.push(line) }) + expect(said.join('\n')).toMatch(/crashed session's turn on the unit ended/) + expect(readTurn(directory).holder.note).toBe('after a crash') + turn.release() + + mkdirSync(join(directory, 'turn')) + const old = (Date.now() - MINUTE) / 1000 + utimesSync(join(directory, 'turn'), old, old) + ;(await acquire({ directory, note: 'after a half-made turn', env: {}, ...quiet })).release() + expect(readTurn(directory)).toBe(null) + }) + + it('reports a live holder past its expected end and never takes over from it', async () => { + mkdirSync(join(directory, 'turn')) + const holder = { id: 'live', kind: 'run', ...processEntry(process.pid), who: 'long session', note: 'device:qualify', checkout: '/elsewhere', since: Date.now() - 40 * MINUTE, expectMs: 15 * MINUTE } + writeFileSync(join(directory, 'turn', 'holder.json'), JSON.stringify(holder)) + expect(describeQueue(directory).text).toMatch(/LATE: 2\d min past its expected end\. Its process still runs, so it keeps the unit/) + const said = [] + await expect(acquire({ directory, note: 'impatient', env: {}, poll: 20, waitMs: 300, log: line => said.push(line) })).rejects.toThrow(UnitBusyError) + expect(said.join('\n')).toMatch(/past its expected end and its process still runs, so it keeps the unit: a live turn is never taken over/) + expect(readTurn(directory).holder.id).toBe('live') + expect(waiting(directory)).toEqual([]) // giving up leaves the line + }) + + it('ends a hold past its time and grace only when someone waits and nothing of its own runs', async () => { + mkdirSync(join(directory, 'turn')) + const hold = { id: 'h', kind: 'hold', ...processEntry(goneProcess()), who: 'forgetful', note: 'by hand', checkout: '/elsewhere', since: Date.now() - 60 * MINUTE } + writeFileSync(join(directory, 'turn', 'holder.json'), JSON.stringify({ ...hold, until: Date.now() - HOLD_GRACE / 2 })) + expect(describeQueue(directory).text).toMatch(/OVER ITS TIME by 5 min\. Once 5 min more pass, the next one in line takes over\./) + await expect(acquire({ directory, env: {}, ...quiet, waitMs: 200 })).rejects.toThrow(UnitBusyError) // within the grace: kept + // A command of the holder's own still runs under the hold: kept, however late. + writeFileSync(join(directory, 'turn', 'holder.json'), JSON.stringify({ ...hold, until: Date.now() - 2 * HOLD_GRACE })) + writeFileSync(join(directory, 'turn', 'nested-1.json'), JSON.stringify({ ...processEntry(process.pid), note: 'device:test' })) + await expect(acquire({ directory, env: {}, ...quiet, waitMs: 200 })).rejects.toThrow(UnitBusyError) + rmSync(join(directory, 'turn', 'nested-1.json')) + const said = [] + ;(await acquire({ directory, note: 'next', env: {}, poll: 20, log: line => said.push(line) })).release() + expect(said.join('\n')).toMatch(/forgetful's hold on the unit ran out 2\d min ago with nothing of its own running\. Taking over\./) + }) + + it('holds for the owner or an agent across commands, released by its checkout only, shared by two worktrees', async () => { + const top = mkdtempSync(join(tmpdir(), 'unit-worktrees-')), first = join(top, 'first'), second = join(top, 'second') + const git = (...args) => execFileSync('git', ['-c', 'user.name=Test', '-c', 'user.email=test@example.invalid', '-c', 'commit.gpgsign=false', ...args], { cwd: top, stdio: 'pipe' }) + try { + git('init', '-q', '-b', 'main', first); git('-C', first, 'commit', '-q', '--allow-empty', '-m', 'base') + git('-C', first, 'worktree', 'add', '-q', '-b', 'other', second, 'HEAD') + const hold = cli(['hold', '--for', '20m', '--note', 'scripted pass by hand'], { cwd: first }) + expect(await hold.done).toBe(0) + expect(hold.out).toMatch(/You hold the unit until \d\d:\d\d \(20 min\)/) + + // The other worktree sees the same queue, cannot release the hold, and waits for it. + const seen = cli(['status'], { cwd: second }) + await seen.done + expect(seen.out).toMatch(/The unit is in use: first \(main\) has it .*\n {2}doing: scripted pass by hand/) + const refused = cli(['release'], { cwd: second }) + expect(await refused.done).toBe(1) + expect(refused.err).toMatch(/This checkout holds no turn/) + const impatient = cli(['run', '--wait', '1s', '--', process.execPath, '-e', ''], { cwd: second }) + expect(await impatient.done).toBe(3) + expect(impatient.err).toMatch(/Waiting for the unit: first \(main\) has it \(scripted pass by hand\).*number 1 in line[\s\S]*Gave up waiting/) + + // The holder's own commands go ahead inside its hold, and see it as their turn. + const id = readTurn(directory).holder.id + const inside = cli(['run', '--note', 'device:test', '--', process.execPath, '-e', 'console.log(process.env.MODWERK_UNIT_TURN)'], { cwd: first }) + expect(await inside.done).toBe(0) + expect(inside.out.trim()).toBe(id) + const again = cli(['hold', '--for', '1h'], { cwd: first }) + expect(await again.done).toBe(0) + expect(again.out).toMatch(/Hold extended until/) + expect(readTurn(directory).holder.until).toBeGreaterThan(Date.now() + 50 * MINUTE) + + // A command from the other worktree waits in line and goes ahead by itself once the hold is released. + const waiter = cli(['run', '--', process.execPath, '-e', 'console.log("second ran")'], { cwd: second }) + await until(() => waiting(directory).length === 1) + const released = cli(['release'], { cwd: first }) + expect(await released.done).toBe(0) + expect(await waiter.done).toBe(0) + expect(waiter.out).toContain('second ran') + + // --force ends anyone's turn (the owner's call for a stuck one). + expect(await cli(['hold'], { cwd: first }).done).toBe(0) + const forced = cli(['release', '--force'], { cwd: second }) + expect(await forced.done).toBe(0) + expect(forced.out).toMatch(/^Ended first \(main\) turn/) + expect(readTurn(directory)).toBe(null) + } finally { rmSync(top, { recursive: true, force: true }) } + }) + + it('lets reads and emulators go beside a turn, and passes the turn to the commands a holder starts', async () => { + const holder = await acquire({ directory, cwd: place('holder'), note: 'trial', env: {}, ...quiet }) + const read = cli(['run', '--steps', 'ui png:/tmp/screen.png stats', '--wait', '1s', '--', process.execPath, '-e', 'console.log("read")']) + expect(await read.done).toBe(0) + expect(read.out).toContain('read') + const drive = cli(['run', '--steps', 'T5 FX2 FUNC+FX2', '--wait', '1s', '--', process.execPath, '-e', '']) + expect(await drive.done).toBe(3) + const emulator = cli(['run', '--wait', '1s', '--', process.execPath, '-e', 'console.log("emulated")'], { extra: { MODWERK_UNIT: 'emulator' } }) + expect(await emulator.done).toBe(0) + // A child of the holder (MODWERK_UNIT_TURN, as device:test's trial is) runs inside the turn without waiting. + const child = cli(['run', '--wait', '1s', '--', process.execPath, '-e', 'console.log("child")'], { extra: { MODWERK_UNIT_TURN: holder.id } }) + expect(await child.done).toBe(0) + expect(readTurn(directory).holder.id).toBe(holder.id) + holder.release() + }) + + it('tells reads from steps that drive the unit', () => { + for (const line of ['ui', 'png:/tmp/a.png stats', 'mem:0x80000ec4:16 inventory missing', 'report loader crash stall diaglog', 'ui w300 screen', 'dspmap']) + expect(sequenceDrives(line), line).toBe(false) + for (const line of ['T5 FX2', 'pick:T1:FX2:E-Verb', 'part2', 'try /tmp/x.mwrm', 'remove /tmp/x.mwrm', 'boot /tmp/build', 'recover', 'guard', 'cpu', + 'gap', 'selftest', 'reload', 'ui w5000', 'PLAY w2000 guard', 'encA+3', 'dspmap:watch:5', 'profile', 'crashtest']) + expect(sequenceDrives(line), line).toBe(true) + }) +}) diff --git a/scripts/unit_turn.py b/scripts/unit_turn.py new file mode 100644 index 0000000000..715fb4c199 --- /dev/null +++ b/scripts/unit_turn.py @@ -0,0 +1,23 @@ +# SPDX-License-Identifier: GPL-3.0-or-later +"""The unit's turn for a Python device script (scripts/unit-queue.mjs, docs/OCTATRACK_DRIVING.md#taking-turns-on-the-unit). + +take_turn() runs the calling script again under `node scripts/unit-queue.mjs run`, which waits in line for the unit, runs +it with MODWERK_UNIT_TURN set and gives the turn back however it ends. Inside a turn already (MODWERK_UNIT_TURN set), or +with MODWERK_UNIT=emulator, it returns at once. steps: a device step line, for which the turn is taken only when it drives +the unit (device-send.py).""" +import os, pathlib, shutil, subprocess, sys + + +def take_turn(note, expect='15m', steps=None): + if os.environ.get('MODWERK_UNIT_TURN') or os.environ.get('MODWERK_UNIT') in ('emulator', 'served'): + return + node = shutil.which('node') + if not node: + raise SystemExit('The unit queue needs Node on PATH (scripts/unit-queue.mjs): use Node 24 (.nvmrc), or set MODWERK_UNIT=emulator for an emulator.') + queue = str(pathlib.Path(__file__).resolve().parent / 'unit-queue.mjs') + command = [node, queue, 'run', '--note', note[:120], '--expect', expect] + (['--steps', steps] if steps is not None else []) + \ + ['--', sys.executable, '-B', os.path.abspath(sys.argv[0])] + sys.argv[1:] + sys.stdout.flush() + if os.name == 'posix': + os.execv(node, command) # the same process: signals and the exit status stay this script's + sys.exit(subprocess.call(command)) From 37a56209bd218cfdfa6727519543d1e31143fca7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Fri, 20 Nov 2026 08:45:00 +0100 Subject: [PATCH 154/415] Keep device-send.py free of local imports (ELv2 pipeline boundary) Co-Authored-By: Claude Opus 5.5 --- scripts/device-send.py | 13 +++++++++---- scripts/unit_turn.py | 2 +- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/scripts/device-send.py b/scripts/device-send.py index fe04491117..980844afbf 100755 --- a/scripts/device-send.py +++ b/scripts/device-send.py @@ -3,11 +3,16 @@ # Copyright (c) 2026 Jannik Aßfalg (repeat98) """device-send.py 'SEQUENCE' - one line to `npm run device -- serve`, its reply printed (macOS nc hangs up before it). A line that drives the unit waits for this computer's turn on it first (scripts/unit-queue.mjs); a line that only reads does not.""" -import os, socket, sys -sys.dont_write_bytecode = True # no __pycache__ beside the scripts -from unit_turn import take_turn +import os, shutil, socket, sys line = ' '.join(sys.argv[1:]) -take_turn('device-send ' + line, expect='2m', steps=line) +# The queue runs this script again inside the turn (MODWERK_UNIT_TURN), or at once when the line only reads (--steps). +if not os.environ.get('MODWERK_UNIT_TURN') and os.environ.get('MODWERK_UNIT') not in ('emulator', 'served'): + node = shutil.which('node') + if not node: + raise SystemExit('The unit queue needs Node on PATH (scripts/unit-queue.mjs); for an emulator, set MODWERK_UNIT=emulator.') + here = os.path.abspath(__file__) + os.execv(node, [node, os.path.join(os.path.dirname(here), 'unit-queue.mjs'), 'run', '--note', ('device-send ' + line)[:120], + '--expect', '2m', '--steps', line, '--', sys.executable, '-B', here] + sys.argv[1:]) s = socket.socket(socket.AF_UNIX) s.connect(os.environ.get('MODWERK_DEV_SOCKET', '/tmp/modwerk-dev.sock')) s.sendall((line + '\n').encode()) diff --git a/scripts/unit_turn.py b/scripts/unit_turn.py index 715fb4c199..874f614956 100644 --- a/scripts/unit_turn.py +++ b/scripts/unit_turn.py @@ -4,7 +4,7 @@ take_turn() runs the calling script again under `node scripts/unit-queue.mjs run`, which waits in line for the unit, runs it with MODWERK_UNIT_TURN set and gives the turn back however it ends. Inside a turn already (MODWERK_UNIT_TURN set), or with MODWERK_UNIT=emulator, it returns at once. steps: a device step line, for which the turn is taken only when it drives -the unit (device-send.py).""" +the unit (device-send.py does the same in its own lines).""" import os, pathlib, shutil, subprocess, sys From a79161fffe7fc9c530792537ebceb898fa0f5952 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Fri, 20 Nov 2026 08:48:53 +0100 Subject: [PATCH 155/415] Improvement: one test procedure for every module and base change npm run test:procedure runs the fixed steps in order with the existing tools (module:doctor, modules:compat, module:dev, device:test, device:price), stops at the first failure, records unit steps as not run without a unit session, and writes a record for the named build with an empty edge-case table. docs/TEST_PROCEDURE.md holds the order and how to derive a change own edge cases; the PR description check asks a ready instrument change for them; the skills point at it. Co-Authored-By: Claude Opus 5.5 --- .agents/skills/modwerk-fix-issue/SKILL.md | 2 +- .agents/skills/modwerk-new-module/SKILL.md | 2 +- .agents/skills/modwerk-pr-ready/SKILL.md | 2 +- .agents/skills/modwerk-test-on-unit/SKILL.md | 28 +- .agents/skills/modwerk-update-module/SKILL.md | 2 +- .claude/skills/modwerk-fix-issue/SKILL.md | 2 +- .claude/skills/modwerk-new-module/SKILL.md | 2 +- .claude/skills/modwerk-pr-ready/SKILL.md | 2 +- .claude/skills/modwerk-test-on-unit/SKILL.md | 28 +- .claude/skills/modwerk-update-module/SKILL.md | 2 +- .github/pull_request_template.md | 5 +- AGENTS.md | 6 +- changelog/2026-11-20-test-procedure.md | 1 + docs/DEVELOPER_WORKFLOW.md | 2 +- docs/MODULE_QUALIFICATION.md | 2 +- docs/OCTATRACK_MODULE_EDGE_CASES.md | 2 + docs/README.md | 1 + docs/TEST_PROCEDURE.md | 99 +++++ package.json | 1 + scripts/pr-body.mjs | 35 +- scripts/pr-body.test.mjs | 36 +- scripts/test-procedure.mjs | 410 ++++++++++++++++++ scripts/test-procedure.test.mjs | 202 +++++++++ 23 files changed, 825 insertions(+), 49 deletions(-) create mode 100644 changelog/2026-11-20-test-procedure.md create mode 100644 docs/TEST_PROCEDURE.md create mode 100644 scripts/test-procedure.mjs create mode 100644 scripts/test-procedure.test.mjs diff --git a/.agents/skills/modwerk-fix-issue/SKILL.md b/.agents/skills/modwerk-fix-issue/SKILL.md index 1a3fc6e46e..792f1e1adc 100644 --- a/.agents/skills/modwerk-fix-issue/SKILL.md +++ b/.agents/skills/modwerk-fix-issue/SKILL.md @@ -22,7 +22,7 @@ Then, in every flow: - in the emulator for screens, menus, crashes and freezes, or where there is no unit. - Write down the steps and what they showed, and say where: reproduced on the unit, in the emulator, or not reproduced. A fix for a report you could not reproduce is a mitigation until the reporter confirms it; keep the two apart. 3. **Read the module's claim on the agent board** before changing it: `npm run board -- list module /`. Someone else holding it is changing it now: stop, ask them yourself (`npm run board -- ask module / "…"`), tell the developer who and that you asked, and settle it before you go on. -4. **Test the fix** with `/modwerk-test-on-unit` on the build you will ship: the reproduction first, which must no longer fail, then stage 1, then the developer's own check of what only a person can judge. Record both stages in `TESTING.md`. +4. **Test the fix** with `/modwerk-test-on-unit` on the build you will ship: the reproduction first, which must no longer fail and becomes the first edge case, then the procedure (`docs/TEST_PROCEDURE.md`), then the developer's own check of what only a person can judge. Record both stages in `TESTING.md`. 5. **Ship the fix with its changelog entry** in the same pull request: a file in `changelog/`, or the module's own file in `src/community/module-changelogs/`. Name the limits that remain. 6. **Close only after the live version is verified.** Keep closing keywords out of the pull request. 7. **Handle reports and diagnostics** as `docs/DEVELOPER_WORKFLOW.md#manage-reports-on-github` describes. Quote nothing from private diagnostics on GitHub. diff --git a/.agents/skills/modwerk-new-module/SKILL.md b/.agents/skills/modwerk-new-module/SKILL.md index 1ce003a005..719ded96d5 100644 --- a/.agents/skills/modwerk-new-module/SKILL.md +++ b/.agents/skills/modwerk-new-module/SKILL.md @@ -27,7 +27,7 @@ Follow `docs/ADD_A_MODULE.md` and the rules in `AGENTS.md`, in this order. - An Octatrack module scaffolds into `sdk/drafts//`, where it stays until it is qualified. `npm run module:dev -- ` builds it and tries it on the unit (`--watch` on every save); `npm run module:doctor -- --draft ` judges it as experimental, and `--release` as a release. - `module:new` claims the module on the agent board for the signed-in developer (`npm run board -- login` once) and refuses one someone else holds; the doctor's `board claim` line stays red until the claim is theirs. - A new hook, table or migration number gets its claim as soon as you pick it: `npm run board -- claim hook /` or `claim migration ` (`docs/AGENT_BOARD.md`). -7. **Test** with `/modwerk-test-on-unit`: your own tests on their unit first, then theirs; without a unit, in the emulator. Record only what was observed, on the named build. +7. **Test** with `/modwerk-test-on-unit`, which runs `docs/TEST_PROCEDURE.md` (`npm run test:procedure -- `) and the module's own edge cases: your own tests on their unit first, then theirs; without a unit, in the emulator. Record only what was observed, on the named build. 8. **Finish,** once the developer says testing is done (until then, commit without pushing): - docs, credits, and a thumbnail in the shared style (`docs/ADD_A_MODULE.md#module-thumbnail-style`); - release notes in `src/community/module-changelogs/`; diff --git a/.agents/skills/modwerk-pr-ready/SKILL.md b/.agents/skills/modwerk-pr-ready/SKILL.md index f4129b1ed2..cd06e37dc0 100644 --- a/.agents/skills/modwerk-pr-ready/SKILL.md +++ b/.agents/skills/modwerk-pr-ready/SKILL.md @@ -11,7 +11,7 @@ Follow `docs/DEVELOPER_WORKFLOW.md#make-it-mergeable`. 2. **Regenerate** generated files rather than resolving them by hand: `npm run modules:generate`, `npm run licenses:generate`, `npm run machines:generate`. 3. **Check once.** For a new commit, stage the intended files and run `npm run pr:ready -- --commit "Message"`. For an existing commit, run `npm run pr:ready`. For a registered author, use `npm run pr:ready -- --author ` and include the same `--author` option when committing. Let each command manage its own machine slot so other worktrees can run while you push or watch GitHub. - It also claims on the agent board what the branch adds (a new module, hook or table index, migration) and stops when someone else holds one. Never work around a claim: renumber, rename or ask its holder yourself. Signed out, it asks for `npm run board -- login` first. When it notes questions or replies in the developer's board inbox, read them (`npm run board -- inbox`), answer them yourself from what you can check, close your settled ones, and tell the developer what you said; only a decision about their own work goes to them first. When it offers a finding, post it yourself. -4. **Push** and open or update the pull request. If it changes what runs on an instrument (a `.mwrm` package or `.elemod` base), open it as a draft (`gh pr create --draft`) and mark it ready only after the developer has tested that exact build on a unit; the description then names it on a line of its own ("Tested on a unit: base 8d1db124, MKII, what ran", or "Not tested on a unit: "). A base change opens no pull request of its own: commit it to its machine's cumulative draft from `base/-next`, or open yours against that branch (`gh pr create --base base/-next`). That draft stays a draft until the base has been tested extensively on a unit; never mark it ready, only the owner does ([Change a base](../../../docs/DEVELOPER_WORKFLOW.md#change-a-base)). Ready from pr:ready means the checks pass, not that it was tested. A change outside a module is titled `Fix: …`, `Improvement: …` or `Docs: …`. Write the description in the template's shape: what changed, how you checked it, and a line that answers the guides question ("Guides: nothing" is fine). CI checks it. +4. **Push** and open or update the pull request. If it changes what runs on an instrument (a `.mwrm` package or `.elemod` base), open it as a draft (`gh pr create --draft`) and mark it ready only after the developer has tested that exact build on a unit; the description then names it on a line of its own ("Tested on a unit: base 8d1db124, MKII, what ran", or "Not tested on a unit: ") and lists the change's edge cases under a line "Edge cases", as the table `npm run test:procedure` writes, or "Edge cases: none, because …" (`docs/TEST_PROCEDURE.md`). CI checks both. A base change opens no pull request of its own: commit it to its machine's cumulative draft from `base/-next`, or open yours against that branch (`gh pr create --base base/-next`). That draft stays a draft until the base has been tested extensively on a unit; never mark it ready, only the owner does ([Change a base](../../../docs/DEVELOPER_WORKFLOW.md#change-a-base)). Ready from pr:ready means the checks pass, not that it was tested. A change outside a module is titled `Fix: …`, `Improvement: …` or `Docs: …`. Write the description in the template's shape: what changed, how you checked it, and a line that answers the guides question ("Guides: nothing" is fine). CI checks it. - Watch `gh pr checks --watch` until green. For a red job, read `gh run view --log-failed`. - If `main` moves before the merge, start again at 1. 5. **Answer what pr:ready asks:** a guide edit for what you learned, or "nothing" in the pull request. diff --git a/.agents/skills/modwerk-test-on-unit/SKILL.md b/.agents/skills/modwerk-test-on-unit/SKILL.md index 199160a1bb..15573a154e 100644 --- a/.agents/skills/modwerk-test-on-unit/SKILL.md +++ b/.agents/skills/modwerk-test-on-unit/SKILL.md @@ -1,35 +1,31 @@ --- name: modwerk-test-on-unit -description: Test a Modwerk build on the developer's instrument over USB in two stages - first the tests the agent runs on the unit itself (a rolled-back trial through npm run device:test, driving, screenshots, audio), then the developer's own test of what only a person can judge - or, without a unit, in the emulator. Use when a developer wants to try, test or qualify a module or base on hardware or in the emulator, or another command needs a build tested on the unit. +description: Test a Modwerk build on the developer's instrument over USB in two stages - first the tests the agent runs on the unit itself (npm run test:procedure: the fixed steps from the software checks to a rolled-back trial, then by hand and the change's own edge cases), then the developer's own test of what only a person can judge - or, without a unit, in the emulator. Use when a developer wants to try, test or qualify a module or base on hardware or in the emulator, or another command needs a build tested on the unit. --- # /modwerk-test-on-unit -The order is fixed: your tests on the unit first, then the developer's. A build that fails your stage is fixed and run again; the developer never gets it to find out. +The order is fixed: the steps of `docs/TEST_PROCEDURE.md`, your tests on the unit, then the developer's. A build that fails your stage is fixed and run again; the developer never gets it to find out. 1. **One session at a time on the unit.** Every session on a computer shares its one connected unit. Ask before using it, and stop if another session holds it. Emulators need no turn: each session may run its own, with its own socket path, card copy and MCP (`--data-dir`, `--device-socket`); never attach to one another session started. On the owner's computer, sessions share one emulator (`docs/OWNER_OPERATIONS.md`). 2. **Prepare.** - - The software checks are green first (`npm run module:doctor -- `, `npm run modules:compat -- `). - - Name the build: the source revision and each package's SHA-256. A draft's package comes from `npm run module:dev -- --build-only`. Both stages are about this build only; a rebuild starts again at stage 1. - - Tell the developer what you will run on their unit and get their OK for this run. Read `docs/OCTATRACK_DRIVING.md` and keep its rules. - - Start one session with `npm run device -- serve --share /tmp/modwerk-share.sock` on a development base, transport stopped, on a bank and Part whose working copy equals its saved one. Read the unit before you change it: `ui` and `npm run device -- do inventory`. + - Derive the change's own edge cases from what it touches, before you test (`docs/TEST_PROCEDURE.md#edge-cases`). + - Tell the developer what you will run on their unit, edge cases included, and get their OK for this run. Read `docs/OCTATRACK_DRIVING.md` and keep its rules. + - Start one session with `npm run device -- serve --share /tmp/modwerk-share.sock` on a development base, transport stopped, on a bank and Part whose working copy equals its saved one. 3. **Stage 1: your tests on the unit** (Octatrack; the Rytm below). Run them yourself; do not ask the developer to press anything. No Keep in this stage. - - **The scripted pass:** `npm run device:test -- --testing-entry run.md `, in the background, reading its log (`docs/ADD_A_MODULE.md#octatrack-base-and-usb-lifecycle`). It installs the package as a trial and rolls it back at the end; places it alone on T1 and T5 and on every track while playing; sweeps its knobs; switches Parts and banks; reads the load meters, loader, crash and stall counters and the self-test; then restores the Part and checks the inventory. One package a run. - - **By hand, what it does not cover,** inside a trial (`npm run module:dev -- `, undone when it ends; or the developer MCP's `device_review`, `device_trial`, `device_undo`, `docs/FRONTEND_MCP.md#then-test-the-connected-device`): - - reach every control and screen by the button steps its README gives, and take a `png:` screenshot of each to compare with the README and its UI claims; - - record MAIN and CUE over USB (`rec`) with a sustained sound and check for dropouts (runs of exact zeros, a block played twice). This finds faults; it does not judge the sound. - - **Put it back** after the steps by hand: Undo, reload the Part, then check the active identity, the inventory and the Part against what you read in step 2. + - **The procedure:** `npm run test:procedure -- ` (a base: `--base`), in the background, reading its log. It runs the software checks, names the build (revision and package SHA-256), rehearses in the emulator when you give it one (`--emulator-socket`), then reads the unit, runs `device:test`, the soak and `device:price`, and checks the inventory came back. It stops at the first failure and writes the record. Every result is about that build; a rebuild starts again at step 1. + - **By hand, what no script covers,** inside a trial (`npm run module:dev -- `, undone when it ends; or the developer MCP's `device_review`, `device_trial`, `device_undo`, `docs/FRONTEND_MCP.md#then-test-the-connected-device`): every control and screen by the README's button steps, with a `png:` screenshot of each to compare with the README and its UI claims; MAIN and CUE recorded over USB (`rec`) with a sustained sound, checked for dropouts. This finds faults; it does not judge the sound. Then put it back: Undo, reload the Part, and check the active identity, the inventory and the Part against the start. + - **The edge cases:** run each one and fill its row in the record's table, "not run: why" included. - **The release run** is `npm run device:qualify -- --keeps-ok --testing-entry run.md `. It Keeps each install and removal, which rewrites the card's kept set: only with the developer's OK for exactly that, after noting the flashed set. - On the flashed base the driving steps are refused: run what the MCP offers (status, trial, load, Undo) and list the rest as not run. - **On the Analog Rytm MKII** the link is SysEx in development bases and `device:test` and the MCP do not reach it yet. Write a case for each README claim in `sdk/machines/analog-rytm-mkii/tools/cases//`, run them on rytm-emu, have them reviewed independently, then RAM-boot the test image (`rytm_link.py ramboot`, nothing written to the flash) and run `rytm_test.py unit` in a scratch project (`sdk/machines/analog-rytm-mkii/TEST_RUNNER.md`, `LINK.md`). Tell the developer beforehand how many restarts are coming; a power cycle brings the flashed base back. - A failure stops the stage: put the unit back, fix it, and start stage 1 again on the new build. 4. **Stage 2: the developer's test.** Only after stage 1 passed on this build. Say in a few lines what it showed and what it could not. - - Then give them a short list of what only a person at the unit can judge: what `device:test`'s entry leaves for them (how it sounds and plays, timing by ear, MIDI, scenes and recording, the module beside their other installed modules, the power cycle and what survives it), plus anything particular to this module. - - Each item has the exact button steps and what they should see or hear. Leave out what stage 1 already settled. + - Then give them the record's list of what only a person at the unit can judge, plus the edge cases left to them and anything particular to this module, each with the exact button steps and what they should see or hear. Leave out what stage 1 already settled. - The Keep, the power cycle and listening are theirs: never Keep without their OK, never power-cycle or flash yourself. The order stays review, trial, then an explicit Keep or Undo, bound to the exact version. On a RAM-booted test base a Keep replaces the owner's kept set (`docs/OCTATRACK_DRIVING.md`). - Record what they report, as they report it. A fault they find is fixed, and both stages run again on the new build. -5. **A machine without a USB link yet:** stage 1 runs in the emulator and stage 2 carries all the hardware evidence. Recommend building a link, as the recipe lays out (`docs/MACHINE_RECIPE.md`, `sdk/runtime/loader/README.md#porting-to-another-machine`). -6. **The emulator** (`ot_emu` from `npm run upstream:tools`, digiemu, rytm-emu) is for fast iteration and UI captures (`docs/MODULE_UI_CAPTURES.md`), and a good place to rehearse stage 1 before touching the unit. It never counts as hardware evidence. -7. **Record** both stages in the module's `TESTING.md`, apart and on the named build: the `device:test` entry and what you did by hand, then what the developer observed. "Not tested" is a valid result. +5. **A machine without a USB link yet:** stage 1 is the procedure's steps 1 to 3 and the emulator, and stage 2 carries all the hardware evidence. Recommend building a link, as the recipe lays out (`docs/MACHINE_RECIPE.md`, `sdk/runtime/loader/README.md#porting-to-another-machine`). +6. **The emulator** (`ot_emu` from `npm run upstream:tools`, digiemu, rytm-emu) is for fast iteration, UI captures (`docs/MODULE_UI_CAPTURES.md`) and rehearsing stage 1 before touching the unit. It never counts as hardware evidence. +7. **Record** both stages in the module's `TESTING.md` (a base: `docs/verification/`), apart and on the named build: the procedure's record with its edge-case table, what you did by hand, then what the developer observed. "Not tested" is a valid result. - Your stage is evidence for what it measured, never for the sound or for persistence across a power cycle; software tests prove neither, nor rendered pixels. - The hardware report and the release boxes stay the developer's: never attest for them. diff --git a/.agents/skills/modwerk-update-module/SKILL.md b/.agents/skills/modwerk-update-module/SKILL.md index 24c8060c7f..fddfce57c3 100644 --- a/.agents/skills/modwerk-update-module/SKILL.md +++ b/.agents/skills/modwerk-update-module/SKILL.md @@ -9,7 +9,7 @@ description: Change, fix or update a Modwerk module the developer wrote or maint - Read its claim on the agent board (`npm run board -- list module /`). If someone else holds it, they are changing it already: stop, ask them yourself (`npm run board -- ask module / "…"`) and tell the developer who and that you asked. Otherwise claim it with a one-line note of the change: `npm run board -- claim module / --note "…"`. Read the open questions and findings on it (`npm run board -- messages module /`), answer the ones waiting for you, and use what bears on the change. 2. **Read** `docs/MODULE_AUTHOR_UPDATES.md`, then the module's README, TESTING, manifest and category guide. 3. **Change it.** Pick the next semantic version and write that version's own release notes in `src/community/module-changelogs/.json`, keeping the earlier entries. -4. **Build and test.** Build the exact private image and test it with `/modwerk-test-on-unit`: your own tests on their unit first, then concrete steps for the developer. +4. **Build and test.** Build the exact private image and test it with `/modwerk-test-on-unit`, which runs `docs/TEST_PROCEDURE.md` and the edge cases this change creates: your own tests on their unit first, then concrete steps for the developer. - Record only the results they report as the developer's: several instances, slot and core isolation, and persistence where it applies. Your own readings go in as yours. - Emulator results never count as hardware evidence. 5. **Release,** once the developer says testing is done (until then, commit without pushing). Review the change as the owner would, against the pull request worker's checklist (`docs/MAINTENANCE.md#pull-request-worker`), and fix what applies. Run `/modwerk-pr-ready` (with `-- --author `), then open the pull request. diff --git a/.claude/skills/modwerk-fix-issue/SKILL.md b/.claude/skills/modwerk-fix-issue/SKILL.md index 1a3fc6e46e..792f1e1adc 100644 --- a/.claude/skills/modwerk-fix-issue/SKILL.md +++ b/.claude/skills/modwerk-fix-issue/SKILL.md @@ -22,7 +22,7 @@ Then, in every flow: - in the emulator for screens, menus, crashes and freezes, or where there is no unit. - Write down the steps and what they showed, and say where: reproduced on the unit, in the emulator, or not reproduced. A fix for a report you could not reproduce is a mitigation until the reporter confirms it; keep the two apart. 3. **Read the module's claim on the agent board** before changing it: `npm run board -- list module /`. Someone else holding it is changing it now: stop, ask them yourself (`npm run board -- ask module / "…"`), tell the developer who and that you asked, and settle it before you go on. -4. **Test the fix** with `/modwerk-test-on-unit` on the build you will ship: the reproduction first, which must no longer fail, then stage 1, then the developer's own check of what only a person can judge. Record both stages in `TESTING.md`. +4. **Test the fix** with `/modwerk-test-on-unit` on the build you will ship: the reproduction first, which must no longer fail and becomes the first edge case, then the procedure (`docs/TEST_PROCEDURE.md`), then the developer's own check of what only a person can judge. Record both stages in `TESTING.md`. 5. **Ship the fix with its changelog entry** in the same pull request: a file in `changelog/`, or the module's own file in `src/community/module-changelogs/`. Name the limits that remain. 6. **Close only after the live version is verified.** Keep closing keywords out of the pull request. 7. **Handle reports and diagnostics** as `docs/DEVELOPER_WORKFLOW.md#manage-reports-on-github` describes. Quote nothing from private diagnostics on GitHub. diff --git a/.claude/skills/modwerk-new-module/SKILL.md b/.claude/skills/modwerk-new-module/SKILL.md index 1ce003a005..719ded96d5 100644 --- a/.claude/skills/modwerk-new-module/SKILL.md +++ b/.claude/skills/modwerk-new-module/SKILL.md @@ -27,7 +27,7 @@ Follow `docs/ADD_A_MODULE.md` and the rules in `AGENTS.md`, in this order. - An Octatrack module scaffolds into `sdk/drafts//`, where it stays until it is qualified. `npm run module:dev -- ` builds it and tries it on the unit (`--watch` on every save); `npm run module:doctor -- --draft ` judges it as experimental, and `--release` as a release. - `module:new` claims the module on the agent board for the signed-in developer (`npm run board -- login` once) and refuses one someone else holds; the doctor's `board claim` line stays red until the claim is theirs. - A new hook, table or migration number gets its claim as soon as you pick it: `npm run board -- claim hook /` or `claim migration ` (`docs/AGENT_BOARD.md`). -7. **Test** with `/modwerk-test-on-unit`: your own tests on their unit first, then theirs; without a unit, in the emulator. Record only what was observed, on the named build. +7. **Test** with `/modwerk-test-on-unit`, which runs `docs/TEST_PROCEDURE.md` (`npm run test:procedure -- `) and the module's own edge cases: your own tests on their unit first, then theirs; without a unit, in the emulator. Record only what was observed, on the named build. 8. **Finish,** once the developer says testing is done (until then, commit without pushing): - docs, credits, and a thumbnail in the shared style (`docs/ADD_A_MODULE.md#module-thumbnail-style`); - release notes in `src/community/module-changelogs/`; diff --git a/.claude/skills/modwerk-pr-ready/SKILL.md b/.claude/skills/modwerk-pr-ready/SKILL.md index f4129b1ed2..cd06e37dc0 100644 --- a/.claude/skills/modwerk-pr-ready/SKILL.md +++ b/.claude/skills/modwerk-pr-ready/SKILL.md @@ -11,7 +11,7 @@ Follow `docs/DEVELOPER_WORKFLOW.md#make-it-mergeable`. 2. **Regenerate** generated files rather than resolving them by hand: `npm run modules:generate`, `npm run licenses:generate`, `npm run machines:generate`. 3. **Check once.** For a new commit, stage the intended files and run `npm run pr:ready -- --commit "Message"`. For an existing commit, run `npm run pr:ready`. For a registered author, use `npm run pr:ready -- --author ` and include the same `--author` option when committing. Let each command manage its own machine slot so other worktrees can run while you push or watch GitHub. - It also claims on the agent board what the branch adds (a new module, hook or table index, migration) and stops when someone else holds one. Never work around a claim: renumber, rename or ask its holder yourself. Signed out, it asks for `npm run board -- login` first. When it notes questions or replies in the developer's board inbox, read them (`npm run board -- inbox`), answer them yourself from what you can check, close your settled ones, and tell the developer what you said; only a decision about their own work goes to them first. When it offers a finding, post it yourself. -4. **Push** and open or update the pull request. If it changes what runs on an instrument (a `.mwrm` package or `.elemod` base), open it as a draft (`gh pr create --draft`) and mark it ready only after the developer has tested that exact build on a unit; the description then names it on a line of its own ("Tested on a unit: base 8d1db124, MKII, what ran", or "Not tested on a unit: "). A base change opens no pull request of its own: commit it to its machine's cumulative draft from `base/-next`, or open yours against that branch (`gh pr create --base base/-next`). That draft stays a draft until the base has been tested extensively on a unit; never mark it ready, only the owner does ([Change a base](../../../docs/DEVELOPER_WORKFLOW.md#change-a-base)). Ready from pr:ready means the checks pass, not that it was tested. A change outside a module is titled `Fix: …`, `Improvement: …` or `Docs: …`. Write the description in the template's shape: what changed, how you checked it, and a line that answers the guides question ("Guides: nothing" is fine). CI checks it. +4. **Push** and open or update the pull request. If it changes what runs on an instrument (a `.mwrm` package or `.elemod` base), open it as a draft (`gh pr create --draft`) and mark it ready only after the developer has tested that exact build on a unit; the description then names it on a line of its own ("Tested on a unit: base 8d1db124, MKII, what ran", or "Not tested on a unit: ") and lists the change's edge cases under a line "Edge cases", as the table `npm run test:procedure` writes, or "Edge cases: none, because …" (`docs/TEST_PROCEDURE.md`). CI checks both. A base change opens no pull request of its own: commit it to its machine's cumulative draft from `base/-next`, or open yours against that branch (`gh pr create --base base/-next`). That draft stays a draft until the base has been tested extensively on a unit; never mark it ready, only the owner does ([Change a base](../../../docs/DEVELOPER_WORKFLOW.md#change-a-base)). Ready from pr:ready means the checks pass, not that it was tested. A change outside a module is titled `Fix: …`, `Improvement: …` or `Docs: …`. Write the description in the template's shape: what changed, how you checked it, and a line that answers the guides question ("Guides: nothing" is fine). CI checks it. - Watch `gh pr checks --watch` until green. For a red job, read `gh run view --log-failed`. - If `main` moves before the merge, start again at 1. 5. **Answer what pr:ready asks:** a guide edit for what you learned, or "nothing" in the pull request. diff --git a/.claude/skills/modwerk-test-on-unit/SKILL.md b/.claude/skills/modwerk-test-on-unit/SKILL.md index 199160a1bb..15573a154e 100644 --- a/.claude/skills/modwerk-test-on-unit/SKILL.md +++ b/.claude/skills/modwerk-test-on-unit/SKILL.md @@ -1,35 +1,31 @@ --- name: modwerk-test-on-unit -description: Test a Modwerk build on the developer's instrument over USB in two stages - first the tests the agent runs on the unit itself (a rolled-back trial through npm run device:test, driving, screenshots, audio), then the developer's own test of what only a person can judge - or, without a unit, in the emulator. Use when a developer wants to try, test or qualify a module or base on hardware or in the emulator, or another command needs a build tested on the unit. +description: Test a Modwerk build on the developer's instrument over USB in two stages - first the tests the agent runs on the unit itself (npm run test:procedure: the fixed steps from the software checks to a rolled-back trial, then by hand and the change's own edge cases), then the developer's own test of what only a person can judge - or, without a unit, in the emulator. Use when a developer wants to try, test or qualify a module or base on hardware or in the emulator, or another command needs a build tested on the unit. --- # /modwerk-test-on-unit -The order is fixed: your tests on the unit first, then the developer's. A build that fails your stage is fixed and run again; the developer never gets it to find out. +The order is fixed: the steps of `docs/TEST_PROCEDURE.md`, your tests on the unit, then the developer's. A build that fails your stage is fixed and run again; the developer never gets it to find out. 1. **One session at a time on the unit.** Every session on a computer shares its one connected unit. Ask before using it, and stop if another session holds it. Emulators need no turn: each session may run its own, with its own socket path, card copy and MCP (`--data-dir`, `--device-socket`); never attach to one another session started. On the owner's computer, sessions share one emulator (`docs/OWNER_OPERATIONS.md`). 2. **Prepare.** - - The software checks are green first (`npm run module:doctor -- `, `npm run modules:compat -- `). - - Name the build: the source revision and each package's SHA-256. A draft's package comes from `npm run module:dev -- --build-only`. Both stages are about this build only; a rebuild starts again at stage 1. - - Tell the developer what you will run on their unit and get their OK for this run. Read `docs/OCTATRACK_DRIVING.md` and keep its rules. - - Start one session with `npm run device -- serve --share /tmp/modwerk-share.sock` on a development base, transport stopped, on a bank and Part whose working copy equals its saved one. Read the unit before you change it: `ui` and `npm run device -- do inventory`. + - Derive the change's own edge cases from what it touches, before you test (`docs/TEST_PROCEDURE.md#edge-cases`). + - Tell the developer what you will run on their unit, edge cases included, and get their OK for this run. Read `docs/OCTATRACK_DRIVING.md` and keep its rules. + - Start one session with `npm run device -- serve --share /tmp/modwerk-share.sock` on a development base, transport stopped, on a bank and Part whose working copy equals its saved one. 3. **Stage 1: your tests on the unit** (Octatrack; the Rytm below). Run them yourself; do not ask the developer to press anything. No Keep in this stage. - - **The scripted pass:** `npm run device:test -- --testing-entry run.md `, in the background, reading its log (`docs/ADD_A_MODULE.md#octatrack-base-and-usb-lifecycle`). It installs the package as a trial and rolls it back at the end; places it alone on T1 and T5 and on every track while playing; sweeps its knobs; switches Parts and banks; reads the load meters, loader, crash and stall counters and the self-test; then restores the Part and checks the inventory. One package a run. - - **By hand, what it does not cover,** inside a trial (`npm run module:dev -- `, undone when it ends; or the developer MCP's `device_review`, `device_trial`, `device_undo`, `docs/FRONTEND_MCP.md#then-test-the-connected-device`): - - reach every control and screen by the button steps its README gives, and take a `png:` screenshot of each to compare with the README and its UI claims; - - record MAIN and CUE over USB (`rec`) with a sustained sound and check for dropouts (runs of exact zeros, a block played twice). This finds faults; it does not judge the sound. - - **Put it back** after the steps by hand: Undo, reload the Part, then check the active identity, the inventory and the Part against what you read in step 2. + - **The procedure:** `npm run test:procedure -- ` (a base: `--base`), in the background, reading its log. It runs the software checks, names the build (revision and package SHA-256), rehearses in the emulator when you give it one (`--emulator-socket`), then reads the unit, runs `device:test`, the soak and `device:price`, and checks the inventory came back. It stops at the first failure and writes the record. Every result is about that build; a rebuild starts again at step 1. + - **By hand, what no script covers,** inside a trial (`npm run module:dev -- `, undone when it ends; or the developer MCP's `device_review`, `device_trial`, `device_undo`, `docs/FRONTEND_MCP.md#then-test-the-connected-device`): every control and screen by the README's button steps, with a `png:` screenshot of each to compare with the README and its UI claims; MAIN and CUE recorded over USB (`rec`) with a sustained sound, checked for dropouts. This finds faults; it does not judge the sound. Then put it back: Undo, reload the Part, and check the active identity, the inventory and the Part against the start. + - **The edge cases:** run each one and fill its row in the record's table, "not run: why" included. - **The release run** is `npm run device:qualify -- --keeps-ok --testing-entry run.md `. It Keeps each install and removal, which rewrites the card's kept set: only with the developer's OK for exactly that, after noting the flashed set. - On the flashed base the driving steps are refused: run what the MCP offers (status, trial, load, Undo) and list the rest as not run. - **On the Analog Rytm MKII** the link is SysEx in development bases and `device:test` and the MCP do not reach it yet. Write a case for each README claim in `sdk/machines/analog-rytm-mkii/tools/cases//`, run them on rytm-emu, have them reviewed independently, then RAM-boot the test image (`rytm_link.py ramboot`, nothing written to the flash) and run `rytm_test.py unit` in a scratch project (`sdk/machines/analog-rytm-mkii/TEST_RUNNER.md`, `LINK.md`). Tell the developer beforehand how many restarts are coming; a power cycle brings the flashed base back. - A failure stops the stage: put the unit back, fix it, and start stage 1 again on the new build. 4. **Stage 2: the developer's test.** Only after stage 1 passed on this build. Say in a few lines what it showed and what it could not. - - Then give them a short list of what only a person at the unit can judge: what `device:test`'s entry leaves for them (how it sounds and plays, timing by ear, MIDI, scenes and recording, the module beside their other installed modules, the power cycle and what survives it), plus anything particular to this module. - - Each item has the exact button steps and what they should see or hear. Leave out what stage 1 already settled. + - Then give them the record's list of what only a person at the unit can judge, plus the edge cases left to them and anything particular to this module, each with the exact button steps and what they should see or hear. Leave out what stage 1 already settled. - The Keep, the power cycle and listening are theirs: never Keep without their OK, never power-cycle or flash yourself. The order stays review, trial, then an explicit Keep or Undo, bound to the exact version. On a RAM-booted test base a Keep replaces the owner's kept set (`docs/OCTATRACK_DRIVING.md`). - Record what they report, as they report it. A fault they find is fixed, and both stages run again on the new build. -5. **A machine without a USB link yet:** stage 1 runs in the emulator and stage 2 carries all the hardware evidence. Recommend building a link, as the recipe lays out (`docs/MACHINE_RECIPE.md`, `sdk/runtime/loader/README.md#porting-to-another-machine`). -6. **The emulator** (`ot_emu` from `npm run upstream:tools`, digiemu, rytm-emu) is for fast iteration and UI captures (`docs/MODULE_UI_CAPTURES.md`), and a good place to rehearse stage 1 before touching the unit. It never counts as hardware evidence. -7. **Record** both stages in the module's `TESTING.md`, apart and on the named build: the `device:test` entry and what you did by hand, then what the developer observed. "Not tested" is a valid result. +5. **A machine without a USB link yet:** stage 1 is the procedure's steps 1 to 3 and the emulator, and stage 2 carries all the hardware evidence. Recommend building a link, as the recipe lays out (`docs/MACHINE_RECIPE.md`, `sdk/runtime/loader/README.md#porting-to-another-machine`). +6. **The emulator** (`ot_emu` from `npm run upstream:tools`, digiemu, rytm-emu) is for fast iteration, UI captures (`docs/MODULE_UI_CAPTURES.md`) and rehearsing stage 1 before touching the unit. It never counts as hardware evidence. +7. **Record** both stages in the module's `TESTING.md` (a base: `docs/verification/`), apart and on the named build: the procedure's record with its edge-case table, what you did by hand, then what the developer observed. "Not tested" is a valid result. - Your stage is evidence for what it measured, never for the sound or for persistence across a power cycle; software tests prove neither, nor rendered pixels. - The hardware report and the release boxes stay the developer's: never attest for them. diff --git a/.claude/skills/modwerk-update-module/SKILL.md b/.claude/skills/modwerk-update-module/SKILL.md index 24c8060c7f..fddfce57c3 100644 --- a/.claude/skills/modwerk-update-module/SKILL.md +++ b/.claude/skills/modwerk-update-module/SKILL.md @@ -9,7 +9,7 @@ description: Change, fix or update a Modwerk module the developer wrote or maint - Read its claim on the agent board (`npm run board -- list module /`). If someone else holds it, they are changing it already: stop, ask them yourself (`npm run board -- ask module / "…"`) and tell the developer who and that you asked. Otherwise claim it with a one-line note of the change: `npm run board -- claim module / --note "…"`. Read the open questions and findings on it (`npm run board -- messages module /`), answer the ones waiting for you, and use what bears on the change. 2. **Read** `docs/MODULE_AUTHOR_UPDATES.md`, then the module's README, TESTING, manifest and category guide. 3. **Change it.** Pick the next semantic version and write that version's own release notes in `src/community/module-changelogs/.json`, keeping the earlier entries. -4. **Build and test.** Build the exact private image and test it with `/modwerk-test-on-unit`: your own tests on their unit first, then concrete steps for the developer. +4. **Build and test.** Build the exact private image and test it with `/modwerk-test-on-unit`, which runs `docs/TEST_PROCEDURE.md` and the edge cases this change creates: your own tests on their unit first, then concrete steps for the developer. - Record only the results they report as the developer's: several instances, slot and core isolation, and persistence where it applies. Your own readings go in as yours. - Emulator results never count as hardware evidence. 5. **Release,** once the developer says testing is done (until then, commit without pushing). Review the change as the owner would, against the pull request worker's checklist (`docs/MAINTENANCE.md#pull-request-worker`), and fix what applies. Run `/modwerk-pr-ready` (with `-- --author `), then open the pull request. diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index b9caf761d9..d8499272e8 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,12 +1,13 @@ -**A fix or improvement outside a module?** Title it `Fix: …`, `Improvement: …` or `Docs: …` (it is labelled from that), keep it to one change, delete everything below and answer four questions in plain words: +**A fix or improvement outside a module?** Title it `Fix: …`, `Improvement: …` or `Docs: …` (it is labelled from that), keep it to one change, delete everything below and answer these questions in plain words: - **What was wrong or hard:** - **What this changes:** - **How I checked it:** (`npm run pr:ready` and anything else you ran) - **Tested on a unit:** (a change to a built package or base: the exact build, the model and what ran; keep the pull request a draft until then, or write "Not tested on a unit:" and why) +- **Edge cases:** (a change to a built package or base: below this line a table with one row a case, `| Case | Why this change makes it a risk | How run | Result |`, each result pass, fail or "not run: why"; or "none, because …". [How to find them](../docs/TEST_PROCEDURE.md#edge-cases)) - **What the guides lacked or got wrong, and where I fixed it:** ("nothing" is a fine answer) -**A module or module update:** describe the change in behaviour, module version(s), compatibility and source/media attribution. Then say what the guides lacked or got wrong while you built it and link the `Docs:` pull request that fixes it, or write "nothing"; the module release itself stays free of guide edits. +**A module or module update:** describe the change in behaviour, module version(s), compatibility and source/media attribution. Run it through [the test procedure](../docs/TEST_PROCEDURE.md) and give its "Tested on a unit" line and its edge-case table under a line "Edge cases". Then say what the guides lacked or got wrong while you built it and link the `Docs:` pull request that fixes it, or write "nothing"; the module release itself stays free of guide edits. The checks do the rest. `npm run pr:ready` (a registered author: `npm run pr:ready -- --author `) runs what CI runs: the module contract, version and release notes, compatibility and UI claims, resource and qualification records, documentation and licences. A pull request with a red check is labelled `needs-work` and leaves the review queue until it is green; after 14 days without a new commit it is closed, and you can reopen it once it is green. Until your first module is published, one module pull request is reviewed at a time. diff --git a/AGENTS.md b/AGENTS.md index e343a3b192..a76ee08e61 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -41,9 +41,9 @@ Skills load on clone: Claude Code reads `.claude/skills/`, Codex the identical ` ## Testing and the instrument -- Develop for USB, which the owner calls very important: what you build loads and runs through the USB link and the [developer MCP](docs/FRONTEND_MCP.md)'s device tools, and a machine without a USB interface yet should get one ([recipe](docs/MACHINE_RECIPE.md)). Recommend the real unit: a trial loads to RAM and a power cycle ends it, while a Keep writes the set to the card ([driving the Octatrack](docs/OCTATRACK_DRIVING.md)); only hardware results qualify a module. Emulators (`ot_emu`, digiemu, rytm-emu) are for fast iteration and [UI captures](docs/MODULE_UI_CAPTURES.md), never hardware evidence. Ask the developer which setup they have ([your development setup](docs/DEVELOPER_WORKFLOW.md#your-development-setup)). -- Test Modwerk through source and domain tests, HTTP/API, the developer MCP and DOM regressions first, then exact-build device qualification. Do not use computer-use, browser-control or Playwright automation for site testing; capturing an already displayed page or reviewing supplied images is fine. Software tests do not prove rendered CSS, audible output or reboot persistence ([testing](docs/APP_DEVELOPMENT.md#testing-through-the-developer-mcp)). -- Record only what you observed, on a named build. "Not tested" in TESTING.md is a valid result, and a behaviour a tester reports stays labelled as reported. +- Develop for USB, which the owner calls very important: what you build loads and runs through the USB link and the [developer MCP](docs/FRONTEND_MCP.md)'s device tools, and a machine without a USB interface yet should get one ([recipe](docs/MACHINE_RECIPE.md)). Recommend the real unit: a trial loads to RAM until a power cycle, a Keep writes the set to the card ([driving the Octatrack](docs/OCTATRACK_DRIVING.md)); only hardware results qualify a module. Emulators (`ot_emu` and others) are for fast iteration and [UI captures](docs/MODULE_UI_CAPTURES.md), never hardware evidence. Ask the developer which setup they have ([your development setup](docs/DEVELOPER_WORKFLOW.md#your-development-setup)). +- Test the site through source and domain tests, HTTP/API, the developer MCP and DOM regressions. Do not use computer-use, browser-control or Playwright automation for site testing; capturing an already displayed page or reviewing supplied images is fine. Software tests do not prove rendered CSS, audible output or reboot persistence ([testing](docs/APP_DEVELOPMENT.md#testing-through-the-developer-mcp)). +- Every module or base change runs [the test procedure](docs/TEST_PROCEDURE.md), its edge cases included. Record only what you observed, on a named build: "Not tested" is valid, and a tester's report stays labelled as reported. ## Pull requests diff --git a/changelog/2026-11-20-test-procedure.md b/changelog/2026-11-20-test-procedure.md new file mode 100644 index 0000000000..f0b61fa4b0 --- /dev/null +++ b/changelog/2026-11-20-test-procedure.md @@ -0,0 +1 @@ +Development: Every module or base change goes through one test procedure, `npm run test:procedure -- ` or `--base`. It runs the software checks, the build, the emulator and the unit steps in a fixed order, stops at the first failure, records unit steps as not run without a unit, and writes a record with an empty table for the change's own edge cases (docs/TEST_PROCEDURE.md). A ready pull request that changes what runs on an instrument now lists those edge cases, or says "Edge cases: none, because …". diff --git a/docs/DEVELOPER_WORKFLOW.md b/docs/DEVELOPER_WORKFLOW.md index 4261cd65f4..250a4f0048 100644 --- a/docs/DEVELOPER_WORKFLOW.md +++ b/docs/DEVELOPER_WORKFLOW.md @@ -121,7 +121,7 @@ A base update carries several developers' changes onto players' instruments at o - **Join it.** Commit your base change to that branch, or open your pull request against it (`gh pr create --base base/-next`); it is merged in with your authorship. A base pull request against `main` is sent there. With none open for the machine, open it as a draft from `base/-next`. - **Share the branch.** Several developers commit to it: fetch first, add your commits on top, merge `main` into it, and never rebase or force-push it. Update the description's list of what is in it so far. -- **It stays a draft** until the base has been tested extensively on a unit. Record each build that ran, on which unit, and what ran on it; `pr:ready` saying Ready means the checks pass, not that it was tested. Only the owner marks it ready and ships it. +- **It stays a draft** until the base has been tested extensively on a unit. Run each build through [the test procedure](TEST_PROCEDURE.md#what-a-base-adds) and record what ran, on which unit; `pr:ready` saying Ready means the checks pass, not that it was tested. Only the owner marks it ready and ships it. ## Manage reports on GitHub diff --git a/docs/MODULE_QUALIFICATION.md b/docs/MODULE_QUALIFICATION.md index 1a2bdfb722..026bf7e29d 100644 --- a/docs/MODULE_QUALIFICATION.md +++ b/docs/MODULE_QUALIFICATION.md @@ -9,7 +9,7 @@ Existing published module authors may use the [automatic author-update workflow] - a hardware report: a functional report that gives the model, date, tester, summary and limitations is enough, with no minimum duration or track count; - its tutorial and screenshot paths. -All of it is bound to the module version, its native-source SHA-256 and the SHA-256 of the local image it was tested with. A change to documentation or media alone uses `tests.retainedEvidence` instead. Bound only the module's own code and memory: when a number would need analysis of stock firmware, record it as not measured and ask the owner the same day ([Performance](module-guides/README.md#performance)). The steps are in [Add or port a module](ADD_A_MODULE.md). The rest of this page is the field reference and the record of owner exceptions. +All of it is bound to the module version, its native-source SHA-256 and the SHA-256 of the local image it was tested with. A change to documentation or media alone uses `tests.retainedEvidence` instead. Bound only the module's own code and memory: when a number would need analysis of stock firmware, record it as not measured and ask the owner the same day ([Performance](module-guides/README.md#performance)). The steps are in [Add or port a module](ADD_A_MODULE.md), and the order of the tests in [the test procedure](TEST_PROCEDURE.md). The rest of this page is the field reference and the record of owner exceptions. From 2 October 2026, new modules and updates affecting runtime behavior, stability, cycles, memory or load must provide **worst-case cycle counts, exact memory accounting, attributed real-hardware test evidence and complete documentation**. These are publication requirements. Missing measurements, nominal/average CPU percentages, emulator-only evidence, historical evidence for another source and failed detailed hardware checks cannot qualify a submission. On 2 October 2026 the owner removed the mandatory 60-minute, eight-track stress run. A clearly labelled functional hardware report is accepted alongside the cycle, memory, source, UI and integration evidence below. diff --git a/docs/OCTATRACK_MODULE_EDGE_CASES.md b/docs/OCTATRACK_MODULE_EDGE_CASES.md index 26351a572d..c65da77b4a 100644 --- a/docs/OCTATRACK_MODULE_EDGE_CASES.md +++ b/docs/OCTATRACK_MODULE_EDGE_CASES.md @@ -1,5 +1,7 @@ # Octatrack module edge cases +A change's own edge cases start here and in the [hardware traps](OCTATRACK_HARDWARE_TRAPS.md): [the test procedure](TEST_PROCEDURE.md#edge-cases) says how to derive, run and record them. + Owner and Claude, 11 October 2026, after the persistence run on a scratch project. What can go wrong when modules, projects, Parts and the base meet, what the base does today, and what is proven. Status: **done** (proven on the unit), **built** (code exists, not proven on the unit), **open** (not built or not tested). diff --git a/docs/README.md b/docs/README.md index f6172b0d0a..4b1f9cceb5 100644 --- a/docs/README.md +++ b/docs/README.md @@ -34,6 +34,7 @@ Every document in `docs/`, one line each. [AGENTS.md](../AGENTS.md) says which t - [SDK.md](SDK.md): machine profiles, module contract v3, evidence tiers and the shared commands. - [OCTATRACK_API.md](OCTATRACK_API.md): what an Octatrack module builds against: entry points, hooks, state, what stays stable. - [MODULE_REPOSITORIES.md](MODULE_REPOSITORIES.md): the module folder and its manifest fields. +- [TEST_PROCEDURE.md](TEST_PROCEDURE.md): the steps every module or base change is tested through, in order, and its own edge cases (`npm run test:procedure`). - [MODULE_QUALIFICATION.md](MODULE_QUALIFICATION.md): qualification gates: cycles, memory, hardware, exceptions. - [MODULE_PERFORMANCE.md](MODULE_PERFORMANCE.md): how to measure a module before it is listed: worst-case cycles, a benchmark against stock and a stress run. - [MODULE_RESOURCE_GAUGES.md](MODULE_RESOURCE_GAUGES.md): the CPU, DSP and memory gauges a release needs. diff --git a/docs/TEST_PROCEDURE.md b/docs/TEST_PROCEDURE.md new file mode 100644 index 0000000000..e256d0163d --- /dev/null +++ b/docs/TEST_PROCEDURE.md @@ -0,0 +1,99 @@ +# Test procedure + +Every change to a module or a base goes through these steps, in this order, on one named build. Then it runs the edge cases its own change asks for. The other testing guides hold the detail of each step; this page holds the order. + +```sh +npm run test:procedure -- # a module, built from its source +npm run test:procedure -- --plan # the steps and their commands, nothing run +npm run test:procedure -- --base # the Octatrack base, with every USB package +``` + +It runs the steps below with the tools that already do them and stops at the first failure. Without a unit session it records the unit steps as not run, with the command each would have run. It ends with a record for the build: `procedure.md`, a `TESTING.md` entry with an empty edge-case table, and `procedure.json` for programs. A module's automated part takes under a minute without a unit (temp-save, 20 November 2026: 9 s for steps 1 to 3, 32 s with the emulator) and a few minutes with one. + +Options: `--package FILE` tests that package instead of building one, `--published` the catalogue's, `--share SOCKET` names the unit session, `--no-unit` leaves the unit alone, `--emulator-socket SOCK` adds the emulator, `--out DIR` puts the record there (default: the system's temporary folder), `--soak-seconds` and `--scene` go to the soak and the price. + +## The steps + +| # | Step | Command | Passes when | Evidence | For | +|---|---|---|---|---|---| +| 1 | Software checks | `npm run module:doctor -- ` (a draft: `--draft `); a base: `npm run sdk:check` | green | its log | both | +| 2 | Beside every other module | `npm run modules:compat -- `; a base: `npm run modules:compat` | 0 problems | its log | both | +| 3 | Name the build | `npm run module:dev -- --build-only`; a base: its `.elemod` | a package exists | revision and SHA-256 | both | +| 4 | DSP cost model | `node scripts/cycle-scan.mjs check` | every record current | its log | both | +| 5 | Emulator rehearsal | `node scripts/device.mjs try PKG --emulator --socket SOCK`; a base: `set` with every package | the trial rolls back with no fault logged | its log, labelled emulator | both | +| 6 | Read the unit | `node scripts/device.mjs status` and `do inventory` on the session | it answers | the starting inventory | both | +| 7 | Scripted unit pass | `npm run device:test -- --testing-entry FILE PKG`; a base: `node scripts/device.mjs set A,B,… --seconds 30`, every USB package at once | no crash, stall, freeze or skipped track; the set rolls back | `device-test.md`, its log | both | +| 8 | Soak | `node scripts/octatrack-soak.mjs`, a module inside a trial of its own | no new crash, stall or frozen frame | `soak.json` | both | +| 9 | Cost on the unit | `npm run device:price -- --out price.json PKG`; a base: every USB package | it reads | `price.json`: frame interrupt, CPU meter, both DSPs, at rest and in use | both | +| 10 | Put back | `do inventory` again | equal to step 6 | its log | both | +| 11 | Agent by hand | inside a trial (`npm run module:dev -- ` or the MCP) | what you saw matches the README | screenshots, captures | both | +| 12 | Developer's stage | their hands and ears | what they report | their words, as they said them | both | + +Each step proves only what it ran. Steps 1 to 5 prove the code paths they exercised, never audio, timing, a saved project or a power cycle. Steps 6 to 11 are hardware evidence for what they measured, never for the sound or for persistence. Step 12 is the developer's. + +- **1-2.** The doctor runs the module's host tests, the contract, the performance record and the compatibility lines. A draft is judged beside every other module by the doctor itself. +- **3. A rebuild starts again at step 1.** The record names the source revision (and says when the tree had uncommitted changes) and the package's SHA-256. Every later result is about this build only. +- **4.** Until the cycle scan is merged ([#1798](https://github.com/repeat98/modwerk/pull/1798)) this step is not run; the doctor's performance line covers instruction counts ([MODULE_PERFORMANCE.md](MODULE_PERFORMANCE.md)). +- **5.** Start `ot_emu` with `--usb-host SOCK` on a development twin of the base, from [the adapted emulator builder](../scripts/octatrack-emulator/build.py) (the plain port refused the trial with loader refusal 5, 20 November 2026). A ColdFire module needs no `--dsp`, which runs about ten times faster; give the base 20 s after the socket appears. What passes here can still fail on the unit: read [what `ot_emu` does not show](OCTATRACK_HARDWARE_TRAPS.md#the-emulator-and-the-tools). +- **6-10.** The unit steps go through the device commands and keep [the driving rules](OCTATRACK_DRIVING.md): a development base, transport stopped, a bank and Part whose working copy equals its saved one. Nothing is kept: every install is a trial that rolls back. When the repository has the unit queue (its `unit` script), the runner takes the unit for steps 6 to 10 as one turn. +- **8.** Until the fast seeded soak is merged ([#1770](https://github.com/repeat98/modwerk/pull/1770)), a module soaks inside step 7 (`device:test --soak 120`) and a base's soak is not run. +- **9.** "At rest" is the module installed and used nowhere: what every player pays for having it. Judge both figures against [MODULE_PERFORMANCE.md](MODULE_PERFORMANCE.md); a base-bound package is left out, since a development twin does not trust it. +- **11.** Reach every control and screen by the README's button steps and take a `png:` screenshot of each. Record MAIN and CUE over USB with a sustained sound and look for runs of exact zeros or a block played twice. Then Undo and check the inventory again ([/modwerk-test-on-unit](../.claude/skills/modwerk-test-on-unit/SKILL.md)). +- **12.** Only after 1 to 11 passed on this build. Give the developer the button steps and what they should see or hear for each item the record lists: the sound, timing by ear, MIDI and scenes, two instances, Part and project reload, the Keep and the power cycle. The Keep, the power cycle, a flash and listening are theirs; the agent never does them without their OK. A fault they find is fixed, and the procedure starts again on the new build. + +A machine without a USB link runs steps 1 to 3 and its emulator; step 12 then carries all the hardware evidence ([/modwerk-test-on-unit](../.claude/skills/modwerk-test-on-unit/SKILL.md)). + +## What a base adds + +A base carries every installed module, so it is tested as a set ([Change a base](DEVELOPER_WORKFLOW.md#change-a-base)): + +- step 1 is the SDK suite and step 2 every module against every other; +- step 7 installs every USB package in one whole-set trial (a base with feature 512), and Undo must bring back the starting inventory and active identity (step 10); +- step 9 prices every package at rest on the new base, the figure a base change can move for everyone; +- by hand, with the developer's OK for each restart: RAM boot into the candidate, run the steps, RAM boot back to the starting base, and check its modules came back; +- the record goes to `docs/verification/-.md` and the machine's cumulative draft. That draft stays a draft until the owner says the base was tested enough. + +## Edge cases + +Every change also runs the edge cases it creates. The steps above test what every change shares; these test what this change touched. Derive them before you test, run each one, and record each one. + +1. **List what the change touches.** Read the diff, not the description. For each item, name the kind: + - a hook or stock site, and who else uses it (another module, the base); + - a page, a menu row or a key gesture, and the windows it can be pressed in; + - memory: the module pool, a delay buffer, DSP words, battery RAM; + - timing: tempo, track speed, swing, pattern and bank changes, the arranger; + - persistence: the Part, the project, the card's set, battery RAM; + - the loader: install, replace, remove, Undo, a refused set, a trial that expires; + - the USB link, load and admission (the CPU meter, the guard), boot and the restore. +2. **Find its boundaries and its neighbours.** Boundaries: the smallest and largest value, empty and full, the first and last track, one instance and eight, both FX slots and both DSP cores, MKI and MKII. Neighbours: what runs beside it at the moment it changes (a Part change while playing, the trial's end, Undo, a power cycle) and the modules that share its hook, gesture or memory. +3. **Seed the list** from what has gone wrong before. The record suggests a start from the manifest and the changed files: + + | It touches | Start from | + |---|---| + | an effect slot | two instances, both slots, both cores ([qualification](MODULE_QUALIFICATION.md#essential-persistence-and-instance-checks--8-october-2026)) | + | a key gesture or a page | [key gestures in windows](OCTATRACK_MODULE_EDGE_CASES.md#key-gestures-in-windows); a page open when the trial ends | + | a project, Part or save | [projects](OCTATRACK_MODULE_EDGE_CASES.md#projects-and-the-installed-modules), [copying and saving](OCTATRACK_MODULE_EDGE_CASES.md#copying-and-saving), [boot and power](OCTATRACK_MODULE_EDGE_CASES.md#boot-and-power) | + | playback | [while playing](OCTATRACK_MODULE_EDGE_CASES.md#while-playing), [sequencing](module-guides/sequencing.md) | + | stock code | [patching stock code](OCTATRACK_HARDWARE_TRAPS.md#patching-stock-code) | + | DSP code or load | [the DSP loader](OCTATRACK_HARDWARE_TRAPS.md#dsp-loader-dynamic-dsp-code), [ColdFire and DSP load](OCTATRACK_HARDWARE_TRAPS.md#coldfire-and-dsp-load) | + | the USB link | [USB and EP0](OCTATRACK_HARDWARE_TRAPS.md#usb-and-ep0) | + | RAM boot, NOR, cold starts | [RAM boot](OCTATRACK_HARDWARE_TRAPS.md#ram-boot), [cold starts](OCTATRACK_HARDWARE_TRAPS.md#cold-starts-and-card-writes) | + +4. **Run each case** on the unit when it depends on the instrument, in the emulator only to rehearse it. A case only the developer can judge (a sound, a power cycle) goes to them with its steps. +5. **Record each case** in one row of the record's table, in the pull request and in `TESTING.md`: + + | Case | Why this change makes it a risk | How run | Result | + |---|---|---|---| + | (an example) two instances, on FX2 of T1 and T5 | the change moved the state block | `npm run device -- do 'pick:T1:FX2:… pick:T5:FX2:… stats'` during the trial | pass | + + The result is `pass`, `fail: what happened` or `not run: why`. A case not run stays in the table. + +When the change cannot behave differently on an instrument (a package rebuilt to the same bytes, say), write `Edge cases: none, because …` instead. + +## Where the record goes + +- **A module:** `procedure.md` with the edge-case table filled in, as an entry in the module's `TESTING.md`, followed by the developer's results apart from yours. +- **A base:** a dated record in `docs/verification/`, linked from the cumulative draft's description. +- **The pull request:** the record's last lines, "Tested on a unit: …" (or "Not tested on a unit: why") and the edge-case table under a line "Edge cases". A ready pull request that changes a `.mwrm`, `.elemod` or `.ZDL` file fails its description check without both ([the check](../scripts/pr-body.mjs)); a draft may still be in test. + +"Not tested" is a valid result, and it stays visible. An emulator result never counts as hardware evidence. A tester's report stays labelled as reported. diff --git a/package.json b/package.json index 335ae6fb88..4fd177d194 100644 --- a/package.json +++ b/package.json @@ -51,6 +51,7 @@ "device:price": "node scripts/octatrack-price.mjs", "device:qualify": "node scripts/mirror-octatrack-modules.mjs && python3 -B scripts/octatrack-qualify.py", "device:test": "python3 -B scripts/octatrack-test.py", + "test:procedure": "node scripts/test-procedure.mjs", "modules:generate": "node scripts/modules.mjs --write", "modules:check": "node scripts/modules.mjs", "modules:compat": "node scripts/mirror-octatrack-modules.mjs && python3 -B scripts/module-compat.py", diff --git a/scripts/pr-body.mjs b/scripts/pr-body.mjs index b6a8c01f6c..299457277b 100644 --- a/scripts/pr-body.mjs +++ b/scripts/pr-body.mjs @@ -3,6 +3,7 @@ // Is the pull request described? Reviewers asked one module PR in nine to fill in its description, and half the merged PRs skipped the // guides question AGENTS.md asks of every PR ("Fold what you learn back"). And does a ready one that changes what runs on an instrument // name the exact build that ran on a unit? A base went up ready to merge after only development twins had run (#1694, 17 November 2026). +// And does it list the edge cases the change risks, each with what it showed (docs/TEST_PROCEDURE.md, 20 November 2026)? // Reads only the description, the template, the draft flag and the changed file names: no PR code runs. // // PR_BODY="$(gh pr view --json body --jq .body)" PR_DRAFT=false PR_FILES="$(gh pr diff --name-only)" node scripts/pr-body.mjs @@ -40,15 +41,47 @@ const TESTED = /^tested on (?:a|the|an?) (?:unit|instrument)\b[^:]*:.*\b[0-9a-f] const UNTESTED = /^not tested on (?:a|the|an?) (?:unit|instrument)\b[^:]*:\s*\S/i const plain = line => line.replaceAll('**', '').replaceAll('`', '').replace(/^(?:[-*]|#+)\s*/, '').trim() +// The edge cases the change risks (docs/TEST_PROCEDURE.md#edge-cases), under a line or heading "Edge cases": a table with one row a case, +// | Case | Why this change makes it a risk | How run | Result |, the result "pass", "fail: …" or "not run: why"; or "Edge cases: none, +// because …". A table under another heading does not count, nor the template's empty row. +const EDGE = /^edge cases?\b/i +const EDGE_NONE = /^edge cases?\b[^:]*:\s*none\b[\s,.;:–—-]*because\s+\S/i +const cells = row => row.replace(/^\|/, '').replace(/\|$/, '').split('|').map(cell => cell.trim()) +/** true when the description lists its edge cases, else what is wrong; `own` tells the author's lines from the template's. */ +export function edgeCases(lines, own) { + let incomplete = null + for (let index = 0; index < lines.length; index++) { + if (!EDGE.test(plain(lines[index]))) continue + if (own(lines[index]) && EDGE_NONE.test(plain(lines[index]))) return true + let rows = 0 + for (const next of lines.slice(index + 1)) { + if (!next.startsWith('|')) { + if ((next && rows) || isHeading(next) || /^(?:[-*]\s+)?\*\*/.test(next)) break + continue + } + const row = cells(next) + if (!own(next) || row.every(cell => /^:?-*:?$/.test(cell)) || /^case$/i.test(row[0])) continue + if (row.length < 4 || !row[0] || !row.at(-1) || /^not run\W*$/i.test(row.at(-1))) { incomplete ??= row[0] || next; continue } + rows++ + } + if (rows && !incomplete) return true + } + return incomplete ? 'incomplete' : 'missing' +} + /** What the description still lacks; [] when it is described, answers the guides question, and (ready, changing what runs on an * instrument) names the build that ran on a unit. A draft may still be in test. */ export function bodyProblems(body, template, { draft = false, files = [] } = {}) { const templateLines = new Set(template.split('\n').map(line => line.trim()).filter(Boolean)) - const own = (body ?? '').split('\n').map(line => line.trim()).filter(line => line && !templateLines.has(line) && !NOT_OWN.test(line)) + const isOwn = line => !!line && !templateLines.has(line) && !NOT_OWN.test(line) + const lines = (body ?? '').split('\n').map(line => line.trim()), own = lines.filter(isOwn) const problems = [] if (own.join(' ').length < OWN_TEXT) problems.push('Describe the change in your own words: what was wrong or hard, what this changes and how you checked it (the pull request template asks for each).') const instrument = instrumentFiles(files) if (!draft && instrument.length && !own.some(line => TESTED.test(plain(line)) || UNTESTED.test(plain(line)))) problems.push('This pull request changes what runs on an instrument (' + instrument.slice(0, 3).join(', ') + (instrument.length > 3 ? ` and ${instrument.length - 3} more` : '') + '). Keep it a draft until the exact build ran on a unit, then name it on a line of its own: "Tested on a unit: base 8d1db124 (or the package\'s sha256), MKII, what ran". If it cannot be tested, write "Not tested on a unit: " for the owner to decide. `npm run pr:ready` saying Ready means the checks pass, not that it was tested.') + const edge = !draft && instrument.length ? edgeCases(lines, isOwn) : true + if (edge !== true) problems.push('This pull request changes what runs on an instrument, so it lists the edge cases this change risks and what each showed (docs/TEST_PROCEDURE.md#edge-cases). Under a line "Edge cases", add a table with one row a case: | Case | Why this change makes it a risk | How run | Result |, the result "pass", "fail: what happened" or "not run: why". `npm run test:procedure` writes the empty table. With none, say why: "Edge cases: none, because …".' + + (edge === 'incomplete' ? ' A row there lacks its case or its result, or says "not run" without why.' : '')) if (!own.some((line, index) => answersGuides(line, own[index + 1]))) problems.push('Say what the guides lacked or got wrong while you did this, and where you fixed it, on a line of its own, for example "Guides: nothing". It is how the next developer\'s agent learns what you did (AGENTS.md, Pull requests).') return problems } diff --git a/scripts/pr-body.test.mjs b/scripts/pr-body.test.mjs index 84f324b67c..658a934378 100644 --- a/scripts/pr-body.test.mjs +++ b/scripts/pr-body.test.mjs @@ -42,7 +42,8 @@ it('accepts a description in the template\'s own shape and in free form', () => }) it('asks a ready pull request that changes what runs on an instrument to name the build that ran on a unit', () => { - const described = 'Octatrack base 0.7.8: a module that no track uses rests out of the per-frame hooks; checked with pr:ready.\n\nGuides: HOOKS.md.' + // The edge cases are their own check (below); this one is about the build. + const described = 'Octatrack base 0.7.8: a module that no track uses rests out of the per-frame hooks; checked with pr:ready.\n\nGuides: HOOKS.md.\n\nEdge cases: none, because this test is about the unit line.' const base = ['src/engine/assets/octatrack-base.elemod', 'sdk/runtime/loader/loader.c'] const untested = expect.stringMatching(/^This pull request changes what runs on an instrument \(src\/engine\/assets\/octatrack-base\.elemod\)/) // A draft may still be in test; a ready one says what ran, on which build. @@ -59,3 +60,36 @@ it('asks a ready pull request that changes what runs on an instrument to name th expect(bodyProblems(described, template, { files: ['public/octatrack-modules/repitch/0.2.1-experimental.mwrm'] })).toHaveLength(1) expect(bodyProblems(described, template, { files: ['sdk/octatrack/modules/repitch/repitch.s', 'docs/MODULE_PERFORMANCE.md', 'src/App.tsx'] })).toEqual([]) }) + +it('asks a ready pull request that changes what runs on an instrument for its edge cases, in a table or as none with a reason', () => { + const described = 'Octatrack base 0.7.8: a module that no track uses rests out of the per-frame hooks; checked with pr:ready.\n\nGuides: HOOKS.md.\n\nTested on a unit: base 8d1db124, MKII, the large set.' + const files = ['src/engine/assets/octatrack-base.elemod'] + const missing = expect.stringMatching(/^This pull request changes what runs on an instrument, so it lists the edge cases/) + const incomplete = expect.stringMatching(/lacks its case or its result/) + const table = '\n\n## Edge cases\n\n| Case | Why this change makes it a risk | How run | Result |\n|---|---|---|---|\n' + const row = '| A module resting while its page is open | resting skips its tick | trial, open the page, stop the transport | pass |\n' + // A draft, or a change that runs nowhere, needs none. + expect(bodyProblems(described, template, { draft: true, files })).toEqual([]) + expect(bodyProblems(described, template, { files: ['src/App.tsx'] })).toEqual([]) + expect(bodyProblems(described, template, { files })).toEqual([missing]) + expect(bodyProblems(described + table + row, template, { files })).toEqual([]) + expect(bodyProblems(described + table + row + '| Undo with the page open | the same | trial, Undo | not run: no MKI at hand |\n', template, { files })).toEqual([]) + // As "Edge cases" in bold or a bullet, with an introduction above the table. + expect(bodyProblems(described + '\n\n**Edge cases**\n\nFrom the hook change:\n\n| Case | Why | How | Result |\n|---|---|---|---|\n' + row, template, { files })).toEqual([]) + expect(bodyProblems(described + '\n\n- **Edge cases:** none, because the change only renames a symbol the build strips.', template, { files })).toEqual([]) + // None needs its reason; a header with no row, an empty row, a row without its result or a bare "not run" is not a list. + expect(bodyProblems(described + '\n\nEdge cases: none.', template, { files })).toEqual([missing]) + expect(bodyProblems(described + table, template, { files })).toEqual([missing]) + expect(bodyProblems(described + table + '| | | | |\n', template, { files })).toEqual([missing]) + expect(bodyProblems(described + table + '| A module resting | resting skips its tick | trial | |\n', template, { files })).toEqual([incomplete]) + expect(bodyProblems(described + table + '| A module resting | resting skips its tick | trial | not run |\n', template, { files })).toEqual([incomplete]) + expect(bodyProblems(described + table + row + '| Undo | the same | trial | not run: |\n', template, { files })).toEqual([incomplete]) + // A table under another heading is not the edge cases. + expect(bodyProblems(described + '\n\n## Timings\n\n| Case | Before | After | Result |\n|---|---|---|---|\n| UI tick | 54 | 50 | faster |\n', template, { files })).toEqual([missing]) + // The template's own line, answered below it. + const filled = template.replace('- **What was wrong or hard:**', '- **What was wrong or hard:** the base visited every slot on each tick.') + .replace('- **What the guides lacked or got wrong, and where I fixed it:** ("nothing" is a fine answer)', '- **What the guides lacked or got wrong, and where I fixed it:** nothing') + .replace(/^(- \*\*Edge cases:\*\*.*)$/m, '$1\n\n| Case | Why | How | Result |\n|---|---|---|---|\n' + row) + .replace('- **Tested on a unit:**', '- **Tested on a unit:** base 8d1db124, MKII.') + expect(bodyProblems(filled, template, { files })).toEqual([]) +}) diff --git a/scripts/test-procedure.mjs b/scripts/test-procedure.mjs new file mode 100644 index 0000000000..a852e30aea --- /dev/null +++ b/scripts/test-procedure.mjs @@ -0,0 +1,410 @@ +// The test procedure every change to a module or a base goes through (docs/TEST_PROCEDURE.md), as one command. It runs the +// fixed steps in order, each with the tool that already does it, and stops at the first failure. Without a unit session the +// unit steps are recorded as not run, with the command each would have run. It writes the record for the named build: the +// source revision and the package's SHA-256, each step's result and log, an empty edge-case table and what is left for the +// developer. Nothing is kept, flashed or power-cycled: those stay the developer's (docs/OCTATRACK_DRIVING.md). +// +// npm run test:procedure -- [--package FILE.mwrm | --published] # a module: built from source unless given +// npm run test:procedure -- --base [--package FILE.elemod] # a base, with the large set of every package +// npm run test:procedure -- … --plan # the steps and their commands, nothing run +// npm run test:procedure -- … --share SOCKET # the unit session (npm run device -- serve --share SOCKET); default +// # MODWERK_SHARE_SOCKET or /tmp/modwerk-share.sock. Without one: no unit steps +// npm run test:procedure -- … --no-unit # leave the unit alone even when a session is shared +// npm run test:procedure -- … --emulator-socket SOCK # an ot_emu USB bench (--usb-host) running a development base +// npm run test:procedure -- … --out DIR --soak-seconds 120 --scene "A01, Part 1, stopped" +// +// With the unit queue (`npm run unit`, when the repository has it) the unit steps run as one turn of it, so no other session +// takes the unit between reading it and checking it was put back. +import { spawn, execFileSync } from 'node:child_process' +import { createHash } from 'node:crypto' +import { appendFileSync, existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs' +import { tmpdir } from 'node:os' +import { basename, dirname, join, relative, resolve } from 'node:path' +import { parseArgs } from 'node:util' +import { pathToFileURL } from 'node:url' + +export const ROOT = resolve(import.meta.dirname, '..') +const SOAK_TOOL = 'scripts/octatrack-soak.mjs', SCAN_TOOL = 'scripts/cycle-scan.mjs' +const DEFAULT_SCENE = 'the bank, pattern and Part the unit was on, transport stopped (test:procedure)' + +/** What the developer judges at the unit, after the agent's steps passed on this build (modwerk-test-on-unit, stage 2). */ +export const DEVELOPER = { + module: ['how it sounds and plays, and timing by ear', 'MIDI, scenes and recording with it', 'it beside the other modules installed on their unit', + 'two instances with different settings, on both FX slots and both DSP cores where it can (docs/MODULE_QUALIFICATION.md)', + 'Part reload, project save and reload, and a power cycle with it saved: what survives (the Keep and the power cycle are theirs)'], + base: ['playback across Part and pattern changes with their own set, by ear', 'the Keep, then a power cycle: the kept set comes back', + 'their modules on the base after the RAM boot back to the flashed base', 'anything the change names that only a person hears or sees'], +} +/** What the agent does by hand on the unit inside a trial, which no script covers yet (modwerk-test-on-unit, stage 1). */ +export const BY_HAND = { + module: ['every control and screen by the README\'s button steps, a png: screenshot of each, compared with the README and its UI claims', + 'MAIN and CUE recorded over USB (rec) with a sustained sound, checked for dropouts (runs of exact zeros, a block played twice)'], + base: ['RAM boot into the candidate and back to the starting base, only with the developer\'s OK for each restart; the starting modules back after it', + 'USB captures of MAIN with the large set installed, across Part switches and pattern changes, checked for dropouts'], +} + +/** The fixed steps, in order. `unit` steps need the shared session; `hand` steps are never automated. */ +export const STEPS = [ + { id: 'software', title: 'Software checks', applies: 'both' }, + { id: 'compat', title: 'Beside every other module', applies: 'both' }, + { id: 'build', title: 'Name the build', applies: 'both' }, + { id: 'cost-model', title: 'DSP cost model', applies: 'both' }, + { id: 'emulator', title: 'Emulator rehearsal', applies: 'both' }, + { id: 'unit-read', title: 'Read the unit', applies: 'both', unit: true }, + { id: 'unit-pass', title: 'Scripted unit pass', baseTitle: 'Large set and Undo', applies: 'both', unit: true }, + { id: 'soak', title: 'Soak', applies: 'both', unit: true }, + { id: 'cost-unit', title: 'Cost on the unit', applies: 'both', unit: true }, + { id: 'restore', title: 'Put back', applies: 'both', unit: true }, + { id: 'by-hand', title: 'Agent by hand', applies: 'both', hand: true }, + { id: 'developer', title: 'Developer\'s stage', applies: 'both', hand: true }, +] + +export const titleOf = (step, ctx) => (ctx.kind === 'base' && step.baseTitle) || step.title +const q = arg => /^[\w@%+=:,./-]+$/.test(arg) ? arg : `'${arg.replaceAll("'", "'\\''")}'` +export const shown = argv => argv.map(q).join(' ') +const npmRun = (script, ...args) => ['npm', 'run', script, ...(args.length ? ['--', ...args] : [])] +const node = (...args) => ['node', ...args] + +/** The commands each step runs for this target, or why it is not run. Pure: everything it reads is in ctx. */ +/** Where the build step writes a package built from source. */ +export const builtPackage = ctx => join(ctx.out, (ctx.id ?? 'base') + (ctx.kind === 'module' ? '.mwrm' : '.elemod')) + +export function plan(step, ctx) { + const module = ctx.kind === 'module', pkg = ctx.pkg ?? builtPackage(ctx) + const set = (ctx.setPackages ?? []).join(',') + const octatrack = !module || ctx.machine === 'octatrack' + if (!octatrack && !['software', 'build', 'by-hand', 'developer'].includes(step.id)) return { skip: 'the procedure\'s unit and compatibility tools drive the Octatrack; follow /modwerk-test-on-unit for ' + ctx.machine } + switch (step.id) { + case 'software': + if (!module) return { commands: [npmRun('sdk:check')] } + if (!ctx.source) return { skip: 'no module source for ' + ctx.id + ' in this checkout' } + return { commands: [npmRun('module:doctor', ...(ctx.draft ? ['--draft'] : []), ctx.id)] } + case 'compat': + if (!module) return { commands: [npmRun('modules:compat')] } + if (!ctx.source) return { skip: 'no module source for ' + ctx.id + ' in this checkout' } + if (ctx.draft) return { skip: 'a draft is judged beside every other module by module:doctor --draft (its compatibility line, step 1)' } + return { commands: [npmRun('modules:compat', ctx.id)] } + case 'build': + if (ctx.pkg) return { commands: [] } + if (!module) return { commands: [] } + if (!octatrack) return { skip: 'module:dev builds Octatrack packages; name the build by hand (revision and SHA-256)' } + return { commands: [npmRun('module:dev', ctx.id, '--build-only', ...(ctx.draft === false && ctx.alsoDraft ? ['--listed'] : []), '--out', pkg)] } + case 'cost-model': + if (!ctx.tools?.cycleScan) return { skip: 'the DSP cycle scan (' + SCAN_TOOL + ', pull request #1798) is not in this checkout yet' } + return { commands: [node(SCAN_TOOL, 'check')] } + case 'emulator': + if (!ctx.emulatorSocket) return { skip: 'no emulator session (--emulator-socket SOCK, an ot_emu with --usb-host on a development base)' } + return { commands: [module ? node('scripts/device.mjs', 'try', pkg, '--seconds', '20', '--emulator', '--socket', ctx.emulatorSocket) + : node('scripts/device.mjs', 'set', set, '--seconds', '20', '--emulator', '--socket', ctx.emulatorSocket)], emulator: true } + case 'unit-read': + return { commands: [node('scripts/device.mjs', 'status', '--socket', ctx.share), node('scripts/device.mjs', 'do', 'inventory', '--socket', ctx.share)] } + case 'unit-pass': + if (!module) return { commands: [node('scripts/device.mjs', 'set', set, '--seconds', '30', '--socket', ctx.share)] } + return { commands: [npmRun('device:test', '--share', ctx.share, '--testing-entry', join(ctx.out, 'device-test.md'), + ...(ctx.tools?.soak ? [] : ['--soak', String(ctx.soakSeconds)]), pkg)] } + case 'soak': { + if (!ctx.tools?.soak) return module ? { inside: 'unit-pass', note: 'ran inside the scripted pass as device:test --soak ' + ctx.soakSeconds + '; the fast seeded soak (' + SOAK_TOOL + ', pull request #1770) is not in this checkout yet' } + : { skip: 'the fast seeded soak (' + SOAK_TOOL + ', pull request #1770) is not in this checkout yet' } + const soak = node(SOAK_TOOL, '--seconds', String(ctx.soakSeconds), '--log', join(ctx.out, 'soak.json')) + // A module soaks inside a trial of its own, rolled back at the end; a base soaks with whatever the unit runs. + return module ? { commands: [soak], trial: node('scripts/device.mjs', 'try', pkg, '--seconds', String(ctx.soakSeconds + 300), '--socket', ctx.share) } : { commands: [soak] } + } + case 'cost-unit': + if (module && ctx.baseBound) return { skip: 'a base-bound package: device:price leaves it out, since a development twin does not trust it' } + return { commands: [npmRun('device:price', '--share', ctx.share, '--out', join(ctx.out, 'price.json'), '--scene', ctx.scene ?? DEFAULT_SCENE, ...(module ? [pkg] : ctx.priceModules ?? []))] } + case 'restore': + return { commands: [node('scripts/device.mjs', 'do', 'inventory', '--socket', ctx.share)], compare: 'unit-read' } + case 'by-hand': return { todo: BY_HAND[ctx.kind] } + case 'developer': return { todo: DEVELOPER[ctx.kind] } + } + throw new Error('No step ' + step.id) +} + +/** The last line of the output that reads as JSON: device.mjs's inventory step prints one. */ +export function lastJson(text) { + for (const line of (text ?? '').trim().split('\n').reverse()) { try { return JSON.parse(line) } catch { /* not this line */ } } + return undefined +} + +/** Run the steps in `ids`, in the fixed order, stopping at the first failure. deps.exec(argv, logFile) -> {code, output}; + * deps.start(argv, logFile) -> {waitFor(regex, ms), stop()} for a trial held across another command. */ +export async function runSteps(ids, ctx, deps, results = []) { + const failed = () => results.find(result => result.status === 'failed') + for (const step of STEPS.filter(step => ids.includes(step.id))) { + const result = { id: step.id, title: titleOf(step, ctx), unit: !!step.unit, status: 'not run', commands: [], seconds: 0 } + results.push(result) + const stop = failed() + const p = plan(step, ctx) + result.commands = [...(p.trial ? [p.trial] : []), ...(p.commands ?? [])].map(shown) + if (p.emulator) result.emulator = true + if (stop && stop !== result) { result.reason = `stopped: step ${STEPS.findIndex(s => s.id === stop.id) + 1} (${stop.title}) failed`; continue } + if (p.skip) { result.reason = p.skip; continue } + if (step.unit && !ctx.unit?.available) { result.reason = ctx.unit?.reason ?? 'no unit session'; continue } + if (p.todo) { result.status = 'to do'; result.todo = p.todo; continue } + if (p.inside) { + const host = results.find(r => r.id === p.inside) + result.status = host?.status === 'passed' ? 'passed' : 'not run' + result.reason = p.note + continue + } + const started = deps.now() + const log = join(ctx.out, 'logs', `${String(STEPS.indexOf(step) + 1).padStart(2, '0')}-${step.id}.log`) + result.log = relative(ctx.out, log) + try { + let trial + if (p.trial) { + trial = deps.start(p.trial, log) + await trial.waitFor(/^trial:.*running$/m, 60000) + } + const outputs = [] + let code = 0 + for (const argv of p.commands) { + const run = await deps.exec(argv, log) + outputs.push(run.output ?? '') + if (run.code !== 0) { code = run.code; result.reason = `exit ${run.code}: ${shown(argv)}`; break } + } + if (trial) { + const end = await trial.stop() + if (/^accepted$/m.test(end.output ?? '')) { code ||= 1; result.reason ??= 'the trial was kept: it must roll back' } + else if (!/^rolled back/m.test(end.output ?? '')) { code ||= 1; result.reason ??= 'the trial did not report its rollback' } + } + if (code === 0 && step.id === 'build') { + ctx.pkg ??= builtPackage(ctx) + if (!deps.exists(ctx.pkg)) { code = 1; result.reason = 'no package at ' + ctx.pkg } + else ctx.build.package = { path: ctx.pkg, sha256: deps.sha256(ctx.pkg) } + } + if (code === 0 && step.id === 'unit-read') ctx.startInventory = lastJson(outputs.at(-1)) + if (code === 0 && p.compare) { + const now = lastJson(outputs.at(-1)) + if (JSON.stringify(now) !== JSON.stringify(ctx.startInventory)) { code = 1; result.reason = 'the inventory differs from the one read first: ' + JSON.stringify(ctx.startInventory) + ' then ' + JSON.stringify(now) } + } + result.status = code === 0 ? 'passed' : 'failed' + } catch (error) { + result.status = 'failed' + result.reason = error.message + } + result.seconds = Math.round((deps.now() - started) / 100) / 10 + } + return results +} + +/** The whole procedure: the steps before the unit here, the unit steps in one turn of the unit queue when there is one. */ +export async function runProcedure(ctx, deps) { + const local = STEPS.filter(step => !step.unit && !step.hand).map(step => step.id) + const unit = STEPS.filter(step => step.unit).map(step => step.id) + const results = await runSteps(local, ctx, deps) + const blocked = results.some(result => result.status === 'failed') + if (!blocked && ctx.unit?.available && ctx.tools?.unitQueue) { + const file = join(ctx.out, 'unit-steps.json') + const argv = ['npm', 'run', 'unit', '--', 'run', '--note', `test:procedure ${ctx.id ?? 'base'} ${ctx.build.revision.slice(0, 8)}`, '--expect', ctx.kind === 'base' ? '45m' : '15m', '--', + 'node', 'scripts/test-procedure.mjs', ...(ctx.kind === 'base' ? ['--base'] : [ctx.id]), '--package', ctx.pkg, '--share', ctx.share, '--out', ctx.out, + '--soak-seconds', String(ctx.soakSeconds), ...(ctx.scene ? ['--scene', ctx.scene] : []), '--unit-phase', file] + const started = deps.now(), run = await deps.exec(argv, join(ctx.out, 'logs', 'unit-queue.log')) + const inner = deps.exists(file) ? JSON.parse(deps.read(file)) : null + if (inner) results.push(...inner) + else { + await runSteps(unit, { ...ctx, unit: { available: false, reason: 'the unit queue run ended without a result (exit ' + run.code + ')' } }, deps, results) + results.find(result => result.id === 'unit-read').status = 'failed' + results.find(result => result.id === 'unit-read').seconds = Math.round((deps.now() - started) / 100) / 10 + } + } else await runSteps(unit, ctx, deps, results) + await runSteps(STEPS.filter(step => step.hand).map(step => step.id), ctx, deps, results) + return results +} + +/** Where a change touches, the edge cases it asks for: a starting list from the manifest and the changed files, never the whole + * answer (docs/TEST_PROCEDURE.md#edge-cases). */ +export const TOUCHES = [ + { when: c => c.manifest?.compatibility?.effectId != null, touches: 'an effect slot', ask: 'FX1 and FX2, both DSP cores, eight instances at once; one edited while another plays', see: 'MODULE_QUALIFICATION.md#essential-persistence-and-instance-checks--8-october-2026' }, + { when: c => (c.manifest?.compatibility?.uiClaims ?? []).some(claim => claim.startsWith('key:')), touches: 'a key gesture', ask: 'the gesture in menus, SETUP pages, dialogs and the message box; a quick second press; a module holding a neighbouring gesture', see: 'OCTATRACK_MODULE_EDGE_CASES.md#key-gestures-in-windows' }, + { when: c => (c.manifest?.compatibility?.uiClaims ?? []).some(claim => claim.startsWith('screen:')), touches: 'a page of its own', ask: 'the page open when the trial ends or Undo runs; the page open during a Part or bank change', see: 'OCTATRACK_DRIVING.md' }, + { when: c => c.manifest?.category === 'machines', touches: 'a track machine', ask: 'the project naming it after it is removed (MISSING); a Part change into a Part that uses it while playing', see: 'OCTATRACK_MODULE_EDGE_CASES.md#projects-and-the-installed-modules' }, + { when: c => ['playback', 'midi-usb', 'scenes'].includes(c.manifest?.category), touches: 'timing', ask: 'the slowest and fastest tempo, track speed and swing; pattern and bank changes on the beat; the arranger', see: 'module-guides/sequencing.md' }, + { when: c => /\b(buffer|memory|pool|bytes|words)\b/i.test(JSON.stringify(c.manifest?.resources?.storage ?? '')), touches: 'memory', ask: 'the module pool nearly full; a delay buffer next to it; the largest set it can join', see: 'OCTATRACK_HARDWARE_TRAPS.md#dsp-loader-dynamic-dsp-code' }, + { when: c => c.kind === 'module', touches: 'persistence', ask: 'saved in a Part, then a Part reload, a project reload and a power cycle; removed while a saved Part still names it', see: 'OCTATRACK_MODULE_EDGE_CASES.md#copying-and-saving' }, + { when: c => c.files.some(f => /loader|modset|runtime/i.test(f)), touches: 'the loader', ask: 'install, replace, remove and Undo; a set the base refuses rolls back whole; the pool full; a trial that expires with a page open', see: 'OCTATRACK_HARDWARE_TRAPS.md#dsp-loader-dynamic-dsp-code' }, + { when: c => c.files.some(f => /(^|\/)dsp|\.asm$/i.test(f)), touches: 'DSP code', ask: 'DSP FULL; both cores; the receiver window; pipeline stalls the instruction count hides', see: 'OCTATRACK_HARDWARE_TRAPS.md#coldfire-and-dsp-load' }, + { when: c => c.files.some(f => /usb|ep0|bench/i.test(f)), touches: 'the USB link', ask: 'USB unplugged mid-transfer; the host silent until the base rolls back; a reconnect', see: 'OCTATRACK_HARDWARE_TRAPS.md#usb-and-ep0' }, + { when: c => c.files.some(f => /status\.|cpu|guard/i.test(f)), touches: 'load and admission', ask: 'the pick at the 85 % line with the delays quiet and open; the guard counters while playing', see: 'OCTATRACK_HARDWARE_TRAPS.md#coldfire-and-dsp-load' }, + { when: c => c.files.some(f => /boot|startup|restore|flash/i.test(f)), touches: 'boot and restore', ask: 'PROJ held at power-on; the restore held back; a RAM boot back to the flashed base', see: 'OCTATRACK_MODULE_EDGE_CASES.md#boot-and-power' }, + { when: c => c.kind === 'base', touches: 'every installed module', ask: 'the largest set installs and Undo restores the starting inventory; the starting modules after the RAM boot back', see: 'TEST_PROCEDURE.md#what-a-base-adds' }, +] +export const suggestEdgeCases = context => TOUCHES.filter(rule => rule.when({ files: [], ...context })).map(({ touches, ask, see }) => ({ touches, ask, see })) + +const STATUS_WORD = { passed: 'passed', failed: '**failed**', 'not run': 'not run', 'to do': 'to do' } +const cell = text => String(text ?? '').replaceAll('|', '\\|').replaceAll('\n', ' ') + +/** The record as a TESTING.md entry (or, for a base, a docs/verification/ record), with the lines the pull request takes. */ +export function recordMarkdown(record) { + const { target, build, steps } = record, sha = build.package?.sha256 + const what = target.kind === 'base' ? `${target.machine} base ${target.version ?? ''}`.trim() : `${target.id} ${target.version ?? ''}`.trim() + const unitRan = steps.some(step => step.unit && step.status === 'passed') + const lines = [`### Test procedure: ${what}, ${record.date}`, '', + `Build: revision \`${build.revision.slice(0, 12)}\`${build.dirty ? ' with uncommitted changes' : ''}, ${build.package ? `package \`${basename(build.package.path)}\` SHA-256 \`${sha}\`` : 'no package named'}. ` + + `\`${record.command}\`, ${record.seconds} s. Emulator results are not hardware evidence; only what ran on the unit is.`, '', + '| # | Step | Result | Command | Evidence |', '|---|---|---|---|---|', + ...steps.map((step, index) => `| ${index + 1} | ${step.title}${step.emulator ? ' (emulator)' : ''} | ${STATUS_WORD[step.status]}${step.reason ? ': ' + cell(step.reason) : ''} | ${step.commands.map(c => '`' + cell(c) + '`').join('
')} | ${step.log ?? ''} |`), + '', '#### Edge cases for this change', '', + 'Derive them from what the change touches and run each one (docs/TEST_PROCEDURE.md#edge-cases). A start, from the manifest and the changed files:', '', + ...(record.edgeCases.suggested.length ? record.edgeCases.suggested.map(s => `- ${s.touches}: ${s.ask} (docs/${s.see})`) : ['- nothing matched: read the diff']), '', + '| Case | Why this change makes it a risk | How run | Result |', '|---|---|---|---|', '| | | | |', '', + '#### Left for the developer', '', ...DEVELOPER[target.kind].map(item => '- ' + item), '', + '#### For the pull request', '', + unitRan && sha ? `Tested on a unit: package ${sha.slice(0, 12)}, , test:procedure steps ${steps.map((s, i) => s.unit && s.status === 'passed' ? i + 1 : null).filter(Boolean).join(', ')}; the developer's stage .` + : `Not tested on a unit: ${steps.find(step => step.unit)?.reason ?? 'the unit steps did not run'}.`, + 'Edge cases: the table above, one row a case (or "Edge cases: none, because …").', ''] + return lines.join('\n') +} + +/** A module of another machine: the elemod machines' module folders (as module:doctor finds them) and the Zoom's. */ +function otherMachine(root, id) { + try { + for (const profile of JSON.parse(readFileSync(join(root, 'src/devices/machines.generated.json'), 'utf8'))) { + if (profile.sdk?.platform === 'elemod' && profile.sdk.modules && existsSync(join(root, profile.sdk.modules, id))) return { machine: profile.id, folder: join(root, profile.sdk.modules, id) } + } + } catch { /* no profiles: only the Octatrack and the Zoom */ } + return existsSync(join(root, 'sdk/zoom/modules', id)) ? { machine: 'zoom', folder: join(root, 'sdk/zoom/modules', id) } : null +} + +function moduleContext(root, id) { + const listed = join(root, 'sdk/octatrack/modules', id), draft = join(root, 'sdk/drafts', id) + const other = existsSync(listed) || existsSync(draft) ? null : otherMachine(root, id) + const folder = existsSync(listed) ? listed : existsSync(draft) ? draft : other?.folder + const manifest = folder && existsSync(join(folder, 'octamod.module.json')) ? JSON.parse(readFileSync(join(folder, 'octamod.module.json'), 'utf8')) : null + return { source: !!folder, draft: !existsSync(listed) && existsSync(draft), alsoDraft: existsSync(listed) && existsSync(draft), manifest, + machine: other?.machine ?? 'octatrack', version: manifest?.version } +} +const catalogue = root => JSON.parse(readFileSync(join(root, 'src/engine/assets/octatrack-module-packages.json'), 'utf8')).packages + +/** Everything the steps read, from the arguments and the checkout. */ +export function context(root, values, positionals, env = process.env) { + const git = (...args) => { try { return execFileSync('git', args, { cwd: root, encoding: 'utf8', stdio: ['ignore', 'pipe', 'ignore'] }).trim() } catch { return '' } } + const share = values.share ?? env.MODWERK_SHARE_SOCKET ?? '/tmp/modwerk-share.sock' + const scripts = JSON.parse(readFileSync(join(root, 'package.json'), 'utf8')).scripts ?? {} + const rows = catalogue(root) + let ctx = { kind: values.base ? 'base' : 'module', share, soakSeconds: Number(values['soak-seconds'] ?? 120), scene: values.scene, emulatorSocket: values['emulator-socket'], + tools: { cycleScan: existsSync(join(root, SCAN_TOOL)), soak: existsSync(join(root, SOAK_TOOL)), unitQueue: !!scripts.unit }, + build: { revision: git('rev-parse', 'HEAD') || 'unknown', dirty: !!git('status', '--porcelain', '--untracked-files=no') } } + const target = positionals[0] + if (ctx.kind === 'module') { + if (!target) throw new Error('Name a module id or a package: npm run test:procedure -- | FILE.mwrm | --base') + const file = target.endsWith('.mwrm') ? resolve(target) : null + const id = file ? (basename(dirname(file)) !== 'modwerk-dev' && existsSync(join(root, 'sdk/octatrack/modules', basename(dirname(file)))) ? basename(dirname(file)) : basename(file, '.mwrm')) : target + ctx = { ...ctx, id, ...moduleContext(root, id) } + const row = rows.find(r => r.id === id) + ctx.baseBound = !!row?.requiredBase + if (file || values.package) ctx.pkg = resolve(values.package ?? file) + else if (values.published) { if (!row) throw new Error(id + ' has no published Octatrack package'); ctx.pkg = join(root, 'public', row.path) } + if (!ctx.source && !ctx.pkg) throw new Error('No module named ' + id + ' under sdk/octatrack/modules, sdk/drafts or another machine\'s module folder.') + } else { + ctx.machine = 'octatrack' + ctx.pkg = resolve(values.package ?? join(root, 'src/engine/assets/octatrack-base.elemod')) + ctx.version = JSON.parse(readFileSync(join(root, 'sdk/machines/octatrack/base-versions.json'), 'utf8')).bases.at(-1)?.version + ctx.setPackages = rows.filter(r => !r.requiredBase).map(r => join(root, 'public', r.path)).filter(path => existsSync(path)) + ctx.priceModules = values['price-modules'] ? values['price-modules'].split(',') : undefined + } + const stamp = new Date().toISOString().slice(0, 10) + ctx.out = resolve(values.out ?? join(tmpdir(), 'modwerk-procedure', `${ctx.id ?? 'octatrack-base'}-${stamp}-${ctx.build.revision.slice(0, 8)}`)) + ctx.unit = values['no-unit'] ? { available: false, reason: 'left alone with --no-unit' } + : /^\d+$/.test(share) || existsSync(share) ? { available: true } + : { available: false, reason: `no unit session on ${share} (npm run device -- serve --share ${share}, with the developer's OK)` } + ctx.files = git('diff', '--name-only', 'origin/main...HEAD').split('\n').filter(Boolean) + return ctx +} + +/** The record the files hold: JSON for programs, procedure.md for people. */ +export function record(ctx, steps, { started, finished, command }) { + return { procedure: 1, command, date: new Date(started).toISOString().slice(0, 10), started: new Date(started).toISOString(), finished: new Date(finished).toISOString(), + seconds: Math.round((finished - started) / 1000), + target: ctx.kind === 'base' ? { kind: 'base', machine: ctx.machine, version: ctx.version } : { kind: 'module', id: ctx.id, version: ctx.version, machine: ctx.machine, draft: !!ctx.draft }, + build: ctx.build, unit: { ...ctx.unit, share: ctx.share }, + steps, edgeCases: { suggested: suggestEdgeCases({ kind: ctx.kind, manifest: ctx.manifest, files: ctx.files ?? [] }), cases: [] }, + developer: { status: 'to do', items: DEVELOPER[ctx.kind] } } +} + +function realDeps(root) { + const npm = argv => argv[0] === 'npm' && process.env.npm_execpath ? [process.execPath, process.env.npm_execpath, ...argv.slice(1)] : argv[0] === 'node' ? [process.execPath, ...argv.slice(1)] : argv + const launch = (argv, log) => { + mkdirSync(dirname(log), { recursive: true }) + appendFileSync(log, '$ ' + shown(argv) + '\n') + console.log('\n$ ' + shown(argv)) + const [command, ...args] = npm(argv) + const child = spawn(command, args, { cwd: root, stdio: ['ignore', 'pipe', 'pipe'] }) + const state = { output: '' } + const take = chunk => { const text = chunk.toString(); state.output += text; process.stdout.write(text); appendFileSync(log, text) } + child.stdout.on('data', take); child.stderr.on('data', take) + state.done = new Promise(done => child.once('close', (code, signal) => done(code ?? (signal ? 128 : 1)))) + return { child, state } + } + return { + now: () => Date.now(), + exists: path => existsSync(path), + read: path => readFileSync(path, 'utf8'), + sha256: path => createHash('sha256').update(readFileSync(path)).digest('hex'), + exec: async (argv, log) => { const { state } = launch(argv, log); const code = await state.done; return { code, output: state.output } }, + start: (argv, log) => { + const { child, state } = launch(argv, log) + let ended = false + state.done.then(() => { ended = true }) + return { + async waitFor(pattern, ms) { + for (const until = Date.now() + ms; Date.now() < until; await new Promise(r => setTimeout(r, 250))) { + if (pattern.test(state.output)) return + if (ended) break + } + throw new Error('the trial did not start: ' + state.output.trim().split('\n').slice(-3).join(' / ')) + }, + async stop() { + if (!ended) child.kill('SIGINT') + const code = await Promise.race([state.done, new Promise(r => setTimeout(() => r('timeout'), 60000))]) + if (code === 'timeout') { child.kill('SIGKILL'); return { code: 1, output: state.output + '\nthe trial did not end within 60 s: unplug USB, the base rolls back what was not kept' } } + return { code, output: state.output } + }, + } + }, + } +} + +const OPTIONS = { base: { type: 'boolean' }, package: { type: 'string' }, published: { type: 'boolean' }, plan: { type: 'boolean' }, out: { type: 'string' }, + share: { type: 'string' }, 'no-unit': { type: 'boolean' }, 'emulator-socket': { type: 'string' }, 'soak-seconds': { type: 'string' }, scene: { type: 'string' }, + 'price-modules': { type: 'string' }, 'unit-phase': { type: 'string' }, help: { type: 'boolean', short: 'h' } } + +async function main() { + const { values, positionals } = parseArgs({ allowPositionals: true, options: OPTIONS }) + if (values.help || (!values.base && !positionals.length)) { + console.log('Usage: npm run test:procedure -- | FILE.mwrm | --base [--plan] [--package FILE] [--published] [--share SOCKET] [--no-unit]\n' + + ' [--emulator-socket SOCK] [--out DIR] [--soak-seconds 120] [--scene TEXT] [--price-modules a,b] (docs/TEST_PROCEDURE.md)') + process.exit(values.help ? 0 : 2) + } + let ctx + try { ctx = context(ROOT, values, positionals) } catch (error) { console.error(error.message); process.exit(2) } + const deps = realDeps(ROOT) + if (values['unit-phase']) { + // One turn of the unit queue: only the unit steps, their results for the run that started it. + const results = await runSteps(STEPS.filter(step => step.unit).map(step => step.id), ctx, deps) + writeFileSync(values['unit-phase'], JSON.stringify(results, null, 1) + '\n') + process.exit(results.some(result => result.status === 'failed') ? 1 : 0) + } + if (values.plan) { + console.log(`The test procedure for ${ctx.kind === 'base' ? 'the Octatrack base' : ctx.id} (docs/TEST_PROCEDURE.md). Unit: ${ctx.unit.available ? 'a session on ' + ctx.share : ctx.unit.reason}.`) + STEPS.forEach((step, index) => { + const p = plan(step, ctx) + const how = p.todo ? 'by hand: ' + p.todo.join('; ') : p.skip ? 'not run: ' + p.skip : step.unit && !ctx.unit.available ? 'not run: ' + ctx.unit.reason : p.inside ? p.note : [...(p.trial ? [p.trial] : []), ...(p.commands ?? [])].map(shown).join(' then ') || 'hash ' + (ctx.pkg ?? 'the built package') + console.log(`${String(index + 1).padStart(2)}. ${titleOf(step, ctx)}: ${how}`) + }) + return + } + mkdirSync(ctx.out, { recursive: true }) + const started = Date.now() + const steps = await runProcedure(ctx, deps) + const command = 'npm run test:procedure -- ' + process.argv.slice(2).map(q).join(' ') + const result = record(ctx, steps, { started, finished: Date.now(), command }) + writeFileSync(join(ctx.out, 'procedure.json'), JSON.stringify(result, null, 1) + '\n') + writeFileSync(join(ctx.out, 'procedure.md'), recordMarkdown(result)) + console.log('\n' + steps.map((step, index) => `${String(index + 1).padStart(2)}. ${step.title}: ${step.status}${step.reason ? ' (' + step.reason + ')' : ''}`).join('\n')) + console.log(`\nRecord: ${join(ctx.out, 'procedure.md')} and procedure.json, ${result.seconds} s. Fill in its edge-case table, run each case, then copy the entry to ` + + (ctx.kind === 'base' ? 'docs/verification/-.md' : `the module's TESTING.md`) + ' and its last two lines to the pull request.') + process.exitCode = steps.some(step => step.status === 'failed') ? 1 : 0 +} + +if (process.argv[1] && import.meta.url === pathToFileURL(process.argv[1]).href) await main() diff --git a/scripts/test-procedure.test.mjs b/scripts/test-procedure.test.mjs new file mode 100644 index 0000000000..ed6f92b06a --- /dev/null +++ b/scripts/test-procedure.test.mjs @@ -0,0 +1,202 @@ +import { mkdtempSync, readFileSync } from 'node:fs' +import { tmpdir } from 'node:os' +import { join } from 'node:path' +import { describe, expect, it } from 'vitest' +import { context, plan, record, recordMarkdown, runProcedure, STEPS, suggestEdgeCases } from './test-procedure.mjs' +import { bodyProblems } from './pr-body.mjs' + +const INVENTORY = '[{"name":"KITS","version":"0.2.0"}]' +const moduleCtx = (extra = {}) => ({ kind: 'module', id: 'vibrato', version: '0.1.0', machine: 'octatrack', source: true, draft: false, out: '/out', share: '/tmp/share.sock', + soakSeconds: 120, tools: { cycleScan: false, soak: false, unitQueue: false }, build: { revision: 'e84798ebb0000000000000000000000000000000', dirty: false }, + unit: { available: true }, files: [], manifest: { category: 'effects', compatibility: { effectId: 9, uiClaims: [] } }, ...extra }) + +/** Fake tools: every command passes and device.mjs's inventory prints the same set, unless `fail` or `inventories` say otherwise. */ +function fakeDeps({ fail = [], inventories = [INVENTORY, INVENTORY], files = {}, trialOutput = 'trial: 1234… running\nrolled back (pass --accept to keep it)' } = {}) { + const ran = [], started = [] + let clock = 0, inventory = 0 + return { + ran, started, + now: () => (clock += 1000), + exists: path => path in files || path.endsWith('.mwrm') || path.endsWith('.elemod'), + read: path => files[path], + sha256: () => 'ab'.repeat(32), + exec: async argv => { + const line = argv.join(' ') + ran.push(line) + if (argv[2] === 'unit' && files.onQueue) files.onQueue(argv) + const code = fail.some(part => line.includes(part)) ? 1 : 0 + return { code, output: line.endsWith('do inventory --socket /tmp/share.sock') ? inventories[inventory++] : 'ok' } + }, + start: argv => { + started.push(argv.join(' ')) + return { waitFor: async () => {}, stop: async () => ({ code: 0, output: trialOutput }) } + }, + } +} +const statuses = steps => Object.fromEntries(steps.map(step => [step.id, step.status])) + +describe('the steps', () => { + it('runs in the fixed order, the unit steps after the software, emulator and build steps', () => { + expect(STEPS.map(step => step.id)).toEqual(['software', 'compat', 'build', 'cost-model', 'emulator', 'unit-read', 'unit-pass', 'soak', 'cost-unit', 'restore', 'by-hand', 'developer']) + expect(STEPS.filter(step => step.unit).map(step => step.id)).toEqual(['unit-read', 'unit-pass', 'soak', 'cost-unit', 'restore']) + }) + + it('calls the existing tools: module:doctor, modules:compat, module:dev, device:test, device:price', async () => { + const deps = fakeDeps() + const steps = await runProcedure(moduleCtx(), deps) + expect(deps.ran).toEqual([ + 'npm run module:doctor -- vibrato', + 'npm run modules:compat -- vibrato', + 'npm run module:dev -- vibrato --build-only --out /out/vibrato.mwrm', + 'node scripts/device.mjs status --socket /tmp/share.sock', + 'node scripts/device.mjs do inventory --socket /tmp/share.sock', + 'npm run device:test -- --share /tmp/share.sock --testing-entry /out/device-test.md --soak 120 /out/vibrato.mwrm', + expect.stringMatching(/^npm run device:price -- --share \/tmp\/share.sock --out \/out\/price.json --scene .+ \/out\/vibrato.mwrm$/), + 'node scripts/device.mjs do inventory --socket /tmp/share.sock', + ]) + expect(statuses(steps)).toEqual({ software: 'passed', compat: 'passed', build: 'passed', 'cost-model': 'not run', emulator: 'not run', 'unit-read': 'passed', + 'unit-pass': 'passed', soak: 'passed', 'cost-unit': 'passed', restore: 'passed', 'by-hand': 'to do', developer: 'to do' }) + expect(steps.find(step => step.id === 'soak').reason).toMatch(/inside the scripted pass as device:test --soak 120.*#1770/) + expect(steps.find(step => step.id === 'cost-model').reason).toMatch(/#1798/) + }) + + it('stops at the first failure and records every later step as not run, with the step that stopped it', async () => { + const deps = fakeDeps({ fail: ['modules:compat'] }) + const steps = await runProcedure(moduleCtx(), deps) + expect(deps.ran).toEqual(['npm run module:doctor -- vibrato', 'npm run modules:compat -- vibrato']) + expect(statuses(steps)).toMatchObject({ software: 'passed', compat: 'failed', build: 'not run', 'unit-pass': 'not run', 'by-hand': 'not run', developer: 'not run' }) + expect(steps.find(step => step.id === 'build').reason).toBe('stopped: step 2 (Beside every other module) failed') + expect(steps.find(step => step.id === 'compat').reason).toBe('exit 1: npm run modules:compat -- vibrato') + // The record still names the command a step would have run. + expect(steps.find(step => step.id === 'unit-pass').commands[0]).toMatch(/^npm run device:test/) + }) + + it('skips the unit steps cleanly without a unit session and still runs the rest', async () => { + const deps = fakeDeps() + const steps = await runProcedure(moduleCtx({ unit: { available: false, reason: 'no unit session on /tmp/share.sock' } }), deps) + expect(deps.ran.some(line => /device/.test(line))).toBe(false) + for (const id of ['unit-read', 'unit-pass', 'soak', 'cost-unit', 'restore']) { + expect(steps.find(step => step.id === id)).toMatchObject({ status: 'not run', reason: 'no unit session on /tmp/share.sock' }) + } + expect(statuses(steps)).toMatchObject({ software: 'passed', build: 'passed', 'by-hand': 'to do', developer: 'to do' }) + }) + + it('fails the put-back step when the inventory at the end differs from the one read first', async () => { + const steps = await runProcedure(moduleCtx(), fakeDeps({ inventories: [INVENTORY, '[]'] })) + expect(steps.find(step => step.id === 'restore')).toMatchObject({ status: 'failed', reason: expect.stringMatching(/inventory differs/) }) + }) + + it('uses a package it is given instead of building one, and names it by its SHA-256', async () => { + const deps = fakeDeps(), ctx = moduleCtx({ pkg: '/p/vibrato.mwrm' }) + await runProcedure(ctx, deps) + expect(deps.ran.some(line => line.includes('module:dev'))).toBe(false) + expect(ctx.build.package).toEqual({ path: '/p/vibrato.mwrm', sha256: 'ab'.repeat(32) }) + }) + + it('runs the emulator step only with an emulator session, labelled as emulator evidence', async () => { + const deps = fakeDeps() + const steps = await runProcedure(moduleCtx({ emulatorSocket: '/tmp/emu.sock', unit: { available: false, reason: 'none' } }), deps) + expect(deps.ran).toContain('node scripts/device.mjs try /out/vibrato.mwrm --seconds 20 --emulator --socket /tmp/emu.sock') + expect(steps.find(step => step.id === 'emulator')).toMatchObject({ status: 'passed', emulator: true }) + }) + + it('soaks a module inside a trial of its own once the fast soak exists, and fails a trial that was kept', async () => { + const tools = { cycleScan: true, soak: true, unitQueue: false } + const deps = fakeDeps() + const steps = await runProcedure(moduleCtx({ tools }), deps) + expect(deps.ran).toContain('node scripts/cycle-scan.mjs check') + expect(deps.ran).toContain('node scripts/octatrack-soak.mjs --seconds 120 --log /out/soak.json') + expect(deps.ran.find(line => line.startsWith('npm run device:test'))).not.toContain('--soak') + expect(deps.started).toEqual(['node scripts/device.mjs try /out/vibrato.mwrm --seconds 420 --socket /tmp/share.sock']) + expect(statuses(steps)).toMatchObject({ 'cost-model': 'passed', soak: 'passed' }) + const kept = await runProcedure(moduleCtx({ tools }), fakeDeps({ trialOutput: 'trial: 12… running\naccepted' })) + expect(kept.find(step => step.id === 'soak')).toMatchObject({ status: 'failed', reason: expect.stringMatching(/kept/) }) + }) + + it('runs a base with the large set, every package priced, and no package of its own to build', async () => { + const deps = fakeDeps() + const ctx = moduleCtx({ kind: 'base', id: undefined, machine: 'octatrack', version: '0.7', pkg: '/r/octatrack-base.elemod', setPackages: ['/p/a.mwrm', '/p/b.mwrm'] }) + const steps = await runProcedure(ctx, deps) + expect(deps.ran.slice(0, 2)).toEqual(['npm run sdk:check', 'npm run modules:compat']) + expect(deps.ran).toContain('node scripts/device.mjs set /p/a.mwrm,/p/b.mwrm --seconds 30 --socket /tmp/share.sock') + expect(deps.ran.find(line => line.startsWith('npm run device:price'))).toMatch(/--scene .+[^m]$/) // no package named: every USB package + expect(steps.find(step => step.id === 'unit-pass').title).toBe('Large set and Undo') + expect(steps.find(step => step.id === 'soak')).toMatchObject({ status: 'not run', reason: expect.stringMatching(/#1770/) }) + }) + + it('runs the unit steps as one turn of the unit queue when the repository has one', async () => { + const files = {} + files.onQueue = () => { files['/out/unit-steps.json'] = JSON.stringify([{ id: 'unit-read', title: 'Read the unit', unit: true, status: 'passed', commands: [], seconds: 3 }]) } + const deps = fakeDeps({ files }) + const steps = await runProcedure(moduleCtx({ tools: { unitQueue: true } }), deps) + const queued = deps.ran.find(line => line.startsWith('npm run unit')) + expect(queued).toMatch(/^npm run unit -- run --note test:procedure vibrato e84798eb --expect 15m -- node scripts\/test-procedure.mjs vibrato --package \/out\/vibrato.mwrm --share \/tmp\/share.sock --out \/out .*--unit-phase \/out\/unit-steps.json$/) + expect(deps.ran.some(line => line.startsWith('npm run device:test'))).toBe(false) // the inner run does that + expect(steps.find(step => step.id === 'unit-read').status).toBe('passed') + }) + + it('records a queue run that left no result as a failed unit phase', async () => { + const steps = await runProcedure(moduleCtx({ tools: { unitQueue: true } }), fakeDeps({ fail: ['npm run unit'] })) + expect(steps.find(step => step.id === 'unit-read').status).toBe('failed') + expect(steps.find(step => step.id === 'unit-pass').reason).toMatch(/unit queue run ended without a result \(exit 1\)/) + }) + + it('leaves the unit and the compatibility gate to the machine\'s own tools for a module of another machine', () => { + const ctx = moduleCtx({ machine: 'digitakt' }) + expect(plan(STEPS[0], ctx).commands).toEqual([['npm', 'run', 'module:doctor', '--', 'vibrato']]) + for (const step of STEPS.filter(step => step.unit || step.id === 'compat')) expect(plan(step, ctx).skip).toMatch(/drive the Octatrack/) + }) +}) + +describe('the record', () => { + const ctx = moduleCtx({ unit: { available: false, reason: 'no unit session on /tmp/share.sock' } }) + + it('is written for the named build, with an empty edge-case table and a pull request line the description check accepts', async () => { + const steps = await runProcedure(ctx, fakeDeps()) + const rec = record(ctx, steps, { started: Date.UTC(2026, 10, 20, 9), finished: Date.UTC(2026, 10, 20, 9, 3), command: 'npm run test:procedure -- vibrato' }) + expect(rec).toMatchObject({ procedure: 1, date: '2026-11-20', seconds: 180, target: { kind: 'module', id: 'vibrato', version: '0.1.0' }, + build: { revision: ctx.build.revision, dirty: false, package: { path: '/out/vibrato.mwrm', sha256: 'ab'.repeat(32) } }, edgeCases: { cases: [] } }) + expect(JSON.parse(JSON.stringify(rec)).steps).toHaveLength(STEPS.length) + const md = recordMarkdown(rec) + expect(md).toContain('### Test procedure: vibrato 0.1.0, 2026-11-20') + expect(md).toContain('SHA-256 `' + 'ab'.repeat(32) + '`') + expect(md).toContain('| 7 | Scripted unit pass | not run: no unit session on /tmp/share.sock |') + expect(md).toContain('| Case | Why this change makes it a risk | How run | Result |\n|---|---|---|---|\n| | | | |') + expect(md).toContain('Not tested on a unit: no unit session on /tmp/share.sock.') + expect(md).toContain('Emulator results are not hardware evidence') + // An effect suggests the instance and slot cases, every module the persistence ones. + expect(md).toMatch(/- an effect slot: FX1 and FX2, both DSP cores/) + expect(md).toMatch(/- persistence: saved in a Part/) + }) + + it('suggests edge cases from what the change touches', () => { + expect(suggestEdgeCases({ kind: 'module', manifest: { category: 'system', compatibility: { effectId: null, uiClaims: ['key:FUNC+YES'] } } }).map(s => s.touches)).toEqual(['a key gesture', 'persistence']) + expect(suggestEdgeCases({ kind: 'base', files: ['sdk/runtime/loader/loader.c', 'sdk/machines/octatrack/status.c'] }).map(s => s.touches)).toEqual(['the loader', 'load and admission', 'every installed module']) + }) + + it('its pull request lines satisfy the description check once the table has a row', async () => { + const steps = await runProcedure(ctx, fakeDeps()) + const md = recordMarkdown(record(ctx, steps, { started: 0, finished: 1000, command: 'npm run test:procedure -- vibrato' })) + const template = readFileSync(new URL('../.github/pull_request_template.md', import.meta.url), 'utf8') + const filled = md.replace('| | | | |', '| FX2 on both cores at once | the change moved its state block | npm run device -- do pick:T1:FX2:VIBRATO pick:T5:FX2:VIBRATO | pass |') + const body = 'Vibrato 0.1.1: the state block moves to Y memory, checked with pr:ready and the procedure.\n\nGuides: nothing.\n\n' + filled + expect(bodyProblems(body, template, { files: ['public/octatrack-modules/vibrato/0.1.1.mwrm'] })).toEqual([]) + expect(bodyProblems('Vibrato 0.1.1: the state block moves to Y memory, checked with pr:ready and the procedure.\n\nGuides: nothing.\n\n' + md, template, + { files: ['public/octatrack-modules/vibrato/0.1.1.mwrm'] })).toEqual([expect.stringMatching(/^This pull request changes what runs on an instrument.*edge cases/s)]) + }) + + it('reads the checkout: a module id, a draft, a base and the unit session', () => { + const root = join(import.meta.dirname, '..'), out = mkdtempSync(join(tmpdir(), 'procedure-')) + const listed = context(root, { out, share: '/nonexistent.sock' }, ['vibrato'], {}) + expect(listed).toMatchObject({ kind: 'module', id: 'vibrato', source: true, draft: false, machine: 'octatrack', unit: { available: false } }) + expect(listed.unit.reason).toMatch(/no unit session on \/nonexistent.sock/) + const published = context(root, { out, published: true, 'no-unit': true }, ['vibrato'], {}) + expect(published.pkg).toMatch(/public\/octatrack-modules\/vibrato\/.+\.mwrm$/) + expect(published.unit.reason).toMatch(/--no-unit/) + const base = context(root, { out, base: true }, [], { MODWERK_SHARE_SOCKET: '/nonexistent2.sock' }) + expect(base).toMatchObject({ kind: 'base', share: '/nonexistent2.sock' }) + expect(base.pkg).toMatch(/octatrack-base\.elemod$/) + expect(base.setPackages.length).toBeGreaterThan(20) + expect(() => context(root, { out }, ['no-such-module'], {})).toThrow(/No module named no-such-module/) + }) +}) From 8be31cf43caf08b5814f3c01005fda1fe1fa9f57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Fri, 20 Nov 2026 08:50:06 +0100 Subject: [PATCH 156/415] Run the cycle scan check now that it is on main Co-Authored-By: Claude Opus 5.5 --- docs/TEST_PROCEDURE.md | 4 ++-- scripts/test-procedure.mjs | 2 +- scripts/test-procedure.test.mjs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/TEST_PROCEDURE.md b/docs/TEST_PROCEDURE.md index e256d0163d..56e0145a6e 100644 --- a/docs/TEST_PROCEDURE.md +++ b/docs/TEST_PROCEDURE.md @@ -8,7 +8,7 @@ npm run test:procedure -- --plan # the steps and their commands, n npm run test:procedure -- --base # the Octatrack base, with every USB package ``` -It runs the steps below with the tools that already do them and stops at the first failure. Without a unit session it records the unit steps as not run, with the command each would have run. It ends with a record for the build: `procedure.md`, a `TESTING.md` entry with an empty edge-case table, and `procedure.json` for programs. A module's automated part takes under a minute without a unit (temp-save, 20 November 2026: 9 s for steps 1 to 3, 32 s with the emulator) and a few minutes with one. +It runs the steps below with the tools that already do them and stops at the first failure. Without a unit session it records the unit steps as not run, with the command each would have run. It ends with a record for the build: `procedure.md`, a `TESTING.md` entry with an empty edge-case table, and `procedure.json` for programs. A module's automated part takes under a minute without a unit (temp-save, 20 November 2026: 9 to 18 s for steps 1 to 4, 32 s with the emulator) and a few minutes with one. Options: `--package FILE` tests that package instead of building one, `--published` the catalogue's, `--share SOCKET` names the unit session, `--no-unit` leaves the unit alone, `--emulator-socket SOCK` adds the emulator, `--out DIR` puts the record there (default: the system's temporary folder), `--soak-seconds` and `--scene` go to the soak and the price. @@ -33,7 +33,7 @@ Each step proves only what it ran. Steps 1 to 5 prove the code paths they exerci - **1-2.** The doctor runs the module's host tests, the contract, the performance record and the compatibility lines. A draft is judged beside every other module by the doctor itself. - **3. A rebuild starts again at step 1.** The record names the source revision (and says when the tree had uncommitted changes) and the package's SHA-256. Every later result is about this build only. -- **4.** Until the cycle scan is merged ([#1798](https://github.com/repeat98/modwerk/pull/1798)) this step is not run; the doctor's performance line covers instruction counts ([MODULE_PERFORMANCE.md](MODULE_PERFORMANCE.md)). +- **4.** The check fails a cycle-scan record whose module source changed since its scan. After changing a module's DSP code, scan it again on a computer with the scan's tools: `node scripts/cycle-scan.mjs record ` ([sdk/cycle-scan](../sdk/cycle-scan/README.md), [MODULE_PERFORMANCE.md](MODULE_PERFORMANCE.md)). - **5.** Start `ot_emu` with `--usb-host SOCK` on a development twin of the base, from [the adapted emulator builder](../scripts/octatrack-emulator/build.py) (the plain port refused the trial with loader refusal 5, 20 November 2026). A ColdFire module needs no `--dsp`, which runs about ten times faster; give the base 20 s after the socket appears. What passes here can still fail on the unit: read [what `ot_emu` does not show](OCTATRACK_HARDWARE_TRAPS.md#the-emulator-and-the-tools). - **6-10.** The unit steps go through the device commands and keep [the driving rules](OCTATRACK_DRIVING.md): a development base, transport stopped, a bank and Part whose working copy equals its saved one. Nothing is kept: every install is a trial that rolls back. When the repository has the unit queue (its `unit` script), the runner takes the unit for steps 6 to 10 as one turn. - **8.** Until the fast seeded soak is merged ([#1770](https://github.com/repeat98/modwerk/pull/1770)), a module soaks inside step 7 (`device:test --soak 120`) and a base's soak is not run. diff --git a/scripts/test-procedure.mjs b/scripts/test-procedure.mjs index a852e30aea..bbe77041f7 100644 --- a/scripts/test-procedure.mjs +++ b/scripts/test-procedure.mjs @@ -90,7 +90,7 @@ export function plan(step, ctx) { if (!octatrack) return { skip: 'module:dev builds Octatrack packages; name the build by hand (revision and SHA-256)' } return { commands: [npmRun('module:dev', ctx.id, '--build-only', ...(ctx.draft === false && ctx.alsoDraft ? ['--listed'] : []), '--out', pkg)] } case 'cost-model': - if (!ctx.tools?.cycleScan) return { skip: 'the DSP cycle scan (' + SCAN_TOOL + ', pull request #1798) is not in this checkout yet' } + if (!ctx.tools?.cycleScan) return { skip: 'the DSP cycle scan (' + SCAN_TOOL + ') is not in this checkout: merge main' } return { commands: [node(SCAN_TOOL, 'check')] } case 'emulator': if (!ctx.emulatorSocket) return { skip: 'no emulator session (--emulator-socket SOCK, an ot_emu with --usb-host on a development base)' } diff --git a/scripts/test-procedure.test.mjs b/scripts/test-procedure.test.mjs index ed6f92b06a..74f8975598 100644 --- a/scripts/test-procedure.test.mjs +++ b/scripts/test-procedure.test.mjs @@ -57,7 +57,7 @@ describe('the steps', () => { expect(statuses(steps)).toEqual({ software: 'passed', compat: 'passed', build: 'passed', 'cost-model': 'not run', emulator: 'not run', 'unit-read': 'passed', 'unit-pass': 'passed', soak: 'passed', 'cost-unit': 'passed', restore: 'passed', 'by-hand': 'to do', developer: 'to do' }) expect(steps.find(step => step.id === 'soak').reason).toMatch(/inside the scripted pass as device:test --soak 120.*#1770/) - expect(steps.find(step => step.id === 'cost-model').reason).toMatch(/#1798/) + expect(steps.find(step => step.id === 'cost-model').reason).toMatch(/cycle-scan.mjs\) is not in this checkout/) }) it('stops at the first failure and records every later step as not run, with the step that stopped it', async () => { From 7c558af1986e0d9f2f1e64598d02266ad43e1163 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Fri, 20 Nov 2026 08:56:50 +0100 Subject: [PATCH 157/415] Leave DEVELOPER_WORKFLOW.md at its size limit; AGENTS.md and the skills point at the procedure Co-Authored-By: Claude Opus 5.5 --- docs/DEVELOPER_WORKFLOW.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/DEVELOPER_WORKFLOW.md b/docs/DEVELOPER_WORKFLOW.md index c435840761..e42f982ced 100644 --- a/docs/DEVELOPER_WORKFLOW.md +++ b/docs/DEVELOPER_WORKFLOW.md @@ -121,7 +121,7 @@ A base update carries several developers' changes onto players' instruments at o - **Join it.** Commit your base change to that branch, or open your pull request against it (`gh pr create --base base/-next`); it is merged in with your authorship. A base pull request against `main` is sent there. With none open for the machine, open it as a draft from `base/-next`. - **Share the branch.** Several developers commit to it: fetch first, add your commits on top, merge `main` into it, and never rebase or force-push it. Update the description's list of what is in it so far. -- **It stays a draft** until the base has been tested extensively on a unit. Run each build through [the test procedure](TEST_PROCEDURE.md#what-a-base-adds) and record what ran, on which unit; `pr:ready` saying Ready means the checks pass, not that it was tested. Only the owner marks it ready and ships it. +- **It stays a draft** until the base has been tested extensively on a unit. Record each build that ran, on which unit, and what ran on it; `pr:ready` saying Ready means the checks pass, not that it was tested. Only the owner marks it ready and ships it. ## Manage reports on GitHub From 9fa9131d3c931be56c15991f5f56988b995a6526 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Fri, 20 Nov 2026 08:56:59 +0100 Subject: [PATCH 158/415] Take the turn in Python device scripts only when they run as the program Imported by a test or another script, the caller owns the turn; load unit_turn.py by path so a test that loads octatrack-test.py from elsewhere finds it. Co-Authored-By: Claude Opus 5.5 --- scripts/octatrack-qualify.py | 9 ++++++--- scripts/octatrack-test.py | 6 ++++-- scripts/unit_turn.py | 20 +++++++++++--------- 3 files changed, 21 insertions(+), 14 deletions(-) diff --git a/scripts/octatrack-qualify.py b/scripts/octatrack-qualify.py index e881584d3b..00e7e81120 100755 --- a/scripts/octatrack-qualify.py +++ b/scripts/octatrack-qualify.py @@ -287,9 +287,12 @@ def main(): 'then starts with no modules after a power cycle. Note the flashed set first (the session\'s inventory step, ' 'docs/OCTATRACK_DRIVING.md), then run again with --keeps-ok. For a run that keeps nothing: npm run device:test.') # The whole run is one turn on the unit: it waits here while another session has it (scripts/unit-queue.mjs). - from unit_turn import take_turn - take_turn('device:qualify ' + ' '.join(os.path.basename(p) for p in args.packages), - expect='%ds' % (600 + 120 * len(args.packages) + 2 * args.soak + 4 * args.seconds)) + import importlib.util + turn = importlib.util.spec_from_file_location('unit_turn', os.path.join(os.path.dirname(os.path.realpath(__file__)), 'unit_turn.py')) + unit_turn = importlib.util.module_from_spec(turn) + turn.loader.exec_module(unit_turn) + unit_turn.take_turn(__file__, 'device:qualify ' + ' '.join(os.path.basename(p) for p in args.packages), + expect='%ds' % (600 + 120 * len(args.packages) + 2 * args.soak + 4 * args.seconds)) pkgs = [package(p) for p in args.packages] def install(pkgs): diff --git a/scripts/octatrack-test.py b/scripts/octatrack-test.py index 83edd176d5..4fb95a8102 100755 --- a/scripts/octatrack-test.py +++ b/scripts/octatrack-test.py @@ -24,7 +24,6 @@ _spec = importlib.util.spec_from_file_location('octatrack_qualify', ROOT / 'scripts/octatrack-qualify.py') qualify = importlib.util.module_from_spec(_spec) _spec.loader.exec_module(qualify) -from unit_turn import take_turn # scripts/ is this script's folder, so it is on the path SHARE = os.environ.get('MODWERK_SHARE_SOCKET', '/tmp/modwerk-share.sock') LEFT_FOR_THE_DEVELOPER = ('listening (how it sounds and plays, timing by ear)', 'MIDI, scenes and recording', @@ -93,7 +92,10 @@ def main(): args.crash = False hold = args.hold or min(3600, 300 + 2 * args.seconds + 2 * args.soak) # The whole run is one turn on the unit: it waits here while another session has it (scripts/unit-queue.mjs). - take_turn('device:test ' + os.path.basename(args.packages[0]), expect='%ds' % (hold + 120)) + turn = importlib.util.spec_from_file_location('unit_turn', ROOT / 'scripts/unit_turn.py') + unit_turn = importlib.util.module_from_spec(turn) + turn.loader.exec_module(unit_turn) + unit_turn.take_turn(__file__, 'device:test ' + os.path.basename(args.packages[0]), expect='%ds' % (hold + 120)) pkgs = [qualify.package(p) for p in args.packages] trials = [] diff --git a/scripts/unit_turn.py b/scripts/unit_turn.py index 874f614956..9a43eea1df 100644 --- a/scripts/unit_turn.py +++ b/scripts/unit_turn.py @@ -1,22 +1,24 @@ # SPDX-License-Identifier: GPL-3.0-or-later """The unit's turn for a Python device script (scripts/unit-queue.mjs, docs/OCTATRACK_DRIVING.md#taking-turns-on-the-unit). -take_turn() runs the calling script again under `node scripts/unit-queue.mjs run`, which waits in line for the unit, runs -it with MODWERK_UNIT_TURN set and gives the turn back however it ends. Inside a turn already (MODWERK_UNIT_TURN set), or -with MODWERK_UNIT=emulator, it returns at once. steps: a device step line, for which the turn is taken only when it drives -the unit (device-send.py does the same in its own lines).""" -import os, pathlib, shutil, subprocess, sys +take_turn(script, …) runs `script` again under `node scripts/unit-queue.mjs run`, which waits in line for the unit, runs it +with MODWERK_UNIT_TURN set and gives the turn back however it ends. It acts only when `script` is the program that runs +(its __main__): imported by another script or a test, the caller owns the turn. Inside a turn already (MODWERK_UNIT_TURN +set), or with MODWERK_UNIT=emulator, it returns at once too. device-send.py does the same in its own lines.""" +import os, shutil, subprocess, sys -def take_turn(note, expect='15m', steps=None): +def take_turn(script, note, expect='15m'): + main = getattr(sys.modules.get('__main__'), '__file__', None) + if not main or os.path.realpath(main) != os.path.realpath(script): + return if os.environ.get('MODWERK_UNIT_TURN') or os.environ.get('MODWERK_UNIT') in ('emulator', 'served'): return node = shutil.which('node') if not node: raise SystemExit('The unit queue needs Node on PATH (scripts/unit-queue.mjs): use Node 24 (.nvmrc), or set MODWERK_UNIT=emulator for an emulator.') - queue = str(pathlib.Path(__file__).resolve().parent / 'unit-queue.mjs') - command = [node, queue, 'run', '--note', note[:120], '--expect', expect] + (['--steps', steps] if steps is not None else []) + \ - ['--', sys.executable, '-B', os.path.abspath(sys.argv[0])] + sys.argv[1:] + queue = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'unit-queue.mjs') + command = [node, queue, 'run', '--note', note[:120], '--expect', expect, '--', sys.executable, '-B', os.path.realpath(script)] + sys.argv[1:] sys.stdout.flush() if os.name == 'posix': os.execv(node, command) # the same process: signals and the exit status stay this script's From 771725a65aedd1a8d1d4622d35464978817f1f7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Fri, 20 Nov 2026 09:05:29 +0100 Subject: [PATCH 159/415] Fast soak: the MKII rate run on main's twin, and the project's MIDI settings On an MKII (OS 1.40C, twin 0ad7efc5 of main, 20 November 2026) the pc profile held 4.7 to 33.8 operations a second for 5 to 60 asked, with 87 to 425 pattern changes a minute and 16-19 ms health reads; one read an operation caps the runner at about 34 a second. Every CC the soak sends was checked on the unit. The guide now says that TRANSP RECV and PROG CH RECV must be on, and that program changes arrive on the AUTO channel when PROG CH RECV names CH AUTO. Co-Authored-By: Claude Opus 5.5 --- docs/OCTATRACK_DRIVING.md | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/docs/OCTATRACK_DRIVING.md b/docs/OCTATRACK_DRIVING.md index 1156149ae1..1ba567b470 100644 --- a/docs/OCTATRACK_DRIVING.md +++ b/docs/OCTATRACK_DRIVING.md @@ -180,13 +180,26 @@ for 0.6 s, or the UI tick still for 1.5 s. Then it reads `stall`, `crash` and `d every operation, so `--replay LOG [--until N]` plays the same run again. The default is three minutes at 20 operations a second, about as many operations as an hour at a player's pace. +Measured on an MKII on OS 1.40C, development twin `0ad7efc5` of main, 20 November 2026 (`--profile pc`, 30 s a rate, +programs 0-3): asked for 5, 10, 20, 40 and 60 operations a second, it held 4.7, 9.4, 18.7, 32.1 and 33.8, and 87, +163, 269, 403 and 425 pattern changes landed a minute. A health read took 16 to 19 ms (median), 20 to 23 ms (p95). +One read after every operation caps the runner at about 34 operations a second, so a `--rate` above 30 buys +nothing. `--profile mix` at 20 a second held 18.7, with 140 pattern changes a minute. No run logged a new crash or +stall. Each CC was checked on its own against the Part's bytes and the screen: level 7, mute 49, FX1 knobs A-F +34-39, FX2 knobs A-F 40-45, scenes A and B 55 and 56, the crossfader 48. + - MIDI goes through `scripts/octatrack-midi-bridge.py` on the computer the unit is plugged into (on Windows the device venv's Python, through winmm; port 50124, beside the USB bridge's: on a Windows host with WSL's mirrored networking 47812 refused the bind, 19 November 2026). Start it before the run and stop it after: while it runs it holds the unit's MIDI port. -- The project: track channels 1-8, PROG CH RECEIVE on the channel `--pc-channel` names (default 1), CC and transport - receive on, effects of the modules under test on the Parts that `--programs` reaches. A program change while playing - lands at the pattern's end, so short patterns at a high tempo give the most transitions. +- The project: track channels 1-8, and TRANSP RECV and PROG CH RECV on in PROJECT > MIDI > SYNC. A project with + them off ignores START and program changes without an error: the summary then shows no pattern changes and the + stopped CPU. Program changes arrive on the channel PROG CH RECV names; set to CH AUTO, that is MIDI > CHANNELS' + AUTO channel, so pass that as `--pc-channel` (11 on the MKII of 20 November 2026). Track CCs go out on the track + channels, the crossfader and scenes on `--auto-channel` (the unit took them on channel 1 too). Effects of the + modules under test belong on the Parts that `--programs` reaches. A program change while playing lands at the + pattern's end, so short patterns at a high tempo give the most transitions. MIDI STOP pauses the sequencer, and + `health.playing` stays true until a panel STOP. - `--replay LOG --shrink --reset DIR` finds the shortest prefix of a failed run that still fails: before each replay it RAM-boots `DIR` (a development twin; serve in its loop) and waits out the base's 25 s panel hold, so each try costs about a minute, and halving needs about a dozen tries for two thousand operations. From 06df15d889356c8feef38b92b3158c0d9f651a21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Fri, 20 Nov 2026 09:12:15 +0100 Subject: [PATCH 160/415] device:test and device:qualify: save the Part first, and refresh the load after each machine The first run on an MKII (POLY8 0.3.3, twin 0ad7efc5 of main, 20 November 2026) showed two faults. Stopped, the base judges a pick by the last four seconds it played, so after POLY8 left T1 every later pick was refused CPU FULL and the SRC page sweep never ran: the run now plays five seconds after each machine goes back. After a RAM boot every Part counts as never saved, so the closing RELOAD showed SAVE PART FIRST! and POLY8's TSTR/LOOP change stayed: the run now SAVEs the Part once before it changes anything, while its working copy equals its saved one. On the second run POLY8 went onto T1 and T5, the sweep ran and the Part came back as saved. Co-Authored-By: Claude Opus 5.5 --- changelog/2026-11-17-device-test-machines.md | 2 +- docs/OCTATRACK_DRIVING.md | 5 +++- scripts/octatrack-qualify.py | 22 ++++++++++++-- sdk/tests/test_octatrack_qualify.py | 30 ++++++++++++++++++++ 4 files changed, 55 insertions(+), 4 deletions(-) diff --git a/changelog/2026-11-17-device-test-machines.md b/changelog/2026-11-17-device-test-machines.md index 504f1eca75..9bd74b6ca2 100644 --- a/changelog/2026-11-17-device-test-machines.md +++ b/changelog/2026-11-17-device-test-machines.md @@ -1 +1 @@ -SDK (Octatrack): `npm run device:test` and `device:qualify` now place machine packages. Until now they placed only DSP effects: POLY8, FM Synth, VECTOR, Amiga and SYNTIZ went untested, and Analog BD was offered to the FX1 chooser, where it can't appear. A machine now goes onto T1 and T5 through SRC SETUP's machine list, plays, and has its render compared with its CPU price; then it goes onto every track beside the set's effects, and its SRC page knobs are swept. A refusal (CPU FULL, DSP FULL) is reported with a screenshot of the box. A machine renders only on trigs, so run it on a Part with trigs on T1 and T5. +SDK (Octatrack): `npm run device:test` and `device:qualify` now place machine packages. Until now they placed only DSP effects: POLY8, FM Synth, VECTOR, Amiga and SYNTIZ went untested, and Analog BD was offered to the FX1 chooser, where it can't appear. A machine now goes onto T1 and T5 through SRC SETUP's machine list, plays, and has its render compared with its CPU price; then it goes onto every track beside the set's effects, and its SRC page knobs are swept. A refusal (CPU FULL, DSP FULL) is reported with a screenshot of the box. A machine renders only on trigs, so run it on a Part with trigs on T1 and T5. The run also saves the Part before it starts (the same bytes), so its closing reload works after a RAM boot, and plays five seconds after each machine goes back, so the next pick is not judged with that machine still counted. diff --git a/docs/OCTATRACK_DRIVING.md b/docs/OCTATRACK_DRIVING.md index c25e1d3c5a..e31f701271 100644 --- a/docs/OCTATRACK_DRIVING.md +++ b/docs/OCTATRACK_DRIVING.md @@ -205,7 +205,10 @@ not isolated: verify each held-row transition and stock modifier release, and st (`PART+FUNC+PLAY`): it CLEARS the Part**, both working and saved copies, its knobs, machines and name (`PART 1`), and saves that (stock's Part Clear; 11 October 2026). FUNC+PLAY elsewhere clears the pattern. To reload, use `reload`: FUNC+PART opens RENAME, RELOAD, SAVE, SAVE ALL, keeps its cursor from last time and - stops at RENAME, so UP three times, DOWN, YES. Do not use SAVE or SAVE ALL. `reload` reports no failure: compare + stops at RENAME, so UP three times, DOWN, YES. Do not use SAVE or SAVE ALL on a Part you changed. After a RAM boot + every Part counts as never saved and RELOAD shows SAVE PART FIRST! (MKII, 20 November 2026), so `device:test` and + `device:qualify` SAVE the Part once before they change anything, while its working copy equals its saved one: the + same bytes, and their closing RELOAD then works. `reload` reports no failure: compare the Part with its saved copy afterwards (SAVE PART FIRST! above). - **Patterns.** PATTERN+TRIG n selects pattern n of this bank. Another bank: BANK, then TRIG b (bank b), then TRIG n (pattern n) within four seconds (the manual's "CHOOSE BANK", "CHOOSE PATTERN"). Stopped, it applies diff --git a/scripts/octatrack-qualify.py b/scripts/octatrack-qualify.py index 08f4e0bb39..f0873d5235 100755 --- a/scripts/octatrack-qualify.py +++ b/scripts/octatrack-qualify.py @@ -198,9 +198,25 @@ def place(self, track, m): % (m['label'], track + 1, REFUSED % (track + 1))) +def save_part(part, saved): + """SAVE from the Part menu, on a Part whose working copy equals its saved one: the same bytes, but the closing RELOAD + then works, which a Part not saved since the boot refuses (SAVE PART FIRST!: every Part after a RAM boot, MKII, + 20 November 2026). The menu keeps its cursor and stops at RENAME, so UP three times, DOWN twice. True when both + copies still equal `saved`.""" + send('NO w200 FUNC+PART w600 UP w150 UP w150 UP w150 DOWN w150 DOWN w200 YES w1000') + return part_copy(part) == saved and part_copy(part, saved=True) == saved + + +def refresh_load(): + """Five seconds of playing. Stopped, the base judges a pick by the mean of the last four seconds it played (status.c + cpu_played), so right after a machine is taken off a track the next pick is still judged with it: on an MKII + (20 November 2026) POLY8 on T1 played at 84 %, and every pick after it was refused CPU FULL.""" + send('PLAY w5000 STOP w500') + + def restore_part(part, saved, machines=None): - """The Part as `saved` again, in both copies. RELOAD first; a Part that was never saved refuses it (SAVE PART FIRST!, - nothing changes), so then each slot whose effect differs gets the saved one picked back by name, which brings its + """The Part as `saved` again, in both copies. RELOAD first (run() saved the Part, so it works after a RAM boot too); + a Part that was never saved refuses it (SAVE PART FIRST!, nothing changes), so then each slot whose effect differs gets the saved one picked back by name, which brings its default knobs back, and with `machines` (a Machines) each track whose machine differs gets the saved one's row: enough for a Part that holds defaults (a cleared one). True when both copies equal `saved`.""" send('reload') @@ -284,6 +300,7 @@ def machine_alone(machines, m, failures): except RuntimeError as e: send('STOP w300'); failures.append(str(e)); entry['T%d' % track] = 'refused' if machines.pick(track - 1, back) != back: failures.append('T%d did not get its own machine back (row %d)' % (track, back)) + refresh_load() return entry @@ -295,6 +312,7 @@ def run(args, pkgs, install, uninstall, selftest=False, inventory=False): if 'stopped' not in send('state'): raise SystemExit('Stop the transport first.') if not part_saved_equal(): raise SystemExit('The current Part differs from its saved copy: run on one that does not.') saved_start = part_copy(mem(PART, 1)[0], saved=True) # what the reload at the end must bring back, in both copies + if not save_part(mem(PART, 1)[0], saved_start): raise SystemExit('Saving the Part, so that RELOAD works at the end, changed it: check the unit.') before = counters() inventory_start = send('inventory').strip() if inventory else None start_part, (start_bank, start_pattern) = mem(PART, 1)[0], mem(0x800065bd, 2) diff --git a/sdk/tests/test_octatrack_qualify.py b/sdk/tests/test_octatrack_qualify.py index 7e8e84f653..95107a55a2 100644 --- a/sdk/tests/test_octatrack_qualify.py +++ b/sdk/tests/test_octatrack_qualify.py @@ -83,6 +83,36 @@ def test_the_entry_names_a_machine_and_its_render(self): self.assertIn('All at once, playing (machines T1-T8: ACID 303, refused)', entry) +class UnitSteps(unittest.TestCase): + """What the first run on an MKII (20 November 2026) showed the steps must do.""" + + def test_a_machine_alone_plays_again_once_its_track_has_its_machine_back(self): + order = [] + + class Rows: + def row_of(self, part, track): return 1 + def place(self, track, m): order.append('place T%d' % (track + 1)) + def pick(self, track, row): order.append('back T%d' % (track + 1)); return row + + reading = dict(cpu=500, core1=300, core1_peak=400, core0=200, core0_peak=300) + with mock.patch.object(qualify, 'send', side_effect=lambda s: order.append(s) if s.startswith('PLAY w5000') else ''), \ + mock.patch.object(qualify, 'meters', return_value=dict(reading)), mock.patch.object(qualify, 'renders', return_value=[1.0] * 8), \ + mock.patch.object(qualify, 'part_copy', return_value=bytes(6322)), mock.patch.object(qualify, 'mem', return_value=b'\0'): + failures = [] + qualify.machine_alone(Rows(), dict(label='POLY8', price=0, voice=False), failures) + self.assertEqual(order, ['place T1', 'back T1', 'PLAY w5000 STOP w500', 'place T5', 'back T5', 'PLAY w5000 STOP w500']) + self.assertEqual(failures, []) + + def test_the_part_is_saved_before_the_run_and_must_stay_as_it_was(self): + saved, sent = bytes(range(256)) * 24 + bytes(178), [] + with mock.patch.object(qualify, 'send', side_effect=lambda s: sent.append(s) or ''), \ + mock.patch.object(qualify, 'part_copy', return_value=saved): + self.assertTrue(qualify.save_part(1, saved)) + self.assertIn('FUNC+PART w600 UP w150 UP w150 UP w150 DOWN w150 DOWN w200 YES', sent[0]) + with mock.patch.object(qualify, 'send', return_value=''), mock.patch.object(qualify, 'part_copy', return_value=bytes(6322)): + self.assertFalse(qualify.save_part(1, saved)) + + class Qualify(unittest.TestCase): def test_it_starts_only_once_the_keeps_are_acknowledged(self): with mock.patch.object(sys, 'argv', ['octatrack-qualify.py', 'x.mwrm']), mock.patch.object(qualify, 'send', side_effect=AssertionError('reached the unit')): From eb2d8c133b7d6f1897b624be4cb5111fb582fd2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Fri, 20 Nov 2026 09:13:57 +0100 Subject: [PATCH 161/415] Test procedure: layers, what the contract covers, and one set of unit steps for the unit or an emulator session serve --emulator no longer probes the emulator bench first: ot_emu takes one connection and stopped when the probe hung up. Co-Authored-By: Claude Opus 5.5 --- .agents/skills/modwerk-test-on-unit/SKILL.md | 2 +- .claude/skills/modwerk-test-on-unit/SKILL.md | 2 +- changelog/2026-11-20-test-procedure.md | 2 +- docs/TEST_PROCEDURE.md | 66 +++++++++++++----- scripts/device.mjs | 4 +- scripts/test-procedure.mjs | 70 ++++++++++++-------- scripts/test-procedure.test.mjs | 46 +++++++++++-- 7 files changed, 141 insertions(+), 51 deletions(-) diff --git a/.agents/skills/modwerk-test-on-unit/SKILL.md b/.agents/skills/modwerk-test-on-unit/SKILL.md index 15573a154e..19409c7e4f 100644 --- a/.agents/skills/modwerk-test-on-unit/SKILL.md +++ b/.agents/skills/modwerk-test-on-unit/SKILL.md @@ -25,7 +25,7 @@ The order is fixed: the steps of `docs/TEST_PROCEDURE.md`, your tests on the uni - The Keep, the power cycle and listening are theirs: never Keep without their OK, never power-cycle or flash yourself. The order stays review, trial, then an explicit Keep or Undo, bound to the exact version. On a RAM-booted test base a Keep replaces the owner's kept set (`docs/OCTATRACK_DRIVING.md`). - Record what they report, as they report it. A fault they find is fixed, and both stages run again on the new build. 5. **A machine without a USB link yet:** stage 1 is the procedure's steps 1 to 3 and the emulator, and stage 2 carries all the hardware evidence. Recommend building a link, as the recipe lays out (`docs/MACHINE_RECIPE.md`, `sdk/runtime/loader/README.md#porting-to-another-machine`). -6. **The emulator** (`ot_emu` from `npm run upstream:tools`, digiemu, rytm-emu) is for fast iteration, UI captures (`docs/MODULE_UI_CAPTURES.md`) and rehearsing stage 1 before touching the unit. It never counts as hardware evidence. +6. **The emulator** (`ot_emu` from `npm run upstream:tools`, digiemu, rytm-emu) is for fast iteration, UI captures (`docs/MODULE_UI_CAPTURES.md`) and rehearsing stage 1 before touching the unit: the procedure with `--target emulator` runs the same unit steps against an emulator session (`docs/TEST_PROCEDURE.md#one-set-of-cases-two-targets`). It never counts as hardware evidence. 7. **Record** both stages in the module's `TESTING.md` (a base: `docs/verification/`), apart and on the named build: the procedure's record with its edge-case table, what you did by hand, then what the developer observed. "Not tested" is a valid result. - Your stage is evidence for what it measured, never for the sound or for persistence across a power cycle; software tests prove neither, nor rendered pixels. - The hardware report and the release boxes stay the developer's: never attest for them. diff --git a/.claude/skills/modwerk-test-on-unit/SKILL.md b/.claude/skills/modwerk-test-on-unit/SKILL.md index 15573a154e..19409c7e4f 100644 --- a/.claude/skills/modwerk-test-on-unit/SKILL.md +++ b/.claude/skills/modwerk-test-on-unit/SKILL.md @@ -25,7 +25,7 @@ The order is fixed: the steps of `docs/TEST_PROCEDURE.md`, your tests on the uni - The Keep, the power cycle and listening are theirs: never Keep without their OK, never power-cycle or flash yourself. The order stays review, trial, then an explicit Keep or Undo, bound to the exact version. On a RAM-booted test base a Keep replaces the owner's kept set (`docs/OCTATRACK_DRIVING.md`). - Record what they report, as they report it. A fault they find is fixed, and both stages run again on the new build. 5. **A machine without a USB link yet:** stage 1 is the procedure's steps 1 to 3 and the emulator, and stage 2 carries all the hardware evidence. Recommend building a link, as the recipe lays out (`docs/MACHINE_RECIPE.md`, `sdk/runtime/loader/README.md#porting-to-another-machine`). -6. **The emulator** (`ot_emu` from `npm run upstream:tools`, digiemu, rytm-emu) is for fast iteration, UI captures (`docs/MODULE_UI_CAPTURES.md`) and rehearsing stage 1 before touching the unit. It never counts as hardware evidence. +6. **The emulator** (`ot_emu` from `npm run upstream:tools`, digiemu, rytm-emu) is for fast iteration, UI captures (`docs/MODULE_UI_CAPTURES.md`) and rehearsing stage 1 before touching the unit: the procedure with `--target emulator` runs the same unit steps against an emulator session (`docs/TEST_PROCEDURE.md#one-set-of-cases-two-targets`). It never counts as hardware evidence. 7. **Record** both stages in the module's `TESTING.md` (a base: `docs/verification/`), apart and on the named build: the procedure's record with its edge-case table, what you did by hand, then what the developer observed. "Not tested" is a valid result. - Your stage is evidence for what it measured, never for the sound or for persistence across a power cycle; software tests prove neither, nor rendered pixels. - The hardware report and the release boxes stay the developer's: never attest for them. diff --git a/changelog/2026-11-20-test-procedure.md b/changelog/2026-11-20-test-procedure.md index f0b61fa4b0..0c6fe025d5 100644 --- a/changelog/2026-11-20-test-procedure.md +++ b/changelog/2026-11-20-test-procedure.md @@ -1 +1 @@ -Development: Every module or base change goes through one test procedure, `npm run test:procedure -- ` or `--base`. It runs the software checks, the build, the emulator and the unit steps in a fixed order, stops at the first failure, records unit steps as not run without a unit, and writes a record with an empty table for the change's own edge cases (docs/TEST_PROCEDURE.md). A ready pull request that changes what runs on an instrument now lists those edge cases, or says "Edge cases: none, because …". +Development: Every module or base change goes through one test procedure, `npm run test:procedure -- ` or `--base`. It runs the software checks, the build, the emulator and the unit steps in a fixed order, stops at the first failure, records unit steps as not run without a unit, and writes a record with an empty table for the change's own edge cases (docs/TEST_PROCEDURE.md). A ready pull request that changes what runs on an instrument now lists those edge cases, or says "Edge cases: none, because …". `--target emulator` runs the same unit steps against an emulator session, which `npm run device -- serve --emulator` now keeps open, labelled as emulator results. diff --git a/docs/TEST_PROCEDURE.md b/docs/TEST_PROCEDURE.md index 56e0145a6e..da39d650da 100644 --- a/docs/TEST_PROCEDURE.md +++ b/docs/TEST_PROCEDURE.md @@ -10,26 +10,60 @@ npm run test:procedure -- --base # the Octatrack base, with every It runs the steps below with the tools that already do them and stops at the first failure. Without a unit session it records the unit steps as not run, with the command each would have run. It ends with a record for the build: `procedure.md`, a `TESTING.md` entry with an empty edge-case table, and `procedure.json` for programs. A module's automated part takes under a minute without a unit (temp-save, 20 November 2026: 9 to 18 s for steps 1 to 4, 32 s with the emulator) and a few minutes with one. -Options: `--package FILE` tests that package instead of building one, `--published` the catalogue's, `--share SOCKET` names the unit session, `--no-unit` leaves the unit alone, `--emulator-socket SOCK` adds the emulator, `--out DIR` puts the record there (default: the system's temporary folder), `--soak-seconds` and `--scene` go to the soak and the price. +Options: `--package FILE` tests that package instead of building one, `--published` the catalogue's, `--share SOCKET` names the unit session, `--no-unit` leaves the unit alone, `--emulator-socket SOCK` adds the emulator rehearsal, `--target emulator` runs steps 6 to 10 on an emulator session ([below](#one-set-of-cases-two-targets)), `--out DIR` puts the record there (default: the system's temporary folder), `--soak-seconds` and `--scene` go to the soak and the price. ## The steps -| # | Step | Command | Passes when | Evidence | For | +Every step applies to modules and bases alike; what differs for a base is in each row and [below](#what-a-base-adds). + +| # | Step | Layer | Command | Passes when | Evidence | |---|---|---|---|---|---| -| 1 | Software checks | `npm run module:doctor -- ` (a draft: `--draft `); a base: `npm run sdk:check` | green | its log | both | -| 2 | Beside every other module | `npm run modules:compat -- `; a base: `npm run modules:compat` | 0 problems | its log | both | -| 3 | Name the build | `npm run module:dev -- --build-only`; a base: its `.elemod` | a package exists | revision and SHA-256 | both | -| 4 | DSP cost model | `node scripts/cycle-scan.mjs check` | every record current | its log | both | -| 5 | Emulator rehearsal | `node scripts/device.mjs try PKG --emulator --socket SOCK`; a base: `set` with every package | the trial rolls back with no fault logged | its log, labelled emulator | both | -| 6 | Read the unit | `node scripts/device.mjs status` and `do inventory` on the session | it answers | the starting inventory | both | -| 7 | Scripted unit pass | `npm run device:test -- --testing-entry FILE PKG`; a base: `node scripts/device.mjs set A,B,… --seconds 30`, every USB package at once | no crash, stall, freeze or skipped track; the set rolls back | `device-test.md`, its log | both | -| 8 | Soak | `node scripts/octatrack-soak.mjs`, a module inside a trial of its own | no new crash, stall or frozen frame | `soak.json` | both | -| 9 | Cost on the unit | `npm run device:price -- --out price.json PKG`; a base: every USB package | it reads | `price.json`: frame interrupt, CPU meter, both DSPs, at rest and in use | both | -| 10 | Put back | `do inventory` again | equal to step 6 | its log | both | -| 11 | Agent by hand | inside a trial (`npm run module:dev -- ` or the MCP) | what you saw matches the README | screenshots, captures | both | -| 12 | Developer's stage | their hands and ears | what they report | their words, as they said them | both | - -Each step proves only what it ran. Steps 1 to 5 prove the code paths they exercised, never audio, timing, a saved project or a power cycle. Steps 6 to 11 are hardware evidence for what they measured, never for the sound or for persistence. Step 12 is the developer's. +| 1 | Software checks | host | `npm run module:doctor -- ` (a draft: `--draft `); a base: `npm run sdk:check` | green | its log | +| 2 | Beside every other module | contract | `npm run modules:compat -- `; a base: `npm run modules:compat` | 0 problems | its log | +| 3 | Name the build | host | `npm run module:dev -- --build-only`; a base: its `.elemod` | a package exists | revision and SHA-256 | +| 4 | DSP cost model | contract | `node scripts/cycle-scan.mjs check` | every record current | its log | +| 5 | Emulator rehearsal | emulator | `node scripts/device.mjs try PKG --emulator --socket SOCK`; a base: `set` with every package | the trial rolls back with no fault logged | its log, labelled emulator | +| 6 | Read the unit | unit or emulator | `node scripts/device.mjs status` and `do inventory` on the session | it answers | the starting inventory | +| 7 | Scripted unit pass | unit or emulator | `npm run device:test -- --testing-entry FILE PKG`; a base: `node scripts/device.mjs set A,B,… --seconds 30`, every USB package at once | no crash, stall, freeze or skipped track; the set rolls back | `device-test.md`, its log | +| 8 | Soak | unit or emulator | `node scripts/octatrack-soak.mjs`, a module inside a trial of its own | no new crash, stall or frozen frame | `soak.json` | +| 9 | Cost on the unit | unit | `npm run device:price -- --out price.json PKG`; a base: every USB package | it reads | `price.json`: frame interrupt, CPU meter, both DSPs, at rest and in use | +| 10 | Put back | unit or emulator | `do inventory` again | equal to step 6 | its log | +| 11 | Agent by hand | unit or emulator | inside a trial (`npm run module:dev -- ` or the MCP) | what you saw matches the README | screenshots, captures | +| 12 | Developer's stage | unit | their hands and ears | what they report | their words, as they said them | + +Each step proves only what it ran. Steps 1 to 5 prove the code paths they exercised, never audio, timing, a saved project or a power cycle. Steps 6 to 11 on the unit are hardware evidence for what they measured, never for the sound or for persistence; on the emulator they are not hardware evidence at all. Step 12 is the developer's. + +## The layers + +**Prove each claim on the lowest layer that can prove it.** The emulator and the unit are slow and scarce: keep them for what the layers below cannot show. A check that a host test or the contract already makes is not repeated per module in the emulator or on the unit. + +| Layer | What it proves | Steps | How fast | +|---|---|---|---| +| host | the module's own code and the shared code, against fakes: the module's `test_*.py`, its `dsp_host` render gate, the SDK's loader and runtime tests | 1, 3 | seconds | +| contract | what every module shares, checked once for all of them from their declarations | 2, 4 (and CI's package rebuild) | seconds | +| emulator | the code paths that ran on the real stock code: install, run, rollback, screens | 5, or 6 to 11 with `--target emulator` | minutes; `ot_emu` runs below real time with `--dsp`, about ten times faster without | +| unit | timing, load, audio, USB, persistence, what a person hears | 6 to 12 | minutes, one session at a time | + +**The contract covers these; do not test them again per module:** + +- installing beside every other active module and the base: no two modules claim the same stock site, FX id, DSP hook, private Y range, buffer region, data range, key gesture or stock screen unless the base owns the site or the module declares the conflict (`modules:compat`, step 2); +- the manifest, version, catalogue pin, release notes, documentation, screenshots, resource gauges and qualification record (`modules:check`, in step 1 and CI's `module-contract` job); +- that the committed packages rebuild byte for byte from source (CI's `octatrack-source` job), and that a cycle-scan record matches the source it scanned (step 4); +- the loader's install, replace, remove, Undo and rollback, and the restoring of every patched site after removal: shared base code, tested once in the SDK suite and in the emulator's `sites` scenario (`scripts/verify-octatrack-dsp-loader.mjs`), not per module. + +**A module still proves on its own:** its own code (host tests, the render gate, its cycles), its controls and screens against its README, what it does at its own sites with stock running (step 7 and by hand), its cost (step 9), and the edge cases its change creates. + +## One set of cases, two targets + +Steps 6 to 10 talk to a session, not to a device. `npm run device -- serve --share SOCK` opens one link and shares it; `device:test`, `device.mjs` and the MCP drive the session. Started with `--emulator` on an `ot_emu` bench, the same session runs the same cases on the emulator: + +```sh +ot_emu --image MAIN.raw --usb-host /tmp/emu.sock --mkii & # a development twin, from the adapted build +MODWERK_DEV_SOCKET=/tmp/emu-dev.sock npm run device -- serve --emulator --socket /tmp/emu.sock --share /tmp/emu-share.sock & +npm run test:procedure -- --target emulator --share /tmp/emu-share.sock --dev-socket /tmp/emu-dev.sock +``` + +Every result is labelled emulator, the unit queue is left alone, and step 9 is not run: the emulator's load figures are not the unit's. The switch runs the same cases on both targets; it never replaces the unit. On 20 November 2026 temp-save's steps 6 and the trial of step 7 ran this way; `device:test` then stopped at a Part switch on its 40 s request timeout, which is set for the unit, so the emulator target is a rehearsal until `device:test` takes slower targets. - **1-2.** The doctor runs the module's host tests, the contract, the performance record and the compatibility lines. A draft is judged beside every other module by the doctor itself. - **3. A rebuild starts again at step 1.** The record names the source revision (and says when the tree had uncommitted changes) and the package's SHA-256. Every later result is about this build only. diff --git a/scripts/device.mjs b/scripts/device.mjs index 044aa1e141..21c232beb2 100644 --- a/scripts/device.mjs +++ b/scripts/device.mjs @@ -77,7 +77,9 @@ if (!['serve', 'status', 'stats', 'try', 'set', 'recover', 'remove', 'lifecycle' } const wait = ms => new Promise(resolve => setTimeout(resolve, ms)) -if (command === 'serve' && !await new Promise(resolve => { const c = createConnection(benchEndpoint(values.socket), () => { c.end(); resolve(true) }); c.on('error', () => resolve(false)) })) { +// Is a bridge already listening? Not asked of an emulator: ot_emu takes one connection and stops when it hangs up, so serve --emulator +// keeps its one link for the session (docs/TEST_PROCEDURE.md, the same steps on either target). +if (command === 'serve' && !values.emulator && !await new Promise(resolve => { const c = createConnection(benchEndpoint(values.socket), () => { c.end(); resolve(true) }); c.on('error', () => resolve(false)) })) { const bridge = spawn(process.env.MODWERK_PYTHON ?? join(homedir(), '.cache/modwerk-upstream/venv/bin/python'), ['-B', 'scripts/octatrack-usb-bridge.py', values.socket], { stdio: ['ignore', 'pipe', 'inherit'] }) await new Promise((resolve, reject) => { bridge.stdout.on('data', d => /ready/.test(d) && resolve()); bridge.once('exit', code => reject(new Error('bridge exited ' + code))) }) diff --git a/scripts/test-procedure.mjs b/scripts/test-procedure.mjs index bbe77041f7..93bff3601f 100644 --- a/scripts/test-procedure.mjs +++ b/scripts/test-procedure.mjs @@ -10,7 +10,9 @@ // npm run test:procedure -- … --share SOCKET # the unit session (npm run device -- serve --share SOCKET); default // # MODWERK_SHARE_SOCKET or /tmp/modwerk-share.sock. Without one: no unit steps // npm run test:procedure -- … --no-unit # leave the unit alone even when a session is shared -// npm run test:procedure -- … --emulator-socket SOCK # an ot_emu USB bench (--usb-host) running a development base +// npm run test:procedure -- … --emulator-socket SOCK # step 5: an ot_emu USB bench (--usb-host) running a development base +// npm run test:procedure -- … --target emulator --share SOCK --dev-socket SOCK # steps 6 to 10 against an emulator session +// # (npm run device -- serve --emulator): the same cases, never hardware evidence // npm run test:procedure -- … --out DIR --soak-seconds 120 --scene "A01, Part 1, stopped" // // With the unit queue (`npm run unit`, when the repository has it) the unit steps run as one turn of it, so no other session @@ -65,10 +67,14 @@ export const shown = argv => argv.map(q).join(' ') const npmRun = (script, ...args) => ['npm', 'run', script, ...(args.length ? ['--', ...args] : [])] const node = (...args) => ['node', ...args] -/** The commands each step runs for this target, or why it is not run. Pure: everything it reads is in ctx. */ /** Where the build step writes a package built from source. */ export const builtPackage = ctx => join(ctx.out, (ctx.id ?? 'base') + (ctx.kind === 'module' ? '.mwrm' : '.elemod')) +/** The layer of the test pyramid a step stands on (docs/TEST_PROCEDURE.md): a claim is proven on the lowest layer that can prove it. */ +export const LAYER = { software: 'host', compat: 'contract', build: 'host', 'cost-model': 'contract', emulator: 'emulator', 'unit-read': 'target', + 'unit-pass': 'target', soak: 'target', 'cost-unit': 'unit', restore: 'target', 'by-hand': 'target', developer: 'unit' } +const EMULATOR_FIGURES = 'the emulator\'s load figures are not the unit\'s (DMA is instant, no DSP timing): docs/OCTATRACK_HARDWARE_TRAPS.md#the-emulator-and-the-tools' +/** The commands each step runs for this target, or why it is not run. Pure: everything it reads is in ctx. */ export function plan(step, ctx) { const module = ctx.kind === 'module', pkg = ctx.pkg ?? builtPackage(ctx) const set = (ctx.setPackages ?? []).join(',') @@ -93,6 +99,7 @@ export function plan(step, ctx) { if (!ctx.tools?.cycleScan) return { skip: 'the DSP cycle scan (' + SCAN_TOOL + ') is not in this checkout: merge main' } return { commands: [node(SCAN_TOOL, 'check')] } case 'emulator': + if (ctx.target === 'emulator') return { skip: 'steps 6 to 10 run on the emulator (--target emulator)' } if (!ctx.emulatorSocket) return { skip: 'no emulator session (--emulator-socket SOCK, an ot_emu with --usb-host on a development base)' } return { commands: [module ? node('scripts/device.mjs', 'try', pkg, '--seconds', '20', '--emulator', '--socket', ctx.emulatorSocket) : node('scripts/device.mjs', 'set', set, '--seconds', '20', '--emulator', '--socket', ctx.emulatorSocket)], emulator: true } @@ -103,6 +110,7 @@ export function plan(step, ctx) { return { commands: [npmRun('device:test', '--share', ctx.share, '--testing-entry', join(ctx.out, 'device-test.md'), ...(ctx.tools?.soak ? [] : ['--soak', String(ctx.soakSeconds)]), pkg)] } case 'soak': { + if (ctx.target === 'emulator' && ctx.tools?.soak) return { skip: 'the fast soak sends USB MIDI to the unit\'s port, which the emulator has not' } if (!ctx.tools?.soak) return module ? { inside: 'unit-pass', note: 'ran inside the scripted pass as device:test --soak ' + ctx.soakSeconds + '; the fast seeded soak (' + SOAK_TOOL + ', pull request #1770) is not in this checkout yet' } : { skip: 'the fast seeded soak (' + SOAK_TOOL + ', pull request #1770) is not in this checkout yet' } const soak = node(SOAK_TOOL, '--seconds', String(ctx.soakSeconds), '--log', join(ctx.out, 'soak.json')) @@ -110,6 +118,7 @@ export function plan(step, ctx) { return module ? { commands: [soak], trial: node('scripts/device.mjs', 'try', pkg, '--seconds', String(ctx.soakSeconds + 300), '--socket', ctx.share) } : { commands: [soak] } } case 'cost-unit': + if (ctx.target === 'emulator') return { skip: EMULATOR_FIGURES } if (module && ctx.baseBound) return { skip: 'a base-bound package: device:price leaves it out, since a development twin does not trust it' } return { commands: [npmRun('device:price', '--share', ctx.share, '--out', join(ctx.out, 'price.json'), '--scene', ctx.scene ?? DEFAULT_SCENE, ...(module ? [pkg] : ctx.priceModules ?? []))] } case 'restore': @@ -131,7 +140,8 @@ export function lastJson(text) { export async function runSteps(ids, ctx, deps, results = []) { const failed = () => results.find(result => result.status === 'failed') for (const step of STEPS.filter(step => ids.includes(step.id))) { - const result = { id: step.id, title: titleOf(step, ctx), unit: !!step.unit, status: 'not run', commands: [], seconds: 0 } + const result = { id: step.id, title: titleOf(step, ctx), layer: LAYER[step.id], unit: !!step.unit, status: 'not run', commands: [], seconds: 0 } + if (step.unit && ctx.target === 'emulator') result.emulator = true results.push(result) const stop = failed() const p = plan(step, ctx) @@ -153,13 +163,13 @@ export async function runSteps(ids, ctx, deps, results = []) { try { let trial if (p.trial) { - trial = deps.start(p.trial, log) + trial = deps.start(p.trial, log, ctx.env) await trial.waitFor(/^trial:.*running$/m, 60000) } const outputs = [] let code = 0 for (const argv of p.commands) { - const run = await deps.exec(argv, log) + const run = await deps.exec(argv, log, ctx.env) outputs.push(run.output ?? '') if (run.code !== 0) { code = run.code; result.reason = `exit ${run.code}: ${shown(argv)}`; break } } @@ -194,11 +204,11 @@ export async function runProcedure(ctx, deps) { const unit = STEPS.filter(step => step.unit).map(step => step.id) const results = await runSteps(local, ctx, deps) const blocked = results.some(result => result.status === 'failed') - if (!blocked && ctx.unit?.available && ctx.tools?.unitQueue) { + if (!blocked && ctx.unit?.available && ctx.tools?.unitQueue && ctx.target !== 'emulator') { const file = join(ctx.out, 'unit-steps.json') const argv = ['npm', 'run', 'unit', '--', 'run', '--note', `test:procedure ${ctx.id ?? 'base'} ${ctx.build.revision.slice(0, 8)}`, '--expect', ctx.kind === 'base' ? '45m' : '15m', '--', 'node', 'scripts/test-procedure.mjs', ...(ctx.kind === 'base' ? ['--base'] : [ctx.id]), '--package', ctx.pkg, '--share', ctx.share, '--out', ctx.out, - '--soak-seconds', String(ctx.soakSeconds), ...(ctx.scene ? ['--scene', ctx.scene] : []), '--unit-phase', file] + '--soak-seconds', String(ctx.soakSeconds), ...(ctx.scene ? ['--scene', ctx.scene] : []), ...(ctx.devSocket ? ['--dev-socket', ctx.devSocket] : []), '--unit-phase', file] const started = deps.now(), run = await deps.exec(argv, join(ctx.out, 'logs', 'unit-queue.log')) const inner = deps.exists(file) ? JSON.parse(deps.read(file)) : null if (inner) results.push(...inner) @@ -238,12 +248,13 @@ const cell = text => String(text ?? '').replaceAll('|', '\\|').replaceAll('\n', export function recordMarkdown(record) { const { target, build, steps } = record, sha = build.package?.sha256 const what = target.kind === 'base' ? `${target.machine} base ${target.version ?? ''}`.trim() : `${target.id} ${target.version ?? ''}`.trim() - const unitRan = steps.some(step => step.unit && step.status === 'passed') + const unitRan = steps.some(step => step.unit && step.status === 'passed' && !step.emulator) + const emulated = steps.some(step => step.unit && step.status === 'passed' && step.emulator) const lines = [`### Test procedure: ${what}, ${record.date}`, '', `Build: revision \`${build.revision.slice(0, 12)}\`${build.dirty ? ' with uncommitted changes' : ''}, ${build.package ? `package \`${basename(build.package.path)}\` SHA-256 \`${sha}\`` : 'no package named'}. ` + `\`${record.command}\`, ${record.seconds} s. Emulator results are not hardware evidence; only what ran on the unit is.`, '', - '| # | Step | Result | Command | Evidence |', '|---|---|---|---|---|', - ...steps.map((step, index) => `| ${index + 1} | ${step.title}${step.emulator ? ' (emulator)' : ''} | ${STATUS_WORD[step.status]}${step.reason ? ': ' + cell(step.reason) : ''} | ${step.commands.map(c => '`' + cell(c) + '`').join('
')} | ${step.log ?? ''} |`), + '| # | Step | Layer | Result | Command | Evidence |', '|---|---|---|---|---|---|', + ...steps.map((step, index) => `| ${index + 1} | ${step.title}${step.emulator ? ' (emulator)' : ''} | ${step.layer === 'target' ? (step.emulator ? 'emulator' : 'unit') : step.layer ?? ''} | ${STATUS_WORD[step.status]}${step.reason ? ': ' + cell(step.reason) : ''} | ${step.commands.map(c => '`' + cell(c) + '`').join('
')} | ${step.log ?? ''} |`), '', '#### Edge cases for this change', '', 'Derive them from what the change touches and run each one (docs/TEST_PROCEDURE.md#edge-cases). A start, from the manifest and the changed files:', '', ...(record.edgeCases.suggested.length ? record.edgeCases.suggested.map(s => `- ${s.touches}: ${s.ask} (docs/${s.see})`) : ['- nothing matched: read the diff']), '', @@ -251,6 +262,7 @@ export function recordMarkdown(record) { '#### Left for the developer', '', ...DEVELOPER[target.kind].map(item => '- ' + item), '', '#### For the pull request', '', unitRan && sha ? `Tested on a unit: package ${sha.slice(0, 12)}, , test:procedure steps ${steps.map((s, i) => s.unit && s.status === 'passed' ? i + 1 : null).filter(Boolean).join(', ')}; the developer's stage .` + : emulated ? 'Not tested on a unit: steps 6 to 10 ran on the emulator only (--target emulator), which is not hardware evidence.' : `Not tested on a unit: ${steps.find(step => step.unit)?.reason ?? 'the unit steps did not run'}.`, 'Edge cases: the table above, one row a case (or "Edge cases: none, because …").', ''] return lines.join('\n') @@ -280,16 +292,21 @@ const catalogue = root => JSON.parse(readFileSync(join(root, 'src/engine/assets/ export function context(root, values, positionals, env = process.env) { const git = (...args) => { try { return execFileSync('git', args, { cwd: root, encoding: 'utf8', stdio: ['ignore', 'pipe', 'ignore'] }).trim() } catch { return '' } } const share = values.share ?? env.MODWERK_SHARE_SOCKET ?? '/tmp/modwerk-share.sock' + const target = values.target ?? 'unit' + if (!['unit', 'emulator'].includes(target)) throw new Error('--target is unit or emulator') + const devSocket = values['dev-socket'] const scripts = JSON.parse(readFileSync(join(root, 'package.json'), 'utf8')).scripts ?? {} const rows = catalogue(root) - let ctx = { kind: values.base ? 'base' : 'module', share, soakSeconds: Number(values['soak-seconds'] ?? 120), scene: values.scene, emulatorSocket: values['emulator-socket'], + let ctx = { kind: values.base ? 'base' : 'module', share, target, devSocket, + // The session's line socket for device:test's steps; an emulator takes no turn of the unit queue. + env: { ...(devSocket ? { MODWERK_DEV_SOCKET: devSocket } : {}), ...(target === 'emulator' ? { MODWERK_UNIT: 'emulator' } : {}) }, soakSeconds: Number(values['soak-seconds'] ?? 120), scene: values.scene, emulatorSocket: values['emulator-socket'], tools: { cycleScan: existsSync(join(root, SCAN_TOOL)), soak: existsSync(join(root, SOAK_TOOL)), unitQueue: !!scripts.unit }, build: { revision: git('rev-parse', 'HEAD') || 'unknown', dirty: !!git('status', '--porcelain', '--untracked-files=no') } } - const target = positionals[0] + const named = positionals[0] if (ctx.kind === 'module') { - if (!target) throw new Error('Name a module id or a package: npm run test:procedure -- | FILE.mwrm | --base') - const file = target.endsWith('.mwrm') ? resolve(target) : null - const id = file ? (basename(dirname(file)) !== 'modwerk-dev' && existsSync(join(root, 'sdk/octatrack/modules', basename(dirname(file)))) ? basename(dirname(file)) : basename(file, '.mwrm')) : target + if (!named) throw new Error('Name a module id or a package: npm run test:procedure -- | FILE.mwrm | --base') + const file = named.endsWith('.mwrm') ? resolve(named) : null + const id = file ? (basename(dirname(file)) !== 'modwerk-dev' && existsSync(join(root, 'sdk/octatrack/modules', basename(dirname(file)))) ? basename(dirname(file)) : basename(file, '.mwrm')) : named ctx = { ...ctx, id, ...moduleContext(root, id) } const row = rows.find(r => r.id === id) ctx.baseBound = !!row?.requiredBase @@ -307,7 +324,8 @@ export function context(root, values, positionals, env = process.env) { ctx.out = resolve(values.out ?? join(tmpdir(), 'modwerk-procedure', `${ctx.id ?? 'octatrack-base'}-${stamp}-${ctx.build.revision.slice(0, 8)}`)) ctx.unit = values['no-unit'] ? { available: false, reason: 'left alone with --no-unit' } : /^\d+$/.test(share) || existsSync(share) ? { available: true } - : { available: false, reason: `no unit session on ${share} (npm run device -- serve --share ${share}, with the developer's OK)` } + : target === 'emulator' ? { available: false, reason: `no emulator session on ${share} (ot_emu --usb-host EMU, then MODWERK_DEV_SOCKET=DEV npm run device -- serve --emulator --socket EMU --share ${share}, and --dev-socket DEV here)` } + : { available: false, reason: `no unit session on ${share} (npm run device -- serve --share ${share}, with the developer's OK)` } ctx.files = git('diff', '--name-only', 'origin/main...HEAD').split('\n').filter(Boolean) return ctx } @@ -317,19 +335,19 @@ export function record(ctx, steps, { started, finished, command }) { return { procedure: 1, command, date: new Date(started).toISOString().slice(0, 10), started: new Date(started).toISOString(), finished: new Date(finished).toISOString(), seconds: Math.round((finished - started) / 1000), target: ctx.kind === 'base' ? { kind: 'base', machine: ctx.machine, version: ctx.version } : { kind: 'module', id: ctx.id, version: ctx.version, machine: ctx.machine, draft: !!ctx.draft }, - build: ctx.build, unit: { ...ctx.unit, share: ctx.share }, + build: ctx.build, unit: { ...ctx.unit, share: ctx.share, target: ctx.target ?? 'unit' }, steps, edgeCases: { suggested: suggestEdgeCases({ kind: ctx.kind, manifest: ctx.manifest, files: ctx.files ?? [] }), cases: [] }, developer: { status: 'to do', items: DEVELOPER[ctx.kind] } } } function realDeps(root) { const npm = argv => argv[0] === 'npm' && process.env.npm_execpath ? [process.execPath, process.env.npm_execpath, ...argv.slice(1)] : argv[0] === 'node' ? [process.execPath, ...argv.slice(1)] : argv - const launch = (argv, log) => { + const launch = (argv, log, env = {}) => { mkdirSync(dirname(log), { recursive: true }) appendFileSync(log, '$ ' + shown(argv) + '\n') console.log('\n$ ' + shown(argv)) const [command, ...args] = npm(argv) - const child = spawn(command, args, { cwd: root, stdio: ['ignore', 'pipe', 'pipe'] }) + const child = spawn(command, args, { cwd: root, stdio: ['ignore', 'pipe', 'pipe'], env: { ...process.env, ...env } }) const state = { output: '' } const take = chunk => { const text = chunk.toString(); state.output += text; process.stdout.write(text); appendFileSync(log, text) } child.stdout.on('data', take); child.stderr.on('data', take) @@ -341,9 +359,9 @@ function realDeps(root) { exists: path => existsSync(path), read: path => readFileSync(path, 'utf8'), sha256: path => createHash('sha256').update(readFileSync(path)).digest('hex'), - exec: async (argv, log) => { const { state } = launch(argv, log); const code = await state.done; return { code, output: state.output } }, - start: (argv, log) => { - const { child, state } = launch(argv, log) + exec: async (argv, log, env) => { const { state } = launch(argv, log, env); const code = await state.done; return { code, output: state.output } }, + start: (argv, log, env) => { + const { child, state } = launch(argv, log, env) let ended = false state.done.then(() => { ended = true }) return { @@ -367,13 +385,13 @@ function realDeps(root) { const OPTIONS = { base: { type: 'boolean' }, package: { type: 'string' }, published: { type: 'boolean' }, plan: { type: 'boolean' }, out: { type: 'string' }, share: { type: 'string' }, 'no-unit': { type: 'boolean' }, 'emulator-socket': { type: 'string' }, 'soak-seconds': { type: 'string' }, scene: { type: 'string' }, - 'price-modules': { type: 'string' }, 'unit-phase': { type: 'string' }, help: { type: 'boolean', short: 'h' } } + 'price-modules': { type: 'string' }, target: { type: 'string' }, 'dev-socket': { type: 'string' }, 'unit-phase': { type: 'string' }, help: { type: 'boolean', short: 'h' } } async function main() { const { values, positionals } = parseArgs({ allowPositionals: true, options: OPTIONS }) if (values.help || (!values.base && !positionals.length)) { console.log('Usage: npm run test:procedure -- | FILE.mwrm | --base [--plan] [--package FILE] [--published] [--share SOCKET] [--no-unit]\n' + - ' [--emulator-socket SOCK] [--out DIR] [--soak-seconds 120] [--scene TEXT] [--price-modules a,b] (docs/TEST_PROCEDURE.md)') + ' [--target unit|emulator] [--dev-socket SOCK] [--emulator-socket SOCK] [--out DIR] [--soak-seconds 120] [--scene TEXT] [--price-modules a,b] (docs/TEST_PROCEDURE.md)') process.exit(values.help ? 0 : 2) } let ctx @@ -386,11 +404,11 @@ async function main() { process.exit(results.some(result => result.status === 'failed') ? 1 : 0) } if (values.plan) { - console.log(`The test procedure for ${ctx.kind === 'base' ? 'the Octatrack base' : ctx.id} (docs/TEST_PROCEDURE.md). Unit: ${ctx.unit.available ? 'a session on ' + ctx.share : ctx.unit.reason}.`) + console.log(`The test procedure for ${ctx.kind === 'base' ? 'the Octatrack base' : ctx.id} (docs/TEST_PROCEDURE.md). Steps 6 to 10 on the ${ctx.target}: ${ctx.unit.available ? 'a session on ' + ctx.share : ctx.unit.reason}.`) STEPS.forEach((step, index) => { const p = plan(step, ctx) const how = p.todo ? 'by hand: ' + p.todo.join('; ') : p.skip ? 'not run: ' + p.skip : step.unit && !ctx.unit.available ? 'not run: ' + ctx.unit.reason : p.inside ? p.note : [...(p.trial ? [p.trial] : []), ...(p.commands ?? [])].map(shown).join(' then ') || 'hash ' + (ctx.pkg ?? 'the built package') - console.log(`${String(index + 1).padStart(2)}. ${titleOf(step, ctx)}: ${how}`) + console.log(`${String(index + 1).padStart(2)}. ${titleOf(step, ctx)} [${LAYER[step.id] === 'target' ? ctx.target : LAYER[step.id]}]: ${how}`) }) return } diff --git a/scripts/test-procedure.test.mjs b/scripts/test-procedure.test.mjs index 74f8975598..21fce3eb58 100644 --- a/scripts/test-procedure.test.mjs +++ b/scripts/test-procedure.test.mjs @@ -2,7 +2,7 @@ import { mkdtempSync, readFileSync } from 'node:fs' import { tmpdir } from 'node:os' import { join } from 'node:path' import { describe, expect, it } from 'vitest' -import { context, plan, record, recordMarkdown, runProcedure, STEPS, suggestEdgeCases } from './test-procedure.mjs' +import { context, LAYER, plan, record, recordMarkdown, runProcedure, STEPS, suggestEdgeCases } from './test-procedure.mjs' import { bodyProblems } from './pr-body.mjs' const INVENTORY = '[{"name":"KITS","version":"0.2.0"}]' @@ -12,17 +12,18 @@ const moduleCtx = (extra = {}) => ({ kind: 'module', id: 'vibrato', version: '0. /** Fake tools: every command passes and device.mjs's inventory prints the same set, unless `fail` or `inventories` say otherwise. */ function fakeDeps({ fail = [], inventories = [INVENTORY, INVENTORY], files = {}, trialOutput = 'trial: 1234… running\nrolled back (pass --accept to keep it)' } = {}) { - const ran = [], started = [] + const ran = [], started = [], envs = [] let clock = 0, inventory = 0 return { - ran, started, + ran, started, envs, now: () => (clock += 1000), exists: path => path in files || path.endsWith('.mwrm') || path.endsWith('.elemod'), read: path => files[path], sha256: () => 'ab'.repeat(32), - exec: async argv => { + exec: async (argv, log, env) => { const line = argv.join(' ') ran.push(line) + envs.push(env) if (argv[2] === 'unit' && files.onQueue) files.onQueue(argv) const code = fail.some(part => line.includes(part)) ? 1 : 0 return { code, output: line.endsWith('do inventory --socket /tmp/share.sock') ? inventories[inventory++] : 'ok' } @@ -160,7 +161,9 @@ describe('the record', () => { const md = recordMarkdown(rec) expect(md).toContain('### Test procedure: vibrato 0.1.0, 2026-11-20') expect(md).toContain('SHA-256 `' + 'ab'.repeat(32) + '`') - expect(md).toContain('| 7 | Scripted unit pass | not run: no unit session on /tmp/share.sock |') + expect(md).toContain('| 7 | Scripted unit pass | unit | not run: no unit session on /tmp/share.sock |') + expect(md).toContain('| 1 | Software checks | host | passed |') + expect(md).toContain('| 2 | Beside every other module | contract | passed |') expect(md).toContain('| Case | Why this change makes it a risk | How run | Result |\n|---|---|---|---|\n| | | | |') expect(md).toContain('Not tested on a unit: no unit session on /tmp/share.sock.') expect(md).toContain('Emulator results are not hardware evidence') @@ -200,3 +203,36 @@ describe('the record', () => { expect(() => context(root, { out }, ['no-such-module'], {})).toThrow(/No module named no-such-module/) }) }) + +describe('the target switch', () => { + it('runs the same unit steps against an emulator session, labelled emulator, outside the unit queue', async () => { + const deps = fakeDeps() + const ctx = moduleCtx({ target: 'emulator', share: '/tmp/share.sock', env: { MODWERK_UNIT: 'emulator', MODWERK_DEV_SOCKET: '/tmp/emu-dev.sock' }, tools: { cycleScan: false, soak: false, unitQueue: true } }) + const steps = await runProcedure(ctx, deps) + expect(deps.ran.some(line => line.startsWith('npm run unit'))).toBe(false) + // The same commands as on the unit, with the emulator's session and no queue turn. + expect(deps.ran).toContain('npm run device:test -- --share /tmp/share.sock --testing-entry /out/device-test.md --soak 120 /out/vibrato.mwrm') + expect(deps.envs.at(-1)).toEqual({ MODWERK_UNIT: 'emulator', MODWERK_DEV_SOCKET: '/tmp/emu-dev.sock' }) + expect(steps.filter(step => step.unit).every(step => step.emulator)).toBe(true) + expect(steps.find(step => step.id === 'cost-unit')).toMatchObject({ status: 'not run', reason: expect.stringMatching(/load figures are not the unit's/) }) + expect(steps.find(step => step.id === 'emulator')).toMatchObject({ status: 'not run', reason: expect.stringMatching(/--target emulator/) }) + const md = recordMarkdown(record(ctx, steps, { started: 0, finished: 1000, command: 'npm run test:procedure -- vibrato --target emulator' })) + expect(md).toContain('| 7 | Scripted unit pass (emulator) | emulator | passed |') + expect(md).toContain('Not tested on a unit: steps 6 to 10 ran on the emulator only') + expect(md).not.toMatch(/^Tested on a unit/m) + }) + + it('reads --target and --dev-socket from the arguments, and refuses another target', () => { + const root = join(import.meta.dirname, '..'), out = mkdtempSync(join(tmpdir(), 'procedure-')) + const emu = context(root, { out, target: 'emulator', share: '/nonexistent.sock', 'dev-socket': '/tmp/d.sock' }, ['vibrato'], {}) + expect(emu).toMatchObject({ target: 'emulator', env: { MODWERK_UNIT: 'emulator', MODWERK_DEV_SOCKET: '/tmp/d.sock' }, unit: { available: false } }) + expect(emu.unit.reason).toMatch(/no emulator session on \/nonexistent.sock .*serve --emulator/) + expect(context(root, { out }, ['vibrato'], {})).toMatchObject({ target: 'unit', env: {} }) + expect(() => context(root, { out, target: 'rack' }, ['vibrato'], {})).toThrow(/--target is unit or emulator/) + }) + + it('names the pyramid layer of every step', () => { + expect(Object.keys(LAYER)).toEqual(STEPS.map(step => step.id)) + expect(new Set(Object.values(LAYER))).toEqual(new Set(['host', 'contract', 'emulator', 'target', 'unit'])) + }) +}) From d8c7da73a349cee18717d57fc026017eb9e57022 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Fri, 20 Nov 2026 09:18:51 +0100 Subject: [PATCH 162/415] Fix: device:test fails when the trial's own verdict does `npm run device -- try` ends with a verdict from the unit's log, and a crash, DSP stall, frozen UI or skipped track during the trial fails it. device:test read only "accepted" and "rolled back" from the trial's output, so such a fault never reached its failures: on an MKII on 20 November 2026 a POLY8 run logged 1609 frame-guard skips on T1 and reported only the machine's CPU price. The verdict's FAIL lines are now failures of the run; its notes (a hot CPU) are not. Co-Authored-By: Claude Opus 5.5 --- .../2026-11-20-device-test-trial-verdict.md | 1 + scripts/octatrack-test.py | 13 +++++++++++++ sdk/tests/test_octatrack_test.py | 16 ++++++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 changelog/2026-11-20-device-test-trial-verdict.md diff --git a/changelog/2026-11-20-device-test-trial-verdict.md b/changelog/2026-11-20-device-test-trial-verdict.md new file mode 100644 index 0000000000..cffc93aada --- /dev/null +++ b/changelog/2026-11-20-device-test-trial-verdict.md @@ -0,0 +1 @@ +SDK (Octatrack): `npm run device:test` now fails when the trial's own verdict does. A crash, DSP stall, frozen UI or skipped track that the unit logged during the trial used to show only in the trial's output; on an MKII on 20 November 2026 a POLY8 run logged 1609 frame-guard skips on T1 and still reported only its CPU price. diff --git a/scripts/octatrack-test.py b/scripts/octatrack-test.py index 43f59dd8b5..7f63433967 100755 --- a/scripts/octatrack-test.py +++ b/scripts/octatrack-test.py @@ -12,6 +12,8 @@ --accept, and SIGINT rolls it back at the end. Nothing is kept: the card's set and the flashed base's modules stay as they were, so no --keeps-ok. - It reads the self-test with the package installed, and checks that the inventory at the end equals the one before. +- The trial's own verdict, from the unit's log, fails the run too: a crash, DSP stall, frozen UI or skipped track logged + during it (scripts/device.mjs, src/dev/trial-verdict.ts). Its notes, such as a hot CPU, do not. - One package a run (bases without whole-set trials take one change), and no crash test (a restart ends the trial outside the run). @@ -62,6 +64,16 @@ def wait_started(self, seconds=60): self.started.wait(seconds) if not self.running(): raise RuntimeError('the trial did not start: ' + ' / '.join(self.lines[-5:] or ['no output'])) + def faults(self): + """The FAIL lines of the trial's verdict: `verdict: ` and the indented lines after it (scripts/device.mjs). A note + (a hot CPU) is not one.""" + found, inside = [], False + for line in self.lines: + if line.startswith('verdict: '): inside, line = True, line[len('verdict: '):] + elif not line.startswith(' '): inside = False + if inside and line.strip().startswith('FAIL'): found.append(line.strip()) + return found + def end(self, failures): """Roll the trial back (SIGINT, as Ctrl-C does) and check that it says so.""" if self.proc.poll() is None: self.proc.send_signal(signal.SIGINT) @@ -76,6 +88,7 @@ def end(self, failures): if 'accepted' in self.lines: failures.append('the trial process says accepted: the package was kept') elif self.running() and not any(l.startswith('rolled back') for l in self.lines): failures.append('the trial did not report its rollback: ' + ' / '.join(self.lines[-3:])) + failures.extend('the unit logged during the trial: ' + fault for fault in self.faults()) def main(): diff --git a/sdk/tests/test_octatrack_test.py b/sdk/tests/test_octatrack_test.py index 2ae64d743f..ae9ff2cf2f 100755 --- a/sdk/tests/test_octatrack_test.py +++ b/sdk/tests/test_octatrack_test.py @@ -73,6 +73,22 @@ def test_the_trial_is_rolled_back_and_checked(self): kept.wait_started(10) kept.end(failures) self.assertEqual(failures, ['the trial process says accepted: the package was kept']) + faulted = octatest.Trial([sys.executable, '-c', FAKE_TRIAL, 'verdict: FAIL (boot 7 +313s) the frame guard skipped tracks T1, ' + '2 skips since the start\n note (boot 7 +326s) the CPU meter over its limit\n' + 'rolled back: the trial logged a fault (above), so it is not kept']) + faulted.wait_started(10) + failures = [] + faulted.end(failures) + self.assertEqual(failures, ['the unit logged during the trial: FAIL (boot 7 +313s) the frame guard skipped tracks T1, 2 skips since the start']) + + def test_only_the_verdicts_fail_lines_are_faults(self): + trial = octatest.Trial.__new__(octatest.Trial) + trial.lines = ['trial: 0123 running', ' 12s: ticks 1, refusals 0 FAIL', 'verdict: note (boot 6 +31872s) the CPU meter over its limit', + ' FAIL (boot 6 +31873s) DSP stall (eDMA refused a transfer)', ' npm run device -- do diaglog prints the whole log', + 'rolled back: the trial logged a fault (above), so it is not kept', ' FAIL not part of the verdict'] + self.assertEqual(trial.faults(), ['FAIL (boot 6 +31873s) DSP stall (eDMA refused a transfer)']) + trial.lines = ['trial: 0123 running', 'verdict: no fault logged', 'rolled back (pass --accept to keep it)'] + self.assertEqual(trial.faults(), []) def test_the_entry_says_nothing_was_kept_and_what_is_left(self): result = dict(args=['e.mwrm'], crash=False, failures=[], packages=[dict(file='e.mwrm', name='E-Verb', sha256='5f' * 32)], From 969622e33b39c7684d1deb7ccce9a432c788af0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Fri, 20 Nov 2026 09:22:01 +0100 Subject: [PATCH 163/415] Docs: on the owner's computer agents use the unit without asking for work that puts it back The owner, 20 November 2026: agents on his computer need no OK to run on the unit. A Keep (device:qualify too), a flash and a power cycle still need his yes. Step 2 of /modwerk-test-on-unit keeps the per-run OK for contributors; fix-issue, maintain and MAINTENANCE.md point to OWNER_OPERATIONS.md. The check lock advice now names the slots that npm run check, pr:ready and sdk:check take by themselves. Co-Authored-By: Claude Opus 5.5 --- .agents/skills/modwerk-fix-issue/SKILL.md | 2 +- .agents/skills/modwerk-maintain/SKILL.md | 2 +- .agents/skills/modwerk-test-on-unit/SKILL.md | 2 +- .claude/skills/modwerk-fix-issue/SKILL.md | 2 +- .claude/skills/modwerk-maintain/SKILL.md | 2 +- .claude/skills/modwerk-test-on-unit/SKILL.md | 2 +- docs/MAINTENANCE.md | 2 +- docs/OCTATRACK_DRIVING.md | 5 +++-- docs/OWNER_OPERATIONS.md | 3 ++- 9 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.agents/skills/modwerk-fix-issue/SKILL.md b/.agents/skills/modwerk-fix-issue/SKILL.md index 1a3fc6e46e..baf09f7064 100644 --- a/.agents/skills/modwerk-fix-issue/SKILL.md +++ b/.agents/skills/modwerk-fix-issue/SKILL.md @@ -18,7 +18,7 @@ Who is asking decides the flow: Then, in every flow: 1. **Read the report in full** (`gh issue view --json body,comments`), then check that nobody fixed it already: an issue stays open until the owner has checked the live site, so look for open and merged pull requests too (`gh pr list --state all --search ""`). One that covers it ends the task; say which. Then read the issue's claim (`npm run board -- list issue `): someone holding it is fixing it now, so ask them (`npm run board -- ask issue "…"`) and settle it before you go on. Otherwise claim it from your fix branch (`npm run board -- claim issue `); the board links the pull request on that branch itself. 2. **Reproduce it before you change anything,** on the reported build and with the reported steps: - - on the unit, as stage 1 of `/modwerk-test-on-unit` (the developer's OK first, trials only), for sound, timing, load, USB and anything only the instrument shows; + - on the unit, as stage 1 of `/modwerk-test-on-unit` (the developer's OK first, standing on the owner's computer; trials only), for sound, timing, load, USB and anything only the instrument shows; - in the emulator for screens, menus, crashes and freezes, or where there is no unit. - Write down the steps and what they showed, and say where: reproduced on the unit, in the emulator, or not reproduced. A fix for a report you could not reproduce is a mitigation until the reporter confirms it; keep the two apart. 3. **Read the module's claim on the agent board** before changing it: `npm run board -- list module /`. Someone else holding it is changing it now: stop, ask them yourself (`npm run board -- ask module / "…"`), tell the developer who and that you asked, and settle it before you go on. diff --git a/.agents/skills/modwerk-maintain/SKILL.md b/.agents/skills/modwerk-maintain/SKILL.md index 0873b54a36..1d242a0b95 100644 --- a/.agents/skills/modwerk-maintain/SKILL.md +++ b/.agents/skills/modwerk-maintain/SKILL.md @@ -11,4 +11,4 @@ Otherwise run the pass in `docs/MAINTENANCE.md` exactly. It holds the steps, eac - With an argument, run only that worker. - Text pasted with the command, such as Discord feedback, goes to the beta worker. - Start from the newest briefing in `~/.cache/modwerk-local/maintain/`, and write today's there. -- Nothing is merged, closed, declined, posted, or run on the unit or the emulator without the owner's yes. +- Nothing is merged, closed, declined, posted, or run on the emulator without the owner's yes; the unit is used as `docs/OWNER_OPERATIONS.md` says (a Keep, flash or power cycle needs his yes). diff --git a/.agents/skills/modwerk-test-on-unit/SKILL.md b/.agents/skills/modwerk-test-on-unit/SKILL.md index 15a58f2f44..aa09cd1f26 100644 --- a/.agents/skills/modwerk-test-on-unit/SKILL.md +++ b/.agents/skills/modwerk-test-on-unit/SKILL.md @@ -11,7 +11,7 @@ The order is fixed: your tests on the unit first, then the developer's. A build 2. **Prepare.** - The software checks are green first (`npm run module:doctor -- `, `npm run modules:compat -- `). - Name the build: the source revision and each package's SHA-256. A draft's package comes from `npm run module:dev -- --build-only`. Both stages are about this build only; a rebuild starts again at stage 1. - - Tell the developer what you will run on their unit and get their OK for this run. Read `docs/OCTATRACK_DRIVING.md` and keep its rules. + - Tell the developer what you will run on their unit and get their OK for this run (on the owner's computer it stands, `docs/OWNER_OPERATIONS.md`). Read `docs/OCTATRACK_DRIVING.md` and keep its rules. - Start one session with `npm run device -- serve --share /tmp/modwerk-share.sock` on a development base, transport stopped, on a bank and Part whose working copy equals its saved one. Read the unit before you change it: `ui` and `npm run device -- do inventory`. 3. **Stage 1: your tests on the unit** (Octatrack; the Rytm below). Run them yourself; do not ask the developer to press anything. No Keep in this stage. - **The scripted pass:** `npm run device:test -- --testing-entry run.md `, in the background, reading its log (`docs/ADD_A_MODULE.md#octatrack-base-and-usb-lifecycle`). It installs the package as a trial and rolls it back at the end; places it alone on T1 and T5 and on every track while playing; sweeps its knobs; switches Parts and banks; reads the load meters, loader, crash and stall counters and the self-test; then restores the Part and checks the inventory. One package a run. diff --git a/.claude/skills/modwerk-fix-issue/SKILL.md b/.claude/skills/modwerk-fix-issue/SKILL.md index 1a3fc6e46e..baf09f7064 100644 --- a/.claude/skills/modwerk-fix-issue/SKILL.md +++ b/.claude/skills/modwerk-fix-issue/SKILL.md @@ -18,7 +18,7 @@ Who is asking decides the flow: Then, in every flow: 1. **Read the report in full** (`gh issue view --json body,comments`), then check that nobody fixed it already: an issue stays open until the owner has checked the live site, so look for open and merged pull requests too (`gh pr list --state all --search ""`). One that covers it ends the task; say which. Then read the issue's claim (`npm run board -- list issue `): someone holding it is fixing it now, so ask them (`npm run board -- ask issue "…"`) and settle it before you go on. Otherwise claim it from your fix branch (`npm run board -- claim issue `); the board links the pull request on that branch itself. 2. **Reproduce it before you change anything,** on the reported build and with the reported steps: - - on the unit, as stage 1 of `/modwerk-test-on-unit` (the developer's OK first, trials only), for sound, timing, load, USB and anything only the instrument shows; + - on the unit, as stage 1 of `/modwerk-test-on-unit` (the developer's OK first, standing on the owner's computer; trials only), for sound, timing, load, USB and anything only the instrument shows; - in the emulator for screens, menus, crashes and freezes, or where there is no unit. - Write down the steps and what they showed, and say where: reproduced on the unit, in the emulator, or not reproduced. A fix for a report you could not reproduce is a mitigation until the reporter confirms it; keep the two apart. 3. **Read the module's claim on the agent board** before changing it: `npm run board -- list module /`. Someone else holding it is changing it now: stop, ask them yourself (`npm run board -- ask module / "…"`), tell the developer who and that you asked, and settle it before you go on. diff --git a/.claude/skills/modwerk-maintain/SKILL.md b/.claude/skills/modwerk-maintain/SKILL.md index 0873b54a36..1d242a0b95 100644 --- a/.claude/skills/modwerk-maintain/SKILL.md +++ b/.claude/skills/modwerk-maintain/SKILL.md @@ -11,4 +11,4 @@ Otherwise run the pass in `docs/MAINTENANCE.md` exactly. It holds the steps, eac - With an argument, run only that worker. - Text pasted with the command, such as Discord feedback, goes to the beta worker. - Start from the newest briefing in `~/.cache/modwerk-local/maintain/`, and write today's there. -- Nothing is merged, closed, declined, posted, or run on the unit or the emulator without the owner's yes. +- Nothing is merged, closed, declined, posted, or run on the emulator without the owner's yes; the unit is used as `docs/OWNER_OPERATIONS.md` says (a Keep, flash or power cycle needs his yes). diff --git a/.claude/skills/modwerk-test-on-unit/SKILL.md b/.claude/skills/modwerk-test-on-unit/SKILL.md index 15a58f2f44..aa09cd1f26 100644 --- a/.claude/skills/modwerk-test-on-unit/SKILL.md +++ b/.claude/skills/modwerk-test-on-unit/SKILL.md @@ -11,7 +11,7 @@ The order is fixed: your tests on the unit first, then the developer's. A build 2. **Prepare.** - The software checks are green first (`npm run module:doctor -- `, `npm run modules:compat -- `). - Name the build: the source revision and each package's SHA-256. A draft's package comes from `npm run module:dev -- --build-only`. Both stages are about this build only; a rebuild starts again at stage 1. - - Tell the developer what you will run on their unit and get their OK for this run. Read `docs/OCTATRACK_DRIVING.md` and keep its rules. + - Tell the developer what you will run on their unit and get their OK for this run (on the owner's computer it stands, `docs/OWNER_OPERATIONS.md`). Read `docs/OCTATRACK_DRIVING.md` and keep its rules. - Start one session with `npm run device -- serve --share /tmp/modwerk-share.sock` on a development base, transport stopped, on a bank and Part whose working copy equals its saved one. Read the unit before you change it: `ui` and `npm run device -- do inventory`. 3. **Stage 1: your tests on the unit** (Octatrack; the Rytm below). Run them yourself; do not ask the developer to press anything. No Keep in this stage. - **The scripted pass:** `npm run device:test -- --testing-entry run.md `, in the background, reading its log (`docs/ADD_A_MODULE.md#octatrack-base-and-usb-lifecycle`). It installs the package as a trial and rolls it back at the end; places it alone on T1 and T5 and on every track while playing; sweeps its knobs; switches Parts and banks; reads the load meters, loader, crash and stall counters and the self-test; then restores the Part and checks the inventory. One package a run. diff --git a/docs/MAINTENANCE.md b/docs/MAINTENANCE.md index 42e259e1ee..a6e38804ca 100644 --- a/docs/MAINTENANCE.md +++ b/docs/MAINTENANCE.md @@ -12,7 +12,7 @@ The [maintenance bot](MAINTENANCE_BOT.md) runs the routine part of the pull requ 4. **Check the workers against each other**, then write one briefing, in chat and to `~/.cache/modwerk-local/maintain/.md`. A claim one worker makes can undo another's draft (one warned of a patch overlap that another's reply walked into; the module's build file settled it), so verify a contradiction before it reaches the owner. Put first anything that can't wait (a bot run or a deadline within the hour), then the real calls, each with a recommendation the owner can answer in a word ("merge #N?", "decline #N?"), then one routine batch the owner approves whole or strikes items from: standard closures with their reasons, and drafts to post. Then what was done and what waits on whom. Tester names and diagnostics stay in that file and the chat, never on GitHub. 5. **Carry out what the owner approves**, in the same session. An approval covers only what it names. First compare each target's last update with the briefing time and read again what moved: authors close, push and open pull requests meanwhile. -A worker may, without asking: read anything, run `diagnostics:pull`, build and test in its own worktree behind the check lock, refresh and fix the branch of a pull request the owner opened (unless another session is working on it), and ask a reporter for missing details. Everything else is a decision in the briefing: merging, closing, review comments and follow-ups to contributors, pushing to a contributor's branch, anything on the unit, production writes, secrets and mail. Drafts for contributors and testers are plain and friendly, in the owner's voice; post each from a file (`--body-file`) in bash, since zsh does not split `set -- $spec` in a loop. Every session on this computer shares one connected Octatrack and one emulator: a worker starts neither `ot_emu` (or digiemu, rytm-emu) nor anything on the unit unless the owner says it is free, and then only one worker at a time. +A worker may, without asking: read anything, run `diagnostics:pull`, build and test in its own worktree behind the check lock, refresh and fix the branch of a pull request the owner opened (unless another session is working on it), use the unit for work that puts it back ([OWNER_OPERATIONS.md](OWNER_OPERATIONS.md)), and ask a reporter for missing details. Everything else is a decision in the briefing: merging, closing, review comments and follow-ups to contributors, pushing to a contributor's branch, a Keep, flash or power cycle on the unit, production writes, secrets and mail. Drafts for contributors and testers are plain and friendly, in the owner's voice; post each from a file (`--body-file`) in bash, since zsh does not split `set -- $spec` in a loop. Every session on this computer shares one connected Octatrack and one emulator: a worker starts no `ot_emu` (or digiemu, rytm-emu) unless the owner says it is free, and then only one worker at a time, and takes the unit only through its queue ([taking turns](OCTATRACK_DRIVING.md#taking-turns-on-the-unit)). ## Pull request worker diff --git a/docs/OCTATRACK_DRIVING.md b/docs/OCTATRACK_DRIVING.md index 52274a0f65..3151d16ede 100644 --- a/docs/OCTATRACK_DRIVING.md +++ b/docs/OCTATRACK_DRIVING.md @@ -100,8 +100,9 @@ device commands take turns on it by themselves (`scripts/unit-queue.mjs`), so no (Linux `~/.local/state/modwerk/unit-queue`, macOS `~/Library/Application Support/modwerk/unit-queue`, Windows `%LOCALAPPDATA%\modwerk\unit-queue`; `MODWERK_UNIT_DIR` moves it), shared by every clone and worktree. Sessions in WSL and on its Windows host keep separate queues. -- The queue replaces only asking whether the unit is free. What runs on the developer's unit still needs their OK, and - power cycles, flashing and Keeps stay as the rules above say. +- The queue replaces only asking whether the unit is free. What runs on the developer's unit still needs their OK (on + the owner's computer it stands, [OWNER_OPERATIONS.md](OWNER_OPERATIONS.md)), and power cycles, flashing and Keeps stay + as the rules above say. ## Start the link diff --git a/docs/OWNER_OPERATIONS.md b/docs/OWNER_OPERATIONS.md index f8da659740..7f19a86f17 100644 --- a/docs/OWNER_OPERATIONS.md +++ b/docs/OWNER_OPERATIONS.md @@ -4,7 +4,8 @@ Running the live Modwerk site is the owner's work: the complete issue-fix and re ## On the owner's computer -- Other agents often work on this computer at the same time, and checks or native builds running in parallel fill the disk and slow each other down. Queue them behind one machine-wide lock, for example `lockf -k /tmp/modwerk-check.lock npm run check -- --base origin/main`, which waits for any running check to finish first. There is also one connected Octatrack and one emulator for all of them: one session uses either at a time. The device commands queue for the unit by themselves, so nobody waits for the owner to say it is free: `npm run unit -- status` shows who has it, and `npm run unit -- hold` keeps it while the owner plays it by hand ([taking turns on the unit](OCTATRACK_DRIVING.md#taking-turns-on-the-unit)). +- Other agents often work on this computer at the same time, and checks or native builds running in parallel fill the disk and slow each other down. `npm run check`, `pr:ready` and `sdk:check` wait for a free slot by themselves (`npm run slots`, [DEVELOPER_WORKFLOW.md](DEVELOPER_WORKFLOW.md#make-it-mergeable)); queue other native builds behind one machine-wide lock, for example `lockf -k /tmp/modwerk-check.lock `. There is also one connected Octatrack and one emulator for all of them: one session uses either at a time. The device commands queue for the unit by themselves, so nobody waits for the owner to say it is free: `npm run unit -- status` shows who has it, and `npm run unit -- hold` keeps it while the owner plays it by hand ([taking turns on the unit](OCTATRACK_DRIVING.md#taking-turns-on-the-unit)). +- The unit on this computer is a development unit, and agents need no OK from the owner to use it (owner, 20 November 2026): a session takes its turn through the queue and runs, without asking, what puts the unit back, such as rolled-back trials, `device:test`, `device:price`, RAM boots of development builds, driving it and captures. A Keep (`device:qualify` Keeps too), a flash and a power cycle still need his explicit yes, and an agent never power-cycles the unit itself. - Disk space on the owner's computer runs out. Once a pull request you opened is merged or closed, remove its worktree with `git worktree remove` and delete the temporary folders you created for it, such as builds, renders and logs under `/private/tmp`. Keep anything with uncommitted or unpushed work, and leave folders another session created. ## Email sendouts From dd65e12b56cd5e8a322e1ecb8a1ab796c3e120b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Fri, 20 Nov 2026 09:22:01 +0100 Subject: [PATCH 164/415] unit run on Windows: start an .exe directly, a .cmd through one escaped cmd.exe line Co-Authored-By: Claude Opus 5.5 --- scripts/unit-queue.mjs | 32 +++++++++++++++++++++++++++++--- scripts/unit-queue.test.mjs | 18 +++++++++++++++++- 2 files changed, 46 insertions(+), 4 deletions(-) diff --git a/scripts/unit-queue.mjs b/scripts/unit-queue.mjs index 2ce73e53b6..9b50419b55 100755 --- a/scripts/unit-queue.mjs +++ b/scripts/unit-queue.mjs @@ -20,9 +20,9 @@ // needs no turn. import { execFileSync, spawn } from 'node:child_process' import { randomUUID } from 'node:crypto' -import { mkdirSync, readFileSync, readdirSync, renameSync, rmSync, statSync, watch, writeFileSync } from 'node:fs' +import { existsSync, mkdirSync, readFileSync, readdirSync, renameSync, rmSync, statSync, watch, writeFileSync } from 'node:fs' import { homedir } from 'node:os' -import { basename, join, resolve } from 'node:path' +import { basename, join, resolve, win32 } from 'node:path' import { fileURLToPath } from 'node:url' const SECOND = 1000, MINUTE = 60 * SECOND @@ -291,6 +291,31 @@ export function sequenceDrives(line) { return waits > 1000 || !steps.every(step => READ_STEPS.some(pattern => pattern.test(step))) // a long wait holds serve's queue } +// cmd.exe's own characters. Inside the quoted argument each gets a caret, and a second one for a .cmd or .bat file, +// which reads its arguments once more (%*), as cross-spawn does it. +const CMD_META = /([()\][%!^"`<>&|;, *?])/g +const cmdArgument = (arg, batch) => { + const quoted = ('"' + String(arg).replace(/(\\*)"/g, '$1$1\\"').replace(/(\\*)$/, '$1$1') + '"').replace(CMD_META, '^$1') + return batch ? quoted.replace(CMD_META, '^$1') : quoted +} +/** How Windows runs COMMAND ARGS… with each argument arriving as it was given. An .exe (or .com) starts directly and Node + * quotes its arguments. A .cmd or .bat (npm, npx) can start only through cmd.exe: one verbatim command line, each argument + * quoted for the program and escaped for cmd and the batch file, never a shell's plain join of the words. */ +export function windowsLaunch(argv, env = process.env, exists = existsSync) { + const [command, ...args] = argv, extensions = (env.PATHEXT || '.COM;.EXE;.BAT;.CMD').split(';').filter(Boolean) + const folders = /[\\/:]/.test(command) ? [''] : ['', ...(env.PATH ?? env.Path ?? '').split(';').filter(Boolean)] + let found + for (const folder of folders) { + for (const extension of /\.\w+$/.test(command) ? ['', ...extensions] : extensions) { + const candidate = folder ? win32.join(folder, command + extension) : command + extension + if (exists(candidate)) { found = candidate; break } + } + if (found) break + } + if (!found || !/\.(bat|cmd)$/i.test(found)) return { file: found ?? command, args } + return { file: env.ComSpec || 'cmd.exe', args: ['/d', '/s', '/c', `"${[found.replace(CMD_META, '^$1'), ...args.map(arg => cmdArgument(arg, true))].join(' ')}"`], verbatim: true } +} + const USAGE = 'Usage: npm run unit -- status [--json] | hold [--for 30m] [--note TEXT] [--wait D] | release [--force] | run [--note TEXT] [--expect 15m] [--wait D] [--steps LINE] -- COMMAND…' /** The command line; returns the exit status. */ @@ -356,7 +381,8 @@ export async function main(argv, { env = process.env, out = line => console.log( // Ctrl-C reaches the command from the terminal by itself, and a second SIGINT would cut its rollback short, so this // process keeps waiting for it. SIGTERM or SIGHUP (a closed terminal, a stopped task) ask the command to stop the way // Ctrl-C does, so a trial rolls back, and stop it outright 90 s on. - const child = spawn(commandLine[0], commandLine.slice(1), { stdio: 'inherit', cwd, shell: process.platform === 'win32', + const launch = process.platform === 'win32' ? windowsLaunch(commandLine, env) : { file: commandLine[0], args: commandLine.slice(1) } + const child = spawn(launch.file, launch.args, { stdio: 'inherit', cwd, windowsVerbatimArguments: Boolean(launch.verbatim), env: { ...env, MODWERK_UNIT_TURN: turn?.id ?? env.MODWERK_UNIT_TURN ?? 'none' } }) if (child.pid) turn?.setChild(child.pid) const onInt = () => {}, onTerm = () => { child.kill('SIGINT'); setTimeout(() => child.kill('SIGTERM'), 90 * SECOND).unref() } diff --git a/scripts/unit-queue.test.mjs b/scripts/unit-queue.test.mjs index e8f988e508..7fa4e84ac4 100644 --- a/scripts/unit-queue.test.mjs +++ b/scripts/unit-queue.test.mjs @@ -4,7 +4,7 @@ import { tmpdir } from 'node:os' import { join } from 'node:path' import { fileURLToPath } from 'node:url' import { afterEach, beforeEach, describe, expect, it } from 'vitest' -import { acquire, describe as describeQueue, HOLD_GRACE, judge, parseDuration, processEntry, readTurn, sequenceDrives, UnitBusyError, unitDirectory, waiting } from './unit-queue.mjs' +import { acquire, describe as describeQueue, HOLD_GRACE, judge, parseDuration, processEntry, readTurn, sequenceDrives, UnitBusyError, unitDirectory, waiting, windowsLaunch } from './unit-queue.mjs' const script = fileURLToPath(new URL('./unit-queue.mjs', import.meta.url)) const goneProcess = () => Number(spawnSync(process.execPath, ['-e', 'process.stdout.write(String(process.pid))'], { encoding: 'utf8' }).stdout) @@ -235,4 +235,20 @@ describe('the unit queue', () => { 'gap', 'selftest', 'reload', 'ui w5000', 'PLAY w2000 guard', 'encA+3', 'dspmap:watch:5', 'profile', 'crashtest']) expect(sequenceDrives(line), line).toBe(true) }) + + it('passes the command its arguments as they were given: no shell on Linux and macOS, quoted for cmd.exe on Windows', async () => { + const words = ['a b', 'q"x', '$HOME', '*', 'x&y', '100%'] + const run = cli(['run', '--', process.execPath, '-e', 'console.log(JSON.stringify(process.argv.slice(1)))', ...words]) + expect(await run.done).toBe(0) + expect(JSON.parse(run.out)).toEqual(words) + + // Windows: an .exe starts directly, and Node quotes its arguments. + const env = { PATH: 'C:\\Python;C:\\Program Files\\nodejs', PATHEXT: '.EXE;.CMD', ComSpec: 'C:\\Windows\\system32\\cmd.exe' } + expect(windowsLaunch(['python', '-B', 'x y.py'], env, path => path === 'C:\\Python\\python.EXE')).toEqual({ file: 'C:\\Python\\python.EXE', args: ['-B', 'x y.py'] }) + expect(windowsLaunch(['tool', 'a b'], env, () => false)).toEqual({ file: 'tool', args: ['a b'] }) + // npm is a .cmd: one verbatim cmd.exe line, each argument quoted and caret-escaped for cmd and again for the batch file. + const npm = windowsLaunch(['npm', 'run', '--', 'a b&calc', 'q"x', '100%', 'C:\\dir\\'], env, path => path === 'C:\\Program Files\\nodejs\\npm.CMD') + expect(npm).toEqual({ file: 'C:\\Windows\\system32\\cmd.exe', verbatim: true, args: ['/d', '/s', '/c', + '"C:\\Program^ Files\\nodejs\\npm.CMD ^^^"run^^^" ^^^"--^^^" ^^^"a^^^ b^^^&calc^^^" ^^^"q\\^^^"x^^^" ^^^"100^^^%^^^" ^^^"C:\\dir\\\\^^^""'] }) + }) }) From dc4c9764a64fe1dfe69b4b38a0efde84431d61d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Fri, 20 Nov 2026 09:22:52 +0100 Subject: [PATCH 165/415] Docs: open pull requests early as drafts Agents and developers now open a draft once a first commit shows the direction and push as they go, so the owner and reviewers can comment early. pr:ready runs before a pull request is marked ready and before pushes to a ready one, rather than before every push. The source-recipe trap moves to ADD_A_MODULE.md to keep DEVELOPER_WORKFLOW.md under 40 KB. Co-Authored-By: Claude Opus 5.5 --- .agents/skills/modwerk-pr-ready/SKILL.md | 4 ++-- .claude/skills/modwerk-pr-ready/SKILL.md | 4 ++-- AGENTS.md | 4 ++-- docs/ADD_A_MODULE.md | 2 ++ docs/DEVELOPER_WORKFLOW.md | 17 +++++++++++------ sdk/AGENTS.md | 2 +- 6 files changed, 20 insertions(+), 13 deletions(-) diff --git a/.agents/skills/modwerk-pr-ready/SKILL.md b/.agents/skills/modwerk-pr-ready/SKILL.md index eea1a61449..27f1adc76b 100644 --- a/.agents/skills/modwerk-pr-ready/SKILL.md +++ b/.agents/skills/modwerk-pr-ready/SKILL.md @@ -1,6 +1,6 @@ --- name: modwerk-pr-ready -description: Make a Modwerk pull request mergeable without the owner repairing it - merge main, regenerate generated files, run pr:ready until Ready, push and watch the checks. Use before every push, after merging main, or when checks are red. +description: Make a Modwerk pull request mergeable without the owner repairing it - merge main, regenerate generated files, run pr:ready until Ready, push and watch the checks. Use before marking a pull request ready, before every push to a ready one, after merging main, or when checks are red. --- # /modwerk-pr-ready @@ -11,7 +11,7 @@ Follow `docs/DEVELOPER_WORKFLOW.md#make-it-mergeable`. 2. **Regenerate** generated files rather than resolving them by hand: `npm run modules:generate`, `npm run licenses:generate`, `npm run machines:generate`. 3. **Check once.** For a new commit, stage the intended files and run `npm run pr:ready -- --commit "Message"`. For an existing commit, run `npm run pr:ready`. For a registered author, use `npm run pr:ready -- --author ` and include the same `--author` option when committing. Let each command manage its own machine slot so other worktrees can run while you push or watch GitHub. - It also claims on the agent board what the branch adds (a new module, hook or table index, migration) and stops when someone else holds one. Never work around a claim: renumber, rename or ask its holder yourself. Signed out, it asks for `npm run board -- login` first. When it notes questions or replies in the developer's board inbox, read them (`npm run board -- inbox`), answer them yourself from what you can check, close your settled ones, and tell the developer what you said; only a decision about their own work goes to them first. When it offers a finding, post it yourself. -4. **Push** and open or update the pull request. If it changes what runs on an instrument (a `.mwrm` package or `.elemod` base), open it as a draft (`gh pr create --draft`) and mark it ready only after the developer has tested that exact build on a unit; the description then names it on a line of its own ("Tested on a unit: base 8d1db124, MKII, what ran", or "Not tested on a unit: "). A base change opens no pull request of its own: commit it to its machine's cumulative draft from `base/-next`, or open yours against that branch (`gh pr create --base base/-next`). That draft stays a draft until the base has been tested extensively on a unit; never mark it ready, only the owner does ([Change a base](../../../docs/DEVELOPER_WORKFLOW.md#change-a-base)). Ready from pr:ready means the checks pass, not that it was tested. A change outside a module is titled `Fix: …`, `Improvement: …` or `Docs: …`. Write the description in the template's shape: what changed, how you checked it, and a line that answers the guides question ("Guides: nothing" is fine). CI checks it. +4. **Push** and update the pull request; with none open yet, open it as a draft (`gh pr create --draft`), which should have happened early ([Open a draft early](../../../docs/DEVELOPER_WORKFLOW.md#open-a-draft-early)). Mark it ready (`gh pr ready`) when the work is done and pr:ready says Ready. If it changes what runs on an instrument (a `.mwrm` package or `.elemod` base), mark it ready only after the developer has tested that exact build on a unit; the description then names it on a line of its own ("Tested on a unit: base 8d1db124, MKII, what ran", or "Not tested on a unit: "). A base change opens no pull request of its own: commit it to its machine's cumulative draft from `base/-next`, or open yours against that branch (`gh pr create --base base/-next`). That draft stays a draft until the base has been tested extensively on a unit; never mark it ready, only the owner does ([Change a base](../../../docs/DEVELOPER_WORKFLOW.md#change-a-base)). Ready from pr:ready means the checks pass, not that it was tested. A change outside a module is titled `Fix: …`, `Improvement: …` or `Docs: …`. Write the description in the template's shape: what changed, how you checked it, and a line that answers the guides question ("Guides: nothing" is fine). CI checks it. - Watch `gh pr checks --watch` until green. For a red job, read `gh run view --log-failed`. - If `main` moves before the merge, start again at 1. 5. **Answer what pr:ready asks:** a guide edit for what you learned, or "nothing" in the pull request. diff --git a/.claude/skills/modwerk-pr-ready/SKILL.md b/.claude/skills/modwerk-pr-ready/SKILL.md index eea1a61449..27f1adc76b 100644 --- a/.claude/skills/modwerk-pr-ready/SKILL.md +++ b/.claude/skills/modwerk-pr-ready/SKILL.md @@ -1,6 +1,6 @@ --- name: modwerk-pr-ready -description: Make a Modwerk pull request mergeable without the owner repairing it - merge main, regenerate generated files, run pr:ready until Ready, push and watch the checks. Use before every push, after merging main, or when checks are red. +description: Make a Modwerk pull request mergeable without the owner repairing it - merge main, regenerate generated files, run pr:ready until Ready, push and watch the checks. Use before marking a pull request ready, before every push to a ready one, after merging main, or when checks are red. --- # /modwerk-pr-ready @@ -11,7 +11,7 @@ Follow `docs/DEVELOPER_WORKFLOW.md#make-it-mergeable`. 2. **Regenerate** generated files rather than resolving them by hand: `npm run modules:generate`, `npm run licenses:generate`, `npm run machines:generate`. 3. **Check once.** For a new commit, stage the intended files and run `npm run pr:ready -- --commit "Message"`. For an existing commit, run `npm run pr:ready`. For a registered author, use `npm run pr:ready -- --author ` and include the same `--author` option when committing. Let each command manage its own machine slot so other worktrees can run while you push or watch GitHub. - It also claims on the agent board what the branch adds (a new module, hook or table index, migration) and stops when someone else holds one. Never work around a claim: renumber, rename or ask its holder yourself. Signed out, it asks for `npm run board -- login` first. When it notes questions or replies in the developer's board inbox, read them (`npm run board -- inbox`), answer them yourself from what you can check, close your settled ones, and tell the developer what you said; only a decision about their own work goes to them first. When it offers a finding, post it yourself. -4. **Push** and open or update the pull request. If it changes what runs on an instrument (a `.mwrm` package or `.elemod` base), open it as a draft (`gh pr create --draft`) and mark it ready only after the developer has tested that exact build on a unit; the description then names it on a line of its own ("Tested on a unit: base 8d1db124, MKII, what ran", or "Not tested on a unit: "). A base change opens no pull request of its own: commit it to its machine's cumulative draft from `base/-next`, or open yours against that branch (`gh pr create --base base/-next`). That draft stays a draft until the base has been tested extensively on a unit; never mark it ready, only the owner does ([Change a base](../../../docs/DEVELOPER_WORKFLOW.md#change-a-base)). Ready from pr:ready means the checks pass, not that it was tested. A change outside a module is titled `Fix: …`, `Improvement: …` or `Docs: …`. Write the description in the template's shape: what changed, how you checked it, and a line that answers the guides question ("Guides: nothing" is fine). CI checks it. +4. **Push** and update the pull request; with none open yet, open it as a draft (`gh pr create --draft`), which should have happened early ([Open a draft early](../../../docs/DEVELOPER_WORKFLOW.md#open-a-draft-early)). Mark it ready (`gh pr ready`) when the work is done and pr:ready says Ready. If it changes what runs on an instrument (a `.mwrm` package or `.elemod` base), mark it ready only after the developer has tested that exact build on a unit; the description then names it on a line of its own ("Tested on a unit: base 8d1db124, MKII, what ran", or "Not tested on a unit: "). A base change opens no pull request of its own: commit it to its machine's cumulative draft from `base/-next`, or open yours against that branch (`gh pr create --base base/-next`). That draft stays a draft until the base has been tested extensively on a unit; never mark it ready, only the owner does ([Change a base](../../../docs/DEVELOPER_WORKFLOW.md#change-a-base)). Ready from pr:ready means the checks pass, not that it was tested. A change outside a module is titled `Fix: …`, `Improvement: …` or `Docs: …`. Write the description in the template's shape: what changed, how you checked it, and a line that answers the guides question ("Guides: nothing" is fine). CI checks it. - Watch `gh pr checks --watch` until green. For a red job, read `gh run view --log-failed`. - If `main` moves before the merge, start again at 1. 5. **Answer what pr:ready asks:** a guide edit for what you learned, or "nothing" in the pull request. diff --git a/AGENTS.md b/AGENTS.md index d0f13fab68..be919e9443 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -22,7 +22,7 @@ Skills load on clone: Claude Code reads `.claude/skills/`, Codex the identical ` ## Setup and checks - Use Node 24 (`.nvmrc`), then `npm ci`. -- Before every push and after merging `main`, run `npm run pr:ready` until Ready, then watch the PR checks until green. For a fully staged change, `npm run pr:ready -- --commit "Message"` runs the full check before committing and finishes readiness in one pass. Registered authors add `--author ` ([Make it mergeable](docs/DEVELOPER_WORKFLOW.md#make-it-mergeable)). Never edit a check, gate, test or workflow to pass it. A wrong check is its own `Fix:` pull request, never part of a module's. +- Before marking a pull request ready or pushing to a ready one, and after merging `main`, run `npm run pr:ready` until Ready, then watch the PR checks until green. Registered authors add `--author ` ([Make it mergeable](docs/DEVELOPER_WORKFLOW.md#make-it-mergeable)). Never edit a check, gate, test or workflow to pass it. A wrong check is its own `Fix:` pull request, never part of a module's. - Do not edit generated files by hand: `src/catalog/module-documents.json`, the licence notices and the machine registry. `npm run modules:generate`, `licenses:generate` and `machines:generate` write them. - Every fix ships with its changelog entry in the same pull request: a file `changelog/-.md` for the site, app, Worker, SDK or base (never edit `CHANGELOG.md`), or a version-matched entry in the module's own file in `src/community/module-changelogs/`, at most five short lines for the people who play it ([release notes](docs/ADD_A_MODULE.md#release-notes-required-for-every-fix-and-module-version)). Test evidence and waivers go in the pull request; `npm run check` enforces it. - Never commit firmware, extracted stock code or tables, memory dumps or built images. Firmware stays on the developer's computer and never enters CI. @@ -47,7 +47,7 @@ Skills load on clone: Claude Code reads `.claude/skills/`, Codex the identical ` ## Pull requests -- Branch off current `main`. Never push there because it deploys. Add this session's work to your open pull request with an updated description; open another only when none is open, for each `/modwerk-contribute` or `Workflow: …` change, and for a module release or new module, which ships alone. Base changes join their machine's cumulative `base/-next` pull request, a draft until extensively tested on a unit ([how](docs/DEVELOPER_WORKFLOW.md#change-a-base)). Push once the developer's testing is done, then `gh pr create` before reporting it done; a built package stays a draft until that exact build ran on a unit, named in the description. [Device reviewers](docs/DEVELOPER_WORKFLOW.md#who-reviews-a-first-release) or repository maintainers approve and merge a module's first release through the maintenance worker. Registered authors then release their own updates ([docs/MODULE_AUTHOR_UPDATES.md](docs/MODULE_AUTHOR_UPDATES.md)). +- Branch off current `main`. Never push there because it deploys. Add this session's work to your open pull request with an updated description; open another only when none is open, for each `/modwerk-contribute` or `Workflow: …` change, and for a module release or new module, which ships alone. Base changes join their machine's cumulative `base/-next` pull request, a draft until extensively tested on a unit ([how](docs/DEVELOPER_WORKFLOW.md#change-a-base)). Open it as a draft (`gh pr create --draft`) once a commit shows the direction; push as you go so others can comment ([why](docs/DEVELOPER_WORKFLOW.md#open-a-draft-early)). Mark it ready after the developer's testing; a built package once that exact build ran on a unit, named in the description. [Device reviewers](docs/DEVELOPER_WORKFLOW.md#who-reviews-a-first-release) or repository maintainers approve and merge a module's first release through the maintenance worker. Registered authors then release their own updates ([docs/MODULE_AUTHOR_UPDATES.md](docs/MODULE_AUTHOR_UPDATES.md)). - Fold what you learn back into the context. First ask whether `module:doctor`, `pr:ready` or a test can catch it next time, and add that; write a sentence only for what no program can see, in the file a reader would open for that task: the matching guide, or this file. Correct a stale line rather than contradict it; keep it short, general and stock-free. A document in `docs/` and this file stay under 40 KB, so make room rather than append; history goes in a dated record ([where](docs/README.md)). Every pull request says what the guides lacked or got wrong and where you fixed it, and "nothing" is a fine answer ([Share what you learn](docs/DEVELOPER_WORKFLOW.md#share-what-you-learn)). End with `npm run session -- review` ([why](docs/AGENT_SESSIONS.md#review-the-session-first)). - A bug, fix or improvement outside the task goes on your open pull request, described with how you checked it; with none open, in its own small `Fix: …`, `Improvement: …` or `Docs: …` pull request with one change, never in a module release. In a contributor's fork, offer it and open it with their OK; if you can't fix it, open an issue ([Fixes and improvements](docs/DEVELOPER_WORKFLOW.md#fixes-and-improvements)). diff --git a/docs/ADD_A_MODULE.md b/docs/ADD_A_MODULE.md index 61e2ba1d38..f852d80e3c 100644 --- a/docs/ADD_A_MODULE.md +++ b/docs/ADD_A_MODULE.md @@ -296,6 +296,8 @@ the asset hashes that moved; `--check` must then call every package identical. published goes in the host wrapper `scripts/octatrack-module-packages.py`. In the toolchain image set `ELEKLOADER_DSP_ASM`; restore old versions it deletes. +**C/assembly USB source recipes.** A package row's `sourceRecipe` opts into `scripts/source-runtime-package.py`. Its `base` declares only reviewed `imports` (export names) and `runOrigin`; identity, package hash and addresses are read from the committed base at each build, never embedded as runtime identity guards. `python3 -B scripts/source-runtime-package.py --recipe --check` rebuilds and validates without writing output. Reconstruction review pins authored module inputs, explicitly compiled shared units and the linked image with only linker-proven import words normalized; `baseImports` pins those words' offsets, names and addends. Other SDK/base inputs remain in build provenance. Compatible base changes need no recipe recapture; missing/non-runtime exports, changed authored code or overlapping reconstruction spans still fail. Capture with a private original OS is a separate review step, not a scan waiver. + **A first release on an owner approval** (`sdk/approvals/-build-approval.json`, which only the owner writes). It binds the native source hash: every file in the folder but `octamod.module.json`, `media/`, Markdown and licences, so `evidence/performance.json`, the thumbnail and `manifest.py` are final before the owner signs. Without it diff --git a/docs/DEVELOPER_WORKFLOW.md b/docs/DEVELOPER_WORKFLOW.md index e42f982ced..0f26656669 100644 --- a/docs/DEVELOPER_WORKFLOW.md +++ b/docs/DEVELOPER_WORKFLOW.md @@ -36,7 +36,13 @@ For a Modwerk Octatrack base, use [the adapted emulator builder](../scripts/octa Keep source worktrees in a persistent location, not `/tmp`, which a restart can clear with uncommitted work. Reuse a few lanes instead of a new worktree per task: `npm run lane -- --branch ` makes one in the ignored `.claude/worktrees/`, or resets a clean one to current `main`, and borrows `node_modules` from a worktree with the same install as hard links. A worktree made by hand with a linked `node_modules` needs `npm run prepare` once (the generated mirrors and tables; without it `octatrack:module-packages` stops at "No FX page"), and Python run without `-B` leaves `__pycache__` folders that fail the import check. `npm run lane -- prune --all` lists the worktrees whose work is all pushed (`--yes` removes them). `npm run check`, `pr:ready` and `sdk:check` share slots across worktrees (one per 6 GB and four cores, `MODWERK_SLOTS` overrides). `npm run slots` lists holders and waiters. Each check sizes its workers to free RAM and runs lint, build and tests in sequence when they cannot fit together. -Submit only what the owner can merge as it is, and what the bot merges on its own for an author update. Run this before every push, and again after you merge `main`: +### Open a draft early + +Open the pull request as a draft (`gh pr create --draft`) once a first commit shows the direction, and push to it as you go, so the work is on GitHub and the owner and reviewers can comment while a change of course is cheap (owner, 20 November 2026). Say in the description what is still open, and read the comments before you continue. A draft may be red: the `needs-work` label and the merge bot skip drafts. Mark it ready (`gh pr ready`) when the work and the developer's testing are done and `pr:ready` says Ready. A fix finished in one sitting can open ready. + +### Ready means mergeable + +Submit only what the owner can merge as it is, and what the bot merges on its own for an author update. Run this before you mark a pull request ready, before every push to a ready one, and again after you merge `main`: ```sh npm run pr:ready # a new module or any other change @@ -62,17 +68,16 @@ These stumbling blocks have each cost a contributor and the owner a repair round - **Checking a draft.** `npm run module:doctor -- --draft ` checks `sdk/drafts/` in place: it copies the folder under `sdk/octatrack/modules/`, where every gate and `build.py --octabam` look (a symlink there is refused), and removes the copy when the run ends. It judges the draft as experimental: its experimental lines must be green to try and share it, and the listing lines (catalog entry, module rules, packages, USB package, native comparison, pair table, package fingerprint) read as still to do (○). `--release` judges those too. `npm run module:dev -- ` stages it the same way to build it and try it on a unit ([the fast loop](ADD_A_MODULE.md#the-fast-loop)). - **A check edited to pass.** A module pull request that changes a check which judges modules (the compatibility and pair gates, the module rules, the doctor, their tests, the exception file, a workflow) is sent back, and `pr:ready` refuses it. A red check names the fix; a wrong check is its own `Fix:` pull request, and the module waits for it. - **Archived source snapshots.** Before browser-builder scripts, run `node scripts/machine-modules.mjs` and `node scripts/module-changelogs.mjs --write`: their ignored catalogue/changelog JSON is absent from `git archive`. -- **C/assembly USB source recipes.** A package row's `sourceRecipe` opts into `scripts/source-runtime-package.py`. Its `base` declares only reviewed `imports` (export names) and `runOrigin`; identity, package hash and addresses are read from the committed base at each build, never embedded as runtime identity guards. `python3 -B scripts/source-runtime-package.py --recipe --check` rebuilds and validates without writing output. Reconstruction review pins authored module inputs, explicitly compiled shared units and the linked image with only linker-proven import words normalized; `baseImports` pins those words' offsets, names and addends. Other SDK/base inputs remain in build provenance. Compatible base changes need no recipe recapture; missing/non-runtime exports, changed authored code or overlapping reconstruction spans still fail. Capture with a private original OS is a separate review step, not a scan waiver. - **Relocated host addresses.** Loader fixtures must compare the complete relocated jump/address; an individual address byte can equal the saved stock sentinel under ASLR. Check restoration separately. - **Local Python helpers.** Use `python3 -B` or `PYTHONDONTWRITEBYTECODE=1`: bytecode caches under preserved imports fail the import-integrity check, even when the authored source is unchanged. - **Red checks leave the review queue.** An hourly job labels a pull request with a failing check `needs-work` and comments once; the label goes away when the checks are green. A PR still red 14 days after the label, without a new commit, is closed; reopen it once `pr:ready` says Ready. Until your first module is published, a second open module PR is labelled `one-at-a-time` and waits for the first. -- **Your first PR waits for the owner.** GitHub holds a first-time contributor's CI runs until the owner approves them, after every push. Run `pr:ready` locally and push once, rather than often, so each approval counts. +- **Your first PR waits for the owner.** GitHub holds a first-time contributor's CI runs until the owner approves them, after every push, so an early draft's CI may wait. Run `pr:ready` locally before you mark it ready, and push to a ready pull request once rather than often, so each approval counts. ## Submit a first release -1. **Prepare:** fork Modwerk, branch from current `main`, and build or port the module. Keep source pins, credits and licences; prepare the manifest/version/catalog, README/tutorial, release notes, real UI captures and matching packages. +1. **Prepare:** fork Modwerk, branch from current `main`, and build or port the module. Open a [draft](#open-a-draft-early) early. Keep source pins, credits and licences; prepare the manifest/version/catalog, README/tutorial, release notes, real UI captures and matching packages. 2. **Verify:** follow the machine/category guide, regenerate metadata, run `module:doctor` and `npm run check -- --base origin/main`, and qualify the exact private source/build. Give the contributor concrete hardware steps and record only their actual results. Test different simultaneous instances and track/FX-slot/DSP-core isolation and Part/project/physical-reboot persistence where applicable. Emulator project loading is not physical reboot evidence. -3. **Submit:** commit, push and open a Modwerk PR. Follow checks and fix failures. A maintainer of its machine or the owner reviews every new module ([who](#who-reviews-a-first-release)); the first approved release registers its GitHub author for later scoped updates. Website sign-in or claiming does not grant release authority. +3. **Submit:** push and mark the draft ready. Follow checks and fix failures. A maintainer of its machine or the owner reviews every new module ([who](#who-reviews-a-first-release)); the first approved release registers its GitHub author for later scoped updates. Website sign-in or claiming does not grant release authority. 4. **Publish and verify:** after the merge, follow the exact commit's site/API deployments. Confirm the live version, save a compatible firmware download, and verify its version/source identity and deterministic hash where applicable. A push, merge or ready/download-requested state alone does not prove a saved release download. The Octatrack compiler job rebuilds every base-bound package with the pinned Elekloader sources and compares its bytes with the published package. To repeat that check from the repository root, run `bash scripts/test-base-bound.sh [local-elekloader-checkout]`. It uses the committed tree. The SDK summary lists other skipped checks and their prerequisites. @@ -173,7 +178,7 @@ After publication, authors can verify their developer account, claim their modul The guides are the context every prompt and agent reads, so a finding that helps all development belongs in them, not only in a session, a PR comment or private notes. Examples: a trap in the shared builder, a tool that behaves differently than its help says, a measured budget, a step a guide omits or states wrongly. Put it in the file a reader would open for that task: the category guide under `docs/module-guides/`, [Add or port a module](ADD_A_MODULE.md), this page, or `AGENTS.md` when it affects every task. Because the prompts point at these files, no prompt change is needed for a new lesson. -- It is asked for. Before every push, `npm run pr:ready` lists the guide edits on your branch and asks what the guides lacked or got wrong; the pull request template has the same line, and `AGENTS.md` asks every agent to answer it. "Nothing" is a fine answer; a lesson left in the session is not. +- It is asked for. Each run of `npm run pr:ready` lists the guide edits on your branch and asks what the guides lacked or got wrong; the pull request template has the same line, and `AGENTS.md` asks every agent to answer it. "Nothing" is a fine answer; a lesson left in the session is not. - Prefer a check to a sentence. When a review or a session catches something an agent missed, first ask whether `module:doctor`, `pr:ready`, `modules:check` or a test can catch it next time, and add that. Write the sentence only for what no program can see: a rule that lives in a check holds without being read, and the guides stay short. - Another developer working now would hit it before your pull request merges? Also post it on the [agent board](AGENT_BOARD.md#questions-and-findings) with `npm run board -- finding "…" --pr `; it ends when that pull request merges. - Correct a stale or wrong statement instead of adding a contradicting one. Keep the entry short and general, and say a hardware behaviour only as observed on a named build, otherwise "not tested". diff --git a/sdk/AGENTS.md b/sdk/AGENTS.md index 344c8d5fc0..3348b18498 100644 --- a/sdk/AGENTS.md +++ b/sdk/AGENTS.md @@ -10,7 +10,7 @@ You are about to write or change a module: an Octatrack module under `octatrack/ 4. For new FX, keep one effect per module: a MODE select may switch between ways of doing one job, never between different effects ([one effect per module](../docs/module-guides/effects.md#one-effect-per-module)). Plan the DSP budget before implementation and aim for the same ballpark as worst-case stock SPRING REV. Benchmark expensive Spring types/settings, moving controls and trigger splits under matched conditions on both cores. Treat this as a design target without a fixed ratio or hard per-effect ceiling; substantially higher cost needs optimization and review. Plan compatibility at the same time: Analog BD, the stock FX and the common custom companions on both DSP cores, by actual contiguous openings and shared tenants rather than total free memory; any necessary incompatibility has a documented resource reason and owner review. Walk the category guide's checklists. Tick an item only when you did it; write "not tested" in TESTING.md for what you could not verify. Never record a hardware behaviour you did not observe. 5. An Octatrack module ships as a package for the Modwerk base and delivers its whole lifecycle there (install, Keep, Undo, removal and persistence), the only way onto a unit ([USB lifecycle](../docs/ADD_A_MODULE.md#octatrack-base-and-usb-lifecycle)). Do not tie a module to the base firmware: its DSP engine, tables and controller code belong in its own package, and a module update must not need a base rebuild ([plan](../docs/OCTATRACK_PACKAGE_DSP_HOOKS.md#owner-decision-and-plan-22-october-2026)). Until that lands, Analog BD, Sidechain Compressor and Output Matrix are base inputs: say so before starting an update that touches their DSP or controller code. 6. Keep module thumbnails in the shared signal-art style: quiet dark grid, module/category accent, thin signal diagrams and small monospace labels. Reuse `ModulePreview.tsx` / `DigiModPreview.tsx` and keep saved SVG thumbnails consistent with their displayed artwork ([thumbnail style](../docs/ADD_A_MODULE.md#module-thumbnail-style)). -7. Run `npm run module:doctor -- ` (a draft: `-- --draft `) until every line is green, then `npm run pr:ready` (an author update: `-- --author `) until it says Ready, before every push. Documentation-only edits run the lightweight validation path; native compilation is reserved for firmware source/build changes. `pr:ready` also asks what the guides lacked or got wrong while you worked: answer it in the pull request, and fix the guide where a reader would look. "Nothing" is a fine answer; a lesson left in the session is not. +7. Run `npm run module:doctor -- ` (a draft: `-- --draft `) until every line is green, then `npm run pr:ready` (an author update: `-- --author `) until it says Ready, before you mark the pull request ready and before every push to a ready one. Documentation-only edits run the lightweight validation path; native compilation is reserved for firmware source/build changes. `pr:ready` also asks what the guides lacked or got wrong while you worked: answer it in the pull request, and fix the guide where a reader would look. "Nothing" is a fine answer; a lesson left in the session is not. 8. Octatrack DSP or ColdFire code: read `octabam/AGENTS.md` (the assembler and hardware traps) before writing it. 9. Keep a module PR to the module. A finding for every developer goes in the matching guide, and a bug fix or improvement to the SDK, tools or site goes in its own small PR titled `Fix: …`, `Improvement: …` or `Docs: …`; inside a module release it would end automatic publication ([Fixes and improvements](../docs/DEVELOPER_WORKFLOW.md#fixes-and-improvements)). 10. For reported module bugs, a registered author follows [docs/MODULE_AUTHOR_UPDATES.md](../docs/MODULE_AUTHOR_UPDATES.md): diagnose and fix the report, bump the version and release notes, give the author concrete hardware steps for the exact private build and record only their actual results. The owner's complete release flow, from the fix to live download verification, issue closure and follower notification, is in [docs/OWNER_OPERATIONS.md](../docs/OWNER_OPERATIONS.md#finish-the-issue-fix-flow). From fff60b70a8daadeb97b802b71336abf88dad5a93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Thu, 12 Nov 2026 11:42:50 +0100 Subject: [PATCH 166/415] Octatrack base: a module can add one USB function (ot_usb_functions) and the base reconnects for it USB Audio is to become a module of its own instead of a base variant per layout. This is the base side: three hooks the base raises from its own USB shims (ev_usb_isr, ev_usb_bus_end, ev_usb_control), the table ot_usb_functions (one function: its interfaces from 4, endpoint 3, four descriptor blocks) and usb_function.c, which checks the record at admission, keeps the configurations in 512-byte slots and, when the table changes, takes the unit off the bus, rewrites the slots and comes back without undoing an open sync or trial. A function that leaves has its endpoint flushed and disabled at the switch. Not built into a base yet: the committed base and its variants are unchanged, and no module contributes. Co-Authored-By: Claude Fable 5.2 --- sdk/machines/octatrack/HOOKS.md | 8 + .../octatrack/elekloader/build_core.py | 12 +- sdk/machines/octatrack/elekloader/ep0.c | 43 ++- .../octatrack/elekloader/machine_registry.c | 4 + .../octatrack/elekloader/runtime_events.h | 18 +- .../octatrack/elekloader/runtime_events.s | 18 ++ .../octatrack/elekloader/test_usb_function.c | 262 ++++++++++++++++++ .../octatrack/elekloader/usb_function.c | 228 +++++++++++++++ .../octatrack/elekloader/usb_function.h | 31 +++ sdk/machines/octatrack/events.json | 65 +++++ .../octatrack/include/modwerk_events.h | 25 ++ .../module-adapters/base_usb_functions.py | 31 ++- .../machine_admission_runtime.c | 25 +- sdk/machines/octatrack/site-events.json | 22 ++ sdk/tests/test_usb_function.py | 146 ++++++++++ 15 files changed, 923 insertions(+), 15 deletions(-) create mode 100644 sdk/machines/octatrack/elekloader/test_usb_function.c create mode 100644 sdk/machines/octatrack/elekloader/usb_function.c create mode 100644 sdk/machines/octatrack/elekloader/usb_function.h create mode 100644 sdk/tests/test_usb_function.py diff --git a/sdk/machines/octatrack/HOOKS.md b/sdk/machines/octatrack/HOOKS.md index e8fa502ecc..f2d6d22cc8 100644 --- a/sdk/machines/octatrack/HOOKS.md +++ b/sdk/machines/octatrack/HOOKS.md @@ -84,6 +84,10 @@ next base build, which renames them; the base loads them by those paths. | `ot_sample_memory` | table | none | a module borrows sample memory while it is installed: the base takes its pages from stock's sample pool on the engine task, before it raises ev_modules_ready, and returns them once the module is removed | `16-byte record` | Contribute one struct modwerk_sample_memory. The base takes that many whole pages from the top of the sample pool's free list as stock's track recorders do, so the unit's FREE MEM, sample loads and recorders see that much less, and writes their address to at; until then, and when the pool has not that many free pages in one run, at stays 0 and the module must leave stock alone. The pages keep their contents through LOAD PROJECT, a new project and REFORMAT FLEX RAM, but not through a power cycle. A replacement of the same module, same pages, keeps them; removal zeroes them and hands them back. One module at a time. | one record (room 1). | the engine task (take and return); the module reads at from any task | | `ot_part_menu` | table | none | FUNC+PART (MKII), or another of stock's three Part Edit openers, opens the Part Edit window as stock does; with a contribution installed the base draws it as PROJ's menu draws its categories, in two columns: the parents on the left (PART, stock's RENAME, RELOAD, SAVE and SAVE ALL, then one row per contribution) and the highlighted parent's actions on the right | `24-byte record` | Contribute one struct modwerk_part_menu (every field set). UP/DOWN (and LEVEL) move in the focused column, RIGHT or YES on a parent moves into its actions, LEFT goes back, NO closes the window from either column, as PROJ's menu does. YES on one of PART's actions is stock's; YES on a contribution's action closes the Part Edit window, then calls choose(action) once: the module opens what it needs itself and must not close or reopen stock's Part Edit window. The window opens where it was left, as PROJ's menu does: the same parent, the same column and each parent's last action row, also after NO. Labels are read each time the window is drawn: keep them in the image, printable capitals: a parent label at most 7 characters (the left column fits 7 beside an icon), an action at most 14. An icon is optional. A record with a wrong abi, no label, no choose or a count outside 1-6 is skipped. With no contribution the window is stock's. | lower first, then module id: the left column's order under PART. 50-90. | the UI task: choose is short and may open a window of its own | | `ev_in_use` | call | none: the base asks each module from the UI tick | the base's UI tick asks each module that subscribes, on its own, whether it acts on a track now; no stock site and no row walk: the base calls the module's handler and keeps its answer | `unsigned f(void)` | Return nonzero while this module acts on at least one track of the current Part (a machine: a track runs it; a feature: its setting is on somewhere), 0 while it acts on none. While it answers 0 the module rests: the base leaves its handlers out of every hook that rests (HOOKS.md's kind column), so the frame interrupt never enters its code there, and keeps every other hook, table and its setup UI, so the musician can still turn it on. The first nonzero answer puts it back in its (order, module id) place, from the next tick on, so a note that starts in the gap before that tick runs without it: answer for every Part a pattern change could bring in while playing, and start any per-track state afresh when the module wakes. A module that does not subscribe never rests; installing, replacing or removing a module wakes its position until the next answer. d2-d7/a2-a6 must be kept. | any: the base asks every subscriber on its own and nothing is OR'd, so the order changes nothing. | the UI tick (a task, never the frame interrupt): short, no firmware call that can block | +| `ev_usb_isr` | call | none: the base raises it | the USB interrupt's transfer path, after the base's USB MIDI work and before it polls its vendor data stage and stock reads a new SETUP and walks its completions; no stock site: the base raises it from its own shims at 0x4001e606 | `unsigned f(void)` | Every handler runs; the answers are ignored. Retire your own endpoint's completions here (write its ENDPTCOMPLETE bit back) before stock's completion loop sees them, and take a control data stage you primed yourself. Leave endpoints 0 to 2 and their completions alone. d2-d7/a2-a6 must be kept. | lower first, then module id; every handler runs, so the order does not change the result. 10-90. | the USB interrupt: short, no firmware call that can block | +| `ev_usb_bus_end` | call | none: the base raises it | a USB bus reset or the end of the USB session (the cable pulled, or the base's own reconnect after ot_usb_functions changed), before the base ends USB MIDI's session and stock resets or stops the controller; no stock site: the base raises it from its own shims at 0x4001e91c and 0x4001e952 | `unsigned f(void)` | Every handler runs; the answers are ignored. Put your interfaces back to alternate setting 0 and stop queueing on your endpoint: the host configures the unit afresh afterwards. d2-d7/a2-a6 must be kept. | lower first, then module id; every handler runs, so the order does not change the result. 10-90. | the USB interrupt: short, no firmware call that can block | +| `ev_usb_control` | call | none: the base raises it | a control request that neither stock nor the base's vendor interface answers, before stock stalls it; no stock site: the base raises it from its own shim at stock's unknown-request tail (0x4001de64) | `unsigned f(void)` | Read the SETUP packet at 0x46c8ce08. Return 0 when the request is not yours: with every answer 0 stock stalls it, as before. Otherwise answer it yourself before you return (stock's usb_ep0_send for an IN reply, a data stage you prime and finish in ev_usb_isr, or a stall of both directions) and return nonzero: the base then leaves through stock's done path and neither sends nor stalls. Claim only requests addressed to your own interfaces and entities: every handler runs, so two that answered one request would both act. d2-d7/a2-a6 must be kept. | lower first, then module id; every handler runs, so the order does not change the result. 10-90. | the USB interrupt: short, no firmware call that can block | +| `ot_usb_functions` | table | none | the base builds the USB configuration descriptors a host reads: its own functions (mass storage, the vendor interface, USB MIDI), then the contributed function's interfaces | `32-byte record` | Contribute one struct modwerk_usb_function. The base checks the whole record at admission (ABI and size, 1-4 interfaces, endpoint 3 alone, four blocks of `length` bytes inside the package's initialized image, the configuration within its 512-byte slot) and refuses the package otherwise; a base that links USB Audio in (a development twin) refuses every function. When the table changes the host has to read the descriptors again, so the base reconnects by itself: it waits until the control endpoint is idle, takes the unit off the bus for half a second, rewrites the four configurations and comes back. A sync or trial stays open across that reconnect (the base's own disconnect undoes nothing), and the host has 20 s to speak to the vendor interface again before it counts as unplugged. A function that leaves has its endpoint flushed and disabled at the switch, before its memory can be reused. Its interrupt, bus-end and class-request work goes through ev_usb_isr, ev_usb_bus_end and ev_usb_control. SET_INTERFACE, GET_INTERFACE and the audio frame are not hooks yet: a function patches those stock sites itself, as its own. | lower first, then module id; the table holds one function. | the loader's switch (masked) and the sys task's tick; the record is copied, never called | ## Reviewed subscribers @@ -205,6 +209,10 @@ A raised hook has no stock site: these modules call the base's entry and act on - `ot_sample_memory`: Room 1: the stock pool's cold init keeps one hole; a second borrower needs a reviewed change of the hole bookkeeping first. - `ot_part_menu`: Pattern Sample Locks (LOCK, CLEAR) and Kits (SAVE KIT) are the first planned contributors, each with its own parent row; neither reads the other's. - `ev_in_use`: Each module answers only for itself. No module subscribes yet. Resting takes out handlers only, never a module's own stock-site detours: on an MKII (17 November 2026) a test handler of 400 loop passes cost 12.5 frame points on no track and 1.0 resting, while Repitch 0.2.1 cost 2.4 either way. +- `ev_usb_isr`: A function owns its endpoint alone (ot_usb_functions holds one function), so no handler can take another's completion. No module subscribes yet: USB Audio does this work at the same point when it is linked into a base (audio_isr_shim, ahead of USB MIDI's receive shim). +- `ev_usb_bus_end`: A notification: each handler resets only its own interfaces. No module subscribes yet: USB Audio's audio_reset_shim and audio_sessend_shim do this at the same two points when it is linked into a base. +- `ev_usb_control`: Requests are told apart by the interface or entity they address, and ot_usb_functions holds one function, so at most one handler answers. No module subscribes yet: USB Audio's audio_ctrl_shim answers its clock source's class requests at the same point when it is linked into a base. +- `ot_usb_functions`: One function at a time: the controller has one endpoint left (3) and every authored USB Audio layout uses it, so a second function could not share the configuration. The USB Audio module is the first to contribute; until its package is published no module does. ## The sites diff --git a/sdk/machines/octatrack/elekloader/build_core.py b/sdk/machines/octatrack/elekloader/build_core.py index faf50269a9..52dd25398d 100644 --- a/sdk/machines/octatrack/elekloader/build_core.py +++ b/sdk/machines/octatrack/elekloader/build_core.py @@ -1708,6 +1708,11 @@ def main(): 'midi_generators.s', 'sample_memory.c') if args.site_events else ()) + ( ('part_menu.c', 'part_menu.s') if args.part_menu else ()): shutil.copyfile(HERE / name, source / name) + # A module may add one USB function to the base's configuration (events.json ot_usb_functions, usb_function.c). + usb_function_slots = bool(usb_functions) and not usb_profiles and args.site_events + if usb_function_slots: + for name in ('usb_function.c', 'usb_function.h'): + shutil.copyfile(HERE / name, source / name) # The boot stub's sector, which flash.c writes when it converts a unit to two slots (build_stub.py: stub_body.c). sys.path.insert(0, str(HERE)) import build_stub @@ -1874,9 +1879,10 @@ def resident_factory(tag, hi): raise ValueError('The Part validator\'s clamp at %#x is not moveq #31.' % at) chooser_sites.append(dict(addr=hex(at), stock=word.hex(), op='bytes', new=bytes((word[0], FX_IDS - 1)).hex())) dsp_sites += chooser_sites - (source/'usb_base.h').write_text(usb.header()) + (source/'usb_base.h').write_text(usb.header() + ( + usb_functions.header(usb, usb_descriptors, args.usb_audio) if usb_function_slots else '')) (source/'usb_base.s').write_text(usb_profiles.assembly(usb, usb_functions, usb_descriptors, args.usb_audio) if usb_profiles else - usb_functions.assembly(usb, usb_descriptors, args.usb_audio) + usb_functions.assembly(usb, usb_descriptors, args.usb_audio, slots=usb_function_slots) if usb_functions else usb.assembly(args.dev)) if usb_functions: (source/'usbmidi.s').write_text(usb_functions.midi_source((usb.OCTABAM / 'platform/usb-midi/usbmidi.s').read_text())) @@ -2127,6 +2133,8 @@ def resident_factory(tag, hi): recipe['cflags'].append('-DMODWERK_RUNTIME_SETS') if args.module_ui_roots: # loader.c's capability 1024, machine_admission_runtime.c recipe['cflags'].append('-DMODWERK_RUNTIME_UI_ROOTS') + if usb_function_slots: # a base with USB Audio linked in (a development twin) has the table and refuses every function + recipe['cflags'] += ['-DMODWERK_USB_FUNCTIONS'] + (['-DMODWERK_USB_AUDIO_LINKED'] if args.usb_audio else []) if args.saved_set_export: recipe['cflags'].append('-DMODWERK_SAVED_SET_EXPORT') if args.resident_stock_hooks: diff --git a/sdk/machines/octatrack/elekloader/ep0.c b/sdk/machines/octatrack/elekloader/ep0.c index 30392f636c..5846cfb462 100644 --- a/sdk/machines/octatrack/elekloader/ep0.c +++ b/sdk/machines/octatrack/elekloader/ep0.c @@ -22,6 +22,9 @@ #endif #include "vendor.h" #include "usb_base.h" +#ifdef MODWERK_USB_FUNCTIONS +#include "usb_function.h" +#endif #include "runtime.h" #include "boot.h" #include "flash.h" @@ -339,7 +342,15 @@ uint32_t modwerk_ep0_dispatch(void) ++abandons; flush_receive(); } - if (r.action == MV_PASS) return windows(SETUP, out); + if (r.action == MV_PASS) { + uint32_t n = windows(SETUP, out); +#ifdef MODWERK_USB_FUNCTIONS + /* Neither stock's nor the vendor interface's: a module's USB function may answer it itself + * (ev_usb_control). Nothing is sent or stalled here then: stock's done path. */ + if (!n && modwerk_usb_function_control()) return MODWERK_EP0_RECEIVING; +#endif + return n; + } if (r.action == MV_STALL && diag(SETUP, out)) { /* mv_setup stalls requests it does not know */ modwerk_ep0_reply = out; return 68; @@ -362,6 +373,16 @@ uint32_t modwerk_ep0_dispatch(void) modwerk_ep0_reply = out; return FLASH_SLOTS_BYTES; } +#ifdef MODWERK_USB_FUNCTIONS + /* USB FUNCTION (0xC1, bRequest 41, wValue 0, wLength 8): whether the base is about to reconnect or is + * reconnecting because a module's USB function came or went, and whether the configuration the host read holds + * one (usb_function.h). Read-only; bases without ot_usb_functions stall it. */ + if (r.action == MV_STALL && SETUP[0] == MV_RESULT_TYPE && SETUP[1] == 41 && !SETUP[2] && !SETUP[3] && + SETUP[4] == MODWERK_VENDOR_INTERFACE && !SETUP[5] && SETUP[6] == MODWERK_USB_FUNCTION_STATUS_BYTES && !SETUP[7]) { + modwerk_ep0_reply = out; + return modwerk_usb_function_status(out); + } +#endif #ifdef MODWERK_RUNTIME_SETS /* Exact baseline identity; only cached copies in the ISR. A stale cache * wakes its engine owner and refuses this read until it is refreshed. */ @@ -471,6 +492,9 @@ uint32_t modwerk_ep0_dispatch(void) void modwerk_ep0_poll(void); void modwerk_ep0_poll(void) { +#ifdef MODWERK_USB_FUNCTIONS + modwerk_usb_function_isr(); /* ev_usb_isr: a module's USB function retires its endpoint before stock's loop */ +#endif if (!receiving) return; struct mv_transport *t = vendor(); if (ENDPTSETUPSTAT & 1u) { /* The host gave this data stage up. */ @@ -516,6 +540,9 @@ void modwerk_ep0_bus_reset(void) { struct mv_transport *t = vendor(); ++resets; +#ifdef MODWERK_USB_FUNCTIONS + modwerk_usb_function_bus_end(); /* ev_usb_bus_end: a module's USB function goes back to alternate setting 0 */ +#endif #ifdef MODWERK_RUNTIME_VOLATILE_JOURNAL volatile_receiving=0;modwerk_volatile_reset(VOLATILE_SERVICE);wake(); #endif @@ -526,6 +553,11 @@ void modwerk_ep0_bus_reset(void) receiving = 0; flush_receive(); } +#ifdef MODWERK_USB_FUNCTIONS + /* The base took the unit off the bus itself, to show the host a configuration with or without a module's USB + * function (usb_function.c). The host is still there: an open sync or trial stays open. */ + if (modwerk_usb_reconnecting()) return; +#endif if (mv_reset(t)) wake(); } @@ -558,7 +590,16 @@ static void ep0_tick(void) if (quiet >= HOST_TIMEOUT_TICKS) ((void (*)(const char *, unsigned))0x4005a2b8u)("MODWERK CONNECTED", 0x60); heard = activity, quiet = 0; modwerk_flash_host = 1; /* a computer talks to this base: flash.c may confirm its slot */ +#ifdef MODWERK_USB_FUNCTIONS + modwerk_usb_function_host(); /* and it is back after the base's own reconnect */ +#endif } else if (quiet < HOST_TIMEOUT_TICKS) ++quiet; +#ifdef MODWERK_USB_FUNCTIONS + /* ot_usb_functions changed: the base reconnects by itself (usb_function.c). A host that does not reach the + * vendor interface again is handled as unplugged; until then its silence is not counted. */ + if (modwerk_usb_function_tick(!receiving) && mv_reset(vendor())) wake(); + if (!modwerk_usb_reconnecting()) +#endif if (started && controller_started && mv_tick(vendor(), controller.phase != MU_NORMAL, HOST_TIMEOUT_TICKS)) wake(); if (controller_started && controller.disconnecting) wake(); /* finish all rows of an abandoned set */ if (modwerk_boot_tick()) wake(); /* an armed RAM boot is due */ diff --git a/sdk/machines/octatrack/elekloader/machine_registry.c b/sdk/machines/octatrack/elekloader/machine_registry.c index 065ea47e24..2e303dc348 100644 --- a/sdk/machines/octatrack/elekloader/machine_registry.c +++ b/sdk/machines/octatrack/elekloader/machine_registry.c @@ -330,6 +330,10 @@ static uint32_t frame_seen; /* bit t: looked[t] was checked this frame; /* Masked, right after the loader rewrote the rows (loader.h): nothing stock reads may still name a module that left. */ void modwerk_machine_tables_changed(void) { +#ifdef MODWERK_USB_FUNCTIONS + void modwerk_usb_functions_changed(void); /* usb_function.c: a function that left is off its endpoint at once */ + modwerk_usb_functions_changed(); +#endif unsigned n = 0; looked_up = 0, frame_seen = 0; for (uintptr_t volatile *row = modwerk_runtime_event_row[MACHINES]; *row && n < ROWS - 5u; ++row) diff --git a/sdk/machines/octatrack/elekloader/runtime_events.h b/sdk/machines/octatrack/elekloader/runtime_events.h index 659287f1b0..ae1f3e81bd 100644 --- a/sdk/machines/octatrack/elekloader/runtime_events.h +++ b/sdk/machines/octatrack/elekloader/runtime_events.h @@ -1,22 +1,22 @@ /* SPDX-License-Identifier: GPL-3.0-or-later * Generated by sdk/machines/octatrack/events.py from events.json: do not edit. * The Octatrack's events at base-owned stock sites and its tables, as hook - * indices after loader.h's RUNTIME_ENC: 4 ev_play_increment, 5 ev_voice_bind, 6 ev_voice_bind_run, 7 ev_mute_keep, 8 ev_midi_note_on, 9 ev_midi_note_off, 10 ev_octave_key, 11 ev_octave_number, 12 ev_settings_sanitise, 13 ev_project_defaults, 14 ev_keyboard_draw, 15 ev_chromatic_release, 16 ev_chromatic_held, 17 ev_chromatic_pitch, 18 ev_chromatic_trig, 19 ev_chromatic_record, 20 ev_chromatic_recorded, 21 ev_chromatic_locked, 22 ev_chromatic_index, 23 ev_plock_store, 24 ev_knob_store, 25 ev_project_load, 26 ev_project_line, 27 ev_project_write, 28 ot_machines, 29 ot_sequencer_rows, 30 ev_tail_kill, 31 ot_midi_generators, 32 ev_midi_note_key, 33 ev_arp_setup_knob, 34 ev_arp_setup_text, 35 ev_trig_muted, 36 ot_sample_editor_actions, 37 ot_machine_starts, 38 ev_banks_load, 39 ev_banks_loaded, 40 ev_bank_load, 41 ev_bank_loaded, 42 ev_project_new, 43 ev_bank_write, 44 ev_bank_written, 45 ev_project_store, 46 ev_project_stored, 47 ev_project_reload, 48 ev_project_reloaded, 49 ev_part_saved, 50 ev_part_clear, 51 ev_modules_ready, 52 ot_sample_memory, 53 ot_part_menu, 54 ev_in_use. */ + * indices after loader.h's RUNTIME_ENC: 4 ev_play_increment, 5 ev_voice_bind, 6 ev_voice_bind_run, 7 ev_mute_keep, 8 ev_midi_note_on, 9 ev_midi_note_off, 10 ev_octave_key, 11 ev_octave_number, 12 ev_settings_sanitise, 13 ev_project_defaults, 14 ev_keyboard_draw, 15 ev_chromatic_release, 16 ev_chromatic_held, 17 ev_chromatic_pitch, 18 ev_chromatic_trig, 19 ev_chromatic_record, 20 ev_chromatic_recorded, 21 ev_chromatic_locked, 22 ev_chromatic_index, 23 ev_plock_store, 24 ev_knob_store, 25 ev_project_load, 26 ev_project_line, 27 ev_project_write, 28 ot_machines, 29 ot_sequencer_rows, 30 ev_tail_kill, 31 ot_midi_generators, 32 ev_midi_note_key, 33 ev_arp_setup_knob, 34 ev_arp_setup_text, 35 ev_trig_muted, 36 ot_sample_editor_actions, 37 ot_machine_starts, 38 ev_banks_load, 39 ev_banks_loaded, 40 ev_bank_load, 41 ev_bank_loaded, 42 ev_project_new, 43 ev_bank_write, 44 ev_bank_written, 45 ev_project_store, 46 ev_project_stored, 47 ev_project_reload, 48 ev_project_reloaded, 49 ev_part_saved, 50 ev_part_clear, 51 ev_modules_ready, 52 ot_sample_memory, 53 ot_part_menu, 54 ev_in_use, 55 ev_usb_isr, 56 ev_usb_bus_end, 57 ev_usb_control, 58 ot_usb_functions. */ #ifndef MODWERK_RUNTIME_EVENTS_H #define MODWERK_RUNTIME_EVENTS_H -#define RUNTIME_SITE_EVENTS 51u -#define RUNTIME_SITE_EVENT_SPANS { {0x40004100u, 8u}, {0x40006820u, 8u}, {0x40006820u, 8u}, {0x00000000u, 0u}, {0x4000e746u, 6u}, {0x4000dfd4u, 8u}, {0x40045918u, 8u}, {0x400449beu, 8u}, {0x40010212u, 6u}, {0x40025ac2u, 6u}, {0x40044968u, 8u}, {0x4004fbdeu, 6u}, {0x4004fbfeu, 8u}, {0x4004fc58u, 10u}, {0x4004fc94u, 8u}, {0x4004fce0u, 8u}, {0x4004fd06u, 6u}, {0x4004fd20u, 6u}, {0x40050254u, 8u}, {0x40050e60u, 10u}, {0x40055170u, 6u}, {0x400866ccu, 8u}, {0x400867a2u, 8u}, {0x400888aau, 8u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x40004d0cu, 10u}, {0x00000000u, 0u}, {0x4009fb58u, 6u}, {0x4007a2ecu, 8u}, {0x4007a1ecu, 6u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x40090504u, 8u}, {0x00000000u, 0u}, {0x400905d4u, 8u}, {0x00000000u, 0u}, {0x400909d8u, 10u}, {0x400917c8u, 8u}, {0x00000000u, 0u}, {0x4008ee74u, 8u}, {0x00000000u, 0u}, {0x4008f180u, 8u}, {0x00000000u, 0u}, {0x4004a9c4u, 10u}, {0x4004a9d0u, 8u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x00000000u, 0u} } -#define RUNTIME_SITE_EVENT_ROOM { RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, RUNTIME_MODULES, 16u, 8u, 8u, 8u, RUNTIME_MODULES, 4u, 8u, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, 1u, 7u, RUNTIME_MODULES } -#define RUNTIME_SITE_EVENT_TABLES { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0 } -#define RUNTIME_SITE_EVENT_RESTS { 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } +#define RUNTIME_SITE_EVENTS 55u +#define RUNTIME_SITE_EVENT_SPANS { {0x40004100u, 8u}, {0x40006820u, 8u}, {0x40006820u, 8u}, {0x00000000u, 0u}, {0x4000e746u, 6u}, {0x4000dfd4u, 8u}, {0x40045918u, 8u}, {0x400449beu, 8u}, {0x40010212u, 6u}, {0x40025ac2u, 6u}, {0x40044968u, 8u}, {0x4004fbdeu, 6u}, {0x4004fbfeu, 8u}, {0x4004fc58u, 10u}, {0x4004fc94u, 8u}, {0x4004fce0u, 8u}, {0x4004fd06u, 6u}, {0x4004fd20u, 6u}, {0x40050254u, 8u}, {0x40050e60u, 10u}, {0x40055170u, 6u}, {0x400866ccu, 8u}, {0x400867a2u, 8u}, {0x400888aau, 8u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x40004d0cu, 10u}, {0x00000000u, 0u}, {0x4009fb58u, 6u}, {0x4007a2ecu, 8u}, {0x4007a1ecu, 6u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x40090504u, 8u}, {0x00000000u, 0u}, {0x400905d4u, 8u}, {0x00000000u, 0u}, {0x400909d8u, 10u}, {0x400917c8u, 8u}, {0x00000000u, 0u}, {0x4008ee74u, 8u}, {0x00000000u, 0u}, {0x4008f180u, 8u}, {0x00000000u, 0u}, {0x4004a9c4u, 10u}, {0x4004a9d0u, 8u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x00000000u, 0u} } +#define RUNTIME_SITE_EVENT_ROOM { RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, RUNTIME_MODULES, 16u, 8u, 8u, 8u, RUNTIME_MODULES, 4u, 8u, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, 1u, 7u, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, 1u } +#define RUNTIME_SITE_EVENT_TABLES { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1 } +#define RUNTIME_SITE_EVENT_RESTS { 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } /* the event the base asks each module from the UI tick (loader.c rest_poll) */ #define RUNTIME_SITE_EVENT_IN_USE 50u -#define RUNTIME_SITE_EVENT_WORDS (21u * (RUNTIME_MODULES + 1u) + 266u) -#define RUNTIME_SITE_EVENT_ROWS(r) { (r) + 0u * (RUNTIME_MODULES + 1u) + 0u, (r) + 1u * (RUNTIME_MODULES + 1u) + 0u, (r) + 2u * (RUNTIME_MODULES + 1u) + 0u, (r) + 3u * (RUNTIME_MODULES + 1u) + 0u, (r) + 4u * (RUNTIME_MODULES + 1u) + 0u, (r) + 4u * (RUNTIME_MODULES + 1u) + 9u, (r) + 4u * (RUNTIME_MODULES + 1u) + 18u, (r) + 4u * (RUNTIME_MODULES + 1u) + 27u, (r) + 4u * (RUNTIME_MODULES + 1u) + 36u, (r) + 4u * (RUNTIME_MODULES + 1u) + 45u, (r) + 4u * (RUNTIME_MODULES + 1u) + 54u, (r) + 4u * (RUNTIME_MODULES + 1u) + 63u, (r) + 4u * (RUNTIME_MODULES + 1u) + 72u, (r) + 4u * (RUNTIME_MODULES + 1u) + 81u, (r) + 4u * (RUNTIME_MODULES + 1u) + 90u, (r) + 4u * (RUNTIME_MODULES + 1u) + 99u, (r) + 4u * (RUNTIME_MODULES + 1u) + 108u, (r) + 4u * (RUNTIME_MODULES + 1u) + 117u, (r) + 4u * (RUNTIME_MODULES + 1u) + 126u, (r) + 4u * (RUNTIME_MODULES + 1u) + 135u, (r) + 4u * (RUNTIME_MODULES + 1u) + 144u, (r) + 4u * (RUNTIME_MODULES + 1u) + 153u, (r) + 4u * (RUNTIME_MODULES + 1u) + 162u, (r) + 4u * (RUNTIME_MODULES + 1u) + 171u, (r) + 4u * (RUNTIME_MODULES + 1u) + 180u, (r) + 4u * (RUNTIME_MODULES + 1u) + 189u, (r) + 4u * (RUNTIME_MODULES + 1u) + 198u, (r) + 5u * (RUNTIME_MODULES + 1u) + 198u, (r) + 5u * (RUNTIME_MODULES + 1u) + 215u, (r) + 5u * (RUNTIME_MODULES + 1u) + 224u, (r) + 5u * (RUNTIME_MODULES + 1u) + 233u, (r) + 5u * (RUNTIME_MODULES + 1u) + 242u, (r) + 6u * (RUNTIME_MODULES + 1u) + 242u, (r) + 6u * (RUNTIME_MODULES + 1u) + 247u, (r) + 6u * (RUNTIME_MODULES + 1u) + 256u, (r) + 7u * (RUNTIME_MODULES + 1u) + 256u, (r) + 8u * (RUNTIME_MODULES + 1u) + 256u, (r) + 9u * (RUNTIME_MODULES + 1u) + 256u, (r) + 10u * (RUNTIME_MODULES + 1u) + 256u, (r) + 11u * (RUNTIME_MODULES + 1u) + 256u, (r) + 12u * (RUNTIME_MODULES + 1u) + 256u, (r) + 13u * (RUNTIME_MODULES + 1u) + 256u, (r) + 14u * (RUNTIME_MODULES + 1u) + 256u, (r) + 15u * (RUNTIME_MODULES + 1u) + 256u, (r) + 16u * (RUNTIME_MODULES + 1u) + 256u, (r) + 17u * (RUNTIME_MODULES + 1u) + 256u, (r) + 18u * (RUNTIME_MODULES + 1u) + 256u, (r) + 19u * (RUNTIME_MODULES + 1u) + 256u, (r) + 20u * (RUNTIME_MODULES + 1u) + 256u, (r) + 20u * (RUNTIME_MODULES + 1u) + 258u, (r) + 20u * (RUNTIME_MODULES + 1u) + 266u } +#define RUNTIME_SITE_EVENT_WORDS (24u * (RUNTIME_MODULES + 1u) + 268u) +#define RUNTIME_SITE_EVENT_ROWS(r) { (r) + 0u * (RUNTIME_MODULES + 1u) + 0u, (r) + 1u * (RUNTIME_MODULES + 1u) + 0u, (r) + 2u * (RUNTIME_MODULES + 1u) + 0u, (r) + 3u * (RUNTIME_MODULES + 1u) + 0u, (r) + 4u * (RUNTIME_MODULES + 1u) + 0u, (r) + 4u * (RUNTIME_MODULES + 1u) + 9u, (r) + 4u * (RUNTIME_MODULES + 1u) + 18u, (r) + 4u * (RUNTIME_MODULES + 1u) + 27u, (r) + 4u * (RUNTIME_MODULES + 1u) + 36u, (r) + 4u * (RUNTIME_MODULES + 1u) + 45u, (r) + 4u * (RUNTIME_MODULES + 1u) + 54u, (r) + 4u * (RUNTIME_MODULES + 1u) + 63u, (r) + 4u * (RUNTIME_MODULES + 1u) + 72u, (r) + 4u * (RUNTIME_MODULES + 1u) + 81u, (r) + 4u * (RUNTIME_MODULES + 1u) + 90u, (r) + 4u * (RUNTIME_MODULES + 1u) + 99u, (r) + 4u * (RUNTIME_MODULES + 1u) + 108u, (r) + 4u * (RUNTIME_MODULES + 1u) + 117u, (r) + 4u * (RUNTIME_MODULES + 1u) + 126u, (r) + 4u * (RUNTIME_MODULES + 1u) + 135u, (r) + 4u * (RUNTIME_MODULES + 1u) + 144u, (r) + 4u * (RUNTIME_MODULES + 1u) + 153u, (r) + 4u * (RUNTIME_MODULES + 1u) + 162u, (r) + 4u * (RUNTIME_MODULES + 1u) + 171u, (r) + 4u * (RUNTIME_MODULES + 1u) + 180u, (r) + 4u * (RUNTIME_MODULES + 1u) + 189u, (r) + 4u * (RUNTIME_MODULES + 1u) + 198u, (r) + 5u * (RUNTIME_MODULES + 1u) + 198u, (r) + 5u * (RUNTIME_MODULES + 1u) + 215u, (r) + 5u * (RUNTIME_MODULES + 1u) + 224u, (r) + 5u * (RUNTIME_MODULES + 1u) + 233u, (r) + 5u * (RUNTIME_MODULES + 1u) + 242u, (r) + 6u * (RUNTIME_MODULES + 1u) + 242u, (r) + 6u * (RUNTIME_MODULES + 1u) + 247u, (r) + 6u * (RUNTIME_MODULES + 1u) + 256u, (r) + 7u * (RUNTIME_MODULES + 1u) + 256u, (r) + 8u * (RUNTIME_MODULES + 1u) + 256u, (r) + 9u * (RUNTIME_MODULES + 1u) + 256u, (r) + 10u * (RUNTIME_MODULES + 1u) + 256u, (r) + 11u * (RUNTIME_MODULES + 1u) + 256u, (r) + 12u * (RUNTIME_MODULES + 1u) + 256u, (r) + 13u * (RUNTIME_MODULES + 1u) + 256u, (r) + 14u * (RUNTIME_MODULES + 1u) + 256u, (r) + 15u * (RUNTIME_MODULES + 1u) + 256u, (r) + 16u * (RUNTIME_MODULES + 1u) + 256u, (r) + 17u * (RUNTIME_MODULES + 1u) + 256u, (r) + 18u * (RUNTIME_MODULES + 1u) + 256u, (r) + 19u * (RUNTIME_MODULES + 1u) + 256u, (r) + 20u * (RUNTIME_MODULES + 1u) + 256u, (r) + 20u * (RUNTIME_MODULES + 1u) + 258u, (r) + 20u * (RUNTIME_MODULES + 1u) + 266u, (r) + 21u * (RUNTIME_MODULES + 1u) + 266u, (r) + 22u * (RUNTIME_MODULES + 1u) + 266u, (r) + 23u * (RUNTIME_MODULES + 1u) + 266u, (r) + 24u * (RUNTIME_MODULES + 1u) + 266u } #define RUNTIME_OWNED_SITES 69u #define RUNTIME_OWNED_SPANS { {0x40002318u, 8u, 24u}, {0x40031e74u, 10u, 24u}, {0x400334d8u, 6u, 24u}, {0x4003a526u, 4u, 24u}, {0x4003a52eu, 8u, 24u}, {0x4003bff2u, 8u, 24u}, {0x4003c8ccu, 4u, 24u}, {0x4003c928u, 6u, 24u}, {0x4003c950u, 2u, 24u}, {0x4003c980u, 6u, 24u}, {0x4003cd98u, 8u, 24u}, {0x4003d136u, 4u, 24u}, {0x4003d718u, 6u, 24u}, {0x4004c36au, 6u, 24u}, {0x4005221eu, 10u, 24u}, {0x400585dcu, 10u, 24u}, {0x400585ecu, 4u, 24u}, {0x400585fau, 4u, 24u}, {0x4005a616u, 6u, 24u}, {0x4005a850u, 6u, 24u}, {0x4006d784u, 8u, 24u}, {0x40077b5cu, 6u, 24u}, {0x4007865eu, 4u, 24u}, {0x40078678u, 2u, 24u}, {0x400786c8u, 6u, 24u}, {0x400786ceu, 2u, 24u}, {0x40078886u, 10u, 24u}, {0x400791e4u, 8u, 24u}, {0x40079248u, 4u, 24u}, {0x4007981cu, 6u, 24u}, {0x40079904u, 2u, 24u}, {0x400ce10eu, 4u, 24u}, {0x400cf6fau, 4u, 24u}, {0x400cf702u, 4u, 24u}, {0x400cf714u, 4u, 24u}, {0x400d6438u, 4u, 24u}, {0x400788c4u, 12u, 24u}, {0x40078c22u, 2u, 24u}, {0x40078c28u, 2u, 24u}, {0x40078cb0u, 2u, 24u}, {0x40078cb6u, 2u, 24u}, {0x40078d2eu, 2u, 24u}, {0x40078d34u, 2u, 24u}, {0x40078deeu, 2u, 24u}, {0x40078df4u, 2u, 24u}, {0x40078e7cu, 2u, 24u}, {0x40078e82u, 2u, 24u}, {0x40065bcau, 6u, 25u}, {0x40065bd8u, 4u, 25u}, {0x40065bdeu, 4u, 25u}, {0x40065c7cu, 4u, 25u}, {0x40065cc4u, 4u, 25u}, {0x40065d3eu, 4u, 25u}, {0x40065d58u, 4u, 25u}, {0x40065d72u, 4u, 25u}, {0x40083afcu, 10u, 27u}, {0x4004e1eau, 10u, 27u}, {0x40032280u, 8u, 27u}, {0x40036548u, 8u, 27u}, {0x40072c30u, 6u, 32u}, {0x40072caau, 6u, 32u}, {0x4006d8f4u, 6u, 32u}, {0x4006d91cu, 6u, 32u}, {0x400858c0u, 6u, 32u}, {0x4000d47eu, 6u, 33u}, {0x40097014u, 4u, 48u}, {0x4002dc68u, 6u, 49u}, {0x4002dc90u, 6u, 49u}, {0x4002dcc4u, 6u, 49u} } extern const unsigned char modwerk_raise_ev_mute_keep[]; extern const unsigned char modwerk_raise_ev_trig_muted[]; /* raised events: the base's entry a package's RUNTIME_RAISE hook word receives */ -#define RUNTIME_SITE_EVENT_RAISES { 0, 0, 0, (uintptr_t)modwerk_raise_ev_mute_keep, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, (uintptr_t)modwerk_raise_ev_trig_muted, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } +#define RUNTIME_SITE_EVENT_RAISES { 0, 0, 0, (uintptr_t)modwerk_raise_ev_mute_keep, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, (uintptr_t)modwerk_raise_ev_trig_muted, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } #endif diff --git a/sdk/machines/octatrack/elekloader/runtime_events.s b/sdk/machines/octatrack/elekloader/runtime_events.s index f84e299903..abebf179d8 100644 --- a/sdk/machines/octatrack/elekloader/runtime_events.s +++ b/sdk/machines/octatrack/elekloader/runtime_events.s @@ -1161,6 +1161,24 @@ modwerk_raise_ev_modules_ready: lea modwerk_runtime_event_row+188,%a0 bra.w modwerk_raise_row +| ---- raised (by a module, or by the base): ev_usb_isr: unsigned f(void); every handler runs, the answers OR'd + .globl modwerk_raise_ev_usb_isr +modwerk_raise_ev_usb_isr: + lea modwerk_runtime_event_row+204,%a0 + bra.w modwerk_raise_row + +| ---- raised (by a module, or by the base): ev_usb_bus_end: unsigned f(void); every handler runs, the answers OR'd + .globl modwerk_raise_ev_usb_bus_end +modwerk_raise_ev_usb_bus_end: + lea modwerk_runtime_event_row+208,%a0 + bra.w modwerk_raise_row + +| ---- raised (by a module, or by the base): ev_usb_control: unsigned f(void); every handler runs, the answers OR'd + .globl modwerk_raise_ev_usb_control +modwerk_raise_ev_usb_control: + lea modwerk_runtime_event_row+212,%a0 + bra.w modwerk_raise_row + | a0: the hook's row pointer. C convention: d0 the answers OR'd, d2-d7/a2-a6 kept. modwerk_raise_row: lea -8(%sp),%sp diff --git a/sdk/machines/octatrack/elekloader/test_usb_function.c b/sdk/machines/octatrack/elekloader/test_usb_function.c new file mode 100644 index 0000000000..d0c4a643ac --- /dev/null +++ b/sdk/machines/octatrack/elekloader/test_usb_function.c @@ -0,0 +1,262 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later + * Host check of the USB function a module contributes (usb_function.c) over a model of the controller's registers: + * admission takes a whole, in-range record and refuses every other; a function that arrives is put behind the base's + * own configuration only while the unit is off the bus, after the grace second and an idle control endpoint; one + * that leaves has its endpoint flushed and disabled at the switch; USB DISK MODE holds a reconnect back for as long + * as it is open; a control endpoint that never idles is not waited for past ten seconds; a host that does not come + * back counts as unplugged once. No stock byte is used. */ +#define MW_HOST +#include +#include +#include +#include +static unsigned failures; +#define CHECK(x) do { if (!(x)) { failures++; fprintf(stderr, "%s:%d: %s\n", __FILE__, __LINE__, #x); } } while (0) + +#define USBCMD 0xfc0b0140u +#define SETUPSTAT 0xfc0b01acu +#define FLUSH 0xfc0b01b4u +#define STAT 0xfc0b01b8u +#define COMPLETE 0xfc0b01bcu +#define CTRL3 0xfc0b01ccu +#define EP0_STATE 0x460bb3ecu +#define EP0_AWAITED 0x460bb3f4u +static uint32_t registers[0x100 / 4], stock_state, stock_awaited; +static volatile uint32_t *host_reg(uint32_t a) +{ + if (a == EP0_STATE) return &stock_state; + if (a == EP0_AWAITED) return &stock_awaited; + if (a - 0xfc0b0100u < sizeof registers && !(a & 3u)) return ®isters[(a - 0xfc0b0100u) / 4u]; + fprintf(stderr, "unmapped %#x\n", a); exit(2); +} +#define UF_REG(a) (*host_reg(a)) +#define UF_UNCACHED(p) ((volatile uint8_t *)(p)) +#define UF_IMAGE_ADDRESS(p) ((void)(p), 0x40300000u) /* where the switch finds a relocated image */ +#define MODWERK_USB_CFG_BYTES 101u +#define MODWERK_USB_CFG_INTERFACES 4u + +#include "loader.h" +#include "modwerk_events.h" +const unsigned char modwerk_raise_ev_usb_isr[1], modwerk_raise_ev_usb_bus_end[1], modwerk_raise_ev_usb_control[1]; +static unsigned isrs, bus_ends, controls, answer; +static unsigned host_raise(const unsigned char *entry) +{ + if (entry == modwerk_raise_ev_usb_isr) return ++isrs, 0u; + if (entry == modwerk_raise_ev_usb_bus_end) return ++bus_ends, 0u; + CHECK(entry == modwerk_raise_ev_usb_control); + return ++controls, answer; +} +#define UF_RAISE(entry) host_raise(entry) +static int locked, usb_disk; +uint32_t modwerk_machine_lock(void) { CHECK(!locked); locked = 1; return 4; } +void modwerk_machine_unlock(uint32_t s) { CHECK(locked && s == 4); locked = 0; } +int modwerk_machine_usb_disk(void) { return usb_disk; } +uint8_t modwerk_cfg_fs[512], modwerk_cfg_hs[512], modwerk_cfg_os_fs[512], modwerk_cfg_os_hs[512]; +volatile uint32_t modwerk_cfg_len = MODWERK_USB_CFG_BYTES; +static uintptr_t volatile function_row[2]; +#define modwerk_runtime_event_row host_rows +static uintptr_t volatile *const host_rows[RUNTIME_SITE_EVENTS] = {[MODWERK_OT_USB_FUNCTIONS - RUNTIME_EVENTS] = function_row}; +#include "usb_function.c" +#undef modwerk_runtime_event_row + +/* An audio-like function: an association over interfaces 4 and 5, a control interface, a streaming interface with + * two alternate settings and an IN endpoint 3. */ +static const uint8_t block[] = { + 8, 11, 4, 2, 1, 0, 0x20, 0, + 9, 4, 4, 0, 0, 1, 1, 0x20, 0, + 9, 0x24, 1, 0, 2, 4, 9, 0, 0, + 9, 4, 5, 0, 0, 1, 2, 0x20, 0, + 9, 4, 5, 1, 1, 1, 2, 0x20, 0, + 7, 5, 0x83, 5, 0x40, 0, 1, +}; +#define BLOCK (sizeof block) +static uint8_t other[4][BLOCK]; +static struct modwerk_usb_function function; + +/* A package image as the loader's admission sees it: the 32-byte record, then the four blocks. */ +#define RECORD_AT 8u +#define BLOCKS_AT 64u +static uint8_t image[BLOCKS_AT + 4u * BLOCK + 8u]; +static void put32(uint8_t *p, uint32_t v) { p[0] = (uint8_t)(v >> 24), p[1] = (uint8_t)(v >> 16), p[2] = (uint8_t)(v >> 8), p[3] = (uint8_t)v; } +static void put16(uint8_t *p, unsigned v) { p[0] = (uint8_t)(v >> 8), p[1] = (uint8_t)v; } +static void package(uint32_t base) +{ + memset(image, 0, sizeof image); + uint8_t *r = image + RECORD_AT; + put32(r, MODWERK_USB_FUNCTION_ABI), put32(r + 4, 32u), put16(r + 8, 2u), put16(r + 10, BLOCK), put32(r + 12, 0x00080000u); + for (unsigned k = 0; k < 4u; ++k) { + put32(r + 16u + 4u * k, base + BLOCKS_AT + k * BLOCK); + memcpy(image + BLOCKS_AT + k * BLOCK, block, BLOCK); + } +} +static struct runtime_dsp candidate(void) +{ + struct runtime_dsp d; + memset(&d, 0, sizeof d); + for (unsigned e = 0; e < RUNTIME_HOOKS; ++e) d.hook_offset[e] = RUNTIME_NONE; + d.present = 1, d.image = image, d.image_bytes = sizeof image, d.hook_offset[MODWERK_OT_USB_FUNCTIONS] = RECORD_AT; + return d; +} +static int admit(unsigned operation) { struct runtime_dsp d = candidate(); return modwerk_usb_function_admit(&d, operation); } + +static void admission(void) +{ + struct runtime_dsp d = candidate(); + d.hook_offset[MODWERK_OT_USB_FUNCTIONS] = RUNTIME_NONE; + CHECK(modwerk_usb_function_admit(&d, RUNTIME_METADATA_PREPARE) == RUNTIME_OK); /* no function: not this check's */ + d = candidate(), d.present = 0; + CHECK(modwerk_usb_function_admit(&d, RUNTIME_METADATA_PREPARE) == RUNTIME_OK); /* a removal */ + package(0); + CHECK(admit(RUNTIME_METADATA_PREPARE) == RUNTIME_OK); + CHECK(admit(RUNTIME_METADATA_SWITCH) == RUNTIME_MALFORMED); /* offsets are not addresses once it is relocated */ + CHECK(admit(0) == RUNTIME_MALFORMED); + package(0x40300000u); + CHECK(admit(RUNTIME_METADATA_SWITCH) == RUNTIME_OK); + CHECK(admit(RUNTIME_METADATA_PREPARE) == RUNTIME_MALFORMED); +#define REFUSED(change) do { package(0); change; CHECK(admit(RUNTIME_METADATA_PREPARE) == RUNTIME_MALFORMED); } while (0) + uint8_t *r = image + RECORD_AT, *b = image + BLOCKS_AT; + REFUSED(put32(r, 2u)); /* another ABI */ + REFUSED(put32(r + 4, 28u)); /* another record size */ + REFUSED(put16(r + 8, 0u)); /* no interface */ + REFUSED(put16(r + 8, 5u)); /* more than four */ + REFUSED(put16(r + 8, 3u)); /* an interface it declares and never describes */ + REFUSED(put16(r + 10, 8u)); /* too short for one interface */ + REFUSED(put16(r + 10, 512u - MODWERK_USB_CFG_BYTES + 1u)); /* past the slot */ + REFUSED(put32(r + 12, 0u)); /* no endpoint */ + REFUSED(put32(r + 12, 0x00040000u)); /* endpoint 2 is USB MIDI's */ + REFUSED(put32(r + 12, 0x00080001u)); /* the control endpoint */ + REFUSED(put32(r + 16, sizeof image - BLOCK + 1u)); /* a block that leaves the image */ + REFUSED(put32(r + 28, 0xfffffff0u)); + REFUSED(b[0] = 1); /* a descriptor shorter than its header */ + REFUSED(b[BLOCK - 7u] = 9); /* the last one runs past the block */ + REFUSED(b[1] = 2); /* a configuration descriptor is the base's */ + REFUSED(b[2] = 3); /* the association starts on USB MIDI's interface */ + REFUSED(b[3] = 3); /* and reaches past its own */ + REFUSED(b[8 + 2] = 3); /* an interface of the base's */ + REFUSED(b[8 + 9 + 9 + 2] = 6); /* an interface past its count */ + REFUSED(b[BLOCK - 5u] = 0x82); /* USB MIDI's endpoint */ + REFUSED(b[2u * BLOCK + 8u + 2u] = 2); /* every block is checked, the third too */ + d = candidate(), d.image_bytes = RECORD_AT + 31u; + CHECK(modwerk_usb_function_admit(&d, RUNTIME_METADATA_PREPARE) == RUNTIME_MALFORMED); /* a cut record */ + d = candidate(), d.hook_offset[MODWERK_OT_USB_FUNCTIONS] = RECORD_AT + 1u; + CHECK(modwerk_usb_function_admit(&d, RUNTIME_METADATA_PREPARE) == RUNTIME_MALFORMED); /* an odd offset */ +} + +static unsigned status(unsigned k) { uint8_t out[8]; CHECK(modwerk_usb_function_status(out) == 8u); return out[k]; } +static unsigned ticks(unsigned n, int quiet) { unsigned lapsed = 0; while (n--) lapsed += (unsigned)modwerk_usb_function_tick(quiet); return lapsed; } +static int attached(void) { return (int)(UF_REG(USBCMD) & 1u); } +static void base_slots(void) +{ + uint8_t *const slot[4] = {modwerk_cfg_fs, modwerk_cfg_hs, modwerk_cfg_os_fs, modwerk_cfg_os_hs}; + for (unsigned k = 0; k < 4u; ++k) { + memset(slot[k], 0, 512), memset(slot[k], 0xb0 + (int)k, MODWERK_USB_CFG_BYTES); + slot[k][2] = MODWERK_USB_CFG_BYTES, slot[k][3] = 0, slot[k][4] = MODWERK_USB_CFG_INTERFACES; + } +} +static void describes(int with) +{ + uint8_t *const slot[4] = {modwerk_cfg_fs, modwerk_cfg_hs, modwerk_cfg_os_fs, modwerk_cfg_os_hs}; + unsigned total = MODWERK_USB_CFG_BYTES + (with ? BLOCK : 0u); + CHECK(modwerk_cfg_len == total); + for (unsigned k = 0; k < 4u; ++k) { + CHECK(slot[k][2] == (uint8_t)total && slot[k][3] == (uint8_t)(total >> 8)); + CHECK(slot[k][4] == MODWERK_USB_CFG_INTERFACES + (with ? 2u : 0u)); + CHECK(slot[k][0] == 0xb0 + k && slot[k][MODWERK_USB_CFG_BYTES - 1u] == 0xb0 + k); /* the base's part stays */ + if (with) CHECK(!memcmp(slot[k] + MODWERK_USB_CFG_BYTES, other[k], BLOCK)); + } +} +static void arrive(void) { function_row[0] = (uintptr_t)&function; modwerk_usb_functions_changed(); } +static void leave(void) { function_row[0] = 0; modwerk_usb_functions_changed(); } + +int main(void) +{ + admission(); + + for (unsigned k = 0; k < 4u; ++k) { memcpy(other[k], block, BLOCK); other[k][BLOCK - 3u] = (uint8_t)(0x40u + k); } + function = (struct modwerk_usb_function){MODWERK_USB_FUNCTION_ABI, 32u, 2u, BLOCK, 0x00080000u, other[0], other[1], other[2], other[3]}; + base_slots(); + UF_REG(USBCMD) = 0x00080001u, UF_REG(CTRL3) = 0x00880000u, stock_state = 11u; + + /* Nothing contributed: nothing happens, however long. */ + CHECK(!ticks(5000, 1) && attached() && !status(0) && !status(1) && !status(2) && !status(3) && !bus_ends); + modwerk_usb_functions_changed(); /* another table changed */ + CHECK(!status(0) && !ticks(100, 1) && attached()); + + /* A function arrives: a second of grace, an idle control endpoint, then off the bus with the slots rewritten. */ + arrive(); + CHECK(status(0) == 1u && !status(1) && status(2) == 1u && !UF_REG(FLUSH)); /* due; nothing to retire */ + CHECK(!ticks(61, 1) && attached()); /* the grace second: the host reads the sync's result */ + stock_state = 5u; /* a control transfer is under way */ + CHECK(!ticks(20, 1) && attached() && !modwerk_usb_reconnecting()); + stock_state = 11u, UF_REG(SETUPSTAT) = 1u; /* a SETUP stock has not read */ + CHECK(!ticks(20, 1) && attached()); + UF_REG(SETUPSTAT) = 0, UF_REG(STAT) = 0x00010000u; /* the control endpoint primed */ + CHECK(!ticks(20, 1) && attached()); + UF_REG(STAT) = 0x00080000u; /* another endpoint's traffic does not hold it */ + CHECK(!ticks(20, 0) && attached()); /* the base's own vendor data stage does */ + CHECK(!ticks(1, 1) && !attached() && bus_ends == 1u && modwerk_usb_reconnecting() && status(0) == 2u); + describes(1); + CHECK(status(1) == 1u && UF_REG(USBCMD) == 0x00080000u); /* only run/stop changed */ + CHECK(!ticks(30, 1) && !attached()); /* half a second off the bus */ + CHECK(!ticks(1, 1) && attached() && status(0) == 3u && status(3) == 1u && modwerk_usb_reconnecting()); + CHECK(!ticks(500, 1) && modwerk_usb_reconnecting()); /* the host enumerates and the site opens the unit again */ + modwerk_usb_function_host(); + CHECK(!modwerk_usb_reconnecting() && !status(0) && !ticks(5000, 1) && attached() && bus_ends == 1u && !status(4)); + modwerk_usb_functions_changed(); /* another module's table: the function stayed */ + CHECK(!status(0) && !UF_REG(FLUSH)); + + /* It leaves: its endpoint is flushed and disabled at the switch; the reconnect takes it out of the slots. A host + * that never reaches the vendor interface again counts as unplugged, once. */ + leave(); + CHECK(UF_REG(FLUSH) == 0x00080000u && UF_REG(CTRL3) == 0x00080000u && UF_REG(COMPLETE) == 0x00080000u); + CHECK(status(0) == 1u && status(1) == 1u && !status(2)); /* the host still sees it until the reconnect */ + describes(1); + UF_REG(FLUSH) = 0, UF_REG(COMPLETE) = 0; + CHECK(!ticks(62, 1) && !attached() && bus_ends == 2u); + describes(0); + CHECK(!status(1) && !ticks(31, 1) && attached() && status(3) == 2u); + CHECK(!ticks(1199, 1) && modwerk_usb_reconnecting()); + CHECK(ticks(1, 1) == 1u && !modwerk_usb_reconnecting() && !status(0)); + CHECK(!ticks(5000, 1)); + + /* It came and went before the host saw it: no reconnect, but its endpoint is still retired. */ + arrive(), ticks(30, 1), leave(); + CHECK(UF_REG(FLUSH) == 0x00080000u); + UF_REG(FLUSH) = 0, UF_REG(COMPLETE) = 0; + CHECK(!ticks(5000, 1) && attached() && status(3) == 2u && !status(0) && bus_ends == 2u); + describes(0); + + /* USB DISK MODE holds a reconnect back for as long as it is open. */ + usb_disk = 1, arrive(); + CHECK(!ticks(20000, 1) && attached() && status(0) == 1u && !status(4)); + usb_disk = 0; + CHECK(!ticks(1, 1) && !attached()); + describes(1); + CHECK(!ticks(31, 1) && attached()); + modwerk_usb_function_host(); + + /* A replaced module (another image) is a function that left and one that arrived: retired, then a reconnect. */ + static struct modwerk_usb_function update; + update = function; + function_row[0] = (uintptr_t)&update, modwerk_usb_functions_changed(); + CHECK(UF_REG(FLUSH) == 0x00080000u && status(0) == 1u && status(2) == 1u); + UF_REG(FLUSH) = 0, UF_REG(COMPLETE) = 0; + + /* A control endpoint that never idles is waited for ten seconds, then not. */ + stock_awaited = 1u; + CHECK(!ticks(61 + 600, 1) && attached() && !status(4)); + CHECK(!ticks(1, 1) && !attached() && status(4) == 1u); + describes(1); + stock_awaited = 0; + CHECK(!ticks(31, 1) && attached() && status(3) == 4u); + modwerk_usb_function_host(); + + /* The interrupt's hooks pass through; a function's answer to a class request reaches ep0.c. */ + modwerk_usb_function_isr(), modwerk_usb_function_bus_end(); + CHECK(isrs == 1u && bus_ends == 5u && !modwerk_usb_function_control() && controls == 1u); + answer = 1u; + CHECK(modwerk_usb_function_control() == 1u && !locked); + if (failures) return 1; + puts("usb function: admission, slots, reconnect and its holds pass"); + return 0; +} diff --git a/sdk/machines/octatrack/elekloader/usb_function.c b/sdk/machines/octatrack/elekloader/usb_function.c new file mode 100644 index 0000000000..d133b7e775 --- /dev/null +++ b/sdk/machines/octatrack/elekloader/usb_function.c @@ -0,0 +1,228 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later + * The USB function a module adds to the base's configuration: events.json's ot_usb_functions table. + * + * The configuration descriptors a host reads live in four 512-byte slots (usb_base.s: modwerk_cfg_fs and the + * others, each inside one 4 KiB page, as stock's usb_ep0_send needs). A slot holds the base's own functions (mass + * storage, the vendor interface, USB MIDI: MODWERK_USB_CFG_BYTES bytes, MODWERK_USB_CFG_INTERFACES interfaces) and, + * behind them, the contributed function's block. A host reads descriptors only when it enumerates, so a change of + * the table ends in a reconnect the base makes itself: + * + * the switch (masked) a function that leaves has its endpoint flushed and disabled: the controller must not + * keep transfer descriptors in memory the pool may hand out again + * WAIT (tick) a second for the host to read the sync's result, then until the control endpoint is idle, no + * vendor data stage is open and stock's USB DISK MODE is closed. Then ev_usb_bus_end, USBCMD.RS off + * and, at once, the slots and their length rewritten: nothing reads them off the bus + * OFF (tick) half a second off the bus, then RS on again + * BACK (tick) the host enumerates. Its bus reset is the base's own disconnect: ep0.c undoes no open sync or + * trial for it, and the host has 20 s to reach the vendor interface before it counts as unplugged + * + * A control endpoint that is not idle after ten seconds is not waited for: a pulled cable ends a transfer the same + * way, and stock's bus reset clears it. The descriptors are copied into the slots; nothing here keeps a pointer + * into a module past the switch that removes it. A base that links USB Audio in (a development twin) refuses every + * function. Sys task (the tick) and the loader's masked switch; the controller's registers are written with the + * USB interrupt held off. Stock addresses: OS 1.40C. */ +#include +#include "loader.h" +#include "modwerk_events.h" +#include "usb_function.h" + +#ifndef MW_HOST /* test_usb_function.c maps these onto a model of the controller and of the unit's memory */ +#include "usb_base.h" /* MODWERK_USB_CFG_BYTES, MODWERK_USB_CFG_INTERFACES: this base's own configuration */ +#define UF_REG(a) (*(volatile uint32_t *)(uintptr_t)(a)) +#define UF_UNCACHED(p) ((volatile uint8_t *)((uintptr_t)(p) + 0x08000000u)) +#define UF_IMAGE_ADDRESS(p) ((uint32_t)(uintptr_t)(p)) +#define UF_RAISE(entry) (((unsigned (*)(void))(uintptr_t)(entry))()) +#endif +int modwerk_machine_usb_disk(void); /* runtime.c: stock's USB DISK MODE is open */ + +#define UF_USBCMD 0xfc0b0140u /* bit 0, run/stop: the pull-up */ +#define UF_SETUPSTAT 0xfc0b01acu +#define UF_PRIME 0xfc0b01b0u +#define UF_FLUSH 0xfc0b01b4u +#define UF_STAT 0xfc0b01b8u +#define UF_COMPLETE 0xfc0b01bcu +#define UF_CTRL3 0xfc0b01ccu /* ENDPTCTRL3: bit 7 enables OUT, bit 23 IN */ +#define UF_EP0_STATE 0x460bb3ecu /* stock's control transfer state: 11 idle */ +#define UF_EP0_AWAITED 0x460bb3f4u /* stock waits for an OUT stage */ + +#define UF_TABLE (MODWERK_OT_USB_FUNCTIONS - RUNTIME_EVENTS) +#define UF_RECORD 32u +#define UF_SLOT 512u +#define UF_ROOM (UF_SLOT - MODWERK_USB_CFG_BYTES) +#define UF_ENDPOINTS 0x00080008u /* endpoint 3, OUT and IN, as ENDPTFLUSH bits */ +#define UF_GRACE 60u /* ticks, 60 a second */ +#define UF_PATIENCE 600u +#define UF_DOWN 30u +#define UF_LEASE 1200u +#define UF_FLUSH_SPINS 2000u + +enum { UF_SETTLED, UF_WAIT, UF_OFF, UF_BACK }; + +extern uint8_t modwerk_cfg_fs[], modwerk_cfg_hs[], modwerk_cfg_os_fs[], modwerk_cfg_os_hs[]; +extern volatile uint32_t modwerk_cfg_len; + +/* Written masked at a switch, read by the tick with the USB interrupt held off (no switch runs then). */ +static volatile uintptr_t row_record; /* the function the table holds, 0 for none */ +static volatile uint32_t row_endpoints; /* its endpoints */ +static volatile uint32_t row_serial; /* 0 for none; a new number for every function that arrives */ +static volatile uint8_t dirty; +static uint32_t serials, live_serial; /* live: the function the slots describe */ +static uint8_t state, reconnects, forced; +static uint16_t timer, waited; + +static uint32_t uf_word(const uint8_t *p) +{ return (uint32_t)p[0] << 24 | (uint32_t)p[1] << 16 | (uint32_t)p[2] << 8 | p[3]; } +static unsigned uf_half(const uint8_t *p) { return (unsigned)p[0] << 8 | p[1]; } + +/* A function's block: whole descriptors, its interfaces numbered from the base's first free one, endpoint 3 only. */ +static int uf_block(const uint8_t *p, unsigned length, unsigned interfaces) +{ + unsigned at = 0, seen = 0; + while (at < length) { + unsigned n = p[at]; + if (n < 2u || n > length - at) return 0; + unsigned type = p[at + 1u]; + if (type == 2u || type == 7u || type == 1u) return 0; /* a configuration or device descriptor is the base's */ + if (type == 4u) { + if (n < 9u || p[at + 2u] < MODWERK_USB_FUNCTION_INTERFACE || + p[at + 2u] >= MODWERK_USB_FUNCTION_INTERFACE + interfaces) return 0; + seen |= 1u << (p[at + 2u] - MODWERK_USB_FUNCTION_INTERFACE); + } + if (type == 11u && (n != 8u || p[at + 2u] < MODWERK_USB_FUNCTION_INTERFACE || !p[at + 3u] || + p[at + 2u] + p[at + 3u] > MODWERK_USB_FUNCTION_INTERFACE + interfaces)) return 0; + if (type == 5u && (n < 7u || (p[at + 2u] & 0x0fu) != MODWERK_USB_FUNCTION_ENDPOINT)) return 0; + at += n; + } + return seen == (1u << interfaces) - 1u; +} + +int modwerk_usb_function_admit(const struct runtime_dsp *d, unsigned operation) +{ + if (!d || !d->present) return RUNTIME_OK; + uint32_t at = d->hook_offset[MODWERK_OT_USB_FUNCTIONS]; + if (at == RUNTIME_NONE) return RUNTIME_OK; +#ifdef MODWERK_USB_AUDIO_LINKED + return RUNTIME_CONFLICT; /* this base's configuration already holds USB Audio, on the same interfaces and endpoint */ +#else + if (operation != RUNTIME_METADATA_PREPARE && operation != RUNTIME_METADATA_SWITCH) return RUNTIME_MALFORMED; + if (!d->image || (at & 1u) || at > d->image_bytes || d->image_bytes - at < UF_RECORD) return RUNTIME_MALFORMED; + const uint8_t *record = d->image + at; + unsigned interfaces = uf_half(record + 8), length = uf_half(record + 10); + uint32_t endpoints = uf_word(record + 12); + if (uf_word(record) != MODWERK_USB_FUNCTION_ABI || uf_word(record + 4) != UF_RECORD || interfaces < 1u || + interfaces > 4u || length < 9u || length > UF_ROOM || !endpoints || (endpoints & ~UF_ENDPOINTS)) + return RUNTIME_MALFORMED; + /* PREPARE runs before relocation: the pointer words still hold image offsets (machine_contributors.c). */ + uint32_t base = operation == RUNTIME_METADATA_PREPARE ? 0u : UF_IMAGE_ADDRESS(d->image); + for (unsigned k = 0; k < 4u; ++k) { + uint32_t block = uf_word(record + 16u + 4u * k); + if (block < base || block - base > d->image_bytes || d->image_bytes - (block - base) < length || + !uf_block(d->image + (block - base), length, interfaces)) return RUNTIME_MALFORMED; + } + return RUNTIME_OK; +#endif +} + +/* Masked. The bits clear when the controller has let go of the queue; an endpoint that is then disabled is not + * read again, whatever its transfer descriptors hold. */ +static void uf_retire(uint32_t endpoints) +{ + UF_REG(UF_FLUSH) = endpoints; + for (unsigned n = 0; (UF_REG(UF_FLUSH) & endpoints) && n < UF_FLUSH_SPINS; ++n) {} + UF_REG(UF_CTRL3) = UF_REG(UF_CTRL3) & ~((endpoints & 0x00080000u ? 0x00800000u : 0u) | (endpoints & 8u ? 0x80u : 0u)); + UF_REG(UF_COMPLETE) = endpoints; /* write one to clear */ +} + +void modwerk_usb_functions_changed(void) +{ + uintptr_t record = *modwerk_runtime_event_row[UF_TABLE]; + if (record == row_record) return; /* another table changed: the function, or none, stayed */ + if (row_endpoints) uf_retire(row_endpoints); + row_record = record; + row_endpoints = record ? ((const struct modwerk_usb_function *)record)->endpoints & UF_ENDPOINTS : 0u; + if (record && !++serials) ++serials; + row_serial = record ? serials : 0u; + dirty = 1; +} + +static int uf_idle(void) +{ + return !((UF_REG(UF_PRIME) | UF_REG(UF_FLUSH) | UF_REG(UF_STAT) | UF_REG(UF_COMPLETE)) & 0x00010001u) && + !(UF_REG(UF_SETUPSTAT) & 1u) && UF_REG(UF_EP0_STATE) == 11u && !UF_REG(UF_EP0_AWAITED); +} + +/* The USB interrupt held off and the unit off the bus. Through the uncached alias: the controller reads memory. */ +static void uf_compose(void) +{ + const struct modwerk_usb_function *f = (const struct modwerk_usb_function *)row_record; + uint8_t *const slot[4] = {modwerk_cfg_fs, modwerk_cfg_hs, modwerk_cfg_os_fs, modwerk_cfg_os_hs}; + const uint8_t *const block[4] = {f ? f->fs : 0, f ? f->hs : 0, f ? f->os_fs : 0, f ? f->os_hs : 0}; + unsigned length = f && f->length <= UF_ROOM ? f->length : 0u, interfaces = length ? f->interfaces : 0u; + unsigned total = MODWERK_USB_CFG_BYTES + length; + for (unsigned k = 0; k < 4u; ++k) { + volatile uint8_t *to = UF_UNCACHED(slot[k]); + to[2] = (uint8_t)total, to[3] = (uint8_t)(total >> 8); + to[4] = (uint8_t)(MODWERK_USB_CFG_INTERFACES + interfaces); + for (unsigned i = 0; i < length; ++i) to[MODWERK_USB_CFG_BYTES + i] = block[k][i]; + } + modwerk_cfg_len = total; + live_serial = length ? row_serial : 0u; +} + +int modwerk_usb_function_tick(int quiet) +{ + uint32_t lock; + switch (state) { + case UF_SETTLED: + if (!dirty) break; + lock = modwerk_machine_lock(); + dirty = 0; + if (row_serial != live_serial) state = UF_WAIT, timer = UF_GRACE, waited = 0; + modwerk_machine_unlock(lock); + break; + case UF_WAIT: + if (timer) { --timer; break; } + if (modwerk_machine_usb_disk()) break; /* never under a mounted card, however long it stays */ + lock = modwerk_machine_lock(); + dirty = 0; + if (row_serial == live_serial) state = UF_SETTLED; /* it came and went before the host saw it */ + else if ((quiet && uf_idle()) || waited >= UF_PATIENCE) { + if (!(quiet && uf_idle())) ++forced; + UF_RAISE(modwerk_raise_ev_usb_bus_end); + UF_REG(UF_USBCMD) = UF_REG(UF_USBCMD) & ~1u; + uf_compose(); + state = UF_OFF, timer = UF_DOWN; + } else ++waited; + modwerk_machine_unlock(lock); + break; + case UF_OFF: + if (timer) { --timer; break; } + lock = modwerk_machine_lock(); + UF_REG(UF_USBCMD) = UF_REG(UF_USBCMD) | 1u; + modwerk_machine_unlock(lock); + ++reconnects; + state = UF_BACK, timer = UF_LEASE; + break; + default: + if (timer && --timer) break; + state = UF_SETTLED; + return 1; /* nobody reached the vendor interface: as unplugged */ + } + return 0; +} + +void modwerk_usb_function_host(void) { if (state == UF_BACK) state = UF_SETTLED; } +int modwerk_usb_reconnecting(void) { return state == UF_OFF || state == UF_BACK; } +void modwerk_usb_function_isr(void) { (void)UF_RAISE(modwerk_raise_ev_usb_isr); } +void modwerk_usb_function_bus_end(void) { (void)UF_RAISE(modwerk_raise_ev_usb_bus_end); } +unsigned modwerk_usb_function_control(void) { return UF_RAISE(modwerk_raise_ev_usb_control); } + +unsigned modwerk_usb_function_status(uint8_t *out) +{ + out[0] = state == UF_SETTLED && dirty ? UF_WAIT : state; + out[1] = live_serial != 0u; + out[2] = row_serial != 0u; + out[3] = reconnects, out[4] = forced; + out[5] = out[6] = out[7] = 0; + return MODWERK_USB_FUNCTION_STATUS_BYTES; +} diff --git a/sdk/machines/octatrack/elekloader/usb_function.h b/sdk/machines/octatrack/elekloader/usb_function.h new file mode 100644 index 0000000000..abfe7b68a6 --- /dev/null +++ b/sdk/machines/octatrack/elekloader/usb_function.h @@ -0,0 +1,31 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later + * The USB function a module adds to the base's configuration (usb_function.c; events.json ot_usb_functions). */ +#ifndef MODWERK_USB_FUNCTION_H +#define MODWERK_USB_FUNCTION_H +#include +struct runtime_dsp; + +/* The loader's admission (machine_admission_runtime.c), PREPARE with image offsets and SWITCH with addresses: a + * loader refusal for a package whose ot_usb_functions record the base cannot put into its configuration. */ +int modwerk_usb_function_admit(const struct runtime_dsp *to, unsigned operation); +/* Masked, right after a switch rewrote the tables (machine_registry.c's modwerk_machine_tables_changed). */ +void modwerk_usb_functions_changed(void); +/* The sys task's 60 Hz tick (ep0.c). quiet: no vendor data stage is open. Returns 1 when the host did not come + * back to the vendor interface in time after a reconnect: handle it as unplugged. */ +int modwerk_usb_function_tick(int quiet); +/* The host spoke to the vendor interface (ep0.c): a reconnect is over. */ +void modwerk_usb_function_host(void); +/* The unit is off the bus or just back by the base's own doing: the bus reset that follows undoes nothing, and + * the host's silence does not count yet. */ +int modwerk_usb_reconnecting(void); +/* The USB interrupt (ep0.c): ev_usb_isr, ev_usb_bus_end; ev_usb_control's answer (nonzero: a function answered). */ +void modwerk_usb_function_isr(void); +void modwerk_usb_function_bus_end(void); +unsigned modwerk_usb_function_control(void); +/* USB FUNCTION (0xC1, bRequest 41, wValue 0, wLength 8): [0] 0 settled, 1 a reconnect is due, 2 off the bus, + * 3 back and waiting for the host; [1] 1 while the configuration the host reads holds a function; [2] 1 while a + * module contributes one; [3] reconnects made, modulo 256; [4] of them, those that did not wait for an idle + * control endpoint; [5]-[7] 0. */ +#define MODWERK_USB_FUNCTION_STATUS_BYTES 8u +unsigned modwerk_usb_function_status(uint8_t *out); +#endif diff --git a/sdk/machines/octatrack/events.json b/sdk/machines/octatrack/events.json index 0addd7fde1..cc54c9af14 100644 --- a/sdk/machines/octatrack/events.json +++ b/sdk/machines/octatrack/events.json @@ -2318,6 +2318,71 @@ "order": "any: the base asks every subscriber on its own and nothing is OR'd, so the order changes nothing.", "subscribers": [], "orderEvidence": "Each module answers only for itself. No module subscribes yet. Resting takes out handlers only, never a module's own stock-site detours: on an MKII (17 November 2026) a test handler of 400 loop passes cost 12.5 frame points on no track and 1.0 resting, while Repitch 0.2.1 cost 2.4 either way." + }, + { + "event": "ev_usb_isr", + "index": 55, + "site": null, + "raisedByBase": true, + "prototype": "unsigned f(void)", + "args": [], + "results": "or", + "when": "the USB interrupt's transfer path, after the base's USB MIDI work and before it polls its vendor data stage and stock reads a new SETUP and walks its completions; no stock site: the base raises it from its own shims at 0x4001e606", + "context": "the USB interrupt: short, no firmware call that can block", + "contract": "Every handler runs; the answers are ignored. Retire your own endpoint's completions here (write its ENDPTCOMPLETE bit back) before stock's completion loop sees them, and take a control data stage you primed yourself. Leave endpoints 0 to 2 and their completions alone. d2-d7/a2-a6 must be kept.", + "order": "lower first, then module id; every handler runs, so the order does not change the result. 10-90.", + "subscribers": [], + "raisers": [], + "orderEvidence": "A function owns its endpoint alone (ot_usb_functions holds one function), so no handler can take another's completion. No module subscribes yet: USB Audio does this work at the same point when it is linked into a base (audio_isr_shim, ahead of USB MIDI's receive shim)." + }, + { + "event": "ev_usb_bus_end", + "index": 56, + "site": null, + "raisedByBase": true, + "prototype": "unsigned f(void)", + "args": [], + "results": "or", + "when": "a USB bus reset or the end of the USB session (the cable pulled, or the base's own reconnect after ot_usb_functions changed), before the base ends USB MIDI's session and stock resets or stops the controller; no stock site: the base raises it from its own shims at 0x4001e91c and 0x4001e952", + "context": "the USB interrupt: short, no firmware call that can block", + "contract": "Every handler runs; the answers are ignored. Put your interfaces back to alternate setting 0 and stop queueing on your endpoint: the host configures the unit afresh afterwards. d2-d7/a2-a6 must be kept.", + "order": "lower first, then module id; every handler runs, so the order does not change the result. 10-90.", + "subscribers": [], + "raisers": [], + "orderEvidence": "A notification: each handler resets only its own interfaces. No module subscribes yet: USB Audio's audio_reset_shim and audio_sessend_shim do this at the same two points when it is linked into a base." + }, + { + "event": "ev_usb_control", + "index": 57, + "site": null, + "raisedByBase": true, + "prototype": "unsigned f(void)", + "args": [], + "results": "or", + "when": "a control request that neither stock nor the base's vendor interface answers, before stock stalls it; no stock site: the base raises it from its own shim at stock's unknown-request tail (0x4001de64)", + "context": "the USB interrupt: short, no firmware call that can block", + "contract": "Read the SETUP packet at 0x46c8ce08. Return 0 when the request is not yours: with every answer 0 stock stalls it, as before. Otherwise answer it yourself before you return (stock's usb_ep0_send for an IN reply, a data stage you prime and finish in ev_usb_isr, or a stall of both directions) and return nonzero: the base then leaves through stock's done path and neither sends nor stalls. Claim only requests addressed to your own interfaces and entities: every handler runs, so two that answered one request would both act. d2-d7/a2-a6 must be kept.", + "order": "lower first, then module id; every handler runs, so the order does not change the result. 10-90.", + "subscribers": [], + "raisers": [], + "orderEvidence": "Requests are told apart by the interface or entity they address, and ot_usb_functions holds one function, so at most one handler answers. No module subscribes yet: USB Audio's audio_ctrl_shim answers its clock source's class requests at the same point when it is linked into a base." + }, + { + "event": "ot_usb_functions", + "index": 58, + "kind": "table", + "site": null, + "length": 0, + "record": 32, + "key": null, + "room": 1, + "declaration": "struct modwerk_usb_function {\n uint32_t abi, bytes; /* MODWERK_USB_FUNCTION_ABI, sizeof this record (32 on target) */\n uint16_t interfaces; /* the interfaces it adds, numbered from MODWERK_USB_FUNCTION_INTERFACE: 1-4 */\n uint16_t length; /* bytes of each of the four descriptor blocks below */\n uint32_t endpoints; /* its endpoints as ENDPTFLUSH bits (bit n: OUT n, bit 16 + n: IN n): only endpoint MODWERK_USB_FUNCTION_ENDPOINT */\n const uint8_t *fs, *hs, *os_fs, *os_hs; /* its interface association and interfaces as they follow the base's own: in the configuration at full and at high speed, and in OTHER_SPEED_CONFIGURATION describing full and high speed */\n};\n#define MODWERK_USB_FUNCTION_ABI 1u\n#define MODWERK_USB_FUNCTION_INTERFACE 4u /* the base's own: 0 mass storage, 1 its vendor interface, 2 and 3 USB MIDI */\n#define MODWERK_USB_FUNCTION_ENDPOINT 3u /* 0 control, 1 mass storage, 2 USB MIDI */", + "when": "the base builds the USB configuration descriptors a host reads: its own functions (mass storage, the vendor interface, USB MIDI), then the contributed function's interfaces", + "context": "the loader's switch (masked) and the sys task's tick; the record is copied, never called", + "contract": "Contribute one struct modwerk_usb_function. The base checks the whole record at admission (ABI and size, 1-4 interfaces, endpoint 3 alone, four blocks of `length` bytes inside the package's initialized image, the configuration within its 512-byte slot) and refuses the package otherwise; a base that links USB Audio in (a development twin) refuses every function. When the table changes the host has to read the descriptors again, so the base reconnects by itself: it waits until the control endpoint is idle, takes the unit off the bus for half a second, rewrites the four configurations and comes back. A sync or trial stays open across that reconnect (the base's own disconnect undoes nothing), and the host has 20 s to speak to the vendor interface again before it counts as unplugged. A function that leaves has its endpoint flushed and disabled at the switch, before its memory can be reused. Its interrupt, bus-end and class-request work goes through ev_usb_isr, ev_usb_bus_end and ev_usb_control. SET_INTERFACE, GET_INTERFACE and the audio frame are not hooks yet: a function patches those stock sites itself, as its own.", + "order": "lower first, then module id; the table holds one function.", + "subscribers": [], + "orderEvidence": "One function at a time: the controller has one endpoint left (3) and every authored USB Audio layout uses it, so a second function could not share the configuration. The USB Audio module is the first to contribute; until its package is published no module does." } ] } diff --git a/sdk/machines/octatrack/include/modwerk_events.h b/sdk/machines/octatrack/include/modwerk_events.h index 5fa677e0c5..5d641778bd 100644 --- a/sdk/machines/octatrack/include/modwerk_events.h +++ b/sdk/machines/octatrack/include/modwerk_events.h @@ -276,4 +276,29 @@ struct modwerk_part_menu { #define MODWERK_EV_IN_USE 54 typedef unsigned modwerk_ev_in_use(void); +/* ev_usb_isr (raised by the base): the USB interrupt's transfer path, after the base's USB MIDI work and before it polls its vendor data stage and stock reads a new SETUP and walks its completions; no stock site: the base raises it from its own shims at 0x4001e606. The USB interrupt: short, no firmware call that can block. Every handler runs; the answers are ignored. Retire your own endpoint's completions here (write its ENDPTCOMPLETE bit back) before stock's completion loop sees them, and take a control data stage you primed yourself. Leave endpoints 0 to 2 and their completions alone. d2-d7/a2-a6 must be kept. */ +#define MODWERK_EV_USB_ISR 55 +typedef unsigned modwerk_ev_usb_isr(void); + +/* ev_usb_bus_end (raised by the base): a USB bus reset or the end of the USB session (the cable pulled, or the base's own reconnect after ot_usb_functions changed), before the base ends USB MIDI's session and stock resets or stops the controller; no stock site: the base raises it from its own shims at 0x4001e91c and 0x4001e952. The USB interrupt: short, no firmware call that can block. Every handler runs; the answers are ignored. Put your interfaces back to alternate setting 0 and stop queueing on your endpoint: the host configures the unit afresh afterwards. d2-d7/a2-a6 must be kept. */ +#define MODWERK_EV_USB_BUS_END 56 +typedef unsigned modwerk_ev_usb_bus_end(void); + +/* ev_usb_control (raised by the base): a control request that neither stock nor the base's vendor interface answers, before stock stalls it; no stock site: the base raises it from its own shim at stock's unknown-request tail (0x4001de64). The USB interrupt: short, no firmware call that can block. Read the SETUP packet at 0x46c8ce08. Return 0 when the request is not yours: with every answer 0 stock stalls it, as before. Otherwise answer it yourself before you return (stock's usb_ep0_send for an IN reply, a data stage you prime and finish in ev_usb_isr, or a stall of both directions) and return nonzero: the base then leaves through stock's done path and neither sends nor stalls. Claim only requests addressed to your own interfaces and entities: every handler runs, so two that answered one request would both act. d2-d7/a2-a6 must be kept. */ +#define MODWERK_EV_USB_CONTROL 57 +typedef unsigned modwerk_ev_usb_control(void); + +/* ot_usb_functions (table, contribute {"to": "ot_usb_functions", "order", "data"}): the base builds the USB configuration descriptors a host reads: its own functions (mass storage, the vendor interface, USB MIDI), then the contributed function's interfaces. The loader's switch (masked) and the sys task's tick; the record is copied, never called. Contribute one struct modwerk_usb_function. The base checks the whole record at admission (ABI and size, 1-4 interfaces, endpoint 3 alone, four blocks of `length` bytes inside the package's initialized image, the configuration within its 512-byte slot) and refuses the package otherwise; a base that links USB Audio in (a development twin) refuses every function. When the table changes the host has to read the descriptors again, so the base reconnects by itself: it waits until the control endpoint is idle, takes the unit off the bus for half a second, rewrites the four configurations and comes back. A sync or trial stays open across that reconnect (the base's own disconnect undoes nothing), and the host has 20 s to speak to the vendor interface again before it counts as unplugged. A function that leaves has its endpoint flushed and disabled at the switch, before its memory can be reused. Its interrupt, bus-end and class-request work goes through ev_usb_isr, ev_usb_bus_end and ev_usb_control. SET_INTERFACE, GET_INTERFACE and the audio frame are not hooks yet: a function patches those stock sites itself, as its own. */ +#define MODWERK_OT_USB_FUNCTIONS 58 +struct modwerk_usb_function { + uint32_t abi, bytes; /* MODWERK_USB_FUNCTION_ABI, sizeof this record (32 on target) */ + uint16_t interfaces; /* the interfaces it adds, numbered from MODWERK_USB_FUNCTION_INTERFACE: 1-4 */ + uint16_t length; /* bytes of each of the four descriptor blocks below */ + uint32_t endpoints; /* its endpoints as ENDPTFLUSH bits (bit n: OUT n, bit 16 + n: IN n): only endpoint MODWERK_USB_FUNCTION_ENDPOINT */ + const uint8_t *fs, *hs, *os_fs, *os_hs; /* its interface association and interfaces as they follow the base's own: in the configuration at full and at high speed, and in OTHER_SPEED_CONFIGURATION describing full and high speed */ +}; +#define MODWERK_USB_FUNCTION_ABI 1u +#define MODWERK_USB_FUNCTION_INTERFACE 4u /* the base's own: 0 mass storage, 1 its vendor interface, 2 and 3 USB MIDI */ +#define MODWERK_USB_FUNCTION_ENDPOINT 3u /* 0 control, 1 mass storage, 2 USB MIDI */ + #endif diff --git a/sdk/machines/octatrack/module-adapters/base_usb_functions.py b/sdk/machines/octatrack/module-adapters/base_usb_functions.py index f9a2291ef1..d57d849452 100644 --- a/sdk/machines/octatrack/module-adapters/base_usb_functions.py +++ b/sdk/machines/octatrack/module-adapters/base_usb_functions.py @@ -251,9 +251,21 @@ def audio_storage_source(text): return text.replace(dma, ' .bss\n' + dma) -def assembly(base, descriptors, audio=None): +SLOT = 512 # a configuration with room for the function a module adds behind it (elekloader/usb_function.c) + + +def header(base, descriptors, audio=None): + """What usb_function.c knows of the base's own configuration: its bytes and its interfaces.""" + blob = configuration(base, descriptors, True, False, audio) + return ('#define MODWERK_USB_CFG_BYTES %du\n#define MODWERK_USB_CFG_INTERFACES %du\n' % (len(blob), blob[4])) + + +def assembly(base, descriptors, audio=None, slots=False): """One ISR chain and page-contained tables, including a 259-byte config. + With `slots`, each configuration sits at the start of a 512-byte slot and the two clamps read the live + length from modwerk_cfg_len: usb_function.c rewrites both when a module's USB function comes or goes. + Audio -> bounded MIDI receive -> MIDI transmit -> vendor EP0 poll -> stock. Without audio the same chain starts at MIDI receive. Each configuration fits wholly in a page; alignment grows with its length rather than using @@ -277,7 +289,22 @@ def assembly(base, descriptors, audio=None): else: tails.update(reset_tail='jmp usbmidi_rx_reset_shim', session_end_tail='jmp usbmidi_rx_sessend_shim') - text = base.ASSEMBLY.format(length=lengths.pop(), **tails) + length = lengths.pop() + text = base.ASSEMBLY.format(length=length, **tails) + if slots: + if length > SLOT: + raise ValueError('A USB configuration outgrows its slot.') + for constant, live in ((' .set modwerk_cfg_len, %d\n' % length, ''), + (' cmpil #modwerk_cfg_len,%d1', ' cmpl modwerk_cfg_len,%d1'), + (' movel #modwerk_cfg_len,%d1', ' movel modwerk_cfg_len,%d1')): + if text.count(constant) != (2 if live else 1): + raise ValueError('The base USB clamp template changed.') + text = text.replace(constant, live) + text += ' .balign 4\n .global modwerk_cfg_len\nmodwerk_cfg_len:\n .long %d\n' % length + for name, blob in blobs.items(): + text += ' .balign %d\n .global %s\n%s:\n .byte %s\n .space %d\n' % ( + SLOT, name, name, ', '.join('0x%02x' % byte for byte in blob), SLOT - len(blob)) + blobs = {} blobs.update(modwerk_device=base.device(True), modwerk_bos=base.bos(), modwerk_msos20=base.msos20()) for name, blob in blobs.items(): alignment = max(64, 1 << (len(blob) - 1).bit_length()) diff --git a/sdk/machines/octatrack/module-adapters/machine_admission_runtime.c b/sdk/machines/octatrack/module-adapters/machine_admission_runtime.c index c79e8a1880..a484cde924 100644 --- a/sdk/machines/octatrack/module-adapters/machine_admission_runtime.c +++ b/sdk/machines/octatrack/module-adapters/machine_admission_runtime.c @@ -5,10 +5,29 @@ #include "table_admission.h" #include "machine_contributors.h" #include "sample_editor_actions.h" +#if RUNTIME_SITE_EVENTS +#include "modwerk_events.h" +#endif +/* A module's USB function (ot_usb_functions): the base that puts it into its configuration checks the record + * (elekloader/usb_function.c); any other base refuses the package, whose own USB sites would have no owner. */ +static int usb_function_admission(const struct runtime_dsp *d,unsigned operation) +{ +#if RUNTIME_SITE_EVENTS && defined(MODWERK_USB_FUNCTIONS) + int modwerk_usb_function_admit(const struct runtime_dsp *,unsigned); + return modwerk_usb_function_admit(d,operation); +#elif RUNTIME_SITE_EVENTS && defined(MODWERK_OT_USB_FUNCTIONS) + (void)operation; + return d && d->present && d->hook_offset[MODWERK_OT_USB_FUNCTIONS]!=RUNTIME_NONE?RUNTIME_CONFLICT:RUNTIME_OK; +#else + (void)d;(void)operation;return RUNTIME_OK; +#endif +} int modwerk_machine_image_validate(const struct runtime_dsp *d) { /* Pure format/address validation. Do not run SWITCH admission here: it can retire saved Part signatures. */ - return machine_contributor_validate(d,RUNTIME_METADATA_SWITCH); + int why=machine_contributor_validate(d,RUNTIME_METADATA_SWITCH); + if(!why) why=usb_function_admission(d,RUNTIME_METADATA_SWITCH); + return why; } static int board_read(void *context,uint32_t address,void *out,uint32_t length) { @@ -49,6 +68,10 @@ int modwerk_machine_metadata_admit(const struct runtime_dsp *from,struct runtime int why=mw_sample_action_admission(from,to,operation); if(why) return why; } + { + int why=usb_function_admission(to,operation); + if(why) return why; + } /* Also examines START-only and truncated declarations: they must not bypass admission just because they have * no complete ot_machines record. No stock roots/MMIO are read for this format and same-package check. */ { diff --git a/sdk/machines/octatrack/site-events.json b/sdk/machines/octatrack/site-events.json index d8d905b645..212ac207c1 100644 --- a/sdk/machines/octatrack/site-events.json +++ b/sdk/machines/octatrack/site-events.json @@ -292,6 +292,28 @@ "index": 54, "event": "ev_in_use", "kind": "call" + }, + { + "index": 55, + "event": "ev_usb_isr", + "kind": "raise" + }, + { + "index": 56, + "event": "ev_usb_bus_end", + "kind": "raise" + }, + { + "index": 57, + "event": "ev_usb_control", + "kind": "raise" + }, + { + "index": 58, + "event": "ot_usb_functions", + "kind": "table", + "room": 1, + "record": 32 } ] } diff --git a/sdk/tests/test_usb_function.py b/sdk/tests/test_usb_function.py new file mode 100644 index 0000000000..77007ff831 --- /dev/null +++ b/sdk/tests/test_usb_function.py @@ -0,0 +1,146 @@ +# SPDX-License-Identifier: GPL-3.0-or-later +"""The USB function a module adds to the Octatrack base's configuration (events.json ot_usb_functions, +elekloader/usb_function.c): the registry's entries, the base's configuration slots and live clamp length, and the +host check of admission and the reconnect. Host C runs with ASan/UBSan; no firmware, no stock bytes.""" +import importlib.util +import json +from pathlib import Path +import re +import shutil +import subprocess +import sys +import tempfile +import unittest + +ROOT = Path(__file__).resolve().parents[2] +OT = ROOT / 'sdk/machines/octatrack' +sys.path.insert(0, str(OT / 'module-adapters')) +sys.path.insert(0, str(OT)) +import base_usb_functions as functions # noqa: E402 +import events # noqa: E402 +from host_flags import SANITIZE # noqa: E402 + +HOOKS = ('ev_usb_isr', 'ev_usb_bus_end', 'ev_usb_control') + + +def load(name, relative): + spec = importlib.util.spec_from_file_location(name, ROOT / relative) + module = importlib.util.module_from_spec(spec) + spec.loader.exec_module(module) + return module + + +base = load('usb_function_base', 'sdk/machines/octatrack/elekloader/usb_base.py') +descriptors = load('usb_function_descriptors', 'sdk/octabam/platform/usb-midi/descriptors.py') + + +class UsbFunction(unittest.TestCase): + def test_admission_slots_and_reconnect_on_the_host(self): + cc = shutil.which('cc') + if not cc: + self.skipTest('no host C compiler') + with tempfile.TemporaryDirectory() as temp: + subprocess.run([cc, '-std=c99', '-Wall', '-Wextra', '-Werror', '-g', *SANITIZE, '-fno-sanitize-recover=all', + '-DMODWERK_RUNTIME_EVENTS', '-DRUNTIME_MODULES=128u', '-I', OT / 'module-adapters', + '-I', OT / 'elekloader', '-I', OT / 'include', '-I', ROOT / 'sdk/runtime/loader', + '-I', ROOT / 'sdk/runtime/upload', OT / 'elekloader/test_usb_function.c', '-o', temp + '/t'], + check=True, capture_output=True) + result = subprocess.run([temp + '/t'], capture_output=True, text=True) + self.assertEqual(result.returncode, 0, result.stdout + result.stderr) + + def test_the_base_raises_the_usb_hooks_and_no_package_gets_their_entry(self): + registry = events.load() + by_name = {e['event']: e for e in registry['events']} + for name in HOOKS: + self.assertEqual((by_name[name]['raisedBy'], by_name[name]['site'], by_name[name]['kind']), ('base', None, 'call')) + self.assertNotIn(name, events.raised(registry)) # runtime.json "raise" cannot name it + header = events.loader(registry) + raises = re.search(r'#define RUNTIME_SITE_EVENT_RAISES \{ (.*) \}', header).group(1).split(', ') + for name in HOOKS: + self.assertEqual(raises[by_name[name]['index'] - events.FIRST], '0') + self.assertIn('modwerk_raise_%s:' % name, events.asm(registry)) + self.assertEqual(raises[by_name['ev_mute_keep']['index'] - events.FIRST], '(uintptr_t)modwerk_raise_ev_mute_keep') + kinds = {row['event']: row for row in json.loads(events.browser(registry))['events']} + self.assertEqual([kinds[name]['kind'] for name in HOOKS], ['call'] * 3) # subscriptions only, on the site too + self.assertEqual(kinds['ev_mute_keep']['kind'], 'raise') + self.assertEqual({k: kinds['ot_usb_functions'][k] for k in ('kind', 'room', 'record')}, + dict(kind='table', room=1, record=32)) + with self.assertRaisesRegex(ValueError, 'raisedBy'): + bad = json.loads(events.REGISTRY.read_text()) + next(e for e in bad['events'] if e['event'] == 'ev_usb_isr')['raisedBy'] = 'module' + with tempfile.TemporaryDirectory() as temp: + (Path(temp) / 'events.json').write_text(json.dumps(bad)) + events.load(Path(temp) / 'events.json') + + def test_the_record_the_sdk_declares_is_the_one_admission_reads(self): + text = events.sdk(events.load()) + struct = text.split('struct modwerk_usb_function {', 1)[1].split('};', 1)[0] + self.assertEqual(re.findall(r'^\s*(?:const )?(\w+) ', struct, re.M), ['uint32_t', 'uint16_t', 'uint16_t', 'uint32_t', 'uint8_t']) + self.assertEqual(4 + 4 + 2 + 2 + 4 + 4 * 4, 32) # abi, bytes; interfaces; length; endpoints; fs, hs, os_fs, os_hs + source = (OT / 'elekloader/usb_function.c').read_text() + self.assertIn('#define UF_RECORD 32u', source) + self.assertIn('#define MODWERK_USB_FUNCTION_INTERFACE 4u', text) + self.assertIn('#define MODWERK_USB_FUNCTION_ENDPOINT 3u', text) + # The base's own composite ends at interface 3 and uses endpoints 1 and 2: the function's numbers are free. + blob = functions.configuration(base, descriptors, True) + numbers = {record[2] for record in functions.records(blob) if record[1] == 4} + endpoints = {record[2] & 15 for record in functions.records(blob) if record[1] == 5} + self.assertEqual((numbers, endpoints), ({0, 1, 2, 3}, {1, 2})) + + def test_slots_hold_each_configuration_and_the_clamps_read_the_live_length(self): + plain = functions.assembly(base, descriptors) + self.assertEqual(plain, functions.assembly(base, descriptors, slots=False)) + self.assertIn('.set modwerk_cfg_len, ', plain) + text = functions.assembly(base, descriptors, slots=True) + length = len(functions.configuration(base, descriptors, True)) + self.assertNotIn('#modwerk_cfg_len', text) + self.assertNotIn('.set modwerk_cfg_len', text) + self.assertEqual(text.count(' cmpl modwerk_cfg_len,%d1\n blss 1f\n movel modwerk_cfg_len,%d1\n'), 2) + self.assertIn(' .balign 4\n .global modwerk_cfg_len\nmodwerk_cfg_len:\n .long %d\n' % length, text) + for name in ('modwerk_cfg_fs', 'modwerk_cfg_hs', 'modwerk_cfg_os_fs', 'modwerk_cfg_os_hs'): + slot = text.split(' .balign 512\n .global %s\n%s:\n' % (name, name), 1)[1].split(' .balign', 1)[0] + self.assertEqual(slot.count('0x'), length) + self.assertTrue(slot.endswith(' .space %d\n' % (512 - length))) + self.assertEqual(text.count('.balign 512\n'), 4) + self.assertIn(' .global modwerk_device\n', text) # the other tables stay as they were + self.assertEqual(functions.header(base, descriptors), + '#define MODWERK_USB_CFG_BYTES %du\n#define MODWERK_USB_CFG_INTERFACES 4u\n' % length) + audio = 'USB AUDIO OUT TRACKS MAIN CUE' # a development twin links USB Audio in: its slot holds that function + self.assertEqual(functions.header(base, descriptors, audio), + '#define MODWERK_USB_CFG_BYTES 259u\n#define MODWERK_USB_CFG_INTERFACES 6u\n') + self.assertIn(' .space %d\n' % (512 - 259), functions.assembly(base, descriptors, audio, slots=True)) + + def test_slots_assemble_with_the_live_clamp(self): + if not shutil.which('m68k-elf-as'): + self.skipTest('no m68k-elf-as') + with tempfile.TemporaryDirectory() as temp: + source, output = Path(temp) / 'usb_base.s', Path(temp) / 'usb_base.o' + source.write_text(functions.assembly(base, descriptors, slots=True)) + subprocess.run(['m68k-elf-as', '-mcpu=54455', '-o', str(output), str(source)], check=True) + symbols = {name: (int(value, 16), kind) for value, kind, name in ( + line.split() for line in subprocess.check_output(['m68k-elf-nm', str(output)], text=True).splitlines() + if len(line.split()) == 3)} + slots = [symbols[name][0] for name in ('modwerk_cfg_fs', 'modwerk_cfg_hs', 'modwerk_cfg_os_fs', 'modwerk_cfg_os_hs')] + self.assertTrue(all(at % 512 == 0 for at in slots)) + self.assertEqual(sorted(b - a for a, b in zip(slots, slots[1:])), [512, 512, 512]) + self.assertIn('modwerk_cfg_len', symbols) + + def test_the_base_wires_the_function_in_only_with_the_composite_configuration(self): + build = (OT / 'elekloader/build_core.py').read_text() + self.assertIn("usb_function_slots = bool(usb_functions) and not usb_profiles and args.site_events", build) + self.assertIn("recipe['cflags'] += ['-DMODWERK_USB_FUNCTIONS'] + (['-DMODWERK_USB_AUDIO_LINKED'] if args.usb_audio else [])", build) + ep0 = (OT / 'elekloader/ep0.c').read_text() + for call in ('modwerk_usb_function_isr();', 'modwerk_usb_function_bus_end();', 'modwerk_usb_function_control()', + 'if (modwerk_usb_reconnecting()) return;', 'modwerk_usb_function_host();', 'modwerk_usb_function_tick(!receiving)'): + self.assertEqual(ep0.count(call), 1, call) + # The bus reset of the base's own reconnect returns before the transport's reset, which undoes an open trial. + reset = ep0.split('void modwerk_ep0_bus_reset(void)\n{', 1)[1].split('\n}\n', 1)[0] + self.assertLess(reset.index('modwerk_usb_function_bus_end();'), reset.index('if (modwerk_usb_reconnecting()) return;')) + self.assertLess(reset.index('if (modwerk_usb_reconnecting()) return;'), reset.index('mv_reset(t)')) + admission = (OT / 'module-adapters/machine_admission_runtime.c').read_text() + self.assertEqual(admission.count('usb_function_admission('), 3) # its definition, PREPARE/SWITCH, the image check + self.assertIn('modwerk_usb_functions_changed();', (OT / 'elekloader/machine_registry.c').read_text()) + + +if __name__ == '__main__': + unittest.main() From 778ab25012d3df1f99ec3a3a7c0d9384b286116d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Thu, 12 Nov 2026 11:59:41 +0100 Subject: [PATCH 167/415] Octatrack base: the base walks its USB hooks' rows itself; a reconnect ends after the host's bus reset Found in the emulator with a package that contributes a function: - a vendor request before the host's bus reset ended the reconnect too early, so that reset undid the open trial. The reconnect is now over when the host has reset the bus and then reached the vendor interface. - the hooks ran through the loader's dispatch code from the USB interrupt, which left its addresses in stack memory on every transfer; the loader then refused the rollback for good. The base now walks the three rows in usb_function.c (no modwerk_raise_ entry exists for a hook the base raises). - a base with USB Audio linked in did not compile (unused helpers). Co-Authored-By: Claude Fable 5.2 --- .../octatrack/elekloader/test_usb_function.c | 70 ++++++++++++++----- .../octatrack/elekloader/usb_function.c | 51 ++++++++++---- .../octatrack/elekloader/usb_function.h | 4 +- sdk/tests/test_usb_function.py | 27 ++++--- 4 files changed, 109 insertions(+), 43 deletions(-) diff --git a/sdk/machines/octatrack/elekloader/test_usb_function.c b/sdk/machines/octatrack/elekloader/test_usb_function.c index d0c4a643ac..b75c354234 100644 --- a/sdk/machines/octatrack/elekloader/test_usb_function.c +++ b/sdk/machines/octatrack/elekloader/test_usb_function.c @@ -3,8 +3,9 @@ * admission takes a whole, in-range record and refuses every other; a function that arrives is put behind the base's * own configuration only while the unit is off the bus, after the grace second and an idle control endpoint; one * that leaves has its endpoint flushed and disabled at the switch; USB DISK MODE holds a reconnect back for as long - * as it is open; a control endpoint that never idles is not waited for past ten seconds; a host that does not come - * back counts as unplugged once. No stock byte is used. */ + * as it is open; a control endpoint that never idles is not waited for past ten seconds; the reconnect is over + * when the host has reset the bus and reached the vendor interface, and a host that does not counts as unplugged + * once. No stock byte is used. */ #define MW_HOST #include #include @@ -37,25 +38,31 @@ static volatile uint32_t *host_reg(uint32_t a) #include "loader.h" #include "modwerk_events.h" -const unsigned char modwerk_raise_ev_usb_isr[1], modwerk_raise_ev_usb_bus_end[1], modwerk_raise_ev_usb_control[1]; -static unsigned isrs, bus_ends, controls, answer; -static unsigned host_raise(const unsigned char *entry) +/* The hooks' rows hold handlers; here, numbers the walk hands to host_call. */ +enum { H_ISR = 1, H_BUS_END, H_CONTROL, H_CONTROL_OTHER }; +static unsigned isrs, bus_ends, controls, others, answer; +static unsigned host_call(uintptr_t handler) { - if (entry == modwerk_raise_ev_usb_isr) return ++isrs, 0u; - if (entry == modwerk_raise_ev_usb_bus_end) return ++bus_ends, 0u; - CHECK(entry == modwerk_raise_ev_usb_control); - return ++controls, answer; + switch (handler) { + case H_ISR: return ++isrs, 0u; + case H_BUS_END: return ++bus_ends, 0u; + case H_CONTROL: return ++controls, answer; + case H_CONTROL_OTHER: return ++others, 4u; + } + fprintf(stderr, "uncalled %#lx\n", (unsigned long)handler); exit(2); } -#define UF_RAISE(entry) host_raise(entry) +#define UF_CALL(handler) host_call(handler) static int locked, usb_disk; uint32_t modwerk_machine_lock(void) { CHECK(!locked); locked = 1; return 4; } void modwerk_machine_unlock(uint32_t s) { CHECK(locked && s == 4); locked = 0; } int modwerk_machine_usb_disk(void) { return usb_disk; } uint8_t modwerk_cfg_fs[512], modwerk_cfg_hs[512], modwerk_cfg_os_fs[512], modwerk_cfg_os_hs[512]; volatile uint32_t modwerk_cfg_len = MODWERK_USB_CFG_BYTES; -static uintptr_t volatile function_row[2]; +static uintptr_t volatile function_row[2], isr_row[2] = {H_ISR}, bus_end_row[2] = {H_BUS_END}, control_row[3] = {H_CONTROL}; #define modwerk_runtime_event_row host_rows -static uintptr_t volatile *const host_rows[RUNTIME_SITE_EVENTS] = {[MODWERK_OT_USB_FUNCTIONS - RUNTIME_EVENTS] = function_row}; +static uintptr_t volatile *const host_rows[RUNTIME_SITE_EVENTS] = { + [MODWERK_OT_USB_FUNCTIONS - RUNTIME_EVENTS] = function_row, [MODWERK_EV_USB_ISR - RUNTIME_EVENTS] = isr_row, + [MODWERK_EV_USB_BUS_END - RUNTIME_EVENTS] = bus_end_row, [MODWERK_EV_USB_CONTROL - RUNTIME_EVENTS] = control_row}; #include "usb_function.c" #undef modwerk_runtime_event_row @@ -107,6 +114,12 @@ static void admission(void) d = candidate(), d.present = 0; CHECK(modwerk_usb_function_admit(&d, RUNTIME_METADATA_PREPARE) == RUNTIME_OK); /* a removal */ package(0); +#ifdef MODWERK_USB_AUDIO_LINKED /* a base that links USB Audio in: its configuration has no room for a function */ + CHECK(admit(RUNTIME_METADATA_PREPARE) == RUNTIME_CONFLICT); + package(0x40300000u); + CHECK(admit(RUNTIME_METADATA_SWITCH) == RUNTIME_CONFLICT); + return; +#endif CHECK(admit(RUNTIME_METADATA_PREPARE) == RUNTIME_OK); CHECK(admit(RUNTIME_METADATA_SWITCH) == RUNTIME_MALFORMED); /* offsets are not addresses once it is relocated */ CHECK(admit(0) == RUNTIME_MALFORMED); @@ -165,12 +178,19 @@ static void describes(int with) if (with) CHECK(!memcmp(slot[k] + MODWERK_USB_CFG_BYTES, other[k], BLOCK)); } } +/* The host is back: its bus reset, then a request on the vendor interface. */ +static void back(void) { modwerk_usb_function_bus_end(); modwerk_usb_function_host(); } static void arrive(void) { function_row[0] = (uintptr_t)&function; modwerk_usb_functions_changed(); } static void leave(void) { function_row[0] = 0; modwerk_usb_functions_changed(); } int main(void) { admission(); +#ifdef MODWERK_USB_AUDIO_LINKED + if (failures) return 1; + puts("usb function: a base with USB Audio linked in refuses every function"); + return 0; +#endif for (unsigned k = 0; k < 4u; ++k) { memcpy(other[k], block, BLOCK); other[k][BLOCK - 3u] = (uint8_t)(0x40u + k); } function = (struct modwerk_usb_function){MODWERK_USB_FUNCTION_ABI, 32u, 2u, BLOCK, 0x00080000u, other[0], other[1], other[2], other[3]}; @@ -200,8 +220,12 @@ int main(void) CHECK(!ticks(30, 1) && !attached()); /* half a second off the bus */ CHECK(!ticks(1, 1) && attached() && status(0) == 3u && status(3) == 1u && modwerk_usb_reconnecting()); CHECK(!ticks(500, 1) && modwerk_usb_reconnecting()); /* the host enumerates and the site opens the unit again */ - modwerk_usb_function_host(); - CHECK(!modwerk_usb_reconnecting() && !status(0) && !ticks(5000, 1) && attached() && bus_ends == 1u && !status(4)); + modwerk_usb_function_host(); /* a request before the host reset the bus: not back yet */ + CHECK(modwerk_usb_reconnecting() && status(0) == 3u); + back(); + CHECK(!modwerk_usb_reconnecting() && !status(0) && !ticks(5000, 1) && attached() && bus_ends == 2u && !status(4)); + modwerk_usb_function_bus_end(); /* a reset once it is settled is the host's own */ + CHECK(!modwerk_usb_reconnecting() && bus_ends == 3u); modwerk_usb_functions_changed(); /* another module's table: the function stayed */ CHECK(!status(0) && !UF_REG(FLUSH)); @@ -212,9 +236,10 @@ int main(void) CHECK(status(0) == 1u && status(1) == 1u && !status(2)); /* the host still sees it until the reconnect */ describes(1); UF_REG(FLUSH) = 0, UF_REG(COMPLETE) = 0; - CHECK(!ticks(62, 1) && !attached() && bus_ends == 2u); + CHECK(!ticks(62, 1) && !attached() && bus_ends == 4u); describes(0); CHECK(!status(1) && !ticks(31, 1) && attached() && status(3) == 2u); + modwerk_usb_function_bus_end(); /* the host reset the bus and never spoke to the base */ CHECK(!ticks(1199, 1) && modwerk_usb_reconnecting()); CHECK(ticks(1, 1) == 1u && !modwerk_usb_reconnecting() && !status(0)); CHECK(!ticks(5000, 1)); @@ -223,7 +248,7 @@ int main(void) arrive(), ticks(30, 1), leave(); CHECK(UF_REG(FLUSH) == 0x00080000u); UF_REG(FLUSH) = 0, UF_REG(COMPLETE) = 0; - CHECK(!ticks(5000, 1) && attached() && status(3) == 2u && !status(0) && bus_ends == 2u); + CHECK(!ticks(5000, 1) && attached() && status(3) == 2u && !status(0) && bus_ends == 5u); describes(0); /* USB DISK MODE holds a reconnect back for as long as it is open. */ @@ -233,7 +258,8 @@ int main(void) CHECK(!ticks(1, 1) && !attached()); describes(1); CHECK(!ticks(31, 1) && attached()); - modwerk_usb_function_host(); + back(); + CHECK(!modwerk_usb_reconnecting()); /* A replaced module (another image) is a function that left and one that arrived: retired, then a reconnect. */ static struct modwerk_usb_function update; @@ -249,13 +275,19 @@ int main(void) describes(1); stock_awaited = 0; CHECK(!ticks(31, 1) && attached() && status(3) == 4u); - modwerk_usb_function_host(); + back(); + CHECK(!modwerk_usb_reconnecting()); /* The interrupt's hooks pass through; a function's answer to a class request reaches ep0.c. */ modwerk_usb_function_isr(), modwerk_usb_function_bus_end(); - CHECK(isrs == 1u && bus_ends == 5u && !modwerk_usb_function_control() && controls == 1u); + CHECK(isrs == 1u && bus_ends == 10u && !modwerk_usb_function_control() && controls == 1u); answer = 1u; CHECK(modwerk_usb_function_control() == 1u && !locked); + control_row[1] = H_CONTROL_OTHER; /* every handler runs, the answers OR'd */ + CHECK(modwerk_usb_function_control() == 5u && controls == 3u && others == 1u); + isr_row[0] = 0; /* nobody subscribes: nothing is called */ + modwerk_usb_function_isr(); + CHECK(isrs == 1u); if (failures) return 1; puts("usb function: admission, slots, reconnect and its holds pass"); return 0; diff --git a/sdk/machines/octatrack/elekloader/usb_function.c b/sdk/machines/octatrack/elekloader/usb_function.c index d133b7e775..c66f32b6aa 100644 --- a/sdk/machines/octatrack/elekloader/usb_function.c +++ b/sdk/machines/octatrack/elekloader/usb_function.c @@ -13,8 +13,16 @@ * vendor data stage is open and stock's USB DISK MODE is closed. Then ev_usb_bus_end, USBCMD.RS off * and, at once, the slots and their length rewritten: nothing reads them off the bus * OFF (tick) half a second off the bus, then RS on again - * BACK (tick) the host enumerates. Its bus reset is the base's own disconnect: ep0.c undoes no open sync or - * trial for it, and the host has 20 s to reach the vendor interface before it counts as unplugged + * BACK (tick) the host resets the bus and enumerates. That reset is the base's own disconnect: ep0.c undoes + * no open sync or trial for it. The reconnect is over when the host, after a reset, reaches the + * vendor interface; without that for 20 s it counts as unplugged + * + * The base raises ev_usb_isr, ev_usb_bus_end and ev_usb_control by walking their rows here, never through the + * loader's dispatch code (runtime_events.s): the loader holds a switch back while any task's stack holds an address + * inside that code, and the USB interrupt runs on whichever task it interrupts, so return addresses from there + * would stay in stack memory and refuse every later removal (seen in the emulator: a rollback refused for good). The + * walk is safe without that rule: a switch rewrites the rows masked and under the stable lock, which holds the USB + * interrupt off, so no walk is ever paused part way through a row. * * A control endpoint that is not idle after ten seconds is not waited for: a pulled cable ends a transfer the same * way, and stock's bus reset clears it. The descriptors are copied into the slots; nothing here keeps a pointer @@ -31,7 +39,7 @@ #define UF_REG(a) (*(volatile uint32_t *)(uintptr_t)(a)) #define UF_UNCACHED(p) ((volatile uint8_t *)((uintptr_t)(p) + 0x08000000u)) #define UF_IMAGE_ADDRESS(p) ((uint32_t)(uintptr_t)(p)) -#define UF_RAISE(entry) (((unsigned (*)(void))(uintptr_t)(entry))()) +#define UF_CALL(handler) (((unsigned (*)(void))(handler))()) #endif int modwerk_machine_usb_disk(void); /* runtime.c: stock's USB DISK MODE is open */ @@ -45,6 +53,11 @@ int modwerk_machine_usb_disk(void); /* runtime.c: stock's USB DISK MODE is open #define UF_EP0_STATE 0x460bb3ecu /* stock's control transfer state: 11 idle */ #define UF_EP0_AWAITED 0x460bb3f4u /* stock waits for an OUT stage */ +#ifdef MODWERK_USB_AUDIO_LINKED /* build_core.py: this base links USB Audio in (a development twin) */ +#define UF_LINKED 1 +#else +#define UF_LINKED 0 +#endif #define UF_TABLE (MODWERK_OT_USB_FUNCTIONS - RUNTIME_EVENTS) #define UF_RECORD 32u #define UF_SLOT 512u @@ -68,8 +81,18 @@ static volatile uint32_t row_serial; /* 0 for none; a new number for every fu static volatile uint8_t dirty; static uint32_t serials, live_serial; /* live: the function the slots describe */ static uint8_t state, reconnects, forced; +static volatile uint8_t reset_seen; /* BACK: the host has reset the bus since the unit came back */ static uint16_t timer, waited; +/* Every handler of a hook the base raises, in the row's order (lower first, then module id); their answers OR'd. + * From the USB interrupt, or with it held off. */ +static unsigned uf_raise(unsigned hook) +{ + unsigned answer = 0; + for (uintptr_t volatile *row = modwerk_runtime_event_row[hook - RUNTIME_EVENTS]; *row; ++row) answer |= UF_CALL(*row); + return answer; +} + static uint32_t uf_word(const uint8_t *p) { return (uint32_t)p[0] << 24 | (uint32_t)p[1] << 16 | (uint32_t)p[2] << 8 | p[3]; } static unsigned uf_half(const uint8_t *p) { return (unsigned)p[0] << 8 | p[1]; } @@ -101,9 +124,7 @@ int modwerk_usb_function_admit(const struct runtime_dsp *d, unsigned operation) if (!d || !d->present) return RUNTIME_OK; uint32_t at = d->hook_offset[MODWERK_OT_USB_FUNCTIONS]; if (at == RUNTIME_NONE) return RUNTIME_OK; -#ifdef MODWERK_USB_AUDIO_LINKED - return RUNTIME_CONFLICT; /* this base's configuration already holds USB Audio, on the same interfaces and endpoint */ -#else + if (UF_LINKED) return RUNTIME_CONFLICT; /* its configuration already holds USB Audio, on these interfaces and this endpoint */ if (operation != RUNTIME_METADATA_PREPARE && operation != RUNTIME_METADATA_SWITCH) return RUNTIME_MALFORMED; if (!d->image || (at & 1u) || at > d->image_bytes || d->image_bytes - at < UF_RECORD) return RUNTIME_MALFORMED; const uint8_t *record = d->image + at; @@ -120,7 +141,6 @@ int modwerk_usb_function_admit(const struct runtime_dsp *d, unsigned operation) !uf_block(d->image + (block - base), length, interfaces)) return RUNTIME_MALFORMED; } return RUNTIME_OK; -#endif } /* Masked. The bits clear when the controller has let go of the queue; an endpoint that is then disabled is not @@ -188,7 +208,7 @@ int modwerk_usb_function_tick(int quiet) if (row_serial == live_serial) state = UF_SETTLED; /* it came and went before the host saw it */ else if ((quiet && uf_idle()) || waited >= UF_PATIENCE) { if (!(quiet && uf_idle())) ++forced; - UF_RAISE(modwerk_raise_ev_usb_bus_end); + (void)uf_raise(MODWERK_EV_USB_BUS_END); UF_REG(UF_USBCMD) = UF_REG(UF_USBCMD) & ~1u; uf_compose(); state = UF_OFF, timer = UF_DOWN; @@ -201,6 +221,7 @@ int modwerk_usb_function_tick(int quiet) UF_REG(UF_USBCMD) = UF_REG(UF_USBCMD) | 1u; modwerk_machine_unlock(lock); ++reconnects; + reset_seen = 0; state = UF_BACK, timer = UF_LEASE; break; default: @@ -211,11 +232,17 @@ int modwerk_usb_function_tick(int quiet) return 0; } -void modwerk_usb_function_host(void) { if (state == UF_BACK) state = UF_SETTLED; } +/* A request on the vendor interface before the bus reset is not the host coming back: a later reset would + * otherwise count as a pulled cable and undo an open trial. */ +void modwerk_usb_function_host(void) { if (state == UF_BACK && reset_seen) state = UF_SETTLED; } int modwerk_usb_reconnecting(void) { return state == UF_OFF || state == UF_BACK; } -void modwerk_usb_function_isr(void) { (void)UF_RAISE(modwerk_raise_ev_usb_isr); } -void modwerk_usb_function_bus_end(void) { (void)UF_RAISE(modwerk_raise_ev_usb_bus_end); } -unsigned modwerk_usb_function_control(void) { return UF_RAISE(modwerk_raise_ev_usb_control); } +void modwerk_usb_function_isr(void) { (void)uf_raise(MODWERK_EV_USB_ISR); } +void modwerk_usb_function_bus_end(void) +{ + if (state == UF_BACK) reset_seen = 1; + (void)uf_raise(MODWERK_EV_USB_BUS_END); +} +unsigned modwerk_usb_function_control(void) { return uf_raise(MODWERK_EV_USB_CONTROL); } unsigned modwerk_usb_function_status(uint8_t *out) { diff --git a/sdk/machines/octatrack/elekloader/usb_function.h b/sdk/machines/octatrack/elekloader/usb_function.h index abfe7b68a6..6168150df0 100644 --- a/sdk/machines/octatrack/elekloader/usb_function.h +++ b/sdk/machines/octatrack/elekloader/usb_function.h @@ -13,7 +13,7 @@ void modwerk_usb_functions_changed(void); /* The sys task's 60 Hz tick (ep0.c). quiet: no vendor data stage is open. Returns 1 when the host did not come * back to the vendor interface in time after a reconnect: handle it as unplugged. */ int modwerk_usb_function_tick(int quiet); -/* The host spoke to the vendor interface (ep0.c): a reconnect is over. */ +/* The host spoke to the vendor interface (ep0.c): after its bus reset, a reconnect is over. */ void modwerk_usb_function_host(void); /* The unit is off the bus or just back by the base's own doing: the bus reset that follows undoes nothing, and * the host's silence does not count yet. */ @@ -23,7 +23,7 @@ void modwerk_usb_function_isr(void); void modwerk_usb_function_bus_end(void); unsigned modwerk_usb_function_control(void); /* USB FUNCTION (0xC1, bRequest 41, wValue 0, wLength 8): [0] 0 settled, 1 a reconnect is due, 2 off the bus, - * 3 back and waiting for the host; [1] 1 while the configuration the host reads holds a function; [2] 1 while a + * 3 back on the bus and waiting for the host to reset it and reach this interface; [1] 1 while the configuration the host reads holds a function; [2] 1 while a * module contributes one; [3] reconnects made, modulo 256; [4] of them, those that did not wait for an idle * control endpoint; [5]-[7] 0. */ #define MODWERK_USB_FUNCTION_STATUS_BYTES 8u diff --git a/sdk/tests/test_usb_function.py b/sdk/tests/test_usb_function.py index 77007ff831..c0f47d8bd4 100644 --- a/sdk/tests/test_usb_function.py +++ b/sdk/tests/test_usb_function.py @@ -39,14 +39,17 @@ def test_admission_slots_and_reconnect_on_the_host(self): cc = shutil.which('cc') if not cc: self.skipTest('no host C compiler') - with tempfile.TemporaryDirectory() as temp: - subprocess.run([cc, '-std=c99', '-Wall', '-Wextra', '-Werror', '-g', *SANITIZE, '-fno-sanitize-recover=all', - '-DMODWERK_RUNTIME_EVENTS', '-DRUNTIME_MODULES=128u', '-I', OT / 'module-adapters', - '-I', OT / 'elekloader', '-I', OT / 'include', '-I', ROOT / 'sdk/runtime/loader', - '-I', ROOT / 'sdk/runtime/upload', OT / 'elekloader/test_usb_function.c', '-o', temp + '/t'], - check=True, capture_output=True) - result = subprocess.run([temp + '/t'], capture_output=True, text=True) - self.assertEqual(result.returncode, 0, result.stdout + result.stderr) + # As the base builds it, and as a development twin does (build_core.py: USB Audio linked in). + for linked, says in (((), 'admission, slots, reconnect'), (('-DMODWERK_USB_AUDIO_LINKED',), 'refuses every function')): + with self.subTest(linked=bool(linked)), tempfile.TemporaryDirectory() as temp: + subprocess.run([cc, '-std=c99', '-Wall', '-Wextra', '-Werror', '-g', *SANITIZE, '-fno-sanitize-recover=all', + '-DMODWERK_RUNTIME_EVENTS', '-DRUNTIME_MODULES=128u', *linked, '-I', OT / 'module-adapters', + '-I', OT / 'elekloader', '-I', OT / 'include', '-I', ROOT / 'sdk/runtime/loader', + '-I', ROOT / 'sdk/runtime/upload', OT / 'elekloader/test_usb_function.c', '-o', temp + '/t'], + check=True, capture_output=True) + result = subprocess.run([temp + '/t'], capture_output=True, text=True) + self.assertEqual(result.returncode, 0, result.stdout + result.stderr) + self.assertIn(says, result.stdout) def test_the_base_raises_the_usb_hooks_and_no_package_gets_their_entry(self): registry = events.load() @@ -56,9 +59,13 @@ def test_the_base_raises_the_usb_hooks_and_no_package_gets_their_entry(self): self.assertNotIn(name, events.raised(registry)) # runtime.json "raise" cannot name it header = events.loader(registry) raises = re.search(r'#define RUNTIME_SITE_EVENT_RAISES \{ (.*) \}', header).group(1).split(', ') - for name in HOOKS: + for name in HOOKS: # the base walks their rows itself (usb_function.c): no entry in the dispatch code at all self.assertEqual(raises[by_name[name]['index'] - events.FIRST], '0') - self.assertIn('modwerk_raise_%s:' % name, events.asm(registry)) + self.assertNotIn('modwerk_raise_%s' % name, events.asm(registry) + header) + source = (OT / 'elekloader/usb_function.c').read_text() + self.assertNotIn('modwerk_raise_', source.split('*/', 1)[1]) + for name in HOOKS: + self.assertIn('uf_raise(MODWERK_%s)' % name.upper(), source) self.assertEqual(raises[by_name['ev_mute_keep']['index'] - events.FIRST], '(uintptr_t)modwerk_raise_ev_mute_keep') kinds = {row['event']: row for row in json.loads(events.browser(registry))['events']} self.assertEqual([kinds[name]['kind'] for name in HOOKS], ['call'] * 3) # subscriptions only, on the site too From 65ec52b937315a0d296f236db14939a27a6a5ed9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Thu, 12 Nov 2026 12:04:31 +0100 Subject: [PATCH 168/415] Octatrack base: an emulator verifier and fixture for a module's USB function; device usb scripts/verify-octatrack-usb-function.mjs installs examples/usb_function.c (two vendor interfaces, the three hooks) as a trial in ot_emu and checks the reconnect, the configuration at both speeds, that the trial stays open, the hooks, rollback, keep and removal; --linked checks that a base with USB Audio linked in refuses it. `npm run device -- usb` prints USB FUNCTION (request 41). The table's registry entry gets its empty site list, which a registry test reads. Co-Authored-By: Claude Fable 5.2 --- scripts/device.mjs | 16 +- scripts/verify-octatrack-usb-function.mjs | 140 ++++++++++++++++++ .../elekloader/examples/usb_function.c | 50 +++++++ sdk/machines/octatrack/events.json | 3 +- 4 files changed, 205 insertions(+), 4 deletions(-) create mode 100644 scripts/verify-octatrack-usb-function.mjs create mode 100644 sdk/machines/octatrack/elekloader/examples/usb_function.c diff --git a/scripts/device.mjs b/scripts/device.mjs index 2311b9dc84..9e9d8141e5 100644 --- a/scripts/device.mjs +++ b/scripts/device.mjs @@ -23,6 +23,7 @@ // npm run device -- do 'T5 FX2 FUNC+FX2 DOWN*4 YES w300 encC+3 ui stats' # a sequence in one connection // npm run device -- mem 0x80000ec4 16 # RAM, read-only (development bases) // npm run device -- state # stopped / playing, recording +// npm run device -- usb # a module's USB function and the base's own reconnect for it (USB FUNCTION, usb_function.h) // npm run device -- loader # the DSP loader's counters (--dsp-loader bases) // npm run device -- report # its full report (dsp.c modwerk_dsp_report, version 11: 78 words; miss0-2 the first refused packet (dsp_receiver.asm)) // npm run device -- stats # CPU and DSP load, DSP arena, delay buffers, module pool (status.c; the modal is CUE + PROJ) @@ -69,10 +70,10 @@ const { values, positionals: [command, file] } = parseArgs({ allowPositionals: t chunk: { type: 'string' }, // boot: bytes a frame (4096 for the flashed usbtest9 on macOS; docs/OCTATRACK_HARDWARE_TRAPS.md) } }) let seconds = Number(values.seconds) -if (!['serve', 'status', 'stats', 'try', 'set', 'recover', 'remove', 'lifecycle', 'boot', 'flash', 'key', 'screen', 'state', 'enc', 'fader', 'loader', 'report', 'probe', 'meter', 'missing', 'ui', 'do', 'mem'].includes(command) || (['try', 'set', 'boot', 'flash', 'key', 'enc', 'fader', 'probe', 'meter', 'do', 'mem'].includes(command) && !file) || - (['serve', 'status', 'stats', 'recover', 'lifecycle', 'screen', 'state', 'loader', 'report', 'missing', 'ui'].includes(command) && file) || +if (!['serve', 'status', 'stats', 'usb', 'try', 'set', 'recover', 'remove', 'lifecycle', 'boot', 'flash', 'key', 'screen', 'state', 'enc', 'fader', 'loader', 'report', 'probe', 'meter', 'missing', 'ui', 'do', 'mem'].includes(command) || (['try', 'set', 'boot', 'flash', 'key', 'enc', 'fader', 'probe', 'meter', 'do', 'mem'].includes(command) && !file) || + (['serve', 'status', 'stats', 'usb', 'recover', 'lifecycle', 'screen', 'state', 'loader', 'report', 'missing', 'ui'].includes(command) && file) || !Number.isInteger(seconds) || seconds < 1 || seconds > 3600 || (values.chunk && !(Number(values.chunk) >= 1 && Number(values.chunk) <= 4096 && Number.isInteger(Number(values.chunk))))) { - console.error('Usage: device.mjs status | stats | try MODULE.mwrm [--seconds 1-3600] [--accept] | set FILE,-FILE,… [--accept] | recover | remove [MODULE.mwrm] [--accept] | lifecycle | boot BUILD_DIR [--chunk 1-4096] | flash BUILD_DIR | key NAME[+NAME] | screen | state | loader | report | probe 0|1 | meter 0|1 | missing | ui | do SEQUENCE | mem ADDR LENGTH | enc A+3 | fader 0-255 [--socket PATH] [--emulator]') + console.error('Usage: device.mjs status | stats | usb | try MODULE.mwrm [--seconds 1-3600] [--accept] | set FILE,-FILE,… [--accept] | recover | remove [MODULE.mwrm] [--accept] | lifecycle | boot BUILD_DIR [--chunk 1-4096] | flash BUILD_DIR | key NAME[+NAME] | screen | state | loader | report | probe 0|1 | meter 0|1 | missing | ui | do SEQUENCE | mem ADDR LENGTH | enc A+3 | fader 0-255 [--socket PATH] [--emulator]') process.exit(2) } @@ -681,6 +682,15 @@ if (command === 'serve') { if (!['0', '1'].includes(file)) throw new Error('Use probe 0 or probe 1.') console.log('probe core', file, (await devIn(12, Number(file), 1))[0] ? 'sent' : 'not sent (busy or not idle)'); process.exit(0) } + if (command === 'usb') { // USB FUNCTION (0xC1, bRequest 41; usb_function.h): any base with ot_usb_functions, not only development ones + const reply = await unit.controlTransferIn({ requestType: 'vendor', recipient: 'interface', request: 41, value: 0, index }, 8) + if (reply.status !== 'ok' || reply.data?.byteLength !== 8) throw new Error('This base takes no USB function from a module (it has no ot_usb_functions).') + const [state, live, table, reconnects, forced] = new Uint8Array(reply.data.buffer, reply.data.byteOffset, 8) + console.log(`${['settled', 'a reconnect is due', 'off the bus', 'back on the bus, waiting for the host'][state] ?? 'state ' + state}; ` + + `the configuration the host read ${live ? "holds a module's function" : "is the base's own"}; ${table ? 'a module contributes one' : 'no module contributes one'}; ` + + `${reconnects} reconnects, ${forced} of them without an idle control endpoint`) + process.exit(0) + } if (command === 'state') { const [stopped, recording] = await devIn(6, 0, 2); console.log(stopped ? 'stopped' : 'playing', recording ? '(recording)' : ''); process.exit(0) } // A whole OS image takes the unit (and far longer the emulator) a while to hash. const session = await UploadSession.connect(transport, identity.base, { timeoutMs: command === 'flash' ? 180000 : command === 'boot' ? 60000 : 10000 }) diff --git a/scripts/verify-octatrack-usb-function.mjs b/scripts/verify-octatrack-usb-function.mjs new file mode 100644 index 0000000000..36bfcf7585 --- /dev/null +++ b/scripts/verify-octatrack-usb-function.mjs @@ -0,0 +1,140 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// A module's USB function on a private Octatrack base in ot_emu (events.json ot_usb_functions, usb_function.c). +// +// python3 -B sdk/runtime/loader/build.py sdk/machines/octatrack/elekloader/examples/usb_function.c -o /private/usb_function.mwrm \ +// --subscribe ot_usb_functions:usb_function:50 --subscribe ev_usb_isr:usb_function_isr:50 \ +// --subscribe ev_usb_bus_end:usb_function_bus_end:50 --subscribe ev_usb_control:usb_function_control:50 +// ot_emu --image BUILD/MAIN.raw --usb-host /tmp/ot-usb.sock --ms 900000 & # the adapted ot_emu, one run a check +// node scripts/verify-octatrack-usb-function.mjs /tmp/ot-usb.sock /private/usb_function.mwrm [--linked] +// +// On a base with USB MIDI alone: a trial of the package makes the base reconnect by itself; the host, which resets +// the bus and enumerates when the unit is back, reads the configuration with the function behind the base's own +// interfaces at both speeds; the trial is still open and the module still runs; the three hooks ran; a rollback takes +// the function out again with a second reconnect; then the same with a kept install and its removal. With --linked, +// on a base that links USB Audio in (a development twin): the package is refused and the configuration stays. +// Emulator evidence of the base's code only: no host driver, no WebUSB, no hardware, and ot_emu does not take the +// unit off the bus when the controller stops. +import assert from 'node:assert/strict' +import { readFileSync } from 'node:fs' +import { sha } from '../vendor/elekloader/kit/src/bytes.ts' +import { UploadSession } from '../src/engine/elekloader/upload-session.ts' +import { findVendorInterface, UsbVendorTransport } from '../src/engine/elekloader/upload-usb.ts' +import { diagnostics, removal } from '../src/dev/octatrack-usb-lifecycle.ts' +import { Bench, device } from './usb-bench.mjs' + +const [socket, file, mode] = process.argv.slice(2) +if (!socket || !file || (mode && mode !== '--linked')) throw new Error('Usage: verify-octatrack-usb-function.mjs BENCH-SOCKET usb_function.mwrm [--linked]') +const wait = ms => new Promise(resolve => setTimeout(resolve, ms)) +const bench = new Bench(socket) +await bench.ready() +const unit = device(bench) + +/** What a host does when a device appears: bus reset, address, both configurations, SET_CONFIGURATION. */ +async function enumerate() { + await bench.command('speed hs'); await bench.command('reset'); await wait(300) + assert.equal((await bench.controlIn(0x80, 6, 0x0100, 0, 18))?.length, 18) + await bench.transaction(async () => { await bench.setup(0x00, 5, 1, 0, 0); await bench.command('in 0 64') }) + const header = await bench.controlIn(0x80, 6, 0x0200, 0, 9) + const cfg = await bench.controlIn(0x80, 6, 0x0200, 0, header.readUInt16LE(2)) + const other = await bench.controlIn(0x80, 6, 0x0700, 0, 512) + await bench.transaction(async () => { await bench.setup(0x00, 9, 1, 0, 0); await bench.command('in 0 64') }) + const interfaces = [] + for (let i = 0; i + 2 <= cfg.length && cfg[i] >= 2; i += cfg[i]) if (cfg[i + 1] === 4) interfaces.push({ interfaceNumber: cfg[i + 2], alternates: [{ + interfaceClass: cfg[i + 5], interfaceSubclass: cfg[i + 6], interfaceProtocol: cfg[i + 7], endpoints: Array.from({ length: cfg[i + 4] }) }] }) + return { cfg, other, interfaces, total: header.readUInt16LE(2), count: header[4] } +} +const first = await enumerate(), index = findVendorInterface(first) +const transport = new UsbVendorTransport(unit, index, { pollMs: 5 }) +const identity = await transport.identify() +console.log(`base ${identity.base.slice(0, 16)}…: configuration ${first.total} bytes, ${first.count} interfaces`) +/** USB FUNCTION (usb_function.h): [state, in the configuration, in the table, reconnects, of them not waited for]. */ +const usb = async () => { const reply = await bench.controlIn(0xc1, 41, 0, index, 8); return reply ? [...reply] : null } +const SETTLED = [0, 0, 0, 0, 0, 0, 0, 0] +assert.deepEqual(await usb(), SETTLED) +const data = new Uint8Array(readFileSync(file)), pkg = { base: identity.base, data, sha256: sha(data) } + +if (mode === '--linked') { + assert.deepEqual([first.total, first.count], [259, 6]) // mass storage, vendor, USB MIDI and the twenty-channel USB Audio + const session = await UploadSession.connect(transport, identity.base, { timeoutMs: 10000 }) + let refused + try { await session.stage(pkg); await session.activate() } catch (error) { refused = error } + assert.equal(refused?.status?.result, 'rejected', 'the base refused the function') + await wait(3000) + assert.deepEqual(await usb(), SETTLED) + const now = await enumerate() + assert.equal(now.cfg.toString('hex'), first.cfg.toString('hex')) + console.log('A base with USB Audio linked in refuses a contributed USB function and keeps its configuration.') + process.exit(0) +} + +assert.equal(first.count, 4) +const diag = () => diagnostics(unit, index) +/** As device.mjs: a step the loader cannot switch yet answers unsafe or needs-recovery; a few seconds of retries. */ +async function stopping(step) { + for (const start = Date.now(); ; await wait(200)) { + try { return await step() } catch (error) { if (!['unsafe', 'needs-recovery'].includes(error.status?.result) || Date.now() - start > 5000) throw error } + } +} +/** Until USB FUNCTION is settled: the states it went through, and what the host read when the unit was back. */ +async function settle(label, live) { + const seen = [] + let now + for (const start = Date.now(); Date.now() - start < 120000; await wait(20)) { + const s = await usb(), key = JSON.stringify(s?.slice(0, 5)) + if (seen.at(-1) !== key) { seen.push(key); console.log(` ${label}: USB FUNCTION ${key}`) } + // Back on the bus: a host resets it and enumerates before any driver or page reaches the vendor interface. A + // request on the vendor interface alone must not end the reconnect: this loop's own requests come first here. + if (s?.[0] === 3 && !now) now = await enumerate() + if (s?.[0] === 0 && s[1] === live) { assert.ok(now, label + ': the unit went off the bus and came back'); return { seen, now } } + } + throw new Error(label + ': the reconnect did not settle') +} +// examples/usb_function.c: its block at high speed, and the same with full speed's packet size. +const HIGH = '080b0402ff550000' + '0904040000ff550100' + '0904050001ff550200' + '07058302000200' +const FULL = HIGH.replace('07058302000200', '07058302400000') +function describes(now, live) { + assert.equal(now.count, live ? 6 : 4) + assert.equal(now.total, first.total + (live ? HIGH.length / 2 : 0)) + assert.equal(now.cfg.subarray(5, first.total).toString('hex'), first.cfg.subarray(5).toString('hex')) // the base's own part + assert.equal(now.cfg.subarray(first.total).toString('hex'), live ? HIGH : '') + assert.equal(now.other.length, now.total) + assert.equal(now.other.subarray(first.total).toString('hex'), live ? FULL : '') +} + +// A trial across the reconnect. +let session = await UploadSession.connect(transport, identity.base, { timeoutMs: 10000 }) +await session.stage(pkg); await session.activate(); await session.startTrial() +let { seen, now } = await settle('trial', 1) +assert.deepEqual(seen.map(s => JSON.parse(s)[0]), [1, 2, 3, 0]) // due, off the bus, back, settled +describes(now, true) +let d = await diag() +assert.ok(d.active, 'the trial is still open and the module still runs after the base’s own reconnect') +assert.ok(d.value >>> 24 >= 1 && (d.value & 1) === 1, 'ev_usb_bus_end and ev_usb_isr ran') +// A class request to interface 4 is the function's, one to interface 5 is nobody's: both stall, one by its own hand. +assert.equal(await bench.controlIn(0xa1, 0x70, 0, 4, 1), null) +assert.equal(await bench.controlIn(0xa1, 0x70, 0, 5, 1), null) +await wait(300) +d = await diag() +assert.deepEqual([d.value >>> 16 & 0xff, d.value >>> 8 & 0xff], [1, 2], 'ev_usb_control: asked twice, answered once') +assert.equal((await transport.identify()).base, identity.base) // the control endpoint answers after the function's stall +await stopping(() => session.holdTrial()); await stopping(() => session.rollback()) +;({ seen, now } = await settle('rollback', 0)) +describes(now, false) +assert.equal(now.cfg.toString('hex'), first.cfg.toString('hex')) +await session.leaveUploadMode() + +// Kept, then removed. +session = await UploadSession.connect(transport, identity.base, { timeoutMs: 10000 }) +await session.stage(pkg); await session.activate(); await session.startTrial(); await stopping(() => session.holdTrial()); await session.accept() +await session.leaveUploadMode() +;({ now } = await settle('kept', 1)) +describes(now, true) +session = await UploadSession.connect(transport, identity.base, { timeoutMs: 10000 }) +await stopping(() => session.stage(removal(identity.base, new DataView(data.buffer).getUint32(28)))); await session.activate(); await session.startTrial() +await stopping(() => session.holdTrial()); await session.accept() +await session.leaveUploadMode() +;({ now } = await settle('removed', 0)) +describes(now, false) +assert.deepEqual((await usb()).slice(0, 5), [0, 0, 0, 4, 0]) // four reconnects, each after an idle control endpoint +console.log('A module’s USB function in the emulator: the trial stayed open across the reconnect, the configuration followed at both speeds, the hooks ran; rollback, keep and removal pass.') +process.exit(0) diff --git a/sdk/machines/octatrack/elekloader/examples/usb_function.c b/sdk/machines/octatrack/elekloader/examples/usb_function.c new file mode 100644 index 0000000000..2eae84761a --- /dev/null +++ b/sdk/machines/octatrack/elekloader/examples/usb_function.c @@ -0,0 +1,50 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later + * The smallest module that adds a USB function to the Modwerk base (events.json ot_usb_functions), and the fixture + * of scripts/verify-octatrack-usb-function.mjs. It contributes two vendor-class interfaces, 4 and 5, with one bulk + * IN endpoint 3 that it never uses, and subscribes to the three hooks the base raises for a function: + * + * python3 -B sdk/runtime/loader/build.py sdk/machines/octatrack/elekloader/examples/usb_function.c \ + * -o usb_function.mwrm --subscribe ot_usb_functions:usb_function:50 --subscribe ev_usb_isr:usb_function_isr:50 \ + * --subscribe ev_usb_bus_end:usb_function_bus_end:50 --subscribe ev_usb_control:usb_function_control:50 + * + * Installing it makes the base reconnect: the host then reads a configuration with six interfaces. DIAG's value + * reads back what the hooks saw: bus ends in the top byte, then the class requests it answered, those it was + * asked about, and 1 once the interrupt hook ran. A real function (USB Audio) also answers SET_INTERFACE and + * GET_INTERFACE for its interfaces, which are stock sites of its own for now. */ +#include "modwerk_module.h" +#include "../../include/modwerk_events.h" + +#define SETUP ((const volatile uint8_t *)0x46c8ce08u) /* the SETUP packet stock read */ +#define ENDPTCTRL0 (*(volatile uint32_t *)0xfc0b01c0u) + +/* What follows the base's own interfaces in each configuration: an association, the two interfaces, the endpoint + * (64-byte packets at full speed, 512 at high speed). Every block has the same length. */ +#define FUNCTION(packet_low, packet_high) { \ + 8, 11, MODWERK_USB_FUNCTION_INTERFACE, 2, 0xff, 0x55, 0, 0, \ + 9, 4, MODWERK_USB_FUNCTION_INTERFACE, 0, 0, 0xff, 0x55, 1, 0, \ + 9, 4, MODWERK_USB_FUNCTION_INTERFACE + 1, 0, 1, 0xff, 0x55, 2, 0, \ + 7, 5, 0x80 | MODWERK_USB_FUNCTION_ENDPOINT, 2, packet_low, packet_high, 0 } +static const uint8_t full[] = FUNCTION(64, 0), high[] = FUNCTION(0, 2); +const struct modwerk_usb_function usb_function = {MODWERK_USB_FUNCTION_ABI, sizeof usb_function, 2, sizeof full, + 0x00080000u /* endpoint 3 IN */, full, high, full, high}; + +static volatile uint32_t interrupts, ends, asked, answered; + +/* The USB interrupt: a function retires its own endpoint's completions here. This one only counts. */ +unsigned usb_function_isr(void) { interrupts = interrupts + 1; return 0; } +/* A bus reset, the cable pulled or the base's own reconnect: back to alternate setting 0. */ +unsigned usb_function_bus_end(void) { ends = ends + 1; return 0; } +/* A request stock and the base do not know. A class IN request 0x70 to interface 4 is this function's: it refuses + * it itself, both ways, and says so; every other request is not its own. */ +unsigned usb_function_control(void) +{ + asked = asked + 1; + if (SETUP[0] != 0xa1 || SETUP[1] != 0x70 || SETUP[4] != MODWERK_USB_FUNCTION_INTERFACE || SETUP[5]) return 0; + ENDPTCTRL0 = ENDPTCTRL0 | 0x00010001u; + answered = answered + 1; + return 1; +} +void module_tick(struct modwerk_runtime_api *api) +{ + api->value = (ends & 0xffu) << 24 | (answered & 0xffu) << 16 | (asked & 0xffu) << 8 | (interrupts ? 1u : 0u); +} diff --git a/sdk/machines/octatrack/events.json b/sdk/machines/octatrack/events.json index cc54c9af14..4e38936868 100644 --- a/sdk/machines/octatrack/events.json +++ b/sdk/machines/octatrack/events.json @@ -2382,7 +2382,8 @@ "contract": "Contribute one struct modwerk_usb_function. The base checks the whole record at admission (ABI and size, 1-4 interfaces, endpoint 3 alone, four blocks of `length` bytes inside the package's initialized image, the configuration within its 512-byte slot) and refuses the package otherwise; a base that links USB Audio in (a development twin) refuses every function. When the table changes the host has to read the descriptors again, so the base reconnects by itself: it waits until the control endpoint is idle, takes the unit off the bus for half a second, rewrites the four configurations and comes back. A sync or trial stays open across that reconnect (the base's own disconnect undoes nothing), and the host has 20 s to speak to the vendor interface again before it counts as unplugged. A function that leaves has its endpoint flushed and disabled at the switch, before its memory can be reused. Its interrupt, bus-end and class-request work goes through ev_usb_isr, ev_usb_bus_end and ev_usb_control. SET_INTERFACE, GET_INTERFACE and the audio frame are not hooks yet: a function patches those stock sites itself, as its own.", "order": "lower first, then module id; the table holds one function.", "subscribers": [], - "orderEvidence": "One function at a time: the controller has one endpoint left (3) and every authored USB Audio layout uses it, so a second function could not share the configuration. The USB Audio module is the first to contribute; until its package is published no module does." + "orderEvidence": "One function at a time: the controller has one endpoint left (3) and every authored USB Audio layout uses it, so a second function could not share the configuration. The USB Audio module is the first to contribute; until its package is published no module does.", + "sites": [] } ] } From fe9eacdf4b8a50799762f3b253986c926ff5ec5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Fri, 20 Nov 2026 09:28:20 +0100 Subject: [PATCH 169/415] Octatrack base: the USB function test follows main's raisedByBase hooks Main now marks a hook the base raises with raisedByBase and keeps its entry in the dispatch code; the loader still hands no package that entry. The USB hooks use that scheme since the rebase onto main of 20 November. Co-Authored-By: Claude Fable 5.2 --- sdk/tests/test_usb_function.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/sdk/tests/test_usb_function.py b/sdk/tests/test_usb_function.py index c0f47d8bd4..6506260e3f 100644 --- a/sdk/tests/test_usb_function.py +++ b/sdk/tests/test_usb_function.py @@ -55,29 +55,22 @@ def test_the_base_raises_the_usb_hooks_and_no_package_gets_their_entry(self): registry = events.load() by_name = {e['event']: e for e in registry['events']} for name in HOOKS: - self.assertEqual((by_name[name]['raisedBy'], by_name[name]['site'], by_name[name]['kind']), ('base', None, 'call')) + self.assertEqual((by_name[name].get('raisedByBase'), by_name[name]['site'], by_name[name]['kind']), (True, None, 'call')) self.assertNotIn(name, events.raised(registry)) # runtime.json "raise" cannot name it header = events.loader(registry) raises = re.search(r'#define RUNTIME_SITE_EVENT_RAISES \{ (.*) \}', header).group(1).split(', ') - for name in HOOKS: # the base walks their rows itself (usb_function.c): no entry in the dispatch code at all + for name in HOOKS: # the base walks their rows itself (usb_function.c): no package gets an entry self.assertEqual(raises[by_name[name]['index'] - events.FIRST], '0') - self.assertNotIn('modwerk_raise_%s' % name, events.asm(registry) + header) source = (OT / 'elekloader/usb_function.c').read_text() self.assertNotIn('modwerk_raise_', source.split('*/', 1)[1]) for name in HOOKS: self.assertIn('uf_raise(MODWERK_%s)' % name.upper(), source) self.assertEqual(raises[by_name['ev_mute_keep']['index'] - events.FIRST], '(uintptr_t)modwerk_raise_ev_mute_keep') kinds = {row['event']: row for row in json.loads(events.browser(registry))['events']} - self.assertEqual([kinds[name]['kind'] for name in HOOKS], ['call'] * 3) # subscriptions only, on the site too + self.assertEqual([kinds[name]['kind'] for name in HOOKS], ['raise'] * 3) # as every raised hook; the loader hands no package their entry (raises above) self.assertEqual(kinds['ev_mute_keep']['kind'], 'raise') self.assertEqual({k: kinds['ot_usb_functions'][k] for k in ('kind', 'room', 'record')}, dict(kind='table', room=1, record=32)) - with self.assertRaisesRegex(ValueError, 'raisedBy'): - bad = json.loads(events.REGISTRY.read_text()) - next(e for e in bad['events'] if e['event'] == 'ev_usb_isr')['raisedBy'] = 'module' - with tempfile.TemporaryDirectory() as temp: - (Path(temp) / 'events.json').write_text(json.dumps(bad)) - events.load(Path(temp) / 'events.json') def test_the_record_the_sdk_declares_is_the_one_admission_reads(self): text = events.sdk(events.load()) From cdd681c2376e038e9948d31a230e9a8559439eba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Fri, 20 Nov 2026 09:32:46 +0100 Subject: [PATCH 170/415] Submitters test, reviewers read the record; edge cases on drafts; the description check on base drafts The test procedure says who runs it: the submitter, on their own unit, edge cases included, delivering the record with the pull request. A reviewer or maintainer checks the record against the diff and is never required to test; a change without it goes back to the submitter. The review skill, MAINTENANCE.md, MODULE_QUALIFICATION.md, DEVELOPER_WORKFLOW.md and the PR template say the same. The edge-case table is required on drafts too, and pull requests into base/*-next get the description check (scope is skipped there, so nothing else runs). Co-Authored-By: Claude Opus 5.5 --- .agents/skills/modwerk-review-prs/SKILL.md | 5 +++-- .claude/skills/modwerk-review-prs/SKILL.md | 5 +++-- .github/pull_request_template.md | 4 ++-- .github/workflows/module-pr.yml | 7 +++++-- docs/DEVELOPER_WORKFLOW.md | 6 +++--- docs/MAINTENANCE.md | 4 +++- docs/MODULE_QUALIFICATION.md | 2 +- docs/TEST_PROCEDURE.md | 24 ++++++++++++++-------- scripts/pr-body.mjs | 7 ++++--- scripts/pr-body.test.mjs | 16 +++++++++++++-- scripts/test-procedure.mjs | 9 ++++---- 11 files changed, 59 insertions(+), 30 deletions(-) diff --git a/.agents/skills/modwerk-review-prs/SKILL.md b/.agents/skills/modwerk-review-prs/SKILL.md index 0943486039..2f0b91f0da 100644 --- a/.agents/skills/modwerk-review-prs/SKILL.md +++ b/.agents/skills/modwerk-review-prs/SKILL.md @@ -16,6 +16,7 @@ description: Review Modwerk's open pull requests, answer their authors where som - judge it against `MODDING_GUIDELINES.md` and the whole stack: the base, the USB lifecycle, module splits, cross-compatibility and, for a machine, the recipe (the checklist names each); - the rules contributions most often break; - claims that cut across pull requests, and the agent board's: a module, hook index or migration it adds that someone else holds, or that nobody claimed; + - the test record, for a change to what runs on an instrument (`docs/TEST_PROCEDURE.md#who-runs-it`): the submitter tests, you read. Is it there, on the named build (revision and package SHA-256), did the fixed steps run or say why not, do the edge cases match what the diff touches? If not, ask the submitter for it in your one comment; never test it in their place; - red checks, and whose fault they are; - runs waiting for approval (`action_required`): nothing else moves until they run; - what the triage bot's next run would do. @@ -28,7 +29,7 @@ description: Review Modwerk's open pull requests, answer their authors where som - Name no tester and quote no diagnostics. - Comments only, until the invoker picks: no labels, pushes, approvals, ready marks, closes or runs on the unit. 3. **Present the options** in chat, one line per pull request: its verdict and why, then the choices that fit, your pick first. List first the ones that can merge now. - - The choices: test it on the unit first; merge; merge after a refresh; finish it ourselves, then merge (push a refresh, the regenerated files, a changelog line or another small mechanical fix to the author's branch, or `/modwerk-pr-ready`); approve its waiting runs; mark a draft ready; wait on the author; decline with a reason; hand it to `/modwerk-fix-issue`. - - Offer "test it on the unit first" for a change to a module, a base or the USB path when a unit or emulator is connected and its checks are green: stage 1 of `/modwerk-test-on-unit` on the pull request's own build, only after the invoker's yes, one pull request at a time, trials only. Its result goes into that line's verdict; on the pull request, give only the build's readings, naming no tester. A failure turns the pick into a request to the author. The emulator's result is never hardware evidence. + - The choices: merge; merge after a refresh; finish it ourselves, then merge (push a refresh, the regenerated files, a changelog line or another small mechanical fix to the author's branch, or `/modwerk-pr-ready`); approve its waiting runs; mark a draft ready; wait on the author (for its test record too); test it on the unit ourselves; decline with a reason; hand it to `/modwerk-fix-issue`. + - "Test it on the unit ourselves" is optional, never a duty and never a stand-in for a missing record: offer it only for a change whose record is complete, when a unit or emulator is connected and its checks are green: stage 1 of `/modwerk-test-on-unit` on the pull request's own build, only after the invoker's yes, one pull request at a time, trials only. Its result goes into that line's verdict; on the pull request, give only the build's readings, naming no tester. A failure turns the pick into a request to the author. The emulator's result is never hardware evidence. - Pick the choice that ends it this pass. When the only gap is mechanical, finishing it ourselves beats asking the author. When the author has been quiet for a week since your last request, offer to decline it with a reason. - Carry out what the invoker picks in the same session, then follow each merge's runs to green. Before a module update merges, say that publishing notifies its followers. diff --git a/.claude/skills/modwerk-review-prs/SKILL.md b/.claude/skills/modwerk-review-prs/SKILL.md index 0943486039..2f0b91f0da 100644 --- a/.claude/skills/modwerk-review-prs/SKILL.md +++ b/.claude/skills/modwerk-review-prs/SKILL.md @@ -16,6 +16,7 @@ description: Review Modwerk's open pull requests, answer their authors where som - judge it against `MODDING_GUIDELINES.md` and the whole stack: the base, the USB lifecycle, module splits, cross-compatibility and, for a machine, the recipe (the checklist names each); - the rules contributions most often break; - claims that cut across pull requests, and the agent board's: a module, hook index or migration it adds that someone else holds, or that nobody claimed; + - the test record, for a change to what runs on an instrument (`docs/TEST_PROCEDURE.md#who-runs-it`): the submitter tests, you read. Is it there, on the named build (revision and package SHA-256), did the fixed steps run or say why not, do the edge cases match what the diff touches? If not, ask the submitter for it in your one comment; never test it in their place; - red checks, and whose fault they are; - runs waiting for approval (`action_required`): nothing else moves until they run; - what the triage bot's next run would do. @@ -28,7 +29,7 @@ description: Review Modwerk's open pull requests, answer their authors where som - Name no tester and quote no diagnostics. - Comments only, until the invoker picks: no labels, pushes, approvals, ready marks, closes or runs on the unit. 3. **Present the options** in chat, one line per pull request: its verdict and why, then the choices that fit, your pick first. List first the ones that can merge now. - - The choices: test it on the unit first; merge; merge after a refresh; finish it ourselves, then merge (push a refresh, the regenerated files, a changelog line or another small mechanical fix to the author's branch, or `/modwerk-pr-ready`); approve its waiting runs; mark a draft ready; wait on the author; decline with a reason; hand it to `/modwerk-fix-issue`. - - Offer "test it on the unit first" for a change to a module, a base or the USB path when a unit or emulator is connected and its checks are green: stage 1 of `/modwerk-test-on-unit` on the pull request's own build, only after the invoker's yes, one pull request at a time, trials only. Its result goes into that line's verdict; on the pull request, give only the build's readings, naming no tester. A failure turns the pick into a request to the author. The emulator's result is never hardware evidence. + - The choices: merge; merge after a refresh; finish it ourselves, then merge (push a refresh, the regenerated files, a changelog line or another small mechanical fix to the author's branch, or `/modwerk-pr-ready`); approve its waiting runs; mark a draft ready; wait on the author (for its test record too); test it on the unit ourselves; decline with a reason; hand it to `/modwerk-fix-issue`. + - "Test it on the unit ourselves" is optional, never a duty and never a stand-in for a missing record: offer it only for a change whose record is complete, when a unit or emulator is connected and its checks are green: stage 1 of `/modwerk-test-on-unit` on the pull request's own build, only after the invoker's yes, one pull request at a time, trials only. Its result goes into that line's verdict; on the pull request, give only the build's readings, naming no tester. A failure turns the pick into a request to the author. The emulator's result is never hardware evidence. - Pick the choice that ends it this pass. When the only gap is mechanical, finishing it ourselves beats asking the author. When the author has been quiet for a week since your last request, offer to decline it with a reason. - Carry out what the invoker picks in the same session, then follow each merge's runs to green. Before a module update merges, say that publishing notifies its followers. diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index c1947c8da3..88fbabf801 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -4,7 +4,7 @@ - **What this changes:** - **How I checked it:** (`npm run pr:ready` and anything else you ran) - **Tested on a unit:** (a change to a built package or base: the exact build, the model and what ran; keep the pull request a draft until then, or write "Not tested on a unit:" and why) -- **Edge cases:** (a change to a built package or base: below this line a table with one row a case, `| Case | Why this change makes it a risk | How run | Result |`, each result pass, fail or "not run: why"; or "none, because …". [How to find them](../docs/TEST_PROCEDURE.md#edge-cases)) +- **Edge cases:** (a change to a built package or base, draft or ready: below this line a table with one row a case, `| Case | Why this change makes it a risk | How run | Result |`, each result pass, fail or "not run: why" (a draft says what it has not run yet); or "none, because …". [How to find them](../docs/TEST_PROCEDURE.md#edge-cases)) - **What the guides lacked or got wrong, and where I fixed it:** ("nothing" is a fine answer) **A module or module update:** describe the change in behaviour, module version(s), compatibility and source/media attribution. Run it through [the test procedure](../docs/TEST_PROCEDURE.md) and give its "Tested on a unit" line and its edge-case table under a line "Edge cases". Then say what the guides lacked or got wrong while you built it and link the `Docs:` pull request that fixes it, or write "nothing"; the module release itself stays free of guide edits. @@ -25,7 +25,7 @@ Registered module authors can opt into [automatic publication](../docs/MODULE_AU Reviewer (an assigned device reviewer or a repository maintainer for a first release, the registered author for their own update): -- [ ] I checked the cycle and memory reports against the worst case, the attributed hardware evidence against the submitted source and build, and the screenshots, tutorial and access steps against the current UI. +- [ ] I checked the cycle and memory reports against the worst case, the attributed hardware evidence against the submitted source and build, and the screenshots, tutorial and access steps against the current UI. I read the submitter's test record ([the test procedure](../docs/TEST_PROCEDURE.md#who-runs-it)) against the diff and did not have to test it myself; a missing or unexplained step goes back to the submitter. Validation commands and results: diff --git a/.github/workflows/module-pr.yml b/.github/workflows/module-pr.yml index f587274faf..31842891b4 100644 --- a/.github/workflows/module-pr.yml +++ b/.github/workflows/module-pr.yml @@ -4,7 +4,8 @@ name: Module PR checks on: pull_request: types: [opened, edited, synchronize, reopened, ready_for_review, converted_to_draft] - branches: [main, 'modwerk/**', 'codex/modwerk-*'] + # base/-next: a base change joining its machine's cumulative draft gets the description check only (below). + branches: [main, 'modwerk/**', 'codex/modwerk-*', 'base/*-next'] permissions: contents: read concurrency: @@ -15,6 +16,8 @@ jobs: # source/build inputs; app changes retain lint, tests, types and the bundle. scope: name: scope / ${{ github.event.pull_request.base.sha }} / ${{ github.event.pull_request.head.sha }} + # Into a cumulative base draft only the description is checked; the draft's own pull request into main runs the rest. + if: ${{ !startsWith(github.base_ref, 'base/') }} runs-on: ubuntu-24.04 timeout-minutes: 5 outputs: @@ -37,7 +40,7 @@ jobs: OCTAMOD_PR_BASE: ${{ github.event.pull_request.base.sha }} run: node scripts/pr-check-plan.mjs --base "$OCTAMOD_PR_BASE" --head HEAD >> "$GITHUB_OUTPUT" describe: - if: github.base_ref == 'main' + if: github.base_ref == 'main' || (startsWith(github.base_ref, 'base/') && endsWith(github.base_ref, '-next')) runs-on: ubuntu-24.04 timeout-minutes: 3 steps: diff --git a/docs/DEVELOPER_WORKFLOW.md b/docs/DEVELOPER_WORKFLOW.md index e42f982ced..2dbb78592e 100644 --- a/docs/DEVELOPER_WORKFLOW.md +++ b/docs/DEVELOPER_WORKFLOW.md @@ -71,7 +71,7 @@ These stumbling blocks have each cost a contributor and the owner a repair round ## Submit a first release 1. **Prepare:** fork Modwerk, branch from current `main`, and build or port the module. Keep source pins, credits and licences; prepare the manifest/version/catalog, README/tutorial, release notes, real UI captures and matching packages. -2. **Verify:** follow the machine/category guide, regenerate metadata, run `module:doctor` and `npm run check -- --base origin/main`, and qualify the exact private source/build. Give the contributor concrete hardware steps and record only their actual results. Test different simultaneous instances and track/FX-slot/DSP-core isolation and Part/project/physical-reboot persistence where applicable. Emulator project loading is not physical reboot evidence. +2. **Verify:** you test, not the reviewer: run [the test procedure](TEST_PROCEDURE.md) on the exact build, edge cases included, and record only actual results. Test instances, slot and core isolation and Part/project/physical-reboot persistence where applicable. Emulator project loading is not reboot evidence. 3. **Submit:** commit, push and open a Modwerk PR. Follow checks and fix failures. A maintainer of its machine or the owner reviews every new module ([who](#who-reviews-a-first-release)); the first approved release registers its GitHub author for later scoped updates. Website sign-in or claiming does not grant release authority. 4. **Publish and verify:** after the merge, follow the exact commit's site/API deployments. Confirm the live version, save a compatible firmware download, and verify its version/source identity and deterministic hash where applicable. A push, merge or ready/download-requested state alone does not prove a saved release download. @@ -85,7 +85,7 @@ A **contributor** can submit a PR with `/modwerk-contribute` or a new module wit Assign device reviewers by adding their numeric GitHub IDs to `deviceReviewers` in `sdk/machines//machine.json` through a maintainer-reviewed PR and running `npm run machines:generate`. Get the ID with `gh api users/LOGIN --jq .id`. Assignments take effect on main. Old `maintainers` login lists and forum badges grant no merge permission. For a new modder, include only their lowercase login and numeric ID in the existing accounts map in `.github/module-authors.json`, in the same PR as their first module. -Review the exact commit with `/modwerk-review-prs` and [merge the first release](MODULE_AUTHOR_UPDATES.md#merge-a-first-release). Another reviewer or maintainer handles your own module. +Review the exact commit and its test record with `/modwerk-review-prs`; a reviewer is never required to test it ([who runs it](TEST_PROCEDURE.md#who-runs-it)). Then [merge it](MODULE_AUTHOR_UPDATES.md#merge-a-first-release). Another reviewer or maintainer handles your own module. Send these to a repository maintainer or the owner: @@ -121,7 +121,7 @@ A base update carries several developers' changes onto players' instruments at o - **Join it.** Commit your base change to that branch, or open your pull request against it (`gh pr create --base base/-next`); it is merged in with your authorship. A base pull request against `main` is sent there. With none open for the machine, open it as a draft from `base/-next`. - **Share the branch.** Several developers commit to it: fetch first, add your commits on top, merge `main` into it, and never rebase or force-push it. Update the description's list of what is in it so far. -- **It stays a draft** until the base has been tested extensively on a unit. Record each build that ran, on which unit, and what ran on it; `pr:ready` saying Ready means the checks pass, not that it was tested. Only the owner marks it ready and ships it. +- **It stays a draft** until the base has been tested extensively on a unit. Each submitter tests their change before it joins and adds their [record](TEST_PROCEDURE.md#what-a-base-adds): build, unit, what ran. Ready from `pr:ready` is not tested. Only the owner marks it ready and ships it. ## Manage reports on GitHub diff --git a/docs/MAINTENANCE.md b/docs/MAINTENANCE.md index 42e259e1ee..ad709c7b37 100644 --- a/docs/MAINTENANCE.md +++ b/docs/MAINTENANCE.md @@ -16,7 +16,7 @@ A worker may, without asking: read anything, run `diagnostics:pull`, build and t ## Pull request worker -List them with `gh pr list --state open --json number,title,author,isDraft,labels,mergeStateStatus,updatedAt`. The owner's review list is `is:pr is:open draft:false -label:needs-work -label:one-at-a-time`; `pr-triage.yml` labels the rest ([review queue](COMMUNITY_OPERATIONS.md#review-queue-and-saved-replies)). Review contributors' drafts too: many authors open one without knowing it, and the bot skips drafts. Give every pull request one verdict: ready to merge, needs a refresh, red, waiting on its author, or needs the owner's call, and why. A machine's cumulative base draft (`base/-next`) is never ready to merge or stale: say what is in it, which builds ran on a unit and what is untested, and leave marking it ready to the owner. A base pull request against `main` goes onto it instead ([Change a base](DEVELOPER_WORKFLOW.md#change-a-base)). +List them with `gh pr list --state open --json number,title,author,isDraft,labels,mergeStateStatus,updatedAt`. The owner's review list is `is:pr is:open draft:false -label:needs-work -label:one-at-a-time`; `pr-triage.yml` labels the rest ([review queue](COMMUNITY_OPERATIONS.md#review-queue-and-saved-replies)). Review contributors' drafts too: many authors open one without knowing it, and the bot skips drafts. Give every pull request one verdict: ready to merge, needs a refresh, red, waiting on its author, or needs the owner's call, and why. A machine's cumulative base draft (`base/-next`) is never ready to merge or stale: say what is in it, which builds ran on a unit (each change's submitter's record) and what is untested, and leave marking it ready to the owner. A base pull request against `main` goes onto it instead ([Change a base](DEVELOPER_WORKFLOW.md#change-a-base)). - **Review** new and changed pull requests. Read the code they touch, not only the diff, and judge each against the [modding guidelines](../MODDING_GUIDELINES.md) and the whole stack: - **The base:** its hooks, events and tables, the order open pull requests regenerate it in, and its cost: a base pull request quotes the line `node scripts/base-size.mjs` prints (container bytes of 851,712, and the change since the previous base). @@ -25,6 +25,8 @@ List them with `gh pr list --state open --json number,title,author,isDraft,label - **Cross-compatibility:** its `uiClaims` and conflicts against every other module. - **A new machine:** the [machine recipe](MACHINE_RECIPE.md). + - **The test record:** a change to what runs on an instrument carries its submitter's record from [the test procedure](TEST_PROCEDURE.md#who-runs-it), on the named build, with the change's edge cases. Check it against the diff; without it, the verdict is "waiting on its author", never a test for the owner. + Give each a stack verdict, not only a code verdict. Then check the rules a contribution most often breaks: a dependency on another module or a pull request stacked on one, an update to someone else's module without its author's yes ([Ask the author first](DEVELOPER_WORKFLOW.md#ask-the-author-first)), someone else's protected work, a module modelled on another current product of the same maker, a set of different effects in one module ([one effect per module](module-guides/effects.md#one-effect-per-module)), a fix without its changelog entry, a new Octatrack module without the USB lifecycle, a category that does not match where it acts (an effect that makes its track's sound is a machine), state saved in another module's bytes, a check edited to pass, unrelated changes in a module release, hand-edited generated files. A first-time contributor's runs wait for the owner's approval (`action_required`), so the pull request shows no checks until then: list those for the owner, or its review never starts. Draft the review as comments for the briefing. - **Refresh** a pull request that is behind or conflicting in its own worktree: merge `origin/main` into it, never rebase (catalogue rows pin the pull request's own commit). Regenerate generated files instead of resolving them by hand: `modules:generate`, `licenses:generate`, `machines:generate`, and an Elekloader row with `elekloader:update -- --overlay `, never `--library`. Run `npm run pr:ready` until it says Ready. Push it only to the owner's own branch; offer a contributor's refresh in the briefing. - **Across pull requests:** base hook indices (the loader refuses a gap, so whichever merges later renumbers and rebuilds), one module version claimed by two pull requests, and additions to a document over its [size limit](README.md). diff --git a/docs/MODULE_QUALIFICATION.md b/docs/MODULE_QUALIFICATION.md index 026bf7e29d..b74dc2c650 100644 --- a/docs/MODULE_QUALIFICATION.md +++ b/docs/MODULE_QUALIFICATION.md @@ -13,7 +13,7 @@ All of it is bound to the module version, its native-source SHA-256 and the SHA- From 2 October 2026, new modules and updates affecting runtime behavior, stability, cycles, memory or load must provide **worst-case cycle counts, exact memory accounting, attributed real-hardware test evidence and complete documentation**. These are publication requirements. Missing measurements, nominal/average CPU percentages, emulator-only evidence, historical evidence for another source and failed detailed hardware checks cannot qualify a submission. On 2 October 2026 the owner removed the mandatory 60-minute, eight-track stress run. A clearly labelled functional hardware report is accepted alongside the cycle, memory, source, UI and integration evidence below. -`npm run modules:check`, `npm run modules:generate`, PR CI and release validation enforce the record. PR CI also checks version increases against the exact base commit. Configure `module-contract` as a required status check on protected main. The reviewer verifies the actual reports: the owner for a first release or changes beyond author scope, the registered module author for a scoped automatic update. Owner merge or the verified author-release workflow approves the version; there is no extra website approval. Metadata checks do not run submitted source or perform physical hardware tests. An unchecked contributor declaration cannot replace actual evidence verification; automatic author releases require the registered author to verify the reports and explicitly attest to the required acceptance checks. +`npm run modules:check`, `npm run modules:generate`, PR CI and release validation enforce the record. PR CI also checks version increases against the exact base commit. Configure `module-contract` as a required status check on protected main. The submitter produces the reports through [the test procedure](TEST_PROCEDURE.md#who-runs-it); the reviewer verifies them and is never required to test on their own unit: the owner for a first release or changes beyond author scope, the registered module author for a scoped automatic update. Owner merge or the verified author-release workflow approves the version; there is no extra website approval. Metadata checks do not run submitted source or perform physical hardware tests. An unchecked contributor declaration cannot replace actual evidence verification; automatic author releases require the registered author to verify the reports and explicitly attest to the required acceptance checks. Every release also requires populated CPU, DSP core and memory gauges. These use [source-backed relative estimates](MODULE_RESOURCE_GAUGES.md), do not need exact whole-chip capacity percentages, and do not replace the qualification evidence below. diff --git a/docs/TEST_PROCEDURE.md b/docs/TEST_PROCEDURE.md index da39d650da..87d02817dd 100644 --- a/docs/TEST_PROCEDURE.md +++ b/docs/TEST_PROCEDURE.md @@ -2,6 +2,14 @@ Every change to a module or a base goes through these steps, in this order, on one named build. Then it runs the edge cases its own change asks for. The other testing guides hold the detail of each step; this page holds the order. +## Who runs it + +**The submitter tests; the reviewer reads.** The author of the change, or their agent, runs the whole procedure on their own unit, the change's own edge cases included, and delivers the record with the pull request (owner, 20 November 2026). + +- A reviewer or maintainer reads the record and checks it against the diff: is it on the named build, did the fixed steps run or say why not, do the edge cases match what the diff touches. They are never required to run the procedure, repeat a step or test on their own unit. +- A pull request that changes what runs on an instrument and comes without the record, or with a "not run" that does not say why, goes back to its submitter. The reviewer does not test it in their place. +- A reviewer may still choose to test. The owner's own qualification of a cumulative base before he ships it is his choice, not a duty this procedure puts on him. + ```sh npm run test:procedure -- # a module, built from its source npm run test:procedure -- --plan # the steps and their commands, nothing run @@ -29,7 +37,7 @@ Every step applies to modules and bases alike; what differs for a base is in eac | 9 | Cost on the unit | unit | `npm run device:price -- --out price.json PKG`; a base: every USB package | it reads | `price.json`: frame interrupt, CPU meter, both DSPs, at rest and in use | | 10 | Put back | unit or emulator | `do inventory` again | equal to step 6 | its log | | 11 | Agent by hand | unit or emulator | inside a trial (`npm run module:dev -- ` or the MCP) | what you saw matches the README | screenshots, captures | -| 12 | Developer's stage | unit | their hands and ears | what they report | their words, as they said them | +| 12 | Submitter's own stage | unit | their hands and ears | what they report | their words, as they said them | Each step proves only what it ran. Steps 1 to 5 prove the code paths they exercised, never audio, timing, a saved project or a power cycle. Steps 6 to 11 on the unit are hardware evidence for what they measured, never for the sound or for persistence; on the emulator they are not hardware evidence at all. Step 12 is the developer's. @@ -70,22 +78,22 @@ Every result is labelled emulator, the unit queue is left alone, and step 9 is n - **4.** The check fails a cycle-scan record whose module source changed since its scan. After changing a module's DSP code, scan it again on a computer with the scan's tools: `node scripts/cycle-scan.mjs record ` ([sdk/cycle-scan](../sdk/cycle-scan/README.md), [MODULE_PERFORMANCE.md](MODULE_PERFORMANCE.md)). - **5.** Start `ot_emu` with `--usb-host SOCK` on a development twin of the base, from [the adapted emulator builder](../scripts/octatrack-emulator/build.py) (the plain port refused the trial with loader refusal 5, 20 November 2026). A ColdFire module needs no `--dsp`, which runs about ten times faster; give the base 20 s after the socket appears. What passes here can still fail on the unit: read [what `ot_emu` does not show](OCTATRACK_HARDWARE_TRAPS.md#the-emulator-and-the-tools). - **6-10.** The unit steps go through the device commands and keep [the driving rules](OCTATRACK_DRIVING.md): a development base, transport stopped, a bank and Part whose working copy equals its saved one. Nothing is kept: every install is a trial that rolls back. When the repository has the unit queue (its `unit` script), the runner takes the unit for steps 6 to 10 as one turn. -- **8.** Until the fast seeded soak is merged ([#1770](https://github.com/repeat98/modwerk/pull/1770)), a module soaks inside step 7 (`device:test --soak 120`) and a base's soak is not run. +- **8.** The fast seeded soak needs the MIDI bridge on the computer the unit is plugged into (`scripts/octatrack-midi-bridge.py`) and the project's MIDI receive settings ([A fast soak](OCTATRACK_DRIVING.md)). A failure prints the seed and a log that replays it (`--replay FILE`). In a checkout without `scripts/octatrack-soak.mjs`, a module soaks inside step 7 (`device:test --soak 120`) instead. - **9.** "At rest" is the module installed and used nowhere: what every player pays for having it. Judge both figures against [MODULE_PERFORMANCE.md](MODULE_PERFORMANCE.md); a base-bound package is left out, since a development twin does not trust it. - **11.** Reach every control and screen by the README's button steps and take a `png:` screenshot of each. Record MAIN and CUE over USB with a sustained sound and look for runs of exact zeros or a block played twice. Then Undo and check the inventory again ([/modwerk-test-on-unit](../.claude/skills/modwerk-test-on-unit/SKILL.md)). -- **12.** Only after 1 to 11 passed on this build. Give the developer the button steps and what they should see or hear for each item the record lists: the sound, timing by ear, MIDI and scenes, two instances, Part and project reload, the Keep and the power cycle. The Keep, the power cycle, a flash and listening are theirs; the agent never does them without their OK. A fault they find is fixed, and the procedure starts again on the new build. +- **12.** The developer here is the submitter: the person whose agent ran steps 1 to 11, at their own unit, not a reviewer. Only after 1 to 11 passed on this build. Give the developer the button steps and what they should see or hear for each item the record lists: the sound, timing by ear, MIDI and scenes, two instances, Part and project reload, the Keep and the power cycle. The Keep, the power cycle, a flash and listening are theirs; the agent never does them without their OK. A fault they find is fixed, and the procedure starts again on the new build. A machine without a USB link runs steps 1 to 3 and its emulator; step 12 then carries all the hardware evidence ([/modwerk-test-on-unit](../.claude/skills/modwerk-test-on-unit/SKILL.md)). ## What a base adds -A base carries every installed module, so it is tested as a set ([Change a base](DEVELOPER_WORKFLOW.md#change-a-base)): +A base carries every installed module, so it is tested as a set ([Change a base](DEVELOPER_WORKFLOW.md#change-a-base)). Each submitter runs these for their own change, on their own unit, before it joins the machine's cumulative draft, and adds their record to it: - step 1 is the SDK suite and step 2 every module against every other; - step 7 installs every USB package in one whole-set trial (a base with feature 512), and Undo must bring back the starting inventory and active identity (step 10); - step 9 prices every package at rest on the new base, the figure a base change can move for everyone; -- by hand, with the developer's OK for each restart: RAM boot into the candidate, run the steps, RAM boot back to the starting base, and check its modules came back; -- the record goes to `docs/verification/-.md` and the machine's cumulative draft. That draft stays a draft until the owner says the base was tested enough. +- by hand: RAM boot the development build of the candidate, run the steps, RAM boot back to the starting base, and check its modules came back. Nothing is kept by a RAM boot; a Keep, a flash or a power cycle still needs the developer's yes, and on someone else's computer say beforehand how many restarts are coming; +- the record goes to `docs/verification/-.md` and the machine's cumulative draft. That draft stays a draft until the base has been tested extensively on a unit, through the records its submitters bring; only the owner marks it ready and merges it. ## Edge cases @@ -126,8 +134,8 @@ When the change cannot behave differently on an instrument (a package rebuilt to ## Where the record goes -- **A module:** `procedure.md` with the edge-case table filled in, as an entry in the module's `TESTING.md`, followed by the developer's results apart from yours. +- **A module:** `procedure.md` with the edge-case table filled in, as an entry in the module's `TESTING.md`, followed by the submitter's own results apart from their agent's. - **A base:** a dated record in `docs/verification/`, linked from the cumulative draft's description. -- **The pull request:** the record's last lines, "Tested on a unit: …" (or "Not tested on a unit: why") and the edge-case table under a line "Edge cases". A ready pull request that changes a `.mwrm`, `.elemod` or `.ZDL` file fails its description check without both ([the check](../scripts/pr-body.mjs)); a draft may still be in test. +- **The pull request:** the record's last lines, "Tested on a unit: …" (or "Not tested on a unit: why") and the edge-case table under a line "Edge cases". A ready pull request that changes a `.mwrm`, `.elemod` or `.ZDL` file fails its description check without both ([the check](../scripts/pr-body.mjs)). A draft may still be in test, so it needs no unit line yet, but it lists its edge cases from the start, each "not run: why" until it ran. Pull requests into a cumulative `base/-next` draft are checked the same way. "Not tested" is a valid result, and it stays visible. An emulator result never counts as hardware evidence. A tester's report stays labelled as reported. diff --git a/scripts/pr-body.mjs b/scripts/pr-body.mjs index 299457277b..319350590d 100644 --- a/scripts/pr-body.mjs +++ b/scripts/pr-body.mjs @@ -3,7 +3,7 @@ // Is the pull request described? Reviewers asked one module PR in nine to fill in its description, and half the merged PRs skipped the // guides question AGENTS.md asks of every PR ("Fold what you learn back"). And does a ready one that changes what runs on an instrument // name the exact build that ran on a unit? A base went up ready to merge after only development twins had run (#1694, 17 November 2026). -// And does it list the edge cases the change risks, each with what it showed (docs/TEST_PROCEDURE.md, 20 November 2026)? +// And does it, draft or ready, list the edge cases the change risks, each with what it showed (docs/TEST_PROCEDURE.md, 20 November 2026)? // Reads only the description, the template, the draft flag and the changed file names: no PR code runs. // // PR_BODY="$(gh pr view --json body --jq .body)" PR_DRAFT=false PR_FILES="$(gh pr diff --name-only)" node scripts/pr-body.mjs @@ -70,7 +70,7 @@ export function edgeCases(lines, own) { } /** What the description still lacks; [] when it is described, answers the guides question, and (ready, changing what runs on an - * instrument) names the build that ran on a unit. A draft may still be in test. */ + * instrument) names the build that ran on a unit. A draft may still be in test, but lists its edge cases already. */ export function bodyProblems(body, template, { draft = false, files = [] } = {}) { const templateLines = new Set(template.split('\n').map(line => line.trim()).filter(Boolean)) const isOwn = line => !!line && !templateLines.has(line) && !NOT_OWN.test(line) @@ -79,7 +79,8 @@ export function bodyProblems(body, template, { draft = false, files = [] } = {}) if (own.join(' ').length < OWN_TEXT) problems.push('Describe the change in your own words: what was wrong or hard, what this changes and how you checked it (the pull request template asks for each).') const instrument = instrumentFiles(files) if (!draft && instrument.length && !own.some(line => TESTED.test(plain(line)) || UNTESTED.test(plain(line)))) problems.push('This pull request changes what runs on an instrument (' + instrument.slice(0, 3).join(', ') + (instrument.length > 3 ? ` and ${instrument.length - 3} more` : '') + '). Keep it a draft until the exact build ran on a unit, then name it on a line of its own: "Tested on a unit: base 8d1db124 (or the package\'s sha256), MKII, what ran". If it cannot be tested, write "Not tested on a unit: " for the owner to decide. `npm run pr:ready` saying Ready means the checks pass, not that it was tested.') - const edge = !draft && instrument.length ? edgeCases(lines, isOwn) : true + // Drafts too: a draft opened early lists what it will run, each case "not run: why" until it ran (owner, 20 November 2026). + const edge = instrument.length ? edgeCases(lines, isOwn) : true if (edge !== true) problems.push('This pull request changes what runs on an instrument, so it lists the edge cases this change risks and what each showed (docs/TEST_PROCEDURE.md#edge-cases). Under a line "Edge cases", add a table with one row a case: | Case | Why this change makes it a risk | How run | Result |, the result "pass", "fail: what happened" or "not run: why". `npm run test:procedure` writes the empty table. With none, say why: "Edge cases: none, because …".' + (edge === 'incomplete' ? ' A row there lacks its case or its result, or says "not run" without why.' : '')) if (!own.some((line, index) => answersGuides(line, own[index + 1]))) problems.push('Say what the guides lacked or got wrong while you did this, and where you fixed it, on a line of its own, for example "Guides: nothing". It is how the next developer\'s agent learns what you did (AGENTS.md, Pull requests).') diff --git a/scripts/pr-body.test.mjs b/scripts/pr-body.test.mjs index 658a934378..9534391aa8 100644 --- a/scripts/pr-body.test.mjs +++ b/scripts/pr-body.test.mjs @@ -11,6 +11,16 @@ it('makes the description part of the required PR verdict on pushes, edits and d expect(workflow.on.pull_request.types).toEqual(expect.arrayContaining(['opened', 'synchronize', 'edited', 'converted_to_draft', 'ready_for_review', 'reopened'])) }) +it('checks the description of a pull request into a cumulative base draft too, and nothing else there', () => { + const workflow = parse(readFileSync(new URL('../.github/workflows/module-pr.yml', import.meta.url), 'utf8')) + expect(workflow.on.pull_request.branches).toContain('base/*-next') + expect(workflow.jobs.describe.if).toMatch(/github\.base_ref == 'main'/) + expect(workflow.jobs.describe.if).toMatch(/startsWith\(github\.base_ref, 'base\/'\) && endsWith\(github\.base_ref, '-next'\)/) + // Every other job hangs off scope, which a pull request into base/ skips; the verdict counts skipped as passed. + expect(workflow.jobs.scope.if).toMatch(/!startsWith\(github\.base_ref, 'base\/'\)/) + for (const [name, job] of Object.entries(workflow.jobs)) if (!['scope', 'describe', 'module-pr-ok'].includes(name)) expect([job.needs].flat(), name).toContain('scope') +}) + it('refuses an empty description or the template as it came, and asks for the guides answer', () => { expect(bodyProblems('', template)).toHaveLength(2) expect(bodyProblems(null, template)).toHaveLength(2) @@ -68,9 +78,11 @@ it('asks a ready pull request that changes what runs on an instrument for its ed const incomplete = expect.stringMatching(/lacks its case or its result/) const table = '\n\n## Edge cases\n\n| Case | Why this change makes it a risk | How run | Result |\n|---|---|---|---|\n' const row = '| A module resting while its page is open | resting skips its tick | trial, open the page, stop the transport | pass |\n' - // A draft, or a change that runs nowhere, needs none. - expect(bodyProblems(described, template, { draft: true, files })).toEqual([]) + // A change that runs nowhere needs none; a draft does, and may say honestly what it has not run yet. expect(bodyProblems(described, template, { files: ['src/App.tsx'] })).toEqual([]) + expect(bodyProblems(described, template, { draft: true, files })).toEqual([missing]) + expect(bodyProblems(described + table + '| Undo with the page open | the change moved the page | trial, Undo | not run: waiting for the unit |\n', template, { draft: true, files })).toEqual([]) + expect(bodyProblems(described + '\n\nEdge cases: none, because the change renames a symbol the build strips.', template, { draft: true, files })).toEqual([]) expect(bodyProblems(described, template, { files })).toEqual([missing]) expect(bodyProblems(described + table + row, template, { files })).toEqual([]) expect(bodyProblems(described + table + row + '| Undo with the page open | the same | trial, Undo | not run: no MKI at hand |\n', template, { files })).toEqual([]) diff --git a/scripts/test-procedure.mjs b/scripts/test-procedure.mjs index 93bff3601f..6b7ac50259 100644 --- a/scripts/test-procedure.mjs +++ b/scripts/test-procedure.mjs @@ -29,7 +29,8 @@ export const ROOT = resolve(import.meta.dirname, '..') const SOAK_TOOL = 'scripts/octatrack-soak.mjs', SCAN_TOOL = 'scripts/cycle-scan.mjs' const DEFAULT_SCENE = 'the bank, pattern and Part the unit was on, transport stopped (test:procedure)' -/** What the developer judges at the unit, after the agent's steps passed on this build (modwerk-test-on-unit, stage 2). */ +/** What the developer, the submitter, judges at their own unit after the agent's steps passed on this build (modwerk-test-on-unit, + * stage 2). The reviewer reads the record and never has to repeat it (docs/TEST_PROCEDURE.md#who-runs-it). */ export const DEVELOPER = { module: ['how it sounds and plays, and timing by ear', 'MIDI, scenes and recording with it', 'it beside the other modules installed on their unit', 'two instances with different settings, on both FX slots and both DSP cores where it can (docs/MODULE_QUALIFICATION.md)', @@ -41,7 +42,7 @@ export const DEVELOPER = { export const BY_HAND = { module: ['every control and screen by the README\'s button steps, a png: screenshot of each, compared with the README and its UI claims', 'MAIN and CUE recorded over USB (rec) with a sustained sound, checked for dropouts (runs of exact zeros, a block played twice)'], - base: ['RAM boot into the candidate and back to the starting base, only with the developer\'s OK for each restart; the starting modules back after it', + base: ['RAM boot the candidate\'s development build and back to the starting base, and check the starting modules came back (nothing is kept; a Keep, a flash or a power cycle needs the developer\'s yes)', 'USB captures of MAIN with the large set installed, across Part switches and pattern changes, checked for dropouts'], } @@ -58,7 +59,7 @@ export const STEPS = [ { id: 'cost-unit', title: 'Cost on the unit', applies: 'both', unit: true }, { id: 'restore', title: 'Put back', applies: 'both', unit: true }, { id: 'by-hand', title: 'Agent by hand', applies: 'both', hand: true }, - { id: 'developer', title: 'Developer\'s stage', applies: 'both', hand: true }, + { id: 'developer', title: 'Submitter\'s own stage', applies: 'both', hand: true }, ] export const titleOf = (step, ctx) => (ctx.kind === 'base' && step.baseTitle) || step.title @@ -259,7 +260,7 @@ export function recordMarkdown(record) { 'Derive them from what the change touches and run each one (docs/TEST_PROCEDURE.md#edge-cases). A start, from the manifest and the changed files:', '', ...(record.edgeCases.suggested.length ? record.edgeCases.suggested.map(s => `- ${s.touches}: ${s.ask} (docs/${s.see})`) : ['- nothing matched: read the diff']), '', '| Case | Why this change makes it a risk | How run | Result |', '|---|---|---|---|', '| | | | |', '', - '#### Left for the developer', '', ...DEVELOPER[target.kind].map(item => '- ' + item), '', + '#### Left for the submitter at their unit', '', ...DEVELOPER[target.kind].map(item => '- ' + item), '', '#### For the pull request', '', unitRan && sha ? `Tested on a unit: package ${sha.slice(0, 12)}, , test:procedure steps ${steps.map((s, i) => s.unit && s.status === 'passed' ? i + 1 : null).filter(Boolean).join(', ')}; the developer's stage .` : emulated ? 'Not tested on a unit: steps 6 to 10 ran on the emulator only (--target emulator), which is not hardware evidence.' From 205de60da099a63a2e634ba2d8b8917441f64e6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Fri, 20 Nov 2026 09:32:53 +0100 Subject: [PATCH 171/415] Changelog: who tests, drafts and base drafts Co-Authored-By: Claude Opus 5.5 --- changelog/2026-11-20-test-procedure.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelog/2026-11-20-test-procedure.md b/changelog/2026-11-20-test-procedure.md index 0c6fe025d5..7a748c3bf7 100644 --- a/changelog/2026-11-20-test-procedure.md +++ b/changelog/2026-11-20-test-procedure.md @@ -1 +1 @@ -Development: Every module or base change goes through one test procedure, `npm run test:procedure -- ` or `--base`. It runs the software checks, the build, the emulator and the unit steps in a fixed order, stops at the first failure, records unit steps as not run without a unit, and writes a record with an empty table for the change's own edge cases (docs/TEST_PROCEDURE.md). A ready pull request that changes what runs on an instrument now lists those edge cases, or says "Edge cases: none, because …". `--target emulator` runs the same unit steps against an emulator session, which `npm run device -- serve --emulator` now keeps open, labelled as emulator results. +Development: Every module or base change goes through one test procedure, `npm run test:procedure -- ` or `--base`. It runs the software checks, the build, the emulator and the unit steps in a fixed order, stops at the first failure, records unit steps as not run without a unit, and writes a record with an empty table for the change's own edge cases (docs/TEST_PROCEDURE.md). A ready pull request that changes what runs on an instrument now lists those edge cases, or says "Edge cases: none, because …". `--target emulator` runs the same unit steps against an emulator session, which `npm run device -- serve --emulator` now keeps open, labelled as emulator results. The submitter runs the procedure and delivers its record; reviewers read it and are never required to test. Drafts list their edge cases too, and pull requests into a machine's cumulative base draft get the same description check. From c8a64154bc9d90809ccf088823d41e0a4b9895a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Fri, 20 Nov 2026 09:38:22 +0100 Subject: [PATCH 172/415] Go back from a module page with Esc Esc now follows the page back link (to the library, the device module list or the search results), unless focus is in a field or a dialog is open. Co-Authored-By: Claude Sonnet 5.5 --- src/components/ModuleDetailLayout.tsx | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/components/ModuleDetailLayout.tsx b/src/components/ModuleDetailLayout.tsx index e4b504f247..004e06f24b 100644 --- a/src/components/ModuleDetailLayout.tsx +++ b/src/components/ModuleDetailLayout.tsx @@ -56,6 +56,18 @@ export function ModuleDetailLayout({ id, title, family, detail, author, authorUr const issues = useModuleIssues(id) const workingCount = useModuleWorksReports(id) const [discussionCount, setDiscussionCount] = useState(null) + const backRef = useRef(null) + // Esc goes back, like the back link, unless it is already doing something else (typing, a dialog, a menu). + useEffect(() => { + function onKeyDown(event: KeyboardEvent) { + if (event.key !== "Escape" || event.defaultPrevented || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey) return + const target = event.target instanceof Element ? event.target : null + if (target?.closest("input, textarea, select, [contenteditable]") || document.querySelector("dialog[open], [role=dialog], [aria-modal=true]")) return + backRef.current?.click() + } + document.addEventListener("keydown", onKeyDown) + return () => document.removeEventListener("keydown", onKeyDown) + }, []) useEffect(() => { const navigate = () => setTab(linkedTab()); window.addEventListener('hashchange', navigate); return () => window.removeEventListener('hashchange', navigate) }, []) function showConfiguration() { setTab('Overview') @@ -73,7 +85,7 @@ export function ModuleDetailLayout({ id, title, family, detail, author, authorUr return
1 ? ' has-catalog-navigation' : '')}> {navigation && navigation.total > 1 && } {!modal &&
-
{navigation ? 'Back to results' : backLabel}{navigation && {navigation.position} of {navigation.total}}
+
{navigation ? 'Back to results' : backLabel}{navigation && {navigation.position} of {navigation.total}}
}
From 9b5c6db0d0b00c569f607656fb581096496d46a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Fri, 20 Nov 2026 09:50:54 +0100 Subject: [PATCH 173/415] Fix: write the generated media before bundling a frontend-only change The scoped PR checks skipped the generate step unless metadata changed, but the bundle reads public/module-media, so a PR touching only src/components failed build:bundle with a missing thumbnail. Co-Authored-By: Claude Sonnet 5.5 --- scripts/check.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/check.mjs b/scripts/check.mjs index 7739c23ea3..ef162eda2d 100644 --- a/scripts/check.mjs +++ b/scripts/check.mjs @@ -129,7 +129,8 @@ if (!buildOnly && !suiteOnly && !documentationOnly && passed && (!scope || scope try { console.log(checkBaseSize(root)) } catch (error) { console.error('Base size: ' + error.message); passed = false } } // Finish generated notice/catalog/media writes before lint, tests, typecheck or bundling read them. -if (passed && !documentationOnly && plan.metadata) passed = await run('licenses:generate') && await run('machines:generate') && await run('modules:generate') +// The bundle imports the generated media too, so a frontend-only change needs the writes as much as a module change does. +if (passed && !documentationOnly && (plan.metadata || plan.bundle)) passed = await run('licenses:generate') && await run('machines:generate') && await run('modules:generate') // Every path, including documentation-only checks and release builds, requires current-version notes and documents within their size. if (passed && !suiteOnly) passed = await changelogs() // In a pull request's CI run, a contributor's module pull request carries no check that judges modules and no base change; From 17e795dc8ffcd4501edef29d0b24f8059694b39a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Fri, 20 Nov 2026 09:52:06 +0100 Subject: [PATCH 174/415] Docs: on the owner's computer a test Keeps on the card in the unit without asking The owner, 20 November 2026: no prompt to insert a scrap card. A session records the kept set and the flashed base before a Keep and puts the set back after, checking the inventory. Flashing and power cycles stay his. Co-Authored-By: Claude Opus 5.5 --- .agents/skills/modwerk-discord/SKILL.md | 6 +++--- .agents/skills/modwerk-maintain/SKILL.md | 2 +- .agents/skills/modwerk-test-on-unit/SKILL.md | 2 +- .claude/skills/modwerk-discord/SKILL.md | 6 +++--- .claude/skills/modwerk-maintain/SKILL.md | 2 +- .claude/skills/modwerk-test-on-unit/SKILL.md | 2 +- docs/MAINTENANCE.md | 2 +- docs/OWNER_OPERATIONS.md | 2 +- 8 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.agents/skills/modwerk-discord/SKILL.md b/.agents/skills/modwerk-discord/SKILL.md index f180bfdfdf..d676096f19 100644 --- a/.agents/skills/modwerk-discord/SKILL.md +++ b/.agents/skills/modwerk-discord/SKILL.md @@ -72,9 +72,9 @@ these limits: same base, module versions, patterns and steps. Never install a package, OS image or project a tester attached. - The emulator first for screens, menus, crashes and freezes; the unit for - sound, timing, load and USB. On the unit, only trials that roll back - (`npm run device:test`, or `npm run device -- try` without `--accept`): no - SAVE, Keep or flash, and ask the owner for a power cycle. + sound, timing, load and USB. On the unit, trials that roll back + (`npm run device:test`, or `npm run device -- try` without `--accept`); a + Keep as `docs/OWNER_OPERATIONS.md` says; no SAVE or flash, and ask the owner for a power cycle. - A read-only remote session on the tester's own unit (`docs/FRONTEND_MCP.md#a-members-unit-through-a-remote-session`) reads its status, load and log. Its reason reaches the tester word for word, so the diff --git a/.agents/skills/modwerk-maintain/SKILL.md b/.agents/skills/modwerk-maintain/SKILL.md index 1d242a0b95..34495899ee 100644 --- a/.agents/skills/modwerk-maintain/SKILL.md +++ b/.agents/skills/modwerk-maintain/SKILL.md @@ -11,4 +11,4 @@ Otherwise run the pass in `docs/MAINTENANCE.md` exactly. It holds the steps, eac - With an argument, run only that worker. - Text pasted with the command, such as Discord feedback, goes to the beta worker. - Start from the newest briefing in `~/.cache/modwerk-local/maintain/`, and write today's there. -- Nothing is merged, closed, declined, posted, or run on the emulator without the owner's yes; the unit is used as `docs/OWNER_OPERATIONS.md` says (a Keep, flash or power cycle needs his yes). +- Nothing is merged, closed, declined, posted, or run on the emulator without the owner's yes; the unit is used as `docs/OWNER_OPERATIONS.md` says (a flash or power cycle needs his yes). diff --git a/.agents/skills/modwerk-test-on-unit/SKILL.md b/.agents/skills/modwerk-test-on-unit/SKILL.md index 15bfb870e2..7cce716670 100644 --- a/.agents/skills/modwerk-test-on-unit/SKILL.md +++ b/.agents/skills/modwerk-test-on-unit/SKILL.md @@ -19,7 +19,7 @@ The order is fixed: your tests on the unit first, then the developer's. A build - reach every control and screen by the button steps its README gives, and take a `png:` screenshot of each to compare with the README and its UI claims; - record MAIN and CUE over USB (`rec`) with a sustained sound and check for dropouts (runs of exact zeros, a block played twice). This finds faults; it does not judge the sound. - **Put it back** after the steps by hand: Undo, reload the Part, then check the active identity, the inventory and the Part against what you read in step 2. - - **The release run** is `npm run device:qualify -- --keeps-ok --testing-entry run.md `. It Keeps each install and removal, which rewrites the card's kept set: only with the developer's OK for exactly that, after noting the flashed set. + - **The release run** is `npm run device:qualify -- --keeps-ok --testing-entry run.md `. It Keeps each install and removal, which rewrites the card's kept set: only with the developer's OK for exactly that (standing on the owner's computer, `docs/OWNER_OPERATIONS.md`), after noting the flashed set. - On the flashed base the driving steps are refused: run what the MCP offers (status, trial, load, Undo) and list the rest as not run. - **On the Analog Rytm MKII** the link is SysEx in development bases and `device:test` and the MCP do not reach it yet. Write a case for each README claim in `sdk/machines/analog-rytm-mkii/tools/cases//`, run them on rytm-emu, have them reviewed independently, then RAM-boot the test image (`rytm_link.py ramboot`, nothing written to the flash) and run `rytm_test.py unit` in a scratch project (`sdk/machines/analog-rytm-mkii/TEST_RUNNER.md`, `LINK.md`). Tell the developer beforehand how many restarts are coming; a power cycle brings the flashed base back. - A failure stops the stage: put the unit back, fix it, and start stage 1 again on the new build. diff --git a/.claude/skills/modwerk-discord/SKILL.md b/.claude/skills/modwerk-discord/SKILL.md index f180bfdfdf..d676096f19 100644 --- a/.claude/skills/modwerk-discord/SKILL.md +++ b/.claude/skills/modwerk-discord/SKILL.md @@ -72,9 +72,9 @@ these limits: same base, module versions, patterns and steps. Never install a package, OS image or project a tester attached. - The emulator first for screens, menus, crashes and freezes; the unit for - sound, timing, load and USB. On the unit, only trials that roll back - (`npm run device:test`, or `npm run device -- try` without `--accept`): no - SAVE, Keep or flash, and ask the owner for a power cycle. + sound, timing, load and USB. On the unit, trials that roll back + (`npm run device:test`, or `npm run device -- try` without `--accept`); a + Keep as `docs/OWNER_OPERATIONS.md` says; no SAVE or flash, and ask the owner for a power cycle. - A read-only remote session on the tester's own unit (`docs/FRONTEND_MCP.md#a-members-unit-through-a-remote-session`) reads its status, load and log. Its reason reaches the tester word for word, so the diff --git a/.claude/skills/modwerk-maintain/SKILL.md b/.claude/skills/modwerk-maintain/SKILL.md index 1d242a0b95..34495899ee 100644 --- a/.claude/skills/modwerk-maintain/SKILL.md +++ b/.claude/skills/modwerk-maintain/SKILL.md @@ -11,4 +11,4 @@ Otherwise run the pass in `docs/MAINTENANCE.md` exactly. It holds the steps, eac - With an argument, run only that worker. - Text pasted with the command, such as Discord feedback, goes to the beta worker. - Start from the newest briefing in `~/.cache/modwerk-local/maintain/`, and write today's there. -- Nothing is merged, closed, declined, posted, or run on the emulator without the owner's yes; the unit is used as `docs/OWNER_OPERATIONS.md` says (a Keep, flash or power cycle needs his yes). +- Nothing is merged, closed, declined, posted, or run on the emulator without the owner's yes; the unit is used as `docs/OWNER_OPERATIONS.md` says (a flash or power cycle needs his yes). diff --git a/.claude/skills/modwerk-test-on-unit/SKILL.md b/.claude/skills/modwerk-test-on-unit/SKILL.md index 15bfb870e2..7cce716670 100644 --- a/.claude/skills/modwerk-test-on-unit/SKILL.md +++ b/.claude/skills/modwerk-test-on-unit/SKILL.md @@ -19,7 +19,7 @@ The order is fixed: your tests on the unit first, then the developer's. A build - reach every control and screen by the button steps its README gives, and take a `png:` screenshot of each to compare with the README and its UI claims; - record MAIN and CUE over USB (`rec`) with a sustained sound and check for dropouts (runs of exact zeros, a block played twice). This finds faults; it does not judge the sound. - **Put it back** after the steps by hand: Undo, reload the Part, then check the active identity, the inventory and the Part against what you read in step 2. - - **The release run** is `npm run device:qualify -- --keeps-ok --testing-entry run.md `. It Keeps each install and removal, which rewrites the card's kept set: only with the developer's OK for exactly that, after noting the flashed set. + - **The release run** is `npm run device:qualify -- --keeps-ok --testing-entry run.md `. It Keeps each install and removal, which rewrites the card's kept set: only with the developer's OK for exactly that (standing on the owner's computer, `docs/OWNER_OPERATIONS.md`), after noting the flashed set. - On the flashed base the driving steps are refused: run what the MCP offers (status, trial, load, Undo) and list the rest as not run. - **On the Analog Rytm MKII** the link is SysEx in development bases and `device:test` and the MCP do not reach it yet. Write a case for each README claim in `sdk/machines/analog-rytm-mkii/tools/cases//`, run them on rytm-emu, have them reviewed independently, then RAM-boot the test image (`rytm_link.py ramboot`, nothing written to the flash) and run `rytm_test.py unit` in a scratch project (`sdk/machines/analog-rytm-mkii/TEST_RUNNER.md`, `LINK.md`). Tell the developer beforehand how many restarts are coming; a power cycle brings the flashed base back. - A failure stops the stage: put the unit back, fix it, and start stage 1 again on the new build. diff --git a/docs/MAINTENANCE.md b/docs/MAINTENANCE.md index a6e38804ca..fd47eef992 100644 --- a/docs/MAINTENANCE.md +++ b/docs/MAINTENANCE.md @@ -12,7 +12,7 @@ The [maintenance bot](MAINTENANCE_BOT.md) runs the routine part of the pull requ 4. **Check the workers against each other**, then write one briefing, in chat and to `~/.cache/modwerk-local/maintain/.md`. A claim one worker makes can undo another's draft (one warned of a patch overlap that another's reply walked into; the module's build file settled it), so verify a contradiction before it reaches the owner. Put first anything that can't wait (a bot run or a deadline within the hour), then the real calls, each with a recommendation the owner can answer in a word ("merge #N?", "decline #N?"), then one routine batch the owner approves whole or strikes items from: standard closures with their reasons, and drafts to post. Then what was done and what waits on whom. Tester names and diagnostics stay in that file and the chat, never on GitHub. 5. **Carry out what the owner approves**, in the same session. An approval covers only what it names. First compare each target's last update with the briefing time and read again what moved: authors close, push and open pull requests meanwhile. -A worker may, without asking: read anything, run `diagnostics:pull`, build and test in its own worktree behind the check lock, refresh and fix the branch of a pull request the owner opened (unless another session is working on it), use the unit for work that puts it back ([OWNER_OPERATIONS.md](OWNER_OPERATIONS.md)), and ask a reporter for missing details. Everything else is a decision in the briefing: merging, closing, review comments and follow-ups to contributors, pushing to a contributor's branch, a Keep, flash or power cycle on the unit, production writes, secrets and mail. Drafts for contributors and testers are plain and friendly, in the owner's voice; post each from a file (`--body-file`) in bash, since zsh does not split `set -- $spec` in a loop. Every session on this computer shares one connected Octatrack and one emulator: a worker starts no `ot_emu` (or digiemu, rytm-emu) unless the owner says it is free, and then only one worker at a time, and takes the unit only through its queue ([taking turns](OCTATRACK_DRIVING.md#taking-turns-on-the-unit)). +A worker may, without asking: read anything, run `diagnostics:pull`, build and test in its own worktree behind the check lock, refresh and fix the branch of a pull request the owner opened (unless another session is working on it), use the unit as [OWNER_OPERATIONS.md](OWNER_OPERATIONS.md) says, and ask a reporter for missing details. Everything else is a decision in the briefing: merging, closing, review comments and follow-ups to contributors, pushing to a contributor's branch, a flash or power cycle of the unit, production writes, secrets and mail. Drafts for contributors and testers are plain and friendly, in the owner's voice; post each from a file (`--body-file`) in bash, since zsh does not split `set -- $spec` in a loop. Every session on this computer shares one connected Octatrack and one emulator: a worker starts no `ot_emu` (or digiemu, rytm-emu) unless the owner says it is free, and then only one worker at a time, and takes the unit only through its queue ([taking turns](OCTATRACK_DRIVING.md#taking-turns-on-the-unit)). ## Pull request worker diff --git a/docs/OWNER_OPERATIONS.md b/docs/OWNER_OPERATIONS.md index 7f19a86f17..6fee74a0f0 100644 --- a/docs/OWNER_OPERATIONS.md +++ b/docs/OWNER_OPERATIONS.md @@ -5,7 +5,7 @@ Running the live Modwerk site is the owner's work: the complete issue-fix and re ## On the owner's computer - Other agents often work on this computer at the same time, and checks or native builds running in parallel fill the disk and slow each other down. `npm run check`, `pr:ready` and `sdk:check` wait for a free slot by themselves (`npm run slots`, [DEVELOPER_WORKFLOW.md](DEVELOPER_WORKFLOW.md#make-it-mergeable)); queue other native builds behind one machine-wide lock, for example `lockf -k /tmp/modwerk-check.lock `. There is also one connected Octatrack and one emulator for all of them: one session uses either at a time. The device commands queue for the unit by themselves, so nobody waits for the owner to say it is free: `npm run unit -- status` shows who has it, and `npm run unit -- hold` keeps it while the owner plays it by hand ([taking turns on the unit](OCTATRACK_DRIVING.md#taking-turns-on-the-unit)). -- The unit on this computer is a development unit, and agents need no OK from the owner to use it (owner, 20 November 2026): a session takes its turn through the queue and runs, without asking, what puts the unit back, such as rolled-back trials, `device:test`, `device:price`, RAM boots of development builds, driving it and captures. A Keep (`device:qualify` Keeps too), a flash and a power cycle still need his explicit yes, and an agent never power-cycles the unit itself. +- The unit on this computer is a development unit, and agents need no OK from the owner to use it (owner, 20 November 2026): a session takes its turn through the queue and runs, without asking, rolled-back trials, `device:test`, `device:price`, RAM boots of development builds, driving it and captures. It also Keeps without asking when a test needs it (`device:qualify` does), on the card that is in the unit: never ask him to insert or swap a card. Before the first Keep it records the kept set (`inventory`) and the flashed base's identity, and when it is done it puts that set back and checks the inventory against the record. Flashing stays his, and so do power cycles: an agent never power-cycles the unit itself and asks for one only when a test cannot go on without it. - Disk space on the owner's computer runs out. Once a pull request you opened is merged or closed, remove its worktree with `git worktree remove` and delete the temporary folders you created for it, such as builds, renders and logs under `/private/tmp`. Keep anything with uncommitted or unpushed work, and leave folders another session created. ## Email sendouts From a627c06637909ba4fc6bbaf3454ea756504f20d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Fri, 20 Nov 2026 09:53:06 +0100 Subject: [PATCH 175/415] Test procedure: the step notes follow the steps table, then the layers and the two targets Co-Authored-By: Claude Opus 5.5 --- docs/TEST_PROCEDURE.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/TEST_PROCEDURE.md b/docs/TEST_PROCEDURE.md index 87d02817dd..aabc12c11c 100644 --- a/docs/TEST_PROCEDURE.md +++ b/docs/TEST_PROCEDURE.md @@ -41,6 +41,18 @@ Every step applies to modules and bases alike; what differs for a base is in eac Each step proves only what it ran. Steps 1 to 5 prove the code paths they exercised, never audio, timing, a saved project or a power cycle. Steps 6 to 11 on the unit are hardware evidence for what they measured, never for the sound or for persistence; on the emulator they are not hardware evidence at all. Step 12 is the developer's. +- **1-2.** The doctor runs the module's host tests, the contract, the performance record and the compatibility lines. A draft is judged beside every other module by the doctor itself. +- **3. A rebuild starts again at step 1.** The record names the source revision (and says when the tree had uncommitted changes) and the package's SHA-256. Every later result is about this build only. +- **4.** The check fails a cycle-scan record whose module source changed since its scan. After changing a module's DSP code, scan it again on a computer with the scan's tools: `node scripts/cycle-scan.mjs record ` ([sdk/cycle-scan](../sdk/cycle-scan/README.md), [MODULE_PERFORMANCE.md](MODULE_PERFORMANCE.md)). +- **5.** Start `ot_emu` with `--usb-host SOCK` on a development twin of the base, from [the adapted emulator builder](../scripts/octatrack-emulator/build.py) (the plain port refused the trial with loader refusal 5, 20 November 2026). A ColdFire module needs no `--dsp`, which runs about ten times faster; give the base 20 s after the socket appears. What passes here can still fail on the unit: read [what `ot_emu` does not show](OCTATRACK_HARDWARE_TRAPS.md#the-emulator-and-the-tools). +- **6-10.** The unit steps go through the device commands and keep [the driving rules](OCTATRACK_DRIVING.md): a development base, transport stopped, a bank and Part whose working copy equals its saved one. Nothing is kept: every install is a trial that rolls back. When the repository has the unit queue (its `unit` script), the runner takes the unit for steps 6 to 10 as one turn. +- **8.** The fast seeded soak needs the MIDI bridge on the computer the unit is plugged into (`scripts/octatrack-midi-bridge.py`) and the project's MIDI receive settings ([A fast soak](OCTATRACK_DRIVING.md)). A failure prints the seed and a log that replays it (`--replay FILE`). In a checkout without `scripts/octatrack-soak.mjs`, a module soaks inside step 7 (`device:test --soak 120`) instead. +- **9.** "At rest" is the module installed and used nowhere: what every player pays for having it. Judge both figures against [MODULE_PERFORMANCE.md](MODULE_PERFORMANCE.md); a base-bound package is left out, since a development twin does not trust it. +- **11.** Reach every control and screen by the README's button steps and take a `png:` screenshot of each. Record MAIN and CUE over USB with a sustained sound and look for runs of exact zeros or a block played twice. Then Undo and check the inventory again ([/modwerk-test-on-unit](../.claude/skills/modwerk-test-on-unit/SKILL.md)). +- **12.** The developer here is the submitter: the person whose agent ran steps 1 to 11, at their own unit, not a reviewer. Only after 1 to 11 passed on this build. Give the developer the button steps and what they should see or hear for each item the record lists: the sound, timing by ear, MIDI and scenes, two instances, Part and project reload, the Keep and the power cycle. The Keep, the power cycle, a flash and listening are theirs; the agent never does them without their OK. A fault they find is fixed, and the procedure starts again on the new build. + +A machine without a USB link runs steps 1 to 3 and its emulator; step 12 then carries all the hardware evidence ([/modwerk-test-on-unit](../.claude/skills/modwerk-test-on-unit/SKILL.md)). + ## The layers **Prove each claim on the lowest layer that can prove it.** The emulator and the unit are slow and scarce: keep them for what the layers below cannot show. A check that a host test or the contract already makes is not repeated per module in the emulator or on the unit. @@ -73,18 +85,6 @@ npm run test:procedure -- --target emulator --share /tmp/emu-share.sock --d Every result is labelled emulator, the unit queue is left alone, and step 9 is not run: the emulator's load figures are not the unit's. The switch runs the same cases on both targets; it never replaces the unit. On 20 November 2026 temp-save's steps 6 and the trial of step 7 ran this way; `device:test` then stopped at a Part switch on its 40 s request timeout, which is set for the unit, so the emulator target is a rehearsal until `device:test` takes slower targets. -- **1-2.** The doctor runs the module's host tests, the contract, the performance record and the compatibility lines. A draft is judged beside every other module by the doctor itself. -- **3. A rebuild starts again at step 1.** The record names the source revision (and says when the tree had uncommitted changes) and the package's SHA-256. Every later result is about this build only. -- **4.** The check fails a cycle-scan record whose module source changed since its scan. After changing a module's DSP code, scan it again on a computer with the scan's tools: `node scripts/cycle-scan.mjs record ` ([sdk/cycle-scan](../sdk/cycle-scan/README.md), [MODULE_PERFORMANCE.md](MODULE_PERFORMANCE.md)). -- **5.** Start `ot_emu` with `--usb-host SOCK` on a development twin of the base, from [the adapted emulator builder](../scripts/octatrack-emulator/build.py) (the plain port refused the trial with loader refusal 5, 20 November 2026). A ColdFire module needs no `--dsp`, which runs about ten times faster; give the base 20 s after the socket appears. What passes here can still fail on the unit: read [what `ot_emu` does not show](OCTATRACK_HARDWARE_TRAPS.md#the-emulator-and-the-tools). -- **6-10.** The unit steps go through the device commands and keep [the driving rules](OCTATRACK_DRIVING.md): a development base, transport stopped, a bank and Part whose working copy equals its saved one. Nothing is kept: every install is a trial that rolls back. When the repository has the unit queue (its `unit` script), the runner takes the unit for steps 6 to 10 as one turn. -- **8.** The fast seeded soak needs the MIDI bridge on the computer the unit is plugged into (`scripts/octatrack-midi-bridge.py`) and the project's MIDI receive settings ([A fast soak](OCTATRACK_DRIVING.md)). A failure prints the seed and a log that replays it (`--replay FILE`). In a checkout without `scripts/octatrack-soak.mjs`, a module soaks inside step 7 (`device:test --soak 120`) instead. -- **9.** "At rest" is the module installed and used nowhere: what every player pays for having it. Judge both figures against [MODULE_PERFORMANCE.md](MODULE_PERFORMANCE.md); a base-bound package is left out, since a development twin does not trust it. -- **11.** Reach every control and screen by the README's button steps and take a `png:` screenshot of each. Record MAIN and CUE over USB with a sustained sound and look for runs of exact zeros or a block played twice. Then Undo and check the inventory again ([/modwerk-test-on-unit](../.claude/skills/modwerk-test-on-unit/SKILL.md)). -- **12.** The developer here is the submitter: the person whose agent ran steps 1 to 11, at their own unit, not a reviewer. Only after 1 to 11 passed on this build. Give the developer the button steps and what they should see or hear for each item the record lists: the sound, timing by ear, MIDI and scenes, two instances, Part and project reload, the Keep and the power cycle. The Keep, the power cycle, a flash and listening are theirs; the agent never does them without their OK. A fault they find is fixed, and the procedure starts again on the new build. - -A machine without a USB link runs steps 1 to 3 and its emulator; step 12 then carries all the hardware evidence ([/modwerk-test-on-unit](../.claude/skills/modwerk-test-on-unit/SKILL.md)). - ## What a base adds A base carries every installed module, so it is tested as a set ([Change a base](DEVELOPER_WORKFLOW.md#change-a-base)). Each submitter runs these for their own change, on their own unit, before it joins the machine's cumulative draft, and adds their record to it: From 854b2ebeb98d2ac7c66f880cc1f2f35a58fac3e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Fri, 20 Nov 2026 09:53:07 +0100 Subject: [PATCH 176/415] Octatrack base: ev_usb_frame, the frame interrupt's block for a module's USB function A USB Audio module produces its block in the frame interrupt, where usbaudio.s's audio_frame_shim sits when USB Audio is linked into a base (0x4000d9a0). A base that takes a module's function now owns that site with a shim of its own and raises ev_usb_frame there (hook 59), walking the row in usb_function.c like the three other USB hooks. A base that links USB Audio in leaves the site to it, so no site has two owners; that is why the hook is raised by the base and not declared as a stock site in events.json. The example function and the emulator verifier count it. Host tests pass. In ot_emu with --frame (a development base with USB MIDI alone, built from this commit on 20 November 2026) the verifier passes: the trial stays open across the reconnect, the four hooks run, rollback, keep and removal. Emulator only; not on a unit. Co-Authored-By: Claude Fable 5.2 --- scripts/verify-octatrack-usb-function.mjs | 4 ++- sdk/machines/octatrack/HOOKS.md | 2 ++ .../octatrack/elekloader/build_core.py | 2 +- .../elekloader/examples/usb_function.c | 11 +++++--- .../octatrack/elekloader/runtime_events.h | 18 ++++++------ .../octatrack/elekloader/runtime_events.s | 6 ++++ .../octatrack/elekloader/test_usb_function.c | 11 +++++--- .../octatrack/elekloader/usb_function.c | 6 ++-- .../octatrack/elekloader/usb_function.h | 2 ++ sdk/machines/octatrack/events.json | 16 +++++++++++ .../octatrack/include/modwerk_events.h | 4 +++ .../module-adapters/base_usb_functions.py | 28 ++++++++++++++++++- sdk/machines/octatrack/site-events.json | 5 ++++ sdk/tests/test_usb_function.py | 4 +-- 14 files changed, 95 insertions(+), 24 deletions(-) diff --git a/scripts/verify-octatrack-usb-function.mjs b/scripts/verify-octatrack-usb-function.mjs index 36bfcf7585..a39f41efbd 100644 --- a/scripts/verify-octatrack-usb-function.mjs +++ b/scripts/verify-octatrack-usb-function.mjs @@ -3,7 +3,8 @@ // // python3 -B sdk/runtime/loader/build.py sdk/machines/octatrack/elekloader/examples/usb_function.c -o /private/usb_function.mwrm \ // --subscribe ot_usb_functions:usb_function:50 --subscribe ev_usb_isr:usb_function_isr:50 \ -// --subscribe ev_usb_bus_end:usb_function_bus_end:50 --subscribe ev_usb_control:usb_function_control:50 +// --subscribe ev_usb_bus_end:usb_function_bus_end:50 --subscribe ev_usb_control:usb_function_control:50 \ +// --subscribe ev_usb_frame:usb_function_frame:50 // ot_emu --image BUILD/MAIN.raw --usb-host /tmp/ot-usb.sock --ms 900000 & # the adapted ot_emu, one run a check // node scripts/verify-octatrack-usb-function.mjs /tmp/ot-usb.sock /private/usb_function.mwrm [--linked] // @@ -110,6 +111,7 @@ describes(now, true) let d = await diag() assert.ok(d.active, 'the trial is still open and the module still runs after the base’s own reconnect') assert.ok(d.value >>> 24 >= 1 && (d.value & 1) === 1, 'ev_usb_bus_end and ev_usb_isr ran') +assert.equal(d.value & 2, 2, 'ev_usb_frame ran: the frame interrupt reaches the module') // A class request to interface 4 is the function's, one to interface 5 is nobody's: both stall, one by its own hand. assert.equal(await bench.controlIn(0xa1, 0x70, 0, 4, 1), null) assert.equal(await bench.controlIn(0xa1, 0x70, 0, 5, 1), null) diff --git a/sdk/machines/octatrack/HOOKS.md b/sdk/machines/octatrack/HOOKS.md index f2d6d22cc8..f3a550939d 100644 --- a/sdk/machines/octatrack/HOOKS.md +++ b/sdk/machines/octatrack/HOOKS.md @@ -88,6 +88,7 @@ next base build, which renames them; the base loads them by those paths. | `ev_usb_bus_end` | call | none: the base raises it | a USB bus reset or the end of the USB session (the cable pulled, or the base's own reconnect after ot_usb_functions changed), before the base ends USB MIDI's session and stock resets or stops the controller; no stock site: the base raises it from its own shims at 0x4001e91c and 0x4001e952 | `unsigned f(void)` | Every handler runs; the answers are ignored. Put your interfaces back to alternate setting 0 and stop queueing on your endpoint: the host configures the unit afresh afterwards. d2-d7/a2-a6 must be kept. | lower first, then module id; every handler runs, so the order does not change the result. 10-90. | the USB interrupt: short, no firmware call that can block | | `ev_usb_control` | call | none: the base raises it | a control request that neither stock nor the base's vendor interface answers, before stock stalls it; no stock site: the base raises it from its own shim at stock's unknown-request tail (0x4001de64) | `unsigned f(void)` | Read the SETUP packet at 0x46c8ce08. Return 0 when the request is not yours: with every answer 0 stock stalls it, as before. Otherwise answer it yourself before you return (stock's usb_ep0_send for an IN reply, a data stage you prime and finish in ev_usb_isr, or a stall of both directions) and return nonzero: the base then leaves through stock's done path and neither sends nor stalls. Claim only requests addressed to your own interfaces and entities: every handler runs, so two that answered one request would both act. d2-d7/a2-a6 must be kept. | lower first, then module id; every handler runs, so the order does not change the result. 10-90. | the USB interrupt: short, no firmware call that can block | | `ot_usb_functions` | table | none | the base builds the USB configuration descriptors a host reads: its own functions (mass storage, the vendor interface, USB MIDI), then the contributed function's interfaces | `32-byte record` | Contribute one struct modwerk_usb_function. The base checks the whole record at admission (ABI and size, 1-4 interfaces, endpoint 3 alone, four blocks of `length` bytes inside the package's initialized image, the configuration within its 512-byte slot) and refuses the package otherwise; a base that links USB Audio in (a development twin) refuses every function. When the table changes the host has to read the descriptors again, so the base reconnects by itself: it waits until the control endpoint is idle, takes the unit off the bus for half a second, rewrites the four configurations and comes back. A sync or trial stays open across that reconnect (the base's own disconnect undoes nothing), and the host has 20 s to speak to the vendor interface again before it counts as unplugged. A function that leaves has its endpoint flushed and disabled at the switch, before its memory can be reused. Its interrupt, bus-end and class-request work goes through ev_usb_isr, ev_usb_bus_end and ev_usb_control. SET_INTERFACE, GET_INTERFACE and the audio frame are not hooks yet: a function patches those stock sites itself, as its own. | lower first, then module id; the table holds one function. | the loader's switch (masked) and the sys task's tick; the record is copied, never called | +| `ev_usb_frame` | call | none: the base raises it | every 16-sample block of the frame interrupt, at the point where USB Audio's producer runs when it is linked into a base, before stock clears its word at 0x46104d4e; no stock site: the base raises it from its own shim at 0x4000d9a0, in a base that takes a module's USB function | `unsigned f(void)` | Every handler runs; the answers are ignored. A USB function produces its block here: it reads the frame's read-back words, fills its ring and primes its own endpoint. Return at once while the host has not opened your stream: this runs every block, playing or not. d2-d7/a2-a6 must be kept, as C keeps them; the base keeps d0-d1/a0-a1. | lower first, then module id; every handler runs, so the order does not change the result. 10-90. | the frame interrupt: short, no firmware call that can block, the EMAC kept as found | ## Reviewed subscribers @@ -213,6 +214,7 @@ A raised hook has no stock site: these modules call the base's entry and act on - `ev_usb_bus_end`: A notification: each handler resets only its own interfaces. No module subscribes yet: USB Audio's audio_reset_shim and audio_sessend_shim do this at the same two points when it is linked into a base. - `ev_usb_control`: Requests are told apart by the interface or entity they address, and ot_usb_functions holds one function, so at most one handler answers. No module subscribes yet: USB Audio's audio_ctrl_shim answers its clock source's class requests at the same point when it is linked into a base. - `ot_usb_functions`: One function at a time: the controller has one endpoint left (3) and every authored USB Audio layout uses it, so a second function could not share the configuration. The USB Audio module is the first to contribute; until its package is published no module does. +- `ev_usb_frame`: A function owns its ring and endpoint alone (ot_usb_functions holds one function). No module subscribes yet: USB Audio's audio_frame_shim does this work at the same site when it is linked into a base, and such a base leaves the site to it. ## The sites diff --git a/sdk/machines/octatrack/elekloader/build_core.py b/sdk/machines/octatrack/elekloader/build_core.py index 52dd25398d..46f6030675 100644 --- a/sdk/machines/octatrack/elekloader/build_core.py +++ b/sdk/machines/octatrack/elekloader/build_core.py @@ -2191,7 +2191,7 @@ def resident_factory(tag, hi): recipe['sites'].append(dict({k: v for k, v in site.items() if k != 'length'}, addr=hex(addr), stock=stock_at(addr, site['length']).hex())) recipe['sites'] += (usb_profiles.sites(usb, usb_functions, stock_at, args.usb_audio) if usb_profiles else - usb_functions.sites(usb, stock_at, args.usb_audio) if usb_functions else usb.sites(stock_at, args.dev)) + usb_functions.sites(usb, stock_at, args.usb_audio, slots=usb_function_slots) if usb_functions else usb.sites(stock_at, args.dev)) # RAM boot: the gate at the OS entry, and the DSP park in both payloads. at = BOOT_GATE[0] - device.main_load if image[at:at+6].hex() != BOOT_GATE[1]: diff --git a/sdk/machines/octatrack/elekloader/examples/usb_function.c b/sdk/machines/octatrack/elekloader/examples/usb_function.c index 2eae84761a..aa2b7dfa39 100644 --- a/sdk/machines/octatrack/elekloader/examples/usb_function.c +++ b/sdk/machines/octatrack/elekloader/examples/usb_function.c @@ -1,11 +1,12 @@ /* SPDX-License-Identifier: GPL-3.0-or-later * The smallest module that adds a USB function to the Modwerk base (events.json ot_usb_functions), and the fixture * of scripts/verify-octatrack-usb-function.mjs. It contributes two vendor-class interfaces, 4 and 5, with one bulk - * IN endpoint 3 that it never uses, and subscribes to the three hooks the base raises for a function: + * IN endpoint 3 that it never uses, and subscribes to the four hooks the base raises for a function: * * python3 -B sdk/runtime/loader/build.py sdk/machines/octatrack/elekloader/examples/usb_function.c \ * -o usb_function.mwrm --subscribe ot_usb_functions:usb_function:50 --subscribe ev_usb_isr:usb_function_isr:50 \ - * --subscribe ev_usb_bus_end:usb_function_bus_end:50 --subscribe ev_usb_control:usb_function_control:50 + * --subscribe ev_usb_bus_end:usb_function_bus_end:50 --subscribe ev_usb_control:usb_function_control:50 \ + * --subscribe ev_usb_frame:usb_function_frame:50 * * Installing it makes the base reconnect: the host then reads a configuration with six interfaces. DIAG's value * reads back what the hooks saw: bus ends in the top byte, then the class requests it answered, those it was @@ -28,11 +29,13 @@ static const uint8_t full[] = FUNCTION(64, 0), high[] = FUNCTION(0, 2); const struct modwerk_usb_function usb_function = {MODWERK_USB_FUNCTION_ABI, sizeof usb_function, 2, sizeof full, 0x00080000u /* endpoint 3 IN */, full, high, full, high}; -static volatile uint32_t interrupts, ends, asked, answered; +static volatile uint32_t interrupts, ends, asked, answered, frames; /* The USB interrupt: a function retires its own endpoint's completions here. This one only counts. */ unsigned usb_function_isr(void) { interrupts = interrupts + 1; return 0; } /* A bus reset, the cable pulled or the base's own reconnect: back to alternate setting 0. */ +/* The frame interrupt's block: a function produces its audio here. This one only counts. */ +unsigned usb_function_frame(void) { frames = frames + 1; return 0; } unsigned usb_function_bus_end(void) { ends = ends + 1; return 0; } /* A request stock and the base do not know. A class IN request 0x70 to interface 4 is this function's: it refuses * it itself, both ways, and says so; every other request is not its own. */ @@ -46,5 +49,5 @@ unsigned usb_function_control(void) } void module_tick(struct modwerk_runtime_api *api) { - api->value = (ends & 0xffu) << 24 | (answered & 0xffu) << 16 | (asked & 0xffu) << 8 | (interrupts ? 1u : 0u); + api->value = (ends & 0xffu) << 24 | (answered & 0xffu) << 16 | (asked & 0xffu) << 8 | (frames ? 2u : 0u) | (interrupts ? 1u : 0u); } diff --git a/sdk/machines/octatrack/elekloader/runtime_events.h b/sdk/machines/octatrack/elekloader/runtime_events.h index ae1f3e81bd..67d2fbdfe5 100644 --- a/sdk/machines/octatrack/elekloader/runtime_events.h +++ b/sdk/machines/octatrack/elekloader/runtime_events.h @@ -1,22 +1,22 @@ /* SPDX-License-Identifier: GPL-3.0-or-later * Generated by sdk/machines/octatrack/events.py from events.json: do not edit. * The Octatrack's events at base-owned stock sites and its tables, as hook - * indices after loader.h's RUNTIME_ENC: 4 ev_play_increment, 5 ev_voice_bind, 6 ev_voice_bind_run, 7 ev_mute_keep, 8 ev_midi_note_on, 9 ev_midi_note_off, 10 ev_octave_key, 11 ev_octave_number, 12 ev_settings_sanitise, 13 ev_project_defaults, 14 ev_keyboard_draw, 15 ev_chromatic_release, 16 ev_chromatic_held, 17 ev_chromatic_pitch, 18 ev_chromatic_trig, 19 ev_chromatic_record, 20 ev_chromatic_recorded, 21 ev_chromatic_locked, 22 ev_chromatic_index, 23 ev_plock_store, 24 ev_knob_store, 25 ev_project_load, 26 ev_project_line, 27 ev_project_write, 28 ot_machines, 29 ot_sequencer_rows, 30 ev_tail_kill, 31 ot_midi_generators, 32 ev_midi_note_key, 33 ev_arp_setup_knob, 34 ev_arp_setup_text, 35 ev_trig_muted, 36 ot_sample_editor_actions, 37 ot_machine_starts, 38 ev_banks_load, 39 ev_banks_loaded, 40 ev_bank_load, 41 ev_bank_loaded, 42 ev_project_new, 43 ev_bank_write, 44 ev_bank_written, 45 ev_project_store, 46 ev_project_stored, 47 ev_project_reload, 48 ev_project_reloaded, 49 ev_part_saved, 50 ev_part_clear, 51 ev_modules_ready, 52 ot_sample_memory, 53 ot_part_menu, 54 ev_in_use, 55 ev_usb_isr, 56 ev_usb_bus_end, 57 ev_usb_control, 58 ot_usb_functions. */ + * indices after loader.h's RUNTIME_ENC: 4 ev_play_increment, 5 ev_voice_bind, 6 ev_voice_bind_run, 7 ev_mute_keep, 8 ev_midi_note_on, 9 ev_midi_note_off, 10 ev_octave_key, 11 ev_octave_number, 12 ev_settings_sanitise, 13 ev_project_defaults, 14 ev_keyboard_draw, 15 ev_chromatic_release, 16 ev_chromatic_held, 17 ev_chromatic_pitch, 18 ev_chromatic_trig, 19 ev_chromatic_record, 20 ev_chromatic_recorded, 21 ev_chromatic_locked, 22 ev_chromatic_index, 23 ev_plock_store, 24 ev_knob_store, 25 ev_project_load, 26 ev_project_line, 27 ev_project_write, 28 ot_machines, 29 ot_sequencer_rows, 30 ev_tail_kill, 31 ot_midi_generators, 32 ev_midi_note_key, 33 ev_arp_setup_knob, 34 ev_arp_setup_text, 35 ev_trig_muted, 36 ot_sample_editor_actions, 37 ot_machine_starts, 38 ev_banks_load, 39 ev_banks_loaded, 40 ev_bank_load, 41 ev_bank_loaded, 42 ev_project_new, 43 ev_bank_write, 44 ev_bank_written, 45 ev_project_store, 46 ev_project_stored, 47 ev_project_reload, 48 ev_project_reloaded, 49 ev_part_saved, 50 ev_part_clear, 51 ev_modules_ready, 52 ot_sample_memory, 53 ot_part_menu, 54 ev_in_use, 55 ev_usb_isr, 56 ev_usb_bus_end, 57 ev_usb_control, 58 ot_usb_functions, 59 ev_usb_frame. */ #ifndef MODWERK_RUNTIME_EVENTS_H #define MODWERK_RUNTIME_EVENTS_H -#define RUNTIME_SITE_EVENTS 55u -#define RUNTIME_SITE_EVENT_SPANS { {0x40004100u, 8u}, {0x40006820u, 8u}, {0x40006820u, 8u}, {0x00000000u, 0u}, {0x4000e746u, 6u}, {0x4000dfd4u, 8u}, {0x40045918u, 8u}, {0x400449beu, 8u}, {0x40010212u, 6u}, {0x40025ac2u, 6u}, {0x40044968u, 8u}, {0x4004fbdeu, 6u}, {0x4004fbfeu, 8u}, {0x4004fc58u, 10u}, {0x4004fc94u, 8u}, {0x4004fce0u, 8u}, {0x4004fd06u, 6u}, {0x4004fd20u, 6u}, {0x40050254u, 8u}, {0x40050e60u, 10u}, {0x40055170u, 6u}, {0x400866ccu, 8u}, {0x400867a2u, 8u}, {0x400888aau, 8u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x40004d0cu, 10u}, {0x00000000u, 0u}, {0x4009fb58u, 6u}, {0x4007a2ecu, 8u}, {0x4007a1ecu, 6u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x40090504u, 8u}, {0x00000000u, 0u}, {0x400905d4u, 8u}, {0x00000000u, 0u}, {0x400909d8u, 10u}, {0x400917c8u, 8u}, {0x00000000u, 0u}, {0x4008ee74u, 8u}, {0x00000000u, 0u}, {0x4008f180u, 8u}, {0x00000000u, 0u}, {0x4004a9c4u, 10u}, {0x4004a9d0u, 8u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x00000000u, 0u} } -#define RUNTIME_SITE_EVENT_ROOM { RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, RUNTIME_MODULES, 16u, 8u, 8u, 8u, RUNTIME_MODULES, 4u, 8u, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, 1u, 7u, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, 1u } -#define RUNTIME_SITE_EVENT_TABLES { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1 } -#define RUNTIME_SITE_EVENT_RESTS { 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } +#define RUNTIME_SITE_EVENTS 56u +#define RUNTIME_SITE_EVENT_SPANS { {0x40004100u, 8u}, {0x40006820u, 8u}, {0x40006820u, 8u}, {0x00000000u, 0u}, {0x4000e746u, 6u}, {0x4000dfd4u, 8u}, {0x40045918u, 8u}, {0x400449beu, 8u}, {0x40010212u, 6u}, {0x40025ac2u, 6u}, {0x40044968u, 8u}, {0x4004fbdeu, 6u}, {0x4004fbfeu, 8u}, {0x4004fc58u, 10u}, {0x4004fc94u, 8u}, {0x4004fce0u, 8u}, {0x4004fd06u, 6u}, {0x4004fd20u, 6u}, {0x40050254u, 8u}, {0x40050e60u, 10u}, {0x40055170u, 6u}, {0x400866ccu, 8u}, {0x400867a2u, 8u}, {0x400888aau, 8u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x40004d0cu, 10u}, {0x00000000u, 0u}, {0x4009fb58u, 6u}, {0x4007a2ecu, 8u}, {0x4007a1ecu, 6u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x40090504u, 8u}, {0x00000000u, 0u}, {0x400905d4u, 8u}, {0x00000000u, 0u}, {0x400909d8u, 10u}, {0x400917c8u, 8u}, {0x00000000u, 0u}, {0x4008ee74u, 8u}, {0x00000000u, 0u}, {0x4008f180u, 8u}, {0x00000000u, 0u}, {0x4004a9c4u, 10u}, {0x4004a9d0u, 8u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x00000000u, 0u} } +#define RUNTIME_SITE_EVENT_ROOM { RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, RUNTIME_MODULES, 16u, 8u, 8u, 8u, RUNTIME_MODULES, 4u, 8u, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, 1u, 7u, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, 1u, RUNTIME_MODULES } +#define RUNTIME_SITE_EVENT_TABLES { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0 } +#define RUNTIME_SITE_EVENT_RESTS { 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } /* the event the base asks each module from the UI tick (loader.c rest_poll) */ #define RUNTIME_SITE_EVENT_IN_USE 50u -#define RUNTIME_SITE_EVENT_WORDS (24u * (RUNTIME_MODULES + 1u) + 268u) -#define RUNTIME_SITE_EVENT_ROWS(r) { (r) + 0u * (RUNTIME_MODULES + 1u) + 0u, (r) + 1u * (RUNTIME_MODULES + 1u) + 0u, (r) + 2u * (RUNTIME_MODULES + 1u) + 0u, (r) + 3u * (RUNTIME_MODULES + 1u) + 0u, (r) + 4u * (RUNTIME_MODULES + 1u) + 0u, (r) + 4u * (RUNTIME_MODULES + 1u) + 9u, (r) + 4u * (RUNTIME_MODULES + 1u) + 18u, (r) + 4u * (RUNTIME_MODULES + 1u) + 27u, (r) + 4u * (RUNTIME_MODULES + 1u) + 36u, (r) + 4u * (RUNTIME_MODULES + 1u) + 45u, (r) + 4u * (RUNTIME_MODULES + 1u) + 54u, (r) + 4u * (RUNTIME_MODULES + 1u) + 63u, (r) + 4u * (RUNTIME_MODULES + 1u) + 72u, (r) + 4u * (RUNTIME_MODULES + 1u) + 81u, (r) + 4u * (RUNTIME_MODULES + 1u) + 90u, (r) + 4u * (RUNTIME_MODULES + 1u) + 99u, (r) + 4u * (RUNTIME_MODULES + 1u) + 108u, (r) + 4u * (RUNTIME_MODULES + 1u) + 117u, (r) + 4u * (RUNTIME_MODULES + 1u) + 126u, (r) + 4u * (RUNTIME_MODULES + 1u) + 135u, (r) + 4u * (RUNTIME_MODULES + 1u) + 144u, (r) + 4u * (RUNTIME_MODULES + 1u) + 153u, (r) + 4u * (RUNTIME_MODULES + 1u) + 162u, (r) + 4u * (RUNTIME_MODULES + 1u) + 171u, (r) + 4u * (RUNTIME_MODULES + 1u) + 180u, (r) + 4u * (RUNTIME_MODULES + 1u) + 189u, (r) + 4u * (RUNTIME_MODULES + 1u) + 198u, (r) + 5u * (RUNTIME_MODULES + 1u) + 198u, (r) + 5u * (RUNTIME_MODULES + 1u) + 215u, (r) + 5u * (RUNTIME_MODULES + 1u) + 224u, (r) + 5u * (RUNTIME_MODULES + 1u) + 233u, (r) + 5u * (RUNTIME_MODULES + 1u) + 242u, (r) + 6u * (RUNTIME_MODULES + 1u) + 242u, (r) + 6u * (RUNTIME_MODULES + 1u) + 247u, (r) + 6u * (RUNTIME_MODULES + 1u) + 256u, (r) + 7u * (RUNTIME_MODULES + 1u) + 256u, (r) + 8u * (RUNTIME_MODULES + 1u) + 256u, (r) + 9u * (RUNTIME_MODULES + 1u) + 256u, (r) + 10u * (RUNTIME_MODULES + 1u) + 256u, (r) + 11u * (RUNTIME_MODULES + 1u) + 256u, (r) + 12u * (RUNTIME_MODULES + 1u) + 256u, (r) + 13u * (RUNTIME_MODULES + 1u) + 256u, (r) + 14u * (RUNTIME_MODULES + 1u) + 256u, (r) + 15u * (RUNTIME_MODULES + 1u) + 256u, (r) + 16u * (RUNTIME_MODULES + 1u) + 256u, (r) + 17u * (RUNTIME_MODULES + 1u) + 256u, (r) + 18u * (RUNTIME_MODULES + 1u) + 256u, (r) + 19u * (RUNTIME_MODULES + 1u) + 256u, (r) + 20u * (RUNTIME_MODULES + 1u) + 256u, (r) + 20u * (RUNTIME_MODULES + 1u) + 258u, (r) + 20u * (RUNTIME_MODULES + 1u) + 266u, (r) + 21u * (RUNTIME_MODULES + 1u) + 266u, (r) + 22u * (RUNTIME_MODULES + 1u) + 266u, (r) + 23u * (RUNTIME_MODULES + 1u) + 266u, (r) + 24u * (RUNTIME_MODULES + 1u) + 266u } +#define RUNTIME_SITE_EVENT_WORDS (25u * (RUNTIME_MODULES + 1u) + 268u) +#define RUNTIME_SITE_EVENT_ROWS(r) { (r) + 0u * (RUNTIME_MODULES + 1u) + 0u, (r) + 1u * (RUNTIME_MODULES + 1u) + 0u, (r) + 2u * (RUNTIME_MODULES + 1u) + 0u, (r) + 3u * (RUNTIME_MODULES + 1u) + 0u, (r) + 4u * (RUNTIME_MODULES + 1u) + 0u, (r) + 4u * (RUNTIME_MODULES + 1u) + 9u, (r) + 4u * (RUNTIME_MODULES + 1u) + 18u, (r) + 4u * (RUNTIME_MODULES + 1u) + 27u, (r) + 4u * (RUNTIME_MODULES + 1u) + 36u, (r) + 4u * (RUNTIME_MODULES + 1u) + 45u, (r) + 4u * (RUNTIME_MODULES + 1u) + 54u, (r) + 4u * (RUNTIME_MODULES + 1u) + 63u, (r) + 4u * (RUNTIME_MODULES + 1u) + 72u, (r) + 4u * (RUNTIME_MODULES + 1u) + 81u, (r) + 4u * (RUNTIME_MODULES + 1u) + 90u, (r) + 4u * (RUNTIME_MODULES + 1u) + 99u, (r) + 4u * (RUNTIME_MODULES + 1u) + 108u, (r) + 4u * (RUNTIME_MODULES + 1u) + 117u, (r) + 4u * (RUNTIME_MODULES + 1u) + 126u, (r) + 4u * (RUNTIME_MODULES + 1u) + 135u, (r) + 4u * (RUNTIME_MODULES + 1u) + 144u, (r) + 4u * (RUNTIME_MODULES + 1u) + 153u, (r) + 4u * (RUNTIME_MODULES + 1u) + 162u, (r) + 4u * (RUNTIME_MODULES + 1u) + 171u, (r) + 4u * (RUNTIME_MODULES + 1u) + 180u, (r) + 4u * (RUNTIME_MODULES + 1u) + 189u, (r) + 4u * (RUNTIME_MODULES + 1u) + 198u, (r) + 5u * (RUNTIME_MODULES + 1u) + 198u, (r) + 5u * (RUNTIME_MODULES + 1u) + 215u, (r) + 5u * (RUNTIME_MODULES + 1u) + 224u, (r) + 5u * (RUNTIME_MODULES + 1u) + 233u, (r) + 5u * (RUNTIME_MODULES + 1u) + 242u, (r) + 6u * (RUNTIME_MODULES + 1u) + 242u, (r) + 6u * (RUNTIME_MODULES + 1u) + 247u, (r) + 6u * (RUNTIME_MODULES + 1u) + 256u, (r) + 7u * (RUNTIME_MODULES + 1u) + 256u, (r) + 8u * (RUNTIME_MODULES + 1u) + 256u, (r) + 9u * (RUNTIME_MODULES + 1u) + 256u, (r) + 10u * (RUNTIME_MODULES + 1u) + 256u, (r) + 11u * (RUNTIME_MODULES + 1u) + 256u, (r) + 12u * (RUNTIME_MODULES + 1u) + 256u, (r) + 13u * (RUNTIME_MODULES + 1u) + 256u, (r) + 14u * (RUNTIME_MODULES + 1u) + 256u, (r) + 15u * (RUNTIME_MODULES + 1u) + 256u, (r) + 16u * (RUNTIME_MODULES + 1u) + 256u, (r) + 17u * (RUNTIME_MODULES + 1u) + 256u, (r) + 18u * (RUNTIME_MODULES + 1u) + 256u, (r) + 19u * (RUNTIME_MODULES + 1u) + 256u, (r) + 20u * (RUNTIME_MODULES + 1u) + 256u, (r) + 20u * (RUNTIME_MODULES + 1u) + 258u, (r) + 20u * (RUNTIME_MODULES + 1u) + 266u, (r) + 21u * (RUNTIME_MODULES + 1u) + 266u, (r) + 22u * (RUNTIME_MODULES + 1u) + 266u, (r) + 23u * (RUNTIME_MODULES + 1u) + 266u, (r) + 24u * (RUNTIME_MODULES + 1u) + 266u, (r) + 24u * (RUNTIME_MODULES + 1u) + 268u } #define RUNTIME_OWNED_SITES 69u #define RUNTIME_OWNED_SPANS { {0x40002318u, 8u, 24u}, {0x40031e74u, 10u, 24u}, {0x400334d8u, 6u, 24u}, {0x4003a526u, 4u, 24u}, {0x4003a52eu, 8u, 24u}, {0x4003bff2u, 8u, 24u}, {0x4003c8ccu, 4u, 24u}, {0x4003c928u, 6u, 24u}, {0x4003c950u, 2u, 24u}, {0x4003c980u, 6u, 24u}, {0x4003cd98u, 8u, 24u}, {0x4003d136u, 4u, 24u}, {0x4003d718u, 6u, 24u}, {0x4004c36au, 6u, 24u}, {0x4005221eu, 10u, 24u}, {0x400585dcu, 10u, 24u}, {0x400585ecu, 4u, 24u}, {0x400585fau, 4u, 24u}, {0x4005a616u, 6u, 24u}, {0x4005a850u, 6u, 24u}, {0x4006d784u, 8u, 24u}, {0x40077b5cu, 6u, 24u}, {0x4007865eu, 4u, 24u}, {0x40078678u, 2u, 24u}, {0x400786c8u, 6u, 24u}, {0x400786ceu, 2u, 24u}, {0x40078886u, 10u, 24u}, {0x400791e4u, 8u, 24u}, {0x40079248u, 4u, 24u}, {0x4007981cu, 6u, 24u}, {0x40079904u, 2u, 24u}, {0x400ce10eu, 4u, 24u}, {0x400cf6fau, 4u, 24u}, {0x400cf702u, 4u, 24u}, {0x400cf714u, 4u, 24u}, {0x400d6438u, 4u, 24u}, {0x400788c4u, 12u, 24u}, {0x40078c22u, 2u, 24u}, {0x40078c28u, 2u, 24u}, {0x40078cb0u, 2u, 24u}, {0x40078cb6u, 2u, 24u}, {0x40078d2eu, 2u, 24u}, {0x40078d34u, 2u, 24u}, {0x40078deeu, 2u, 24u}, {0x40078df4u, 2u, 24u}, {0x40078e7cu, 2u, 24u}, {0x40078e82u, 2u, 24u}, {0x40065bcau, 6u, 25u}, {0x40065bd8u, 4u, 25u}, {0x40065bdeu, 4u, 25u}, {0x40065c7cu, 4u, 25u}, {0x40065cc4u, 4u, 25u}, {0x40065d3eu, 4u, 25u}, {0x40065d58u, 4u, 25u}, {0x40065d72u, 4u, 25u}, {0x40083afcu, 10u, 27u}, {0x4004e1eau, 10u, 27u}, {0x40032280u, 8u, 27u}, {0x40036548u, 8u, 27u}, {0x40072c30u, 6u, 32u}, {0x40072caau, 6u, 32u}, {0x4006d8f4u, 6u, 32u}, {0x4006d91cu, 6u, 32u}, {0x400858c0u, 6u, 32u}, {0x4000d47eu, 6u, 33u}, {0x40097014u, 4u, 48u}, {0x4002dc68u, 6u, 49u}, {0x4002dc90u, 6u, 49u}, {0x4002dcc4u, 6u, 49u} } extern const unsigned char modwerk_raise_ev_mute_keep[]; extern const unsigned char modwerk_raise_ev_trig_muted[]; /* raised events: the base's entry a package's RUNTIME_RAISE hook word receives */ -#define RUNTIME_SITE_EVENT_RAISES { 0, 0, 0, (uintptr_t)modwerk_raise_ev_mute_keep, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, (uintptr_t)modwerk_raise_ev_trig_muted, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } +#define RUNTIME_SITE_EVENT_RAISES { 0, 0, 0, (uintptr_t)modwerk_raise_ev_mute_keep, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, (uintptr_t)modwerk_raise_ev_trig_muted, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } #endif diff --git a/sdk/machines/octatrack/elekloader/runtime_events.s b/sdk/machines/octatrack/elekloader/runtime_events.s index abebf179d8..f6bab3a8ac 100644 --- a/sdk/machines/octatrack/elekloader/runtime_events.s +++ b/sdk/machines/octatrack/elekloader/runtime_events.s @@ -1179,6 +1179,12 @@ modwerk_raise_ev_usb_control: lea modwerk_runtime_event_row+212,%a0 bra.w modwerk_raise_row +| ---- raised (by a module, or by the base): ev_usb_frame: unsigned f(void); every handler runs, the answers OR'd + .globl modwerk_raise_ev_usb_frame +modwerk_raise_ev_usb_frame: + lea modwerk_runtime_event_row+220,%a0 + bra.w modwerk_raise_row + | a0: the hook's row pointer. C convention: d0 the answers OR'd, d2-d7/a2-a6 kept. modwerk_raise_row: lea -8(%sp),%sp diff --git a/sdk/machines/octatrack/elekloader/test_usb_function.c b/sdk/machines/octatrack/elekloader/test_usb_function.c index b75c354234..61d57e45fd 100644 --- a/sdk/machines/octatrack/elekloader/test_usb_function.c +++ b/sdk/machines/octatrack/elekloader/test_usb_function.c @@ -39,8 +39,8 @@ static volatile uint32_t *host_reg(uint32_t a) #include "loader.h" #include "modwerk_events.h" /* The hooks' rows hold handlers; here, numbers the walk hands to host_call. */ -enum { H_ISR = 1, H_BUS_END, H_CONTROL, H_CONTROL_OTHER }; -static unsigned isrs, bus_ends, controls, others, answer; +enum { H_ISR = 1, H_BUS_END, H_CONTROL, H_CONTROL_OTHER, H_FRAME }; +static unsigned isrs, bus_ends, controls, others, answer, frames; static unsigned host_call(uintptr_t handler) { switch (handler) { @@ -48,6 +48,7 @@ static unsigned host_call(uintptr_t handler) case H_BUS_END: return ++bus_ends, 0u; case H_CONTROL: return ++controls, answer; case H_CONTROL_OTHER: return ++others, 4u; + case H_FRAME: return ++frames, 0u; } fprintf(stderr, "uncalled %#lx\n", (unsigned long)handler); exit(2); } @@ -58,11 +59,11 @@ void modwerk_machine_unlock(uint32_t s) { CHECK(locked && s == 4); locked = 0; } int modwerk_machine_usb_disk(void) { return usb_disk; } uint8_t modwerk_cfg_fs[512], modwerk_cfg_hs[512], modwerk_cfg_os_fs[512], modwerk_cfg_os_hs[512]; volatile uint32_t modwerk_cfg_len = MODWERK_USB_CFG_BYTES; -static uintptr_t volatile function_row[2], isr_row[2] = {H_ISR}, bus_end_row[2] = {H_BUS_END}, control_row[3] = {H_CONTROL}; +static uintptr_t volatile function_row[2], isr_row[2] = {H_ISR}, bus_end_row[2] = {H_BUS_END}, control_row[3] = {H_CONTROL}, frame_row[2] = {H_FRAME}; #define modwerk_runtime_event_row host_rows static uintptr_t volatile *const host_rows[RUNTIME_SITE_EVENTS] = { [MODWERK_OT_USB_FUNCTIONS - RUNTIME_EVENTS] = function_row, [MODWERK_EV_USB_ISR - RUNTIME_EVENTS] = isr_row, - [MODWERK_EV_USB_BUS_END - RUNTIME_EVENTS] = bus_end_row, [MODWERK_EV_USB_CONTROL - RUNTIME_EVENTS] = control_row}; + [MODWERK_EV_USB_BUS_END - RUNTIME_EVENTS] = bus_end_row, [MODWERK_EV_USB_CONTROL - RUNTIME_EVENTS] = control_row, [MODWERK_EV_USB_FRAME - RUNTIME_EVENTS] = frame_row}; #include "usb_function.c" #undef modwerk_runtime_event_row @@ -288,6 +289,8 @@ int main(void) isr_row[0] = 0; /* nobody subscribes: nothing is called */ modwerk_usb_function_isr(); CHECK(isrs == 1u); + modwerk_usb_function_frame(), modwerk_usb_function_frame(); /* the frame interrupt's block */ + CHECK(frames == 2u && isrs == 1u && !locked); if (failures) return 1; puts("usb function: admission, slots, reconnect and its holds pass"); return 0; diff --git a/sdk/machines/octatrack/elekloader/usb_function.c b/sdk/machines/octatrack/elekloader/usb_function.c index c66f32b6aa..43a4f7a2c8 100644 --- a/sdk/machines/octatrack/elekloader/usb_function.c +++ b/sdk/machines/octatrack/elekloader/usb_function.c @@ -17,7 +17,7 @@ * no open sync or trial for it. The reconnect is over when the host, after a reset, reaches the * vendor interface; without that for 20 s it counts as unplugged * - * The base raises ev_usb_isr, ev_usb_bus_end and ev_usb_control by walking their rows here, never through the + * The base raises ev_usb_isr, ev_usb_bus_end, ev_usb_control and ev_usb_frame by walking their rows here, never through the * loader's dispatch code (runtime_events.s): the loader holds a switch back while any task's stack holds an address * inside that code, and the USB interrupt runs on whichever task it interrupts, so return addresses from there * would stay in stack memory and refuse every later removal (seen in the emulator: a rollback refused for good). The @@ -85,7 +85,7 @@ static volatile uint8_t reset_seen; /* BACK: the host has reset the bus since th static uint16_t timer, waited; /* Every handler of a hook the base raises, in the row's order (lower first, then module id); their answers OR'd. - * From the USB interrupt, or with it held off. */ + * From the USB or the frame interrupt, or with them held off. */ static unsigned uf_raise(unsigned hook) { unsigned answer = 0; @@ -243,6 +243,8 @@ void modwerk_usb_function_bus_end(void) (void)uf_raise(MODWERK_EV_USB_BUS_END); } unsigned modwerk_usb_function_control(void) { return uf_raise(MODWERK_EV_USB_CONTROL); } +/* The frame interrupt's block (usb_base.s modwerk_usb_frame_shim), in a base that does not link USB Audio in. */ +void modwerk_usb_function_frame(void) { (void)uf_raise(MODWERK_EV_USB_FRAME); } unsigned modwerk_usb_function_status(uint8_t *out) { diff --git a/sdk/machines/octatrack/elekloader/usb_function.h b/sdk/machines/octatrack/elekloader/usb_function.h index 6168150df0..9dab26d0b9 100644 --- a/sdk/machines/octatrack/elekloader/usb_function.h +++ b/sdk/machines/octatrack/elekloader/usb_function.h @@ -22,6 +22,8 @@ int modwerk_usb_reconnecting(void); void modwerk_usb_function_isr(void); void modwerk_usb_function_bus_end(void); unsigned modwerk_usb_function_control(void); +/* The frame interrupt, every 16-sample block (base_usb_functions.py FRAME_SHIM): ev_usb_frame. */ +void modwerk_usb_function_frame(void); /* USB FUNCTION (0xC1, bRequest 41, wValue 0, wLength 8): [0] 0 settled, 1 a reconnect is due, 2 off the bus, * 3 back on the bus and waiting for the host to reset it and reach this interface; [1] 1 while the configuration the host reads holds a function; [2] 1 while a * module contributes one; [3] reconnects made, modulo 256; [4] of them, those that did not wait for an idle diff --git a/sdk/machines/octatrack/events.json b/sdk/machines/octatrack/events.json index 4e38936868..b584aa2127 100644 --- a/sdk/machines/octatrack/events.json +++ b/sdk/machines/octatrack/events.json @@ -2384,6 +2384,22 @@ "subscribers": [], "orderEvidence": "One function at a time: the controller has one endpoint left (3) and every authored USB Audio layout uses it, so a second function could not share the configuration. The USB Audio module is the first to contribute; until its package is published no module does.", "sites": [] + }, + { + "event": "ev_usb_frame", + "index": 59, + "site": null, + "prototype": "unsigned f(void)", + "args": [], + "results": "or", + "when": "every 16-sample block of the frame interrupt, at the point where USB Audio's producer runs when it is linked into a base, before stock clears its word at 0x46104d4e; no stock site: the base raises it from its own shim at 0x4000d9a0, in a base that takes a module's USB function", + "context": "the frame interrupt: short, no firmware call that can block, the EMAC kept as found", + "contract": "Every handler runs; the answers are ignored. A USB function produces its block here: it reads the frame's read-back words, fills its ring and primes its own endpoint. Return at once while the host has not opened your stream: this runs every block, playing or not. d2-d7/a2-a6 must be kept, as C keeps them; the base keeps d0-d1/a0-a1.", + "order": "lower first, then module id; every handler runs, so the order does not change the result. 10-90.", + "subscribers": [], + "raisers": [], + "raisedByBase": true, + "orderEvidence": "A function owns its ring and endpoint alone (ot_usb_functions holds one function). No module subscribes yet: USB Audio's audio_frame_shim does this work at the same site when it is linked into a base, and such a base leaves the site to it." } ] } diff --git a/sdk/machines/octatrack/include/modwerk_events.h b/sdk/machines/octatrack/include/modwerk_events.h index 5d641778bd..dc8f51bdd4 100644 --- a/sdk/machines/octatrack/include/modwerk_events.h +++ b/sdk/machines/octatrack/include/modwerk_events.h @@ -301,4 +301,8 @@ struct modwerk_usb_function { #define MODWERK_USB_FUNCTION_INTERFACE 4u /* the base's own: 0 mass storage, 1 its vendor interface, 2 and 3 USB MIDI */ #define MODWERK_USB_FUNCTION_ENDPOINT 3u /* 0 control, 1 mass storage, 2 USB MIDI */ +/* ev_usb_frame (raised by the base): every 16-sample block of the frame interrupt, at the point where USB Audio's producer runs when it is linked into a base, before stock clears its word at 0x46104d4e; no stock site: the base raises it from its own shim at 0x4000d9a0, in a base that takes a module's USB function. The frame interrupt: short, no firmware call that can block, the EMAC kept as found. Every handler runs; the answers are ignored. A USB function produces its block here: it reads the frame's read-back words, fills its ring and primes its own endpoint. Return at once while the host has not opened your stream: this runs every block, playing or not. d2-d7/a2-a6 must be kept, as C keeps them; the base keeps d0-d1/a0-a1. */ +#define MODWERK_EV_USB_FRAME 59 +typedef unsigned modwerk_ev_usb_frame(void); + #endif diff --git a/sdk/machines/octatrack/module-adapters/base_usb_functions.py b/sdk/machines/octatrack/module-adapters/base_usb_functions.py index d57d849452..cc16543a3a 100644 --- a/sdk/machines/octatrack/module-adapters/base_usb_functions.py +++ b/sdk/machines/octatrack/module-adapters/base_usb_functions.py @@ -251,6 +251,24 @@ def audio_storage_source(text): return text.replace(dma, ' .bss\n' + dma) +# The frame interrupt's block, where usbaudio.s's producer sits when USB Audio is linked in (usb_base.py +# AUDIO_DETOURS): `clrl 0x46104d4e`, rejoining at +6. A base that takes a module's USB function owns it instead and +# raises ev_usb_frame there (usb_function.c). +FRAME_DETOUR = (0x4000d9a0, 6, '37a52c3300cbe2e0b5453bac91ed193defe49493058e8a287b2f9a1c47a325b9', 'modwerk_usb_frame_shim') +FRAME_SHIM = ''' +| The frame interrupt's block: ev_usb_frame, then the displaced clear. + .text + .balign 2 + .global modwerk_usb_frame_shim +modwerk_usb_frame_shim: + lea %sp@(-16),%sp + moveml %d0-%d1/%a0-%a1,%sp@ + jsr modwerk_usb_function_frame + moveml %sp@,%d0-%d1/%a0-%a1 + lea %sp@(16),%sp + clrl 0x46104d4e + jmp 0x4000d9a6 +''' SLOT = 512 # a configuration with room for the function a module adds behind it (elekloader/usb_function.c) @@ -300,6 +318,8 @@ def assembly(base, descriptors, audio=None, slots=False): if text.count(constant) != (2 if live else 1): raise ValueError('The base USB clamp template changed.') text = text.replace(constant, live) + if not audio: # code first: the slots and tables follow it + text += FRAME_SHIM text += ' .balign 4\n .global modwerk_cfg_len\nmodwerk_cfg_len:\n .long %d\n' % length for name, blob in blobs.items(): text += ' .balign %d\n .global %s\n%s:\n .byte %s\n .space %d\n' % ( @@ -315,7 +335,7 @@ def assembly(base, descriptors, audio=None, slots=False): return text -def sites(base, image_at, audio=None): +def sites(base, image_at, audio=None, slots=False): """Guard the original sites once and reject overlapping ownership. Returned stock spans are private build inputs, never publication data. @@ -335,6 +355,12 @@ def sites(base, image_at, audio=None): if len(stock) != length or hashlib.sha256(stock).hexdigest() != digest: raise ValueError('USB MIDI site at %#x is not the guarded native source.' % address) out.append(dict(addr=hex(address), stock=stock.hex(), op='jmp', target=target)) + if slots and not audio: + address, length, digest, target = FRAME_DETOUR + stock = image_at(address, length) + if len(stock) != length or hashlib.sha256(stock).hexdigest() != digest: + raise ValueError('The frame block site at %#x is not the guarded native source.' % address) + out.append(dict(addr=hex(address), stock=stock.hex(), op='jmp', target=target)) spans = sorted((int(site['addr'], 16), len(bytes.fromhex(site['stock']))) for site in out) if any(address + size > following for (address, size), (following, _) in zip(spans, spans[1:])): raise ValueError('USB functions claim overlapping base sites.') diff --git a/sdk/machines/octatrack/site-events.json b/sdk/machines/octatrack/site-events.json index 212ac207c1..0fb24fd980 100644 --- a/sdk/machines/octatrack/site-events.json +++ b/sdk/machines/octatrack/site-events.json @@ -314,6 +314,11 @@ "kind": "table", "room": 1, "record": 32 + }, + { + "index": 59, + "event": "ev_usb_frame", + "kind": "raise" } ] } diff --git a/sdk/tests/test_usb_function.py b/sdk/tests/test_usb_function.py index 6506260e3f..f7a442672f 100644 --- a/sdk/tests/test_usb_function.py +++ b/sdk/tests/test_usb_function.py @@ -20,7 +20,7 @@ import events # noqa: E402 from host_flags import SANITIZE # noqa: E402 -HOOKS = ('ev_usb_isr', 'ev_usb_bus_end', 'ev_usb_control') +HOOKS = ('ev_usb_isr', 'ev_usb_bus_end', 'ev_usb_control', 'ev_usb_frame') def load(name, relative): @@ -67,7 +67,7 @@ def test_the_base_raises_the_usb_hooks_and_no_package_gets_their_entry(self): self.assertIn('uf_raise(MODWERK_%s)' % name.upper(), source) self.assertEqual(raises[by_name['ev_mute_keep']['index'] - events.FIRST], '(uintptr_t)modwerk_raise_ev_mute_keep') kinds = {row['event']: row for row in json.loads(events.browser(registry))['events']} - self.assertEqual([kinds[name]['kind'] for name in HOOKS], ['raise'] * 3) # as every raised hook; the loader hands no package their entry (raises above) + self.assertEqual([kinds[name]['kind'] for name in HOOKS], ['raise'] * 4) # as every raised hook; the loader hands no package their entry (raises above) self.assertEqual(kinds['ev_mute_keep']['kind'], 'raise') self.assertEqual({k: kinds['ot_usb_functions'][k] for k in ('kind', 'room', 'record')}, dict(kind='table', room=1, record=32)) From 4cc963d5bae6199a166d79775bdf63d58f870b7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Fri, 20 Nov 2026 09:55:03 +0100 Subject: [PATCH 177/415] Improvement: device:test and the test procedure finish their cases on an ot_emu session npm run device:emulator starts ot_emu on a development twin with its time tied to the wall clock (--interactive, pace on), serves it like a unit and runs a command inside it. Every wait and timeout in device:test then means the same as on the unit, so nothing changes for the unit. Inside the session test:procedure targets the emulator by itself. device:test lists the checks a still DSP frame clock cannot answer as not run there, never passed, and titles its entry as emulator evidence. Co-Authored-By: Claude Opus 5.5 --- changelog/2026-11-20-device-test-emulator.md | 1 + docs/TEST_PROCEDURE.md | 12 +-- package.json | 1 + scripts/octatrack-emulator/session.mjs | 83 ++++++++++++++++++++ scripts/octatrack-emulator/session.test.mjs | 24 ++++++ scripts/octatrack-qualify.py | 22 +++++- scripts/octatrack-test.py | 3 + scripts/test-procedure.mjs | 5 +- sdk/tests/test_octatrack_qualify.py | 31 ++++++++ 9 files changed, 171 insertions(+), 11 deletions(-) create mode 100644 changelog/2026-11-20-device-test-emulator.md create mode 100644 scripts/octatrack-emulator/session.mjs create mode 100644 scripts/octatrack-emulator/session.test.mjs diff --git a/changelog/2026-11-20-device-test-emulator.md b/changelog/2026-11-20-device-test-emulator.md new file mode 100644 index 0000000000..75f92bd452 --- /dev/null +++ b/changelog/2026-11-20-device-test-emulator.md @@ -0,0 +1 @@ +Development: `npm run device:emulator` runs an Octatrack emulator session the unit's tools drive like a unit, paced to the wall clock, and runs a command inside it, so `npm run test:procedure` and `device:test` finish their cases on `ot_emu`. Results there are labelled as emulator results, and the checks the emulator cannot answer are listed as not run. diff --git a/docs/TEST_PROCEDURE.md b/docs/TEST_PROCEDURE.md index aabc12c11c..e5c67c792d 100644 --- a/docs/TEST_PROCEDURE.md +++ b/docs/TEST_PROCEDURE.md @@ -44,7 +44,7 @@ Each step proves only what it ran. Steps 1 to 5 prove the code paths they exerci - **1-2.** The doctor runs the module's host tests, the contract, the performance record and the compatibility lines. A draft is judged beside every other module by the doctor itself. - **3. A rebuild starts again at step 1.** The record names the source revision (and says when the tree had uncommitted changes) and the package's SHA-256. Every later result is about this build only. - **4.** The check fails a cycle-scan record whose module source changed since its scan. After changing a module's DSP code, scan it again on a computer with the scan's tools: `node scripts/cycle-scan.mjs record ` ([sdk/cycle-scan](../sdk/cycle-scan/README.md), [MODULE_PERFORMANCE.md](MODULE_PERFORMANCE.md)). -- **5.** Start `ot_emu` with `--usb-host SOCK` on a development twin of the base, from [the adapted emulator builder](../scripts/octatrack-emulator/build.py) (the plain port refused the trial with loader refusal 5, 20 November 2026). A ColdFire module needs no `--dsp`, which runs about ten times faster; give the base 20 s after the socket appears. What passes here can still fail on the unit: read [what `ot_emu` does not show](OCTATRACK_HARDWARE_TRAPS.md#the-emulator-and-the-tools). +- **5.** Start `ot_emu` with `--usb-host SOCK` on a development twin of the base, from [the adapted emulator builder](../scripts/octatrack-emulator/build.py) (the plain port refused the trial with loader refusal 5, 20 November 2026). A ColdFire module needs no `--dsp`, which runs about ten times faster; give the base 20 s after the socket appears. Or run steps 6 to 10 there instead, through `npm run device:emulator` ([below](#one-set-of-cases-two-targets)). What passes here can still fail on the unit: read [what `ot_emu` does not show](OCTATRACK_HARDWARE_TRAPS.md#the-emulator-and-the-tools). - **6-10.** The unit steps go through the device commands and keep [the driving rules](OCTATRACK_DRIVING.md): a development base, transport stopped, a bank and Part whose working copy equals its saved one. Nothing is kept: every install is a trial that rolls back. When the repository has the unit queue (its `unit` script), the runner takes the unit for steps 6 to 10 as one turn. - **8.** The fast seeded soak needs the MIDI bridge on the computer the unit is plugged into (`scripts/octatrack-midi-bridge.py`) and the project's MIDI receive settings ([A fast soak](OCTATRACK_DRIVING.md)). A failure prints the seed and a log that replays it (`--replay FILE`). In a checkout without `scripts/octatrack-soak.mjs`, a module soaks inside step 7 (`device:test --soak 120`) instead. - **9.** "At rest" is the module installed and used nowhere: what every player pays for having it. Judge both figures against [MODULE_PERFORMANCE.md](MODULE_PERFORMANCE.md); a base-bound package is left out, since a development twin does not trust it. @@ -75,15 +75,15 @@ A machine without a USB link runs steps 1 to 3 and its emulator; step 12 then ca ## One set of cases, two targets -Steps 6 to 10 talk to a session, not to a device. `npm run device -- serve --share SOCK` opens one link and shares it; `device:test`, `device.mjs` and the MCP drive the session. Started with `--emulator` on an `ot_emu` bench, the same session runs the same cases on the emulator: +Steps 6 to 10 talk to a session, not to a device. `npm run device -- serve --share SOCK` opens one link and shares it; `device:test`, `device.mjs` and the MCP drive the session. `npm run device:emulator` starts the same session on `ot_emu` and runs a command inside it: ```sh -ot_emu --image MAIN.raw --usb-host /tmp/emu.sock --mkii & # a development twin, from the adapted build -MODWERK_DEV_SOCKET=/tmp/emu-dev.sock npm run device -- serve --emulator --socket /tmp/emu.sock --share /tmp/emu-share.sock & -npm run test:procedure -- --target emulator --share /tmp/emu-share.sock --dev-socket /tmp/emu-dev.sock +npm run device:emulator -- --image MAIN.raw --emulator OT_EMU -- npm run test:procedure -- ``` -Every result is labelled emulator, the unit queue is left alone, and step 9 is not run: the emulator's load figures are not the unit's. The switch runs the same cases on both targets; it never replaces the unit. On 20 November 2026 temp-save's steps 6 and the trial of step 7 ran this way; `device:test` then stopped at a Part switch on its 40 s request timeout, which is set for the unit, so the emulator target is a rehearsal until `device:test` takes slower targets. +`MAIN.raw` is a development twin of the base, `OT_EMU` the [adapted build](../scripts/octatrack-emulator/build.py) (or set `MODWERK_OT_EMU`). The session ties the emulator's time to the wall clock (`ot_emu --interactive` with `pace on`), so every wait and timeout in `device:test` means the same as on the unit and nothing in it changes for the unit. Inside the session the runner targets the emulator by itself (`--target emulator` does it by hand): every result is labelled emulator, the unit queue is left alone, the soak and step 9 are not run (no MIDI port; the emulator's load figures are not the unit's), and the record never gets a "Tested on a unit" line. The switch runs the same cases on both targets; it never replaces the unit. + +On 20 November 2026 temp-save ran this way end to end in 101 s (73 s of procedure, 61 s of them `device:test`): the trial, 12 of 12 Part switches, the knob sweeps, Undo and the inventory unchanged. Without `--dsp` the emulator's DSP frames stand still, so `device:test` lists its frame checks, the queued bank change and the self-test as not run there; with `--dsp` the frames did not advance under `pace on` either, which is the emulator's limit, not a step to fake. ## What a base adds diff --git a/package.json b/package.json index 4fd177d194..4505bc3e15 100644 --- a/package.json +++ b/package.json @@ -51,6 +51,7 @@ "device:price": "node scripts/octatrack-price.mjs", "device:qualify": "node scripts/mirror-octatrack-modules.mjs && python3 -B scripts/octatrack-qualify.py", "device:test": "python3 -B scripts/octatrack-test.py", + "device:emulator": "node scripts/octatrack-emulator/session.mjs", "test:procedure": "node scripts/test-procedure.mjs", "modules:generate": "node scripts/modules.mjs --write", "modules:check": "node scripts/modules.mjs", diff --git a/scripts/octatrack-emulator/session.mjs b/scripts/octatrack-emulator/session.mjs new file mode 100644 index 0000000000..0707169e8d --- /dev/null +++ b/scripts/octatrack-emulator/session.mjs @@ -0,0 +1,83 @@ +// An Octatrack emulator session that the unit's tools drive like a unit: ot_emu on a development twin, paced to the wall clock +// so every wait in device:test means the same as on the unit, served by `npm run device -- serve --emulator`. +// +// npm run device:emulator -- --image MAIN.raw [--emulator PATH] [--dsp] [--dir DIR] # until Ctrl-C +// npm run device:emulator -- --image MAIN.raw -- npm run test:procedure -- # the procedure on it, then stop +// +// --image is a development twin's MAIN.raw (build_core.py --dev; your own OS stays on your computer). --emulator is the adapted +// ot_emu from scripts/octatrack-emulator/build.py (MODWERK_OT_EMU); the plain port refuses a USB trial on a current twin. +// --dsp runs both DSP cores and the frame interrupt, without which device:test lists its frame checks as not run. The command +// after `--` gets the session in its environment (MODWERK_UNIT=emulator, MODWERK_SHARE_SOCKET, MODWERK_DEV_SOCKET), so +// test:procedure runs its unit steps on the emulator and labels them so. Emulator results never count as hardware evidence. +import { spawn } from 'node:child_process' +import { existsSync, mkdirSync, rmSync } from 'node:fs' +import { tmpdir } from 'node:os' +import { join, resolve } from 'node:path' +import { parseArgs } from 'node:util' +import { pathToFileURL } from 'node:url' + +const ROOT = resolve(import.meta.dirname, '../..') + +/** ot_emu's arguments: the line protocol on stdin (so `pace on` can tie emulated time to the wall clock), the USB bench. */ +export function emulatorArgs({ image, bench, dsp = false }) { + return ['--interactive', '--image', image, '--usb-host', bench, '--max', '400000000000', '--mkii', ...(dsp ? ['--dsp', '--dsp-rt', '--frame'] : [])] +} + +/** The sockets of a session in DIR, and the environment the unit's tools need to use it. */ +export function sessionSockets(dir) { + // A Unix socket path is limited to about 104 characters on macOS: keep DIR short. + return { bench: join(dir, 'bench.sock'), dev: join(dir, 'dev.sock'), share: join(dir, 'share.sock') } +} +export const sessionEnv = sockets => ({ MODWERK_UNIT: 'emulator', MODWERK_SHARE_SOCKET: sockets.share, MODWERK_DEV_SOCKET: sockets.dev }) + +const wait = ms => new Promise(resolve => setTimeout(resolve, ms)) +async function until(test, ms, what) { + for (const end = Date.now() + ms; Date.now() < end; await wait(250)) if (test()) return + throw new Error('timed out waiting for ' + what) +} + +async function main() { + const split = process.argv.indexOf('--') + const own = split < 0 ? process.argv.slice(2) : process.argv.slice(2, split), command = split < 0 ? [] : process.argv.slice(split + 1) + const { values } = parseArgs({ args: own, options: { image: { type: 'string' }, emulator: { type: 'string' }, dsp: { type: 'boolean' }, + dir: { type: 'string' }, settle: { type: 'string', default: '20' } } }) + const emulator = values.emulator ?? process.env.MODWERK_OT_EMU + if (!values.image || !emulator) { + console.error('Usage: npm run device:emulator -- --image MAIN.raw --emulator OT_EMU [--dsp] [--dir DIR] [--settle 20] [-- COMMAND…]\n' + + '(MODWERK_OT_EMU names the adapted ot_emu from scripts/octatrack-emulator/build.py; docs/TEST_PROCEDURE.md, "One set of cases, two targets")') + process.exit(2) + } + const dir = resolve(values.dir ?? join(tmpdir(), 'mw-emu-' + process.pid)) + mkdirSync(dir, { recursive: true }) + const sockets = sessionSockets(dir) + for (const path of Object.values(sockets)) rmSync(path, { force: true }) + const children = [] + const stop = code => { for (const child of children.reverse()) child.kill('SIGTERM'); for (const path of Object.values(sockets)) rmSync(path, { force: true }); process.exit(code) } + process.on('SIGINT', () => stop(130)); process.on('SIGTERM', () => stop(143)) + + // 1. The emulator, its emulated time following the wall clock from the start (`pace on`, its stdin left open). + const emu = spawn(emulator, emulatorArgs({ image: resolve(values.image), bench: sockets.bench, dsp: values.dsp }), { stdio: ['pipe', 'pipe', 'inherit'] }) + children.push(emu) + emu.stdin.write('pace on\n') + let ready = false + emu.stdout.on('data', data => { if (/^ready /m.test(data.toString())) ready = true }) + emu.once('exit', code => { console.error('ot_emu exited (' + code + ')'); stop(1) }) + await until(() => ready && existsSync(sockets.bench), 180000, 'ot_emu to boot') + // The base settles after the boot (loader refusal 5, RUNTIME_BUSY, before): emulated time is wall time now. + await wait(Number(values.settle) * 1000) + + // 2. The session the unit's tools use, on the emulator's one bench connection. + const serve = spawn(process.execPath, ['scripts/device.mjs', 'serve', '--emulator', '--socket', sockets.bench, '--share', sockets.share], + { cwd: ROOT, stdio: ['ignore', 'inherit', 'inherit'], env: { ...process.env, ...sessionEnv(sockets) } }) + children.push(serve) + serve.once('exit', code => { console.error('the session exited (' + code + ')'); stop(1) }) + await until(() => existsSync(sockets.share) && existsSync(sockets.dev), 60000, 'the session') + console.log(`Emulator session: MODWERK_UNIT=emulator MODWERK_SHARE_SOCKET=${sockets.share} MODWERK_DEV_SOCKET=${sockets.dev}`) + if (!command.length) { console.log('Ctrl-C ends it.'); return } + + // 3. The command, with the session in its environment; the session ends with it. + const run = spawn(command[0], command.slice(1), { cwd: process.cwd(), stdio: 'inherit', env: { ...process.env, ...sessionEnv(sockets) } }) + run.once('exit', code => stop(code ?? 1)) +} + +if (process.argv[1] && import.meta.url === pathToFileURL(process.argv[1]).href) await main() diff --git a/scripts/octatrack-emulator/session.test.mjs b/scripts/octatrack-emulator/session.test.mjs new file mode 100644 index 0000000000..1573b56397 --- /dev/null +++ b/scripts/octatrack-emulator/session.test.mjs @@ -0,0 +1,24 @@ +import { mkdtempSync } from 'node:fs' +import { tmpdir } from 'node:os' +import { join } from 'node:path' +import { expect, it } from 'vitest' +import { emulatorArgs, sessionEnv, sessionSockets } from './session.mjs' +import { context } from '../test-procedure.mjs' + +it('starts ot_emu on its line protocol, so pace on can tie emulated time to the wall clock', () => { + expect(emulatorArgs({ image: '/i/MAIN.raw', bench: '/s/bench.sock' })).toEqual(['--interactive', '--image', '/i/MAIN.raw', '--usb-host', '/s/bench.sock', '--max', '400000000000', '--mkii']) + // The DSPs need the real-time cores (which need the line protocol) and the frame interrupt. + expect(emulatorArgs({ image: 'M', bench: 'B', dsp: true }).slice(-3)).toEqual(['--dsp', '--dsp-rt', '--frame']) +}) + +it('hands the command its session: the emulator target, the shared bench and the line socket', () => { + const sockets = sessionSockets('/tmp/mw') + expect(sockets).toEqual({ bench: '/tmp/mw/bench.sock', dev: '/tmp/mw/dev.sock', share: '/tmp/mw/share.sock' }) + const env = sessionEnv(sockets) + expect(env).toEqual({ MODWERK_UNIT: 'emulator', MODWERK_SHARE_SOCKET: '/tmp/mw/share.sock', MODWERK_DEV_SOCKET: '/tmp/mw/dev.sock' }) + // test:procedure inside the session runs its unit steps there, labelled emulator, without being told. + const ctx = context(join(import.meta.dirname, '../..'), { out: mkdtempSync(join(tmpdir(), 'procedure-')) }, ['vibrato'], env) + expect(ctx).toMatchObject({ target: 'emulator', share: '/tmp/mw/share.sock', devSocket: '/tmp/mw/dev.sock', env: { MODWERK_UNIT: 'emulator', MODWERK_DEV_SOCKET: '/tmp/mw/dev.sock' } }) + // Outside a session nothing changes: the unit, its default sockets. + expect(context(join(import.meta.dirname, '../..'), { out: mkdtempSync(join(tmpdir(), 'procedure-')) }, ['vibrato'], {})).toMatchObject({ target: 'unit', share: '/tmp/modwerk-share.sock', env: {} }) +}) diff --git a/scripts/octatrack-qualify.py b/scripts/octatrack-qualify.py index f0873d5235..d508833718 100755 --- a/scripts/octatrack-qualify.py +++ b/scripts/octatrack-qualify.py @@ -25,6 +25,10 @@ ROOT = pathlib.Path(__file__).resolve().parents[1] SOCKET = os.environ.get('MODWERK_DEV_SOCKET', '/tmp/modwerk-dev.sock') +# An ot_emu session (npm run device:emulator; test:procedure --target emulator), paced to the wall clock so every wait below +# means the same there as on the unit. Never hardware evidence. A check the emulator cannot answer (its DSP frames standing +# still) is listed as not run there, never passed; on the unit every check runs as always. +EMULATOR = os.environ.get('MODWERK_UNIT') == 'emulator' PEAK_LIMIT = 900 # per mille of a frame HEADERS = {6: 68, 7: 72, 8: 76, 9: 80, 10: 80} # header bytes by ABI (sdk/runtime/loader/abi9.py); hook words follow MACHINES = next(e['index'] for e in json.loads((ROOT / 'sdk/machines/octatrack/events.json').read_text())['events'] if e['event'] == 'ot_machines') @@ -101,6 +105,7 @@ def testing_entry(result, day, title='Qualification run', command='device:qualif if result.get('soak'): lines.append('- Soak: %d s, highest core peak %d per mille' % (10 * len(result['soak']), max(max(m['core0_peak'], m['core1_peak']) for m in result['soak']))) lines.append('- Crash test: %s' % ('run, the unit came back' if result.get('crash') and not any('crash' in f for f in result['failures']) else 'run' if result.get('crash') else 'not run')) if result.get('inventory'): lines.append('- Inventory at the end: ' + ('the same as before the run' if result['inventory'] == 'unchanged' else 'different from before the run')) + if result.get('not_run'): lines.append('- Not run here: ' + '; '.join(result['not_run'])) lines.append('- Result: ' + ('passed' if not result['failures'] else 'failed: ' + '; '.join(result['failures']))) if left: lines += ['', 'Left for the developer at the unit: ' + ', '.join(left) + '.', ''] else: lines += ['', 'Not covered by this run: ' + ', '.join(NOT_COVERED) + '.', ''] @@ -244,6 +249,16 @@ def running(failures, what): # frames advance: the DSPs are alive return a != b +def frame_clock(result): + """Whether the DSP frames advance, so the checks that read them can run. Always on the unit; in the emulator only when + its session runs the DSPs and the frame interrupt (--dsp --frame), else those checks are listed in result['not_run'].""" + if not EMULATOR: return True + a = frames(); send('w300') + if frames() != a: return True + result.setdefault('not_run', []).append('the frame checks and the queued bank change: the emulator\'s DSP frames stand still') + return False + + def until(test, seconds): for _ in range(int(seconds * 4)): if test(): return True @@ -368,6 +383,7 @@ def run(args, pkgs, install, uninstall, selftest=False, inventory=False): send('T%d w200 %s w300 ' % (track, slot if slot == 'SRC' else 'FX%d' % slot) + ' '.join('enc%s-127 enc%s-127 ' % (e, e) + ' '.join(['enc%s+16 w100' % e] * 8) for e in 'ABCDEF')) running(failures, 'sweeping %s on T%d' % (name, track)) # The four Parts, three times round: each switch done (the part step waits) and its effects running. + clock = frame_clock(result) result['parts'] = [] for n in [2, 3, 4, 1] * 3: try: @@ -376,10 +392,10 @@ def run(args, pkgs, install, uninstall, selftest=False, inventory=False): result['parts'].append(n if ok else -n) if not ok: failures.append('Part %d did not run its own effects within 3 s' % n) except RuntimeError as e: failures.append(str(e)) - running(failures, 'after the Part switches') + if clock: running(failures, 'after the Part switches') # A queued pattern change into another bank (BANK, TRIG b, TRIG n) and back, playing: it lands at the pattern's end. other = 2 if start_bank == 0 else 1 - for bank, pattern in ((other - 1, 0), (start_bank, start_pattern)): + for bank, pattern in ((other - 1, 0), (start_bank, start_pattern)) if clock else (): send('BANK w150 TRIG%d w150 TRIG%d' % (bank + 1, pattern + 1)) if not until(lambda: mem(0x800065bd, 2) == bytes([bank, pattern]), 20): failures.append('the queued change to bank %d pattern %d did not land within 20 s' % (bank + 1, pattern + 1)); break @@ -393,7 +409,7 @@ def run(args, pkgs, install, uninstall, selftest=False, inventory=False): m = meters(5); result['soak'].append(m); log(' soak:', m) peak = max(m['core0_peak'], m['core1_peak']) if peak > PEAK_LIMIT: failures.append('a core peaked at %d per mille in the soak' % peak); break - if not running(failures, 'soak'): break + if clock and not running(failures, 'soak'): break send('STOP w500') finally: send('STOP w300') diff --git a/scripts/octatrack-test.py b/scripts/octatrack-test.py index 7f63433967..b168237411 100755 --- a/scripts/octatrack-test.py +++ b/scripts/octatrack-test.py @@ -117,6 +117,9 @@ def uninstall(pkgs, failures): for trial in trials: trial.end(failures) result = qualify.run(args, pkgs, install, uninstall, selftest=True, inventory=True) + if qualify.EMULATOR: # the same cases on an ot_emu session: labelled as such, never hardware evidence + qualify.finish(result, args, title='Agent test in the emulator (not hardware evidence)', command='device:test', + notes=[NOTE, 'Ran on an ot_emu session (MODWERK_UNIT=emulator), not on a unit'], left=LEFT_FOR_THE_DEVELOPER) qualify.finish(result, args, title='Agent test on the unit', command='device:test', notes=[NOTE], left=LEFT_FOR_THE_DEVELOPER) diff --git a/scripts/test-procedure.mjs b/scripts/test-procedure.mjs index 6b7ac50259..39c5774c5d 100644 --- a/scripts/test-procedure.mjs +++ b/scripts/test-procedure.mjs @@ -293,9 +293,10 @@ const catalogue = root => JSON.parse(readFileSync(join(root, 'src/engine/assets/ export function context(root, values, positionals, env = process.env) { const git = (...args) => { try { return execFileSync('git', args, { cwd: root, encoding: 'utf8', stdio: ['ignore', 'pipe', 'ignore'] }).trim() } catch { return '' } } const share = values.share ?? env.MODWERK_SHARE_SOCKET ?? '/tmp/modwerk-share.sock' - const target = values.target ?? 'unit' + // Inside an emulator session (npm run device:emulator -- … -- npm run test:procedure …) the unit steps run there. + const target = values.target ?? (env.MODWERK_UNIT === 'emulator' ? 'emulator' : 'unit') if (!['unit', 'emulator'].includes(target)) throw new Error('--target is unit or emulator') - const devSocket = values['dev-socket'] + const devSocket = values['dev-socket'] ?? (target === 'emulator' ? env.MODWERK_DEV_SOCKET : undefined) const scripts = JSON.parse(readFileSync(join(root, 'package.json'), 'utf8')).scripts ?? {} const rows = catalogue(root) let ctx = { kind: values.base ? 'base' : 'module', share, target, devSocket, diff --git a/sdk/tests/test_octatrack_qualify.py b/sdk/tests/test_octatrack_qualify.py index 95107a55a2..a05900e615 100644 --- a/sdk/tests/test_octatrack_qualify.py +++ b/sdk/tests/test_octatrack_qualify.py @@ -113,6 +113,37 @@ def test_the_part_is_saved_before_the_run_and_must_stay_as_it_was(self): self.assertFalse(qualify.save_part(1, saved)) +class Emulator(unittest.TestCase): + """An ot_emu session: the same cases, the frame checks listed as not run when its frames stand still (20 November 2026).""" + + def clock(self, emulator, counts): + result, sent = {}, [] + with mock.patch.object(qualify, 'EMULATOR', emulator), mock.patch.object(qualify, 'frames', side_effect=list(counts)), \ + mock.patch.object(qualify, 'send', side_effect=lambda s: sent.append(s) or ''): + return qualify.frame_clock(result), result, sent + + def test_the_unit_always_runs_the_frame_checks_and_reads_nothing_for_it(self): + self.assertEqual(self.clock(False, []), (True, {}, [])) + + def test_an_emulator_whose_frames_stand_still_lists_them_as_not_run(self): + ok, result, sent = self.clock(True, [1, 1]) + self.assertFalse(ok) + self.assertEqual(sent, ['w300']) + self.assertIn('DSP frames stand still', result['not_run'][0]) + entry = qualify.testing_entry(dict(args=['x.mwrm'], crash=False, failures=[], packages=[], modules=[], not_run=result['not_run']), '2026-11-20') + self.assertIn('- Not run here: the frame checks and the queued bank change', entry) + self.assertIn('Result: passed', entry) + + def test_an_emulator_running_its_dsps_runs_them_too(self): + self.assertEqual(self.clock(True, [1, 40])[:2], (True, {})) + + def test_the_unit_waits_and_timeouts_are_unchanged(self): + self.assertEqual(qualify.SOCKET, __import__('os').environ.get('MODWERK_DEV_SOCKET', '/tmp/modwerk-dev.sock')) + source = (ROOT / 'scripts/octatrack-qualify.py').read_text() + self.assertIn('s.settimeout(40)', source) + self.assertIn("until(lambda: mem(0x800065bd, 2) == bytes([bank, pattern]), 20)", source) + + class Qualify(unittest.TestCase): def test_it_starts_only_once_the_keeps_are_acknowledged(self): with mock.patch.object(sys, 'argv', ['octatrack-qualify.py', 'x.mwrm']), mock.patch.object(qualify, 'send', side_effect=AssertionError('reached the unit')): From 03da8144b8c51422a5a3b4bd6c9f7e56621f96a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Fri, 20 Nov 2026 09:55:41 +0100 Subject: [PATCH 178/415] Test procedure: why the emulator session is paced Co-Authored-By: Claude Opus 5.5 --- docs/TEST_PROCEDURE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/TEST_PROCEDURE.md b/docs/TEST_PROCEDURE.md index e5c67c792d..eb9e7c83f7 100644 --- a/docs/TEST_PROCEDURE.md +++ b/docs/TEST_PROCEDURE.md @@ -81,7 +81,7 @@ Steps 6 to 10 talk to a session, not to a device. `npm run device -- serve --sha npm run device:emulator -- --image MAIN.raw --emulator OT_EMU -- npm run test:procedure -- ``` -`MAIN.raw` is a development twin of the base, `OT_EMU` the [adapted build](../scripts/octatrack-emulator/build.py) (or set `MODWERK_OT_EMU`). The session ties the emulator's time to the wall clock (`ot_emu --interactive` with `pace on`), so every wait and timeout in `device:test` means the same as on the unit and nothing in it changes for the unit. Inside the session the runner targets the emulator by itself (`--target emulator` does it by hand): every result is labelled emulator, the unit queue is left alone, the soak and step 9 are not run (no MIDI port; the emulator's load figures are not the unit's), and the record never gets a "Tested on a unit" line. The switch runs the same cases on both targets; it never replaces the unit. +`MAIN.raw` is a development twin of the base, `OT_EMU` the [adapted build](../scripts/octatrack-emulator/build.py) (or set `MODWERK_OT_EMU`). The session ties the emulator's time to the wall clock (`ot_emu --interactive` with `pace on`), so every wait and timeout in `device:test` means the same as on the unit and nothing in it changes for the unit. (In batch mode the bench holds the emulator's time while its client waits, so a wait there passes no emulated time; `--dsp-rt` needs `--interactive`, and that needs `pace on` before the bench answers.) Inside the session the runner targets the emulator by itself (`--target emulator` does it by hand): every result is labelled emulator, the unit queue is left alone, the soak and step 9 are not run (no MIDI port; the emulator's load figures are not the unit's), and the record never gets a "Tested on a unit" line. The switch runs the same cases on both targets; it never replaces the unit. On 20 November 2026 temp-save ran this way end to end in 101 s (73 s of procedure, 61 s of them `device:test`): the trial, 12 of 12 Part switches, the knob sweeps, Undo and the inventory unchanged. Without `--dsp` the emulator's DSP frames stand still, so `device:test` lists its frame checks, the queued bank change and the self-test as not run there; with `--dsp` the frames did not advance under `pace on` either, which is the emulator's limit, not a step to fake. From c0bb8668ce5edc263970f18d33e6d01193f371e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Fri, 20 Nov 2026 10:06:12 +0100 Subject: [PATCH 179/415] Octatrack base: machine modules no track uses rest out of the frame The loader asks the machine whether a module it judges (a contributor to ot_machines without its own ev_in_use) is in use. The registry answers from the machine map scan of every Part of the project, working and saved: a machine nobody plays rests after two idle scans, its handlers leave the resting hooks and its detours marked rests hold stock bytes. A pick wakes it before it commits and is judged with its hooks back on top; a track that names a resting machine renders silence until the next UI tick wakes it. Co-Authored-By: Claude Opus 5.5 --- .../2026-11-20-octatrack-resting-machines.md | 1 + docs/MODULE_PERFORMANCE.md | 2 +- docs/OCTATRACK_API.md | 2 +- sdk/machines/octatrack/HOOKS.md | 7 +- sdk/machines/octatrack/elekloader/README.md | 10 ++ .../octatrack/elekloader/machine_registry.c | 95 ++++++++++- .../octatrack/elekloader/runtime_events.h | 2 + .../elekloader/test_machine_registry.c | 151 +++++++++++++++++- sdk/machines/octatrack/events.json | 3 +- sdk/machines/octatrack/events.py | 16 +- .../octatrack/include/modwerk_events.h | 2 +- sdk/runtime/loader/loader.c | 40 ++++- sdk/runtime/loader/loader.h | 14 +- .../loader/tests/events/runtime_events.h | 1 + sdk/runtime/loader/tests/events_test.c | 66 +++++++- 15 files changed, 386 insertions(+), 26 deletions(-) create mode 100644 changelog/2026-11-20-octatrack-resting-machines.md diff --git a/changelog/2026-11-20-octatrack-resting-machines.md b/changelog/2026-11-20-octatrack-resting-machines.md new file mode 100644 index 0000000000..92e987f43a --- /dev/null +++ b/changelog/2026-11-20-octatrack-resting-machines.md @@ -0,0 +1 @@ +An installed machine module that no track of the project uses now rests on the Octatrack base: its handlers leave the audio frame until a track picks the machine, which wakes it before the pick lands. Machines a project uses anywhere stay awake, so pattern, Part and bank changes never wait for one. diff --git a/docs/MODULE_PERFORMANCE.md b/docs/MODULE_PERFORMANCE.md index b6db9bb028..1230e1cdb9 100644 --- a/docs/MODULE_PERFORMANCE.md +++ b/docs/MODULE_PERFORMANCE.md @@ -39,7 +39,7 @@ setting. It is a model; the unit stays the judge. **A module on no track must cost nothing: count what a stock track's path touches.** On the Octatrack the cost of a hook in the frame interrupt is not its instructions but each separate piece of module code or data that a track's path enters, every track and every frame; the readings fit cache misses, since the renders in between evict those lines (not counted on a unit). Installed on no track beside four FLEX tracks playing (an MKII, 14 November 2026), FM Synth 0.1.2 cost 19.0 points of the frame interrupt, POLY8 0.3.1 12.2 and Repitch 0.2.0 5.3, and a build of each with every frame-interrupt site removed read 0.0. What the bisects showed: a three-instruction test inline at the site cost nothing measurable, the same test in a routine of its own about 3 points, POLY8's render wrapper about 5; reading the Part index from battery RAM (`0x100b14cf`) at every site was only 0.6 of POLY8's 12.2, and working out "is this track mine" once a frame for all eight tracks still cost FM Synth 2.2 to 2.5; a machine that declares `RENDER_FLEX` puts every FLEX track nobody owns through the base's frame guard, 6.5 points on four tracks, about 1.6 a sounding track before the module's own code runs; and stock's increment builder (`0x40004100`) runs on every frame's second render of each track, so an `ev_play_increment` subscriber is entered once a track a frame, not only on retriggers and pitch changes. So: at each site test one bit of one data line inline and return to stock, enter a routine only for a track that is yours, work the answers out once a frame (nothing below the interrupt runs inside it, so what a frame's first use reads holds until its exit), and do not declare `RENDER_FLEX` to see tracks you will mostly hand back. With that, POLY8 0.3.3 read 4.9, FM Synth 0.1.3 3.2 and a Repitch draft 3.7; the rest is each module's remaining per-frame entries, and removing it needs the base to call a module for its own tracks only. Measure with `npm run device:price` ([driving](OCTATRACK_DRIVING.md#send-steps)) on a development base, whole builds against each other with the published one in the same run: code placement alone moves the interrupt's share by up to a point. To find one slow line, sample the interrupted PC from a spare timer above level 5 (PIT2, INTC1 source 45, is free): the slow instruction is the one before the PC that piles up. -**A module that no track uses rests.** One that subscribes `ev_in_use` and answers 0 is left out of the hooks [HOOKS.md](../sdk/machines/octatrack/HOOKS.md) marks `rests` (`ev_play_increment`, `ev_voice_bind`, `ev_voice_bind_run`, `ev_tail_kill`), so the frame interrupt never enters its code there; its keys, pages, tables and project-file hooks stay, so its setup still works. The base asks from the UI tick and puts it back from the next tick on, so a note that starts in that gap plays without it: answer for every Part a pattern change could bring in while playing, and start per-track state afresh when it wakes. A module that does not subscribe never rests. Resting takes out a module's handlers, not its own stock-site detours: on an MKII (17 November 2026, development twin of base 0.7.8, three loops sounding) a test module whose `ev_play_increment` handler spent 400 loop passes cost 12.5 points of the frame interrupt on no track and 1.0 when it answered `ev_in_use` 0. With its own detours resting as well, Repitch 0.2.1 went from 0.8 points on no track to 0.1, and woke and rested again within a UI tick while a pattern played. Its own detours can rest as well (`"rests"` in runtime.json, [HOOKS.md](../sdk/machines/octatrack/HOOKS.md)): stock runs them unpatched until the next UI tick wakes the module, so a detour that keeps stock away from a value only the module adds (Repitch's TSTR 4 in the voice renderer) must stay patched. Before reading a module's cost at rest, check it acts on no track in the scene: a sample can carry REPITCH as its own TIMESTRETCH, so with TSTR AUTO Repitch works on that track (read its playback increment, `0x80004898 + 40 × track + 36`, with and without the module). +**A module that no track uses rests.** One that subscribes `ev_in_use` and answers 0 is left out of the hooks [HOOKS.md](../sdk/machines/octatrack/HOOKS.md) marks `rests` (`ev_play_increment`, `ev_voice_bind`, `ev_voice_bind_run`, `ev_tail_kill`), so the frame interrupt never enters its code there; its keys, pages, tables and project-file hooks stay, so its setup still works. The base asks from the UI tick and puts it back from the next tick on, so a note that starts in that gap plays without it: answer for every Part a pattern change could bring in while playing, and start per-track state afresh when it wakes. A machine needs no answer: the base rests a machine's module while no track of any Part of the project, working or saved, is that machine (two scans of the project in a row, about four seconds), so pattern, Part and bank changes never wake it; a pick wakes it before it commits, and a track that names it otherwise (a paste, a load) renders silence until the next UI tick wakes it. A RENDER_FLEX machine never rests. Any other module that does not subscribe never rests. Resting takes out a module's handlers, not its own stock-site detours: on an MKII (17 November 2026, development twin of base 0.7.8, three loops sounding) a test module whose `ev_play_increment` handler spent 400 loop passes cost 12.5 points of the frame interrupt on no track and 1.0 when it answered `ev_in_use` 0. With its own detours resting as well, Repitch 0.2.1 went from 0.8 points on no track to 0.1, and woke and rested again within a UI tick while a pattern played. Its own detours can rest as well (`"rests"` in runtime.json, [HOOKS.md](../sdk/machines/octatrack/HOOKS.md)): stock runs them unpatched until the next UI tick wakes the module, so a detour that keeps stock away from a value only the module adds (Repitch's TSTR 4 in the voice renderer) must stay patched. Before reading a module's cost at rest, check it acts on no track in the scene: a sample can carry REPITCH as its own TIMESTRETCH, so with TSTR AUTO Repitch works on that track (read its playback increment, `0x80004898 + 40 × track + 36`, with and without the module). **A stall after a long frame can be the next frame's entry, not the load.** At START and at a program change one frame interrupt ran 475 to 585 µs on every image octabam measured, stock included, so the next one entered late (Sam Banks's MKII, 12 and 13 November 2026, octabam `d16d0520`, `trap-late-frame` in its register). Of 33 logged first STARTs, entries 128 to 149 µs late ran on, entries 155 to 223 µs late made the DSP skip one frame and run on, and the two that entered 149 and 155 µs late stopped the frame exchange for good: the sequencer holds step 1, the panel and USB still answer, and only a power cycle clears it. A USB capture added 25 to 30 µs and put that unit on the boundary (5 of 8 first STARTs stalled with one open, none of 13 without); 60 µs added to every frame moved it past and cured it. So time in the frame interrupt can cause or cure such a stall by a few microseconds, and a stall that comes or goes with a module says nothing about the module until the frames before it show how late the last entries were (`diag.h`'s trace, which the owner's diagnostics pull prints). None of this is measured on a Modwerk base: where its START frame lands is unknown, the DSP's side is inferred upstream, and upstream still has stalls outside the window. Modwerk's stalls at a high interrupt share (24 October 2026, [hardware traps](OCTATRACK_HARDWARE_TRAPS.md#coldfire-and-dsp-load); 10 November 2026, FM Synth beside eight FLEX tracks) looked the same and kept no entry times, so they do not tell the two apart. A guard that holds late entries must count a lateness within 20 µs of a whole frame as on time: the wait window's first version did not and made about 150 on-time entries in one run wait up to 80 µs each, so #1510's plan takes the corrected arithmetic. diff --git a/docs/OCTATRACK_API.md b/docs/OCTATRACK_API.md index 72477a3999..e39a231747 100644 --- a/docs/OCTATRACK_API.md +++ b/docs/OCTATRACK_API.md @@ -52,7 +52,7 @@ The base owns every stock site that more than one module needs and shares it as - **Playback:** `ev_play_increment` (Repitch changes a track's playback rate), `ev_voice_bind`, `ev_voice_bind_run`. - **Mutes and stops:** `ev_mute_keep` and `ev_trig_muted` (raised), `ev_tail_kill`. -- **Resting:** `ev_in_use`, which the base asks each module from the UI tick: while a module answers 0 it is left out of the hooks marked `rests`. +- **Resting:** `ev_in_use`, which the base asks each module from the UI tick: while a module answers 0 it is left out of the hooks marked `rests`, and its detours listed in `"rests"` hold stock's bytes. A machine (`ot_machines`) needs no answer: the base rests it while no track of any Part of the project is that machine, and wakes it before a pick commits. Any other module with code in the frame interrupt (a stock-site detour or a `rests` hook) answers `ev_in_use` itself, or it costs the frame while unused ([performance](MODULE_PERFORMANCE.md)). - **MIDI and the keyboard:** `ev_midi_note_on`, `ev_midi_note_off`, `ev_midi_note_key`, `ev_octave_key`, `ev_octave_number`, `ev_keyboard_draw`, the `ev_chromatic_*` hooks, `ev_arp_setup_knob`, `ev_arp_setup_text`. - **Editing:** `ev_plock_store` (a lock byte is stored), `ev_knob_store` (a knob turn stores a Part byte). - **Projects and settings:** `ev_project_load`, `ev_project_line`, `ev_project_write`, `ev_project_defaults`, `ev_settings_sanitise`. diff --git a/sdk/machines/octatrack/HOOKS.md b/sdk/machines/octatrack/HOOKS.md index e8fa502ecc..0d2abb946a 100644 --- a/sdk/machines/octatrack/HOOKS.md +++ b/sdk/machines/octatrack/HOOKS.md @@ -22,7 +22,10 @@ A module **rests** until a track uses it: one that subscribes `ev_in_use` and an every hook whose kind says `rests`, so the frame interrupt never enters its code there; its other hooks (keys, pages, tables, project files) stay, so its setup still works. The base asks each module on its own from the UI tick and puts it back, in its (order, module id) place, at the first nonzero answer. A module -that does not subscribe never rests. Installing, replacing or removing a module wakes its position. +that contributes a machine (`ot_machines`) and does not subscribe is answered for by the base: it rests while +no track of any Part of the project, working or saved, is that machine, and wakes before a pick of it +commits. Any other module that does not subscribe never rests. Installing, replacing or removing a module +wakes its position. A module can let its own detours rest too: `"rests": ["0x…"]` in its runtime.json names them, and while it answers 0 the base puts stock's bytes back there, then its patch at the next nonzero answer (never under a paused task's resume address). Stock runs those sites unpatched until the next UI tick wakes the module, so @@ -57,7 +60,7 @@ next base build, which renames them; the base loads them by those paths. | `ev_project_load` | take | 0x400866cc | a project load starts | `struct modwerk_take, jmp entry, claims(nothing)` | The taker's entry gets every register and the stack as at the site and replays what the site held (the stock tail below) before it returns to stock; it must not jump into the site's bytes. | 10-29: a machine claiming its own tracks (claims set); 30-49: a machine's bundled feature; 50-69: a standalone feature module. The first record that claims the call takes it. | a task (UI, MIDI or project file): short, no firmware call that can block | | `ev_project_line` | take | 0x400867a2 | the project loader meets a line | `struct modwerk_take, jmp entry, claims(nothing)` | The taker's entry gets every register and the stack as at the site and replays what the site held (the stock tail below) before it returns to stock; it must not jump into the site's bytes. | 10-29: a machine claiming its own tracks (claims set); 30-49: a machine's bundled feature; 50-69: a standalone feature module. The first record that claims the call takes it. | a task (UI, MIDI or project file): short, no firmware call that can block | | `ev_project_write` | take | 0x400888aa | the project writer writes the settings lines | `struct modwerk_take, jmp entry, claims(nothing)` | The taker's entry gets every register and the stack as at the site and replays what the site held (the stock tail below) before it returns to stock; it must not jump into the site's bytes. | 10-29: a machine claiming its own tracks (claims set); 30-49: a machine's bundled feature; 50-69: a standalone feature module. The first record that claims the call takes it. | a task (UI, MIDI or project file): short, no firmware call that can block | -| `ot_machines` | table | none | the machine chooser, SRC SETUP, the page resolver, the Part validator, the UI tick, pool navigation and the FLEX renderer ask the contributed machines, in row order: chooser rows 5 on | `80-byte record` | Contribute one struct modwerk_machine (every field but abi, sig and label optional, 0). A Part keeps its signature when the machine is absent and reads as stock. Leaving a PROTECT machine that has no assign of its own puts stock's FLEX defaults back in both Part copies before the signature goes. A priced machine (source_kind) is charged on its track's core before the track becomes it, and every owned track at each UI tick; a track the core cannot carry renders stock's silent source. Removal is refused while a Part, a UI root or a paused task still holds the machine. A SETUP_PAGE machine contributes a struct modwerk_machine_setup (88 bytes): while SRC SETUP's cursor is on its row and the current track is its own, the drawer shows the page its page function returns and encoders A-F go to its knob function before stock edits the backing pool's setup; a base without the flag ignores it and reads 80 bytes, so the machine keeps stock's setup there. A NATIVE_FLEX machine must contribute START and its own render callback. It keeps its native FLEX voice active while the base clears its retrig count; refused STARTs, unpaid owners and missing machines still stop it. Translate and restore custom controls around native START and render calls. Use a matching base: older bases ignore this flag and stop the voice. | lower first, then module id: the chooser's row order. 10 POLY8, 20 Analog BD, 30 VECTOR, 40 FM Synth (the order of POLY8's shared controller); others 50-90. | the UI task and the audio render (render only): short, no firmware call that can block | +| `ot_machines` | table | none | the machine chooser, SRC SETUP, the page resolver, the Part validator, the UI tick, pool navigation and the FLEX renderer ask the contributed machines, in row order: chooser rows 5 on | `80-byte record` | Contribute one struct modwerk_machine (every field but abi, sig and label optional, 0). A Part keeps its signature when the machine is absent and reads as stock. Leaving a PROTECT machine that has no assign of its own puts stock's FLEX defaults back in both Part copies before the signature goes. A priced machine (source_kind) is charged on its track's core before the track becomes it, and every owned track at each UI tick; a track the core cannot carry renders stock's silent source. Removal is refused while a Part, a UI root or a paused task still holds the machine. A SETUP_PAGE machine contributes a struct modwerk_machine_setup (88 bytes): while SRC SETUP's cursor is on its row and the current track is its own, the drawer shows the page its page function returns and encoders A-F go to its knob function before stock edits the backing pool's setup; a base without the flag ignores it and reads 80 bytes, so the machine keeps stock's setup there. A NATIVE_FLEX machine must contribute START and its own render callback. It keeps its native FLEX voice active while the base clears its retrig count; refused STARTs, unpaid owners and missing machines still stop it. Translate and restore custom controls around native START and render calls. Use a matching base: older bases ignore this flag and stop the voice. A machine's module that does not subscribe ev_in_use rests while no track of any Part of the project, working or saved, is the machine (the base answers for it, HOOKS.md): its handlers leave the hooks that rest and its detours marked rests hold stock's bytes, its table records and setup stay. A RENDER_FLEX machine never rests. A track that names a resting machine renders stock's silent source until the module wakes, at the next UI tick or before a pick of it commits. | lower first, then module id: the chooser's row order. 10 POLY8, 20 Analog BD, 30 VECTOR, 40 FM Synth (the order of POLY8's shared controller); others 50-90. | the UI task and the audio render (render only): short, no firmware call that can block | | `ot_sequencer_rows` | table | none | PROJECT > CONTROL > SEQUENCER lists stock's three rows, then one per contributed label | `4-byte record` | Contribute one struct modwerk_sequencer_rows: its rows, in order. The window shows stock's three rows and up to eight more; a row with a label an earlier row has is not shown; the getter and setter follow stock's rows' convention (CHAIN AFTER's 0x400659ec). | lower first, then module id: the rows' order. 40 FM Synth's bundled quantizer, 50 Scale Quantizer. | the UI task | | `ev_tail_kill` | call, rests | 0x40004d0c | STOP's tail kill (STOP, STOP, STOP) holds a track: each frame, for each held track, before stock tests the track's FX2 against its three reverbs and clears theirs | `void f(uint8_t *record, unsigned track)` | A notification: every handler runs, then stock's own test. record is the track's 64-byte frame record its DSP instances read (32 halfwords): the halfword at +56 is the FX2 id stock tests, the byte at +53 FX2 SETUP's slot 11, which stock zeroes for its reverbs while the kill holds. A handler may zero its own effect's bytes there the same way (check +56 first). d2-d7/a2-a6 are the builder's and must be kept. | lower first, then module id; 10-90. | the frame interrupt: short, no firmware call that can block | | `ot_midi_generators` | table | none | MIDI NOTE SETUP (double-tap SRC, or double-tap TRACK in MIDI mode) lists ARP (stock's arpeggiator: no generator) and the contributed generators in its empty left half, five rows at a time (UP/DOWN scroll); a MIDI track running one shows that generator's pages on the MIDI pages it takes (always ARP; FUNC+AMP: the ARP page's second) | `36-byte record` | Contribute one struct modwerk_midi_generator (every field but abi, label and id optional, 0). Choosing it puts 'M' and its id in the track's arp step mask (Part 0x1822 + 2 t, high byte first), which stock's validator never reads and only ARP SETUP edits; stock's default there is ffff. On every change of generator the base first puts the track's arpeggiator back to stock's defaults (MODE OFF, every note 0), then calls the old generator's assign(t, 0) and the new one's assign(t, 1). While a generator runs a track it owns that track's 16 arpeggiator note bytes (Part 0x1832 + 16 t, each -64..63, the range stock's validator keeps), so the ARP page is always its own and FUNC+AMP never opens ARP SETUP there. Its pages show while no trig or scene is held (stock's then, so locks stay stock's); the base takes encoders A-F, YES and, on the second ARP page, NO there. Values behind the pages it takes stay stock's and keep their meaning (a NOTE page's NOT2-4 still add chord notes): set or show them itself. Layout A (owner, 24 October 2026): generators take SRC and AMP; FX1 and FX2 are kept for MIDI effects. A track whose id has no installed generator reads as stock. | lower first, then module id: the list's order. 30 for the first generator; others 40-90. | the UI task | diff --git a/sdk/machines/octatrack/elekloader/README.md b/sdk/machines/octatrack/elekloader/README.md index f80a6189e0..a96fc5edb4 100644 --- a/sdk/machines/octatrack/elekloader/README.md +++ b/sdk/machines/octatrack/elekloader/README.md @@ -342,6 +342,16 @@ filter never comes back to exact zero after a send, so this drops a residue belo bit-identical. A send that opens starts from silent taps. A module that takes the routine's seam before it (Tape Echo, `0x4000361a`) restarts the count. A pick is still judged as if every quiet delay were awake (`modwerk_status_cpu_load` adds a point a quiet track), since a scene that opens the sends takes the whole saving back from the next frame: the skip buys margin, never admission. The A/B harness and the unit figures are in `delay-harness/`. +`machine_registry.c` rests the module of a machine no track of the project uses (the loader asks it through +`modwerk_machine_in_use`, events.json's judged `ot_machines`): its handlers leave the hooks that rest and its detours +marked `rests` hold stock's bytes, so an installed machine nobody plays costs the frame interrupt nothing of its own. +The machine map's scan (every two seconds, at once after a change) reads every Part of the project, working and saved, +so pattern, Part and bank changes never need a wake; a module rests after two scans in a row find none of its tracks, +never on a scan taken while a project loads, and every machine stays awake for two scans after the set changes. A pick +of a resting machine wakes it before the pick commits and is judged with `mw_wake_mille` (3 meter points) on top of its +price, for its hooks coming back into the frame; a track that names one without a pick renders stock's silent source +and starts no voice until the next UI tick wakes it. A RENDER_FLEX machine never rests. + `status.c` also keeps the frame interrupt's share of each frame from the frame guard's sums, over the last four seconds (the last play's while stopped), and the box after a pick shows it in its CPU row against `mw_frame_line`, the share where the guard starts to drop renders. `status.c` measures, all the time, the ColdFire's load (main's idle spin, timed on DTIM3, `status.s`), each diff --git a/sdk/machines/octatrack/elekloader/machine_registry.c b/sdk/machines/octatrack/elekloader/machine_registry.c index 46868d1e13..ce1eb180b3 100644 --- a/sdk/machines/octatrack/elekloader/machine_registry.c +++ b/sdk/machines/octatrack/elekloader/machine_registry.c @@ -183,6 +183,11 @@ static unsigned owner(const Machine *const *m, unsigned n, const Part *part, uns * under the line played over it, and the frame guard then dropped its renders (shared diagnostics, 11 to 14 * November 2026: 166 skip records on 24 units beside 5 refusals). */ volatile uint32_t mw_cpu_hot = 850u; /* per mille; development bases may change it */ +/* A pick that wakes a resting machine's module (below, "Machines that rest") is judged with this on top of its price: + * what the module's hooks and detours cost the frame again once awake, which the meter cannot show before. The most + * of the 24 packages measured at rest on an MKII (20 November 2026, base 0.7.10 twin, playing): POLY8 0.3.3, 2.3 + * points; MKII tracks here are about one meter point a frame point. Per mille of the meter. */ +volatile uint32_t mw_wake_mille = 30u; volatile uint32_t mw_cpu_allowance = 45u, mw_cpu_booked; /* percent of a frame; development bases may change the allowance */ volatile uint8_t mw_cpu_refused; /* the current Part's tracks past the allowance: the frame interrupt reads it whole */ static uint8_t cpu_warned; /* ... whose box already showed, as `warned` */ @@ -320,8 +325,69 @@ static unsigned sequencer(void) * FLEX track; walking the machine table and comparing every machine's signature each time was most of its own cost. * Written in the frame interrupt only. The descriptors it names are the rows': looked_up is cleared masked when the * rows change (modwerk_machine_tables_changed), before a machine that left loses its memory. */ -enum { NOBODY, OWNED, ORPHAN }; +enum { NOBODY, OWNED, ORPHAN, ASLEEP }; static struct { const Part *part; uint32_t bytes; const Machine *who; unsigned kind; } looked[8]; +/* ---- Machines that rest (owner, 20 November 2026: an installed module no track uses costs nothing) ----------------- + * A machine's module that does not answer ev_in_use itself is answered for here (events.json's judged ot_machines, + * loader.h modwerk_machine_in_use): it is in use while a track of any Part of the project, working or saved, is the + * machine, so a pattern, Part or bank change never needs it woken; the scan is the machine map's (mc_scan), every two + * seconds or at once after a change. It rests after REST_AFTER scans in a row find no such track: its handlers leave + * the hooks that rest (the frame interrupt's ev_play_increment, ev_voice_bind and ev_tail_kill) and its detours marked + * rests hold stock's bytes. A track that names a resting machine all the same (a paste, a project just loaded) renders + * stock's silent source and asks for it (wake_who) until the next UI tick wakes it; a pick wakes it before it commits. + * A RENDER_FLEX machine is offered FLEX tracks nobody owns, so it never rests. */ +#define REST_AFTER 2u +int modwerk_fxmap_loading(void); /* fxmap.c: a project load runs */ +static const Machine *use_who[ROWS - 5u]; /* the rows' machines at the last scan, and how many scans in a row found */ +static uint8_t use_idle[ROWS - 5u]; /* no track of the project on each (UI task) */ +static unsigned use_n; +static uint32_t use_epoch; /* the loader's owner epoch at the last scan: a set installed, removed or undone + * since keeps every machine awake until REST_AFTER scans of the new set */ +static const Machine *volatile wake_who[8]; /* the frame interrupt: track t names this resting machine */ +static const Machine *volatile pick_who; /* mw_assign: this resting machine is being picked */ +static const Machine *asleep_who[ROWS - 5u]; /* the rows' machines whose module rests: written masked (tables changed) */ +static unsigned asleep_n; +static int asleep(const Machine *who) +{ + for (unsigned k = 0; k < asleep_n; ++k) if (asleep_who[k] == who) return 1; + return 0; +} +static void asleep_refresh(void) /* masked: the loader just changed the rows or the resting set */ +{ + asleep_n = 0; + for (uintptr_t volatile *row = modwerk_runtime_event_row[MACHINES]; *row && asleep_n < ROWS - 5u; ++row) + if (modwerk_runtime_resting_at(*row)) asleep_who[asleep_n++] = (const Machine *)*row; +} +int modwerk_machine_in_use(const struct runtime_module *module) +{ + const Machine *who = (const Machine *)module->hook[MODWERK_OT_MACHINES]; + if (!who || who->abi != MODWERK_MACHINE_ABI || who->flags & MODWERK_MACHINE_RENDER_FLEX || pick_who == who || + modwerk_runtime_owner_epoch() != use_epoch) return 1; + for (unsigned t = 0; t < 8u; ++t) if (wake_who[t] == who) return 1; + for (unsigned k = 0; k < use_n; ++k) if (use_who[k] == who) return use_idle[k] < REST_AFTER; + return 1; /* not scanned since it came: awake until a scan says otherwise */ +} +/* The machine map's scan found `mine` (bit k: a track of the project is m[k]): the count of idle scans for each. */ +static void use_scanned(const Machine *const *m, unsigned n, uint32_t mine) +{ + uint8_t idle[ROWS - 5u]; + uint32_t epoch = modwerk_runtime_owner_epoch(); + int same_set = epoch == use_epoch, loading = modwerk_fxmap_loading(); + use_epoch = epoch; + for (unsigned k = 0; k < n; ++k) { + unsigned was = 0; + for (unsigned j = 0; same_set && j < use_n; ++j) if (use_who[j] == m[k]) was = use_idle[j]; + /* While a project loads, stock rewrites the banks a Part at a time (fxmap.c): a scan then counts what it sees + * used, never an idle scan, so nothing rests on a half-loaded project. */ + idle[k] = mine >> k & 1u ? 0u : loading ? (uint8_t)was : (uint8_t)(was < 255u ? was + 1u : 255u); + if (!(mine >> k & 1u) && idle[k] < REST_AFTER) continue; + /* used, or idle long enough: a wake asked for it is answered either way */ + if (pick_who == m[k]) pick_who = 0; + for (unsigned t = 0; t < 8u; ++t) if (wake_who[t] == m[k]) wake_who[t] = 0; + } + for (unsigned k = 0; k < n; ++k) use_who[k] = m[k], use_idle[k] = idle[k]; + use_n = n; +} static const Machine *flex_machine; /* the first RENDER_FLEX machine with a render: it takes unowned FLEX tracks */ static uint32_t looked_up; /* bit t: looked[t] stands; bit 8: flex_machine does */ /* Those bytes are slow to read: the Part index is in battery RAM, about half a microsecond a read, and the bank's @@ -351,6 +417,7 @@ void modwerk_machine_tables_changed(void) } for (unsigned k = 5; k < ROWS; ++k) mw_src_names[k] = (const char *)(uintptr_t)U32(0x400a78c8u + 4), mw_pb_table[k] = FLEX_PAGE; counts(n, sequencer()); + asleep_refresh(); } const char *mw_name(unsigned row) @@ -455,9 +522,12 @@ unsigned mw_assign(Part *part, unsigned track, unsigned row) if (next) { if (next->admit_track && !next->admit_track(part, track)) return (unsigned)-1; warned &= (uint8_t)~(1u << track); /* a pick is a new ask: say so again if it is refused again */ + int waking = old != next && asleep(next); if (old != next) { /* a unit this machine's renders would make busy does not take it */ uint32_t cpu = modwerk_status_cpu_load(); - if (cpu + 10u * cpu_price(next) >= mw_cpu_hot) { + /* A resting machine's module also brings its hooks and detours back into the frame: the meter does not + * hold them yet, so its pick is judged with them (MW_WAKE_MILLE) on top. */ + if (cpu + 10u * cpu_price(next) + (waking ? mw_wake_mille : 0u) >= mw_cpu_hot) { mw_cpu_refusals = mw_cpu_refusals + 1u, mw_cpu_refusal_tracks |= 1u << track; modwerk_status_cpu_hot(track, next->label, cpu); return (unsigned)-1; @@ -471,6 +541,10 @@ unsigned mw_assign(Part *part, unsigned track, unsigned row) } } if (next->source_kind && old != next && !claim(track, next)) return (unsigned)-1; + if (waking) { /* awake before the track becomes it: its hooks see the commit; else silent until the next tick */ + pick_who = next; + modwerk_runtime_rest_poll(); + } if (old != next) mc_assigned(next); if (old && old != next) leave(part, mirror, track, old); if (absent) flex_defaults(part, mirror, track); @@ -712,6 +786,10 @@ int mw_source_start_impl(unsigned track, unsigned sample, unsigned flags, Source start_refused[track] = 0; return orphan(current_part(), track) ? 0 : fallback ? fallback(track, sample, flags) : 0; } + if (asleep(who)) { /* as an absent machine's track, until it wakes */ + start_refused[track] = 0, wake_who[track] = who; + return 0; + } if (!(who->flags & MODWERK_MACHINE_START)) { start_refused[track] = 0; return fallback ? fallback(track, sample, flags) : 0; @@ -751,7 +829,7 @@ SourceStart *mw_source_start_select(unsigned track, SourceStart *fallback) const Machine *m[ROWS - 5u], *who = 0; unsigned n = machines(m); if (owner(m, n, current_part(), track, &who)) { - if (who->flags & MODWERK_MACHINE_START) return source_start_dispatch; + if (who->flags & MODWERK_MACHINE_START || asleep(who)) return source_start_dispatch; } else if (orphan(current_part(), track)) { return source_start_dispatch; } @@ -854,7 +932,7 @@ static unsigned look(unsigned t, const Machine **who) uint32_t bytes = (uint32_t)part[0x22 + t] << 24 | (uint32_t)s[0] << 16 | (uint32_t)s[1] << 8 | s[2]; if (!(looked_up >> t & 1u) || looked[t].part != part || looked[t].bytes != bytes) { const Machine *m[ROWS - 5u]; unsigned n = render_rows(m); - looked[t].kind = owner(m, n, part, t, &looked[t].who) ? OWNED : orphan(part, t) ? ORPHAN : NOBODY; + looked[t].kind = owner(m, n, part, t, &looked[t].who) ? asleep(looked[t].who) ? ASLEEP : OWNED : orphan(part, t) ? ORPHAN : NOBODY; looked[t].part = part, looked[t].bytes = bytes, looked_up |= 1u << t; } frame_seen |= 1u << t; @@ -889,7 +967,8 @@ int mw_source_render_impl(unsigned track, unsigned ping, unsigned start, unsigne } Render *f = who->render ? who->render : STOCK(Render *, 0x40004008u); /* POLY8's voices render inside stock's */ return who->source_kind ? f(track, ping, start, end) : guarded(f, STOCK(Render *, 0x400047f0u), track, ping, start, end); - } else if (kind == ORPHAN) { /* its bytes are the absent machine's, not FLEX's */ + } else if (kind == ORPHAN || kind == ASLEEP) { /* its bytes are the absent machine's, not FLEX's */ + if (kind == ASLEEP) wake_who[track] = who; /* resting: its detours hold stock's bytes until it wakes */ stop_stock(track); return STOCK(Render *, 0x400047f0u)(track, ping, start, end); } @@ -919,7 +998,8 @@ int mw_foreign_render(unsigned track, unsigned ping, unsigned start, unsigned en if (kind == NOBODY) /* THRU, NEIGHBOR and PICKUP have no stand-in here */ return frame_part && frame_part[0x22 + track] <= 1u ? guarded(f, STOCK(Render *, 0x40004008u), track, ping, start, end) : f(track, ping, start, end); - if (kind == ORPHAN || start_refused[track] == who || mw_cpu_refused >> track & 1u || + if (kind == ASLEEP) wake_who[track] = who; + if (kind == ORPHAN || kind == ASLEEP || start_refused[track] == who || mw_cpu_refused >> track & 1u || (who->source_kind && charged[track] != who)) return STOCK(Render *, 0x400047f0u)(track, ping, start, end); return who->source_kind ? f(track, ping, start, end) : guarded(f, STOCK(Render *, 0x400047f0u), track, ping, start, end); @@ -1053,7 +1133,8 @@ void modwerk_machine_map_refresh(void) if (!mc_stale && (mc_refreshes & 3u)) return; mc_stale = 0; const Machine *m[ROWS - 5u]; unsigned n = machines(m); - uint32_t named = mc_scan(0, 0, 0), absent = 0; + uint32_t mine, named = mc_scan(m, n, &mine), absent = 0; + use_scanned(m, n, mine); /* which machines' modules may rest (modwerk_machine_in_use) */ for (unsigned k = 0; k < MODWERK_MACHINE_MAP; ++k) { const volatile struct mc_entry *e = &MCMAP->e[k]; if (!(named >> k & 1u)) continue; diff --git a/sdk/machines/octatrack/elekloader/runtime_events.h b/sdk/machines/octatrack/elekloader/runtime_events.h index 659287f1b0..2c7ff371d4 100644 --- a/sdk/machines/octatrack/elekloader/runtime_events.h +++ b/sdk/machines/octatrack/elekloader/runtime_events.h @@ -11,6 +11,8 @@ #define RUNTIME_SITE_EVENT_RESTS { 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } /* the event the base asks each module from the UI tick (loader.c rest_poll) */ #define RUNTIME_SITE_EVENT_IN_USE 50u +/* the table whose contributors the base answers ev_in_use for (loader.c judged) */ +#define RUNTIME_SITE_EVENT_JUDGED 24u #define RUNTIME_SITE_EVENT_WORDS (21u * (RUNTIME_MODULES + 1u) + 266u) #define RUNTIME_SITE_EVENT_ROWS(r) { (r) + 0u * (RUNTIME_MODULES + 1u) + 0u, (r) + 1u * (RUNTIME_MODULES + 1u) + 0u, (r) + 2u * (RUNTIME_MODULES + 1u) + 0u, (r) + 3u * (RUNTIME_MODULES + 1u) + 0u, (r) + 4u * (RUNTIME_MODULES + 1u) + 0u, (r) + 4u * (RUNTIME_MODULES + 1u) + 9u, (r) + 4u * (RUNTIME_MODULES + 1u) + 18u, (r) + 4u * (RUNTIME_MODULES + 1u) + 27u, (r) + 4u * (RUNTIME_MODULES + 1u) + 36u, (r) + 4u * (RUNTIME_MODULES + 1u) + 45u, (r) + 4u * (RUNTIME_MODULES + 1u) + 54u, (r) + 4u * (RUNTIME_MODULES + 1u) + 63u, (r) + 4u * (RUNTIME_MODULES + 1u) + 72u, (r) + 4u * (RUNTIME_MODULES + 1u) + 81u, (r) + 4u * (RUNTIME_MODULES + 1u) + 90u, (r) + 4u * (RUNTIME_MODULES + 1u) + 99u, (r) + 4u * (RUNTIME_MODULES + 1u) + 108u, (r) + 4u * (RUNTIME_MODULES + 1u) + 117u, (r) + 4u * (RUNTIME_MODULES + 1u) + 126u, (r) + 4u * (RUNTIME_MODULES + 1u) + 135u, (r) + 4u * (RUNTIME_MODULES + 1u) + 144u, (r) + 4u * (RUNTIME_MODULES + 1u) + 153u, (r) + 4u * (RUNTIME_MODULES + 1u) + 162u, (r) + 4u * (RUNTIME_MODULES + 1u) + 171u, (r) + 4u * (RUNTIME_MODULES + 1u) + 180u, (r) + 4u * (RUNTIME_MODULES + 1u) + 189u, (r) + 4u * (RUNTIME_MODULES + 1u) + 198u, (r) + 5u * (RUNTIME_MODULES + 1u) + 198u, (r) + 5u * (RUNTIME_MODULES + 1u) + 215u, (r) + 5u * (RUNTIME_MODULES + 1u) + 224u, (r) + 5u * (RUNTIME_MODULES + 1u) + 233u, (r) + 5u * (RUNTIME_MODULES + 1u) + 242u, (r) + 6u * (RUNTIME_MODULES + 1u) + 242u, (r) + 6u * (RUNTIME_MODULES + 1u) + 247u, (r) + 6u * (RUNTIME_MODULES + 1u) + 256u, (r) + 7u * (RUNTIME_MODULES + 1u) + 256u, (r) + 8u * (RUNTIME_MODULES + 1u) + 256u, (r) + 9u * (RUNTIME_MODULES + 1u) + 256u, (r) + 10u * (RUNTIME_MODULES + 1u) + 256u, (r) + 11u * (RUNTIME_MODULES + 1u) + 256u, (r) + 12u * (RUNTIME_MODULES + 1u) + 256u, (r) + 13u * (RUNTIME_MODULES + 1u) + 256u, (r) + 14u * (RUNTIME_MODULES + 1u) + 256u, (r) + 15u * (RUNTIME_MODULES + 1u) + 256u, (r) + 16u * (RUNTIME_MODULES + 1u) + 256u, (r) + 17u * (RUNTIME_MODULES + 1u) + 256u, (r) + 18u * (RUNTIME_MODULES + 1u) + 256u, (r) + 19u * (RUNTIME_MODULES + 1u) + 256u, (r) + 20u * (RUNTIME_MODULES + 1u) + 256u, (r) + 20u * (RUNTIME_MODULES + 1u) + 258u, (r) + 20u * (RUNTIME_MODULES + 1u) + 266u } #define RUNTIME_OWNED_SITES 69u diff --git a/sdk/machines/octatrack/elekloader/test_machine_registry.c b/sdk/machines/octatrack/elekloader/test_machine_registry.c index ba4fb25723..df11e2ede1 100644 --- a/sdk/machines/octatrack/elekloader/test_machine_registry.c +++ b/sdk/machines/octatrack/elekloader/test_machine_registry.c @@ -60,8 +60,10 @@ static void *host_stock(uint32_t a) void mg_tick(void); /* midi_generators.c, checked by test_midi_generators.c */ void mg_tick(void) {} -static unsigned rest_polls; /* the loader's resting poll, checked by sdk/runtime/loader/tests/events_test.c */ -int modwerk_runtime_rest_poll(void) { return ++rest_polls, 0; } +static unsigned rest_polls; /* the loader's resting poll, checked by sdk/runtime/loader/tests/events_test.c; modelled below */ +static int project_loading; /* fxmap.c's: a project load runs */ +int modwerk_fxmap_loading(void); +int modwerk_fxmap_loading(void) { return project_loading; } /* The loader's side: the table rows and the machine glue. */ #include "loader.h" volatile uint32_t modwerk_machine_assigned; /* controller_board.c's, not linked here */ @@ -106,6 +108,39 @@ uint32_t modwerk_runtime_owner_epoch(void) { return owner_epoch; } #include "machine_registry.c" #undef modwerk_runtime_event_row +/* The loader's resting, modelled (loader.c rest_poll and judged; the rows and sites are events_test.c's): each judged + * module is a runtime_module whose ot_machines hook is its machine; at each poll it rests or wakes as + * modwerk_machine_in_use answers, and a change calls modwerk_machine_tables_changed masked, as the loader does. Off + * (model_rests 0) every machine stays awake and the poll only counts. */ +static struct runtime_module judged_mod[3]; static unsigned judged_n, rest_changes; static int model_rests; +static uintptr_t resting_rec[3]; +int modwerk_runtime_resting_at(uintptr_t a) +{ + for (unsigned i = 0; i < judged_n; ++i) if (a && resting_rec[i] == a) return 1; + return 0; +} +int modwerk_runtime_rest_poll(void) +{ + ++rest_polls; + if (!model_rests) return 0; + int changed = 0; + for (unsigned i = 0; i < judged_n; ++i) { + uintptr_t record = judged_mod[i].hook[MODWERK_OT_MACHINES]; + int rest = !modwerk_machine_in_use(&judged_mod[i]); + if ((resting_rec[i] != 0) != rest) resting_rec[i] = rest ? record : 0, changed = 1; + } + if (changed) { masked = 1; modwerk_machine_tables_changed(); masked = 0; ++rest_changes; } + return changed; +} +static void judge(unsigned i, const struct modwerk_machine *m) +{ + memset(&judged_mod[i], 0, sizeof judged_mod[i]); + judged_mod[i].id = 900u + i, judged_mod[i].hook[MODWERK_OT_MACHINES] = (uintptr_t)m, resting_rec[i] = 0; +} +static int resting(unsigned i) { return resting_rec[i] != 0; } +/* One machine-map scan (twice a second on the unit, a whole scan at once after a change), then a UI tick. */ +static void scan_tick(void) { mc_stale = 1; modwerk_machine_map_refresh(); mw_ui_tick(); } + /* The DSP budget's source stage (dsp.c, synthetic): a core carries `room` voices; a claim replaces the track's voice, * and an engine off frees its machine's engine and every voice it held. */ static unsigned room = 1, claims_made, releases, engine_offs; static uint8_t voices; static uint32_t voice_of[8], last_off; @@ -530,6 +565,114 @@ static void check_machine_map(void) rows(0, 0, 0, 0); memcpy(bank, bank_copy, sizeof bank), memcpy(sram, sram_copy, sizeof sram); } +/* Machines that rest (machine_registry.c, HOOKS.md): a machine's module no track of the project uses rests after two + * scans and costs the frame nothing; it wakes before its pick commits, at the next tick when a track names it without a + * pick (a paste, a load, a pattern while playing), and after any set change until two scans of the new set. */ +static void clear_sigs(void) +{ + for (unsigned p = 0; p < 4u; ++p) + for (unsigned t = 0; t < 8u; ++t) { + memset(host_at(0x46000000u + PART_OFF + p * PART_STRIDE + SIG + 30u * t), 0, 3); + memset(host_at(0x46000000u + SAVED_OFF + p * PART_STRIDE + SIG + 30u * t), 0, 3); + *host_at(0x46000000u + PART_OFF + p * PART_STRIDE + 0x22 + t) = 1; + *host_at(0x46000000u + SAVED_OFF + p * PART_STRIDE + 0x22 + t) = 1; + } +} +static void check_resting_machines(void) +{ + static const struct modwerk_machine Q = {MODWERK_MACHINE_ABI, {'Q', '8'}, 1, 1, "POLY", 0, 0, a_defaults, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, {0}}; /* renders inside stock's */ + extern volatile uint32_t mw_cpu_hot, mw_wake_mille; + const void *aq[] = {&A, &Q}; + clear_sigs(); misc[0x0f] = 0; /* Part 1 */ + fresh(); a_admit = 1; cpu_now = 0; mw_cpu_allowance = 45; mw_cpu_refused = 0; + rows(0, 0, 0, 0); + int flex0 = stock_renders, a0 = a_renders; + for (unsigned t = 0; t < 8u; ++t) CHECK(later(t) == -7); + int flex_none = stock_renders - flex0; CHECK(flex_none == 8 && a_renders == a0); + + /* Installed, used nowhere: awake until two scans of the new set have found no track on them, then resting. */ + judged_n = 2; judge(0, &A); judge(1, &Q); model_rests = 1; + rows(aq, 2, 0, 0); ++owner_epoch; + mw_ui_tick(); CHECK(!resting(0) && !resting(1)); /* a new set: not scanned yet */ + scan_tick(); CHECK(!resting(0) && !resting(1)); /* one idle scan */ + scan_tick(); CHECK(resting(0) && resting(1) && asleep_n == 2); /* two: both rest */ + /* Resting, they cost the frame what no machine costs: every unowned FLEX track straight to stock's render. */ + flex0 = stock_renders, a0 = a_renders; + for (unsigned t = 0; t < 8u; ++t) CHECK(later(t) == -7); + CHECK(stock_renders - flex0 == flex_none && a_renders == a0); + for (unsigned t = 0; t < 8u; ++t) CHECK(!wake_who[t]); + scan_tick(); CHECK(resting(0) && resting(1) && !pick_who); /* stays so */ + + /* A pick wakes its module before it commits; the other stays at rest. */ + unsigned polls = rest_polls; + CHECK(mw_assign(part0(), 2, 5) == 1 && rest_polls == polls + 1u && !resting(0) && resting(1) && pick_who == &A); + a0 = a_renders; CHECK(later(2) == a0 + 1); /* A renders its own track at once */ + scan_tick(); CHECK(!resting(0) && resting(1) && !pick_who); /* the scan finds it used */ + scan_tick(); scan_tick(); CHECK(!resting(0) && resting(1)); + + /* A busy unit: a pick that would wake a module is judged with its hooks back on top (mw_wake_mille). */ + { unsigned boxes = hot_boxes; + cpu_now = mw_cpu_hot - 10u * CPU_DEFAULT - mw_wake_mille; + CHECK(mw_assign(part0(), 3, 6) == (unsigned)-1 && hot_boxes == boxes + 1 && resting(1) && !pick_who); + cpu_now = mw_cpu_hot - 10u * CPU_DEFAULT - mw_wake_mille - 1u; + CHECK(mw_assign(part0(), 3, 6) == 1 && hot_boxes == boxes + 1 && !resting(1)); + CHECK(mw_assign(part0(), 3, 1) == 1); cpu_now = 0; } /* back to FLEX */ + + /* The last track leaves: two scans later it rests again. */ + CHECK(mw_assign(part0(), 2, 1) == 1); + scan_tick(); CHECK(!resting(0)); + scan_tick(); CHECK(resting(0) && resting(1)); + + /* A track that names a resting machine without a pick (a paste, a Part or bank change while playing, a load): + * stock's silent source and no START until the next tick wakes it; then the machine plays it. */ + memcpy((void *)(part0() + SIG + 30u * 4u), "AB\1", 3); + stock_voices[4 * 168] = 1; + { int silent = silent_renders; a0 = a_renders; + CHECK(later(4) == -9 && silent_renders == silent + 1 && a_renders == a0 && stock_voices[4 * 168] == 0 && wake_who[4] == &A); + unsigned calls = fallback_calls; + CHECK(mw_source_start_select(4, fallback_start) != fallback_start && !selected_start(4, 127, 0xc0, fallback_start) && fallback_calls == calls); + mw_ui_tick(); CHECK(!resting(0) && resting(1)); /* one tick */ + CHECK(later(4) == a0 + 1); + scan_tick(); CHECK(!resting(0) && !wake_who[4]); /* the scan finds it: awake while it is used */ + } + memset((void *)(part0() + SIG + 30u * 4u), 0, 3); + /* A saved copy alone keeps it awake (RELOAD brings it back), and so does another Part (a pattern change). */ + memcpy(host_at(0x46000000u + SAVED_OFF + 2u * PART_STRIDE + SIG + 30u * 6u), "AB\1", 3); + scan_tick(); scan_tick(); scan_tick(); CHECK(!resting(0)); + memset(host_at(0x46000000u + SAVED_OFF + 2u * PART_STRIDE + SIG + 30u * 6u), 0, 3); + memcpy(host_at(0x46000000u + PART_OFF + 3u * PART_STRIDE + SIG + 30u * 1u), "Q8\1", 3); + scan_tick(); CHECK(!resting(1)); /* Q woken by the scan, before any frame */ + memset(host_at(0x46000000u + PART_OFF + 3u * PART_STRIDE + SIG + 30u * 1u), 0, 3); + scan_tick(); scan_tick(); CHECK(resting(0) && resting(1)); + /* A project load: scans while it runs count no idle scan, so a machine used before it does not rest on a + * half-written bank; it still wakes for what the scans see used. */ + memcpy((void *)(part0() + SIG + 30u * 5u), "AB\1", 3); + scan_tick(); CHECK(!resting(0)); + memset((void *)(part0() + SIG + 30u * 5u), 0, 3); project_loading = 1; + scan_tick(); scan_tick(); scan_tick(); CHECK(!resting(0) && resting(1)); + project_loading = 0; scan_tick(); CHECK(!resting(0)); scan_tick(); CHECK(resting(0)); + + /* A set change (install, removal, Undo or a rolled-back trial) wakes every machine until two scans of the new set; + * a module that registers late is awake until then too. A RENDER_FLEX machine never rests. */ + judged_n = 3; judge(2, &F); + const void *aqf[] = {&A, &Q, &F}; + rows(aqf, 3, 0, 0); ++owner_epoch; /* F's position switched; A and Q still rest */ + CHECK(asleep_n == 2); + mw_ui_tick(); CHECK(!resting(0) && !resting(1) && !resting(2) && !asleep_n); + scan_tick(); CHECK(!resting(0) && !resting(1) && !resting(2)); + scan_tick(); CHECK(resting(0) && resting(1) && !resting(2)); + /* Removed while resting (Undo of the trial that brought it): no resting machine left in the frame's list. */ + rows(aq, 2, 0, 0); ++owner_epoch; judged_n = 2; + CHECK(asleep_n == 2); + const void *q_only[] = {&Q}; + resting_rec[0] = 0; rows(q_only, 1, 0, 0); ++owner_epoch; + CHECK(asleep_n == 1 && asleep_who[0] == &Q); + mw_ui_tick(); CHECK(!resting(1)); /* the set changed: Q awake again */ + + model_rests = 0; judged_n = 0; rows(0, 0, 0, 0); clear_sigs(); + CHECK(!asleep_n && !masked); +} int main(void) { put_u32(0x46c82456u, 0x46000000u); @@ -990,9 +1133,11 @@ int main(void) check_native_flex_voice(); check_cpu_budget(); check_engine_price(); + check_resting_machines(); if (failures) { fprintf(stderr, "%u registry checks failed\n", failures); return 1; } puts("Machine registry: rows by table order, admission before mutation, signatures and defaults in both copies, absent " "machines as stock, the validator's protection and wrapper chain, render routing, keyed SEQUENCER rows, chooser " - "counts and cursor clamps, SETUP_PAGE machines' own SRC SETUP, the frame guard and the CPU budget passed."); + "counts and cursor clamps, SETUP_PAGE machines' own SRC SETUP, the frame guard, the CPU budget and resting " + "machines (rest when unused, wake on pick, on a track and after a set change) passed."); return 0; } diff --git a/sdk/machines/octatrack/events.json b/sdk/machines/octatrack/events.json index 0addd7fde1..3431b8d0ba 100644 --- a/sdk/machines/octatrack/events.json +++ b/sdk/machines/octatrack/events.json @@ -1289,10 +1289,11 @@ "record": 80, "key": null, "room": 8, + "judged": true, "declaration": "struct modwerk_machine {\n uint32_t abi; /* MODWERK_MACHINE_ABI */\n uint8_t sig[2], sig_lo, sig_hi; /* the Part signature at 60 + 30 * track: two letters and a version range */\n const char *label; /* its chooser and SRC SETUP name */\n uint32_t flags; /* MODWERK_MACHINE_* */\n uint32_t page; /* its parameter page without track_page; 0: stock's FLEX page */\n const uint8_t *defaults; /* without assign: the 12 FLEX bytes a track takes when it becomes this machine */\n unsigned (*assign)(volatile uint8_t *part, unsigned track, unsigned on); /* it signs and unsigns its tracks itself */\n unsigned (*admit_track)(const volatile uint8_t *part, unsigned track); /* 0 refuses the track */\n unsigned (*chooser_type)(unsigned type, const volatile uint8_t *slot); /* 5: its row is the track's */\n uint32_t (*track_page)(const volatile uint8_t *slot);\n void (*ui_tick)(void);\n void (*leave)(unsigned track); /* the track becomes another machine */\n void (*pool_open)(void); /* RIGHT or double-tap TRACK on its row; 0: stock's sample pool */\n void (*pool_left)(unsigned key, unsigned edge);\n void (*choice_left)(unsigned key, unsigned edge);\n const void *list_draw; /* its pool list drawer, entered as stock's 0x4006d784 */\n int (*render)(unsigned track, unsigned ping, unsigned start, unsigned end);\n int (*validate)(uint8_t *part, int (*next)(uint8_t *part));\n uint16_t source_voice, source_engine; /* a DSP voice that replaces its track's stock source: its price per voice */\n uint8_t source_kind, reserved[3]; /* and per core while one runs, of this kind (loader.h runtime_cycles); 0 none */\n /* reserved[0] is the machine's CPU price (the base's CPU budget): its worst render on one track, both passes of a\n * frame, in percent of a frame, measured on a unit. 0: the base's default, or nothing for a DSP voice. It stays\n * in reserved[] so that every descriptor written `{0}` there still compiles: a priced one ends `{PERCENT}`. */\n};\n#define MODWERK_MACHINE_ABI 1u\n#define MODWERK_MACHINE_PROTECT 1u /* stock's validator never sees its tracks' 12 FLEX bytes */\n#define MODWERK_MACHINE_POOL 2u /* its row has a pool or engine list (the title's chevron) */\n#define MODWERK_MACHINE_RENDER_FLEX 4u /* its render is also offered FLEX tracks no machine owns */\n#define MODWERK_MACHINE_BACKING 8u /* its page is STATIC's when its track's backing pool is STATIC */\n#define MODWERK_MACHINE_SETUP_ALL 16u /* all six SRC SETUP encoders edit its slots; without it encoder E (slot 10) stays read-only, POLY8's hidden slot */\n#define MODWERK_MACHINE_LIST 32u /* its track window (TRACK double tap) opens on the machine list, as PICKUP's; for a machine without a pool */\n#define MODWERK_MACHINE_SETUP_PAGE 64u /* it draws and edits its own SRC SETUP rows: its record is a struct modwerk_machine_setup */\n/* A SETUP_PAGE machine contributes this 88-byte record: SRC SETUP on its row, on a track it owns (0: stock's, the backing\n * pool's setup). A base without the flag reads its first 80 bytes, the machine. */\nstruct modwerk_machine_setup {\n struct modwerk_machine machine; /* its flags have MODWERK_MACHINE_SETUP_PAGE */\n uint32_t (*page)(uint32_t stock); /* the page the drawer shows instead of stock's */\n unsigned (*knob)(unsigned index, int delta); /* encoder A-F (0-5) turned: nonzero takes it, 0 lets stock edit the pool's slot */\n};\n#define MODWERK_MACHINE_START 256u /* requires its separate versioned START record */\n#define MODWERK_MACHINE_NATIVE_FLEX 512u /* render consumes the native FLEX voice; requires START and its own translating render */", "when": "the machine chooser, SRC SETUP, the page resolver, the Part validator, the UI tick, pool navigation and the FLEX renderer ask the contributed machines, in row order: chooser rows 5 on", "context": "the UI task and the audio render (render only): short, no firmware call that can block", - "contract": "Contribute one struct modwerk_machine (every field but abi, sig and label optional, 0). A Part keeps its signature when the machine is absent and reads as stock. Leaving a PROTECT machine that has no assign of its own puts stock's FLEX defaults back in both Part copies before the signature goes. A priced machine (source_kind) is charged on its track's core before the track becomes it, and every owned track at each UI tick; a track the core cannot carry renders stock's silent source. Removal is refused while a Part, a UI root or a paused task still holds the machine. A SETUP_PAGE machine contributes a struct modwerk_machine_setup (88 bytes): while SRC SETUP's cursor is on its row and the current track is its own, the drawer shows the page its page function returns and encoders A-F go to its knob function before stock edits the backing pool's setup; a base without the flag ignores it and reads 80 bytes, so the machine keeps stock's setup there. A NATIVE_FLEX machine must contribute START and its own render callback. It keeps its native FLEX voice active while the base clears its retrig count; refused STARTs, unpaid owners and missing machines still stop it. Translate and restore custom controls around native START and render calls. Use a matching base: older bases ignore this flag and stop the voice.", + "contract": "Contribute one struct modwerk_machine (every field but abi, sig and label optional, 0). A Part keeps its signature when the machine is absent and reads as stock. Leaving a PROTECT machine that has no assign of its own puts stock's FLEX defaults back in both Part copies before the signature goes. A priced machine (source_kind) is charged on its track's core before the track becomes it, and every owned track at each UI tick; a track the core cannot carry renders stock's silent source. Removal is refused while a Part, a UI root or a paused task still holds the machine. A SETUP_PAGE machine contributes a struct modwerk_machine_setup (88 bytes): while SRC SETUP's cursor is on its row and the current track is its own, the drawer shows the page its page function returns and encoders A-F go to its knob function before stock edits the backing pool's setup; a base without the flag ignores it and reads 80 bytes, so the machine keeps stock's setup there. A NATIVE_FLEX machine must contribute START and its own render callback. It keeps its native FLEX voice active while the base clears its retrig count; refused STARTs, unpaid owners and missing machines still stop it. Translate and restore custom controls around native START and render calls. Use a matching base: older bases ignore this flag and stop the voice. A machine's module that does not subscribe ev_in_use rests while no track of any Part of the project, working or saved, is the machine (the base answers for it, HOOKS.md): its handlers leave the hooks that rest and its detours marked rests hold stock's bytes, its table records and setup stay. A RENDER_FLEX machine never rests. A track that names a resting machine renders stock's silent source until the module wakes, at the next UI tick or before a pick of it commits.", "order": "lower first, then module id: the chooser's row order. 10 POLY8, 20 Analog BD, 30 VECTOR, 40 FM Synth (the order of POLY8's shared controller); others 50-90.", "subscribers": [ { diff --git a/sdk/machines/octatrack/events.py b/sdk/machines/octatrack/events.py index 92a03cc666..24369e1a97 100644 --- a/sdk/machines/octatrack/events.py +++ b/sdk/machines/octatrack/events.py @@ -24,6 +24,8 @@ loader writes the address into a zero word of its image at install, so no package is bound to one base build. A call event marked "rests" leaves out the handlers of a module that answers ev_in_use 0 (the loader's RUNTIME_SITE_EVENT_RESTS, loader.c rest_poll). +A table marked "judged" (one at most) names the modules the base answers ev_in_use for: a contributor that does not +subscribe ev_in_use rests when the base says no track uses it (RUNTIME_SITE_EVENT_JUDGED, modwerk_machine_in_use). Three kinds of hook (HOOKS.md): a `call` hook (the default) runs C handlers at its site; a `take` hook gives its site to one subscriber, whose detour-ABI entry @@ -83,6 +85,8 @@ def load(path=REGISTRY): raise ValueError('events.json: %s room is 1-128 subscribers' % name) if type(e.get('rests', False)) is not bool or (e.get('rests') and (kind != 'call' or e.get('site') is None)): raise ValueError('events.json: %s rests (true or false) only as a call event at a site' % name) + if type(e.get('judged', False)) is not bool or (e.get('judged') and kind != 'table'): + raise ValueError('events.json: %s judged (true or false) only as a table' % name) if kind == 'call' and e.get('site') is None: # raised by a module through modwerk_raise_, or asked by the base ("each") if e.get('length') or e['args'] or e['results'] not in ('or', 'each') or not re.fullmatch('ev_[a-z0-9_]+', name) or room is not None: raise ValueError('events.json: raised event %s needs the next hook index, no length, room or arguments, ' @@ -135,6 +139,8 @@ def load(path=REGISTRY): raise ValueError('events.json: a take event shares no site with call events') if sum(e.get('results') == 'each' for e in events) > 1: raise ValueError('events.json: one event the base asks each module (results "each"), at most') + if sum(bool(e.get('judged')) for e in events) > (1 if any(e.get('results') == 'each' for e in events) else 0): + raise ValueError('events.json: one judged table at most, and only beside the event the base asks each module') return dict(sites=sites, events=events, owned=owned) @@ -315,6 +321,7 @@ def loader(reg): tables = ', '.join('1' if e['kind'] == 'table' else '0' for e in reg['events']) rests = ', '.join('1' if e.get('rests') else '0' for e in reg['events']) asked = [e['index'] - FIRST for e in reg['events'] if e.get('results') == 'each'] + judged = [e['index'] - FIRST for e in reg['events'] if e.get('judged')] owned = reg['owned'] return ('/* SPDX-License-Identifier: GPL-3.0-or-later\n' ' * Generated by sdk/machines/octatrack/events.py from events.json: do not edit.\n' @@ -334,7 +341,9 @@ def loader(reg): '%s' '#endif\n') % (names, len(reg['events']), spans, room, tables, rests, ''.join('/* the event the base asks each module from the UI tick (loader.c rest_poll) */\n' - '#define RUNTIME_SITE_EVENT_IN_USE %du\n' % k for k in asked), calls, words, ', '.join(rows), len(owned), + '#define RUNTIME_SITE_EVENT_IN_USE %du\n' % k for k in asked) + + ''.join('/* the table whose contributors the base answers ev_in_use for (loader.c judged) */\n' + '#define RUNTIME_SITE_EVENT_JUDGED %du\n' % k for k in judged), calls, words, ', '.join(rows), len(owned), ', '.join('{%#010xu, %du, %du}' % (s['site'], s['length'], index(s['table'], reg) - FIRST) for s in owned) or '{0u, 0u, 0u}', ''.join('extern const unsigned char modwerk_raise_%s[];\n' % e['event'] for e in raised) + @@ -403,7 +412,10 @@ def markdown(reg): 'every hook whose kind says `rests`, so the frame interrupt never enters its code there; its other hooks\n' '(keys, pages, tables, project files) stay, so its setup still works. The base asks each module on its own\n' 'from the UI tick and puts it back, in its (order, module id) place, at the first nonzero answer. A module\n' - 'that does not subscribe never rests. Installing, replacing or removing a module wakes its position.\n' + 'that contributes a machine (`ot_machines`) and does not subscribe is answered for by the base: it rests while\n' + 'no track of any Part of the project, working or saved, is that machine, and wakes before a pick of it\n' + 'commits. Any other module that does not subscribe never rests. Installing, replacing or removing a module\n' + 'wakes its position.\n' 'A module can let its own detours rest too: `"rests": ["0x…"]` in its runtime.json names them, and while it\n' 'answers 0 the base puts stock\'s bytes back there, then its patch at the next nonzero answer (never under a\n' 'paused task\'s resume address). Stock runs those sites unpatched until the next UI tick wakes the module, so\n' diff --git a/sdk/machines/octatrack/include/modwerk_events.h b/sdk/machines/octatrack/include/modwerk_events.h index 5fa677e0c5..0d1b3c4885 100644 --- a/sdk/machines/octatrack/include/modwerk_events.h +++ b/sdk/machines/octatrack/include/modwerk_events.h @@ -95,7 +95,7 @@ typedef unsigned modwerk_ev_mute_keep(void); /* ev_project_write (0x400888aa, take: subscribe a struct modwerk_take): the project writer writes the settings lines. A task (UI, MIDI or project file): short, no firmware call that can block. The taker's entry gets every register and the stack as at the site and replays what the site held (the stock tail below) before it returns to stock; it must not jump into the site's bytes. */ #define MODWERK_EV_PROJECT_WRITE 27 -/* ot_machines (table, contribute {"to": "ot_machines", "order", "data"}): the machine chooser, SRC SETUP, the page resolver, the Part validator, the UI tick, pool navigation and the FLEX renderer ask the contributed machines, in row order: chooser rows 5 on. The UI task and the audio render (render only): short, no firmware call that can block. Contribute one struct modwerk_machine (every field but abi, sig and label optional, 0). A Part keeps its signature when the machine is absent and reads as stock. Leaving a PROTECT machine that has no assign of its own puts stock's FLEX defaults back in both Part copies before the signature goes. A priced machine (source_kind) is charged on its track's core before the track becomes it, and every owned track at each UI tick; a track the core cannot carry renders stock's silent source. Removal is refused while a Part, a UI root or a paused task still holds the machine. A SETUP_PAGE machine contributes a struct modwerk_machine_setup (88 bytes): while SRC SETUP's cursor is on its row and the current track is its own, the drawer shows the page its page function returns and encoders A-F go to its knob function before stock edits the backing pool's setup; a base without the flag ignores it and reads 80 bytes, so the machine keeps stock's setup there. A NATIVE_FLEX machine must contribute START and its own render callback. It keeps its native FLEX voice active while the base clears its retrig count; refused STARTs, unpaid owners and missing machines still stop it. Translate and restore custom controls around native START and render calls. Use a matching base: older bases ignore this flag and stop the voice. */ +/* ot_machines (table, contribute {"to": "ot_machines", "order", "data"}): the machine chooser, SRC SETUP, the page resolver, the Part validator, the UI tick, pool navigation and the FLEX renderer ask the contributed machines, in row order: chooser rows 5 on. The UI task and the audio render (render only): short, no firmware call that can block. Contribute one struct modwerk_machine (every field but abi, sig and label optional, 0). A Part keeps its signature when the machine is absent and reads as stock. Leaving a PROTECT machine that has no assign of its own puts stock's FLEX defaults back in both Part copies before the signature goes. A priced machine (source_kind) is charged on its track's core before the track becomes it, and every owned track at each UI tick; a track the core cannot carry renders stock's silent source. Removal is refused while a Part, a UI root or a paused task still holds the machine. A SETUP_PAGE machine contributes a struct modwerk_machine_setup (88 bytes): while SRC SETUP's cursor is on its row and the current track is its own, the drawer shows the page its page function returns and encoders A-F go to its knob function before stock edits the backing pool's setup; a base without the flag ignores it and reads 80 bytes, so the machine keeps stock's setup there. A NATIVE_FLEX machine must contribute START and its own render callback. It keeps its native FLEX voice active while the base clears its retrig count; refused STARTs, unpaid owners and missing machines still stop it. Translate and restore custom controls around native START and render calls. Use a matching base: older bases ignore this flag and stop the voice. A machine's module that does not subscribe ev_in_use rests while no track of any Part of the project, working or saved, is the machine (the base answers for it, HOOKS.md): its handlers leave the hooks that rest and its detours marked rests hold stock's bytes, its table records and setup stay. A RENDER_FLEX machine never rests. A track that names a resting machine renders stock's silent source until the module wakes, at the next UI tick or before a pick of it commits. */ #define MODWERK_OT_MACHINES 28 struct modwerk_machine { uint32_t abi; /* MODWERK_MACHINE_ABI */ diff --git a/sdk/runtime/loader/loader.c b/sdk/runtime/loader/loader.c index a0b4f5e97f..725dcea777 100644 --- a/sdk/runtime/loader/loader.c +++ b/sdk/runtime/loader/loader.c @@ -90,6 +90,8 @@ int modwerk_runtime_volatile_busy(void) { return journal.progress.phase != RJ_ID #ifndef MODWERK_RUNTIME_TABLES_EXTERNAL __attribute__((weak)) void modwerk_machine_tables_changed(void) {} #endif +/* A machine that judges no module keeps every module it would judge awake. */ +__attribute__((weak)) int modwerk_machine_in_use(const struct runtime_module *m) { (void)m; return 1; } #ifndef MODWERK_RUNTIME_REFERENCE_EXTERNAL __attribute__((weak)) uint32_t modwerk_machine_reference(uint32_t value) { return value; } @@ -283,17 +285,38 @@ static uintptr_t raise_of(uint32_t hook) { (void)hook; return 0; } #if RUNTIME_SITE_EVENTS && defined(RUNTIME_SITE_EVENT_IN_USE) /* A module rests until a track uses it (HOOKS.md): while its ev_in_use answers 0 its handlers stay out of the rows of * the events that rest, so the frame interrupt never enters its code there. Bit i of `resting`: position i rests; of - * `asks`: its module subscribes ev_in_use. Both change locked: a switch wakes its position, rest_poll the others. */ + * `asks`: its module subscribes ev_in_use, or the machine answers for it (judged). Both change locked: a switch wakes + * its position, rest_poll the others. */ static const uint8_t event_rests[RUNTIME_SITE_EVENTS] = RUNTIME_SITE_EVENT_RESTS; #define REST_WORDS ((RUNTIME_MODULES + 31u) / 32u) static uint32_t resting[REST_WORDS], asks[REST_WORDS]; static int is_resting(unsigned i) { return resting[i / 32u] >> (i % 32u) & 1u; } static int rests(unsigned e, unsigned i) { return event_rests[e - RUNTIME_EVENTS] && is_resting(i); } +/* A module that contributes to the table the machine judges (RUNTIME_SITE_EVENT_JUDGED: the Octatrack's track machines) + * and does not answer ev_in_use itself: the machine knows when a track uses it, so it answers for it + * (modwerk_machine_in_use) and the module rests as if it had answered. */ +#ifdef RUNTIME_SITE_EVENT_JUDGED +static int judged(const struct runtime_module *m) +{ + return m && !m->hook[RUNTIME_EVENTS + RUNTIME_SITE_EVENT_IN_USE] && m->hook[RUNTIME_EVENTS + RUNTIME_SITE_EVENT_JUDGED]; +} +#else +static int judged(const struct runtime_module *m) { (void)m; return 0; } +#endif static void woken(unsigned position, const struct runtime_module *m) { uint32_t bit = 1u << (position % 32u); resting[position / 32u] &= ~bit; - asks[position / 32u] = (asks[position / 32u] & ~bit) | (m && m->hook[RUNTIME_EVENTS + RUNTIME_SITE_EVENT_IN_USE] ? bit : 0u); + asks[position / 32u] = (asks[position / 32u] & ~bit) | (m && (m->hook[RUNTIME_EVENTS + RUNTIME_SITE_EVENT_IN_USE] || judged(m)) ? bit : 0u); +} +int modwerk_runtime_resting_at(uintptr_t address) +{ + for (unsigned w = 0; w < REST_WORDS; ++w) + for (uint32_t bits = resting[w], b = 0; bits; bits >>= 1, ++b) { + const struct runtime_module *m = bits & 1u ? live[32u * w + b] : 0; + if (m && address >= (uintptr_t)m && address - (uintptr_t)m < m->size) return 1; + } + return 0; } #else /* nothing rests: every subscriber is in every row, as before */ #if RUNTIME_SITE_EVENTS @@ -301,6 +324,7 @@ static int rests(unsigned e, unsigned i) { (void)e; (void)i; return 0; } #endif static void woken(unsigned position, const struct runtime_module *m) { (void)position; (void)m; } static int is_resting(unsigned i) { (void)i; return 0; } +int modwerk_runtime_resting_at(uintptr_t address) { (void)address; return 0; } #endif #ifdef MODWERK_CACHED_MODULES @@ -790,6 +814,9 @@ static int restore_to(unsigned position,struct runtime_module *to,const struct r #ifndef RUNTIME_ASK_IN_USE /* the host test answers for module code it cannot run */ #define RUNTIME_ASK_IN_USE(handler) ((unsigned (*)(void))(handler))() #endif +#ifndef RUNTIME_MACHINE_IN_USE /* the machine's answer for a module it judges (loader.h modwerk_machine_in_use) */ +#define RUNTIME_MACHINE_IN_USE(m) modwerk_machine_in_use(m) +#endif /* Locked: could a paused task resume part way through a row of the base's dispatch? Unknown counts as yes. */ static int dispatching(const struct runtime_context *context) { @@ -811,7 +838,7 @@ static int __attribute__((used)) rest_poll_context(const struct runtime_context for (unsigned i = 0; i < RUNTIME_MODULES; ++i) { const struct runtime_module *m = asks[i / 32u] >> (i % 32u) & 1u ? live[i] : 0; uintptr_t f = m ? m->hook[RUNTIME_EVENTS + RUNTIME_SITE_EVENT_IN_USE] : 0; - if (f && !RUNTIME_ASK_IN_USE(f)) want[i / 32u] |= 1u << (i % 32u); + if (f ? !RUNTIME_ASK_IN_USE(f) : judged(m) && !RUNTIME_MACHINE_IN_USE(m)) want[i / 32u] |= 1u << (i % 32u); } for (unsigned w = 0; w < REST_WORDS; ++w) differs |= want[w] ^ resting[w]; if (!differs) return 0; @@ -982,8 +1009,11 @@ static int __attribute__((used)) prepare_context(void *u, const uint8_t *data, u uint32_t n = abi >= 7u ? p[4] & ~RUNTIME_SITE_RESTS & 0xffu : be16(p + 4), keep = abi >= 7u ? p[5] : 0u, checked = abi >= 7u ? p[6] : n, r = abi >= 7u ? p[7] : be16(p + 6); #if RUNTIME_SITE_EVENTS && defined(RUNTIME_SITE_EVENT_IN_USE) - if (abi >= 7u && p[4] & RUNTIME_SITE_RESTS && hook[RUNTIME_EVENTS + RUNTIME_SITE_EVENT_IN_USE] == RUNTIME_NONE) - return refuse(RUNTIME_MALFORMED); /* a site rests only with a module that says when it is in use */ + if (abi >= 7u && p[4] & RUNTIME_SITE_RESTS && hook[RUNTIME_EVENTS + RUNTIME_SITE_EVENT_IN_USE] == RUNTIME_NONE +#ifdef RUNTIME_SITE_EVENT_JUDGED + && hook[RUNTIME_EVENTS + RUNTIME_SITE_EVENT_JUDGED] == RUNTIME_NONE +#endif + ) return refuse(RUNTIME_MALFORMED); /* a site rests only with a module that says, or the machine knows, when it is in use */ #else if (abi >= 7u && p[4] & RUNTIME_SITE_RESTS) return refuse(RUNTIME_MALFORMED); #endif diff --git a/sdk/runtime/loader/loader.h b/sdk/runtime/loader/loader.h index de0b92fc1e..6a651019c7 100644 --- a/sdk/runtime/loader/loader.h +++ b/sdk/runtime/loader/loader.h @@ -201,11 +201,21 @@ extern uintptr_t volatile *const modwerk_runtime_event_row[RUNTIME_SITE_EVENTS]; extern const uint8_t modwerk_events_code[], modwerk_events_code_end[]; #ifdef RUNTIME_SITE_EVENT_IN_USE /* The machine's UI tick (a task, never an interrupt): asks each module that subscribes the event the base asks - * (RUNTIME_SITE_EVENT_IN_USE) and moves those answering 0 out of the rows of the events that rest - * (RUNTIME_SITE_EVENT_RESTS), and those answering nonzero back. 1 when the rows changed. */ + * (RUNTIME_SITE_EVENT_IN_USE), and the machine for each module it judges (modwerk_machine_in_use), and moves those + * answering 0 out of the rows of the events that rest (RUNTIME_SITE_EVENT_RESTS), and those answering nonzero back. + * 1 when the rows changed. A machine may call it from its own task when it needs a module awake at once. */ int modwerk_runtime_rest_poll(void); #endif #endif +/* The UI tick, unlocked (a task): whether module m, which contributes to the table the machine judges + * (RUNTIME_SITE_EVENT_JUDGED: the Octatrack's ot_machines) and does not subscribe ev_in_use itself, is in use. 0 rests + * it as an ev_in_use answer of 0 would: out of the resting events' rows, its resting sites on stock's bytes; nonzero + * wakes it. Asked at every rest poll, so keep it to a lookup. Weak: 1, nothing the machine judges ever rests. */ +int modwerk_machine_in_use(const struct runtime_module *m); +/* Masked or locked: whether the live module whose pool extent holds `address` (one of its records) rests now. A + * machine that judges modules reads it from modwerk_machine_tables_changed, which every change of the resting set + * calls. 0 without resting. */ +int modwerk_runtime_resting_at(uintptr_t address); void modwerk_machine_tables_changed(void); /* masked, after rows changed; weak no-op by default */ /* Masked: a site's bytes went back to stock (`patched` were its module's), so stock data that copied them can follow; * weak no-op by default. */ diff --git a/sdk/runtime/loader/tests/events/runtime_events.h b/sdk/runtime/loader/tests/events/runtime_events.h index caf14ebcb6..68130e57a8 100644 --- a/sdk/runtime/loader/tests/events/runtime_events.h +++ b/sdk/runtime/loader/tests/events/runtime_events.h @@ -11,6 +11,7 @@ #define RUNTIME_SITE_EVENT_TABLES { 0, 0, 0, 0, 1, 0, 0 } #define RUNTIME_SITE_EVENT_RESTS { 1, 1, 0, 0, 0, 0, 0 } #define RUNTIME_SITE_EVENT_IN_USE 6u +#define RUNTIME_SITE_EVENT_JUDGED 4u #define RUNTIME_SITE_EVENT_WORDS (5u * (RUNTIME_MODULES + 1u) + 6u) #define RUNTIME_SITE_EVENT_ROWS(r) { (r) + 0u * (RUNTIME_MODULES + 1u) + 0u, (r) + 1u * (RUNTIME_MODULES + 1u) + 0u, (r) + 2u * (RUNTIME_MODULES + 1u) + 0u, (r) + 3u * (RUNTIME_MODULES + 1u) + 0u, (r) + 3u * (RUNTIME_MODULES + 1u) + 3u, (r) + 3u * (RUNTIME_MODULES + 1u) + 6u, (r) + 4u * (RUNTIME_MODULES + 1u) + 6u } #define RUNTIME_OWNED_SITES 1u diff --git a/sdk/runtime/loader/tests/events_test.c b/sdk/runtime/loader/tests/events_test.c index 7e936ad8ae..9ddd5ff9ea 100644 --- a/sdk/runtime/loader/tests/events_test.c +++ b/sdk/runtime/loader/tests/events_test.c @@ -12,6 +12,9 @@ #include static unsigned host_in_use(uintptr_t handler); #define RUNTIME_ASK_IN_USE(handler) host_in_use(handler) +struct runtime_module; +static int host_machine_in_use(const struct runtime_module *m); +#define RUNTIME_MACHINE_IN_USE(m) host_machine_in_use(m) #include "../loader.c" #include "../../upload/sha256.c" #include @@ -142,6 +145,27 @@ static unsigned host_in_use(uintptr_t handler) CHECK(!"an ev_in_use handler of no live module"); return 1; } +/* The machine's answer for a module it judges (a contributor to table 4, RUNTIME_SITE_EVENT_JUDGED, without ev_in_use): + * machine_idle[id] answers 0. Never under the lock or masked; never asked for a module that answers itself. */ +static uint8_t machine_idle[256]; +static unsigned machine_asked; +static int host_machine_in_use(const struct runtime_module *m) +{ + CHECK(!locked && !masked && m && !m->hook[IN_USE] && m->hook[RUNTIME_EVENTS + RUNTIME_SITE_EVENT_JUDGED]); ++machine_asked; + return !machine_idle[m->id & 255u]; +} +/* A machine's module (a record in table 4, at image offset 4) with no ev_in_use, one 8-byte site at `address`. */ +static void judged_site(uint32_t id, uint32_t address, int rests, uint8_t variant) +{ + uint32_t hooks[RUNTIME_HOOKS]; + for (unsigned i = 0; i < RUNTIME_HOOKS; ++i) hooks[i] = RUNTIME_NONE; + hooks[RUNTIME_EVENTS + RUNTIME_SITE_EVENT_JUDGED] = 50u << 24 | 4u; + hooks[RUNTIME_EVENTS] = 50u << 24 | 8u; /* and a handler on resting event 0 */ + pkg(id, hooks, RUNTIME_HOOKS, 1, 0); + p[n - 64 + 40] = variant; /* another build of the same module */ + unsigned at = n; site8(address, 8, 8); + if (rests) p[at + 4] |= RUNTIME_SITE_RESTS; +} /* A module of `order` on the events in `on` (bit e: hook RUNTIME_EVENTS + e, its handler at offset 4 (e + 1)). */ static void on_events(uint32_t id, unsigned on, uint8_t order) { @@ -402,12 +426,52 @@ int main(void) idle[171] = 1; resting_site(171, AT, 0); CHECK(install() && !memcmp(stock + (AT - STOCK), live_id(171)->site[0].code, 8)); CHECK(modwerk_runtime_rest_poll() && !memcmp(stock + (AT - STOCK), live_id(171)->site[0].code, 8) && modwerk_runtime_intact() == 1); CHECK(removal(171) && !memcmp(stock + (AT - STOCK), bare, 8)); + + /* A module the machine judges (a contributor to table 4, RUNTIME_SITE_EVENT_JUDGED: the Octatrack's machines) and + * no ev_in_use of its own rests by the machine's answer, with its resting sites, which admission accepts for it. + * A module that is neither is never asked and never rests. */ + enum { JUDGED = 1u << RUNTIME_SITE_EVENT_JUDGED }; + machine_asked = 0; asked = 0; + on_events(180, ALL | JUDGED, 30); CHECK(install()); + on_events(185, ALL, 40); CHECK(install()); + CHECK(!modwerk_runtime_rest_poll() && machine_asked == 1u && !asked); + CHECK(row_is(0, (const uint32_t[]){180, 185}, 2) && row_is(RUNTIME_SITE_EVENT_JUDGED, (const uint32_t[]){180}, 1)); + machine_idle[180] = 1; changed = tables_changed; + CHECK(modwerk_runtime_rest_poll() && tables_changed == changed + 1u); + CHECK(row_is(0, (const uint32_t[]){185}, 1) && row_is(1, (const uint32_t[]){185}, 1) && row_is(2, (const uint32_t[]){180, 185}, 2)); + CHECK(row_is(RUNTIME_SITE_EVENT_JUDGED, (const uint32_t[]){180}, 1)); /* its record stays in its table */ + CHECK(modwerk_runtime_resting_at((uintptr_t)live_id(180) + 8u) && !modwerk_runtime_resting_at((uintptr_t)live_id(185) + 8u)); + CHECK(!modwerk_runtime_resting_at((uintptr_t)live_id(180) + live_id(180)->size)); + machine_idle[180] = 0; CHECK(modwerk_runtime_rest_poll() && row_is(0, (const uint32_t[]){180, 185}, 2)); + CHECK(!modwerk_runtime_resting_at((uintptr_t)live_id(180) + 8u)); + CHECK(removal(180) && removal(185)); + /* Its resting site: stock's bytes while the machine says no track uses it. */ + judged_site(190, AT, 1, 0); CHECK(install()); + const struct runtime_module *j = live_id(190); + CHECK(j && j->site[0].rests && !memcmp(stock + (AT - STOCK), j->site[0].code, 8)); + machine_idle[190] = 1; CHECK(modwerk_runtime_rest_poll() && !memcmp(stock + (AT - STOCK), bare, 8) && row_is(0, 0, 0)); + CHECK(modwerk_runtime_intact() == 1 && !modwerk_runtime_broken()); + /* Undo with a resting module: a new build published (a trial) starts awake and patched; undone, the old one + * comes back awake and patched too, and rests again at the machine's next answer. */ + judged_site(190, AT, 1, 1); + CHECK(b->prepare(0, p, n) && b->publish(0) == MU_APPLIED && live_id(190) != j); + CHECK(!memcmp(stock + (AT - STOCK), live_id(190)->site[0].code, 8) && row_is(0, (const uint32_t[]){190}, 1)); + CHECK(b->restore(0) && live_id(190) == j && !memcmp(stock + (AT - STOCK), j->site[0].code, 8) && row_is(0, (const uint32_t[]){190}, 1)); + CHECK(modwerk_runtime_rest_poll() && !memcmp(stock + (AT - STOCK), bare, 8) && row_is(0, 0, 0)); + /* Undo of a trial whose module woke: the new build installed while the old rests, used (awake), undone. */ + machine_idle[190] = 0; judged_site(190, AT, 1, 2); + CHECK(b->prepare(0, p, n) && b->publish(0) == MU_APPLIED && !modwerk_runtime_rest_poll()); + CHECK(!memcmp(stock + (AT - STOCK), live_id(190)->site[0].code, 8)); + CHECK(b->restore(0) && live_id(190) == j && !memcmp(stock + (AT - STOCK), j->site[0].code, 8)); + CHECK(b->retire(0)); + machine_idle[190] = 1; CHECK(modwerk_runtime_rest_poll() && removal(190) && !memcmp(stock + (AT - STOCK), bare, 8)); + machine_idle[190] = 0; for (unsigned e = 0; e < RUNTIME_SITE_EVENTS; ++e) CHECK(row_is(e, 0, 0)); CHECK(!modwerk_runtime_active() && modwerk_runtime_free(0) == RUNTIME_POOL_BYTES); CHECK(!memcmp(stock, original, sizeof stock) && !rows_written_unmasked && !masked && !locked); if (failures) { fprintf(stderr, "%u event checks failed\n", failures); return 1; } puts("Site events: refusals naming the event, ordered rows in every install order, removal, replacement and " "restore, two events at one site, the paused-dispatch fence, groups, journal commit/rollback, take and table rooms, owned" - " table sites, contributor marks, a raised event's entry slot, modules resting by their ev_in_use answers and their resting sites passed."); + " table sites, contributor marks, a raised event's entry slot, modules resting by their ev_in_use answers, machines resting by the machine's answer, their resting sites and Undo passed."); return 0; } From 436197049038f48959e50c6fe4133e7907779bcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Fri, 20 Nov 2026 10:13:20 +0100 Subject: [PATCH 180/415] Start Octatrack base 0.7.11 (cumulative) Co-Authored-By: Claude Fable 5.2 From 67d122f0a20943d36fe394f841bdf84d6b066a01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Fri, 20 Nov 2026 10:13:31 +0100 Subject: [PATCH 181/415] Docs: what installed, unused modules cost the Octatrack frame (MKII record) Co-Authored-By: Claude Opus 5.5 --- docs/MODULE_PERFORMANCE.md | 2 +- docs/README.md | 1 + ...2026-11-20-octatrack-unused-module-cost.md | 31 +++++++++++++++++++ 3 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 docs/verification/2026-11-20-octatrack-unused-module-cost.md diff --git a/docs/MODULE_PERFORMANCE.md b/docs/MODULE_PERFORMANCE.md index 1230e1cdb9..a4235ad19c 100644 --- a/docs/MODULE_PERFORMANCE.md +++ b/docs/MODULE_PERFORMANCE.md @@ -2,7 +2,7 @@ How to measure a module before it is listed. The [module guides](module-guides/README.md) hold the rules for every module; `npm run perf:audit` and `module:doctor` judge what you measure here. -For a large Octatrack set, measure the same saved Part with an empty inventory and with the set installed, both stopped and playing. Compare the module runtime in `profile:3`, the CPU meter in `stats` and the frame interrupt in `guard`. All three readings are in the [24-module MKII comparison](verification/2026-11-19-octatrack-idle-dispatch.md). +For a large Octatrack set, measure the same saved Part with an empty inventory and with the set installed, both stopped and playing. Compare the module runtime in `profile:3`, the CPU meter in `stats` and the frame interrupt in `guard`. All three readings are in the [24-module MKII comparison](verification/2026-11-19-octatrack-idle-dispatch.md); which of those modules cost the frame while unused, and why, is in the [unused-module record](verification/2026-11-20-octatrack-unused-module-cost.md). A module that is slow, or that only works when it is the only thing running, takes the room of every other module and of the stock instrument. Every new module therefore carries `evidence/performance.json`, a record of three measurements that `npm run perf:audit -- check ` judges and `module:doctor` enforces for modules listed from 7 October 2026. Earlier modules keep their [qualification evidence](MODULE_QUALIFICATION.md). Like `fx:audit`, the judgement runs offline and the numbers come from the native harness, which CI never has: a green `npm run check` says nothing about them. Start from `npm run perf:audit -- template dsp` (an effect, machine or other DSP module) `npm run perf:audit -- template coldfire` (a MIDI generator, MIDI effect or other ColdFire code) or `npm run perf:audit -- template key` (ColdFire code that runs only on a key press, below). diff --git a/docs/README.md b/docs/README.md index fe5cd87cf2..14dca71c8e 100644 --- a/docs/README.md +++ b/docs/README.md @@ -95,6 +95,7 @@ Every document in `docs/`, one line each. [AGENTS.md](../AGENTS.md) says which t History, not current instructions. - The Analog BD Undo recording and BBD Delay buffer check are in the [Octatrack 0.7.10 test record](verification/2026-11-19-octatrack-0710-checks.md). +- [Unused module cost](verification/2026-11-20-octatrack-unused-module-cost.md): what 24 installed, unused modules cost the frame interrupt, module by module, and resting machines, 20 November 2026. - [FRACT consolidation](verification/2026-11-04-fract-consolidation.md): source draft, native FLEX support, source checks and review limits for #926, 4 November 2026. - [OCTATRACK_USB_CHECKPOINT.md](OCTATRACK_USB_CHECKPOINT.md) and [OCTATRACK_BETA_HANDOVER.md](OCTATRACK_BETA_HANDOVER.md): handovers frozen on 12 October 2026. - [REPITCH_ORIGINAL_TEMPO_CHECK.md](REPITCH_ORIGINAL_TEMPO_CHECK.md): a check of 8 October 2026. diff --git a/docs/verification/2026-11-20-octatrack-unused-module-cost.md b/docs/verification/2026-11-20-octatrack-unused-module-cost.md new file mode 100644 index 0000000000..403fb6d5d3 --- /dev/null +++ b/docs/verification/2026-11-20-octatrack-unused-module-cost.md @@ -0,0 +1,31 @@ +# What an installed, unused module costs the Octatrack's frame + +On 20 November 2026 an Octatrack MKII on OS 1.40C ran development twins of base 0.7.10 in RAM over USB. Every reading +used the same scene: bank A, pattern A01, Part 1, eight FLEX tracks of which T1 to T7 have two trigs, FILTER and DELAY +on every track but T1 (SPRING REV) and T5 (SPATIALIZER), no module assigned anywhere. A reading is the frame guard's +share of time in the frame interrupt over 8 seconds after 3 to 4 seconds of settling (`guard`), its longest frame, and +the mean of ten CPU meter readings (`stats`). Every set ran as a USB trial that rolled back. + +## Where the cost is: base 0.7.10, twin `acc111da` + +Playing, the 24 packages of the [0.7.10 dispatch record](2026-11-19-octatrack-idle-dispatch.md) installed and unused +added 6.1 points of frame interrupt (56.6 % to 62.7 %) and took the longest frame from 94.9 % to 107.2 % of a frame. +Stopped readings moved by up to 5.5 points between two empty runs (the delays' tails after a play), so this record +compares playing readings. + +Each package alone (`npm run device:price`, playing, 56.9 % before): + +| Module | Kind | What runs in the frame while unused | Points | +| --- | --- | --- | ---: | +| POLY8 0.3.3 | machine | handlers on `ev_play_increment`, `ev_voice_bind`, `ev_voice_bind_run`; 11 detours in the render, trig and sequencer code | 2.3 | +| Repitch 0.2.1 | playback policy | `ev_play_increment` handler; 3 detours in the increment builder and voice renderer | 1.4 | +| Slow LFO 0.1.0 | LFO setting | 4 detours in the audio and MIDI LFO engines | 0.5 | +| Mute Modes 0.2.2 | mute policy | `ev_voice_bind` handler; 5 detours in the voice, trig and tail paths | 0.3 | +| Track Solo 0.2.5 | panel tool | 2 detours at the frame interrupt's entry and exit | 0.2 | +| Tuner 0.1.0 | panel tool | 1 detour at the frame interrupt's exit | 0.1 | +| the other 18 | effects, scenes, UI tools, table machines (Amiga, SYNTIZ) | nothing: UI detours, tick, key and draw handlers, tables, DSP code only when picked | 0.0 | + +The seven modules with frame code together added 5.6 points; the other 17 together 0.1. So no measurable part of the +cost is base work that grows with the number of installed modules (0.7.10's sparse dispatch removed the UI tick's), and +none of it is in the DSP: it is module code the frame interrupt enters while no track uses the module, through the +hooks that rest and through each module's own detours. From 936ff3b71e1fe19f64c57c5a911bfa3771e13b96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Fri, 20 Nov 2026 10:17:59 +0100 Subject: [PATCH 182/415] Fix: Octatrack base 0.7.11 defers DSP residency until a project load completes On an MKII with six modules restored from the card, the first load of FLEX07 from TARGET stopped the DSP frames before PLAY (#1826, verification record of 19 November 2026). The residency observer (manager.c dl_residency_tick, via build_core.py TRANSITION_EDITS) now plans automatic residency only once fxmap.c says the project load is over: requests already in flight still advance and unbound slots stay dry meanwhile. Rebuilt on shipped 0.7.10 as base 0.7.11 (default layout bd1ed432, tracks-post 239d55a4): npm run octatrack:base -- --beta --write, then octatrack:module-packages -- --base-only and base-size --write. No lease entry moved, so the base-bound packages and Analog BD recipe are unchanged. The base page lists 0.7.11. sdk/tests/test_project_load_residency.py builds the generated observer on the host: all three modes fail without the gate. Co-Authored-By: Claude Opus 5.5 --- .../2026-11-19-octatrack-project-load-dsp.md | 1 + changelog/2026-11-20-octatrack-base-0-7-11.md | 1 + .../2026-11-19-octatrack-project-load-dsp.md | 9 + sdk/machines/octatrack/base-binding.json | 20 +- sdk/machines/octatrack/base-sizes.json | 34 + sdk/machines/octatrack/base-versions.json | 12 + .../octatrack/elekloader/base-version.json | 2 +- .../octatrack/elekloader/build_core.py | 7 +- sdk/tests/test_project_load_residency.py | 174 + src/components/BaseChangelog.tsx | 1 + src/engine/assets/octatrack-base-sources.json | 4 +- .../assets/octatrack-base-variants.json | 2 +- src/engine/assets/octatrack-base.elemod | 10137 ++++++++-------- .../assets/octatrack-module-packages.json | 10 +- 14 files changed, 5338 insertions(+), 5076 deletions(-) create mode 100644 changelog/2026-11-19-octatrack-project-load-dsp.md create mode 100644 changelog/2026-11-20-octatrack-base-0-7-11.md create mode 100644 docs/verification/2026-11-19-octatrack-project-load-dsp.md create mode 100644 sdk/tests/test_project_load_residency.py diff --git a/changelog/2026-11-19-octatrack-project-load-dsp.md b/changelog/2026-11-19-octatrack-project-load-dsp.md new file mode 100644 index 0000000000..60dcd9b78a --- /dev/null +++ b/changelog/2026-11-19-octatrack-project-load-dsp.md @@ -0,0 +1 @@ +Octatrack: loading a project waits for its bank and Parts to finish loading before changing which effects the DSP holds. This fixes a stall that could stop audio while opening a project. diff --git a/changelog/2026-11-20-octatrack-base-0-7-11.md b/changelog/2026-11-20-octatrack-base-0-7-11.md new file mode 100644 index 0000000000..acf03f61fc --- /dev/null +++ b/changelog/2026-11-20-octatrack-base-0-7-11.md @@ -0,0 +1 @@ +Octatrack base 0.7.11 waits until a project has finished loading before it changes which effects the DSP holds, so opening a project no longer risks stopping the audio. diff --git a/docs/verification/2026-11-19-octatrack-project-load-dsp.md b/docs/verification/2026-11-19-octatrack-project-load-dsp.md new file mode 100644 index 0000000000..f20d6b637a --- /dev/null +++ b/docs/verification/2026-11-19-octatrack-project-load-dsp.md @@ -0,0 +1,9 @@ +# Octatrack DSP stall during a project load + +19 November 2026, physical MKII. The scratch card held `TARGET` and `FLEX07` in one Set. Both assign stock Spring Reverb to T1 FX2 and stock Spatializer to T5 FX1. `FLEX07` has seven triggered stereo FLEX tracks. + +- **0.7.9 Tracks Post development base `c6345a32`.** Loading `FLEX07` from `TARGET` passed once with no modules and four times with Tape Echo, Euclid, LOFI2, Sidechain Compressor, POLY8 and Slow LFO in a USB trial. After a card restore of the same packages, the first `TARGET` to `FLEX07` load stalled twice before PLAY. On the second run the module file had the same bytes across both boots. Replacing the file was unnecessary. +- **DSP trace.** Both runs started at 32/66 acknowledged loader packets and three residency commits. The stall stopped the frames at 85/112 acknowledgements and seven commits. Core 0 had completed Spatializer's bind. The manager was waiting for core 1's Spring Reverb bind, with its last transmitted command still the final write. Both effect slots were dry, and the incoming project's effect map had yet to be published. The trace leaves the precise cause of the missing frame edge open. +- **Development base `1df94302`, same 0.7.9 source plus the observer gate.** The automatic manager continues existing requests and parks unbound slots while a project loads. New automatic plans wait for the complete effect map. With the same six package binaries restored from the card, the first `TARGET` to `FLEX07` load passed on two separate RAM boots, including a restart with the module file untouched. Both effects stayed loaded and no extra residency commit or DSP packet was needed. Playback advanced with sampled CPU readings up to 67.3%. An intentional temporary change of T5 FX1 from Spatializer to Filter followed by a project reload restored Spatializer and advanced the frames without a stall. + +The DSP glue, effect-handle map and allocator host checks passed. On the cumulative 0.7.10 source with this fix, all seven USB audio layouts matched the native and browser builds byte for byte and passed the bootloader recovery checks. The resulting Tracks Post image, `0c3de9386dd25ed87229324e137323eb0e45c1ea35c43a3e0fb25615c1b8309e`, requires its own hardware qualification. diff --git a/sdk/machines/octatrack/base-binding.json b/sdk/machines/octatrack/base-binding.json index 218c181f25..ae7fa3e299 100644 --- a/sdk/machines/octatrack/base-binding.json +++ b/sdk/machines/octatrack/base-binding.json @@ -1,13 +1,13 @@ { "schema": 1, - "identity": "b1c76d06dbe7638df87831d9d6793deb0dcb7cdc169101d96627b7b05c894f9a", + "identity": "bd1ed4323f053874308bd42f9c96a332f3c3c90aab8636038455e6077e4fe409", "arena": 1089834464, "pool": 1087863184, "symbols": { "modwerk_controller_write_begin": 1084872556, "modwerk_controller_write_end": 1084872584, - "modwerk_cue_cfg_clamp": 1085111044, - "modwerk_raise_ev_mute_keep": 1085113942 + "modwerk_cue_cfg_clamp": 1085111036, + "modwerk_raise_ev_mute_keep": 1085113934 }, "controllers": { "sidechain-compressor": "9f4958b6c195e96c8c5ca432e308c1550a1b656df6f74c6bccc092b6715b4b77", @@ -15,12 +15,12 @@ "analog-bassdrum": "1d7057407595fc5b1c6a853d6cce2b24de5b8673ec345a5e1cea96a5d2557c99" }, "variants": { - "tracks-main-cue": "b1c76d06dbe7638df87831d9d6793deb0dcb7cdc169101d96627b7b05c894f9a", - "tracks": "53754dfbcd9a933054b842cd6955be7e4fd15f7808a59b4c42a92706cc7a7b47", - "tracks-post": "94101a5a4a5fb2899b7ff7e1572f51e60579ae21d7f4eb289f6a96fca1fb2295", - "main-cue": "e62231a0bda714820d904c20adeaa6e89804c1fa09f47608a5dac6d5e6a46748", - "main": "68f80291d1d0cd7be6855fbeaf201d3fdb5e9c123518c5af55c3ca6d51c071f3", - "master": "d31c994deb11adbe366e31bc13d0d3a69886038ee4a4395684f2390438b9d9f7", - "off": "6070a4e43941fc0eebdbb23673f729c9cc08f1882670f46865a0869e0d487cf3" + "tracks-main-cue": "bd1ed4323f053874308bd42f9c96a332f3c3c90aab8636038455e6077e4fe409", + "tracks": "1a6cbb0037edc5f2160d28071d27b79095397b5a68b3872064285d32f3f054ca", + "tracks-post": "239d55a42bcba500a5f2f2cb3b2e7eff0332dc7f9ed98b390175c5c6ed52d901", + "main-cue": "9a5a8d71e043c90677f061534eb83561b7c9074115313c78ca1ece12ab237cda", + "main": "74e6960203037c8aed242930fc060e83ca2c40f8435f716319a9e2899f119ef4", + "master": "cea8f8149dc3721abf9def824841563f1e96e9580dacad76ca17aa202a107bce", + "off": "cc623ac90952209767aa6297cb16eba5eb3f23f72ed3d1d0bf872db38a99bfa3" } } diff --git a/sdk/machines/octatrack/base-sizes.json b/sdk/machines/octatrack/base-sizes.json index 234e225e1d..f6a41345e5 100644 --- a/sdk/machines/octatrack/base-sizes.json +++ b/sdk/machines/octatrack/base-sizes.json @@ -374,6 +374,40 @@ "container": 804756 } } + }, + { + "base": "0.7.11", + "identity": "bd1ed4323f053874308bd42f9c96a332f3c3c90aab8636038455e6077e4fe409", + "layouts": { + "tracks-main-cue": { + "main": 1326129, + "container": 806748 + }, + "tracks": { + "main": 1325978, + "container": 806608 + }, + "tracks-post": { + "main": 1327581, + "container": 808352 + }, + "main-cue": { + "main": 1325889, + "container": 806496 + }, + "main": { + "main": 1325755, + "container": 806356 + }, + "master": { + "main": 1325782, + "container": 806360 + }, + "off": { + "main": 1324348, + "container": 804804 + } + } } ] } diff --git a/sdk/machines/octatrack/base-versions.json b/sdk/machines/octatrack/base-versions.json index 5cdbb491b5..f2866ff99c 100644 --- a/sdk/machines/octatrack/base-versions.json +++ b/sdk/machines/octatrack/base-versions.json @@ -120,6 +120,18 @@ "d31c994deb11adbe366e31bc13d0d3a69886038ee4a4395684f2390438b9d9f7", "6070a4e43941fc0eebdbb23673f729c9cc08f1882670f46865a0869e0d487cf3" ] + }, + { + "version": "0.7.11", + "identities": [ + "bd1ed4323f053874308bd42f9c96a332f3c3c90aab8636038455e6077e4fe409", + "1a6cbb0037edc5f2160d28071d27b79095397b5a68b3872064285d32f3f054ca", + "239d55a42bcba500a5f2f2cb3b2e7eff0332dc7f9ed98b390175c5c6ed52d901", + "9a5a8d71e043c90677f061534eb83561b7c9074115313c78ca1ece12ab237cda", + "74e6960203037c8aed242930fc060e83ca2c40f8435f716319a9e2899f119ef4", + "cea8f8149dc3721abf9def824841563f1e96e9580dacad76ca17aa202a107bce", + "cc623ac90952209767aa6297cb16eba5eb3f23f72ed3d1d0bf872db38a99bfa3" + ] } ] } diff --git a/sdk/machines/octatrack/elekloader/base-version.json b/sdk/machines/octatrack/elekloader/base-version.json index e10ca181c1..3a91214e82 100644 --- a/sdk/machines/octatrack/elekloader/base-version.json +++ b/sdk/machines/octatrack/elekloader/base-version.json @@ -1,5 +1,5 @@ { "major": 0, "minor": 7, - "patch": 10 + "patch": 11 } diff --git a/sdk/machines/octatrack/elekloader/build_core.py b/sdk/machines/octatrack/elekloader/build_core.py index faf50269a9..d9e9cfcb3f 100644 --- a/sdk/machines/octatrack/elekloader/build_core.py +++ b/sdk/machines/octatrack/elekloader/build_core.py @@ -995,7 +995,12 @@ def catalogue_overlaps(sites): # request's kind, and an automatic one commits before the stock setter publishes the pick. (' if(phase) { bytes(queued_ids,s->target,16); queued_token=token; return DL_SELECT_WAIT; }\n', ' if(phase) { bytes(queued_ids,s->target,16); queued_token=token; queued_auto=0; return DL_SELECT_WAIT; }\n'), - (' reinit();\n if(phase) return;\n', ' reinit();\n if(phase || queued_token) return;\n'), + (' reinit();\n if(phase) return;\n', + ' reinit();\n' + ' /* Stock rewrites the live slots and the bank during a project load. Keep unbound slots dry,\n' + ' * then plan their residency from the completed project rather than from intermediate Parts. */\n' + ' int modwerk_fxmap_loading(void);\n' + ' if(phase || queued_token || modwerk_fxmap_loading()) return;\n'), ), } for _name, _edits in TRANSITION_EDITS.items(): diff --git a/sdk/tests/test_project_load_residency.py b/sdk/tests/test_project_load_residency.py new file mode 100644 index 0000000000..164622b0a0 --- /dev/null +++ b/sdk/tests/test_project_load_residency.py @@ -0,0 +1,174 @@ +# SPDX-License-Identifier: GPL-3.0-or-later +"""The DSP residency observer during a project load (host, ASan/UBSan), #1826. + +On an MKII with six modules restored from the card, loading FLEX07 from TARGET stopped the DSP frames before PLAY +(19 November 2026, docs/verification/2026-11-19-octatrack-project-load-dsp.md). Both projects run the same stock +effects, yet the observer in manager.c's dl_residency_tick planned automatic residency from the live slots while stock +rewrote them and the bank, and a Spring Reverb bind was in flight at the stall. The base now lets the observer plan only +once fxmap.c says the load is over (modwerk_fxmap_loading()). + +This builds dl_residency_tick as the base build generates it (build_core.py's seams and the resident transforms, in +build_core.py's order) beside stubs for what it calls, with the live FX array and the bank's Parts as the test's, and +counts the automatic plans it begins. Without the gate, mode 1 fails at the first intermediate live set. No DSP, +transfer or timing is modelled: the board fixture (test_resident_engines_board.py) is built without the observer. +""" +import importlib.util +from pathlib import Path +import shutil +import subprocess +import sys +import tempfile +import unittest + +ROOT = Path(__file__).resolve().parents[2] +ADAPTER = ROOT / 'sdk/machines/octatrack/module-adapters' +ELEK = ROOT / 'sdk/machines/octatrack/elekloader' +sys.path.insert(0, str(ADAPTER)) +sys.path.insert(0, str(ELEK)) +sys.path.insert(0, str(Path(__file__).resolve().parent)) +import resident_engines # noqa: E402 +import resident_journal # noqa: E402 +import resident_placement # noqa: E402 +import zero_state # noqa: E402 +from host_flags import SANITIZE # noqa: E402 + + +def manager_text(): + """manager.c as build_core.py writes it for the beta base (--resident-stock-hooks --resident-on-demand).""" + spec = importlib.util.spec_from_file_location('project_load_residency_core', ELEK / 'build_core.py') + core = importlib.util.module_from_spec(spec) + spec.loader.exec_module(core) + text = reference = (core.DYNLOAD / 'manager.c').read_text() + for old, new in core.DSP_EDITS.get('manager.c', ()) + core.WIDTH_EDITS.get('manager.c', ()): + assert text.count(old) == 1, old[:60] + text = text.replace(old, new) + text = resident_engines.manager(resident_journal.manager(resident_placement.manager(text))) + for old, new in core.REFUSAL_EDITS['manager.c']: + assert text.count(old) == 1, old[:60] + text = text.replace(old, new) + text = resident_engines.refusal(text) + if 'manager.c' in zero_state.UNITS: + text = zero_state.unit('manager.c', text, reference) + return text + + +def observer(text): + """dl_residency_tick's whole definition, reading the test's live FX array.""" + start = text.index('void dl_residency_tick(void) {') + depth, at = 0, start + while True: + depth += {'{': 1, '}': -1}.get(text[at], 0) + if depth == 0 and text[at] == '}': + break + at += 1 + body = text[start:at + 1] + live = '(const volatile uint8_t *)0x80000ec4u' + assert body.count(live) == 1, 'the observer no longer reads the live FX array once; review this test' + return body.replace(live, 'test_live') + + +HARNESS = r''' +#include +#include +#include +#include +#include "fxids.h" +volatile uint32_t dl_residency_enabled = 1; +static uint32_t journal_generation, auto_serial = 0x80000000u, parked; +static unsigned phase, queued_token, observed_valid; +static uint8_t owed_id[16], observed[16]; +static fx_set observed_held[2], observed_played[2]; +static volatile uint8_t test_live[16]; +static int loading; +int modwerk_fxmap_loading(void) { return loading; } /* fxmap.c: a project load runs */ +static int modwerk_stock_hook_export_idle(void) { return 1; } +static int modwerk_saved_set_busy(void) { return 0; } +static void advance(void) {} +static void dl_publication_tick(void) {} +static void tripwire(void) {} +static void reinit(void) {} +static unsigned begins, begun_auto; +static uint8_t begun[16]; +static void begin(const uint8_t ids[16], uint32_t token, unsigned automatic) +{ + (void)token; + ++begins, begun_auto = automatic; + memcpy(begun, ids, 16); +} +/* The bank's four Parts name what the live set runs, each core's stock effects loaded on demand (soft). */ +static void parts(const uint8_t ids[16], fx_set held[2], fx_set named[2], fx_set soft[2], fx_set played[2]) +{ + for (unsigned c = 0; c < 2; ++c) held[c] = named[c] = soft[c] = played[c] = (fx_set){{0}}; + for (unsigned i = 0; i < 16; ++i) { + unsigned c = (i & 7) < 4 ? 1u : 0u; + if (ids[i]) soft[c] = fx_with(soft[c], ids[i]), played[c] = fx_with(played[c], ids[i]); + } +} +OBSERVER +enum { FILTER = 1, DELAY = 2, SPRING = 20, SPATIAL = 21, CHORUS = 22 }; +/* TARGET and FLEX07: Spring Reverb on T1 FX2, Spatializer on T5 FX1, FILTER and DELAY elsewhere. */ +static const uint8_t target[16] = {FILTER, FILTER, FILTER, FILTER, SPATIAL, FILTER, FILTER, FILTER, + SPRING, DELAY, DELAY, DELAY, DELAY, DELAY, DELAY, DELAY}; +static void show(const uint8_t ids[16]) { for (unsigned i = 0; i < 16; ++i) test_live[i] = ids[i]; } +static void ticks(unsigned n) { while (n--) dl_residency_tick(); } /* eight: the Parts are read every fourth tick */ +#define CHECK(x) do { if (!(x)) { fprintf(stderr, "mode %d line %d: %s (begins %u)\n", mode, __LINE__, #x, begins); return 1; } } while (0) +int main(int argc, char **argv) +{ + int mode = argc > 1 ? atoi(argv[1]) : 0; + show(target); + ticks(8); + CHECK(begins == 1 && begun_auto == 1 && !memcmp(begun, target, 16)); /* the first look plans the set it sees */ + /* Stock loads the next project: the live slots go through the default effects and Parts the project does not end on. */ + loading = 1; + uint8_t step[16]; + memset(step, 0, 16); + show(step), ticks(8); + CHECK(begins == 1); + memcpy(step, target, 16), step[8] = 0, step[4] = CHORUS; + show(step), ticks(8); + CHECK(begins == 1); + uint8_t final[16]; + memcpy(final, target, 16); + if (mode == 2) final[4] = CHORUS; /* FLEX07 with Chorus where TARGET has Spatializer */ + show(final), ticks(8); + CHECK(begins == 1); + loading = 0; + if (mode == 1) { + /* The same effects as before the load: nothing to plan, so no residency change and no DSP packet. */ + ticks(8); + CHECK(begins == 1); + } else if (mode == 2) { + /* One automatic plan, for the completed project. */ + ticks(8); + CHECK(begins == 2 && begun_auto == 1 && !memcmp(begun, final, 16)); + } else if (mode == 3) { + /* A transaction still open when the load ends keeps the observer waiting, then it plans what the project names. */ + phase = 1; + final[4] = CHORUS, show(final), ticks(8); + CHECK(begins == 1); + phase = 0, ticks(8); + CHECK(begins == 2 && !memcmp(begun, final, 16)); + } else return 2; + return 0; +} +''' + + +@unittest.skipUnless(shutil.which('cc'), 'host C compiler unavailable') +class ProjectLoadResidency(unittest.TestCase): + def test_the_observer_plans_only_the_completed_project(self): + with tempfile.TemporaryDirectory() as temp: + work = Path(temp) + (work / 'observer.c').write_text(HARNESS.replace('OBSERVER', observer(manager_text()))) + out = work / 'observer' + built = subprocess.run(['cc', '-std=c11', '-Wall', '-Wextra', '-Werror', *SANITIZE, '-DMODWERK_FX_IDS=64', + '-I' + str(ELEK), str(work / 'observer.c'), '-o', str(out)], capture_output=True, text=True) + self.assertEqual(built.returncode, 0, built.stderr) + for mode in (1, 2, 3): + with self.subTest(mode=mode): + run = subprocess.run([str(out), str(mode)], capture_output=True, text=True, timeout=60) + self.assertEqual(run.returncode, 0, run.stderr) + + +if __name__ == '__main__': + unittest.main() diff --git a/src/components/BaseChangelog.tsx b/src/components/BaseChangelog.tsx index 4351f29482..2e30dc5dab 100644 --- a/src/components/BaseChangelog.tsx +++ b/src/components/BaseChangelog.tsx @@ -9,6 +9,7 @@ type BaseChange = { // Use the published Octatrack version. The Rytm's base changes are dated, and Zoom uses MIDISTOMP's version. const changes: Record<'octatrack' | 'rytm' | 'zoom', BaseChange[]> = { octatrack: [ + { label: '0.7.11', summary: 'Opening a project no longer risks stopping the audio while its effects load.', note: '2026-11-20-octatrack-base-0-7-11' }, { label: '0.7.10', summary: 'Large module sets spend less time handling the controls. Picks leave room for delay sends to open, and Undo restores Analog BD’s sound.', note: '2026-11-19-octatrack-base-0-7-10' }, { label: '0.7.9', summary: 'Modules can share the Part Edit menu. Module effects also stay assigned after loading a project and restarting.', note: '2026-11-18-octatrack-effect-lost-after-project-load' }, { label: '0.7.8', summary: 'Several DSP machines can run in one set. Modules that support resting can free up processing time while unused.', note: '2026-11-03-octatrack-dsp-hook-chains' }, diff --git a/src/engine/assets/octatrack-base-sources.json b/src/engine/assets/octatrack-base-sources.json index 3765c8edd4..13d7089864 100644 --- a/src/engine/assets/octatrack-base-sources.json +++ b/src/engine/assets/octatrack-base-sources.json @@ -22,13 +22,13 @@ "sdk/firmware_codec/transport.py": "30f1b71c28cf4c57fdbe38c0e535465cc2f29503ef348888a68940f93f070ae5", "sdk/machines/octatrack/dsp-sites.json": "16b491f0a22ce571178af7d2f323701adbe7dba2b3dcd5e3928b464860811f9d", "sdk/machines/octatrack/dsp_sites.py": "581b9dd7a1f39a0da8b691d5a64fd28c3322acf47bdd500049042f1ec1b53633", - "sdk/machines/octatrack/elekloader/base-version.json": "fec58a27b0fc0067951eb19a8a9b1f7ef5545e7a2ed7637fb8094d353e9f9a1e", + "sdk/machines/octatrack/elekloader/base-version.json": "6d67bc7623796279bc92767ef8c34aedd9c1f9b34698d99632aafc6319cdcb77", "sdk/machines/octatrack/elekloader/boot.c": "8b865330d684580ce9ca99de04d7e45a9b4861dfb02d6b91fe0009873b7354f6", "sdk/machines/octatrack/elekloader/boot.h": "bda50491aa150bdb686af653031f792c7107e4ad5a0b7960fd96636096e148d7", "sdk/machines/octatrack/elekloader/boot.s": "43d21b7bf863bd39bd9c53b94f3e6b47f2dd3e12b30be6b4830580d7b93eb123", "sdk/machines/octatrack/elekloader/boot_anim.c": "191960aa25ebd605ad7be5e77dd00c243f2bd8619e7caf34c657ef0feeb7e743", "sdk/machines/octatrack/elekloader/boot_anim.s": "c1abdf728b67ee9a1b5509b197edc6592c17baf35200634311765686e4ab839d", - "sdk/machines/octatrack/elekloader/build_core.py": "5fe970781741187c9fd57444a7c44775edd9b3a7362f2f3af17c9b1c46b8ed41", + "sdk/machines/octatrack/elekloader/build_core.py": "1611d4378eb4a957b5aa6f6e133ab838b1accc160dc207c898eef213df1d10b7", "sdk/machines/octatrack/elekloader/build_ports.py": "02ec9e7e403ca8a670cfd4408980ac80c8b64858286aa895c9dc9363b10b6a82", "sdk/machines/octatrack/elekloader/build_stub.py": "7c51167979b0b477bf880afb16da43ecc9fac228c043b2fe71b60fadde847186", "sdk/machines/octatrack/elekloader/check_flash_safety.py": "1df7e66ba3af1476e9011355f3a5f2411db2efb3316ae32d3e6ef0e2653ad229", diff --git a/src/engine/assets/octatrack-base-variants.json b/src/engine/assets/octatrack-base-variants.json index 60a4e3a16d..47c00ff013 100644 --- a/src/engine/assets/octatrack-base-variants.json +++ b/src/engine/assets/octatrack-base-variants.json @@ -1 +1 @@ -{"schema":1,"packageSha256":"3985a635176d3d4f38e4568f3ac84766da833c77b55d64ef93a9ade3eb4aafd3","variants":[{"layout":"tracks","identity":"53754dfbcd9a933054b842cd6955be7e4fd15f7808a59b4c42a92706cc7a7b47","packageSha256":"ddd470c9b4a90d07cc7bfc783b320afaceaa457c31bce5bfe62f55e34f224cab","patch":[[15828,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202000200000005250101010905820200020000000525010103080b04020100200009040400000101200009240100020a2e000008240a100105000011240211030600\""]],[15832,1,[" \"0x400bf48c\","," 10"," ],"," ["," \"hex\","," \"0c24031201010011100000000904050000010220000904050101010220001024011200010100\""," ],"," ["," \"stock\","," \"0x400ba484\","]],[15837,1,[" \"06240201041807058305000302082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000090703010601\""]],[15869,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202000200000005250101010905820200020000000525010103080b04020100200009040400000101200009240100020a2e000008240a100105000011240211030600\""]],[15873,1,[" \"0x400bf48c\","," 10"," ],"," ["," \"hex\","," \"0c24031201010011100000000904050000010220000904050101010220001024011200010100\""," ],"," ["," \"stock\","," \"0x400ba484\","]],[15878,1,[" \"06240201041807058305000302082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[16072,1,[" \"0000000071b946c8ce0c7205b2806600002c71b946c8ce0a4a80670a700113c000000000600a4239000000006100059a4eb94001d5244ef94001de742039fc0b01c44ef94001dd0a71b946c8ce0c7205b280660c4879000000004ef94001d81e4879400e20a14ef94001d81e4eb94001d6b86100001a70404ef94001e9226100000e2039fc0b01404ef94001e9584239000000004e75201023c04ec950280280fffff00006800000100023c04ec9502c4ef94001d4b84feffff848d700032039fc0b01bc223c00080000c081670c223c0008000023c1fc0b01bc4cd700034fef00084ef9000000004a3900000000670000b271b9000000000c8000000002664c740020026100009e2228000408010007670c52820c820000000465e64e75203900000000220092b9000000000481000000406f1223c10000000004800000004023c00000000042390000000070042f00610000a24a806704539766f4588f71b9000000000c80000000016608700213c0000000002039fc0b01b82239fc0b01b08081028000080000661875b900000000610000244a80670a6100003e52b9000000004e75028000000003eb88207c00000000d1c04e75760320026100ffe82228000408010007660a528253836aea70004e75284870014e75227900000000234c000842a9000c203c00080000\""]],[16081,1,[" \"71b9000000002c406100ffa62228000408010007660002384a39000000006700022e203900000000223900000000240094810c8200000400631a52b900000000220004810000040023c100000000243c000004004a3900000000661cb4b900000000640623c200000000b4b900000000630623c2000000002639000000002a39000000004a390000000066282002048000000040e3800c80000000c86f06203c000000c80c80ffffff386c06203cffffff38da80d6852e3c000003e828034c4740042a044c0750002c039c85b484640a52b9000000006000017623c60000000023c40000000023c200000000200ee188e588220ee1899081267c00000000d7c0224b26042239000000000281000003ff203c0000040090814a3900000000672c45f900000000ed89d5c1b6806208200361000120604096802a436100011645f900000000200d6100010a602a45f900000000e789d5c1b6806208200361000116601496802a436100010c45f900000000200d61000100283900000000d9b9000000002c044a39000000006704ed8e6002e78e72012081214b0008220b0281fffff0000681000010002141000c220648410081000000802141000428482a48200e53806100fdec2448204d202a000408000007676224882039fc0b01b0028000080000665674102039fc0b0140008000004000\""]],[16108,1,[" \"ffffbfff23c0fc0b01404a81660c240e52826100fd8e6100fdac200e528002800000000313c00000000070014e7570004e754cd210fe48d110fe4cea10fe002048e910fe002045ea004043e90040538066e04e7522da22da538066f84e75227c00000000721f429953816afa227c0000000070017203228043e9002053816af64239000000004e752039fc0b01580280fffff8000c80400000006d0a0c80500000006c026006203c4ec948000680000001c023c00000000020404e75610000f66100ffc6720f429853816afa2079000000002039fc0b0184e088e088e088e4880280000000030c8000000002661c700113c000000000203c00002b1123c000000000203c630000006018423900000000203c0000ac4423c000000000203c61680000208042a8000470012140000842a8000c6100ff2a2039fc0b01cc02800000ffff00800084000023c0fc0b01cc2039000000000480000000406402700023c00000000042b900000000700113c00000000013c000000000\""]],[16117,1,[" \"0000000042b90000000042b9000000004e75610000202039fc0b01cc02800000ffff23c0fc0b01cc6100feb44239000000004e752f027210203c0008000023c0fc0b01b4243c000100002039fc0b01b40280000800006704538266ee2039fc0b01b80280000800006704538166ca241f4e754a390000000066204a39000000006618700113c0000000002039800000e423c000000000600001204a3900000000670a423900000000610001427200\""]],[16126,10,[" \"0c0000000c800800000057c122412039800000e42400b4b900000000660652b90000000023c200000000e188e58806808000319024402839000000002a040285000003ff2005ed8847f900000000d7c0e78d49f900000000d9c572082a7c007fffff2c7cff8000007c0f204a7a0076007e0724102002e2a0da80420202c226c2242800042002e2a0d680420202c226c241e8008053876a00ffda240520096600004eb48d6f04240d6006b48e6c02240e20390000000090826a0244800c8000032000650652b90000000023c2000000002002e18802c028c02003b08d6f04200d6006b08e6c02200ee18802c028c045ea000853866a00ff745084508423c40000000071b90000000073b900000000b28067104a8067066100fd6e600a6100fe3e60084a8167046100f97642b946104d4e4ef94000d9a62039000000000c8000000040640c06800000040023c000000000048000000040723f24000282000003ff2602ed8b41f900000000d1c3780f429853846afae78a41f900000000d1c242984290528053816ad04e7571b946c8ce080c80000000c0661c71b946c8ce090c80000000556600009c487900000000703c600000820c80000000a16600008671b946c8ce0c0c80000000046600007671b946c8ce0d0c80000000106600006671b946c8ce0b73b946c8ce090c8000000001671e0c8000000002660000480c81000000016600003e487900000000700160240c8100000001660a487900000000700460120c810000000266000018487900000000700eb082630220022f004ef94001de5c2039fc0b01c04ef94001de6a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[17925,1,[" \"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003262306364636133363761656337376137646130666461396238663739353434383838623833386336366361323564376534666164633137393236396261643400353337353464666263643961393333303534623834326364363935356265376534666431356637383038613539623463343261393237303663633761376234370000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000312e34304300000000000000000000000035333735346466626364396139333330000100000095a80000002d00000352\""]],[18602,1,[" \"302e372e31300053754dfbcd9a933054b842cd6955be7e4fd15f7808a59b4c42a92706cc7a7b4700000000200000003200000044000000480000004c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[24093,1,[" 1"]],[24257,1,[" 64"]],[24265,1,[" 768"]],[24273,1,[" 768"]],[24309,1,[" 290824"]],[24325,1,[" 289764"]],[24331,4,[]],[24337,1,[" 289844"]],[24345,1,[" 289782"]],[24349,1,[" 289816"]],[24353,1,[" 4611744"]],[24365,1,[" 4611872"," ],"," \"aud_hs\": ["," \".run\","," 309851"]],[24371,1,[" \"audio_copy64\": ["," \".run\","," 290438"," ],"," \"aud_sum\": ["," \".bss\","," 4603552"," ],"," \"audio_copy8\": ["," \".run\","," 290472"," ],"," \"audio_dtds_clear\": ["]],[24375,12,[]],[24389,1,[" 290524"]],[24393,1,[" 290576"]],[24401,1,[" 290790"]],[24413,1,[" 291264"]],[24417,1,[" 290944"]],[25785,1,[" 291348"]],[27413,1,[" 290886"]],[86672,1,[" 291348"]],[86949,8,[" 289640,"]],[86963,1,[" 289654,"]],[86970,1,[" 289666,"]],[86977,1,[" 289672,"," \"abs32\","," \"sec:.run\","," 309850"," ],"," ["," \".run\","," 289696,"]],[86991,8,[" 289740,"]],[87005,1,[" 289758,"]],[87012,1,[" 289774,"]],[87015,1,[" 138829472"]],[87019,1,[" 289818,"]],[87026,1,[" 289846,"]],[87033,1,[" 289870,"]],[87040,1,[" 289880,"]],[87047,1,[" 289886,"]],[87050,1,[" 309780"," ],"," ["," \".run\","," 289904,"," \"abs32\","," \"sec:.run\","," 309788"]],[87061,1,[" 289930,"]],[87064,1,[" 309850"]],[87068,1,[" 289938,"," \"abs32\","," \"sec:.run\","," 309824"," ],"," ["," \".run\","," 289946,"," \"abs32\","," \"sec:.run\","," 309824"," ],"," ["," \".run\","," 289952,"," \"abs32\","," \"sec:.run\","," 309828"," ],"," ["," \".run\","," 289960,"," \"abs32\","," \"sec:.run\","," 309828"," ],"," ["," \".run\","," 289966,"," \"abs32\","," \"sec:.run\","," 309784"," ],"," ["," \".run\","," 289972,"," \"abs32\","," \"sec:.run\","," 309844"," ],"," ["," \".run\","," 289978,"," \"abs32\","," \"sec:.run\","," 309850"," ],"," ["," \".run\","," 290054,"," \"abs32\","," \"sec:.run\","," 309792"," ],"," ["," \".run\","," 290064,"," \"abs32\","," \"sec:.run\","," 309784"," ],"," ["," \".run\","," 290070,"," \"abs32\","," \"sec:.run\","," 309796"," ],"," ["," \".run\","," 290076,"," \"abs32\","," \"sec:.run\","," 309800"," ],"," ["," \".run\","," 290094,"," \"abs32\","," \"sec:.bss\","," 138829600"," ],"," ["," \".run\","," 290106,"]],[87075,1,[" 290126,"," \"abs32\","," \"sec:.run\","," 309851"," ],"," ["," \".run\","," 290134,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 290164,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 290178,"," \"abs32\","," \"sec:.bss\","," 4603552"," ],"," ["," \".run\","," 290208,"," \"abs32\","," \"sec:.bss\","," 4603552"," ],"," ["," \".run\","," 290220,"," \"abs32\","," \"sec:.run\","," 309796"," ],"," ["," \".run\","," 290226,"," \"abs32\","," \"sec:.run\","," 309780"," ],"," ["," \".run\","," 290234,"," \"abs32\","," \"sec:.run\","," 309851"," ],"," ["," \".run\","," 290426,"," \"abs32\","," \"sec:.run\","," 309852"," ],"," ["," \".run\","," 290484,"," \"abs32\","," \"sec:.bss\","," 138829472"," ],"," ["," \".run\","," 290498,"," \"abs32\","," \"sec:.bss\","," 138829472"," ],"," ["," \".run\","," 290518,"," \"abs32\","," \"sec:.run\","," 309852"," ],"," ["," \".run\","," 290568,"," \"abs32\","," \"sec:.run\","," 309840"," ],"," ["," \".run\","," 290594,"," \"abs32\","," \"sec:.run\","," 309840"," ],"," ["," \".run\","," 290630,"," \"abs32\","," \"sec:.run\","," 309851"," ],"," ["," \".run\","," 290642,"," \"abs32\","," \"sec:.run\","," 309844"," ],"," ["," \".run\","," 290656,"," \"abs32\","," \"sec:.run\","," 309851"," ],"," ["," \".run\","," 290668,"," \"abs32\","," \"sec:.run\","," 309844"," ],"," ["," \".run\","," 290724,"," \"abs32\","," \"sec:.run\","," 309836"," ],"," ["," \".run\","," 290740,"," \"abs32\","," \"sec:.run\","," 309780"," ],"," ["," \".run\","," 290746,"," \"abs32\","," \"sec:.run\","," 309784"," ],"," ["," \".run\","," 290754,"," \"abs32\","," \"sec:.run\","," 309849"," ],"," ["," \".run\","," 290760,"]],[87082,1,[" 290772,"]],[87089,8,[" 290778,"]],[87103,1,[" 290784,"]],[87106,1,[" 309832"]],[87110,1,[" 290818,"]],[87113,1,[" 309849"]],[87117,1,[" 290888,"]],[87120,1,[" 309848"]],[87124,1,[" 290896,"]],[87127,1,[" 309854"]],[87131,1,[" 290906,"]],[87134,1,[" 309853"]],[87138,1,[" 290918,"]],[87141,1,[" 309804"]],[87145,1,[" 290928,"]],[87148,1,[" 309853"]],[87152,1,[" 290936,"]],[87155,1,[" 309853"]],[87159,1,[" 290978,"]],[87161,2,[" \"sec:.run\","," 309804"]],[87166,1,[" 290986,"," \"abs32\","," \"sec:.run\","," 309808"," ],"," ["," \".run\","," 290992,"," \"abs32\","," \"sec:.run\","," 309804"," ],"," ["," \".run\","," 291010,"," \"abs32\","," \"sec:.run\","," 309836"," ],"," ["," \".run\","," 291028,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 291038,"," \"abs32\","," \"sec:.bss\","," 4603552"," ],"," ["," \".run\","," 291132,"," \"abs32\","," \"sec:.run\","," 309812"," ],"," ["," \".run\","," 291152,"," \"abs32\","," \"sec:.run\","," 309816"," ],"," ["," \".run\","," 291158,"," \"abs32\","," \"sec:.run\","," 309812"," ],"," ["," \".run\","," 291208,"," \"abs32\","," \"sec:.run\","," 309836"," ],"," ["," \".run\","," 291214,"," \"abs32\","," \"sec:.run\","," 309848"," ],"," ["," \".run\","," 291220,"," \"abs32\","," \"sec:.run\","," 309849"," ],"," ["," \".run\","," 291266,"," \"abs32\","," \"sec:.run\","," 309836"," ],"," ["," \".run\","," 291286,"," \"abs32\","," \"sec:.run\","," 309836"," ],"," ["," \".run\","," 291312,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 291330,"," \"abs32\","," \"sec:.bss\","," 4603552"," ],"," ["," \".run\","," 291380,"]],[87173,372,[" 291474,"]],[87551,1,[" 291492,"]],[87558,1,[" 291512,"]],[94697,1,[" \"identity.c\": \"3d4c9f760e4375f3c8fb47badade58f52b6fe3ac6a2389e5c019f4f51d8d81e0\","]],[94757,1,[" \"usb_base.s\": \"13d93cad9b23c165269865825cf71512650c20f3ffc7741a8b65db6a86adac9c\","]],[94761,1,[" \"usb_reserve.s\": \"6344ae08c3b9aab50bdb9f30ef45b06ead5efffc188f3fd7e50047aeaef38c35\""]]],"fills":[{"tag":"A","shared":2001,"first":0,"count":286,"site":"0x400f0ee3","offset":0},{"tag":"A","shared":2287,"first":0,"count":35,"site":"0x400f0ee3","offset":858},{"tag":"A","shared":2322,"first":0,"count":93,"site":"0x400f0ee3","offset":963},{"tag":"B","shared":1425,"first":0,"count":286,"site":"0x40103e34","offset":0},{"tag":"B","shared":1711,"first":0,"count":35,"site":"0x40103e34","offset":858},{"tag":"B","shared":1746,"first":0,"count":93,"site":"0x40103e34","offset":963},{"tag":"A","fx":4,"first":0,"count":441,"section":".run","offset":336620},{"tag":"A","fx":5,"first":0,"count":261,"section":".run","offset":335830},{"tag":"A","fx":12,"first":0,"count":282,"section":".run","offset":334968},{"tag":"A","fx":13,"first":0,"count":345,"section":".run","offset":333918},{"tag":"A","fx":16,"first":0,"count":207,"section":".run","offset":333282},{"tag":"A","fx":17,"first":0,"count":289,"section":".run","offset":332384},{"tag":"A","fx":18,"first":0,"count":329,"section":".run","offset":331360},{"tag":"A","fx":19,"first":0,"count":277,"section":".run","offset":330498},{"tag":"A","fx":20,"first":0,"count":594,"section":".run","offset":328696},{"tag":"A","fx":21,"first":0,"count":1063,"section":".run","offset":325464},{"tag":"A","fx":22,"first":0,"count":1067,"section":".run","offset":322202},{"tag":"A","fx":24,"first":2,"count":11,"section":".run","offset":321612},{"tag":"A","fx":24,"first":15,"count":165,"section":".run","offset":321651},{"tag":"A","fx":28,"first":0,"count":537,"section":".run","offset":319980},{"tag":"B","fx":4,"first":65,"count":1,"section":".run","offset":319488},{"tag":"B","fx":4,"first":73,"count":1,"section":".run","offset":319491},{"tag":"B","fx":4,"first":158,"count":1,"section":".run","offset":319494},{"tag":"B","fx":4,"first":163,"count":1,"section":".run","offset":319497},{"tag":"B","fx":4,"first":172,"count":1,"section":".run","offset":319500},{"tag":"B","fx":4,"first":182,"count":1,"section":".run","offset":319503},{"tag":"B","fx":4,"first":194,"count":1,"section":".run","offset":319506},{"tag":"B","fx":4,"first":199,"count":1,"section":".run","offset":319509},{"tag":"B","fx":4,"first":207,"count":1,"section":".run","offset":319512},{"tag":"B","fx":4,"first":215,"count":1,"section":".run","offset":319515},{"tag":"B","fx":4,"first":220,"count":1,"section":".run","offset":319518},{"tag":"B","fx":4,"first":225,"count":1,"section":".run","offset":319521},{"tag":"B","fx":4,"first":229,"count":1,"section":".run","offset":319524},{"tag":"B","fx":4,"first":248,"count":1,"section":".run","offset":319527},{"tag":"B","fx":4,"first":266,"count":1,"section":".run","offset":319530},{"tag":"B","fx":4,"first":281,"count":1,"section":".run","offset":319533},{"tag":"B","fx":4,"first":286,"count":1,"section":".run","offset":319536},{"tag":"B","fx":4,"first":290,"count":1,"section":".run","offset":319539},{"tag":"B","fx":4,"first":307,"count":1,"section":".run","offset":319542},{"tag":"B","fx":4,"first":325,"count":1,"section":".run","offset":319545},{"tag":"B","fx":4,"first":374,"count":1,"section":".run","offset":319548},{"tag":"B","fx":5,"first":25,"count":1,"section":".run","offset":319458},{"tag":"B","fx":5,"first":42,"count":1,"section":".run","offset":319461},{"tag":"B","fx":5,"first":62,"count":1,"section":".run","offset":319464},{"tag":"B","fx":5,"first":91,"count":1,"section":".run","offset":319467},{"tag":"B","fx":5,"first":179,"count":1,"section":".run","offset":319470},{"tag":"B","fx":5,"first":181,"count":1,"section":".run","offset":319473},{"tag":"B","fx":12,"first":62,"count":1,"section":".run","offset":319378},{"tag":"B","fx":12,"first":64,"count":1,"section":".run","offset":319381},{"tag":"B","fx":12,"first":68,"count":1,"section":".run","offset":319384},{"tag":"B","fx":12,"first":70,"count":1,"section":".run","offset":319387},{"tag":"B","fx":12,"first":91,"count":1,"section":".run","offset":319390},{"tag":"B","fx":12,"first":93,"count":1,"section":".run","offset":319393},{"tag":"B","fx":12,"first":97,"count":1,"section":".run","offset":319396},{"tag":"B","fx":12,"first":99,"count":1,"section":".run","offset":319399},{"tag":"B","fx":12,"first":165,"count":1,"section":".run","offset":319402},{"tag":"B","fx":12,"first":170,"count":1,"section":".run","offset":319405},{"tag":"B","fx":12,"first":172,"count":1,"section":".run","offset":319408},{"tag":"B","fx":12,"first":174,"count":1,"section":".run","offset":319411},{"tag":"B","fx":12,"first":176,"count":1,"section":".run","offset":319414},{"tag":"B","fx":12,"first":180,"count":1,"section":".run","offset":319417},{"tag":"B","fx":12,"first":182,"count":1,"section":".run","offset":319420},{"tag":"B","fx":12,"first":193,"count":1,"section":".run","offset":319423},{"tag":"B","fx":13,"first":259,"count":1,"section":".run","offset":319372},{"tag":"B","fx":16,"first":23,"count":1,"section":".run","offset":319356},{"tag":"B","fx":16,"first":27,"count":1,"section":".run","offset":319359},{"tag":"B","fx":16,"first":206,"count":1,"section":".run","offset":319362},{"tag":"B","fx":17,"first":30,"count":1,"section":".run","offset":319336},{"tag":"B","fx":17,"first":34,"count":1,"section":".run","offset":319339},{"tag":"B","fx":17,"first":118,"count":1,"section":".run","offset":319342},{"tag":"B","fx":17,"first":288,"count":1,"section":".run","offset":319345},{"tag":"B","fx":18,"first":48,"count":1,"section":".run","offset":319306},{"tag":"B","fx":18,"first":82,"count":1,"section":".run","offset":319309},{"tag":"B","fx":18,"first":87,"count":1,"section":".run","offset":319312},{"tag":"B","fx":18,"first":91,"count":1,"section":".run","offset":319315},{"tag":"B","fx":18,"first":260,"count":1,"section":".run","offset":319318},{"tag":"B","fx":18,"first":328,"count":1,"section":".run","offset":319321},{"tag":"B","fx":19,"first":109,"count":1,"section":".run","offset":319290},{"tag":"B","fx":19,"first":149,"count":1,"section":".run","offset":319293},{"tag":"B","fx":19,"first":276,"count":1,"section":".run","offset":319296},{"tag":"B","fx":20,"first":102,"count":1,"section":".run","offset":319230},{"tag":"B","fx":20,"first":107,"count":1,"section":".run","offset":319233},{"tag":"B","fx":20,"first":116,"count":1,"section":".run","offset":319236},{"tag":"B","fx":20,"first":167,"count":1,"section":".run","offset":319239},{"tag":"B","fx":20,"first":185,"count":1,"section":".run","offset":319242},{"tag":"B","fx":20,"first":239,"count":1,"section":".run","offset":319245},{"tag":"B","fx":20,"first":322,"count":1,"section":".run","offset":319248},{"tag":"B","fx":20,"first":403,"count":1,"section":".run","offset":319251},{"tag":"B","fx":20,"first":425,"count":1,"section":".run","offset":319254},{"tag":"B","fx":20,"first":517,"count":1,"section":".run","offset":319257},{"tag":"B","fx":20,"first":550,"count":1,"section":".run","offset":319260},{"tag":"B","fx":20,"first":590,"count":1,"section":".run","offset":319263},{"tag":"B","fx":21,"first":15,"count":1,"section":".run","offset":319184},{"tag":"B","fx":21,"first":374,"count":1,"section":".run","offset":319187},{"tag":"B","fx":21,"first":406,"count":1,"section":".run","offset":319190},{"tag":"B","fx":21,"first":432,"count":1,"section":".run","offset":319193},{"tag":"B","fx":21,"first":470,"count":1,"section":".run","offset":319196},{"tag":"B","fx":21,"first":478,"count":1,"section":".run","offset":319199},{"tag":"B","fx":21,"first":481,"count":1,"section":".run","offset":319202},{"tag":"B","fx":21,"first":574,"count":1,"section":".run","offset":319205},{"tag":"B","fx":21,"first":800,"count":1,"section":".run","offset":319208},{"tag":"B","fx":22,"first":202,"count":1,"section":".run","offset":319114},{"tag":"B","fx":22,"first":315,"count":1,"section":".run","offset":319117},{"tag":"B","fx":22,"first":402,"count":1,"section":".run","offset":319120},{"tag":"B","fx":22,"first":404,"count":1,"section":".run","offset":319123},{"tag":"B","fx":22,"first":417,"count":1,"section":".run","offset":319126},{"tag":"B","fx":22,"first":457,"count":1,"section":".run","offset":319129},{"tag":"B","fx":22,"first":461,"count":1,"section":".run","offset":319132},{"tag":"B","fx":22,"first":465,"count":1,"section":".run","offset":319135},{"tag":"B","fx":22,"first":492,"count":1,"section":".run","offset":319138},{"tag":"B","fx":22,"first":719,"count":1,"section":".run","offset":319141},{"tag":"B","fx":22,"first":746,"count":1,"section":".run","offset":319144},{"tag":"B","fx":22,"first":800,"count":1,"section":".run","offset":319147},{"tag":"B","fx":22,"first":842,"count":1,"section":".run","offset":319150},{"tag":"B","fx":22,"first":1051,"count":1,"section":".run","offset":319153}]},{"layout":"tracks-post","identity":"94101a5a4a5fb2899b7ff7e1572f51e60579ae21d7f4eb289f6a96fca1fb2295","packageSha256":"a4ea5234351c1457ed526da0d53c41b554587926a497fbcdac3305493e3830fb","patch":[[15828,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202000200000005250101010905820200020000000525010103080b04020100200009040400000101200009240100020a2e000008240a100105000011240211030600\""]],[15832,1,[" \"0x400bf48c\","," 10"," ],"," ["," \"hex\","," \"0c24031201010011100000000904050000010220000904050101010220001024011200010100\""," ],"," ["," \"stock\","," \"0x400ba484\","]],[15837,1,[" \"06240201041807058305000302082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000090703010601\""]],[15869,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202000200000005250101010905820200020000000525010103080b04020100200009040400000101200009240100020a2e000008240a100105000011240211030600\""]],[15873,1,[" \"0x400bf48c\","," 10"," ],"," ["," \"hex\","," \"0c24031201010011100000000904050000010220000904050101010220001024011200010100\""," ],"," ["," \"stock\","," \"0x400ba484\","]],[15878,1,[" \"06240201041807058305000302082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[16072,1,[" \"0000000071b946c8ce0c7205b2806600002c71b946c8ce0a4a80670a700113c000000000600a423900000000610005c64eb94001d5244ef94001de742039fc0b01c44ef94001dd0a71b946c8ce0c7205b280660c4879000000004ef94001d81e4879400e20a14ef94001d81e4eb94001d6b86100001a70404ef94001e9226100000e2039fc0b01404ef94001e9584239000000004e75201023c04ec950280280fffff00006800000100023c04ec9502c4ef94001d4b8\""," ],"," ["," \"stock\","," \"0x40000d7e\","," 8"," ],"," ["," \"hex\","," \"4a39000000006724\""," ],"," ["," \"stock\","," \"0x4001d42c\","," 10"," ],"," ["," \"hex\","," \"67084239000000006010\""," ],"," ["," \"stock\","," \"0x4001e68e\","," 10"," ],"," ["," \"hex\","," \"670461000a4c2039fc0b01bc223c00080000c081670c223c0008000023c1fc0b01bc\""," ],"," ["," \"stock\","," \"0x40000d9a\","," 8"," ],"," ["," \"hex\","," \"4ef9000000004a3900000000670000b271b9000000000c8000000002664c740020026100009e2228000408010007670c52820c820000000465e64e75203900000000220092b9000000000481000000406f1223c10000000004800000004023c00000000042390000000070042f00610000a24a806704539766f4588f71b9000000000c80000000016608700213c0000000002039fc0b01b82239fc0b01b08081028000080000661875b900000000610000244a80670a6100003e52b9000000004e75028000000003eb88207c00000000d1c04e75760320026100ffe82228000408010007660a528253836aea70004e75284870014e75227900000000234c000842a9000c203c00080000\""]],[16081,1,[" \"71b9000000002c406100ffa62228000408010007660002384a39000000006700022e203900000000223900000000240094810c8200000400631a52b900000000220004810000040023c100000000243c000004004a3900000000661cb4b900000000640623c200000000b4b900000000630623c2000000002639000000002a39000000004a390000000066282002048000000040e3800c80000000c86f06203c000000c80c80ffffff386c06203cffffff38da80d6852e3c000003e828034c4740042a044c0750002c039c85b484640a52b9000000006000017623c60000000023c40000000023c200000000200ee188e588220ee1899081267c00000000d7c0224b26042239000000000281000003ff203c0000040090814a3900000000672c45f900000000ed89d5c1b6806208200361000120604096802a436100011645f900000000200d6100010a602a45f900000000e789d5c1b6806208200361000116601496802a436100010c45f900000000200d61000100283900000000d9b9000000002c044a39000000006704ed8e6002e78e72012081214b0008220b0281fffff0000681000010002141000c220648410081000000802141000428482a48200e53806100fdec2448204d202a000408000007676224882039fc0b01b0028000080000665674102039fc0b0140008000004000\""]],[16108,1,[" \"ffffbfff23c0fc0b01404a81660c240e52826100fd8e6100fdac200e528002800000000313c00000000070014e7570004e754cd210fe48d110fe4cea10fe002048e910fe002045ea004043e90040538066e04e7522da22da538066f84e75227c00000000721f429953816afa227c0000000070017203228043e9002053816af64239000000004e752039fc0b01580280fffff8000c80400000006d0a0c80500000006c026006203c4ec948000680000001c023c00000000020404e75610000f66100ffc6720f429853816afa2079000000002039fc0b0184e088e088e088e4880280000000030c8000000002661c700113c000000000203c00002b1123c000000000203c630000006018423900000000203c0000ac4423c000000000203c61680000208042a8000470012140000842a8000c6100ff2a2039fc0b01cc02800000ffff00800084000023c0fc0b01cc2039000000000480000000406402700023c00000000042b900000000700113c00000000013c000000000\""]],[16117,1,[" \"0000000042b90000000042b9000000004e75610000202039fc0b01cc02800000ffff23c0fc0b01cc6100feb44239000000004e752f027210203c0008000023c0fc0b01b4243c000100002039fc0b01b40280000800006704538266ee2039fc0b01b80280000800006704538166ca241f4e754a3900000000662a4a39000000006622700113c0000000002039800000e423c0000000007000610001f461000330600001644a3900000000670a423900000000610001867001610001d47200\""]],[16126,1,[" \"0c0000000c800800000057c12039800000e42400b4b900000000660652b90000000023c200000000e188e58806808000319024402839000000002a040285000003ff2005ed8847f900000000d7c0e78d49f900000000d9c543f9000000002a7c007fffff2c7cff8000007c0f4a0166000084204a7a0076007e07241042022011a4000800a1c22002e080da80420202c226c22428000442022019a4000800a1c22002e080d680420202c226c241e8008053876a00ffc62405b48d6f04240d6006b48e6c02240e23c200000000e18a02c228c2b68d6f04260d6006b68e6c02260ee18b02c328c345ea000853866a00ff8460000040204a7e07241042022011a4000800a1c2420202c226c22428000442022019a4000800a1c2420202c226c241e8008053876a00ffd245ea000853866a00ffc45084508423c400000000610001ca71b90000000073b900000000b28067104a8067066100fd20600a6100fdf060084a8167046100f92842b946104d4e4ef94000d9a62039000000000c8000000040640c06800000040023c000000000048000000040723f24000282000003ff2602ed8b41f900000000d1c3780f429853846afae78a41f900000000d1c242984290528053816ad04e752c40a98123c1000000007200a901ab8123c100000000a1c123c1000000007220a901203900000000220052817403c28223c100000000ed8841f900000000d1c0227980003c1045f90000000047f90000000049f9000000007e07755077e8000279e8000430a900023169000400023169000600044c022800ee820c82007fffff6f06243c007fffffee8b0283000000ff26343c00e483e18ae18ba6020800a1c2e082700fc8802a122c2a0004202a0008b0846f02200425440008220e4a81661c26064c003800da8326029685e883721092844c031800da816000004e7210928498802a4b4a8067122605e18be58b2a834bed0020da86538066ee4a8467102605e18be58b2a834bed0020538466f62c029c85e8862605e18be58b2a834bed0020da86538166ee260624852543000445ea000c50885089588b53876a00ff1e4e757000a900203900000000a100203900000000ab00203900000000a9004e7571b946c8ce080c80000000c0661c71b946c8ce090c800000005566000160487900000000703c6000008c0c8000000021670000900c80000000a16600014071b946c8ce0c0c80000000046600013071b946c8ce0d0c80000000106600012071b946c8ce0b73b946c8ce090c8000000001671e0c8000000002660001020c8100000001660000f8487900000000700160240c8100000001660a487900000000700460120c8100000002660000d2487900000000700eb082630220022f004ef94001de5c71b946c8ce0c0c8000000004660000ac71b946c8ce0d0c80000000106600009c71b946c8ce0b0c80000000016600008c71b946c8ce090c80000000016600007c7004b48066000074\""]],[16130,1,[" \"0x4001d13a\","," 10"," ],"," ["," \"hex\","," \"5004\""," ],"," ["," \"stock\","," \"0x4001d530\","," 10"," ],"," ["," \"hex\","," \"5008\""," ],"," ["," \"stock\","," \"0x4001ca96\","," 10"," ],"," ["," \"hex\","," \"5000207946c8ce18203c4ec95000\""," ],"," ["," \"stock\","," \"0x4001d3fa\","," 10"," ],"," ["," \"hex\","," \"7201\""," ],"," ["," \"stock\","," \"0x4001cabc\","]],[16135,1,[" \"223c000186a020394ec95004080000076712538166f0700113c0000000004ef94001de74610000144ef94001de742039fc0b01c04ef94001de6a\""," ],"," ["," \"stock\","," \"0x4001e69c\","," 8"," ],"," ["," \"hex\","," \"42390000000020394ec960000c8044ac000066084eb94001d5244e75\""," ],"," ["," \"stock\","," \"0x4001de64\","," 16"," ],"," ["," \"stock\","," \"0x40003198\","," 8"," ],"," ["," \"hex\","," \"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[17925,1,[" \"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003361643337353537333933353264383162643264626131326561313031393130363333343035663533636132643432636335306636363763633437363838616200393431303161356134613566623238393962376666376531353732663531653630353739616532316437663465623238396636613936666361316662323239\""," ],"," ["," \"stock\","," \"0x400cceb6\","," 14"," ],"," ["," \"hex\","," \"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000312e34304300000000000000000000000039343130316135613461356662323839000100000095a80000002d00000352\""]],[18147,1,[" \"00000000000000000000000000000000000000000000000000000000000000000000000000002b11000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""," ],"," ["," \"hex\","," \"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000460c8122460d0ffa460bf218460c80f0000000000000000000000000000000000000000000000000000000000000000000000000151315141515151615171518151916141715181619131914191519161917191819191b131b141b151b161b171b181b191c131c161c191d131d161d191e131e161e191f131f1921132114211521162117211821192218231623172418251325142515251625172518251959135914591559165917591859195a135a165a195b135b165b195c135c165c195d145d155d175d185f135f145f155f165f175f185f1960136016601961136116611962136216621963136319651366136713671467156716671767186719681369136b146b156b166b176b186b196c136c166d136d166e136e166f146f156f166f176f186f1900151305070000000011001b13050700001100120021130507000023001201591305070000350014015f1305070000490012016513050700005b000b016b130507000066001207ff07ff00030006000c001800300018000c0006000307ff07ff00000000000001fc03fe07070603060306030603070703fe01fc00000000000007ff07ff06030603060306030707038e01fc00f8\""]],[18602,1,[" \"302e372e31300094101a5a4a5fb2899b7ff7e1572f51e60579ae21d7f4eb289f6a96fca1fb229500000000200000003200000044000000480000004c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[24093,1,[" 5"]],[24119,0,[" \"LAYOUT_TRACKS_POST\": ["," \"abs\","," 5"," ],"]],[24122,0,[" ],"," \"TRACKS16\": ["," \"abs\","," 4294967295"]],[24199,0,[" \"SETUPSTAT\": ["," \"abs\","," 4228579756"," ],"," \"EP0CTRL\": ["," \"abs\","," 4228579776"," ],"," \"EP0OUT_DTD\": ["," \"abs\","," 1321816064"," ],"," \"EP0_BUF\": ["," \"abs\","," 1321820160"," ],"," \"QH0_OUT_PTR\": ["," \"abs\","," 1187565080"," ],"]],[24257,1,[" 64"]],[24265,1,[" 768"]],[24273,1,[" 768"]],[24309,1,[" 290868"]],[24315,0,[" \"uac2_set_pending\": ["," \".run\","," 309849"," ],"," \"uac2_set_done\": ["," \".run\","," 292212"," ],"]],[24317,1,[" 289620"]],[24321,1,[" 309851"]],[24325,1,[" 289808"]],[24331,1,[" \"audio_pkt_build\": ["]],[24333,1,[" 289888"]],[24335,1,[" \"aud_tail\": ["," \".run\","," 309853"," ],"," \"audio_oldest\": ["," \".run\","," 289826"," ],"," \"audio_prime\": ["]],[24339,12,[]],[24353,1,[" 4611744"]],[24365,1,[" 4611872"," ],"," \"aud_hs\": ["," \".run\","," 309852"]],[24371,1,[" \"audio_copy64\": ["]],[24377,1,[" 4603552"]],[24381,1,[" 290516"]],[24385,1,[" 290526"]],[24389,1,[" 290568"]],[24393,1,[" 290620"]],[24397,1,[" 309850"]],[24401,1,[" 290834"]],[24405,1,[" 309855"]],[24409,1,[" 309854"," ],"," \"post_frame\": ["," \".run\","," 291470"," ],"," \"post_emac_leave\": ["," \".run\","," 291790"]],[24413,1,[" 291386"]],[24415,1,[" \"post_gtab\": ["]],[24417,1,[" 310224"]],[24422,0,[" ],"," \"SNAP_PTR\": ["," \"abs\","," 2147499024"," ],"," \"post_emac\": ["," \".run\","," 309860"," ],"," \"post_hidx\": ["," \".run\","," 309856"," ],"," \"post_hist\": ["," \".run\","," 309872"," ],"," \"post_state\": ["," \".run\","," 310128"," ],"," \"post_xlv\": ["," \".run\","," 310736"]],[25785,1,[" 291820"]],[27413,1,[" 290930"]],[86672,1,[" 291820"]],[86921,1,[" 289536,"," \"abs32\","," \"sec:.run\","," 309849"," ],"," ["," \".run\","," 289556,"," \"abs32\","," \"sec:.run\","," 309849"," ],"," ["," \".run\","," 289616,"]],[86928,1,[" 289622,"]],[86935,1,[" 289632,"," \"abs32\","," \"sec:.run\","," 309851"," ],"," ["," \".run\","," 289676,"," \"abs32\","," \"sec:.run\","," 309836"," ],"," ["," \".run\","," 289684,"," \"abs32\","," \"sec:.run\","," 309780"," ],"," ["," \".run\","," 289698,"," \"abs32\","," \"sec:.run\","," 309832"," ],"," ["," \".run\","," 289710,"," \"abs32\","," \"sec:.run\","," 309780"," ],"," ["," \".run\","," 289716,"," \"abs32\","," \"sec:.run\","," 309851"," ],"," ["," \".run\","," 289740,"," \"abs32\","," \"sec:.run\","," 309851"," ],"," ["," \".run\","," 289756,"," \"abs32\","," \"sec:.run\","," 309851"," ],"," ["," \".run\","," 289784,"," \"abs32\","," \"sec:.run\","," 309853"," ],"," ["," \".run\","," 289802,"," \"abs32\","," \"sec:.run\","," 309820"," ],"," ["," \".run\","," 289818,"," \"abs32\","," \"sec:.bss\","," 138829472"," ],"," ["," \".run\","," 289862,"," \"abs32\","," \"sec:.run\","," 309840"," ],"," ["," \".run\","," 289890,"," \"abs32\","," \"sec:.run\","," 309853"," ],"," ["," \".run\","," 289914,"," \"abs32\","," \"sec:.run\","," 309848"," ],"," ["," \".run\","," 289924,"," \"abs32\","," \"sec:.run\","," 309836"," ],"," ["," \".run\","," 289930,"," \"abs32\","," \"sec:.run\","," 309780"," ],"," ["," \".run\","," 289948,"," \"abs32\","," \"sec:.run\","," 309788"," ],"," ["," \".run\","," 289962,"," \"abs32\","," \"sec:.run\","," 309780"," ],"," ["," \".run\","," 289974,"," \"abs32\","," \"sec:.run\","," 309851"," ],"," ["," \".run\","," 289982,"," \"abs32\","," \"sec:.run\","," 309824"," ],"," ["," \".run\","," 289990,"," \"abs32\","," \"sec:.run\","," 309824"," ],"," ["," \".run\","," 289996,"," \"abs32\","," \"sec:.run\","," 309828"," ],"," ["," \".run\","," 290004,"," \"abs32\","," \"sec:.run\","," 309828"," ],"," ["," \".run\","," 290010,"," \"abs32\","," \"sec:.run\","," 309784"," ],"," ["," \".run\","," 290016,"," \"abs32\","," \"sec:.run\","," 309844"," ],"," ["," \".run\","," 290022,"," \"abs32\","," \"sec:.run\","," 309851"," ],"," ["," \".run\","," 290098,"," \"abs32\","," \"sec:.run\","," 309792"," ],"," ["," \".run\","," 290108,"," \"abs32\","," \"sec:.run\","," 309784"," ],"," ["," \".run\","," 290114,"," \"abs32\","," \"sec:.run\","," 309796"," ],"," ["," \".run\","," 290120,"," \"abs32\","," \"sec:.run\","," 309800"," ],"," ["," \".run\","," 290138,"," \"abs32\","," \"sec:.bss\","," 138829600"," ],"," ["," \".run\","," 290150,"," \"abs32\","," \"sec:.run\","," 309780"," ],"," ["," \".run\","," 290170,"," \"abs32\","," \"sec:.run\","," 309852"," ],"," ["," \".run\","," 290178,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 290208,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 290222,"," \"abs32\","," \"sec:.bss\","," 4603552"," ],"," ["," \".run\","," 290252,"," \"abs32\","," \"sec:.bss\","," 4603552"," ],"," ["," \".run\","," 290264,"," \"abs32\","," \"sec:.run\","," 309796"," ],"," ["," \".run\","," 290270,"," \"abs32\","," \"sec:.run\","," 309780"," ],"," ["," \".run\","," 290278,"," \"abs32\","," \"sec:.run\","," 309852"," ],"," ["," \".run\","," 290470,"," \"abs32\","," \"sec:.run\","," 309853"," ],"," ["," \".run\","," 290528,"," \"abs32\","," \"sec:.bss\","," 138829472"," ],"," ["," \".run\","," 290542,"," \"abs32\","," \"sec:.bss\","," 138829472"," ],"," ["," \".run\","," 290562,"," \"abs32\","," \"sec:.run\","," 309853"," ],"," ["," \".run\","," 290612,"," \"abs32\","," \"sec:.run\","," 309840"," ],"," ["," \".run\","," 290638,"," \"abs32\","," \"sec:.run\","," 309840"," ],"," ["," \".run\","," 290674,"," \"abs32\","," \"sec:.run\","," 309852"," ],"," ["," \".run\","," 290686,"," \"abs32\","," \"sec:.run\","," 309844"," ],"," ["," \".run\","," 290700,"," \"abs32\","," \"sec:.run\","," 309852"," ],"," ["," \".run\","," 290712,"," \"abs32\","," \"sec:.run\","," 309844"," ],"," ["," \".run\","," 290768,"," \"abs32\","," \"sec:.run\","," 309836"," ],"," ["," \".run\","," 290784,"," \"abs32\","," \"sec:.run\","," 309780"," ],"," ["," \".run\","," 290790,"," \"abs32\","," \"sec:.run\","," 309784"," ],"," ["," \".run\","," 290798,"]],[86942,8,[" 290804,"]],[86956,1,[" 290816,"]],[86959,1,[" 309824"]],[86963,1,[" 290822,"," \"abs32\","," \"sec:.run\","," 309828"," ],"," ["," \".run\","," 290828,"]],[86970,8,[" 290862,"]],[86984,50,[" 290932,"]],[87040,1,[" 290940,"]],[87043,1,[" 309855"]],[87047,330,[" 290950,"]],[87383,1,[" 290962,"]],[87386,1,[" 309804"," ],"," ["," \".run\","," 290982,"," \"abs32\","," \"sec:.run\","," 309854"]],[87393,0,[" 309854"," ],"," ["," \".run\","," 291036,"," \"abs32\","," \"sec:.run\","]],[87397,1,[" 291044,"]],[87400,8,[" 309808"]],[87418,15,[" 291068,"]],[87439,1,[" 291086,"]],[87446,1,[" 291096,"]],[87449,1,[" 4603552"]],[87453,1,[" 291104,"]],[87455,2,[" \"sec:.run\","," 310224"]],[87460,8,[" 291214,"]],[87474,15,[" 291326,"]],[87495,1,[" 291336,"]],[87502,1,[" 291342,"," \"abs32\","," \"sec:.run\","," 309850"," ],"," ["," \".run\","," 291388,"," \"abs32\","," \"sec:.run\","," 309836"," ],"," ["," \".run\","," 291408,"," \"abs32\","," \"sec:.run\","," 309836"," ],"," ["," \".run\","," 291434,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 291452,"," \"abs32\","," \"sec:.bss\","," 4603552"," ],"," ["," \".run\","," 291476,"," \"abs32\","," \"sec:.run\","," 309860"," ],"," ["," \".run\","," 291488,"," \"abs32\","," \"sec:.run\","," 309868"," ],"," ["," \".run\","," 291496,"," \"abs32\","," \"sec:.run\","," 309864"," ],"," ["," \".run\","," 291506,"," \"abs32\","," \"sec:.run\","," 309856"," ],"," ["," \".run\","," 291520,"," \"abs32\","," \"sec:.run\","," 309856"," ],"," ["," \".run\","," 291528,"," \"abs32\","," \"sec:.run\","," 309872"," ],"," ["," \".run\","," 291542,"," \"abs32\","," \"sec:.run\","," 310128"," ],"," ["," \".run\","," 291548,"," \"abs32\","," \"sec:.run\","," 310224"," ],"," ["," \".run\","," 291554,"," \"abs32\","," \"sec:.run\","," 310736"," ],"," ["," \".run\","," 291796,"," \"abs32\","," \"sec:.run\","," 309864"," ],"," ["," \".run\","," 291804,"," \"abs32\","," \"sec:.run\","," 309868"," ],"," ["," \".run\","," 291812,"," \"abs32\","," \"sec:.run\","," 309860"," ],"," ["," \".run\","," 291852,"," \"abs32\","," \"sec:.run\","," 309780"," ],"," ["," \".run\","," 291956,"," \"abs32\","," \"sec:.run\","," 309778"," ],"," ["," \".run\","," 291974,"," \"abs32\","," \"sec:.run\","," 309760"," ],"," ["," \".run\","," 291994,"," \"abs32\","," \"sec:.run\","," 309764"," ],"," ["," \".run\","," 292180,"]],[87509,1,[" 292222,"]],[87512,50,[" 309849"]],[94697,1,[" \"identity.c\": \"cb238d2de00aa99470179ac26de4e04a94aa01e1b0ce6a4bef58fbcec216911f\","]],[94757,1,[" \"usb_base.s\": \"13d93cad9b23c165269865825cf71512650c20f3ffc7741a8b65db6a86adac9c\","]],[94760,2,[" \"usbaudio.s\": \"5bd354a7c52ab8b4cf7d7515aa47ccbbd4ec3802bb6cf2682df81b86590dbd21\","," \"usb_reserve.s\": \"b87782d0ddb1c0649654596dc614ac1df144ad3ebe149164e2324be3b29d3c0b\""]]],"fills":[{"tag":"A","shared":2001,"first":0,"count":286,"site":"0x400f0ee3","offset":0},{"tag":"A","shared":2287,"first":0,"count":35,"site":"0x400f0ee3","offset":858},{"tag":"A","shared":2322,"first":0,"count":93,"site":"0x400f0ee3","offset":963},{"tag":"B","shared":1425,"first":0,"count":286,"site":"0x40103e34","offset":0},{"tag":"B","shared":1711,"first":0,"count":35,"site":"0x40103e34","offset":858},{"tag":"B","shared":1746,"first":0,"count":93,"site":"0x40103e34","offset":963},{"tag":"A","fx":4,"first":0,"count":441,"section":".run","offset":336620},{"tag":"A","fx":5,"first":0,"count":261,"section":".run","offset":335830},{"tag":"A","fx":12,"first":0,"count":282,"section":".run","offset":334968},{"tag":"A","fx":13,"first":0,"count":345,"section":".run","offset":333918},{"tag":"A","fx":16,"first":0,"count":207,"section":".run","offset":333282},{"tag":"A","fx":17,"first":0,"count":289,"section":".run","offset":332384},{"tag":"A","fx":18,"first":0,"count":329,"section":".run","offset":331360},{"tag":"A","fx":19,"first":0,"count":277,"section":".run","offset":330498},{"tag":"A","fx":20,"first":0,"count":594,"section":".run","offset":328696},{"tag":"A","fx":21,"first":0,"count":1063,"section":".run","offset":325464},{"tag":"A","fx":22,"first":0,"count":1067,"section":".run","offset":322202},{"tag":"A","fx":24,"first":2,"count":11,"section":".run","offset":321612},{"tag":"A","fx":24,"first":15,"count":165,"section":".run","offset":321651},{"tag":"A","fx":28,"first":0,"count":537,"section":".run","offset":319980},{"tag":"B","fx":4,"first":65,"count":1,"section":".run","offset":319488},{"tag":"B","fx":4,"first":73,"count":1,"section":".run","offset":319491},{"tag":"B","fx":4,"first":158,"count":1,"section":".run","offset":319494},{"tag":"B","fx":4,"first":163,"count":1,"section":".run","offset":319497},{"tag":"B","fx":4,"first":172,"count":1,"section":".run","offset":319500},{"tag":"B","fx":4,"first":182,"count":1,"section":".run","offset":319503},{"tag":"B","fx":4,"first":194,"count":1,"section":".run","offset":319506},{"tag":"B","fx":4,"first":199,"count":1,"section":".run","offset":319509},{"tag":"B","fx":4,"first":207,"count":1,"section":".run","offset":319512},{"tag":"B","fx":4,"first":215,"count":1,"section":".run","offset":319515},{"tag":"B","fx":4,"first":220,"count":1,"section":".run","offset":319518},{"tag":"B","fx":4,"first":225,"count":1,"section":".run","offset":319521},{"tag":"B","fx":4,"first":229,"count":1,"section":".run","offset":319524},{"tag":"B","fx":4,"first":248,"count":1,"section":".run","offset":319527},{"tag":"B","fx":4,"first":266,"count":1,"section":".run","offset":319530},{"tag":"B","fx":4,"first":281,"count":1,"section":".run","offset":319533},{"tag":"B","fx":4,"first":286,"count":1,"section":".run","offset":319536},{"tag":"B","fx":4,"first":290,"count":1,"section":".run","offset":319539},{"tag":"B","fx":4,"first":307,"count":1,"section":".run","offset":319542},{"tag":"B","fx":4,"first":325,"count":1,"section":".run","offset":319545},{"tag":"B","fx":4,"first":374,"count":1,"section":".run","offset":319548},{"tag":"B","fx":5,"first":25,"count":1,"section":".run","offset":319458},{"tag":"B","fx":5,"first":42,"count":1,"section":".run","offset":319461},{"tag":"B","fx":5,"first":62,"count":1,"section":".run","offset":319464},{"tag":"B","fx":5,"first":91,"count":1,"section":".run","offset":319467},{"tag":"B","fx":5,"first":179,"count":1,"section":".run","offset":319470},{"tag":"B","fx":5,"first":181,"count":1,"section":".run","offset":319473},{"tag":"B","fx":12,"first":62,"count":1,"section":".run","offset":319378},{"tag":"B","fx":12,"first":64,"count":1,"section":".run","offset":319381},{"tag":"B","fx":12,"first":68,"count":1,"section":".run","offset":319384},{"tag":"B","fx":12,"first":70,"count":1,"section":".run","offset":319387},{"tag":"B","fx":12,"first":91,"count":1,"section":".run","offset":319390},{"tag":"B","fx":12,"first":93,"count":1,"section":".run","offset":319393},{"tag":"B","fx":12,"first":97,"count":1,"section":".run","offset":319396},{"tag":"B","fx":12,"first":99,"count":1,"section":".run","offset":319399},{"tag":"B","fx":12,"first":165,"count":1,"section":".run","offset":319402},{"tag":"B","fx":12,"first":170,"count":1,"section":".run","offset":319405},{"tag":"B","fx":12,"first":172,"count":1,"section":".run","offset":319408},{"tag":"B","fx":12,"first":174,"count":1,"section":".run","offset":319411},{"tag":"B","fx":12,"first":176,"count":1,"section":".run","offset":319414},{"tag":"B","fx":12,"first":180,"count":1,"section":".run","offset":319417},{"tag":"B","fx":12,"first":182,"count":1,"section":".run","offset":319420},{"tag":"B","fx":12,"first":193,"count":1,"section":".run","offset":319423},{"tag":"B","fx":13,"first":259,"count":1,"section":".run","offset":319372},{"tag":"B","fx":16,"first":23,"count":1,"section":".run","offset":319356},{"tag":"B","fx":16,"first":27,"count":1,"section":".run","offset":319359},{"tag":"B","fx":16,"first":206,"count":1,"section":".run","offset":319362},{"tag":"B","fx":17,"first":30,"count":1,"section":".run","offset":319336},{"tag":"B","fx":17,"first":34,"count":1,"section":".run","offset":319339},{"tag":"B","fx":17,"first":118,"count":1,"section":".run","offset":319342},{"tag":"B","fx":17,"first":288,"count":1,"section":".run","offset":319345},{"tag":"B","fx":18,"first":48,"count":1,"section":".run","offset":319306},{"tag":"B","fx":18,"first":82,"count":1,"section":".run","offset":319309},{"tag":"B","fx":18,"first":87,"count":1,"section":".run","offset":319312},{"tag":"B","fx":18,"first":91,"count":1,"section":".run","offset":319315},{"tag":"B","fx":18,"first":260,"count":1,"section":".run","offset":319318},{"tag":"B","fx":18,"first":328,"count":1,"section":".run","offset":319321},{"tag":"B","fx":19,"first":109,"count":1,"section":".run","offset":319290},{"tag":"B","fx":19,"first":149,"count":1,"section":".run","offset":319293},{"tag":"B","fx":19,"first":276,"count":1,"section":".run","offset":319296},{"tag":"B","fx":20,"first":102,"count":1,"section":".run","offset":319230},{"tag":"B","fx":20,"first":107,"count":1,"section":".run","offset":319233},{"tag":"B","fx":20,"first":116,"count":1,"section":".run","offset":319236},{"tag":"B","fx":20,"first":167,"count":1,"section":".run","offset":319239},{"tag":"B","fx":20,"first":185,"count":1,"section":".run","offset":319242},{"tag":"B","fx":20,"first":239,"count":1,"section":".run","offset":319245},{"tag":"B","fx":20,"first":322,"count":1,"section":".run","offset":319248},{"tag":"B","fx":20,"first":403,"count":1,"section":".run","offset":319251},{"tag":"B","fx":20,"first":425,"count":1,"section":".run","offset":319254},{"tag":"B","fx":20,"first":517,"count":1,"section":".run","offset":319257},{"tag":"B","fx":20,"first":550,"count":1,"section":".run","offset":319260},{"tag":"B","fx":20,"first":590,"count":1,"section":".run","offset":319263},{"tag":"B","fx":21,"first":15,"count":1,"section":".run","offset":319184},{"tag":"B","fx":21,"first":374,"count":1,"section":".run","offset":319187},{"tag":"B","fx":21,"first":406,"count":1,"section":".run","offset":319190},{"tag":"B","fx":21,"first":432,"count":1,"section":".run","offset":319193},{"tag":"B","fx":21,"first":470,"count":1,"section":".run","offset":319196},{"tag":"B","fx":21,"first":478,"count":1,"section":".run","offset":319199},{"tag":"B","fx":21,"first":481,"count":1,"section":".run","offset":319202},{"tag":"B","fx":21,"first":574,"count":1,"section":".run","offset":319205},{"tag":"B","fx":21,"first":800,"count":1,"section":".run","offset":319208},{"tag":"B","fx":22,"first":202,"count":1,"section":".run","offset":319114},{"tag":"B","fx":22,"first":315,"count":1,"section":".run","offset":319117},{"tag":"B","fx":22,"first":402,"count":1,"section":".run","offset":319120},{"tag":"B","fx":22,"first":404,"count":1,"section":".run","offset":319123},{"tag":"B","fx":22,"first":417,"count":1,"section":".run","offset":319126},{"tag":"B","fx":22,"first":457,"count":1,"section":".run","offset":319129},{"tag":"B","fx":22,"first":461,"count":1,"section":".run","offset":319132},{"tag":"B","fx":22,"first":465,"count":1,"section":".run","offset":319135},{"tag":"B","fx":22,"first":492,"count":1,"section":".run","offset":319138},{"tag":"B","fx":22,"first":719,"count":1,"section":".run","offset":319141},{"tag":"B","fx":22,"first":746,"count":1,"section":".run","offset":319144},{"tag":"B","fx":22,"first":800,"count":1,"section":".run","offset":319147},{"tag":"B","fx":22,"first":842,"count":1,"section":".run","offset":319150},{"tag":"B","fx":22,"first":1051,"count":1,"section":".run","offset":319153},{"curve":"usb-post-xlv","tag":"A","first":0,"count":256,"section":".run","offset":310736}]},{"layout":"main-cue","identity":"e62231a0bda714820d904c20adeaa6e89804c1fa09f47608a5dac6d5e6a46748","packageSha256":"9fa8712ff99a8a8d403a8f626dc46d8576ff98c490ea21d70e6769a745f94d5c","patch":[[15828,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202000200000005250101010905820200020000000525010103080b04020100200009040400000101200009240100020a2e000008240a100105000011240211030600100400000000000000000c24031201010011100000000904050000010220000904050101010220001024011200010100\""]],[15832,1,[" \"0x400c6780\","]],[15837,1,[" \"06240201041807058305c00002082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000090703010601\""]],[15869,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202000200000005250101010905820200020000000525010103080b04020100200009040400000101200009240100020a2e000008240a100105000011240211030600100400000000000000000c24031201010011100000000904050000010220000904050101010220001024011200010100\""]],[15873,1,[" \"0x400c6780\","]],[15878,1,[" \"06240201041807058305c00002082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[16072,1,[" \"0000000071b946c8ce0c7205b2806600002c71b946c8ce0a4a80670a700113c000000000600a423900000000610005884eb94001d5244ef94001de742039fc0b01c44ef94001dd0a71b946c8ce0c7205b280660c4879000000004ef94001d81e4879400e20a14ef94001d81e4eb94001d6b86100001a70404ef94001e9226100000e2039fc0b01404ef94001e9584239000000004e75201023c04ec950280280fffff00006800000100023c04ec9502c4ef94001d4b84feffff848d700032039fc0b01bc223c00080000c081670c223c0008000023c1fc0b01bc4cd700034fef00084ef9000000004a3900000000670000b271b9000000000c8000000002664c740020026100009e2228000408010007670c52820c820000000465e64e75203900000000220092b9000000000481000000406f1223c10000000004800000004023c00000000042390000000070042f00610000a24a806704539766f4588f71b9000000000c80000000016608700213c0000000002039fc0b01b82239fc0b01b08081028000080000661875b900000000610000244a80670a6100003e52b9000000004e75028000000003eb88207c00000000d1c04e75760320026100ffe82228000408010007660a528253836aea70004e75284870014e75227900000000234c000842a9000c203c00080000\""]],[16081,1,[" \"71b9000000002c406100ffa62228000408010007660002324a390000000067000228203900000000223900000000240094810c8200000400631a52b900000000220004810000040023c100000000243c000004004a3900000000661cb4b900000000640623c200000000b4b900000000630623c2000000002639000000002a39000000004a390000000066282002048000000040e3800c80000000c86f06203c000000c80c80ffffff386c06203cffffff38da80d6852e3c000003e828034c4740042a044c0750002c039c85b484640a52b9000000006000017023c60000000023c40000000023c200000000200ee188e388267c00000000d7c0224b26042239000000000281000003ff203c0000040090814a3900000000672c45f900000000e989d5c1b6806208200361000120604096802a436100011645f900000000200d6100010a602a45f900000000e789d5c1b680620820036100010a601496802a436100010045f900000000200d610000f4283900000000d9b9000000002c044a39000000006704e98e6002e78e72012081214b0008220b0281fffff0000681000010002141000c220648410081000000802141000428482a48200e53806100fdf22448204d202a000408000007676224882039fc0b01b0028000080000665674102039fc0b0140008000004000\""]],[16108,1,[" \"ffffbfff23c0fc0b01404a81660c240e52826100fd946100fdb2200e528002800000000313c00000000070014e7570004e754cd2001e48d1001e45ea001043e90010538066ec4e7522da22da538066f84e75227c00000000721f429953816afa227c0000000070017203228043e9002053816af64239000000004e752039fc0b01580280fffff8000c80400000006d0a0c80500000006c026006203c4ec948000680000001c023c00000000020404e75610000f66100ffc6720f429853816afa2079000000002039fc0b0184e088e088e088e4880280000000030c8000000002661c700113c000000000203c00002b1123c000000000203c60c000006018423900000000203c0000ac4423c000000000203c61680000208042a8000470012140000842a8000c6100ff2a2039fc0b01cc02800000ffff00800084000023c0fc0b01cc2039000000000480000000406402700023c00000000042b900000000700113c00000000013c000000000\""]],[16117,1,[" \"0000000042b90000000042b9000000004e75610000202039fc0b01cc02800000ffff23c0fc0b01cc6100feb44239000000004e752f027210203c0008000023c0fc0b01b4243c000100002039fc0b01b40280000800006704538266ee2039fc0b01b80280000800006704538166ca241f4e754a390000000066204a39000000006618700113c0000000002039800000e423c000000000600000cc4a3900000000670a423900000000610000ee7200\""]],[16126,10,[" \"0c0000000c800800000057c122412839000000002a040285000003ffe98d47f900000000d7c52a040285000003ffe78d49f900000000d9c57c0f7e0f9e86e78f41f980005e60d1c72610420302c326c324280004420202c226c220096600000628c328c27e0f9e86de844a398000003467060687000000200287000003ffe98f45f900000000d5c724280080420202c224c224280084420202c22482508b53866a00ff985084508423c40000000071b90000000073b900000000b28067104a8067066100fdc2600a6100fe9260084a8167046100f9dc42b946104d4e4ef94000d9a62039000000000c8000000040640c06800000040023c000000000048000000040725f24000282000003ff2602e98b41f900000000d1c37803429853846afae78a41f900000000d1c242984290528053816ad04e7571b946c8ce080c80000000c0661c71b946c8ce090c80000000556600009c487900000000703c600000820c80000000a16600008671b946c8ce0c0c80000000046600007671b946c8ce0d0c80000000106600006671b946c8ce0b73b946c8ce090c8000000001671e0c8000000002660000480c81000000016600003e487900000000700160240c8100000001660a487900000000700460120c810000000266000018487900000000700eb082630220022f004ef94001de5c2039fc0b01c04ef94001de6a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[17925,1,[" \"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003262306364636133363761656337376137646130666461396238663739353434383838623833386336366361323564376534666164633137393236396261643400653632323331613062646137313438323064393034633230616465616136653839383034633166613039663437363038613564616336643565366134363734\""," ],"," ["," \"stock\","," \"0x400ba556\","," 26"," ],"," ["," \"hex\","," \"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000312e34304300000000000000000000000065363232333161306264613731343832000100000095a80000002d00000352\""]],[18602,1,[" \"302e372e313000e62231a0bda714820d904c20adeaa6e89804c1fa09f47608a5dac6d5e6a4674800000000200000003200000044000000480000004c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[24093,1,[" 3"]],[24257,1,[" 16"]],[24265,1,[" 192"]],[24273,1,[" 512"]],[24309,1,[" 290806"]],[24325,1,[" 289764"]],[24331,4,[]],[24337,1,[" 289844"]],[24345,1,[" 289782"]],[24349,1,[" 289816"]],[24353,1,[" 4562592"]],[24365,1,[" 4562720"," ],"," \"aud_hs\": ["," \".run\","," 309851"]],[24371,1,[" \"audio_copy16\": ["]],[24373,1,[" 290432"]],[24377,1,[" 4554400"]],[24381,1,[" 290454"]],[24385,1,[" 290464"]],[24389,1,[" 290506"]],[24393,1,[" 290558"]],[24401,1,[" 290772"]],[24413,9,[" 291162"]],[24434,0,[" ],"," \"usbaudio_lastsamp\": ["," \".run\","," 309812"]],[25785,1,[" 291246"]],[27413,1,[" 290868"]],[86672,1,[" 291246"]],[86949,8,[" 289640,"]],[86963,1,[" 289654,"]],[86970,1,[" 289666,"]],[86977,1,[" 289672,"," \"abs32\","," \"sec:.run\","," 309850"," ],"," ["," \".run\","," 289696,"]],[86991,8,[" 289740,"]],[87005,1,[" 289758,"]],[87012,1,[" 289774,"]],[87015,1,[" 138780320"]],[87019,1,[" 289818,"]],[87026,1,[" 289846,"]],[87033,1,[" 289870,"]],[87040,1,[" 289880,"]],[87047,1,[" 289886,"]],[87050,1,[" 309780"," ],"," ["," \".run\","," 289904,"," \"abs32\","," \"sec:.run\","," 309788"]],[87061,1,[" 289930,"]],[87064,1,[" 309850"]],[87068,1,[" 289938,"," \"abs32\","," \"sec:.run\","," 309824"," ],"," ["," \".run\","," 289946,"," \"abs32\","," \"sec:.run\","," 309824"," ],"," ["," \".run\","," 289952,"," \"abs32\","," \"sec:.run\","," 309828"," ],"," ["," \".run\","," 289960,"," \"abs32\","," \"sec:.run\","," 309828"," ],"," ["," \".run\","," 289966,"," \"abs32\","," \"sec:.run\","," 309784"," ],"," ["," \".run\","," 289972,"," \"abs32\","," \"sec:.run\","," 309844"," ],"," ["," \".run\","," 289978,"," \"abs32\","," \"sec:.run\","," 309850"," ],"," ["," \".run\","," 290054,"," \"abs32\","," \"sec:.run\","," 309792"," ],"," ["," \".run\","," 290064,"," \"abs32\","," \"sec:.run\","," 309784"," ],"," ["," \".run\","," 290070,"," \"abs32\","," \"sec:.run\","," 309796"," ],"," ["," \".run\","," 290076,"," \"abs32\","," \"sec:.run\","," 309800"," ],"," ["," \".run\","," 290088,"," \"abs32\","," \"sec:.bss\","," 138780448"," ],"," ["," \".run\","," 290100,"]],[87075,1,[" 290120,"," \"abs32\","," \"sec:.run\","," 309851"," ],"," ["," \".run\","," 290128,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 290158,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 290172,"," \"abs32\","," \"sec:.bss\","," 4554400"," ],"," ["," \".run\","," 290202,"," \"abs32\","," \"sec:.bss\","," 4554400"," ],"," ["," \".run\","," 290214,"," \"abs32\","," \"sec:.run\","," 309796"," ],"," ["," \".run\","," 290220,"," \"abs32\","," \"sec:.run\","," 309780"," ],"," ["," \".run\","," 290228,"," \"abs32\","," \"sec:.run\","," 309851"," ],"," ["," \".run\","," 290420,"," \"abs32\","," \"sec:.run\","," 309852"," ],"," ["," \".run\","," 290466,"," \"abs32\","," \"sec:.bss\","," 138780320"," ],"," ["," \".run\","," 290480,"," \"abs32\","," \"sec:.bss\","," 138780320"," ],"," ["," \".run\","," 290500,"," \"abs32\","," \"sec:.run\","," 309852"," ],"," ["," \".run\","," 290550,"," \"abs32\","," \"sec:.run\","," 309840"," ],"," ["," \".run\","," 290576,"," \"abs32\","," \"sec:.run\","," 309840"," ],"," ["," \".run\","," 290612,"," \"abs32\","," \"sec:.run\","," 309851"," ],"," ["," \".run\","," 290624,"," \"abs32\","," \"sec:.run\","," 309844"," ],"," ["," \".run\","," 290638,"," \"abs32\","," \"sec:.run\","," 309851"," ],"," ["," \".run\","," 290650,"," \"abs32\","," \"sec:.run\","," 309844"," ],"," ["," \".run\","," 290706,"," \"abs32\","," \"sec:.run\","," 309836"," ],"," ["," \".run\","," 290722,"," \"abs32\","," \"sec:.run\","," 309780"," ],"," ["," \".run\","," 290728,"," \"abs32\","," \"sec:.run\","," 309784"," ],"," ["," \".run\","," 290736,"," \"abs32\","," \"sec:.run\","," 309849"," ],"," ["," \".run\","," 290742,"]],[87082,1,[" 290754,"]],[87089,8,[" 290760,"]],[87103,1,[" 290766,"]],[87106,1,[" 309832"]],[87110,1,[" 290800,"]],[87113,1,[" 309849"]],[87117,1,[" 290870,"]],[87120,1,[" 309848"]],[87124,1,[" 290878,"]],[87127,1,[" 309854"]],[87131,1,[" 290888,"]],[87134,1,[" 309853"]],[87138,1,[" 290900,"]],[87141,1,[" 309804"]],[87145,1,[" 290910,"]],[87148,1,[" 309853"]],[87152,1,[" 290918,"]],[87155,1,[" 309853"]],[87159,1,[" 290952,"]],[87161,2,[" \"sec:.run\","," 309836"]],[87166,1,[" 290968,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 290986,"," \"abs32\","," \"sec:.bss\","," 4554400"," ],"," ["," \".run\","," 291066,"," \"abs32\","," \"sec:.bss\","," 4538024"," ],"," ["," \".run\","," 291106,"," \"abs32\","," \"sec:.run\","," 309836"," ],"," ["," \".run\","," 291112,"," \"abs32\","," \"sec:.run\","," 309848"," ],"," ["," \".run\","," 291118,"," \"abs32\","," \"sec:.run\","," 309849"," ],"," ["," \".run\","," 291164,"," \"abs32\","," \"sec:.run\","," 309836"," ],"," ["," \".run\","," 291184,"," \"abs32\","," \"sec:.run\","," 309836"," ],"," ["," \".run\","," 291210,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 291228,"," \"abs32\","," \"sec:.bss\","," 4554400"," ],"," ["," \".run\","," 291278,"]],[87173,372,[" 291372,"]],[87551,1,[" 291390,"]],[87558,1,[" 291410,"]],[94697,1,[" \"identity.c\": \"e1b27cc729ad02a1b38202b9898e02b0339678100327c02421a235ac3e48718b\","]],[94757,1,[" \"usb_base.s\": \"5e34aa172c0959da20ab7a9663b8495a060e389b5198ed532c4da0e56ee1b262\","]],[94761,1,[" \"usb_reserve.s\": \"15d1f3ad805d3907c7dd3bfc1c4d53e2a02c76204604575c9219914e4ee19a55\""]]],"fills":[{"tag":"A","shared":2001,"first":0,"count":286,"site":"0x400f0ee3","offset":0},{"tag":"A","shared":2287,"first":0,"count":35,"site":"0x400f0ee3","offset":858},{"tag":"A","shared":2322,"first":0,"count":93,"site":"0x400f0ee3","offset":963},{"tag":"B","shared":1425,"first":0,"count":286,"site":"0x40103e34","offset":0},{"tag":"B","shared":1711,"first":0,"count":35,"site":"0x40103e34","offset":858},{"tag":"B","shared":1746,"first":0,"count":93,"site":"0x40103e34","offset":963},{"tag":"A","fx":4,"first":0,"count":441,"section":".run","offset":336620},{"tag":"A","fx":5,"first":0,"count":261,"section":".run","offset":335830},{"tag":"A","fx":12,"first":0,"count":282,"section":".run","offset":334968},{"tag":"A","fx":13,"first":0,"count":345,"section":".run","offset":333918},{"tag":"A","fx":16,"first":0,"count":207,"section":".run","offset":333282},{"tag":"A","fx":17,"first":0,"count":289,"section":".run","offset":332384},{"tag":"A","fx":18,"first":0,"count":329,"section":".run","offset":331360},{"tag":"A","fx":19,"first":0,"count":277,"section":".run","offset":330498},{"tag":"A","fx":20,"first":0,"count":594,"section":".run","offset":328696},{"tag":"A","fx":21,"first":0,"count":1063,"section":".run","offset":325464},{"tag":"A","fx":22,"first":0,"count":1067,"section":".run","offset":322202},{"tag":"A","fx":24,"first":2,"count":11,"section":".run","offset":321612},{"tag":"A","fx":24,"first":15,"count":165,"section":".run","offset":321651},{"tag":"A","fx":28,"first":0,"count":537,"section":".run","offset":319980},{"tag":"B","fx":4,"first":65,"count":1,"section":".run","offset":319488},{"tag":"B","fx":4,"first":73,"count":1,"section":".run","offset":319491},{"tag":"B","fx":4,"first":158,"count":1,"section":".run","offset":319494},{"tag":"B","fx":4,"first":163,"count":1,"section":".run","offset":319497},{"tag":"B","fx":4,"first":172,"count":1,"section":".run","offset":319500},{"tag":"B","fx":4,"first":182,"count":1,"section":".run","offset":319503},{"tag":"B","fx":4,"first":194,"count":1,"section":".run","offset":319506},{"tag":"B","fx":4,"first":199,"count":1,"section":".run","offset":319509},{"tag":"B","fx":4,"first":207,"count":1,"section":".run","offset":319512},{"tag":"B","fx":4,"first":215,"count":1,"section":".run","offset":319515},{"tag":"B","fx":4,"first":220,"count":1,"section":".run","offset":319518},{"tag":"B","fx":4,"first":225,"count":1,"section":".run","offset":319521},{"tag":"B","fx":4,"first":229,"count":1,"section":".run","offset":319524},{"tag":"B","fx":4,"first":248,"count":1,"section":".run","offset":319527},{"tag":"B","fx":4,"first":266,"count":1,"section":".run","offset":319530},{"tag":"B","fx":4,"first":281,"count":1,"section":".run","offset":319533},{"tag":"B","fx":4,"first":286,"count":1,"section":".run","offset":319536},{"tag":"B","fx":4,"first":290,"count":1,"section":".run","offset":319539},{"tag":"B","fx":4,"first":307,"count":1,"section":".run","offset":319542},{"tag":"B","fx":4,"first":325,"count":1,"section":".run","offset":319545},{"tag":"B","fx":4,"first":374,"count":1,"section":".run","offset":319548},{"tag":"B","fx":5,"first":25,"count":1,"section":".run","offset":319458},{"tag":"B","fx":5,"first":42,"count":1,"section":".run","offset":319461},{"tag":"B","fx":5,"first":62,"count":1,"section":".run","offset":319464},{"tag":"B","fx":5,"first":91,"count":1,"section":".run","offset":319467},{"tag":"B","fx":5,"first":179,"count":1,"section":".run","offset":319470},{"tag":"B","fx":5,"first":181,"count":1,"section":".run","offset":319473},{"tag":"B","fx":12,"first":62,"count":1,"section":".run","offset":319378},{"tag":"B","fx":12,"first":64,"count":1,"section":".run","offset":319381},{"tag":"B","fx":12,"first":68,"count":1,"section":".run","offset":319384},{"tag":"B","fx":12,"first":70,"count":1,"section":".run","offset":319387},{"tag":"B","fx":12,"first":91,"count":1,"section":".run","offset":319390},{"tag":"B","fx":12,"first":93,"count":1,"section":".run","offset":319393},{"tag":"B","fx":12,"first":97,"count":1,"section":".run","offset":319396},{"tag":"B","fx":12,"first":99,"count":1,"section":".run","offset":319399},{"tag":"B","fx":12,"first":165,"count":1,"section":".run","offset":319402},{"tag":"B","fx":12,"first":170,"count":1,"section":".run","offset":319405},{"tag":"B","fx":12,"first":172,"count":1,"section":".run","offset":319408},{"tag":"B","fx":12,"first":174,"count":1,"section":".run","offset":319411},{"tag":"B","fx":12,"first":176,"count":1,"section":".run","offset":319414},{"tag":"B","fx":12,"first":180,"count":1,"section":".run","offset":319417},{"tag":"B","fx":12,"first":182,"count":1,"section":".run","offset":319420},{"tag":"B","fx":12,"first":193,"count":1,"section":".run","offset":319423},{"tag":"B","fx":13,"first":259,"count":1,"section":".run","offset":319372},{"tag":"B","fx":16,"first":23,"count":1,"section":".run","offset":319356},{"tag":"B","fx":16,"first":27,"count":1,"section":".run","offset":319359},{"tag":"B","fx":16,"first":206,"count":1,"section":".run","offset":319362},{"tag":"B","fx":17,"first":30,"count":1,"section":".run","offset":319336},{"tag":"B","fx":17,"first":34,"count":1,"section":".run","offset":319339},{"tag":"B","fx":17,"first":118,"count":1,"section":".run","offset":319342},{"tag":"B","fx":17,"first":288,"count":1,"section":".run","offset":319345},{"tag":"B","fx":18,"first":48,"count":1,"section":".run","offset":319306},{"tag":"B","fx":18,"first":82,"count":1,"section":".run","offset":319309},{"tag":"B","fx":18,"first":87,"count":1,"section":".run","offset":319312},{"tag":"B","fx":18,"first":91,"count":1,"section":".run","offset":319315},{"tag":"B","fx":18,"first":260,"count":1,"section":".run","offset":319318},{"tag":"B","fx":18,"first":328,"count":1,"section":".run","offset":319321},{"tag":"B","fx":19,"first":109,"count":1,"section":".run","offset":319290},{"tag":"B","fx":19,"first":149,"count":1,"section":".run","offset":319293},{"tag":"B","fx":19,"first":276,"count":1,"section":".run","offset":319296},{"tag":"B","fx":20,"first":102,"count":1,"section":".run","offset":319230},{"tag":"B","fx":20,"first":107,"count":1,"section":".run","offset":319233},{"tag":"B","fx":20,"first":116,"count":1,"section":".run","offset":319236},{"tag":"B","fx":20,"first":167,"count":1,"section":".run","offset":319239},{"tag":"B","fx":20,"first":185,"count":1,"section":".run","offset":319242},{"tag":"B","fx":20,"first":239,"count":1,"section":".run","offset":319245},{"tag":"B","fx":20,"first":322,"count":1,"section":".run","offset":319248},{"tag":"B","fx":20,"first":403,"count":1,"section":".run","offset":319251},{"tag":"B","fx":20,"first":425,"count":1,"section":".run","offset":319254},{"tag":"B","fx":20,"first":517,"count":1,"section":".run","offset":319257},{"tag":"B","fx":20,"first":550,"count":1,"section":".run","offset":319260},{"tag":"B","fx":20,"first":590,"count":1,"section":".run","offset":319263},{"tag":"B","fx":21,"first":15,"count":1,"section":".run","offset":319184},{"tag":"B","fx":21,"first":374,"count":1,"section":".run","offset":319187},{"tag":"B","fx":21,"first":406,"count":1,"section":".run","offset":319190},{"tag":"B","fx":21,"first":432,"count":1,"section":".run","offset":319193},{"tag":"B","fx":21,"first":470,"count":1,"section":".run","offset":319196},{"tag":"B","fx":21,"first":478,"count":1,"section":".run","offset":319199},{"tag":"B","fx":21,"first":481,"count":1,"section":".run","offset":319202},{"tag":"B","fx":21,"first":574,"count":1,"section":".run","offset":319205},{"tag":"B","fx":21,"first":800,"count":1,"section":".run","offset":319208},{"tag":"B","fx":22,"first":202,"count":1,"section":".run","offset":319114},{"tag":"B","fx":22,"first":315,"count":1,"section":".run","offset":319117},{"tag":"B","fx":22,"first":402,"count":1,"section":".run","offset":319120},{"tag":"B","fx":22,"first":404,"count":1,"section":".run","offset":319123},{"tag":"B","fx":22,"first":417,"count":1,"section":".run","offset":319126},{"tag":"B","fx":22,"first":457,"count":1,"section":".run","offset":319129},{"tag":"B","fx":22,"first":461,"count":1,"section":".run","offset":319132},{"tag":"B","fx":22,"first":465,"count":1,"section":".run","offset":319135},{"tag":"B","fx":22,"first":492,"count":1,"section":".run","offset":319138},{"tag":"B","fx":22,"first":719,"count":1,"section":".run","offset":319141},{"tag":"B","fx":22,"first":746,"count":1,"section":".run","offset":319144},{"tag":"B","fx":22,"first":800,"count":1,"section":".run","offset":319147},{"tag":"B","fx":22,"first":842,"count":1,"section":".run","offset":319150},{"tag":"B","fx":22,"first":1051,"count":1,"section":".run","offset":319153}]},{"layout":"main","identity":"68f80291d1d0cd7be6855fbeaf201d3fdb5e9c123518c5af55c3ca6d51c071f3","packageSha256":"a44b268aca05be696014b94a5a8fc13ac0638e99dfeafa5302f842ded5831865","patch":[[15805,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202400000000005250101010905820240000000000525010103080b04020100200009040400000101200009240100020a2e000008240a1001050000112402110306001002\""]],[15809,1,[" \"0x400cb87e\","]],[15814,1,[" \"0c24031201010011100000000904050000010220000904050101010220001024011200010100000002030000000006240201041807058305680101082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000090203010601\""]],[15828,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202000200000005250101010905820200020000000525010103080b04020100200009040400000101200009240100020a2e000008240a1001050000112402110306001002\""]],[15832,1,[" \"0x400cb87e\","]],[15837,1,[" \"0c24031201010011100000000904050000010220000904050101010220001024011200010100000002030000000006240201041807058305600002082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000090703010601\""]],[15846,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202400000000005250101010905820240000000000525010103080b04020100200009040400000101200009240100020a2e000008240a1001050000112402110306001002\""]],[15850,1,[" \"0x400cb87e\","]],[15855,1,[" \"0c24031201010011100000000904050000010220000904050101010220001024011200010100000002030000000006240201041807058305680101082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000090703010601\""]],[15869,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202000200000005250101010905820200020000000525010103080b04020100200009040400000101200009240100020a2e000008240a1001050000112402110306001002\""]],[15873,1,[" \"0x400cb87e\","]],[15878,1,[" \"0c24031201010011100000000904050000010220000904050101010220001024011200010100000002030000000006240201041807058305600002082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[16072,1,[" \"0000000071b946c8ce0c7205b2806600002c71b946c8ce0a4a80670a700113c000000000600a423900000000610005724eb94001d5244ef94001de742039fc0b01c44ef94001dd0a71b946c8ce0c7205b280660c4879000000004ef94001d81e4879400e20a14ef94001d81e4eb94001d6b86100001a70404ef94001e9226100000e2039fc0b01404ef94001e9584239000000004e75201023c04ec950280280fffff00006800000100023c04ec9502c4ef94001d4b84feffff848d700032039fc0b01bc223c00080000c081670c223c0008000023c1fc0b01bc4cd700034fef00084ef9000000004a3900000000670000b271b9000000000c8000000002664c740020026100009e2228000408010007670c52820c820000000465e64e75203900000000220092b9000000000481000000406f1223c10000000004800000004023c00000000042390000000070042f00610000a24a806704539766f4588f71b9000000000c80000000016608700213c0000000002039fc0b01b82239fc0b01b08081028000080000661875b900000000610000244a80670a6100003e52b9000000004e75028000000003eb88207c00000000d1c04e75760320026100ffe82228000408010007660a528253836aea70004e75284870014e75227900000000234c000842a9000c203c00080000\""]],[16081,1,[" \"71b9000000002c406100ffa62228000408010007660002324a390000000067000228203900000000223900000000240094810c8200000400631a52b900000000220004810000040023c100000000243c000004004a3900000000661cb4b900000000640623c200000000b4b900000000630623c2000000002639000000002a39000000004a390000000066282002048000000040e3800c80000000c86f06203c000000c80c80ffffff386c06203cffffff38da80d6852e3c000003e828034c4740042a044c0750002c039c85b484640a52b9000000006000017023c60000000023c40000000023c200000000200ee188e388267c00000000d7c0224b26042239000000000281000003ff203c0000040090814a3900000000672c45f900000000e789d5c1b6806208200361000120604096802a436100011645f900000000200d6100010a602a45f900000000e789d5c1b68062082003610000f4601496802a43610000ea45f900000000200d610000de283900000000d9b9000000002c044a39000000006704e78e6002e78e72012081214b0008220b0281fffff0000681000010002141000c220648410081000000802141000428482a48200e53806100fdf22448204d202a000408000007676224882039fc0b01b0028000080000665674102039fc0b0140008000004000\""]],[16108,1,[" \"ffffbfff23c0fc0b01404a81660c240e52826100fd946100fdb2200e528002800000000313c00000000070014e7570004e7522da22da538066f84e75227c00000000721f429953816afa227c0000000070017203228043e9002053816af64239000000004e752039fc0b01580280fffff8000c80400000006d0a0c80500000006c026006203c4ec948000680000001c023c00000000020404e75610000f66100ffc6720f429853816afa2079000000002039fc0b0184e088e088e088e4880280000000030c8000000002661c700113c000000000203c00002b1123c000000000203c606000006018423900000000203c0000ac4423c000000000203c61680000208042a8000470012140000842a8000c6100ff2a2039fc0b01cc02800000ffff00800084000023c0fc0b01cc2039000000000480000000406402700023c00000000042b900000000700113c00000000013c000000000\""]],[16117,19,[" \"0000000042b90000000042b9000000004e75610000202039fc0b01cc02800000ffff23c0fc0b01cc6100feb44239000000004e752f027210203c0008000023c0fc0b01b4243c000100002039fc0b01b40280000800006704538266ee2039fc0b01b80280000800006704538166ca241f4e754a390000000066204a39000000006618700113c0000000002039800000e423c000000000600000524a3900000000670a423900000000610000742839000000002a040285000003ffe78d47f900000000d7c545f980005e607c0f241a420202c226c2241a420202c226c253866aec5084508423c40000000071b90000000073b900000000b28067104a8067066100fe3c600a6100ff0c60084a8167046100fa6c42b946104d4e4ef94000d9a62039000000000c8000000040640c06800000040023c000000000048000000040723f24000282000003ff2602e78b41f900000000d1c37801429853846afae78a41f900000000d1c242984290528053816ad04e7571b946c8ce080c80000000c0661c71b946c8ce090c80000000556600009c487900000000703c600000820c80000000a16600008671b946c8ce0c0c80000000046600007671b946c8ce0d0c80000000106600006671b946c8ce0b73b946c8ce090c8000000001671e0c8000000002660000480c81000000016600003e487900000000700160240c8100000001660a487900000000700460120c810000000266000018487900000000700eb082630220022f004ef94001de5c2039fc0b01c04ef94001de6a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[17925,1,[" \"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003262306364636133363761656337376137646130666461396238663739353434383838623833386336366361323564376534666164633137393236396261643400363866383032393164316430636437626536383535666265616632303164336664623565396331323335313863356166353563336361366435316330373166\""," ],"," ["," \"stock\","," \"0x400ba992\","," 26"," ],"," ["," \"hex\","," \"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000312e3430430000000000\""," ],"," ["," \"stock\","," \"0x400be56e\","," 8"," ],"," ["," \"hex\","," \"386638303239316431643063643762000100000095a80000002d00000352\""]],[18602,1,[" \"302e372e31300068f80291d1d0cd7be6855fbeaf201d3fdb5e9c123518c5af55c3ca6d51c071f300000000200000003200000044000000480000004c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[24093,1,[" 4"]],[24121,1,[" 4294967295"]],[24257,1,[" 8"]],[24265,1,[" 96"]],[24273,1,[" 512"]],[24309,1,[" 290784"]],[24325,1,[" 289764"]],[24331,4,[]],[24337,1,[" 289844"]],[24345,1,[" 289782"]],[24349,1,[" 289816"]],[24353,1,[" 4546208"]],[24365,1,[" 4546336"," ],"," \"aud_hs\": ["," \".run\","," 309851"]],[24371,1,[" \"audio_copy8\": ["]],[24373,1,[" 290432"]],[24377,5,[" 4538016"]],[24385,1,[" 290442"]],[24389,1,[" 290484"]],[24393,1,[" 290536"]],[24401,1,[" 290750"]],[24413,9,[" 291018"]],[24434,0,[" ],"," \"usbaudio_lastsamp\": ["," \".run\","," 309812"]],[25785,1,[" 291102"]],[27413,1,[" 290846"]],[86672,1,[" 291102"]],[86949,8,[" 289640,"]],[86963,1,[" 289654,"]],[86970,1,[" 289666,"]],[86977,1,[" 289672,"," \"abs32\","," \"sec:.run\","," 309850"," ],"," ["," \".run\","," 289696,"]],[86991,8,[" 289740,"]],[87005,1,[" 289758,"]],[87012,1,[" 289774,"]],[87015,1,[" 138763936"]],[87019,1,[" 289818,"]],[87026,1,[" 289846,"]],[87033,1,[" 289870,"]],[87040,1,[" 289880,"]],[87047,1,[" 289886,"]],[87050,1,[" 309780"," ],"," ["," \".run\","," 289904,"," \"abs32\","," \"sec:.run\","," 309788"]],[87061,1,[" 289930,"]],[87064,1,[" 309850"]],[87068,1,[" 289938,"," \"abs32\","," \"sec:.run\","," 309824"," ],"," ["," \".run\","," 289946,"," \"abs32\","," \"sec:.run\","," 309824"," ],"," ["," \".run\","," 289952,"," \"abs32\","," \"sec:.run\","," 309828"," ],"," ["," \".run\","," 289960,"," \"abs32\","," \"sec:.run\","," 309828"," ],"," ["," \".run\","," 289966,"," \"abs32\","," \"sec:.run\","," 309784"," ],"," ["," \".run\","," 289972,"," \"abs32\","," \"sec:.run\","," 309844"," ],"," ["," \".run\","," 289978,"," \"abs32\","," \"sec:.run\","," 309850"," ],"," ["," \".run\","," 290054,"," \"abs32\","," \"sec:.run\","," 309792"," ],"," ["," \".run\","," 290064,"," \"abs32\","," \"sec:.run\","," 309784"," ],"," ["," \".run\","," 290070,"," \"abs32\","," \"sec:.run\","," 309796"," ],"," ["," \".run\","," 290076,"," \"abs32\","," \"sec:.run\","," 309800"," ],"," ["," \".run\","," 290088,"," \"abs32\","," \"sec:.bss\","," 138764064"," ],"," ["," \".run\","," 290100,"]],[87075,99,[" 290120,"]],[87180,1,[" 290128,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 290158,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 290172,"]],[87194,15,[" 290214,"]],[87215,1,[" 290220,"]],[87222,1,[" 290228,"]],[87229,1,[" 290420,"]],[87236,1,[" 290444,"]],[87239,1,[" 138763936"]],[87243,1,[" 290458,"]],[87246,1,[" 138763936"]],[87250,1,[" 290478,"]],[87257,1,[" 290528,"]],[87264,1,[" 290554,"]],[87271,1,[" 290590,"]],[87278,1,[" 290602,"]],[87285,1,[" 290616,"]],[87292,1,[" 290628,"]],[87299,1,[" 290684,"]],[87306,8,[" 290700,"]],[87320,1,[" 290706,"]],[87327,1,[" 290714,"]],[87334,1,[" 290720,"]],[87341,1,[" 290732,"]],[87348,1,[" 290738,"]],[87355,1,[" 290744,"]],[87362,1,[" 290778,"]],[87369,1,[" 290848,"]],[87376,1,[" 290856,"]],[87383,1,[" 290866,"]],[87390,1,[" 290878,"]],[87397,1,[" 290888,"]],[87404,1,[" 290896,"]],[87411,22,[" 290906,"]],[87439,1,[" 290922,"]],[87446,43,[" 290962,"]],[87495,1,[" 290968,"]],[87502,1,[" 290974,"]],[87509,1,[" 291020,"]],[87516,1,[" 291040,"]],[87523,1,[" 291066,"]],[87530,1,[" 291084,"]],[87533,1,[" 4538016"]],[87537,1,[" 291134,"]],[87544,1,[" 291228,"]],[87551,1,[" 291246,"]],[87558,1,[" 291266,"]],[94697,1,[" \"identity.c\": \"a3854ea6775a2b26fa507e173420586a11d9489b81c65e15b870170dd176b5ab\","]],[94757,1,[" \"usb_base.s\": \"b7c69c3d8f1ef6b425d100958b491eb33da33f2cbf4e37676ea9c312cbee87b2\","]],[94761,1,[" \"usb_reserve.s\": \"7a6bcd93f67a050b9f647d8328f6e58348b50814e0f1a60e2c167a92ec986ff0\""]]],"fills":[{"tag":"A","shared":2001,"first":0,"count":286,"site":"0x400f0ee3","offset":0},{"tag":"A","shared":2287,"first":0,"count":35,"site":"0x400f0ee3","offset":858},{"tag":"A","shared":2322,"first":0,"count":93,"site":"0x400f0ee3","offset":963},{"tag":"B","shared":1425,"first":0,"count":286,"site":"0x40103e34","offset":0},{"tag":"B","shared":1711,"first":0,"count":35,"site":"0x40103e34","offset":858},{"tag":"B","shared":1746,"first":0,"count":93,"site":"0x40103e34","offset":963},{"tag":"A","fx":4,"first":0,"count":441,"section":".run","offset":336620},{"tag":"A","fx":5,"first":0,"count":261,"section":".run","offset":335830},{"tag":"A","fx":12,"first":0,"count":282,"section":".run","offset":334968},{"tag":"A","fx":13,"first":0,"count":345,"section":".run","offset":333918},{"tag":"A","fx":16,"first":0,"count":207,"section":".run","offset":333282},{"tag":"A","fx":17,"first":0,"count":289,"section":".run","offset":332384},{"tag":"A","fx":18,"first":0,"count":329,"section":".run","offset":331360},{"tag":"A","fx":19,"first":0,"count":277,"section":".run","offset":330498},{"tag":"A","fx":20,"first":0,"count":594,"section":".run","offset":328696},{"tag":"A","fx":21,"first":0,"count":1063,"section":".run","offset":325464},{"tag":"A","fx":22,"first":0,"count":1067,"section":".run","offset":322202},{"tag":"A","fx":24,"first":2,"count":11,"section":".run","offset":321612},{"tag":"A","fx":24,"first":15,"count":165,"section":".run","offset":321651},{"tag":"A","fx":28,"first":0,"count":537,"section":".run","offset":319980},{"tag":"B","fx":4,"first":65,"count":1,"section":".run","offset":319488},{"tag":"B","fx":4,"first":73,"count":1,"section":".run","offset":319491},{"tag":"B","fx":4,"first":158,"count":1,"section":".run","offset":319494},{"tag":"B","fx":4,"first":163,"count":1,"section":".run","offset":319497},{"tag":"B","fx":4,"first":172,"count":1,"section":".run","offset":319500},{"tag":"B","fx":4,"first":182,"count":1,"section":".run","offset":319503},{"tag":"B","fx":4,"first":194,"count":1,"section":".run","offset":319506},{"tag":"B","fx":4,"first":199,"count":1,"section":".run","offset":319509},{"tag":"B","fx":4,"first":207,"count":1,"section":".run","offset":319512},{"tag":"B","fx":4,"first":215,"count":1,"section":".run","offset":319515},{"tag":"B","fx":4,"first":220,"count":1,"section":".run","offset":319518},{"tag":"B","fx":4,"first":225,"count":1,"section":".run","offset":319521},{"tag":"B","fx":4,"first":229,"count":1,"section":".run","offset":319524},{"tag":"B","fx":4,"first":248,"count":1,"section":".run","offset":319527},{"tag":"B","fx":4,"first":266,"count":1,"section":".run","offset":319530},{"tag":"B","fx":4,"first":281,"count":1,"section":".run","offset":319533},{"tag":"B","fx":4,"first":286,"count":1,"section":".run","offset":319536},{"tag":"B","fx":4,"first":290,"count":1,"section":".run","offset":319539},{"tag":"B","fx":4,"first":307,"count":1,"section":".run","offset":319542},{"tag":"B","fx":4,"first":325,"count":1,"section":".run","offset":319545},{"tag":"B","fx":4,"first":374,"count":1,"section":".run","offset":319548},{"tag":"B","fx":5,"first":25,"count":1,"section":".run","offset":319458},{"tag":"B","fx":5,"first":42,"count":1,"section":".run","offset":319461},{"tag":"B","fx":5,"first":62,"count":1,"section":".run","offset":319464},{"tag":"B","fx":5,"first":91,"count":1,"section":".run","offset":319467},{"tag":"B","fx":5,"first":179,"count":1,"section":".run","offset":319470},{"tag":"B","fx":5,"first":181,"count":1,"section":".run","offset":319473},{"tag":"B","fx":12,"first":62,"count":1,"section":".run","offset":319378},{"tag":"B","fx":12,"first":64,"count":1,"section":".run","offset":319381},{"tag":"B","fx":12,"first":68,"count":1,"section":".run","offset":319384},{"tag":"B","fx":12,"first":70,"count":1,"section":".run","offset":319387},{"tag":"B","fx":12,"first":91,"count":1,"section":".run","offset":319390},{"tag":"B","fx":12,"first":93,"count":1,"section":".run","offset":319393},{"tag":"B","fx":12,"first":97,"count":1,"section":".run","offset":319396},{"tag":"B","fx":12,"first":99,"count":1,"section":".run","offset":319399},{"tag":"B","fx":12,"first":165,"count":1,"section":".run","offset":319402},{"tag":"B","fx":12,"first":170,"count":1,"section":".run","offset":319405},{"tag":"B","fx":12,"first":172,"count":1,"section":".run","offset":319408},{"tag":"B","fx":12,"first":174,"count":1,"section":".run","offset":319411},{"tag":"B","fx":12,"first":176,"count":1,"section":".run","offset":319414},{"tag":"B","fx":12,"first":180,"count":1,"section":".run","offset":319417},{"tag":"B","fx":12,"first":182,"count":1,"section":".run","offset":319420},{"tag":"B","fx":12,"first":193,"count":1,"section":".run","offset":319423},{"tag":"B","fx":13,"first":259,"count":1,"section":".run","offset":319372},{"tag":"B","fx":16,"first":23,"count":1,"section":".run","offset":319356},{"tag":"B","fx":16,"first":27,"count":1,"section":".run","offset":319359},{"tag":"B","fx":16,"first":206,"count":1,"section":".run","offset":319362},{"tag":"B","fx":17,"first":30,"count":1,"section":".run","offset":319336},{"tag":"B","fx":17,"first":34,"count":1,"section":".run","offset":319339},{"tag":"B","fx":17,"first":118,"count":1,"section":".run","offset":319342},{"tag":"B","fx":17,"first":288,"count":1,"section":".run","offset":319345},{"tag":"B","fx":18,"first":48,"count":1,"section":".run","offset":319306},{"tag":"B","fx":18,"first":82,"count":1,"section":".run","offset":319309},{"tag":"B","fx":18,"first":87,"count":1,"section":".run","offset":319312},{"tag":"B","fx":18,"first":91,"count":1,"section":".run","offset":319315},{"tag":"B","fx":18,"first":260,"count":1,"section":".run","offset":319318},{"tag":"B","fx":18,"first":328,"count":1,"section":".run","offset":319321},{"tag":"B","fx":19,"first":109,"count":1,"section":".run","offset":319290},{"tag":"B","fx":19,"first":149,"count":1,"section":".run","offset":319293},{"tag":"B","fx":19,"first":276,"count":1,"section":".run","offset":319296},{"tag":"B","fx":20,"first":102,"count":1,"section":".run","offset":319230},{"tag":"B","fx":20,"first":107,"count":1,"section":".run","offset":319233},{"tag":"B","fx":20,"first":116,"count":1,"section":".run","offset":319236},{"tag":"B","fx":20,"first":167,"count":1,"section":".run","offset":319239},{"tag":"B","fx":20,"first":185,"count":1,"section":".run","offset":319242},{"tag":"B","fx":20,"first":239,"count":1,"section":".run","offset":319245},{"tag":"B","fx":20,"first":322,"count":1,"section":".run","offset":319248},{"tag":"B","fx":20,"first":403,"count":1,"section":".run","offset":319251},{"tag":"B","fx":20,"first":425,"count":1,"section":".run","offset":319254},{"tag":"B","fx":20,"first":517,"count":1,"section":".run","offset":319257},{"tag":"B","fx":20,"first":550,"count":1,"section":".run","offset":319260},{"tag":"B","fx":20,"first":590,"count":1,"section":".run","offset":319263},{"tag":"B","fx":21,"first":15,"count":1,"section":".run","offset":319184},{"tag":"B","fx":21,"first":374,"count":1,"section":".run","offset":319187},{"tag":"B","fx":21,"first":406,"count":1,"section":".run","offset":319190},{"tag":"B","fx":21,"first":432,"count":1,"section":".run","offset":319193},{"tag":"B","fx":21,"first":470,"count":1,"section":".run","offset":319196},{"tag":"B","fx":21,"first":478,"count":1,"section":".run","offset":319199},{"tag":"B","fx":21,"first":481,"count":1,"section":".run","offset":319202},{"tag":"B","fx":21,"first":574,"count":1,"section":".run","offset":319205},{"tag":"B","fx":21,"first":800,"count":1,"section":".run","offset":319208},{"tag":"B","fx":22,"first":202,"count":1,"section":".run","offset":319114},{"tag":"B","fx":22,"first":315,"count":1,"section":".run","offset":319117},{"tag":"B","fx":22,"first":402,"count":1,"section":".run","offset":319120},{"tag":"B","fx":22,"first":404,"count":1,"section":".run","offset":319123},{"tag":"B","fx":22,"first":417,"count":1,"section":".run","offset":319126},{"tag":"B","fx":22,"first":457,"count":1,"section":".run","offset":319129},{"tag":"B","fx":22,"first":461,"count":1,"section":".run","offset":319132},{"tag":"B","fx":22,"first":465,"count":1,"section":".run","offset":319135},{"tag":"B","fx":22,"first":492,"count":1,"section":".run","offset":319138},{"tag":"B","fx":22,"first":719,"count":1,"section":".run","offset":319141},{"tag":"B","fx":22,"first":746,"count":1,"section":".run","offset":319144},{"tag":"B","fx":22,"first":800,"count":1,"section":".run","offset":319147},{"tag":"B","fx":22,"first":842,"count":1,"section":".run","offset":319150},{"tag":"B","fx":22,"first":1051,"count":1,"section":".run","offset":319153}]},{"layout":"master","identity":"d31c994deb11adbe366e31bc13d0d3a69886038ee4a4395684f2390438b9d9f7","packageSha256":"bd74add25c0ce6d0da8a0bdc03f0f8923259d052bf0a200367609344a3df8d6d","patch":[[15805,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202400000000005250101010905820240000000000525010103080b04020100200009040400000101200009240100020a2e000008240a1001050000112402110306001002\""]],[15809,1,[" \"0x400cb87e\","]],[15814,1,[" \"0c24031201010011100000000904050000010220000904050101010220001024011200010100000002030000000006240201041807058305680101082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000090203010601\""]],[15828,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202000200000005250101010905820200020000000525010103080b04020100200009040400000101200009240100020a2e000008240a1001050000112402110306001002\""]],[15832,1,[" \"0x400cb87e\","]],[15837,1,[" \"0c24031201010011100000000904050000010220000904050101010220001024011200010100000002030000000006240201041807058305600002082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000090703010601\""]],[15846,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202400000000005250101010905820240000000000525010103080b04020100200009040400000101200009240100020a2e000008240a1001050000112402110306001002\""]],[15850,1,[" \"0x400cb87e\","]],[15855,1,[" \"0c24031201010011100000000904050000010220000904050101010220001024011200010100000002030000000006240201041807058305680101082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000090703010601\""]],[15869,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202000200000005250101010905820200020000000525010103080b04020100200009040400000101200009240100020a2e000008240a1001050000112402110306001002\""]],[15873,1,[" \"0x400cb87e\","]],[15878,1,[" \"0c24031201010011100000000904050000010220000904050101010220001024011200010100000002030000000006240201041807058305600002082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[16072,1,[" \"0000000071b946c8ce0c7205b2806600002c71b946c8ce0a4a80670a700113c000000000600a423900000000610005724eb94001d5244ef94001de742039fc0b01c44ef94001dd0a71b946c8ce0c7205b280660c4879000000004ef94001d81e4879400e20a14ef94001d81e4eb94001d6b86100001a70404ef94001e9226100000e2039fc0b01404ef94001e9584239000000004e75201023c04ec950280280fffff00006800000100023c04ec9502c4ef94001d4b84feffff848d700032039fc0b01bc223c00080000c081670c223c0008000023c1fc0b01bc4cd700034fef00084ef9000000004a3900000000670000b271b9000000000c8000000002664c740020026100009e2228000408010007670c52820c820000000465e64e75203900000000220092b9000000000481000000406f1223c10000000004800000004023c00000000042390000000070042f00610000a24a806704539766f4588f71b9000000000c80000000016608700213c0000000002039fc0b01b82239fc0b01b08081028000080000661875b900000000610000244a80670a6100003e52b9000000004e75028000000003eb88207c00000000d1c04e75760320026100ffe82228000408010007660a528253836aea70004e75284870014e75227900000000234c000842a9000c203c00080000\""]],[16081,1,[" \"71b9000000002c406100ffa62228000408010007660002324a390000000067000228203900000000223900000000240094810c8200000400631a52b900000000220004810000040023c100000000243c000004004a3900000000661cb4b900000000640623c200000000b4b900000000630623c2000000002639000000002a39000000004a390000000066282002048000000040e3800c80000000c86f06203c000000c80c80ffffff386c06203cffffff38da80d6852e3c000003e828034c4740042a044c0750002c039c85b484640a52b9000000006000017023c60000000023c40000000023c200000000200ee188e388267c00000000d7c0224b26042239000000000281000003ff203c0000040090814a3900000000672c45f900000000e789d5c1b6806208200361000120604096802a436100011645f900000000200d6100010a602a45f900000000e789d5c1b68062082003610000f4601496802a43610000ea45f900000000200d610000de283900000000d9b9000000002c044a39000000006704e78e6002e78e72012081214b0008220b0281fffff0000681000010002141000c220648410081000000802141000428482a48200e53806100fdf22448204d202a000408000007676224882039fc0b01b0028000080000665674102039fc0b0140008000004000\""]],[16108,1,[" \"ffffbfff23c0fc0b01404a81660c240e52826100fd946100fdb2200e528002800000000313c00000000070014e7570004e7522da22da538066f84e75227c00000000721f429953816afa227c0000000070017203228043e9002053816af64239000000004e752039fc0b01580280fffff8000c80400000006d0a0c80500000006c026006203c4ec948000680000001c023c00000000020404e75610000f66100ffc6720f429853816afa2079000000002039fc0b0184e088e088e088e4880280000000030c8000000002661c700113c000000000203c00002b1123c000000000203c606000006018423900000000203c0000ac4423c000000000203c61680000208042a8000470012140000842a8000c6100ff2a2039fc0b01cc02800000ffff00800084000023c0fc0b01cc2039000000000480000000406402700023c00000000042b900000000700113c00000000013c000000000\""]],[16117,19,[" \"0000000042b90000000042b9000000004e75610000202039fc0b01cc02800000ffff23c0fc0b01cc6100feb44239000000004e752f027210203c0008000023c0fc0b01b4243c000100002039fc0b01b40280000800006704538266ee2039fc0b01b80280000800006704538166ca241f4e754a390000000066204a39000000006618700113c0000000002039800000e423c000000000600000744a3900000000670a423900000000610000962039800000e42400b4b900000000660652b90000000023c200000000e188e58806808000351024402839000000002a040285000003ffe78d47f900000000d7c57c0f241a420202c226c2241a420202c226c253866aec5084508423c40000000071b90000000073b900000000b28067104a8067066100fe1a600a6100feea60084a8167046100fa4a42b946104d4e4ef94000d9a62039000000000c8000000040640c06800000040023c000000000048000000040723f24000282000003ff2602e78b41f900000000d1c37801429853846afae78a41f900000000d1c242984290528053816ad04e7571b946c8ce080c80000000c0661c71b946c8ce090c80000000556600009c487900000000703c600000820c80000000a16600008671b946c8ce0c0c80000000046600007671b946c8ce0d0c80000000106600006671b946c8ce0b73b946c8ce090c8000000001671e0c8000000002660000480c81000000016600003e487900000000700160240c8100000001660a487900000000700460120c810000000266000018487900000000700eb082630220022f004ef94001de5c2039fc0b01c04ef94001de6a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[17925,1,[" \"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003262306364636133363761656337376137646130666461396238663739353434383838623833386336366361323564376534666164633137393236396261643400643331633939346465623131616462653336366533316263313364306433613639383836303338656534613433393536383466323339303433386239643966370000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000312e34304300000000000000000000000064333163393934646562313161646265000100000095a80000002d00000352\""]],[18602,1,[" \"302e372e313000d31c994deb11adbe366e31bc13d0d3a69886038ee4a4395684f2390438b9d9f700000000200000003200000044000000480000004c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[24093,1,[" 2"]],[24121,1,[" 4294967295"]],[24257,1,[" 8"]],[24265,1,[" 96"]],[24273,1,[" 512"]],[24309,1,[" 290784"]],[24325,1,[" 289764"]],[24331,4,[]],[24337,1,[" 289844"]],[24345,1,[" 289782"]],[24349,1,[" 289816"]],[24353,1,[" 4546208"]],[24365,1,[" 4546336"," ],"," \"aud_hs\": ["," \".run\","," 309851"]],[24371,1,[" \"audio_copy8\": ["]],[24373,1,[" 290432"]],[24377,5,[" 4538016"]],[24385,1,[" 290442"]],[24389,1,[" 290484"]],[24393,1,[" 290536"]],[24401,1,[" 290750"]],[24413,9,[" 291052"]],[24434,0,[" ],"," \"usbaudio_lastsamp\": ["," \".run\","," 309812"]],[25785,1,[" 291136"]],[27413,1,[" 290846"]],[86672,1,[" 291136"]],[86949,8,[" 289640,"]],[86963,1,[" 289654,"]],[86970,1,[" 289666,"]],[86977,1,[" 289672,"," \"abs32\","," \"sec:.run\","," 309850"," ],"," ["," \".run\","," 289696,"]],[86991,8,[" 289740,"]],[87005,1,[" 289758,"]],[87012,1,[" 289774,"]],[87015,1,[" 138763936"]],[87019,1,[" 289818,"]],[87026,1,[" 289846,"]],[87033,1,[" 289870,"]],[87040,1,[" 289880,"]],[87047,1,[" 289886,"]],[87050,1,[" 309780"," ],"," ["," \".run\","," 289904,"," \"abs32\","," \"sec:.run\","," 309788"]],[87061,1,[" 289930,"]],[87064,1,[" 309850"]],[87068,1,[" 289938,"," \"abs32\","," \"sec:.run\","," 309824"," ],"," ["," \".run\","," 289946,"," \"abs32\","," \"sec:.run\","," 309824"," ],"," ["," \".run\","," 289952,"," \"abs32\","," \"sec:.run\","," 309828"," ],"," ["," \".run\","," 289960,"," \"abs32\","," \"sec:.run\","," 309828"," ],"," ["," \".run\","," 289966,"," \"abs32\","," \"sec:.run\","," 309784"," ],"," ["," \".run\","," 289972,"," \"abs32\","," \"sec:.run\","," 309844"," ],"," ["," \".run\","," 289978,"," \"abs32\","," \"sec:.run\","," 309850"," ],"," ["," \".run\","," 290054,"," \"abs32\","," \"sec:.run\","," 309792"," ],"," ["," \".run\","," 290064,"," \"abs32\","," \"sec:.run\","," 309784"," ],"," ["," \".run\","," 290070,"," \"abs32\","," \"sec:.run\","," 309796"," ],"," ["," \".run\","," 290076,"," \"abs32\","," \"sec:.run\","," 309800"," ],"," ["," \".run\","," 290088,"," \"abs32\","," \"sec:.bss\","," 138764064"," ],"," ["," \".run\","," 290100,"]],[87075,99,[" 290120,"]],[87180,1,[" 290128,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 290158,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 290172,"]],[87194,15,[" 290214,"]],[87215,1,[" 290220,"]],[87222,1,[" 290228,"]],[87229,1,[" 290420,"]],[87236,1,[" 290444,"]],[87239,1,[" 138763936"]],[87243,1,[" 290458,"]],[87246,1,[" 138763936"]],[87250,1,[" 290478,"]],[87257,1,[" 290528,"]],[87264,1,[" 290554,"]],[87271,1,[" 290590,"]],[87278,1,[" 290602,"]],[87285,1,[" 290616,"]],[87292,1,[" 290628,"]],[87299,1,[" 290684,"]],[87306,8,[" 290700,"]],[87320,1,[" 290706,"]],[87327,1,[" 290714,"]],[87334,1,[" 290720,"]],[87341,1,[" 290732,"]],[87348,1,[" 290738,"]],[87355,1,[" 290744,"]],[87362,1,[" 290778,"]],[87369,1,[" 290848,"]],[87376,1,[" 290856,"]],[87383,1,[" 290866,"]],[87390,1,[" 290878,"]],[87397,1,[" 290888,"]],[87404,1,[" 290896,"]],[87411,1,[" 290914,"]],[87418,1,[" 290922,"]],[87425,1,[" 290928,"]],[87432,1,[" 290946,"]],[87439,1,[" 290962,"]],[87446,43,[" 290996,"]],[87495,1,[" 291002,"]],[87502,1,[" 291008,"]],[87509,1,[" 291054,"]],[87516,1,[" 291074,"]],[87523,1,[" 291100,"]],[87530,1,[" 291118,"]],[87533,1,[" 4538016"]],[87537,1,[" 291168,"]],[87544,1,[" 291262,"]],[87551,1,[" 291280,"]],[87558,1,[" 291300,"]],[94697,1,[" \"identity.c\": \"671efa1a5e1acd4338ec812b27ac9ac28050079da038186a3cfa01a630500a21\","]],[94757,1,[" \"usb_base.s\": \"b7c69c3d8f1ef6b425d100958b491eb33da33f2cbf4e37676ea9c312cbee87b2\","]],[94761,1,[" \"usb_reserve.s\": \"fc4b91b9fabedd48ef8430ddf8a17b6bbb38606c02ab8775dcb9ec184fd13170\""]]],"fills":[{"tag":"A","shared":2001,"first":0,"count":286,"site":"0x400f0ee3","offset":0},{"tag":"A","shared":2287,"first":0,"count":35,"site":"0x400f0ee3","offset":858},{"tag":"A","shared":2322,"first":0,"count":93,"site":"0x400f0ee3","offset":963},{"tag":"B","shared":1425,"first":0,"count":286,"site":"0x40103e34","offset":0},{"tag":"B","shared":1711,"first":0,"count":35,"site":"0x40103e34","offset":858},{"tag":"B","shared":1746,"first":0,"count":93,"site":"0x40103e34","offset":963},{"tag":"A","fx":4,"first":0,"count":441,"section":".run","offset":336620},{"tag":"A","fx":5,"first":0,"count":261,"section":".run","offset":335830},{"tag":"A","fx":12,"first":0,"count":282,"section":".run","offset":334968},{"tag":"A","fx":13,"first":0,"count":345,"section":".run","offset":333918},{"tag":"A","fx":16,"first":0,"count":207,"section":".run","offset":333282},{"tag":"A","fx":17,"first":0,"count":289,"section":".run","offset":332384},{"tag":"A","fx":18,"first":0,"count":329,"section":".run","offset":331360},{"tag":"A","fx":19,"first":0,"count":277,"section":".run","offset":330498},{"tag":"A","fx":20,"first":0,"count":594,"section":".run","offset":328696},{"tag":"A","fx":21,"first":0,"count":1063,"section":".run","offset":325464},{"tag":"A","fx":22,"first":0,"count":1067,"section":".run","offset":322202},{"tag":"A","fx":24,"first":2,"count":11,"section":".run","offset":321612},{"tag":"A","fx":24,"first":15,"count":165,"section":".run","offset":321651},{"tag":"A","fx":28,"first":0,"count":537,"section":".run","offset":319980},{"tag":"B","fx":4,"first":65,"count":1,"section":".run","offset":319488},{"tag":"B","fx":4,"first":73,"count":1,"section":".run","offset":319491},{"tag":"B","fx":4,"first":158,"count":1,"section":".run","offset":319494},{"tag":"B","fx":4,"first":163,"count":1,"section":".run","offset":319497},{"tag":"B","fx":4,"first":172,"count":1,"section":".run","offset":319500},{"tag":"B","fx":4,"first":182,"count":1,"section":".run","offset":319503},{"tag":"B","fx":4,"first":194,"count":1,"section":".run","offset":319506},{"tag":"B","fx":4,"first":199,"count":1,"section":".run","offset":319509},{"tag":"B","fx":4,"first":207,"count":1,"section":".run","offset":319512},{"tag":"B","fx":4,"first":215,"count":1,"section":".run","offset":319515},{"tag":"B","fx":4,"first":220,"count":1,"section":".run","offset":319518},{"tag":"B","fx":4,"first":225,"count":1,"section":".run","offset":319521},{"tag":"B","fx":4,"first":229,"count":1,"section":".run","offset":319524},{"tag":"B","fx":4,"first":248,"count":1,"section":".run","offset":319527},{"tag":"B","fx":4,"first":266,"count":1,"section":".run","offset":319530},{"tag":"B","fx":4,"first":281,"count":1,"section":".run","offset":319533},{"tag":"B","fx":4,"first":286,"count":1,"section":".run","offset":319536},{"tag":"B","fx":4,"first":290,"count":1,"section":".run","offset":319539},{"tag":"B","fx":4,"first":307,"count":1,"section":".run","offset":319542},{"tag":"B","fx":4,"first":325,"count":1,"section":".run","offset":319545},{"tag":"B","fx":4,"first":374,"count":1,"section":".run","offset":319548},{"tag":"B","fx":5,"first":25,"count":1,"section":".run","offset":319458},{"tag":"B","fx":5,"first":42,"count":1,"section":".run","offset":319461},{"tag":"B","fx":5,"first":62,"count":1,"section":".run","offset":319464},{"tag":"B","fx":5,"first":91,"count":1,"section":".run","offset":319467},{"tag":"B","fx":5,"first":179,"count":1,"section":".run","offset":319470},{"tag":"B","fx":5,"first":181,"count":1,"section":".run","offset":319473},{"tag":"B","fx":12,"first":62,"count":1,"section":".run","offset":319378},{"tag":"B","fx":12,"first":64,"count":1,"section":".run","offset":319381},{"tag":"B","fx":12,"first":68,"count":1,"section":".run","offset":319384},{"tag":"B","fx":12,"first":70,"count":1,"section":".run","offset":319387},{"tag":"B","fx":12,"first":91,"count":1,"section":".run","offset":319390},{"tag":"B","fx":12,"first":93,"count":1,"section":".run","offset":319393},{"tag":"B","fx":12,"first":97,"count":1,"section":".run","offset":319396},{"tag":"B","fx":12,"first":99,"count":1,"section":".run","offset":319399},{"tag":"B","fx":12,"first":165,"count":1,"section":".run","offset":319402},{"tag":"B","fx":12,"first":170,"count":1,"section":".run","offset":319405},{"tag":"B","fx":12,"first":172,"count":1,"section":".run","offset":319408},{"tag":"B","fx":12,"first":174,"count":1,"section":".run","offset":319411},{"tag":"B","fx":12,"first":176,"count":1,"section":".run","offset":319414},{"tag":"B","fx":12,"first":180,"count":1,"section":".run","offset":319417},{"tag":"B","fx":12,"first":182,"count":1,"section":".run","offset":319420},{"tag":"B","fx":12,"first":193,"count":1,"section":".run","offset":319423},{"tag":"B","fx":13,"first":259,"count":1,"section":".run","offset":319372},{"tag":"B","fx":16,"first":23,"count":1,"section":".run","offset":319356},{"tag":"B","fx":16,"first":27,"count":1,"section":".run","offset":319359},{"tag":"B","fx":16,"first":206,"count":1,"section":".run","offset":319362},{"tag":"B","fx":17,"first":30,"count":1,"section":".run","offset":319336},{"tag":"B","fx":17,"first":34,"count":1,"section":".run","offset":319339},{"tag":"B","fx":17,"first":118,"count":1,"section":".run","offset":319342},{"tag":"B","fx":17,"first":288,"count":1,"section":".run","offset":319345},{"tag":"B","fx":18,"first":48,"count":1,"section":".run","offset":319306},{"tag":"B","fx":18,"first":82,"count":1,"section":".run","offset":319309},{"tag":"B","fx":18,"first":87,"count":1,"section":".run","offset":319312},{"tag":"B","fx":18,"first":91,"count":1,"section":".run","offset":319315},{"tag":"B","fx":18,"first":260,"count":1,"section":".run","offset":319318},{"tag":"B","fx":18,"first":328,"count":1,"section":".run","offset":319321},{"tag":"B","fx":19,"first":109,"count":1,"section":".run","offset":319290},{"tag":"B","fx":19,"first":149,"count":1,"section":".run","offset":319293},{"tag":"B","fx":19,"first":276,"count":1,"section":".run","offset":319296},{"tag":"B","fx":20,"first":102,"count":1,"section":".run","offset":319230},{"tag":"B","fx":20,"first":107,"count":1,"section":".run","offset":319233},{"tag":"B","fx":20,"first":116,"count":1,"section":".run","offset":319236},{"tag":"B","fx":20,"first":167,"count":1,"section":".run","offset":319239},{"tag":"B","fx":20,"first":185,"count":1,"section":".run","offset":319242},{"tag":"B","fx":20,"first":239,"count":1,"section":".run","offset":319245},{"tag":"B","fx":20,"first":322,"count":1,"section":".run","offset":319248},{"tag":"B","fx":20,"first":403,"count":1,"section":".run","offset":319251},{"tag":"B","fx":20,"first":425,"count":1,"section":".run","offset":319254},{"tag":"B","fx":20,"first":517,"count":1,"section":".run","offset":319257},{"tag":"B","fx":20,"first":550,"count":1,"section":".run","offset":319260},{"tag":"B","fx":20,"first":590,"count":1,"section":".run","offset":319263},{"tag":"B","fx":21,"first":15,"count":1,"section":".run","offset":319184},{"tag":"B","fx":21,"first":374,"count":1,"section":".run","offset":319187},{"tag":"B","fx":21,"first":406,"count":1,"section":".run","offset":319190},{"tag":"B","fx":21,"first":432,"count":1,"section":".run","offset":319193},{"tag":"B","fx":21,"first":470,"count":1,"section":".run","offset":319196},{"tag":"B","fx":21,"first":478,"count":1,"section":".run","offset":319199},{"tag":"B","fx":21,"first":481,"count":1,"section":".run","offset":319202},{"tag":"B","fx":21,"first":574,"count":1,"section":".run","offset":319205},{"tag":"B","fx":21,"first":800,"count":1,"section":".run","offset":319208},{"tag":"B","fx":22,"first":202,"count":1,"section":".run","offset":319114},{"tag":"B","fx":22,"first":315,"count":1,"section":".run","offset":319117},{"tag":"B","fx":22,"first":402,"count":1,"section":".run","offset":319120},{"tag":"B","fx":22,"first":404,"count":1,"section":".run","offset":319123},{"tag":"B","fx":22,"first":417,"count":1,"section":".run","offset":319126},{"tag":"B","fx":22,"first":457,"count":1,"section":".run","offset":319129},{"tag":"B","fx":22,"first":461,"count":1,"section":".run","offset":319132},{"tag":"B","fx":22,"first":465,"count":1,"section":".run","offset":319135},{"tag":"B","fx":22,"first":492,"count":1,"section":".run","offset":319138},{"tag":"B","fx":22,"first":719,"count":1,"section":".run","offset":319141},{"tag":"B","fx":22,"first":746,"count":1,"section":".run","offset":319144},{"tag":"B","fx":22,"first":800,"count":1,"section":".run","offset":319147},{"tag":"B","fx":22,"first":842,"count":1,"section":".run","offset":319150},{"tag":"B","fx":22,"first":1051,"count":1,"section":".run","offset":319153}]},{"layout":"off","identity":"6070a4e43941fc0eebdbb23673f729c9cc08f1882670f46865a0869e0d487cf3","packageSha256":"53114aab13d57c75f6cdf77c637f49b8f441ecfd8995e02d2113859a9095c091","patch":[[15724,1,[" \"4e7500004eb9000000004ef94002dc6e4eb9000000004ef94002dc964eb9000000004ef94002dcca00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000022020c810000008d6306223c0000008d4ef94001d86422020c810000008d6306223c0000008d4ef94001d8a24feffff448d703024eb9000000004cd703024fef000c4a80671a72ffb081672072feb081672c2f39000000002f004ef94001de5c2039fc0b01c04ef94001de6a\""]],[15760,1,[" \"4ef9\""]],[15778,1,[" \"4ef90000\""]],[15796,1,[" \"4ef90000000000000000000009028d000401\""]],[15805,1,[" \"0904010000ff4d0100080b02020100000009040200000101000009240100010900010309040300020103000007240100012500062402010100062402020200092403010301020100092403020401010100090502024000000000052501010109058202400000000005250101\""]],[15809,2,[" \"0x400cb87e\","," 22"]],[15814,1,[" \"0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009028d000401\""]],[15828,1,[" \"0904010000ff4d0100080b02020100000009040200000101000009240100010900010309040300020103000007240100012500062402010100062402020200092403010301020100092403020401010100090502020002000000052501010109058202000200000005250101\""]],[15832,2,[" \"0x400cb87e\","," 22"]],[15837,1,[" \"0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009078d000401\""]],[15846,1,[" \"0904010000ff4d0100080b02020100000009040200000101000009240100010900010309040300020103000007240100012500062402010100062402020200092403010301020100092403020401010100090502024000000000052501010109058202400000000005250101\""]],[15850,2,[" \"0x400cb87e\","," 22"]],[15855,1,[" \"0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009078d000401\""]],[15869,1,[" \"0904010000ff4d0100080b02020100000009040200000101000009240100010900010309040300020103000007240100012500062402010100062402020200092403010301020100092403020401010100090502020002000000052501010109058202000200000005250101\""]],[15873,2,[" \"0x400cb87e\","," 22"]],[15878,1,[" \"000000000000000000000000000000000000000000000000\""]],[15896,1,[" \"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[16072,64,[" \"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[17925,1,[" \"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006563373231323636303830353261396366656439323236353963623134643465393334323863346530363636343137613834663439653565323939653966316400363037306134653433393431666330656562646262323336373366373239633963633038663138383236373066343638363561303836396530643438376366\""," ],"," ["," \"stock\","," \"0x400ba992\","," 26"," ],"," ["," \"hex\","," \"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000312e3430430000000000\""," ],"," ["," \"stock\","," \"0x400be56e\","," 8"," ],"," ["," \"hex\","," \"303730613465343339343166633065000100000095a80000002d00000352\""]],[18129,19,[" \"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000460c8122460d0ffa460bf218460c80f0000000000000000000000000000000000000000000000000000000000000000000000000151315141515151615171518151916141715181619131914191519161917191819191b131b141b151b161b171b181b191c131c161c191d131d161d191e131e161e191f131f1921132114211521162117211821192218231623172418251325142515251625172518251959135914591559165917591859195a135a165a195b135b165b195c135c165c195d145d155d175d185f135f145f155f165f175f185f1960136016601961136116611962136216621963136319651366136713671467156716671767186719681369136b146b156b166b176b186b196c136c166d136d166e136e166f146f156f166f176f186f1900151305070000000011001b13050700001100120021130507000023001201591305070000350014015f1305070000490012016513050700005b000b016b130507000066001207ff07ff00030006000c001800300018000c0006000307ff07ff00000000000001fc03fe07070603060306030603070703fe01fc00000000000007ff07ff06030603060306030707038e01fc00f8\""]],[18602,1,[" \"302e372e3130006070a4e43941fc0eebdbb23673f729c9cc08f1882670f46865a0869e0d487cf300000000200000003200000044000000480000004c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[23893,1,[" 141"]],[23949,1,[" 286476"]],[23953,1,[" 286790"]],[23957,1,[" 286648"]],[23961,1,[" 286972"]],[23969,1,[" 286730"]],[23973,1,[" 286992"]],[23977,1,[" 287000"]],[23981,1,[" 286994"]],[23985,1,[" 287256"]],[23989,1,[" 286990"]],[24057,1,[" 287754"]],[24061,1,[" 287980"]],[24065,1,[" 287890"]],[24069,1,[" 288220"]],[24073,1,[" 288194"]],[24077,1,[" 288244"]],[24081,1,[" 288316"]],[24090,344,[]],[24517,1,[" 286989"]],[24597,1,[" 286388"]],[24781,5,[" 285440"]],[24809,1,[" 284838"]],[24813,1,[" 284928"]],[24826,4,[]],[25081,1,[" 285888"]],[25101,1,[" 286996"]],[25171,4,[]],[25181,1,[" 286538"]],[25233,1,[" 285952"]],[25439,4,[]],[25535,4,[]],[25557,1,[" 287826"]],[25783,4,[]],[25857,1,[" 285696"]],[25877,1,[" 284804"]],[25989,1,[" 286918"]],[26014,4,[]],[26109,1,[" 285184"]],[26133,1,[" 286208"]],[26263,4,[]],[26281,1,[" 288320"]],[26367,4,[]],[26385,1,[" 287512"]],[26549,1,[" 287808"]],[26701,1,[" 286870"]],[26774,4,[]],[26854,4,[]],[27029,1,[" 287572"]],[27042,4,[]],[27090,4,[]],[27277,1,[" 288236"]],[27411,4,[]],[27470,4,[]],[27643,4,[]],[27689,1,[" 284894"]],[27805,1,[" 286988"]],[27834,4,[]],[27973,1,[" 287842"]],[28043,4,[]],[28058,4,[]],[28086,4,[]],[28201,1,[" 288240"]],[28222,4,[]],[28341,8,[]],[29290,13,[]],[44588,1,[" 286208"]],[44777,1,[" 285952"]],[86669,8,[" 284814,"]],[86683,1,[" 284848,"]],[86690,7,[]],[86700,1,[" 287808"]],[86714,1,[" 287826"]],[86718,8,[" 284904,"]],[86732,1,[" 284918,"]],[86739,1,[" 286446,"]],[86742,1,[" 286988"]],[86746,1,[" 286452,"]],[86749,1,[" 286989"]],[86753,1,[" 286574,"]],[86756,1,[" 286989"]],[86760,1,[" 286644,"]],[86763,1,[" 284804"]],[86767,1,[" 286770,"]],[86770,1,[" 286992"]],[86774,1,[" 286782,"]],[86777,1,[" 286996"]],[86781,1,[" 286812,"]],[86784,1,[" 286989"]],[86788,1,[" 286818,"]],[86791,1,[" 286994"]],[86795,1,[" 286838,"]],[86798,1,[" 286992"]],[86802,1,[" 286938,"]],[86805,1,[" 286990"]],[86809,1,[" 287554,"]],[86812,1,[" 288236"]],[86816,1,[" 287568,"]],[86819,1,[" 286388"]],[86823,1,[" 287582,"]],[86826,1,[" 286988"]],[86830,1,[" 287700,"]],[86833,1,[" 288240"]],[86837,1,[" 287750,"]],[86840,1,[" 286538"]],[86844,1,[" 287858,"]],[86847,1,[" 286988"]],[86851,1,[" 287864,"]],[86854,1,[" 286989"]],[86858,1,[" 287870,"]],[86861,1,[" 286992"]],[86865,1,[" 288046,"]],[86868,1,[" 288236"]],[86872,1,[" 288160,"]],[86875,1,[" 288316"]],[86879,1,[" 288296,"]],[86882,1,[" 288316"]],[86886,1,[" 288306,"]],[86889,673,[" 288320"]],[92527,1,[" \"sym:usbmidi_rx_isr_shim\","]],[92558,60,[]],[94697,1,[" \"identity.c\": \"991f70b4d4ff075921e3ea307ea0429c6a01607f30b2c591d8782bdbafcfbbbf\","]],[94757,1,[" \"usb_base.s\": \"1ae9d3f2371e79a433b4aa1d31aa30408836b51c5296133b960e8246175dec84\","]],[94760,2,[" \"usb_reserve.s\": \"0fde65d1387d49e9fd43eb2f7f53c0fc9bc64eb1a98b0a98ac9815eb6cf97870\""]]],"fills":[{"tag":"A","shared":2001,"first":0,"count":286,"site":"0x400f0ee3","offset":0},{"tag":"A","shared":2287,"first":0,"count":35,"site":"0x400f0ee3","offset":858},{"tag":"A","shared":2322,"first":0,"count":93,"site":"0x400f0ee3","offset":963},{"tag":"B","shared":1425,"first":0,"count":286,"site":"0x40103e34","offset":0},{"tag":"B","shared":1711,"first":0,"count":35,"site":"0x40103e34","offset":858},{"tag":"B","shared":1746,"first":0,"count":93,"site":"0x40103e34","offset":963},{"tag":"A","fx":4,"first":0,"count":441,"section":".run","offset":336620},{"tag":"A","fx":5,"first":0,"count":261,"section":".run","offset":335830},{"tag":"A","fx":12,"first":0,"count":282,"section":".run","offset":334968},{"tag":"A","fx":13,"first":0,"count":345,"section":".run","offset":333918},{"tag":"A","fx":16,"first":0,"count":207,"section":".run","offset":333282},{"tag":"A","fx":17,"first":0,"count":289,"section":".run","offset":332384},{"tag":"A","fx":18,"first":0,"count":329,"section":".run","offset":331360},{"tag":"A","fx":19,"first":0,"count":277,"section":".run","offset":330498},{"tag":"A","fx":20,"first":0,"count":594,"section":".run","offset":328696},{"tag":"A","fx":21,"first":0,"count":1063,"section":".run","offset":325464},{"tag":"A","fx":22,"first":0,"count":1067,"section":".run","offset":322202},{"tag":"A","fx":24,"first":2,"count":11,"section":".run","offset":321612},{"tag":"A","fx":24,"first":15,"count":165,"section":".run","offset":321651},{"tag":"A","fx":28,"first":0,"count":537,"section":".run","offset":319980},{"tag":"B","fx":4,"first":65,"count":1,"section":".run","offset":319488},{"tag":"B","fx":4,"first":73,"count":1,"section":".run","offset":319491},{"tag":"B","fx":4,"first":158,"count":1,"section":".run","offset":319494},{"tag":"B","fx":4,"first":163,"count":1,"section":".run","offset":319497},{"tag":"B","fx":4,"first":172,"count":1,"section":".run","offset":319500},{"tag":"B","fx":4,"first":182,"count":1,"section":".run","offset":319503},{"tag":"B","fx":4,"first":194,"count":1,"section":".run","offset":319506},{"tag":"B","fx":4,"first":199,"count":1,"section":".run","offset":319509},{"tag":"B","fx":4,"first":207,"count":1,"section":".run","offset":319512},{"tag":"B","fx":4,"first":215,"count":1,"section":".run","offset":319515},{"tag":"B","fx":4,"first":220,"count":1,"section":".run","offset":319518},{"tag":"B","fx":4,"first":225,"count":1,"section":".run","offset":319521},{"tag":"B","fx":4,"first":229,"count":1,"section":".run","offset":319524},{"tag":"B","fx":4,"first":248,"count":1,"section":".run","offset":319527},{"tag":"B","fx":4,"first":266,"count":1,"section":".run","offset":319530},{"tag":"B","fx":4,"first":281,"count":1,"section":".run","offset":319533},{"tag":"B","fx":4,"first":286,"count":1,"section":".run","offset":319536},{"tag":"B","fx":4,"first":290,"count":1,"section":".run","offset":319539},{"tag":"B","fx":4,"first":307,"count":1,"section":".run","offset":319542},{"tag":"B","fx":4,"first":325,"count":1,"section":".run","offset":319545},{"tag":"B","fx":4,"first":374,"count":1,"section":".run","offset":319548},{"tag":"B","fx":5,"first":25,"count":1,"section":".run","offset":319458},{"tag":"B","fx":5,"first":42,"count":1,"section":".run","offset":319461},{"tag":"B","fx":5,"first":62,"count":1,"section":".run","offset":319464},{"tag":"B","fx":5,"first":91,"count":1,"section":".run","offset":319467},{"tag":"B","fx":5,"first":179,"count":1,"section":".run","offset":319470},{"tag":"B","fx":5,"first":181,"count":1,"section":".run","offset":319473},{"tag":"B","fx":12,"first":62,"count":1,"section":".run","offset":319378},{"tag":"B","fx":12,"first":64,"count":1,"section":".run","offset":319381},{"tag":"B","fx":12,"first":68,"count":1,"section":".run","offset":319384},{"tag":"B","fx":12,"first":70,"count":1,"section":".run","offset":319387},{"tag":"B","fx":12,"first":91,"count":1,"section":".run","offset":319390},{"tag":"B","fx":12,"first":93,"count":1,"section":".run","offset":319393},{"tag":"B","fx":12,"first":97,"count":1,"section":".run","offset":319396},{"tag":"B","fx":12,"first":99,"count":1,"section":".run","offset":319399},{"tag":"B","fx":12,"first":165,"count":1,"section":".run","offset":319402},{"tag":"B","fx":12,"first":170,"count":1,"section":".run","offset":319405},{"tag":"B","fx":12,"first":172,"count":1,"section":".run","offset":319408},{"tag":"B","fx":12,"first":174,"count":1,"section":".run","offset":319411},{"tag":"B","fx":12,"first":176,"count":1,"section":".run","offset":319414},{"tag":"B","fx":12,"first":180,"count":1,"section":".run","offset":319417},{"tag":"B","fx":12,"first":182,"count":1,"section":".run","offset":319420},{"tag":"B","fx":12,"first":193,"count":1,"section":".run","offset":319423},{"tag":"B","fx":13,"first":259,"count":1,"section":".run","offset":319372},{"tag":"B","fx":16,"first":23,"count":1,"section":".run","offset":319356},{"tag":"B","fx":16,"first":27,"count":1,"section":".run","offset":319359},{"tag":"B","fx":16,"first":206,"count":1,"section":".run","offset":319362},{"tag":"B","fx":17,"first":30,"count":1,"section":".run","offset":319336},{"tag":"B","fx":17,"first":34,"count":1,"section":".run","offset":319339},{"tag":"B","fx":17,"first":118,"count":1,"section":".run","offset":319342},{"tag":"B","fx":17,"first":288,"count":1,"section":".run","offset":319345},{"tag":"B","fx":18,"first":48,"count":1,"section":".run","offset":319306},{"tag":"B","fx":18,"first":82,"count":1,"section":".run","offset":319309},{"tag":"B","fx":18,"first":87,"count":1,"section":".run","offset":319312},{"tag":"B","fx":18,"first":91,"count":1,"section":".run","offset":319315},{"tag":"B","fx":18,"first":260,"count":1,"section":".run","offset":319318},{"tag":"B","fx":18,"first":328,"count":1,"section":".run","offset":319321},{"tag":"B","fx":19,"first":109,"count":1,"section":".run","offset":319290},{"tag":"B","fx":19,"first":149,"count":1,"section":".run","offset":319293},{"tag":"B","fx":19,"first":276,"count":1,"section":".run","offset":319296},{"tag":"B","fx":20,"first":102,"count":1,"section":".run","offset":319230},{"tag":"B","fx":20,"first":107,"count":1,"section":".run","offset":319233},{"tag":"B","fx":20,"first":116,"count":1,"section":".run","offset":319236},{"tag":"B","fx":20,"first":167,"count":1,"section":".run","offset":319239},{"tag":"B","fx":20,"first":185,"count":1,"section":".run","offset":319242},{"tag":"B","fx":20,"first":239,"count":1,"section":".run","offset":319245},{"tag":"B","fx":20,"first":322,"count":1,"section":".run","offset":319248},{"tag":"B","fx":20,"first":403,"count":1,"section":".run","offset":319251},{"tag":"B","fx":20,"first":425,"count":1,"section":".run","offset":319254},{"tag":"B","fx":20,"first":517,"count":1,"section":".run","offset":319257},{"tag":"B","fx":20,"first":550,"count":1,"section":".run","offset":319260},{"tag":"B","fx":20,"first":590,"count":1,"section":".run","offset":319263},{"tag":"B","fx":21,"first":15,"count":1,"section":".run","offset":319184},{"tag":"B","fx":21,"first":374,"count":1,"section":".run","offset":319187},{"tag":"B","fx":21,"first":406,"count":1,"section":".run","offset":319190},{"tag":"B","fx":21,"first":432,"count":1,"section":".run","offset":319193},{"tag":"B","fx":21,"first":470,"count":1,"section":".run","offset":319196},{"tag":"B","fx":21,"first":478,"count":1,"section":".run","offset":319199},{"tag":"B","fx":21,"first":481,"count":1,"section":".run","offset":319202},{"tag":"B","fx":21,"first":574,"count":1,"section":".run","offset":319205},{"tag":"B","fx":21,"first":800,"count":1,"section":".run","offset":319208},{"tag":"B","fx":22,"first":202,"count":1,"section":".run","offset":319114},{"tag":"B","fx":22,"first":315,"count":1,"section":".run","offset":319117},{"tag":"B","fx":22,"first":402,"count":1,"section":".run","offset":319120},{"tag":"B","fx":22,"first":404,"count":1,"section":".run","offset":319123},{"tag":"B","fx":22,"first":417,"count":1,"section":".run","offset":319126},{"tag":"B","fx":22,"first":457,"count":1,"section":".run","offset":319129},{"tag":"B","fx":22,"first":461,"count":1,"section":".run","offset":319132},{"tag":"B","fx":22,"first":465,"count":1,"section":".run","offset":319135},{"tag":"B","fx":22,"first":492,"count":1,"section":".run","offset":319138},{"tag":"B","fx":22,"first":719,"count":1,"section":".run","offset":319141},{"tag":"B","fx":22,"first":746,"count":1,"section":".run","offset":319144},{"tag":"B","fx":22,"first":800,"count":1,"section":".run","offset":319147},{"tag":"B","fx":22,"first":842,"count":1,"section":".run","offset":319150},{"tag":"B","fx":22,"first":1051,"count":1,"section":".run","offset":319153}]}]} +{"schema":1,"packageSha256":"7e51c8f32f2b430d72d0459d644c04076c3f3f630f213e12137b8cda1b68ba94","variants":[{"layout":"tracks","identity":"1a6cbb0037edc5f2160d28071d27b79095397b5a68b3872064285d32f3f054ca","packageSha256":"edc50465aa6d1456c0a9e45e18e0e6cccc52a6c8a755a64d1a19d90eb2485826","patch":[[15837,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202000200000005250101010905820200020000000525010103080b04020100200009040400000101200009240100020a2e000008240a100105000011240211030600\""]],[15841,1,[" \"0x400bf48c\","," 10"," ],"," ["," \"hex\","," \"0c24031201010011100000000904050000010220000904050101010220001024011200010100\""," ],"," ["," \"stock\","," \"0x400ba484\","]],[15846,1,[" \"06240201041807058305000302082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000090703010601\""]],[15878,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202000200000005250101010905820200020000000525010103080b04020100200009040400000101200009240100020a2e000008240a100105000011240211030600\""]],[15882,1,[" \"0x400bf48c\","," 10"," ],"," ["," \"hex\","," \"0c24031201010011100000000904050000010220000904050101010220001024011200010100\""," ],"," ["," \"stock\","," \"0x400ba484\","]],[15887,1,[" \"06240201041807058305000302082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[16081,1,[" \"0000000071b946c8ce0c7205b2806600002c71b946c8ce0a4a80670a700113c000000000600a4239000000006100059a4eb94001d5244ef94001de742039fc0b01c44ef94001dd0a71b946c8ce0c7205b280660c4879000000004ef94001d81e4879400e20a14ef94001d81e4eb94001d6b86100001a70404ef94001e9226100000e2039fc0b01404ef94001e9584239000000004e75201023c04ec950280280fffff00006800000100023c04ec9502c4ef94001d4b84feffff848d700032039fc0b01bc223c00080000c081670c223c0008000023c1fc0b01bc4cd700034fef00084ef9000000004a3900000000670000b271b9000000000c8000000002664c740020026100009e2228000408010007670c52820c820000000465e64e75203900000000220092b9000000000481000000406f1223c10000000004800000004023c00000000042390000000070042f00610000a24a806704539766f4588f71b9000000000c80000000016608700213c0000000002039fc0b01b82239fc0b01b08081028000080000661875b900000000610000244a80670a6100003e52b9000000004e75028000000003eb88207c00000000d1c04e75760320026100ffe82228000408010007660a528253836aea70004e75284870014e75227900000000234c000842a9000c203c00080000\""]],[16090,1,[" \"71b9000000002c406100ffa62228000408010007660002384a39000000006700022e203900000000223900000000240094810c8200000400631a52b900000000220004810000040023c100000000243c000004004a3900000000661cb4b900000000640623c200000000b4b900000000630623c2000000002639000000002a39000000004a390000000066282002048000000040e3800c80000000c86f06203c000000c80c80ffffff386c06203cffffff38da80d6852e3c000003e828034c4740042a044c0750002c039c85b484640a52b9000000006000017623c60000000023c40000000023c200000000200ee188e588220ee1899081267c00000000d7c0224b26042239000000000281000003ff203c0000040090814a3900000000672c45f900000000ed89d5c1b6806208200361000120604096802a436100011645f900000000200d6100010a602a45f900000000e789d5c1b6806208200361000116601496802a436100010c45f900000000200d61000100283900000000d9b9000000002c044a39000000006704ed8e6002e78e72012081214b0008220b0281fffff0000681000010002141000c220648410081000000802141000428482a48200e53806100fdec2448204d202a000408000007676224882039fc0b01b0028000080000665674102039fc0b0140008000004000\""]],[16117,1,[" \"ffffbfff23c0fc0b01404a81660c240e52826100fd8e6100fdac200e528002800000000313c00000000070014e7570004e754cd210fe48d110fe4cea10fe002048e910fe002045ea004043e90040538066e04e7522da22da538066f84e75227c00000000721f429953816afa227c0000000070017203228043e9002053816af64239000000004e752039fc0b01580280fffff8000c80400000006d0a0c80500000006c026006203c4ec948000680000001c023c00000000020404e75610000f66100ffc6720f429853816afa2079000000002039fc0b0184e088e088e088e4880280000000030c8000000002661c700113c000000000203c00002b1123c000000000203c630000006018423900000000203c0000ac4423c000000000203c61680000208042a8000470012140000842a8000c6100ff2a2039fc0b01cc02800000ffff00800084000023c0fc0b01cc2039000000000480000000406402700023c00000000042b900000000700113c00000000013c000000000\""]],[16126,1,[" \"0000000042b90000000042b9000000004e75610000202039fc0b01cc02800000ffff23c0fc0b01cc6100feb44239000000004e752f027210203c0008000023c0fc0b01b4243c000100002039fc0b01b40280000800006704538266ee2039fc0b01b80280000800006704538166ca241f4e754a390000000066204a39000000006618700113c0000000002039800000e423c000000000600001204a3900000000670a423900000000610001427200\""]],[16135,10,[" \"0c0000000c800800000057c122412039800000e42400b4b900000000660652b90000000023c200000000e188e58806808000319024402839000000002a040285000003ff2005ed8847f900000000d7c0e78d49f900000000d9c572082a7c007fffff2c7cff8000007c0f204a7a0076007e0724102002e2a0da80420202c226c2242800042002e2a0d680420202c226c241e8008053876a00ffda240520096600004eb48d6f04240d6006b48e6c02240e20390000000090826a0244800c8000032000650652b90000000023c2000000002002e18802c028c02003b08d6f04200d6006b08e6c02200ee18802c028c045ea000853866a00ff745084508423c40000000071b90000000073b900000000b28067104a8067066100fd6e600a6100fe3e60084a8167046100f97642b946104d4e4ef94000d9a62039000000000c8000000040640c06800000040023c000000000048000000040723f24000282000003ff2602ed8b41f900000000d1c3780f429853846afae78a41f900000000d1c242984290528053816ad04e7571b946c8ce080c80000000c0661c71b946c8ce090c80000000556600009c487900000000703c600000820c80000000a16600008671b946c8ce0c0c80000000046600007671b946c8ce0d0c80000000106600006671b946c8ce0b73b946c8ce090c8000000001671e0c8000000002660000480c81000000016600003e487900000000700160240c8100000001660a487900000000700460120c810000000266000018487900000000700eb082630220022f004ef94001de5c2039fc0b01c04ef94001de6a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[17934,10,[" \"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003232343335316165383933626235303137633333666332643162333136373032303637643232393765316339323464383038623466393364386234323665363800316136636262303033376564633566323136306432383037316432376237393039353339376235613638623338373230363432383564333266336630353463610000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000312e34304300000000000000000000000031613663626230303337656463356632000100000095a80000002d00000352\""]],[18620,1,[" \"302e372e3131001a6cbb0037edc5f2160d28071d27b79095397b5a68b3872064285d32f3f054ca00000000200000003200000044000000480000004c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[24111,1,[" 1"]],[24275,1,[" 64"]],[24283,1,[" 768"]],[24291,1,[" 768"]],[24327,1,[" 290824"]],[24343,1,[" 289764"]],[24349,4,[]],[24355,1,[" 289844"]],[24363,1,[" 289782"]],[24367,1,[" 289816"]],[24371,1,[" 4611744"]],[24383,1,[" 4611872"," ],"," \"aud_hs\": ["," \".run\","," 309851"]],[24389,1,[" \"audio_copy64\": ["," \".run\","," 290438"," ],"," \"aud_sum\": ["," \".bss\","," 4603552"," ],"," \"audio_copy8\": ["," \".run\","," 290472"," ],"," \"audio_dtds_clear\": ["]],[24393,12,[]],[24407,1,[" 290524"]],[24411,1,[" 290576"]],[24419,1,[" 290790"]],[24431,1,[" 291264"]],[24435,1,[" 290944"]],[25803,1,[" 291348"]],[27431,1,[" 290886"]],[86697,1,[" 291348"]],[86974,8,[" 289640,"]],[86988,1,[" 289654,"]],[86995,1,[" 289666,"]],[87002,1,[" 289672,"," \"abs32\","," \"sec:.run\","," 309850"," ],"," ["," \".run\","," 289696,"]],[87016,8,[" 289740,"]],[87030,1,[" 289758,"]],[87037,1,[" 289774,"]],[87040,1,[" 138829472"]],[87044,1,[" 289818,"]],[87051,1,[" 289846,"]],[87058,1,[" 289870,"]],[87065,1,[" 289880,"]],[87072,1,[" 289886,"]],[87075,1,[" 309780"," ],"," ["," \".run\","," 289904,"," \"abs32\","," \"sec:.run\","," 309788"]],[87086,1,[" 289930,"]],[87089,1,[" 309850"]],[87093,1,[" 289938,"," \"abs32\","," \"sec:.run\","," 309824"," ],"," ["," \".run\","," 289946,"," \"abs32\","," \"sec:.run\","," 309824"," ],"," ["," \".run\","," 289952,"," \"abs32\","," \"sec:.run\","," 309828"," ],"," ["," \".run\","," 289960,"," \"abs32\","," \"sec:.run\","," 309828"," ],"," ["," \".run\","," 289966,"," \"abs32\","," \"sec:.run\","," 309784"," ],"," ["," \".run\","," 289972,"," \"abs32\","," \"sec:.run\","," 309844"," ],"," ["," \".run\","," 289978,"," \"abs32\","," \"sec:.run\","," 309850"," ],"," ["," \".run\","," 290054,"," \"abs32\","," \"sec:.run\","," 309792"," ],"," ["," \".run\","," 290064,"," \"abs32\","," \"sec:.run\","," 309784"," ],"," ["," \".run\","," 290070,"," \"abs32\","," \"sec:.run\","," 309796"," ],"," ["," \".run\","," 290076,"," \"abs32\","," \"sec:.run\","," 309800"," ],"," ["," \".run\","," 290094,"," \"abs32\","," \"sec:.bss\","," 138829600"," ],"," ["," \".run\","," 290106,"]],[87100,1,[" 290126,"," \"abs32\","," \"sec:.run\","," 309851"," ],"," ["," \".run\","," 290134,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 290164,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 290178,"," \"abs32\","," \"sec:.bss\","," 4603552"," ],"," ["," \".run\","," 290208,"," \"abs32\","," \"sec:.bss\","," 4603552"," ],"," ["," \".run\","," 290220,"," \"abs32\","," \"sec:.run\","," 309796"," ],"," ["," \".run\","," 290226,"," \"abs32\","," \"sec:.run\","," 309780"," ],"," ["," \".run\","," 290234,"," \"abs32\","," \"sec:.run\","," 309851"," ],"," ["," \".run\","," 290426,"," \"abs32\","," \"sec:.run\","," 309852"," ],"," ["," \".run\","," 290484,"," \"abs32\","," \"sec:.bss\","," 138829472"," ],"," ["," \".run\","," 290498,"," \"abs32\","," \"sec:.bss\","," 138829472"," ],"," ["," \".run\","," 290518,"," \"abs32\","," \"sec:.run\","," 309852"," ],"," ["," \".run\","," 290568,"," \"abs32\","," \"sec:.run\","," 309840"," ],"," ["," \".run\","," 290594,"," \"abs32\","," \"sec:.run\","," 309840"," ],"," ["," \".run\","," 290630,"," \"abs32\","," \"sec:.run\","," 309851"," ],"," ["," \".run\","," 290642,"," \"abs32\","," \"sec:.run\","," 309844"," ],"," ["," \".run\","," 290656,"," \"abs32\","," \"sec:.run\","," 309851"," ],"," ["," \".run\","," 290668,"," \"abs32\","," \"sec:.run\","," 309844"," ],"," ["," \".run\","," 290724,"," \"abs32\","," \"sec:.run\","," 309836"," ],"," ["," \".run\","," 290740,"," \"abs32\","," \"sec:.run\","," 309780"," ],"," ["," \".run\","," 290746,"," \"abs32\","," \"sec:.run\","," 309784"," ],"," ["," \".run\","," 290754,"," \"abs32\","," \"sec:.run\","," 309849"," ],"," ["," \".run\","," 290760,"]],[87107,1,[" 290772,"]],[87114,8,[" 290778,"]],[87128,1,[" 290784,"]],[87131,1,[" 309832"]],[87135,1,[" 290818,"]],[87138,1,[" 309849"]],[87142,1,[" 290888,"]],[87145,1,[" 309848"]],[87149,1,[" 290896,"]],[87152,1,[" 309854"]],[87156,1,[" 290906,"]],[87159,1,[" 309853"]],[87163,1,[" 290918,"]],[87166,1,[" 309804"]],[87170,1,[" 290928,"]],[87173,1,[" 309853"]],[87177,1,[" 290936,"]],[87180,1,[" 309853"]],[87184,1,[" 290978,"]],[87186,2,[" \"sec:.run\","," 309804"]],[87191,1,[" 290986,"," \"abs32\","," \"sec:.run\","," 309808"," ],"," ["," \".run\","," 290992,"," \"abs32\","," \"sec:.run\","," 309804"," ],"," ["," \".run\","," 291010,"," \"abs32\","," \"sec:.run\","," 309836"," ],"," ["," \".run\","," 291028,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 291038,"," \"abs32\","," \"sec:.bss\","," 4603552"," ],"," ["," \".run\","," 291132,"," \"abs32\","," \"sec:.run\","," 309812"," ],"," ["," \".run\","," 291152,"," \"abs32\","," \"sec:.run\","," 309816"," ],"," ["," \".run\","," 291158,"," \"abs32\","," \"sec:.run\","," 309812"," ],"," ["," \".run\","," 291208,"," \"abs32\","," \"sec:.run\","," 309836"," ],"," ["," \".run\","," 291214,"," \"abs32\","," \"sec:.run\","," 309848"," ],"," ["," \".run\","," 291220,"," \"abs32\","," \"sec:.run\","," 309849"," ],"," ["," \".run\","," 291266,"," \"abs32\","," \"sec:.run\","," 309836"," ],"," ["," \".run\","," 291286,"," \"abs32\","," \"sec:.run\","," 309836"," ],"," ["," \".run\","," 291312,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 291330,"," \"abs32\","," \"sec:.bss\","," 4603552"," ],"," ["," \".run\","," 291380,"]],[87198,372,[" 291474,"]],[87576,1,[" 291492,"]],[87583,1,[" 291512,"]],[94722,1,[" \"identity.c\": \"e750546404f6a82b04dcf33b19a7584b2a8f8dc3b022f01048229c920c069b76\","]],[94782,1,[" \"usb_base.s\": \"13d93cad9b23c165269865825cf71512650c20f3ffc7741a8b65db6a86adac9c\","]],[94786,1,[" \"usb_reserve.s\": \"6344ae08c3b9aab50bdb9f30ef45b06ead5efffc188f3fd7e50047aeaef38c35\""]]],"fills":[{"tag":"A","shared":2001,"first":0,"count":286,"site":"0x400f0ee3","offset":0},{"tag":"A","shared":2287,"first":0,"count":35,"site":"0x400f0ee3","offset":858},{"tag":"A","shared":2322,"first":0,"count":93,"site":"0x400f0ee3","offset":963},{"tag":"B","shared":1425,"first":0,"count":286,"site":"0x40103e34","offset":0},{"tag":"B","shared":1711,"first":0,"count":35,"site":"0x40103e34","offset":858},{"tag":"B","shared":1746,"first":0,"count":93,"site":"0x40103e34","offset":963},{"tag":"A","fx":4,"first":0,"count":441,"section":".run","offset":336620},{"tag":"A","fx":5,"first":0,"count":261,"section":".run","offset":335830},{"tag":"A","fx":12,"first":0,"count":282,"section":".run","offset":334968},{"tag":"A","fx":13,"first":0,"count":345,"section":".run","offset":333918},{"tag":"A","fx":16,"first":0,"count":207,"section":".run","offset":333282},{"tag":"A","fx":17,"first":0,"count":289,"section":".run","offset":332384},{"tag":"A","fx":18,"first":0,"count":329,"section":".run","offset":331360},{"tag":"A","fx":19,"first":0,"count":277,"section":".run","offset":330498},{"tag":"A","fx":20,"first":0,"count":594,"section":".run","offset":328696},{"tag":"A","fx":21,"first":0,"count":1063,"section":".run","offset":325464},{"tag":"A","fx":22,"first":0,"count":1067,"section":".run","offset":322202},{"tag":"A","fx":24,"first":2,"count":11,"section":".run","offset":321612},{"tag":"A","fx":24,"first":15,"count":165,"section":".run","offset":321651},{"tag":"A","fx":28,"first":0,"count":537,"section":".run","offset":319980},{"tag":"B","fx":4,"first":65,"count":1,"section":".run","offset":319488},{"tag":"B","fx":4,"first":73,"count":1,"section":".run","offset":319491},{"tag":"B","fx":4,"first":158,"count":1,"section":".run","offset":319494},{"tag":"B","fx":4,"first":163,"count":1,"section":".run","offset":319497},{"tag":"B","fx":4,"first":172,"count":1,"section":".run","offset":319500},{"tag":"B","fx":4,"first":182,"count":1,"section":".run","offset":319503},{"tag":"B","fx":4,"first":194,"count":1,"section":".run","offset":319506},{"tag":"B","fx":4,"first":199,"count":1,"section":".run","offset":319509},{"tag":"B","fx":4,"first":207,"count":1,"section":".run","offset":319512},{"tag":"B","fx":4,"first":215,"count":1,"section":".run","offset":319515},{"tag":"B","fx":4,"first":220,"count":1,"section":".run","offset":319518},{"tag":"B","fx":4,"first":225,"count":1,"section":".run","offset":319521},{"tag":"B","fx":4,"first":229,"count":1,"section":".run","offset":319524},{"tag":"B","fx":4,"first":248,"count":1,"section":".run","offset":319527},{"tag":"B","fx":4,"first":266,"count":1,"section":".run","offset":319530},{"tag":"B","fx":4,"first":281,"count":1,"section":".run","offset":319533},{"tag":"B","fx":4,"first":286,"count":1,"section":".run","offset":319536},{"tag":"B","fx":4,"first":290,"count":1,"section":".run","offset":319539},{"tag":"B","fx":4,"first":307,"count":1,"section":".run","offset":319542},{"tag":"B","fx":4,"first":325,"count":1,"section":".run","offset":319545},{"tag":"B","fx":4,"first":374,"count":1,"section":".run","offset":319548},{"tag":"B","fx":5,"first":25,"count":1,"section":".run","offset":319458},{"tag":"B","fx":5,"first":42,"count":1,"section":".run","offset":319461},{"tag":"B","fx":5,"first":62,"count":1,"section":".run","offset":319464},{"tag":"B","fx":5,"first":91,"count":1,"section":".run","offset":319467},{"tag":"B","fx":5,"first":179,"count":1,"section":".run","offset":319470},{"tag":"B","fx":5,"first":181,"count":1,"section":".run","offset":319473},{"tag":"B","fx":12,"first":62,"count":1,"section":".run","offset":319378},{"tag":"B","fx":12,"first":64,"count":1,"section":".run","offset":319381},{"tag":"B","fx":12,"first":68,"count":1,"section":".run","offset":319384},{"tag":"B","fx":12,"first":70,"count":1,"section":".run","offset":319387},{"tag":"B","fx":12,"first":91,"count":1,"section":".run","offset":319390},{"tag":"B","fx":12,"first":93,"count":1,"section":".run","offset":319393},{"tag":"B","fx":12,"first":97,"count":1,"section":".run","offset":319396},{"tag":"B","fx":12,"first":99,"count":1,"section":".run","offset":319399},{"tag":"B","fx":12,"first":165,"count":1,"section":".run","offset":319402},{"tag":"B","fx":12,"first":170,"count":1,"section":".run","offset":319405},{"tag":"B","fx":12,"first":172,"count":1,"section":".run","offset":319408},{"tag":"B","fx":12,"first":174,"count":1,"section":".run","offset":319411},{"tag":"B","fx":12,"first":176,"count":1,"section":".run","offset":319414},{"tag":"B","fx":12,"first":180,"count":1,"section":".run","offset":319417},{"tag":"B","fx":12,"first":182,"count":1,"section":".run","offset":319420},{"tag":"B","fx":12,"first":193,"count":1,"section":".run","offset":319423},{"tag":"B","fx":13,"first":259,"count":1,"section":".run","offset":319372},{"tag":"B","fx":16,"first":23,"count":1,"section":".run","offset":319356},{"tag":"B","fx":16,"first":27,"count":1,"section":".run","offset":319359},{"tag":"B","fx":16,"first":206,"count":1,"section":".run","offset":319362},{"tag":"B","fx":17,"first":30,"count":1,"section":".run","offset":319336},{"tag":"B","fx":17,"first":34,"count":1,"section":".run","offset":319339},{"tag":"B","fx":17,"first":118,"count":1,"section":".run","offset":319342},{"tag":"B","fx":17,"first":288,"count":1,"section":".run","offset":319345},{"tag":"B","fx":18,"first":48,"count":1,"section":".run","offset":319306},{"tag":"B","fx":18,"first":82,"count":1,"section":".run","offset":319309},{"tag":"B","fx":18,"first":87,"count":1,"section":".run","offset":319312},{"tag":"B","fx":18,"first":91,"count":1,"section":".run","offset":319315},{"tag":"B","fx":18,"first":260,"count":1,"section":".run","offset":319318},{"tag":"B","fx":18,"first":328,"count":1,"section":".run","offset":319321},{"tag":"B","fx":19,"first":109,"count":1,"section":".run","offset":319290},{"tag":"B","fx":19,"first":149,"count":1,"section":".run","offset":319293},{"tag":"B","fx":19,"first":276,"count":1,"section":".run","offset":319296},{"tag":"B","fx":20,"first":102,"count":1,"section":".run","offset":319230},{"tag":"B","fx":20,"first":107,"count":1,"section":".run","offset":319233},{"tag":"B","fx":20,"first":116,"count":1,"section":".run","offset":319236},{"tag":"B","fx":20,"first":167,"count":1,"section":".run","offset":319239},{"tag":"B","fx":20,"first":185,"count":1,"section":".run","offset":319242},{"tag":"B","fx":20,"first":239,"count":1,"section":".run","offset":319245},{"tag":"B","fx":20,"first":322,"count":1,"section":".run","offset":319248},{"tag":"B","fx":20,"first":403,"count":1,"section":".run","offset":319251},{"tag":"B","fx":20,"first":425,"count":1,"section":".run","offset":319254},{"tag":"B","fx":20,"first":517,"count":1,"section":".run","offset":319257},{"tag":"B","fx":20,"first":550,"count":1,"section":".run","offset":319260},{"tag":"B","fx":20,"first":590,"count":1,"section":".run","offset":319263},{"tag":"B","fx":21,"first":15,"count":1,"section":".run","offset":319184},{"tag":"B","fx":21,"first":374,"count":1,"section":".run","offset":319187},{"tag":"B","fx":21,"first":406,"count":1,"section":".run","offset":319190},{"tag":"B","fx":21,"first":432,"count":1,"section":".run","offset":319193},{"tag":"B","fx":21,"first":470,"count":1,"section":".run","offset":319196},{"tag":"B","fx":21,"first":478,"count":1,"section":".run","offset":319199},{"tag":"B","fx":21,"first":481,"count":1,"section":".run","offset":319202},{"tag":"B","fx":21,"first":574,"count":1,"section":".run","offset":319205},{"tag":"B","fx":21,"first":800,"count":1,"section":".run","offset":319208},{"tag":"B","fx":22,"first":202,"count":1,"section":".run","offset":319114},{"tag":"B","fx":22,"first":315,"count":1,"section":".run","offset":319117},{"tag":"B","fx":22,"first":402,"count":1,"section":".run","offset":319120},{"tag":"B","fx":22,"first":404,"count":1,"section":".run","offset":319123},{"tag":"B","fx":22,"first":417,"count":1,"section":".run","offset":319126},{"tag":"B","fx":22,"first":457,"count":1,"section":".run","offset":319129},{"tag":"B","fx":22,"first":461,"count":1,"section":".run","offset":319132},{"tag":"B","fx":22,"first":465,"count":1,"section":".run","offset":319135},{"tag":"B","fx":22,"first":492,"count":1,"section":".run","offset":319138},{"tag":"B","fx":22,"first":719,"count":1,"section":".run","offset":319141},{"tag":"B","fx":22,"first":746,"count":1,"section":".run","offset":319144},{"tag":"B","fx":22,"first":800,"count":1,"section":".run","offset":319147},{"tag":"B","fx":22,"first":842,"count":1,"section":".run","offset":319150},{"tag":"B","fx":22,"first":1051,"count":1,"section":".run","offset":319153}]},{"layout":"tracks-post","identity":"239d55a42bcba500a5f2f2cb3b2e7eff0332dc7f9ed98b390175c5c6ed52d901","packageSha256":"0fd6ef7797c20e63cb78824aa1bb0195024e14c960f691da031b36ec301747ee","patch":[[15837,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202000200000005250101010905820200020000000525010103080b04020100200009040400000101200009240100020a2e000008240a100105000011240211030600\""]],[15841,1,[" \"0x400bf48c\","," 10"," ],"," ["," \"hex\","," \"0c24031201010011100000000904050000010220000904050101010220001024011200010100\""," ],"," ["," \"stock\","," \"0x400ba484\","]],[15846,1,[" \"06240201041807058305000302082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000090703010601\""]],[15878,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202000200000005250101010905820200020000000525010103080b04020100200009040400000101200009240100020a2e000008240a100105000011240211030600\""]],[15882,1,[" \"0x400bf48c\","," 10"," ],"," ["," \"hex\","," \"0c24031201010011100000000904050000010220000904050101010220001024011200010100\""," ],"," ["," \"stock\","," \"0x400ba484\","]],[15887,1,[" \"06240201041807058305000302082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[16081,1,[" \"0000000071b946c8ce0c7205b2806600002c71b946c8ce0a4a80670a700113c000000000600a423900000000610005c64eb94001d5244ef94001de742039fc0b01c44ef94001dd0a71b946c8ce0c7205b280660c4879000000004ef94001d81e4879400e20a14ef94001d81e4eb94001d6b86100001a70404ef94001e9226100000e2039fc0b01404ef94001e9584239000000004e75201023c04ec950280280fffff00006800000100023c04ec9502c4ef94001d4b8\""," ],"," ["," \"stock\","," \"0x40000d7e\","," 8"," ],"," ["," \"hex\","," \"4a39000000006724\""," ],"," ["," \"stock\","," \"0x4001d42c\","," 10"," ],"," ["," \"hex\","," \"67084239000000006010\""," ],"," ["," \"stock\","," \"0x4001e68e\","," 10"," ],"," ["," \"hex\","," \"670461000a4c2039fc0b01bc223c00080000c081670c223c0008000023c1fc0b01bc\""," ],"," ["," \"stock\","," \"0x40000d9a\","," 8"," ],"," ["," \"hex\","," \"4ef9000000004a3900000000670000b271b9000000000c8000000002664c740020026100009e2228000408010007670c52820c820000000465e64e75203900000000220092b9000000000481000000406f1223c10000000004800000004023c00000000042390000000070042f00610000a24a806704539766f4588f71b9000000000c80000000016608700213c0000000002039fc0b01b82239fc0b01b08081028000080000661875b900000000610000244a80670a6100003e52b9000000004e75028000000003eb88207c00000000d1c04e75760320026100ffe82228000408010007660a528253836aea70004e75284870014e75227900000000234c000842a9000c203c00080000\""]],[16090,1,[" \"71b9000000002c406100ffa62228000408010007660002384a39000000006700022e203900000000223900000000240094810c8200000400631a52b900000000220004810000040023c100000000243c000004004a3900000000661cb4b900000000640623c200000000b4b900000000630623c2000000002639000000002a39000000004a390000000066282002048000000040e3800c80000000c86f06203c000000c80c80ffffff386c06203cffffff38da80d6852e3c000003e828034c4740042a044c0750002c039c85b484640a52b9000000006000017623c60000000023c40000000023c200000000200ee188e588220ee1899081267c00000000d7c0224b26042239000000000281000003ff203c0000040090814a3900000000672c45f900000000ed89d5c1b6806208200361000120604096802a436100011645f900000000200d6100010a602a45f900000000e789d5c1b6806208200361000116601496802a436100010c45f900000000200d61000100283900000000d9b9000000002c044a39000000006704ed8e6002e78e72012081214b0008220b0281fffff0000681000010002141000c220648410081000000802141000428482a48200e53806100fdec2448204d202a000408000007676224882039fc0b01b0028000080000665674102039fc0b0140008000004000\""]],[16117,1,[" \"ffffbfff23c0fc0b01404a81660c240e52826100fd8e6100fdac200e528002800000000313c00000000070014e7570004e754cd210fe48d110fe4cea10fe002048e910fe002045ea004043e90040538066e04e7522da22da538066f84e75227c00000000721f429953816afa227c0000000070017203228043e9002053816af64239000000004e752039fc0b01580280fffff8000c80400000006d0a0c80500000006c026006203c4ec948000680000001c023c00000000020404e75610000f66100ffc6720f429853816afa2079000000002039fc0b0184e088e088e088e4880280000000030c8000000002661c700113c000000000203c00002b1123c000000000203c630000006018423900000000203c0000ac4423c000000000203c61680000208042a8000470012140000842a8000c6100ff2a2039fc0b01cc02800000ffff00800084000023c0fc0b01cc2039000000000480000000406402700023c00000000042b900000000700113c00000000013c000000000\""]],[16126,1,[" \"0000000042b90000000042b9000000004e75610000202039fc0b01cc02800000ffff23c0fc0b01cc6100feb44239000000004e752f027210203c0008000023c0fc0b01b4243c000100002039fc0b01b40280000800006704538266ee2039fc0b01b80280000800006704538166ca241f4e754a3900000000662a4a39000000006622700113c0000000002039800000e423c0000000007000610001f461000330600001644a3900000000670a423900000000610001867001610001d47200\""]],[16135,1,[" \"0c0000000c800800000057c12039800000e42400b4b900000000660652b90000000023c200000000e188e58806808000319024402839000000002a040285000003ff2005ed8847f900000000d7c0e78d49f900000000d9c543f9000000002a7c007fffff2c7cff8000007c0f4a0166000084204a7a0076007e07241042022011a4000800a1c22002e080da80420202c226c22428000442022019a4000800a1c22002e080d680420202c226c241e8008053876a00ffc62405b48d6f04240d6006b48e6c02240e23c200000000e18a02c228c2b68d6f04260d6006b68e6c02260ee18b02c328c345ea000853866a00ff8460000040204a7e07241042022011a4000800a1c2420202c226c22428000442022019a4000800a1c2420202c226c241e8008053876a00ffd245ea000853866a00ffc45084508423c400000000610001ca71b90000000073b900000000b28067104a8067066100fd20600a6100fdf060084a8167046100f92842b946104d4e4ef94000d9a62039000000000c8000000040640c06800000040023c000000000048000000040723f24000282000003ff2602ed8b41f900000000d1c3780f429853846afae78a41f900000000d1c242984290528053816ad04e752c40a98123c1000000007200a901ab8123c100000000a1c123c1000000007220a901203900000000220052817403c28223c100000000ed8841f900000000d1c0227980003c1045f90000000047f90000000049f9000000007e07755077e8000279e8000430a900023169000400023169000600044c022800ee820c82007fffff6f06243c007fffffee8b0283000000ff26343c00e483e18ae18ba6020800a1c2e082700fc8802a122c2a0004202a0008b0846f02200425440008220e4a81661c26064c003800da8326029685e883721092844c031800da816000004e7210928498802a4b4a8067122605e18be58b2a834bed0020da86538066ee4a8467102605e18be58b2a834bed0020538466f62c029c85e8862605e18be58b2a834bed0020da86538166ee260624852543000445ea000c50885089588b53876a00ff1e4e757000a900203900000000a100203900000000ab00203900000000a9004e7571b946c8ce080c80000000c0661c71b946c8ce090c800000005566000160487900000000703c6000008c0c8000000021670000900c80000000a16600014071b946c8ce0c0c80000000046600013071b946c8ce0d0c80000000106600012071b946c8ce0b73b946c8ce090c8000000001671e0c8000000002660001020c8100000001660000f8487900000000700160240c8100000001660a487900000000700460120c8100000002660000d2487900000000700eb082630220022f004ef94001de5c71b946c8ce0c0c8000000004660000ac71b946c8ce0d0c80000000106600009c71b946c8ce0b0c80000000016600008c71b946c8ce090c80000000016600007c7004b48066000074\""]],[16139,1,[" \"0x4001d13a\","," 10"," ],"," ["," \"hex\","," \"5004\""," ],"," ["," \"stock\","," \"0x4001d530\","," 10"," ],"," ["," \"hex\","," \"5008\""," ],"," ["," \"stock\","," \"0x4001ca96\","," 10"," ],"," ["," \"hex\","," \"5000207946c8ce18203c4ec95000\""," ],"," ["," \"stock\","," \"0x4001d3fa\","," 10"," ],"," ["," \"hex\","," \"7201\""," ],"," ["," \"stock\","," \"0x4001cabc\","]],[16144,1,[" \"223c000186a020394ec95004080000076712538166f0700113c0000000004ef94001de74610000144ef94001de742039fc0b01c04ef94001de6a\""," ],"," ["," \"stock\","," \"0x4001e69c\","," 8"," ],"," ["," \"hex\","," \"42390000000020394ec960000c8044ac000066084eb94001d5244e75\""," ],"," ["," \"stock\","," \"0x4001de64\","," 16"," ],"," ["," \"stock\","," \"0x40003198\","," 8"," ],"," ["," \"hex\","," \"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[17934,1,[" \"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003037383965623034363565303436326336386163636635393035383231366566613563633266343832333939396636646438306134356363333039643163653400323339643535613432626362613530306135663266326362336232653765666630333332646337663965643938623339303137356335633665643532643930\""]],[17938,1,[" \"0x400ba944\","]],[17943,1,[" \"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000312e34304300000000000000000000000032333964353561343262636261353030000100000095a80000002d00000352\""]],[18165,1,[" \"00000000000000000000000000000000000000000000000000000000000000000000000000002b11000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""," ],"," ["," \"hex\","," \"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000460c8122460d0ffa460bf218460c80f0000000000000000000000000000000000000000000000000000000000000000000000000151315141515151615171518151916141715181619131914191519161917191819191b131b141b151b161b171b181b191c131c161c191d131d161d191e131e161e191f131f1921132114211521162117211821192218231623172418251325142515251625172518251959135914591559165917591859195a135a165a195b135b165b195c135c165c195d145d155d175d185f135f145f155f165f175f185f1960136016601961136116611962136216621963136319651366136713671467156716671767186719681369136b146b156b166b176b186b196c136c166d136d166e136e166f146f156f166f176f186f1900151305070000000011001b13050700001100120021130507000023001201591305070000350014015f1305070000490012016513050700005b000b016b130507000066001207ff07ff00030006000c001800300018000c0006000307ff07ff00000000000001fc03fe07070603060306030603070703fe01fc00000000000007ff07ff06030603060306030707038e01fc00f8\""]],[18620,1,[" \"302e372e313100239d55a42bcba500a5f2f2cb3b2e7eff0332dc7f9ed98b390175c5c6ed52d90100000000200000003200000044000000480000004c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[24111,1,[" 5"]],[24137,0,[" \"LAYOUT_TRACKS_POST\": ["," \"abs\","," 5"," ],"]],[24140,0,[" ],"," \"TRACKS16\": ["," \"abs\","," 4294967295"]],[24217,0,[" \"SETUPSTAT\": ["," \"abs\","," 4228579756"," ],"," \"EP0CTRL\": ["," \"abs\","," 4228579776"," ],"," \"EP0OUT_DTD\": ["," \"abs\","," 1321816064"," ],"," \"EP0_BUF\": ["," \"abs\","," 1321820160"," ],"," \"QH0_OUT_PTR\": ["," \"abs\","," 1187565080"," ],"]],[24275,1,[" 64"]],[24283,1,[" 768"]],[24291,1,[" 768"]],[24327,1,[" 290868"]],[24333,0,[" \"uac2_set_pending\": ["," \".run\","," 309849"," ],"," \"uac2_set_done\": ["," \".run\","," 292212"," ],"]],[24335,1,[" 289620"]],[24339,1,[" 309851"]],[24343,1,[" 289808"]],[24349,1,[" \"audio_pkt_build\": ["]],[24351,1,[" 289888"]],[24353,1,[" \"aud_tail\": ["," \".run\","," 309853"," ],"," \"audio_oldest\": ["," \".run\","," 289826"," ],"," \"audio_prime\": ["]],[24357,12,[]],[24371,1,[" 4611744"]],[24383,1,[" 4611872"," ],"," \"aud_hs\": ["," \".run\","," 309852"]],[24389,1,[" \"audio_copy64\": ["]],[24395,1,[" 4603552"]],[24399,1,[" 290516"]],[24403,1,[" 290526"]],[24407,1,[" 290568"]],[24411,1,[" 290620"]],[24415,1,[" 309850"]],[24419,1,[" 290834"]],[24423,1,[" 309855"]],[24427,1,[" 309854"," ],"," \"post_frame\": ["," \".run\","," 291470"," ],"," \"post_emac_leave\": ["," \".run\","," 291790"]],[24431,1,[" 291386"]],[24433,1,[" \"post_gtab\": ["]],[24435,1,[" 310224"]],[24440,0,[" ],"," \"SNAP_PTR\": ["," \"abs\","," 2147499024"," ],"," \"post_emac\": ["," \".run\","," 309860"," ],"," \"post_hidx\": ["," \".run\","," 309856"," ],"," \"post_hist\": ["," \".run\","," 309872"," ],"," \"post_state\": ["," \".run\","," 310128"," ],"," \"post_xlv\": ["," \".run\","," 310736"]],[25803,1,[" 291820"]],[27431,1,[" 290930"]],[86697,1,[" 291820"]],[86946,1,[" 289536,"," \"abs32\","," \"sec:.run\","," 309849"," ],"," ["," \".run\","," 289556,"," \"abs32\","," \"sec:.run\","," 309849"," ],"," ["," \".run\","," 289616,"]],[86953,1,[" 289622,"]],[86960,1,[" 289632,"," \"abs32\","," \"sec:.run\","," 309851"," ],"," ["," \".run\","," 289676,"," \"abs32\","," \"sec:.run\","," 309836"," ],"," ["," \".run\","," 289684,"," \"abs32\","," \"sec:.run\","," 309780"," ],"," ["," \".run\","," 289698,"," \"abs32\","," \"sec:.run\","," 309832"," ],"," ["," \".run\","," 289710,"," \"abs32\","," \"sec:.run\","," 309780"," ],"," ["," \".run\","," 289716,"," \"abs32\","," \"sec:.run\","," 309851"," ],"," ["," \".run\","," 289740,"," \"abs32\","," \"sec:.run\","," 309851"," ],"," ["," \".run\","," 289756,"," \"abs32\","," \"sec:.run\","," 309851"," ],"," ["," \".run\","," 289784,"," \"abs32\","," \"sec:.run\","," 309853"," ],"," ["," \".run\","," 289802,"," \"abs32\","," \"sec:.run\","," 309820"," ],"," ["," \".run\","," 289818,"," \"abs32\","," \"sec:.bss\","," 138829472"," ],"," ["," \".run\","," 289862,"," \"abs32\","," \"sec:.run\","," 309840"," ],"," ["," \".run\","," 289890,"," \"abs32\","," \"sec:.run\","," 309853"," ],"," ["," \".run\","," 289914,"," \"abs32\","," \"sec:.run\","," 309848"," ],"," ["," \".run\","," 289924,"," \"abs32\","," \"sec:.run\","," 309836"," ],"," ["," \".run\","," 289930,"," \"abs32\","," \"sec:.run\","," 309780"," ],"," ["," \".run\","," 289948,"," \"abs32\","," \"sec:.run\","," 309788"," ],"," ["," \".run\","," 289962,"," \"abs32\","," \"sec:.run\","," 309780"," ],"," ["," \".run\","," 289974,"," \"abs32\","," \"sec:.run\","," 309851"," ],"," ["," \".run\","," 289982,"," \"abs32\","," \"sec:.run\","," 309824"," ],"," ["," \".run\","," 289990,"," \"abs32\","," \"sec:.run\","," 309824"," ],"," ["," \".run\","," 289996,"," \"abs32\","," \"sec:.run\","," 309828"," ],"," ["," \".run\","," 290004,"," \"abs32\","," \"sec:.run\","," 309828"," ],"," ["," \".run\","," 290010,"," \"abs32\","," \"sec:.run\","," 309784"," ],"," ["," \".run\","," 290016,"," \"abs32\","," \"sec:.run\","," 309844"," ],"," ["," \".run\","," 290022,"," \"abs32\","," \"sec:.run\","," 309851"," ],"," ["," \".run\","," 290098,"," \"abs32\","," \"sec:.run\","," 309792"," ],"," ["," \".run\","," 290108,"," \"abs32\","," \"sec:.run\","," 309784"," ],"," ["," \".run\","," 290114,"," \"abs32\","," \"sec:.run\","," 309796"," ],"," ["," \".run\","," 290120,"," \"abs32\","," \"sec:.run\","," 309800"," ],"," ["," \".run\","," 290138,"," \"abs32\","," \"sec:.bss\","," 138829600"," ],"," ["," \".run\","," 290150,"," \"abs32\","," \"sec:.run\","," 309780"," ],"," ["," \".run\","," 290170,"," \"abs32\","," \"sec:.run\","," 309852"," ],"," ["," \".run\","," 290178,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 290208,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 290222,"," \"abs32\","," \"sec:.bss\","," 4603552"," ],"," ["," \".run\","," 290252,"," \"abs32\","," \"sec:.bss\","," 4603552"," ],"," ["," \".run\","," 290264,"," \"abs32\","," \"sec:.run\","," 309796"," ],"," ["," \".run\","," 290270,"," \"abs32\","," \"sec:.run\","," 309780"," ],"," ["," \".run\","," 290278,"," \"abs32\","," \"sec:.run\","," 309852"," ],"," ["," \".run\","," 290470,"," \"abs32\","," \"sec:.run\","," 309853"," ],"," ["," \".run\","," 290528,"," \"abs32\","," \"sec:.bss\","," 138829472"," ],"," ["," \".run\","," 290542,"," \"abs32\","," \"sec:.bss\","," 138829472"," ],"," ["," \".run\","," 290562,"," \"abs32\","," \"sec:.run\","," 309853"," ],"," ["," \".run\","," 290612,"," \"abs32\","," \"sec:.run\","," 309840"," ],"," ["," \".run\","," 290638,"," \"abs32\","," \"sec:.run\","," 309840"," ],"," ["," \".run\","," 290674,"," \"abs32\","," \"sec:.run\","," 309852"," ],"," ["," \".run\","," 290686,"," \"abs32\","," \"sec:.run\","," 309844"," ],"," ["," \".run\","," 290700,"," \"abs32\","," \"sec:.run\","," 309852"," ],"," ["," \".run\","," 290712,"," \"abs32\","," \"sec:.run\","," 309844"," ],"," ["," \".run\","," 290768,"," \"abs32\","," \"sec:.run\","," 309836"," ],"," ["," \".run\","," 290784,"," \"abs32\","," \"sec:.run\","," 309780"," ],"," ["," \".run\","," 290790,"," \"abs32\","," \"sec:.run\","," 309784"," ],"," ["," \".run\","," 290798,"]],[86967,8,[" 290804,"]],[86981,1,[" 290816,"]],[86984,1,[" 309824"]],[86988,1,[" 290822,"," \"abs32\","," \"sec:.run\","," 309828"," ],"," ["," \".run\","," 290828,"]],[86995,8,[" 290862,"]],[87009,50,[" 290932,"]],[87065,1,[" 290940,"]],[87068,1,[" 309855"]],[87072,330,[" 290950,"]],[87408,1,[" 290962,"]],[87411,1,[" 309804"," ],"," ["," \".run\","," 290982,"," \"abs32\","," \"sec:.run\","," 309854"]],[87418,0,[" 309854"," ],"," ["," \".run\","," 291036,"," \"abs32\","," \"sec:.run\","]],[87422,1,[" 291044,"]],[87425,8,[" 309808"]],[87443,15,[" 291068,"]],[87464,1,[" 291086,"]],[87471,1,[" 291096,"]],[87474,1,[" 4603552"]],[87478,1,[" 291104,"]],[87480,2,[" \"sec:.run\","," 310224"]],[87485,8,[" 291214,"]],[87499,15,[" 291326,"]],[87520,1,[" 291336,"]],[87527,1,[" 291342,"," \"abs32\","," \"sec:.run\","," 309850"," ],"," ["," \".run\","," 291388,"," \"abs32\","," \"sec:.run\","," 309836"," ],"," ["," \".run\","," 291408,"," \"abs32\","," \"sec:.run\","," 309836"," ],"," ["," \".run\","," 291434,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 291452,"," \"abs32\","," \"sec:.bss\","," 4603552"," ],"," ["," \".run\","," 291476,"," \"abs32\","," \"sec:.run\","," 309860"," ],"," ["," \".run\","," 291488,"," \"abs32\","," \"sec:.run\","," 309868"," ],"," ["," \".run\","," 291496,"," \"abs32\","," \"sec:.run\","," 309864"," ],"," ["," \".run\","," 291506,"," \"abs32\","," \"sec:.run\","," 309856"," ],"," ["," \".run\","," 291520,"," \"abs32\","," \"sec:.run\","," 309856"," ],"," ["," \".run\","," 291528,"," \"abs32\","," \"sec:.run\","," 309872"," ],"," ["," \".run\","," 291542,"," \"abs32\","," \"sec:.run\","," 310128"," ],"," ["," \".run\","," 291548,"," \"abs32\","," \"sec:.run\","," 310224"," ],"," ["," \".run\","," 291554,"," \"abs32\","," \"sec:.run\","," 310736"," ],"," ["," \".run\","," 291796,"," \"abs32\","," \"sec:.run\","," 309864"," ],"," ["," \".run\","," 291804,"," \"abs32\","," \"sec:.run\","," 309868"," ],"," ["," \".run\","," 291812,"," \"abs32\","," \"sec:.run\","," 309860"," ],"," ["," \".run\","," 291852,"," \"abs32\","," \"sec:.run\","," 309780"," ],"," ["," \".run\","," 291956,"," \"abs32\","," \"sec:.run\","," 309778"," ],"," ["," \".run\","," 291974,"," \"abs32\","," \"sec:.run\","," 309760"," ],"," ["," \".run\","," 291994,"," \"abs32\","," \"sec:.run\","," 309764"," ],"," ["," \".run\","," 292180,"]],[87534,1,[" 292222,"]],[87537,50,[" 309849"]],[94722,1,[" \"identity.c\": \"6093b88a120b91a935520964482f4b44546cfa63cdb76310468c1f879b0745f8\","]],[94782,1,[" \"usb_base.s\": \"13d93cad9b23c165269865825cf71512650c20f3ffc7741a8b65db6a86adac9c\","]],[94785,2,[" \"usbaudio.s\": \"5bd354a7c52ab8b4cf7d7515aa47ccbbd4ec3802bb6cf2682df81b86590dbd21\","," \"usb_reserve.s\": \"b87782d0ddb1c0649654596dc614ac1df144ad3ebe149164e2324be3b29d3c0b\""]]],"fills":[{"tag":"A","shared":2001,"first":0,"count":286,"site":"0x400f0ee3","offset":0},{"tag":"A","shared":2287,"first":0,"count":35,"site":"0x400f0ee3","offset":858},{"tag":"A","shared":2322,"first":0,"count":93,"site":"0x400f0ee3","offset":963},{"tag":"B","shared":1425,"first":0,"count":286,"site":"0x40103e34","offset":0},{"tag":"B","shared":1711,"first":0,"count":35,"site":"0x40103e34","offset":858},{"tag":"B","shared":1746,"first":0,"count":93,"site":"0x40103e34","offset":963},{"tag":"A","fx":4,"first":0,"count":441,"section":".run","offset":336620},{"tag":"A","fx":5,"first":0,"count":261,"section":".run","offset":335830},{"tag":"A","fx":12,"first":0,"count":282,"section":".run","offset":334968},{"tag":"A","fx":13,"first":0,"count":345,"section":".run","offset":333918},{"tag":"A","fx":16,"first":0,"count":207,"section":".run","offset":333282},{"tag":"A","fx":17,"first":0,"count":289,"section":".run","offset":332384},{"tag":"A","fx":18,"first":0,"count":329,"section":".run","offset":331360},{"tag":"A","fx":19,"first":0,"count":277,"section":".run","offset":330498},{"tag":"A","fx":20,"first":0,"count":594,"section":".run","offset":328696},{"tag":"A","fx":21,"first":0,"count":1063,"section":".run","offset":325464},{"tag":"A","fx":22,"first":0,"count":1067,"section":".run","offset":322202},{"tag":"A","fx":24,"first":2,"count":11,"section":".run","offset":321612},{"tag":"A","fx":24,"first":15,"count":165,"section":".run","offset":321651},{"tag":"A","fx":28,"first":0,"count":537,"section":".run","offset":319980},{"tag":"B","fx":4,"first":65,"count":1,"section":".run","offset":319488},{"tag":"B","fx":4,"first":73,"count":1,"section":".run","offset":319491},{"tag":"B","fx":4,"first":158,"count":1,"section":".run","offset":319494},{"tag":"B","fx":4,"first":163,"count":1,"section":".run","offset":319497},{"tag":"B","fx":4,"first":172,"count":1,"section":".run","offset":319500},{"tag":"B","fx":4,"first":182,"count":1,"section":".run","offset":319503},{"tag":"B","fx":4,"first":194,"count":1,"section":".run","offset":319506},{"tag":"B","fx":4,"first":199,"count":1,"section":".run","offset":319509},{"tag":"B","fx":4,"first":207,"count":1,"section":".run","offset":319512},{"tag":"B","fx":4,"first":215,"count":1,"section":".run","offset":319515},{"tag":"B","fx":4,"first":220,"count":1,"section":".run","offset":319518},{"tag":"B","fx":4,"first":225,"count":1,"section":".run","offset":319521},{"tag":"B","fx":4,"first":229,"count":1,"section":".run","offset":319524},{"tag":"B","fx":4,"first":248,"count":1,"section":".run","offset":319527},{"tag":"B","fx":4,"first":266,"count":1,"section":".run","offset":319530},{"tag":"B","fx":4,"first":281,"count":1,"section":".run","offset":319533},{"tag":"B","fx":4,"first":286,"count":1,"section":".run","offset":319536},{"tag":"B","fx":4,"first":290,"count":1,"section":".run","offset":319539},{"tag":"B","fx":4,"first":307,"count":1,"section":".run","offset":319542},{"tag":"B","fx":4,"first":325,"count":1,"section":".run","offset":319545},{"tag":"B","fx":4,"first":374,"count":1,"section":".run","offset":319548},{"tag":"B","fx":5,"first":25,"count":1,"section":".run","offset":319458},{"tag":"B","fx":5,"first":42,"count":1,"section":".run","offset":319461},{"tag":"B","fx":5,"first":62,"count":1,"section":".run","offset":319464},{"tag":"B","fx":5,"first":91,"count":1,"section":".run","offset":319467},{"tag":"B","fx":5,"first":179,"count":1,"section":".run","offset":319470},{"tag":"B","fx":5,"first":181,"count":1,"section":".run","offset":319473},{"tag":"B","fx":12,"first":62,"count":1,"section":".run","offset":319378},{"tag":"B","fx":12,"first":64,"count":1,"section":".run","offset":319381},{"tag":"B","fx":12,"first":68,"count":1,"section":".run","offset":319384},{"tag":"B","fx":12,"first":70,"count":1,"section":".run","offset":319387},{"tag":"B","fx":12,"first":91,"count":1,"section":".run","offset":319390},{"tag":"B","fx":12,"first":93,"count":1,"section":".run","offset":319393},{"tag":"B","fx":12,"first":97,"count":1,"section":".run","offset":319396},{"tag":"B","fx":12,"first":99,"count":1,"section":".run","offset":319399},{"tag":"B","fx":12,"first":165,"count":1,"section":".run","offset":319402},{"tag":"B","fx":12,"first":170,"count":1,"section":".run","offset":319405},{"tag":"B","fx":12,"first":172,"count":1,"section":".run","offset":319408},{"tag":"B","fx":12,"first":174,"count":1,"section":".run","offset":319411},{"tag":"B","fx":12,"first":176,"count":1,"section":".run","offset":319414},{"tag":"B","fx":12,"first":180,"count":1,"section":".run","offset":319417},{"tag":"B","fx":12,"first":182,"count":1,"section":".run","offset":319420},{"tag":"B","fx":12,"first":193,"count":1,"section":".run","offset":319423},{"tag":"B","fx":13,"first":259,"count":1,"section":".run","offset":319372},{"tag":"B","fx":16,"first":23,"count":1,"section":".run","offset":319356},{"tag":"B","fx":16,"first":27,"count":1,"section":".run","offset":319359},{"tag":"B","fx":16,"first":206,"count":1,"section":".run","offset":319362},{"tag":"B","fx":17,"first":30,"count":1,"section":".run","offset":319336},{"tag":"B","fx":17,"first":34,"count":1,"section":".run","offset":319339},{"tag":"B","fx":17,"first":118,"count":1,"section":".run","offset":319342},{"tag":"B","fx":17,"first":288,"count":1,"section":".run","offset":319345},{"tag":"B","fx":18,"first":48,"count":1,"section":".run","offset":319306},{"tag":"B","fx":18,"first":82,"count":1,"section":".run","offset":319309},{"tag":"B","fx":18,"first":87,"count":1,"section":".run","offset":319312},{"tag":"B","fx":18,"first":91,"count":1,"section":".run","offset":319315},{"tag":"B","fx":18,"first":260,"count":1,"section":".run","offset":319318},{"tag":"B","fx":18,"first":328,"count":1,"section":".run","offset":319321},{"tag":"B","fx":19,"first":109,"count":1,"section":".run","offset":319290},{"tag":"B","fx":19,"first":149,"count":1,"section":".run","offset":319293},{"tag":"B","fx":19,"first":276,"count":1,"section":".run","offset":319296},{"tag":"B","fx":20,"first":102,"count":1,"section":".run","offset":319230},{"tag":"B","fx":20,"first":107,"count":1,"section":".run","offset":319233},{"tag":"B","fx":20,"first":116,"count":1,"section":".run","offset":319236},{"tag":"B","fx":20,"first":167,"count":1,"section":".run","offset":319239},{"tag":"B","fx":20,"first":185,"count":1,"section":".run","offset":319242},{"tag":"B","fx":20,"first":239,"count":1,"section":".run","offset":319245},{"tag":"B","fx":20,"first":322,"count":1,"section":".run","offset":319248},{"tag":"B","fx":20,"first":403,"count":1,"section":".run","offset":319251},{"tag":"B","fx":20,"first":425,"count":1,"section":".run","offset":319254},{"tag":"B","fx":20,"first":517,"count":1,"section":".run","offset":319257},{"tag":"B","fx":20,"first":550,"count":1,"section":".run","offset":319260},{"tag":"B","fx":20,"first":590,"count":1,"section":".run","offset":319263},{"tag":"B","fx":21,"first":15,"count":1,"section":".run","offset":319184},{"tag":"B","fx":21,"first":374,"count":1,"section":".run","offset":319187},{"tag":"B","fx":21,"first":406,"count":1,"section":".run","offset":319190},{"tag":"B","fx":21,"first":432,"count":1,"section":".run","offset":319193},{"tag":"B","fx":21,"first":470,"count":1,"section":".run","offset":319196},{"tag":"B","fx":21,"first":478,"count":1,"section":".run","offset":319199},{"tag":"B","fx":21,"first":481,"count":1,"section":".run","offset":319202},{"tag":"B","fx":21,"first":574,"count":1,"section":".run","offset":319205},{"tag":"B","fx":21,"first":800,"count":1,"section":".run","offset":319208},{"tag":"B","fx":22,"first":202,"count":1,"section":".run","offset":319114},{"tag":"B","fx":22,"first":315,"count":1,"section":".run","offset":319117},{"tag":"B","fx":22,"first":402,"count":1,"section":".run","offset":319120},{"tag":"B","fx":22,"first":404,"count":1,"section":".run","offset":319123},{"tag":"B","fx":22,"first":417,"count":1,"section":".run","offset":319126},{"tag":"B","fx":22,"first":457,"count":1,"section":".run","offset":319129},{"tag":"B","fx":22,"first":461,"count":1,"section":".run","offset":319132},{"tag":"B","fx":22,"first":465,"count":1,"section":".run","offset":319135},{"tag":"B","fx":22,"first":492,"count":1,"section":".run","offset":319138},{"tag":"B","fx":22,"first":719,"count":1,"section":".run","offset":319141},{"tag":"B","fx":22,"first":746,"count":1,"section":".run","offset":319144},{"tag":"B","fx":22,"first":800,"count":1,"section":".run","offset":319147},{"tag":"B","fx":22,"first":842,"count":1,"section":".run","offset":319150},{"tag":"B","fx":22,"first":1051,"count":1,"section":".run","offset":319153},{"curve":"usb-post-xlv","tag":"A","first":0,"count":256,"section":".run","offset":310736}]},{"layout":"main-cue","identity":"9a5a8d71e043c90677f061534eb83561b7c9074115313c78ca1ece12ab237cda","packageSha256":"f814783190825c6ef90bd93c7a503ca438f37bef755c73e1e69328708579c99d","patch":[[15837,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202000200000005250101010905820200020000000525010103080b04020100200009040400000101200009240100020a2e000008240a100105000011240211030600100400000000000000000c24031201010011100000000904050000010220000904050101010220001024011200010100\""]],[15841,1,[" \"0x400c6780\","]],[15846,1,[" \"06240201041807058305c00002082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000090703010601\""]],[15878,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202000200000005250101010905820200020000000525010103080b04020100200009040400000101200009240100020a2e000008240a100105000011240211030600100400000000000000000c24031201010011100000000904050000010220000904050101010220001024011200010100\""]],[15882,1,[" \"0x400c6780\","]],[15887,1,[" \"06240201041807058305c00002082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[16081,1,[" \"0000000071b946c8ce0c7205b2806600002c71b946c8ce0a4a80670a700113c000000000600a423900000000610005884eb94001d5244ef94001de742039fc0b01c44ef94001dd0a71b946c8ce0c7205b280660c4879000000004ef94001d81e4879400e20a14ef94001d81e4eb94001d6b86100001a70404ef94001e9226100000e2039fc0b01404ef94001e9584239000000004e75201023c04ec950280280fffff00006800000100023c04ec9502c4ef94001d4b84feffff848d700032039fc0b01bc223c00080000c081670c223c0008000023c1fc0b01bc4cd700034fef00084ef9000000004a3900000000670000b271b9000000000c8000000002664c740020026100009e2228000408010007670c52820c820000000465e64e75203900000000220092b9000000000481000000406f1223c10000000004800000004023c00000000042390000000070042f00610000a24a806704539766f4588f71b9000000000c80000000016608700213c0000000002039fc0b01b82239fc0b01b08081028000080000661875b900000000610000244a80670a6100003e52b9000000004e75028000000003eb88207c00000000d1c04e75760320026100ffe82228000408010007660a528253836aea70004e75284870014e75227900000000234c000842a9000c203c00080000\""]],[16090,1,[" \"71b9000000002c406100ffa62228000408010007660002324a390000000067000228203900000000223900000000240094810c8200000400631a52b900000000220004810000040023c100000000243c000004004a3900000000661cb4b900000000640623c200000000b4b900000000630623c2000000002639000000002a39000000004a390000000066282002048000000040e3800c80000000c86f06203c000000c80c80ffffff386c06203cffffff38da80d6852e3c000003e828034c4740042a044c0750002c039c85b484640a52b9000000006000017023c60000000023c40000000023c200000000200ee188e388267c00000000d7c0224b26042239000000000281000003ff203c0000040090814a3900000000672c45f900000000e989d5c1b6806208200361000120604096802a436100011645f900000000200d6100010a602a45f900000000e789d5c1b680620820036100010a601496802a436100010045f900000000200d610000f4283900000000d9b9000000002c044a39000000006704e98e6002e78e72012081214b0008220b0281fffff0000681000010002141000c220648410081000000802141000428482a48200e53806100fdf22448204d202a000408000007676224882039fc0b01b0028000080000665674102039fc0b0140008000004000\""]],[16117,1,[" \"ffffbfff23c0fc0b01404a81660c240e52826100fd946100fdb2200e528002800000000313c00000000070014e7570004e754cd2001e48d1001e45ea001043e90010538066ec4e7522da22da538066f84e75227c00000000721f429953816afa227c0000000070017203228043e9002053816af64239000000004e752039fc0b01580280fffff8000c80400000006d0a0c80500000006c026006203c4ec948000680000001c023c00000000020404e75610000f66100ffc6720f429853816afa2079000000002039fc0b0184e088e088e088e4880280000000030c8000000002661c700113c000000000203c00002b1123c000000000203c60c000006018423900000000203c0000ac4423c000000000203c61680000208042a8000470012140000842a8000c6100ff2a2039fc0b01cc02800000ffff00800084000023c0fc0b01cc2039000000000480000000406402700023c00000000042b900000000700113c00000000013c000000000\""]],[16126,1,[" \"0000000042b90000000042b9000000004e75610000202039fc0b01cc02800000ffff23c0fc0b01cc6100feb44239000000004e752f027210203c0008000023c0fc0b01b4243c000100002039fc0b01b40280000800006704538266ee2039fc0b01b80280000800006704538166ca241f4e754a390000000066204a39000000006618700113c0000000002039800000e423c000000000600000cc4a3900000000670a423900000000610000ee7200\""]],[16135,10,[" \"0c0000000c800800000057c122412839000000002a040285000003ffe98d47f900000000d7c52a040285000003ffe78d49f900000000d9c57c0f7e0f9e86e78f41f980005e60d1c72610420302c326c324280004420202c226c220096600000628c328c27e0f9e86de844a398000003467060687000000200287000003ffe98f45f900000000d5c724280080420202c224c224280084420202c22482508b53866a00ff985084508423c40000000071b90000000073b900000000b28067104a8067066100fdc2600a6100fe9260084a8167046100f9dc42b946104d4e4ef94000d9a62039000000000c8000000040640c06800000040023c000000000048000000040725f24000282000003ff2602e98b41f900000000d1c37803429853846afae78a41f900000000d1c242984290528053816ad04e7571b946c8ce080c80000000c0661c71b946c8ce090c80000000556600009c487900000000703c600000820c80000000a16600008671b946c8ce0c0c80000000046600007671b946c8ce0d0c80000000106600006671b946c8ce0b73b946c8ce090c8000000001671e0c8000000002660000480c81000000016600003e487900000000700160240c8100000001660a487900000000700460120c810000000266000018487900000000700eb082630220022f004ef94001de5c2039fc0b01c04ef94001de6a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[17934,10,[" \"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003232343335316165383933626235303137633333666332643162333136373032303637643232393765316339323464383038623466393364386234323665363800396135613864373165303433633930363737663036313533346562383335363162376339303734313135333133633738636131656365313261623233376364610000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000312e34304300000000000000000000000039613561386437316530343363393036000100000095a80000002d00000352\""]],[18620,1,[" \"302e372e3131009a5a8d71e043c90677f061534eb83561b7c9074115313c78ca1ece12ab237cda00000000200000003200000044000000480000004c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[24111,1,[" 3"]],[24275,1,[" 16"]],[24283,1,[" 192"]],[24291,1,[" 512"]],[24327,1,[" 290806"]],[24343,1,[" 289764"]],[24349,4,[]],[24355,1,[" 289844"]],[24363,1,[" 289782"]],[24367,1,[" 289816"]],[24371,1,[" 4562592"]],[24383,1,[" 4562720"," ],"," \"aud_hs\": ["," \".run\","," 309851"]],[24389,1,[" \"audio_copy16\": ["]],[24391,1,[" 290432"]],[24395,1,[" 4554400"]],[24399,1,[" 290454"]],[24403,1,[" 290464"]],[24407,1,[" 290506"]],[24411,1,[" 290558"]],[24419,1,[" 290772"]],[24431,9,[" 291162"]],[24452,0,[" ],"," \"usbaudio_lastsamp\": ["," \".run\","," 309812"]],[25803,1,[" 291246"]],[27431,1,[" 290868"]],[86697,1,[" 291246"]],[86974,8,[" 289640,"]],[86988,1,[" 289654,"]],[86995,1,[" 289666,"]],[87002,1,[" 289672,"," \"abs32\","," \"sec:.run\","," 309850"," ],"," ["," \".run\","," 289696,"]],[87016,8,[" 289740,"]],[87030,1,[" 289758,"]],[87037,1,[" 289774,"]],[87040,1,[" 138780320"]],[87044,1,[" 289818,"]],[87051,1,[" 289846,"]],[87058,1,[" 289870,"]],[87065,1,[" 289880,"]],[87072,1,[" 289886,"]],[87075,1,[" 309780"," ],"," ["," \".run\","," 289904,"," \"abs32\","," \"sec:.run\","," 309788"]],[87086,1,[" 289930,"]],[87089,1,[" 309850"]],[87093,1,[" 289938,"," \"abs32\","," \"sec:.run\","," 309824"," ],"," ["," \".run\","," 289946,"," \"abs32\","," \"sec:.run\","," 309824"," ],"," ["," \".run\","," 289952,"," \"abs32\","," \"sec:.run\","," 309828"," ],"," ["," \".run\","," 289960,"," \"abs32\","," \"sec:.run\","," 309828"," ],"," ["," \".run\","," 289966,"," \"abs32\","," \"sec:.run\","," 309784"," ],"," ["," \".run\","," 289972,"," \"abs32\","," \"sec:.run\","," 309844"," ],"," ["," \".run\","," 289978,"," \"abs32\","," \"sec:.run\","," 309850"," ],"," ["," \".run\","," 290054,"," \"abs32\","," \"sec:.run\","," 309792"," ],"," ["," \".run\","," 290064,"," \"abs32\","," \"sec:.run\","," 309784"," ],"," ["," \".run\","," 290070,"," \"abs32\","," \"sec:.run\","," 309796"," ],"," ["," \".run\","," 290076,"," \"abs32\","," \"sec:.run\","," 309800"," ],"," ["," \".run\","," 290088,"," \"abs32\","," \"sec:.bss\","," 138780448"," ],"," ["," \".run\","," 290100,"]],[87100,1,[" 290120,"," \"abs32\","," \"sec:.run\","," 309851"," ],"," ["," \".run\","," 290128,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 290158,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 290172,"," \"abs32\","," \"sec:.bss\","," 4554400"," ],"," ["," \".run\","," 290202,"," \"abs32\","," \"sec:.bss\","," 4554400"," ],"," ["," \".run\","," 290214,"," \"abs32\","," \"sec:.run\","," 309796"," ],"," ["," \".run\","," 290220,"," \"abs32\","," \"sec:.run\","," 309780"," ],"," ["," \".run\","," 290228,"," \"abs32\","," \"sec:.run\","," 309851"," ],"," ["," \".run\","," 290420,"," \"abs32\","," \"sec:.run\","," 309852"," ],"," ["," \".run\","," 290466,"," \"abs32\","," \"sec:.bss\","," 138780320"," ],"," ["," \".run\","," 290480,"," \"abs32\","," \"sec:.bss\","," 138780320"," ],"," ["," \".run\","," 290500,"," \"abs32\","," \"sec:.run\","," 309852"," ],"," ["," \".run\","," 290550,"," \"abs32\","," \"sec:.run\","," 309840"," ],"," ["," \".run\","," 290576,"," \"abs32\","," \"sec:.run\","," 309840"," ],"," ["," \".run\","," 290612,"," \"abs32\","," \"sec:.run\","," 309851"," ],"," ["," \".run\","," 290624,"," \"abs32\","," \"sec:.run\","," 309844"," ],"," ["," \".run\","," 290638,"," \"abs32\","," \"sec:.run\","," 309851"," ],"," ["," \".run\","," 290650,"," \"abs32\","," \"sec:.run\","," 309844"," ],"," ["," \".run\","," 290706,"," \"abs32\","," \"sec:.run\","," 309836"," ],"," ["," \".run\","," 290722,"," \"abs32\","," \"sec:.run\","," 309780"," ],"," ["," \".run\","," 290728,"," \"abs32\","," \"sec:.run\","," 309784"," ],"," ["," \".run\","," 290736,"," \"abs32\","," \"sec:.run\","," 309849"," ],"," ["," \".run\","," 290742,"]],[87107,1,[" 290754,"]],[87114,8,[" 290760,"]],[87128,1,[" 290766,"]],[87131,1,[" 309832"]],[87135,1,[" 290800,"]],[87138,1,[" 309849"]],[87142,1,[" 290870,"]],[87145,1,[" 309848"]],[87149,1,[" 290878,"]],[87152,1,[" 309854"]],[87156,1,[" 290888,"]],[87159,1,[" 309853"]],[87163,1,[" 290900,"]],[87166,1,[" 309804"]],[87170,1,[" 290910,"]],[87173,1,[" 309853"]],[87177,1,[" 290918,"]],[87180,1,[" 309853"]],[87184,1,[" 290952,"]],[87186,2,[" \"sec:.run\","," 309836"]],[87191,1,[" 290968,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 290986,"," \"abs32\","," \"sec:.bss\","," 4554400"," ],"," ["," \".run\","," 291066,"," \"abs32\","," \"sec:.bss\","," 4538024"," ],"," ["," \".run\","," 291106,"," \"abs32\","," \"sec:.run\","," 309836"," ],"," ["," \".run\","," 291112,"," \"abs32\","," \"sec:.run\","," 309848"," ],"," ["," \".run\","," 291118,"," \"abs32\","," \"sec:.run\","," 309849"," ],"," ["," \".run\","," 291164,"," \"abs32\","," \"sec:.run\","," 309836"," ],"," ["," \".run\","," 291184,"," \"abs32\","," \"sec:.run\","," 309836"," ],"," ["," \".run\","," 291210,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 291228,"," \"abs32\","," \"sec:.bss\","," 4554400"," ],"," ["," \".run\","," 291278,"]],[87198,372,[" 291372,"]],[87576,1,[" 291390,"]],[87583,1,[" 291410,"]],[94722,1,[" \"identity.c\": \"9bece87ba4e850907532ca507407ee280f77170d81ff3b48ac0c689d06c9991e\","]],[94782,1,[" \"usb_base.s\": \"5e34aa172c0959da20ab7a9663b8495a060e389b5198ed532c4da0e56ee1b262\","]],[94786,1,[" \"usb_reserve.s\": \"15d1f3ad805d3907c7dd3bfc1c4d53e2a02c76204604575c9219914e4ee19a55\""]]],"fills":[{"tag":"A","shared":2001,"first":0,"count":286,"site":"0x400f0ee3","offset":0},{"tag":"A","shared":2287,"first":0,"count":35,"site":"0x400f0ee3","offset":858},{"tag":"A","shared":2322,"first":0,"count":93,"site":"0x400f0ee3","offset":963},{"tag":"B","shared":1425,"first":0,"count":286,"site":"0x40103e34","offset":0},{"tag":"B","shared":1711,"first":0,"count":35,"site":"0x40103e34","offset":858},{"tag":"B","shared":1746,"first":0,"count":93,"site":"0x40103e34","offset":963},{"tag":"A","fx":4,"first":0,"count":441,"section":".run","offset":336620},{"tag":"A","fx":5,"first":0,"count":261,"section":".run","offset":335830},{"tag":"A","fx":12,"first":0,"count":282,"section":".run","offset":334968},{"tag":"A","fx":13,"first":0,"count":345,"section":".run","offset":333918},{"tag":"A","fx":16,"first":0,"count":207,"section":".run","offset":333282},{"tag":"A","fx":17,"first":0,"count":289,"section":".run","offset":332384},{"tag":"A","fx":18,"first":0,"count":329,"section":".run","offset":331360},{"tag":"A","fx":19,"first":0,"count":277,"section":".run","offset":330498},{"tag":"A","fx":20,"first":0,"count":594,"section":".run","offset":328696},{"tag":"A","fx":21,"first":0,"count":1063,"section":".run","offset":325464},{"tag":"A","fx":22,"first":0,"count":1067,"section":".run","offset":322202},{"tag":"A","fx":24,"first":2,"count":11,"section":".run","offset":321612},{"tag":"A","fx":24,"first":15,"count":165,"section":".run","offset":321651},{"tag":"A","fx":28,"first":0,"count":537,"section":".run","offset":319980},{"tag":"B","fx":4,"first":65,"count":1,"section":".run","offset":319488},{"tag":"B","fx":4,"first":73,"count":1,"section":".run","offset":319491},{"tag":"B","fx":4,"first":158,"count":1,"section":".run","offset":319494},{"tag":"B","fx":4,"first":163,"count":1,"section":".run","offset":319497},{"tag":"B","fx":4,"first":172,"count":1,"section":".run","offset":319500},{"tag":"B","fx":4,"first":182,"count":1,"section":".run","offset":319503},{"tag":"B","fx":4,"first":194,"count":1,"section":".run","offset":319506},{"tag":"B","fx":4,"first":199,"count":1,"section":".run","offset":319509},{"tag":"B","fx":4,"first":207,"count":1,"section":".run","offset":319512},{"tag":"B","fx":4,"first":215,"count":1,"section":".run","offset":319515},{"tag":"B","fx":4,"first":220,"count":1,"section":".run","offset":319518},{"tag":"B","fx":4,"first":225,"count":1,"section":".run","offset":319521},{"tag":"B","fx":4,"first":229,"count":1,"section":".run","offset":319524},{"tag":"B","fx":4,"first":248,"count":1,"section":".run","offset":319527},{"tag":"B","fx":4,"first":266,"count":1,"section":".run","offset":319530},{"tag":"B","fx":4,"first":281,"count":1,"section":".run","offset":319533},{"tag":"B","fx":4,"first":286,"count":1,"section":".run","offset":319536},{"tag":"B","fx":4,"first":290,"count":1,"section":".run","offset":319539},{"tag":"B","fx":4,"first":307,"count":1,"section":".run","offset":319542},{"tag":"B","fx":4,"first":325,"count":1,"section":".run","offset":319545},{"tag":"B","fx":4,"first":374,"count":1,"section":".run","offset":319548},{"tag":"B","fx":5,"first":25,"count":1,"section":".run","offset":319458},{"tag":"B","fx":5,"first":42,"count":1,"section":".run","offset":319461},{"tag":"B","fx":5,"first":62,"count":1,"section":".run","offset":319464},{"tag":"B","fx":5,"first":91,"count":1,"section":".run","offset":319467},{"tag":"B","fx":5,"first":179,"count":1,"section":".run","offset":319470},{"tag":"B","fx":5,"first":181,"count":1,"section":".run","offset":319473},{"tag":"B","fx":12,"first":62,"count":1,"section":".run","offset":319378},{"tag":"B","fx":12,"first":64,"count":1,"section":".run","offset":319381},{"tag":"B","fx":12,"first":68,"count":1,"section":".run","offset":319384},{"tag":"B","fx":12,"first":70,"count":1,"section":".run","offset":319387},{"tag":"B","fx":12,"first":91,"count":1,"section":".run","offset":319390},{"tag":"B","fx":12,"first":93,"count":1,"section":".run","offset":319393},{"tag":"B","fx":12,"first":97,"count":1,"section":".run","offset":319396},{"tag":"B","fx":12,"first":99,"count":1,"section":".run","offset":319399},{"tag":"B","fx":12,"first":165,"count":1,"section":".run","offset":319402},{"tag":"B","fx":12,"first":170,"count":1,"section":".run","offset":319405},{"tag":"B","fx":12,"first":172,"count":1,"section":".run","offset":319408},{"tag":"B","fx":12,"first":174,"count":1,"section":".run","offset":319411},{"tag":"B","fx":12,"first":176,"count":1,"section":".run","offset":319414},{"tag":"B","fx":12,"first":180,"count":1,"section":".run","offset":319417},{"tag":"B","fx":12,"first":182,"count":1,"section":".run","offset":319420},{"tag":"B","fx":12,"first":193,"count":1,"section":".run","offset":319423},{"tag":"B","fx":13,"first":259,"count":1,"section":".run","offset":319372},{"tag":"B","fx":16,"first":23,"count":1,"section":".run","offset":319356},{"tag":"B","fx":16,"first":27,"count":1,"section":".run","offset":319359},{"tag":"B","fx":16,"first":206,"count":1,"section":".run","offset":319362},{"tag":"B","fx":17,"first":30,"count":1,"section":".run","offset":319336},{"tag":"B","fx":17,"first":34,"count":1,"section":".run","offset":319339},{"tag":"B","fx":17,"first":118,"count":1,"section":".run","offset":319342},{"tag":"B","fx":17,"first":288,"count":1,"section":".run","offset":319345},{"tag":"B","fx":18,"first":48,"count":1,"section":".run","offset":319306},{"tag":"B","fx":18,"first":82,"count":1,"section":".run","offset":319309},{"tag":"B","fx":18,"first":87,"count":1,"section":".run","offset":319312},{"tag":"B","fx":18,"first":91,"count":1,"section":".run","offset":319315},{"tag":"B","fx":18,"first":260,"count":1,"section":".run","offset":319318},{"tag":"B","fx":18,"first":328,"count":1,"section":".run","offset":319321},{"tag":"B","fx":19,"first":109,"count":1,"section":".run","offset":319290},{"tag":"B","fx":19,"first":149,"count":1,"section":".run","offset":319293},{"tag":"B","fx":19,"first":276,"count":1,"section":".run","offset":319296},{"tag":"B","fx":20,"first":102,"count":1,"section":".run","offset":319230},{"tag":"B","fx":20,"first":107,"count":1,"section":".run","offset":319233},{"tag":"B","fx":20,"first":116,"count":1,"section":".run","offset":319236},{"tag":"B","fx":20,"first":167,"count":1,"section":".run","offset":319239},{"tag":"B","fx":20,"first":185,"count":1,"section":".run","offset":319242},{"tag":"B","fx":20,"first":239,"count":1,"section":".run","offset":319245},{"tag":"B","fx":20,"first":322,"count":1,"section":".run","offset":319248},{"tag":"B","fx":20,"first":403,"count":1,"section":".run","offset":319251},{"tag":"B","fx":20,"first":425,"count":1,"section":".run","offset":319254},{"tag":"B","fx":20,"first":517,"count":1,"section":".run","offset":319257},{"tag":"B","fx":20,"first":550,"count":1,"section":".run","offset":319260},{"tag":"B","fx":20,"first":590,"count":1,"section":".run","offset":319263},{"tag":"B","fx":21,"first":15,"count":1,"section":".run","offset":319184},{"tag":"B","fx":21,"first":374,"count":1,"section":".run","offset":319187},{"tag":"B","fx":21,"first":406,"count":1,"section":".run","offset":319190},{"tag":"B","fx":21,"first":432,"count":1,"section":".run","offset":319193},{"tag":"B","fx":21,"first":470,"count":1,"section":".run","offset":319196},{"tag":"B","fx":21,"first":478,"count":1,"section":".run","offset":319199},{"tag":"B","fx":21,"first":481,"count":1,"section":".run","offset":319202},{"tag":"B","fx":21,"first":574,"count":1,"section":".run","offset":319205},{"tag":"B","fx":21,"first":800,"count":1,"section":".run","offset":319208},{"tag":"B","fx":22,"first":202,"count":1,"section":".run","offset":319114},{"tag":"B","fx":22,"first":315,"count":1,"section":".run","offset":319117},{"tag":"B","fx":22,"first":402,"count":1,"section":".run","offset":319120},{"tag":"B","fx":22,"first":404,"count":1,"section":".run","offset":319123},{"tag":"B","fx":22,"first":417,"count":1,"section":".run","offset":319126},{"tag":"B","fx":22,"first":457,"count":1,"section":".run","offset":319129},{"tag":"B","fx":22,"first":461,"count":1,"section":".run","offset":319132},{"tag":"B","fx":22,"first":465,"count":1,"section":".run","offset":319135},{"tag":"B","fx":22,"first":492,"count":1,"section":".run","offset":319138},{"tag":"B","fx":22,"first":719,"count":1,"section":".run","offset":319141},{"tag":"B","fx":22,"first":746,"count":1,"section":".run","offset":319144},{"tag":"B","fx":22,"first":800,"count":1,"section":".run","offset":319147},{"tag":"B","fx":22,"first":842,"count":1,"section":".run","offset":319150},{"tag":"B","fx":22,"first":1051,"count":1,"section":".run","offset":319153}]},{"layout":"main","identity":"74e6960203037c8aed242930fc060e83ca2c40f8435f716319a9e2899f119ef4","packageSha256":"1f559c500f79f2c6aea0378214c6dc57e8070b052ef5bba687d3f202a5600273","patch":[[15814,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202400000000005250101010905820240000000000525010103080b04020100200009040400000101200009240100020a2e000008240a1001050000112402110306001002\""]],[15818,1,[" \"0x400cb87e\","]],[15823,1,[" \"0c24031201010011100000000904050000010220000904050101010220001024011200010100000002030000000006240201041807058305680101082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000090203010601\""]],[15837,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202000200000005250101010905820200020000000525010103080b04020100200009040400000101200009240100020a2e000008240a1001050000112402110306001002\""]],[15841,1,[" \"0x400cb87e\","]],[15846,1,[" \"0c24031201010011100000000904050000010220000904050101010220001024011200010100000002030000000006240201041807058305600002082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000090703010601\""]],[15855,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202400000000005250101010905820240000000000525010103080b04020100200009040400000101200009240100020a2e000008240a1001050000112402110306001002\""]],[15859,1,[" \"0x400cb87e\","]],[15864,1,[" \"0c24031201010011100000000904050000010220000904050101010220001024011200010100000002030000000006240201041807058305680101082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000090703010601\""]],[15878,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202000200000005250101010905820200020000000525010103080b04020100200009040400000101200009240100020a2e000008240a1001050000112402110306001002\""]],[15882,1,[" \"0x400cb87e\","]],[15887,1,[" \"0c24031201010011100000000904050000010220000904050101010220001024011200010100000002030000000006240201041807058305600002082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[16081,1,[" \"0000000071b946c8ce0c7205b2806600002c71b946c8ce0a4a80670a700113c000000000600a423900000000610005724eb94001d5244ef94001de742039fc0b01c44ef94001dd0a71b946c8ce0c7205b280660c4879000000004ef94001d81e4879400e20a14ef94001d81e4eb94001d6b86100001a70404ef94001e9226100000e2039fc0b01404ef94001e9584239000000004e75201023c04ec950280280fffff00006800000100023c04ec9502c4ef94001d4b84feffff848d700032039fc0b01bc223c00080000c081670c223c0008000023c1fc0b01bc4cd700034fef00084ef9000000004a3900000000670000b271b9000000000c8000000002664c740020026100009e2228000408010007670c52820c820000000465e64e75203900000000220092b9000000000481000000406f1223c10000000004800000004023c00000000042390000000070042f00610000a24a806704539766f4588f71b9000000000c80000000016608700213c0000000002039fc0b01b82239fc0b01b08081028000080000661875b900000000610000244a80670a6100003e52b9000000004e75028000000003eb88207c00000000d1c04e75760320026100ffe82228000408010007660a528253836aea70004e75284870014e75227900000000234c000842a9000c203c00080000\""]],[16090,1,[" \"71b9000000002c406100ffa62228000408010007660002324a390000000067000228203900000000223900000000240094810c8200000400631a52b900000000220004810000040023c100000000243c000004004a3900000000661cb4b900000000640623c200000000b4b900000000630623c2000000002639000000002a39000000004a390000000066282002048000000040e3800c80000000c86f06203c000000c80c80ffffff386c06203cffffff38da80d6852e3c000003e828034c4740042a044c0750002c039c85b484640a52b9000000006000017023c60000000023c40000000023c200000000200ee188e388267c00000000d7c0224b26042239000000000281000003ff203c0000040090814a3900000000672c45f900000000e789d5c1b6806208200361000120604096802a436100011645f900000000200d6100010a602a45f900000000e789d5c1b68062082003610000f4601496802a43610000ea45f900000000200d610000de283900000000d9b9000000002c044a39000000006704e78e6002e78e72012081214b0008220b0281fffff0000681000010002141000c220648410081000000802141000428482a48200e53806100fdf22448204d202a000408000007676224882039fc0b01b0028000080000665674102039fc0b0140008000004000\""]],[16117,1,[" \"ffffbfff23c0fc0b01404a81660c240e52826100fd946100fdb2200e528002800000000313c00000000070014e7570004e7522da22da538066f84e75227c00000000721f429953816afa227c0000000070017203228043e9002053816af64239000000004e752039fc0b01580280fffff8000c80400000006d0a0c80500000006c026006203c4ec948000680000001c023c00000000020404e75610000f66100ffc6720f429853816afa2079000000002039fc0b0184e088e088e088e4880280000000030c8000000002661c700113c000000000203c00002b1123c000000000203c606000006018423900000000203c0000ac4423c000000000203c61680000208042a8000470012140000842a8000c6100ff2a2039fc0b01cc02800000ffff00800084000023c0fc0b01cc2039000000000480000000406402700023c00000000042b900000000700113c00000000013c000000000\""]],[16126,19,[" \"0000000042b90000000042b9000000004e75610000202039fc0b01cc02800000ffff23c0fc0b01cc6100feb44239000000004e752f027210203c0008000023c0fc0b01b4243c000100002039fc0b01b40280000800006704538266ee2039fc0b01b80280000800006704538166ca241f4e754a390000000066204a39000000006618700113c0000000002039800000e423c000000000600000524a3900000000670a423900000000610000742839000000002a040285000003ffe78d47f900000000d7c545f980005e607c0f241a420202c226c2241a420202c226c253866aec5084508423c40000000071b90000000073b900000000b28067104a8067066100fe3c600a6100ff0c60084a8167046100fa6c42b946104d4e4ef94000d9a62039000000000c8000000040640c06800000040023c000000000048000000040723f24000282000003ff2602e78b41f900000000d1c37801429853846afae78a41f900000000d1c242984290528053816ad04e7571b946c8ce080c80000000c0661c71b946c8ce090c80000000556600009c487900000000703c600000820c80000000a16600008671b946c8ce0c0c80000000046600007671b946c8ce0d0c80000000106600006671b946c8ce0b73b946c8ce090c8000000001671e0c8000000002660000480c81000000016600003e487900000000700160240c8100000001660a487900000000700460120c810000000266000018487900000000700eb082630220022f004ef94001de5c2039fc0b01c04ef94001de6a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[17934,1,[" \"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003232343335316165383933626235303137633333666332643162333136373032303637643232393765316339323464383038623466393364386234323665363800373465363936303230333033376338616564323432393330666330363065383363613263343066383433356637313633313961396532383939663131396566\""]],[17938,1,[" \"0x400ba95e\","]],[17943,1,[" \"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000312e34304300000000000000000000000037346536393630323033303337633861000100000095a80000002d00000352\""]],[18620,1,[" \"302e372e31310074e6960203037c8aed242930fc060e83ca2c40f8435f716319a9e2899f119ef400000000200000003200000044000000480000004c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[24111,1,[" 4"]],[24139,1,[" 4294967295"]],[24275,1,[" 8"]],[24283,1,[" 96"]],[24291,1,[" 512"]],[24327,1,[" 290784"]],[24343,1,[" 289764"]],[24349,4,[]],[24355,1,[" 289844"]],[24363,1,[" 289782"]],[24367,1,[" 289816"]],[24371,1,[" 4546208"]],[24383,1,[" 4546336"," ],"," \"aud_hs\": ["," \".run\","," 309851"]],[24389,1,[" \"audio_copy8\": ["]],[24391,1,[" 290432"]],[24395,5,[" 4538016"]],[24403,1,[" 290442"]],[24407,1,[" 290484"]],[24411,1,[" 290536"]],[24419,1,[" 290750"]],[24431,9,[" 291018"]],[24452,0,[" ],"," \"usbaudio_lastsamp\": ["," \".run\","," 309812"]],[25803,1,[" 291102"]],[27431,1,[" 290846"]],[86697,1,[" 291102"]],[86974,8,[" 289640,"]],[86988,1,[" 289654,"]],[86995,1,[" 289666,"]],[87002,1,[" 289672,"," \"abs32\","," \"sec:.run\","," 309850"," ],"," ["," \".run\","," 289696,"]],[87016,8,[" 289740,"]],[87030,1,[" 289758,"]],[87037,1,[" 289774,"]],[87040,1,[" 138763936"]],[87044,1,[" 289818,"]],[87051,1,[" 289846,"]],[87058,1,[" 289870,"]],[87065,1,[" 289880,"]],[87072,1,[" 289886,"]],[87075,1,[" 309780"," ],"," ["," \".run\","," 289904,"," \"abs32\","," \"sec:.run\","," 309788"]],[87086,1,[" 289930,"]],[87089,1,[" 309850"]],[87093,1,[" 289938,"," \"abs32\","," \"sec:.run\","," 309824"," ],"," ["," \".run\","," 289946,"," \"abs32\","," \"sec:.run\","," 309824"," ],"," ["," \".run\","," 289952,"," \"abs32\","," \"sec:.run\","," 309828"," ],"," ["," \".run\","," 289960,"," \"abs32\","," \"sec:.run\","," 309828"," ],"," ["," \".run\","," 289966,"," \"abs32\","," \"sec:.run\","," 309784"," ],"," ["," \".run\","," 289972,"," \"abs32\","," \"sec:.run\","," 309844"," ],"," ["," \".run\","," 289978,"," \"abs32\","," \"sec:.run\","," 309850"," ],"," ["," \".run\","," 290054,"," \"abs32\","," \"sec:.run\","," 309792"," ],"," ["," \".run\","," 290064,"," \"abs32\","," \"sec:.run\","," 309784"," ],"," ["," \".run\","," 290070,"," \"abs32\","," \"sec:.run\","," 309796"," ],"," ["," \".run\","," 290076,"," \"abs32\","," \"sec:.run\","," 309800"," ],"," ["," \".run\","," 290088,"," \"abs32\","," \"sec:.bss\","," 138764064"," ],"," ["," \".run\","," 290100,"]],[87100,99,[" 290120,"]],[87205,1,[" 290128,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 290158,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 290172,"]],[87219,15,[" 290214,"]],[87240,1,[" 290220,"]],[87247,1,[" 290228,"]],[87254,1,[" 290420,"]],[87261,1,[" 290444,"]],[87264,1,[" 138763936"]],[87268,1,[" 290458,"]],[87271,1,[" 138763936"]],[87275,1,[" 290478,"]],[87282,1,[" 290528,"]],[87289,1,[" 290554,"]],[87296,1,[" 290590,"]],[87303,1,[" 290602,"]],[87310,1,[" 290616,"]],[87317,1,[" 290628,"]],[87324,1,[" 290684,"]],[87331,8,[" 290700,"]],[87345,1,[" 290706,"]],[87352,1,[" 290714,"]],[87359,1,[" 290720,"]],[87366,1,[" 290732,"]],[87373,1,[" 290738,"]],[87380,1,[" 290744,"]],[87387,1,[" 290778,"]],[87394,1,[" 290848,"]],[87401,1,[" 290856,"]],[87408,1,[" 290866,"]],[87415,1,[" 290878,"]],[87422,1,[" 290888,"]],[87429,1,[" 290896,"]],[87436,22,[" 290906,"]],[87464,1,[" 290922,"]],[87471,43,[" 290962,"]],[87520,1,[" 290968,"]],[87527,1,[" 290974,"]],[87534,1,[" 291020,"]],[87541,1,[" 291040,"]],[87548,1,[" 291066,"]],[87555,1,[" 291084,"]],[87558,1,[" 4538016"]],[87562,1,[" 291134,"]],[87569,1,[" 291228,"]],[87576,1,[" 291246,"]],[87583,1,[" 291266,"]],[94722,1,[" \"identity.c\": \"296cc570f6a77168c187b21f70a3537f80fe75f57279312e11f7230292b384c7\","]],[94782,1,[" \"usb_base.s\": \"b7c69c3d8f1ef6b425d100958b491eb33da33f2cbf4e37676ea9c312cbee87b2\","]],[94786,1,[" \"usb_reserve.s\": \"7a6bcd93f67a050b9f647d8328f6e58348b50814e0f1a60e2c167a92ec986ff0\""]]],"fills":[{"tag":"A","shared":2001,"first":0,"count":286,"site":"0x400f0ee3","offset":0},{"tag":"A","shared":2287,"first":0,"count":35,"site":"0x400f0ee3","offset":858},{"tag":"A","shared":2322,"first":0,"count":93,"site":"0x400f0ee3","offset":963},{"tag":"B","shared":1425,"first":0,"count":286,"site":"0x40103e34","offset":0},{"tag":"B","shared":1711,"first":0,"count":35,"site":"0x40103e34","offset":858},{"tag":"B","shared":1746,"first":0,"count":93,"site":"0x40103e34","offset":963},{"tag":"A","fx":4,"first":0,"count":441,"section":".run","offset":336620},{"tag":"A","fx":5,"first":0,"count":261,"section":".run","offset":335830},{"tag":"A","fx":12,"first":0,"count":282,"section":".run","offset":334968},{"tag":"A","fx":13,"first":0,"count":345,"section":".run","offset":333918},{"tag":"A","fx":16,"first":0,"count":207,"section":".run","offset":333282},{"tag":"A","fx":17,"first":0,"count":289,"section":".run","offset":332384},{"tag":"A","fx":18,"first":0,"count":329,"section":".run","offset":331360},{"tag":"A","fx":19,"first":0,"count":277,"section":".run","offset":330498},{"tag":"A","fx":20,"first":0,"count":594,"section":".run","offset":328696},{"tag":"A","fx":21,"first":0,"count":1063,"section":".run","offset":325464},{"tag":"A","fx":22,"first":0,"count":1067,"section":".run","offset":322202},{"tag":"A","fx":24,"first":2,"count":11,"section":".run","offset":321612},{"tag":"A","fx":24,"first":15,"count":165,"section":".run","offset":321651},{"tag":"A","fx":28,"first":0,"count":537,"section":".run","offset":319980},{"tag":"B","fx":4,"first":65,"count":1,"section":".run","offset":319488},{"tag":"B","fx":4,"first":73,"count":1,"section":".run","offset":319491},{"tag":"B","fx":4,"first":158,"count":1,"section":".run","offset":319494},{"tag":"B","fx":4,"first":163,"count":1,"section":".run","offset":319497},{"tag":"B","fx":4,"first":172,"count":1,"section":".run","offset":319500},{"tag":"B","fx":4,"first":182,"count":1,"section":".run","offset":319503},{"tag":"B","fx":4,"first":194,"count":1,"section":".run","offset":319506},{"tag":"B","fx":4,"first":199,"count":1,"section":".run","offset":319509},{"tag":"B","fx":4,"first":207,"count":1,"section":".run","offset":319512},{"tag":"B","fx":4,"first":215,"count":1,"section":".run","offset":319515},{"tag":"B","fx":4,"first":220,"count":1,"section":".run","offset":319518},{"tag":"B","fx":4,"first":225,"count":1,"section":".run","offset":319521},{"tag":"B","fx":4,"first":229,"count":1,"section":".run","offset":319524},{"tag":"B","fx":4,"first":248,"count":1,"section":".run","offset":319527},{"tag":"B","fx":4,"first":266,"count":1,"section":".run","offset":319530},{"tag":"B","fx":4,"first":281,"count":1,"section":".run","offset":319533},{"tag":"B","fx":4,"first":286,"count":1,"section":".run","offset":319536},{"tag":"B","fx":4,"first":290,"count":1,"section":".run","offset":319539},{"tag":"B","fx":4,"first":307,"count":1,"section":".run","offset":319542},{"tag":"B","fx":4,"first":325,"count":1,"section":".run","offset":319545},{"tag":"B","fx":4,"first":374,"count":1,"section":".run","offset":319548},{"tag":"B","fx":5,"first":25,"count":1,"section":".run","offset":319458},{"tag":"B","fx":5,"first":42,"count":1,"section":".run","offset":319461},{"tag":"B","fx":5,"first":62,"count":1,"section":".run","offset":319464},{"tag":"B","fx":5,"first":91,"count":1,"section":".run","offset":319467},{"tag":"B","fx":5,"first":179,"count":1,"section":".run","offset":319470},{"tag":"B","fx":5,"first":181,"count":1,"section":".run","offset":319473},{"tag":"B","fx":12,"first":62,"count":1,"section":".run","offset":319378},{"tag":"B","fx":12,"first":64,"count":1,"section":".run","offset":319381},{"tag":"B","fx":12,"first":68,"count":1,"section":".run","offset":319384},{"tag":"B","fx":12,"first":70,"count":1,"section":".run","offset":319387},{"tag":"B","fx":12,"first":91,"count":1,"section":".run","offset":319390},{"tag":"B","fx":12,"first":93,"count":1,"section":".run","offset":319393},{"tag":"B","fx":12,"first":97,"count":1,"section":".run","offset":319396},{"tag":"B","fx":12,"first":99,"count":1,"section":".run","offset":319399},{"tag":"B","fx":12,"first":165,"count":1,"section":".run","offset":319402},{"tag":"B","fx":12,"first":170,"count":1,"section":".run","offset":319405},{"tag":"B","fx":12,"first":172,"count":1,"section":".run","offset":319408},{"tag":"B","fx":12,"first":174,"count":1,"section":".run","offset":319411},{"tag":"B","fx":12,"first":176,"count":1,"section":".run","offset":319414},{"tag":"B","fx":12,"first":180,"count":1,"section":".run","offset":319417},{"tag":"B","fx":12,"first":182,"count":1,"section":".run","offset":319420},{"tag":"B","fx":12,"first":193,"count":1,"section":".run","offset":319423},{"tag":"B","fx":13,"first":259,"count":1,"section":".run","offset":319372},{"tag":"B","fx":16,"first":23,"count":1,"section":".run","offset":319356},{"tag":"B","fx":16,"first":27,"count":1,"section":".run","offset":319359},{"tag":"B","fx":16,"first":206,"count":1,"section":".run","offset":319362},{"tag":"B","fx":17,"first":30,"count":1,"section":".run","offset":319336},{"tag":"B","fx":17,"first":34,"count":1,"section":".run","offset":319339},{"tag":"B","fx":17,"first":118,"count":1,"section":".run","offset":319342},{"tag":"B","fx":17,"first":288,"count":1,"section":".run","offset":319345},{"tag":"B","fx":18,"first":48,"count":1,"section":".run","offset":319306},{"tag":"B","fx":18,"first":82,"count":1,"section":".run","offset":319309},{"tag":"B","fx":18,"first":87,"count":1,"section":".run","offset":319312},{"tag":"B","fx":18,"first":91,"count":1,"section":".run","offset":319315},{"tag":"B","fx":18,"first":260,"count":1,"section":".run","offset":319318},{"tag":"B","fx":18,"first":328,"count":1,"section":".run","offset":319321},{"tag":"B","fx":19,"first":109,"count":1,"section":".run","offset":319290},{"tag":"B","fx":19,"first":149,"count":1,"section":".run","offset":319293},{"tag":"B","fx":19,"first":276,"count":1,"section":".run","offset":319296},{"tag":"B","fx":20,"first":102,"count":1,"section":".run","offset":319230},{"tag":"B","fx":20,"first":107,"count":1,"section":".run","offset":319233},{"tag":"B","fx":20,"first":116,"count":1,"section":".run","offset":319236},{"tag":"B","fx":20,"first":167,"count":1,"section":".run","offset":319239},{"tag":"B","fx":20,"first":185,"count":1,"section":".run","offset":319242},{"tag":"B","fx":20,"first":239,"count":1,"section":".run","offset":319245},{"tag":"B","fx":20,"first":322,"count":1,"section":".run","offset":319248},{"tag":"B","fx":20,"first":403,"count":1,"section":".run","offset":319251},{"tag":"B","fx":20,"first":425,"count":1,"section":".run","offset":319254},{"tag":"B","fx":20,"first":517,"count":1,"section":".run","offset":319257},{"tag":"B","fx":20,"first":550,"count":1,"section":".run","offset":319260},{"tag":"B","fx":20,"first":590,"count":1,"section":".run","offset":319263},{"tag":"B","fx":21,"first":15,"count":1,"section":".run","offset":319184},{"tag":"B","fx":21,"first":374,"count":1,"section":".run","offset":319187},{"tag":"B","fx":21,"first":406,"count":1,"section":".run","offset":319190},{"tag":"B","fx":21,"first":432,"count":1,"section":".run","offset":319193},{"tag":"B","fx":21,"first":470,"count":1,"section":".run","offset":319196},{"tag":"B","fx":21,"first":478,"count":1,"section":".run","offset":319199},{"tag":"B","fx":21,"first":481,"count":1,"section":".run","offset":319202},{"tag":"B","fx":21,"first":574,"count":1,"section":".run","offset":319205},{"tag":"B","fx":21,"first":800,"count":1,"section":".run","offset":319208},{"tag":"B","fx":22,"first":202,"count":1,"section":".run","offset":319114},{"tag":"B","fx":22,"first":315,"count":1,"section":".run","offset":319117},{"tag":"B","fx":22,"first":402,"count":1,"section":".run","offset":319120},{"tag":"B","fx":22,"first":404,"count":1,"section":".run","offset":319123},{"tag":"B","fx":22,"first":417,"count":1,"section":".run","offset":319126},{"tag":"B","fx":22,"first":457,"count":1,"section":".run","offset":319129},{"tag":"B","fx":22,"first":461,"count":1,"section":".run","offset":319132},{"tag":"B","fx":22,"first":465,"count":1,"section":".run","offset":319135},{"tag":"B","fx":22,"first":492,"count":1,"section":".run","offset":319138},{"tag":"B","fx":22,"first":719,"count":1,"section":".run","offset":319141},{"tag":"B","fx":22,"first":746,"count":1,"section":".run","offset":319144},{"tag":"B","fx":22,"first":800,"count":1,"section":".run","offset":319147},{"tag":"B","fx":22,"first":842,"count":1,"section":".run","offset":319150},{"tag":"B","fx":22,"first":1051,"count":1,"section":".run","offset":319153}]},{"layout":"master","identity":"cea8f8149dc3721abf9def824841563f1e96e9580dacad76ca17aa202a107bce","packageSha256":"817d3aaa318a965c54479d395eb32cc46ac27eb2cb6c042eefa4f2a74e991541","patch":[[15814,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202400000000005250101010905820240000000000525010103080b04020100200009040400000101200009240100020a2e000008240a1001050000112402110306001002\""]],[15818,1,[" \"0x400cb87e\","]],[15823,1,[" \"0c24031201010011100000000904050000010220000904050101010220001024011200010100000002030000000006240201041807058305680101082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000090203010601\""]],[15837,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202000200000005250101010905820200020000000525010103080b04020100200009040400000101200009240100020a2e000008240a1001050000112402110306001002\""]],[15841,1,[" \"0x400cb87e\","]],[15846,1,[" \"0c24031201010011100000000904050000010220000904050101010220001024011200010100000002030000000006240201041807058305600002082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000090703010601\""]],[15855,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202400000000005250101010905820240000000000525010103080b04020100200009040400000101200009240100020a2e000008240a1001050000112402110306001002\""]],[15859,1,[" \"0x400cb87e\","]],[15864,1,[" \"0c24031201010011100000000904050000010220000904050101010220001024011200010100000002030000000006240201041807058305680101082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000090703010601\""]],[15878,1,[" \"0904010000ff4d0100080b0202010000000904020000010100000924010001090001030904030002010300000724010001250006240201010006240202020009240301030102010009240302040101010009050202000200000005250101010905820200020000000525010103080b04020100200009040400000101200009240100020a2e000008240a1001050000112402110306001002\""]],[15882,1,[" \"0x400cb87e\","]],[15887,1,[" \"0c24031201010011100000000904050000010220000904050101010220001024011200010100000002030000000006240201041807058305600002082501000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[16081,1,[" \"0000000071b946c8ce0c7205b2806600002c71b946c8ce0a4a80670a700113c000000000600a423900000000610005724eb94001d5244ef94001de742039fc0b01c44ef94001dd0a71b946c8ce0c7205b280660c4879000000004ef94001d81e4879400e20a14ef94001d81e4eb94001d6b86100001a70404ef94001e9226100000e2039fc0b01404ef94001e9584239000000004e75201023c04ec950280280fffff00006800000100023c04ec9502c4ef94001d4b84feffff848d700032039fc0b01bc223c00080000c081670c223c0008000023c1fc0b01bc4cd700034fef00084ef9000000004a3900000000670000b271b9000000000c8000000002664c740020026100009e2228000408010007670c52820c820000000465e64e75203900000000220092b9000000000481000000406f1223c10000000004800000004023c00000000042390000000070042f00610000a24a806704539766f4588f71b9000000000c80000000016608700213c0000000002039fc0b01b82239fc0b01b08081028000080000661875b900000000610000244a80670a6100003e52b9000000004e75028000000003eb88207c00000000d1c04e75760320026100ffe82228000408010007660a528253836aea70004e75284870014e75227900000000234c000842a9000c203c00080000\""]],[16090,1,[" \"71b9000000002c406100ffa62228000408010007660002324a390000000067000228203900000000223900000000240094810c8200000400631a52b900000000220004810000040023c100000000243c000004004a3900000000661cb4b900000000640623c200000000b4b900000000630623c2000000002639000000002a39000000004a390000000066282002048000000040e3800c80000000c86f06203c000000c80c80ffffff386c06203cffffff38da80d6852e3c000003e828034c4740042a044c0750002c039c85b484640a52b9000000006000017023c60000000023c40000000023c200000000200ee188e388267c00000000d7c0224b26042239000000000281000003ff203c0000040090814a3900000000672c45f900000000e789d5c1b6806208200361000120604096802a436100011645f900000000200d6100010a602a45f900000000e789d5c1b68062082003610000f4601496802a43610000ea45f900000000200d610000de283900000000d9b9000000002c044a39000000006704e78e6002e78e72012081214b0008220b0281fffff0000681000010002141000c220648410081000000802141000428482a48200e53806100fdf22448204d202a000408000007676224882039fc0b01b0028000080000665674102039fc0b0140008000004000\""]],[16117,1,[" \"ffffbfff23c0fc0b01404a81660c240e52826100fd946100fdb2200e528002800000000313c00000000070014e7570004e7522da22da538066f84e75227c00000000721f429953816afa227c0000000070017203228043e9002053816af64239000000004e752039fc0b01580280fffff8000c80400000006d0a0c80500000006c026006203c4ec948000680000001c023c00000000020404e75610000f66100ffc6720f429853816afa2079000000002039fc0b0184e088e088e088e4880280000000030c8000000002661c700113c000000000203c00002b1123c000000000203c606000006018423900000000203c0000ac4423c000000000203c61680000208042a8000470012140000842a8000c6100ff2a2039fc0b01cc02800000ffff00800084000023c0fc0b01cc2039000000000480000000406402700023c00000000042b900000000700113c00000000013c000000000\""]],[16126,19,[" \"0000000042b90000000042b9000000004e75610000202039fc0b01cc02800000ffff23c0fc0b01cc6100feb44239000000004e752f027210203c0008000023c0fc0b01b4243c000100002039fc0b01b40280000800006704538266ee2039fc0b01b80280000800006704538166ca241f4e754a390000000066204a39000000006618700113c0000000002039800000e423c000000000600000744a3900000000670a423900000000610000962039800000e42400b4b900000000660652b90000000023c200000000e188e58806808000351024402839000000002a040285000003ffe78d47f900000000d7c57c0f241a420202c226c2241a420202c226c253866aec5084508423c40000000071b90000000073b900000000b28067104a8067066100fe1a600a6100feea60084a8167046100fa4a42b946104d4e4ef94000d9a62039000000000c8000000040640c06800000040023c000000000048000000040723f24000282000003ff2602e78b41f900000000d1c37801429853846afae78a41f900000000d1c242984290528053816ad04e7571b946c8ce080c80000000c0661c71b946c8ce090c80000000556600009c487900000000703c600000820c80000000a16600008671b946c8ce0c0c80000000046600007671b946c8ce0d0c80000000106600006671b946c8ce0b73b946c8ce090c8000000001671e0c8000000002660000480c81000000016600003e487900000000700160240c8100000001660a487900000000700460120c810000000266000018487900000000700eb082630220022f004ef94001de5c2039fc0b01c04ef94001de6a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[17934,10,[" \"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003232343335316165383933626235303137633333666332643162333136373032303637643232393765316339323464383038623466393364386234323665363800636561386638313439646333373231616266396465663832343834313536336631653936653935383064616361643736636131376161323032613130376263650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000312e34304300000000000000000000000063656138663831343964633337323161000100000095a80000002d00000352\""]],[18620,1,[" \"302e372e313100cea8f8149dc3721abf9def824841563f1e96e9580dacad76ca17aa202a107bce00000000200000003200000044000000480000004c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[24111,1,[" 2"]],[24139,1,[" 4294967295"]],[24275,1,[" 8"]],[24283,1,[" 96"]],[24291,1,[" 512"]],[24327,1,[" 290784"]],[24343,1,[" 289764"]],[24349,4,[]],[24355,1,[" 289844"]],[24363,1,[" 289782"]],[24367,1,[" 289816"]],[24371,1,[" 4546208"]],[24383,1,[" 4546336"," ],"," \"aud_hs\": ["," \".run\","," 309851"]],[24389,1,[" \"audio_copy8\": ["]],[24391,1,[" 290432"]],[24395,5,[" 4538016"]],[24403,1,[" 290442"]],[24407,1,[" 290484"]],[24411,1,[" 290536"]],[24419,1,[" 290750"]],[24431,9,[" 291052"]],[24452,0,[" ],"," \"usbaudio_lastsamp\": ["," \".run\","," 309812"]],[25803,1,[" 291136"]],[27431,1,[" 290846"]],[86697,1,[" 291136"]],[86974,8,[" 289640,"]],[86988,1,[" 289654,"]],[86995,1,[" 289666,"]],[87002,1,[" 289672,"," \"abs32\","," \"sec:.run\","," 309850"," ],"," ["," \".run\","," 289696,"]],[87016,8,[" 289740,"]],[87030,1,[" 289758,"]],[87037,1,[" 289774,"]],[87040,1,[" 138763936"]],[87044,1,[" 289818,"]],[87051,1,[" 289846,"]],[87058,1,[" 289870,"]],[87065,1,[" 289880,"]],[87072,1,[" 289886,"]],[87075,1,[" 309780"," ],"," ["," \".run\","," 289904,"," \"abs32\","," \"sec:.run\","," 309788"]],[87086,1,[" 289930,"]],[87089,1,[" 309850"]],[87093,1,[" 289938,"," \"abs32\","," \"sec:.run\","," 309824"," ],"," ["," \".run\","," 289946,"," \"abs32\","," \"sec:.run\","," 309824"," ],"," ["," \".run\","," 289952,"," \"abs32\","," \"sec:.run\","," 309828"," ],"," ["," \".run\","," 289960,"," \"abs32\","," \"sec:.run\","," 309828"," ],"," ["," \".run\","," 289966,"," \"abs32\","," \"sec:.run\","," 309784"," ],"," ["," \".run\","," 289972,"," \"abs32\","," \"sec:.run\","," 309844"," ],"," ["," \".run\","," 289978,"," \"abs32\","," \"sec:.run\","," 309850"," ],"," ["," \".run\","," 290054,"," \"abs32\","," \"sec:.run\","," 309792"," ],"," ["," \".run\","," 290064,"," \"abs32\","," \"sec:.run\","," 309784"," ],"," ["," \".run\","," 290070,"," \"abs32\","," \"sec:.run\","," 309796"," ],"," ["," \".run\","," 290076,"," \"abs32\","," \"sec:.run\","," 309800"," ],"," ["," \".run\","," 290088,"," \"abs32\","," \"sec:.bss\","," 138764064"," ],"," ["," \".run\","," 290100,"]],[87100,99,[" 290120,"]],[87205,1,[" 290128,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 290158,"," \"abs32\","," \"sec:.bss\","," 4538016"," ],"," ["," \".run\","," 290172,"]],[87219,15,[" 290214,"]],[87240,1,[" 290220,"]],[87247,1,[" 290228,"]],[87254,1,[" 290420,"]],[87261,1,[" 290444,"]],[87264,1,[" 138763936"]],[87268,1,[" 290458,"]],[87271,1,[" 138763936"]],[87275,1,[" 290478,"]],[87282,1,[" 290528,"]],[87289,1,[" 290554,"]],[87296,1,[" 290590,"]],[87303,1,[" 290602,"]],[87310,1,[" 290616,"]],[87317,1,[" 290628,"]],[87324,1,[" 290684,"]],[87331,8,[" 290700,"]],[87345,1,[" 290706,"]],[87352,1,[" 290714,"]],[87359,1,[" 290720,"]],[87366,1,[" 290732,"]],[87373,1,[" 290738,"]],[87380,1,[" 290744,"]],[87387,1,[" 290778,"]],[87394,1,[" 290848,"]],[87401,1,[" 290856,"]],[87408,1,[" 290866,"]],[87415,1,[" 290878,"]],[87422,1,[" 290888,"]],[87429,1,[" 290896,"]],[87436,1,[" 290914,"]],[87443,1,[" 290922,"]],[87450,1,[" 290928,"]],[87457,1,[" 290946,"]],[87464,1,[" 290962,"]],[87471,43,[" 290996,"]],[87520,1,[" 291002,"]],[87527,1,[" 291008,"]],[87534,1,[" 291054,"]],[87541,1,[" 291074,"]],[87548,1,[" 291100,"]],[87555,1,[" 291118,"]],[87558,1,[" 4538016"]],[87562,1,[" 291168,"]],[87569,1,[" 291262,"]],[87576,1,[" 291280,"]],[87583,1,[" 291300,"]],[94722,1,[" \"identity.c\": \"8686d6a6395d97d2aa1d6ad003e64b9159b5f5ced368342027dbca629b2f55f8\","]],[94782,1,[" \"usb_base.s\": \"b7c69c3d8f1ef6b425d100958b491eb33da33f2cbf4e37676ea9c312cbee87b2\","]],[94786,1,[" \"usb_reserve.s\": \"fc4b91b9fabedd48ef8430ddf8a17b6bbb38606c02ab8775dcb9ec184fd13170\""]]],"fills":[{"tag":"A","shared":2001,"first":0,"count":286,"site":"0x400f0ee3","offset":0},{"tag":"A","shared":2287,"first":0,"count":35,"site":"0x400f0ee3","offset":858},{"tag":"A","shared":2322,"first":0,"count":93,"site":"0x400f0ee3","offset":963},{"tag":"B","shared":1425,"first":0,"count":286,"site":"0x40103e34","offset":0},{"tag":"B","shared":1711,"first":0,"count":35,"site":"0x40103e34","offset":858},{"tag":"B","shared":1746,"first":0,"count":93,"site":"0x40103e34","offset":963},{"tag":"A","fx":4,"first":0,"count":441,"section":".run","offset":336620},{"tag":"A","fx":5,"first":0,"count":261,"section":".run","offset":335830},{"tag":"A","fx":12,"first":0,"count":282,"section":".run","offset":334968},{"tag":"A","fx":13,"first":0,"count":345,"section":".run","offset":333918},{"tag":"A","fx":16,"first":0,"count":207,"section":".run","offset":333282},{"tag":"A","fx":17,"first":0,"count":289,"section":".run","offset":332384},{"tag":"A","fx":18,"first":0,"count":329,"section":".run","offset":331360},{"tag":"A","fx":19,"first":0,"count":277,"section":".run","offset":330498},{"tag":"A","fx":20,"first":0,"count":594,"section":".run","offset":328696},{"tag":"A","fx":21,"first":0,"count":1063,"section":".run","offset":325464},{"tag":"A","fx":22,"first":0,"count":1067,"section":".run","offset":322202},{"tag":"A","fx":24,"first":2,"count":11,"section":".run","offset":321612},{"tag":"A","fx":24,"first":15,"count":165,"section":".run","offset":321651},{"tag":"A","fx":28,"first":0,"count":537,"section":".run","offset":319980},{"tag":"B","fx":4,"first":65,"count":1,"section":".run","offset":319488},{"tag":"B","fx":4,"first":73,"count":1,"section":".run","offset":319491},{"tag":"B","fx":4,"first":158,"count":1,"section":".run","offset":319494},{"tag":"B","fx":4,"first":163,"count":1,"section":".run","offset":319497},{"tag":"B","fx":4,"first":172,"count":1,"section":".run","offset":319500},{"tag":"B","fx":4,"first":182,"count":1,"section":".run","offset":319503},{"tag":"B","fx":4,"first":194,"count":1,"section":".run","offset":319506},{"tag":"B","fx":4,"first":199,"count":1,"section":".run","offset":319509},{"tag":"B","fx":4,"first":207,"count":1,"section":".run","offset":319512},{"tag":"B","fx":4,"first":215,"count":1,"section":".run","offset":319515},{"tag":"B","fx":4,"first":220,"count":1,"section":".run","offset":319518},{"tag":"B","fx":4,"first":225,"count":1,"section":".run","offset":319521},{"tag":"B","fx":4,"first":229,"count":1,"section":".run","offset":319524},{"tag":"B","fx":4,"first":248,"count":1,"section":".run","offset":319527},{"tag":"B","fx":4,"first":266,"count":1,"section":".run","offset":319530},{"tag":"B","fx":4,"first":281,"count":1,"section":".run","offset":319533},{"tag":"B","fx":4,"first":286,"count":1,"section":".run","offset":319536},{"tag":"B","fx":4,"first":290,"count":1,"section":".run","offset":319539},{"tag":"B","fx":4,"first":307,"count":1,"section":".run","offset":319542},{"tag":"B","fx":4,"first":325,"count":1,"section":".run","offset":319545},{"tag":"B","fx":4,"first":374,"count":1,"section":".run","offset":319548},{"tag":"B","fx":5,"first":25,"count":1,"section":".run","offset":319458},{"tag":"B","fx":5,"first":42,"count":1,"section":".run","offset":319461},{"tag":"B","fx":5,"first":62,"count":1,"section":".run","offset":319464},{"tag":"B","fx":5,"first":91,"count":1,"section":".run","offset":319467},{"tag":"B","fx":5,"first":179,"count":1,"section":".run","offset":319470},{"tag":"B","fx":5,"first":181,"count":1,"section":".run","offset":319473},{"tag":"B","fx":12,"first":62,"count":1,"section":".run","offset":319378},{"tag":"B","fx":12,"first":64,"count":1,"section":".run","offset":319381},{"tag":"B","fx":12,"first":68,"count":1,"section":".run","offset":319384},{"tag":"B","fx":12,"first":70,"count":1,"section":".run","offset":319387},{"tag":"B","fx":12,"first":91,"count":1,"section":".run","offset":319390},{"tag":"B","fx":12,"first":93,"count":1,"section":".run","offset":319393},{"tag":"B","fx":12,"first":97,"count":1,"section":".run","offset":319396},{"tag":"B","fx":12,"first":99,"count":1,"section":".run","offset":319399},{"tag":"B","fx":12,"first":165,"count":1,"section":".run","offset":319402},{"tag":"B","fx":12,"first":170,"count":1,"section":".run","offset":319405},{"tag":"B","fx":12,"first":172,"count":1,"section":".run","offset":319408},{"tag":"B","fx":12,"first":174,"count":1,"section":".run","offset":319411},{"tag":"B","fx":12,"first":176,"count":1,"section":".run","offset":319414},{"tag":"B","fx":12,"first":180,"count":1,"section":".run","offset":319417},{"tag":"B","fx":12,"first":182,"count":1,"section":".run","offset":319420},{"tag":"B","fx":12,"first":193,"count":1,"section":".run","offset":319423},{"tag":"B","fx":13,"first":259,"count":1,"section":".run","offset":319372},{"tag":"B","fx":16,"first":23,"count":1,"section":".run","offset":319356},{"tag":"B","fx":16,"first":27,"count":1,"section":".run","offset":319359},{"tag":"B","fx":16,"first":206,"count":1,"section":".run","offset":319362},{"tag":"B","fx":17,"first":30,"count":1,"section":".run","offset":319336},{"tag":"B","fx":17,"first":34,"count":1,"section":".run","offset":319339},{"tag":"B","fx":17,"first":118,"count":1,"section":".run","offset":319342},{"tag":"B","fx":17,"first":288,"count":1,"section":".run","offset":319345},{"tag":"B","fx":18,"first":48,"count":1,"section":".run","offset":319306},{"tag":"B","fx":18,"first":82,"count":1,"section":".run","offset":319309},{"tag":"B","fx":18,"first":87,"count":1,"section":".run","offset":319312},{"tag":"B","fx":18,"first":91,"count":1,"section":".run","offset":319315},{"tag":"B","fx":18,"first":260,"count":1,"section":".run","offset":319318},{"tag":"B","fx":18,"first":328,"count":1,"section":".run","offset":319321},{"tag":"B","fx":19,"first":109,"count":1,"section":".run","offset":319290},{"tag":"B","fx":19,"first":149,"count":1,"section":".run","offset":319293},{"tag":"B","fx":19,"first":276,"count":1,"section":".run","offset":319296},{"tag":"B","fx":20,"first":102,"count":1,"section":".run","offset":319230},{"tag":"B","fx":20,"first":107,"count":1,"section":".run","offset":319233},{"tag":"B","fx":20,"first":116,"count":1,"section":".run","offset":319236},{"tag":"B","fx":20,"first":167,"count":1,"section":".run","offset":319239},{"tag":"B","fx":20,"first":185,"count":1,"section":".run","offset":319242},{"tag":"B","fx":20,"first":239,"count":1,"section":".run","offset":319245},{"tag":"B","fx":20,"first":322,"count":1,"section":".run","offset":319248},{"tag":"B","fx":20,"first":403,"count":1,"section":".run","offset":319251},{"tag":"B","fx":20,"first":425,"count":1,"section":".run","offset":319254},{"tag":"B","fx":20,"first":517,"count":1,"section":".run","offset":319257},{"tag":"B","fx":20,"first":550,"count":1,"section":".run","offset":319260},{"tag":"B","fx":20,"first":590,"count":1,"section":".run","offset":319263},{"tag":"B","fx":21,"first":15,"count":1,"section":".run","offset":319184},{"tag":"B","fx":21,"first":374,"count":1,"section":".run","offset":319187},{"tag":"B","fx":21,"first":406,"count":1,"section":".run","offset":319190},{"tag":"B","fx":21,"first":432,"count":1,"section":".run","offset":319193},{"tag":"B","fx":21,"first":470,"count":1,"section":".run","offset":319196},{"tag":"B","fx":21,"first":478,"count":1,"section":".run","offset":319199},{"tag":"B","fx":21,"first":481,"count":1,"section":".run","offset":319202},{"tag":"B","fx":21,"first":574,"count":1,"section":".run","offset":319205},{"tag":"B","fx":21,"first":800,"count":1,"section":".run","offset":319208},{"tag":"B","fx":22,"first":202,"count":1,"section":".run","offset":319114},{"tag":"B","fx":22,"first":315,"count":1,"section":".run","offset":319117},{"tag":"B","fx":22,"first":402,"count":1,"section":".run","offset":319120},{"tag":"B","fx":22,"first":404,"count":1,"section":".run","offset":319123},{"tag":"B","fx":22,"first":417,"count":1,"section":".run","offset":319126},{"tag":"B","fx":22,"first":457,"count":1,"section":".run","offset":319129},{"tag":"B","fx":22,"first":461,"count":1,"section":".run","offset":319132},{"tag":"B","fx":22,"first":465,"count":1,"section":".run","offset":319135},{"tag":"B","fx":22,"first":492,"count":1,"section":".run","offset":319138},{"tag":"B","fx":22,"first":719,"count":1,"section":".run","offset":319141},{"tag":"B","fx":22,"first":746,"count":1,"section":".run","offset":319144},{"tag":"B","fx":22,"first":800,"count":1,"section":".run","offset":319147},{"tag":"B","fx":22,"first":842,"count":1,"section":".run","offset":319150},{"tag":"B","fx":22,"first":1051,"count":1,"section":".run","offset":319153}]},{"layout":"off","identity":"cc623ac90952209767aa6297cb16eba5eb3f23f72ed3d1d0bf872db38a99bfa3","packageSha256":"e54e6311e61e7719f963d9551b2679feb8c3f35fa9962cf4b8299de9a8b56867","patch":[[15733,1,[" \"4e7500004eb9000000004ef94002dc6e4eb9000000004ef94002dc964eb9000000004ef94002dcca000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000022020c810000008d6306223c0000008d4ef94001d86422020c810000008d6306223c0000008d4ef94001d8a24feffff448d703024eb9000000004cd703024fef000c4a80671a72ffb081672072feb081672c2f39000000002f004ef94001de5c2039fc0b01c04ef94001de6a\""]],[15769,1,[" \"4ef9\""]],[15787,1,[" \"4ef90000\""]],[15805,1,[" \"4ef90000000000000000000009028d000401\""]],[15814,1,[" \"0904010000ff4d0100080b02020100000009040200000101000009240100010900010309040300020103000007240100012500062402010100062402020200092403010301020100092403020401010100090502024000000000052501010109058202400000000005250101\""]],[15818,2,[" \"0x400cb87e\","," 22"]],[15823,1,[" \"0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009028d000401\""]],[15837,1,[" \"0904010000ff4d0100080b02020100000009040200000101000009240100010900010309040300020103000007240100012500062402010100062402020200092403010301020100092403020401010100090502020002000000052501010109058202000200000005250101\""]],[15841,2,[" \"0x400cb87e\","," 22"]],[15846,1,[" \"0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009078d000401\""]],[15855,1,[" \"0904010000ff4d0100080b02020100000009040200000101000009240100010900010309040300020103000007240100012500062402010100062402020200092403010301020100092403020401010100090502024000000000052501010109058202400000000005250101\""]],[15859,2,[" \"0x400cb87e\","," 22"]],[15864,1,[" \"0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009078d000401\""]],[15878,1,[" \"0904010000ff4d0100080b02020100000009040200000101000009240100010900010309040300020103000007240100012500062402010100062402020200092403010301020100092403020401010100090502020002000000052501010109058202000200000005250101\""]],[15882,2,[" \"0x400cb87e\","," 22"]],[15887,1,[" \"000000000000000000000000000000000000000000000000\""]],[15905,1,[" \"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[16081,64,[" \"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[17934,1,[" \"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003136363362333566393239633437303632396365663038376261616362653238663035356134613961396238333335646432333235363739653837363666306500636336323361633930393532323039373637616136323937636231366562613565623366323366373265643364316430626638373264623338613939626661\""]],[17938,1,[" \"0x400ba992\","]],[17943,1,[" \"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000312e34304300000000000000000000000063633632336163393039353232303937000100000095a80000002d00000352\""]],[18147,19,[" \"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000460c8122460d0ffa460bf218460c80f0000000000000000000000000000000000000000000000000000000000000000000000000151315141515151615171518151916141715181619131914191519161917191819191b131b141b151b161b171b181b191c131c161c191d131d161d191e131e161e191f131f1921132114211521162117211821192218231623172418251325142515251625172518251959135914591559165917591859195a135a165a195b135b165b195c135c165c195d145d155d175d185f135f145f155f165f175f185f1960136016601961136116611962136216621963136319651366136713671467156716671767186719681369136b146b156b166b176b186b196c136c166d136d166e136e166f146f156f166f176f186f1900151305070000000011001b13050700001100120021130507000023001201591305070000350014015f1305070000490012016513050700005b000b016b130507000066001207ff07ff00030006000c001800300018000c0006000307ff07ff00000000000001fc03fe07070603060306030603070703fe01fc00000000000007ff07ff06030603060306030707038e01fc00f8\""]],[18620,1,[" \"302e372e313100cc623ac90952209767aa6297cb16eba5eb3f23f72ed3d1d0bf872db38a99bfa300000000200000003200000044000000480000004c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\""]],[23911,1,[" 141"]],[23967,1,[" 286476"]],[23971,1,[" 286790"]],[23975,1,[" 286648"]],[23979,1,[" 286972"]],[23987,1,[" 286730"]],[23991,1,[" 286992"]],[23995,1,[" 287000"]],[23999,1,[" 286994"]],[24003,1,[" 287256"]],[24007,1,[" 286990"]],[24075,1,[" 287754"]],[24079,1,[" 287980"]],[24083,1,[" 287890"]],[24087,1,[" 288220"]],[24091,1,[" 288194"]],[24095,1,[" 288244"]],[24099,1,[" 288316"]],[24108,344,[]],[24535,1,[" 286989"]],[24615,1,[" 286388"]],[24799,5,[" 285440"]],[24827,1,[" 284838"]],[24831,1,[" 284928"]],[24844,4,[]],[25099,1,[" 285888"]],[25119,1,[" 286996"]],[25189,4,[]],[25199,1,[" 286538"]],[25251,1,[" 285952"]],[25457,4,[]],[25553,4,[]],[25575,1,[" 287826"]],[25801,4,[]],[25875,1,[" 285696"]],[25895,1,[" 284804"]],[26007,1,[" 286918"]],[26032,4,[]],[26127,1,[" 285184"]],[26151,1,[" 286208"]],[26281,4,[]],[26299,1,[" 288320"]],[26385,4,[]],[26403,1,[" 287512"]],[26567,1,[" 287808"]],[26719,1,[" 286870"]],[26792,4,[]],[26872,4,[]],[27047,1,[" 287572"]],[27060,4,[]],[27108,4,[]],[27295,1,[" 288236"]],[27429,4,[]],[27488,4,[]],[27661,4,[]],[27707,1,[" 284894"]],[27823,1,[" 286988"]],[27852,4,[]],[27991,1,[" 287842"]],[28061,4,[]],[28076,4,[]],[28104,4,[]],[28219,1,[" 288240"]],[28240,4,[]],[28359,8,[]],[29308,13,[]],[44606,1,[" 286208"]],[44795,1,[" 285952"]],[86694,8,[" 284814,"]],[86708,1,[" 284848,"]],[86715,7,[]],[86725,1,[" 287808"]],[86739,1,[" 287826"]],[86743,8,[" 284904,"]],[86757,1,[" 284918,"]],[86764,1,[" 286446,"]],[86767,1,[" 286988"]],[86771,1,[" 286452,"]],[86774,1,[" 286989"]],[86778,1,[" 286574,"]],[86781,1,[" 286989"]],[86785,1,[" 286644,"]],[86788,1,[" 284804"]],[86792,1,[" 286770,"]],[86795,1,[" 286992"]],[86799,1,[" 286782,"]],[86802,1,[" 286996"]],[86806,1,[" 286812,"]],[86809,1,[" 286989"]],[86813,1,[" 286818,"]],[86816,1,[" 286994"]],[86820,1,[" 286838,"]],[86823,1,[" 286992"]],[86827,1,[" 286938,"]],[86830,1,[" 286990"]],[86834,1,[" 287554,"]],[86837,1,[" 288236"]],[86841,1,[" 287568,"]],[86844,1,[" 286388"]],[86848,1,[" 287582,"]],[86851,1,[" 286988"]],[86855,1,[" 287700,"]],[86858,1,[" 288240"]],[86862,1,[" 287750,"]],[86865,1,[" 286538"]],[86869,1,[" 287858,"]],[86872,1,[" 286988"]],[86876,1,[" 287864,"]],[86879,1,[" 286989"]],[86883,1,[" 287870,"]],[86886,1,[" 286992"]],[86890,1,[" 288046,"]],[86893,1,[" 288236"]],[86897,1,[" 288160,"]],[86900,1,[" 288316"]],[86904,1,[" 288296,"]],[86907,1,[" 288316"]],[86911,1,[" 288306,"]],[86914,673,[" 288320"]],[92552,1,[" \"sym:usbmidi_rx_isr_shim\","]],[92583,60,[]],[94722,1,[" \"identity.c\": \"72ffbcbedbcb4f3d5e603a89f885278123576349f093aa401ea4bbf39b5d4daa\","]],[94782,1,[" \"usb_base.s\": \"1ae9d3f2371e79a433b4aa1d31aa30408836b51c5296133b960e8246175dec84\","]],[94785,2,[" \"usb_reserve.s\": \"0fde65d1387d49e9fd43eb2f7f53c0fc9bc64eb1a98b0a98ac9815eb6cf97870\""]]],"fills":[{"tag":"A","shared":2001,"first":0,"count":286,"site":"0x400f0ee3","offset":0},{"tag":"A","shared":2287,"first":0,"count":35,"site":"0x400f0ee3","offset":858},{"tag":"A","shared":2322,"first":0,"count":93,"site":"0x400f0ee3","offset":963},{"tag":"B","shared":1425,"first":0,"count":286,"site":"0x40103e34","offset":0},{"tag":"B","shared":1711,"first":0,"count":35,"site":"0x40103e34","offset":858},{"tag":"B","shared":1746,"first":0,"count":93,"site":"0x40103e34","offset":963},{"tag":"A","fx":4,"first":0,"count":441,"section":".run","offset":336620},{"tag":"A","fx":5,"first":0,"count":261,"section":".run","offset":335830},{"tag":"A","fx":12,"first":0,"count":282,"section":".run","offset":334968},{"tag":"A","fx":13,"first":0,"count":345,"section":".run","offset":333918},{"tag":"A","fx":16,"first":0,"count":207,"section":".run","offset":333282},{"tag":"A","fx":17,"first":0,"count":289,"section":".run","offset":332384},{"tag":"A","fx":18,"first":0,"count":329,"section":".run","offset":331360},{"tag":"A","fx":19,"first":0,"count":277,"section":".run","offset":330498},{"tag":"A","fx":20,"first":0,"count":594,"section":".run","offset":328696},{"tag":"A","fx":21,"first":0,"count":1063,"section":".run","offset":325464},{"tag":"A","fx":22,"first":0,"count":1067,"section":".run","offset":322202},{"tag":"A","fx":24,"first":2,"count":11,"section":".run","offset":321612},{"tag":"A","fx":24,"first":15,"count":165,"section":".run","offset":321651},{"tag":"A","fx":28,"first":0,"count":537,"section":".run","offset":319980},{"tag":"B","fx":4,"first":65,"count":1,"section":".run","offset":319488},{"tag":"B","fx":4,"first":73,"count":1,"section":".run","offset":319491},{"tag":"B","fx":4,"first":158,"count":1,"section":".run","offset":319494},{"tag":"B","fx":4,"first":163,"count":1,"section":".run","offset":319497},{"tag":"B","fx":4,"first":172,"count":1,"section":".run","offset":319500},{"tag":"B","fx":4,"first":182,"count":1,"section":".run","offset":319503},{"tag":"B","fx":4,"first":194,"count":1,"section":".run","offset":319506},{"tag":"B","fx":4,"first":199,"count":1,"section":".run","offset":319509},{"tag":"B","fx":4,"first":207,"count":1,"section":".run","offset":319512},{"tag":"B","fx":4,"first":215,"count":1,"section":".run","offset":319515},{"tag":"B","fx":4,"first":220,"count":1,"section":".run","offset":319518},{"tag":"B","fx":4,"first":225,"count":1,"section":".run","offset":319521},{"tag":"B","fx":4,"first":229,"count":1,"section":".run","offset":319524},{"tag":"B","fx":4,"first":248,"count":1,"section":".run","offset":319527},{"tag":"B","fx":4,"first":266,"count":1,"section":".run","offset":319530},{"tag":"B","fx":4,"first":281,"count":1,"section":".run","offset":319533},{"tag":"B","fx":4,"first":286,"count":1,"section":".run","offset":319536},{"tag":"B","fx":4,"first":290,"count":1,"section":".run","offset":319539},{"tag":"B","fx":4,"first":307,"count":1,"section":".run","offset":319542},{"tag":"B","fx":4,"first":325,"count":1,"section":".run","offset":319545},{"tag":"B","fx":4,"first":374,"count":1,"section":".run","offset":319548},{"tag":"B","fx":5,"first":25,"count":1,"section":".run","offset":319458},{"tag":"B","fx":5,"first":42,"count":1,"section":".run","offset":319461},{"tag":"B","fx":5,"first":62,"count":1,"section":".run","offset":319464},{"tag":"B","fx":5,"first":91,"count":1,"section":".run","offset":319467},{"tag":"B","fx":5,"first":179,"count":1,"section":".run","offset":319470},{"tag":"B","fx":5,"first":181,"count":1,"section":".run","offset":319473},{"tag":"B","fx":12,"first":62,"count":1,"section":".run","offset":319378},{"tag":"B","fx":12,"first":64,"count":1,"section":".run","offset":319381},{"tag":"B","fx":12,"first":68,"count":1,"section":".run","offset":319384},{"tag":"B","fx":12,"first":70,"count":1,"section":".run","offset":319387},{"tag":"B","fx":12,"first":91,"count":1,"section":".run","offset":319390},{"tag":"B","fx":12,"first":93,"count":1,"section":".run","offset":319393},{"tag":"B","fx":12,"first":97,"count":1,"section":".run","offset":319396},{"tag":"B","fx":12,"first":99,"count":1,"section":".run","offset":319399},{"tag":"B","fx":12,"first":165,"count":1,"section":".run","offset":319402},{"tag":"B","fx":12,"first":170,"count":1,"section":".run","offset":319405},{"tag":"B","fx":12,"first":172,"count":1,"section":".run","offset":319408},{"tag":"B","fx":12,"first":174,"count":1,"section":".run","offset":319411},{"tag":"B","fx":12,"first":176,"count":1,"section":".run","offset":319414},{"tag":"B","fx":12,"first":180,"count":1,"section":".run","offset":319417},{"tag":"B","fx":12,"first":182,"count":1,"section":".run","offset":319420},{"tag":"B","fx":12,"first":193,"count":1,"section":".run","offset":319423},{"tag":"B","fx":13,"first":259,"count":1,"section":".run","offset":319372},{"tag":"B","fx":16,"first":23,"count":1,"section":".run","offset":319356},{"tag":"B","fx":16,"first":27,"count":1,"section":".run","offset":319359},{"tag":"B","fx":16,"first":206,"count":1,"section":".run","offset":319362},{"tag":"B","fx":17,"first":30,"count":1,"section":".run","offset":319336},{"tag":"B","fx":17,"first":34,"count":1,"section":".run","offset":319339},{"tag":"B","fx":17,"first":118,"count":1,"section":".run","offset":319342},{"tag":"B","fx":17,"first":288,"count":1,"section":".run","offset":319345},{"tag":"B","fx":18,"first":48,"count":1,"section":".run","offset":319306},{"tag":"B","fx":18,"first":82,"count":1,"section":".run","offset":319309},{"tag":"B","fx":18,"first":87,"count":1,"section":".run","offset":319312},{"tag":"B","fx":18,"first":91,"count":1,"section":".run","offset":319315},{"tag":"B","fx":18,"first":260,"count":1,"section":".run","offset":319318},{"tag":"B","fx":18,"first":328,"count":1,"section":".run","offset":319321},{"tag":"B","fx":19,"first":109,"count":1,"section":".run","offset":319290},{"tag":"B","fx":19,"first":149,"count":1,"section":".run","offset":319293},{"tag":"B","fx":19,"first":276,"count":1,"section":".run","offset":319296},{"tag":"B","fx":20,"first":102,"count":1,"section":".run","offset":319230},{"tag":"B","fx":20,"first":107,"count":1,"section":".run","offset":319233},{"tag":"B","fx":20,"first":116,"count":1,"section":".run","offset":319236},{"tag":"B","fx":20,"first":167,"count":1,"section":".run","offset":319239},{"tag":"B","fx":20,"first":185,"count":1,"section":".run","offset":319242},{"tag":"B","fx":20,"first":239,"count":1,"section":".run","offset":319245},{"tag":"B","fx":20,"first":322,"count":1,"section":".run","offset":319248},{"tag":"B","fx":20,"first":403,"count":1,"section":".run","offset":319251},{"tag":"B","fx":20,"first":425,"count":1,"section":".run","offset":319254},{"tag":"B","fx":20,"first":517,"count":1,"section":".run","offset":319257},{"tag":"B","fx":20,"first":550,"count":1,"section":".run","offset":319260},{"tag":"B","fx":20,"first":590,"count":1,"section":".run","offset":319263},{"tag":"B","fx":21,"first":15,"count":1,"section":".run","offset":319184},{"tag":"B","fx":21,"first":374,"count":1,"section":".run","offset":319187},{"tag":"B","fx":21,"first":406,"count":1,"section":".run","offset":319190},{"tag":"B","fx":21,"first":432,"count":1,"section":".run","offset":319193},{"tag":"B","fx":21,"first":470,"count":1,"section":".run","offset":319196},{"tag":"B","fx":21,"first":478,"count":1,"section":".run","offset":319199},{"tag":"B","fx":21,"first":481,"count":1,"section":".run","offset":319202},{"tag":"B","fx":21,"first":574,"count":1,"section":".run","offset":319205},{"tag":"B","fx":21,"first":800,"count":1,"section":".run","offset":319208},{"tag":"B","fx":22,"first":202,"count":1,"section":".run","offset":319114},{"tag":"B","fx":22,"first":315,"count":1,"section":".run","offset":319117},{"tag":"B","fx":22,"first":402,"count":1,"section":".run","offset":319120},{"tag":"B","fx":22,"first":404,"count":1,"section":".run","offset":319123},{"tag":"B","fx":22,"first":417,"count":1,"section":".run","offset":319126},{"tag":"B","fx":22,"first":457,"count":1,"section":".run","offset":319129},{"tag":"B","fx":22,"first":461,"count":1,"section":".run","offset":319132},{"tag":"B","fx":22,"first":465,"count":1,"section":".run","offset":319135},{"tag":"B","fx":22,"first":492,"count":1,"section":".run","offset":319138},{"tag":"B","fx":22,"first":719,"count":1,"section":".run","offset":319141},{"tag":"B","fx":22,"first":746,"count":1,"section":".run","offset":319144},{"tag":"B","fx":22,"first":800,"count":1,"section":".run","offset":319147},{"tag":"B","fx":22,"first":842,"count":1,"section":".run","offset":319150},{"tag":"B","fx":22,"first":1051,"count":1,"section":".run","offset":319153}]}]} diff --git a/src/engine/assets/octatrack-base.elemod b/src/engine/assets/octatrack-base.elemod index 3120859937..b08e5bcd50 100644 --- a/src/engine/assets/octatrack-base.elemod +++ b/src/engine/assets/octatrack-base.elemod @@ -7328,7 +7328,7 @@ ], [ "hex", - "b4b9000000006708b4b900000000661c4ebae154b4b9000000006706241f42804e75203900000000241f4e75241f70fd4e754e56ff0448d70c3c4ab900000000670e2239000000002d41ff2c4a81670a4cee0c3cff044e5e4e754ebae10a4eb9000000004a8067e84eb9000000004a8066de4eb9000000004282283c0000000043f9000000002002e4882042d1fc80000ec4739076017a7fc083760c4c013800ba816500066c4a313809660006642f017201b18120442f012d49ff244e90508f226eff244a806600064843f900000000243c80000ec4948920390000000020492609224224001031880073987180b08167024282b1fc0000000066ea2002240922434a80661e20421030980012c0b3fc0000000066f2720123c10000000052b9000000004ab900000000670000fc242eff2c41f9000000002002e48876017801e5ab2239000000002242c084d3fc80000ec42d41ff307a0118112d49ff34c283b185224173842d45ff2c4a8967144a81670005b220034680c0aeff3023c00000000071b02800b08167000562707fb0816500055a700c4c01080043f9000000004a310809660005462f012f2eff2c2d41ff202d48ff284ebad244508f222eff20206eff284a8066000524202eff2c7a1fca8443f900000000ea89e9882d45ff30d3c02d59ffe02d59ffe42d59ffe82d51ffec20361ce00b00670004c04200246eff3443f90000000013842800421287b9000000001180280052b90000000052827210b2826600ff1220390000000080b9000000006600fe1a243900000000263c0000000041eeff702d48ff1c2240d3fc80000ec40102670004a6224312310800528010c17210b28066e24ab90000000057c041f90000000072802d48ff342248d28e41eeff707100448014181619b7824a0256c2750244828082b28866ec4a80661824390000000076035282c68223c2000000004a836600fd98486effe043eeffc02f09486effa0486eff80486eff702d40ff282d41ff202d49ff244ebad39c240e0682ffffff502442260247eeff60068300000010226eff2441eeff6024eeff8020d120eeffc424eeff8422422d4bff304fef001420eeffc8202eff28222eff2024eeff8820aeffcc2042240324aeff8c2609224b2810889920c4b48866f6206eff3024432d6eff50ff8043eeff502d6eff54ff842d6eff58ff8847eeff602d6eff5cff8c28090684000000102609240420eeffd02d4bff3024eeff9020eeffd424eeff9420eeffd824eeff9820aeffdc2049224b24aeff9c2810889920c4b48866f62d6eff50ff902d6eff54ff9424432d6eff58ff9847f90000000043eeff502d6eff5cff9c280906840000001024eeff80206eff30240424eeff84260a20d345f90000000047eeff6020d22443260924eeff882d4bff2c2d4bff3024aeff8c47f90000000045f90000000020d320922049226eff2c58882668fffcb7d1660004d05889b48866ee206eff30264326eeff9043f90000000020d126eeff9445f90000000020d245eeff60280a26eeff98240b47f9000000002d4aff3043eeff5020d345f9000000002642260920920683000000102049240326aeff9c2609224428115889b8906600035e5888b48866f0204347f900000000242eff30224222d320eeffe02d4bff4845f90000000047eeffe82d4aff2c2d4bff4020eeffe422d22409244243f9000000002d49ff3843eeff5020d347f900000000260906830000001024d3240a45f90000000047eeff602d4bff302d4aff3c45eeffe447eeffec2d4bff442d4aff4c2442240347f90000000026092493246eff44282eff3020922049224426515889b7d0660002fa5888b48866f02043283c00000000242eff30264243f90000000026d120eefff045f90000000026d243f9000000002444240e20eefff40682ffffff6020eefff826d143eeff5020aefffc41e90010260820422692240326105888b691660004085889b48966f0206eff48226eff2c246eff4c20aeffe0266eff382292206eff4043f90000000022aeff8045f90000000024aeff8443f90000000045f900000000269047f90000000022aeff9024aeff9441f90000000026aeff8847f900000000226eff3c246eff4420aeff8c26aeff9841f900000000229247f90000000043f90000000020aeff9c41f90000000026aefff020aefff4244422aefff824aefffc4a806700fa1c43f900000000266eff1c52aeff1c12dbb28b66f27001223900000000528123c0000000004a8167000272206eff34200123c000000000203c0000000043f90000000012d8b1c066fa4cee0c3cff0423c100000000720123c10000000042b90000000042b90000000023c10000000042b90000000042b90000000042b9000000004e5e4e7543f9000000002d51ffe045f90000000047f90000000043f9000000002d52ffe42d53ffe82d51ffec20361ce00b006600fb121184280052827210b2826600fa406000fb2c1211528010c17210b2806600fb426000fb5c" + "b4b9000000006708b4b900000000661c4ebae154b4b9000000006706241f42804e75203900000000241f4e75241f70fd4e754e56ff0848d70c3c4ab900000000670e2239000000002d41ff2c4a81670a4cee0c3cff084e5e4e754ebae10a4eb9000000004a8067e84eb9000000004a8066de4eb9000000004282283c0000000043f9000000002002e4882042d1fc80000ec4739076017a7fc083760c4c013800ba816500065e4a313809660006562f017201b18120442f012d49ff244e90508f226eff244a806600063a43f900000000243c80000ec4948920390000000020492609224224001031880073987180b08167024282b1fc0000000066ea2002240922434a80661e20421030980012c0b3fc0000000066f2720123c10000000052b9000000004ab900000000670000fc242eff2c41f90000000076017a01e5ab2239000000002002e4882242d3fc80000ec42d41ff301811c0852d49ff34c28322417201b1812d41ff2c73844a8967144a81670005a420034680c0aeff3023c00000000071b02800b08167000566707fb0816500055e700c4c01080043f9000000004a3108096600054a2f012f2eff2c2d41ff282d48ff244ebad244508f222eff28206eff244a8066000528202eff2c7a1fca8443f900000000ea89e9882d45ff30d3c02d59ffe02d59ffe42d59ffe82d51ffec20361ce00b00670004c44200246eff3443f90000000013842800421287b9000000001180280052b90000000052827210b2826600ff1224390000000084b9000000006600fe1a4eb9000000004a806600fe0e223900000000263c0000000041eeff702d48ff202242d3fc80000ec405016700057622431031280010c052827010b08266e24ab90000000057c043eeff802d49ff38262eff3841f9000000002d48ff3443eeff707100448012191418b5814a0156c1730144818081b68966ec4a80661824390000000072035282c28223c2000000004a816600fd86486effe043eeffc02f09486effa0486eff80486eff702d40ff282d49ff244ebad38e240e0682ffffff50244247eeff60226eff24220241eeff6006810000001024eeff8020d120eeffc424eeff842d4bff304fef0014224b20eeffc8202eff2824eeff8820aeffcc204224aeff8c2610869920c3b28866f6206eff3024422d6eff50ff8043eeff502d6eff54ff842d6eff58ff8847eeff602d6eff5cff8c26090683000000102409220320eeffd02d4bff3024eeff9020eeffd424eeff9420eeffd824eeff9820aeffdc2049224b24aeff9c2610869920c3b28866f624422d6eff50ff9047f9000000002d6eff54ff942d6eff58ff9843eeff502d6eff5cff9c2809068400000010240924eeff80206eff3024eeff84260a20d345f90000000047eeff6020d22443220b24eeff882d4bff3047f90000000024aeff8c45f90000000020d3209220492241220426505888b7d1660004cc5889b28866f0206eff30224222eeff9045f90000000020d222eeff942409244224eeff98240a47f90000000020d345eeff60220a47f9000000002d4aff3043eeff5020d345f9000000002642260920920683000000102409204926aeff9c2241220326115889b690660003545888b28866f02042280e47f9000000000684ffffffec242eff30224222d320eeffe02d4bff4845f90000000047eeffe82d4aff2c2d4bff4420eeffe422d22409244243f9000000002d49ff3c43eeff5020d347f900000000260906830000001024d3240a45f9000000002d4aff4047eeff6045eeffe42d4bff302d4aff4c2642240945f9000000002692222eff302644209320492241220324515889b5d0660002f25888b28866f02042263c00000000242eff30264243f90000000026d120eefff045f90000000026d243f9000000002443240e20eefff40682ffffff6020eefff826d143eeff5020aefffc22092042068100000010269258882668fffcb7d1660004005889b28966ee206eff48226eff2c246eff4c20aeffe0266eff3c206eff44229243f900000000269022aeff8045f90000000024aeff8447f90000000043f90000000022aeff9041f90000000026aeff8845f90000000047f90000000024aeff942444226eff4020aeff8c41f90000000026aeff9820aeff9c47f900000000229241f90000000043f90000000026aefff0244320aefff422aefff824aefffc4a806700fa1c202eff3843f900000000266eff2052aeff2012dbb08b66f27001223900000000528123c0000000004a8167000268206eff34200123c000000000203c0000000043f90000000012d8b1c066fa4cee0c3cff0823c100000000720123c10000000042b90000000042b90000000023c10000000042b90000000042b90000000042b9000000004e5e4e7543f9000000002d51ffe045f90000000047f90000000043f9000000002d52ffe42d53ffe82d51ffec20361ce00b006600fb0e1184280052827210b2826600fa3c6000fb28" ], [ "stock", @@ -7337,7 +7337,16 @@ ], [ "hex", - "f96e42b9000000006000fa0243f90000000071b128000c80000000ff6628203946c824561239800000034a80674c79817a03ba846544488106800008ed80c2fc18b2d081224045f9000000001832280071b128007384b081672c42004683c6aeff30721011802800528223c300000000b2826600f9ac6000fa9843f9000000001831280071842f002f2eff2c2d48ff284ebacc52508f206eff284a806700fa68226eff344683c6aeff307210128443f90000000013842800528223c30000000052b900000000b2826600f9566000fa4241eeffe443eeffe845eeffec2d48ff4c2d49ff402d4aff4447f90000000041f90000000043f90000000045f9000000002d4bff482d48ff2c2d49ff382d4aff3c206eff48226eff2c246eff4c20aeffe0266eff382292206eff4043f90000000022aeff8045f90000000024aeff8443f90000000045f900000000269047f90000000022aeff9024aeff9441f90000000026aeff8847f900000000226eff3c246eff4420aeff8c26aeff9841f900000000229247eefff043eefff820aeff9c41eefff423d30000000045eefffc23d00000000023d10000000023d20000000043f9000000006000fd6e203c80000000220023c000000000203c00000000206eff3443f9000000006000fd8847f90000000026aeff8041f90000000020aeff8443f90000000045f90000000022aeff8847eeff9024aeff8c41eeff9443eeff9845eeff9c23d30000000023d00000000023d10000000023d20000000047eeffe041eeffe443eeffe845eeffec23d30000000023d00000000023d10000000023d20000000047eefff041eefff443eefff845eefffc23d30000000023d00000000023d10000000023d2000000006000ff32206eff487001226eff2c246eff4c20aeffe0266eff382292206eff4043f90000000022aeff8045f90000000024aeff8443f90000000045f900000000269047f90000000022aeff9024aeff9441f90000000026aeff8847f900000000226eff3c246eff4420aeff8c26aeff9841f900000000229247f90000000043f90000000020aeff9c41f90000000026aefff020aefff4244422aefff824aefffc4a806700f61a6000fbfc2f024ab900000000660000984eb900000000" + "f97c42b9000000006000fa1043f90000000071b128000c80000000ff6628203946c824561239800000034a80674c79817a03ba846544488106800008ed80c2fc18b2d081224045f9000000001832280071b128007384b081672c42004683c6aeff30721011802800528223c300000000b2826600f9ba6000faa643f9000000001831280071842f002f2eff2c2d48ff244ebacc60508f206eff244a806700fa76226eff344683c6aeff307210128443f90000000013842800528223c30000000052b900000000b2826600f9646000fa5010116000fa8e41eeffe443eeffe82d48ff4c2d49ff4445f90000000047f90000000041f90000000043f900000000" + ], + [ + "stock", + "0x4008647a", + 8 + ], + [ + "hex", + "2d4aff482d4bff2c2d48ff3c2d49ff40206eff48226eff2c246eff4c20aeffe0266eff3c206eff44229243f900000000269022aeff8045f90000000024aeff8447f90000000043f90000000022aeff9041f90000000026aeff8845f90000000047f90000000024aeff942444226eff4020aeff8c41f90000000026aeff9820aeff9c47eefff0229241eefff443eefff823d30000000045eefffc23d00000000023d10000000023d20000000043f900000000202eff386000fd78203c80000000220023c000000000203c00000000206eff3443f9000000006000fd9247f90000000026aeff8041f90000000020aeff8443f90000000045f90000000022aeff8847eeff9024aeff8c41eeff9443eeff9845eeff9c23d30000000023d00000000023d10000000023d20000000047eeffe041eeffe443eeffe845eeffec23d30000000023d00000000023d10000000023d20000000047eefff041eefff443eefff845eefffc23d30000000023d00000000023d10000000023d2000000006000ff2e206eff487001226eff2c246eff4c20aeffe0266eff3c206eff44229243f900000000269022aeff8045f90000000024aeff8447f90000000043f90000000022aeff9041f90000000026aeff8845f90000000047f90000000024aeff942444226eff4020aeff8c41f90000000026aeff9820aeff9c47f900000000229241f90000000043f90000000026aefff0244320aefff422aefff824aefffc4a806700f6226000fc042f024ab900000000660000984eb900000000" ], [ "stock", @@ -7346,7 +7355,7 @@ ], [ "hex", - "0000000080b900000000667c206f000c22085081719052887404b480656ab28866f2226f000841f90000000010d9b1fc0000000066f6242f0010700142b90000000042b90000000023c20000000042b90000000023c00000000042b90000000042b90000000042b9000000004ebad6a2b4b9000000006706241f42804e75203900000000241f4e75241f70fd" + "0000000080b900000000667c206f000c22085081719052887404b480656ab28866f2226f000841f90000000010d9b1fc0000000066f6242f0010700142b90000000042b90000000023c20000000042b90000000023c00000000042b90000000042b90000000042b9000000004ebad6aab4b9000000006706241f42804e75203900000000241f4e75241f70fd" ], [ "stock", @@ -7355,7 +7364,7 @@ ], [ "hex", - "b4b9000000006708b4b900000000661c4ebad66ab4b9000000006706241f42804e75203900000000241f4e75241f70fd4e75202f0004b0b90000000067024e757005b0b90000000066f47001b0b90000000066ea700223c000000000" + "b4b9000000006708b4b900000000661c4ebad672b4b9000000006706241f42804e75203900000000241f4e75241f70fd4e75202f0004b0b90000000067024e757005b0b90000000066f47001b0b90000000066ea700223c000000000" ], [ "stock", @@ -7373,7 +7382,7 @@ ], [ "hex", - "0300c88247f9000000002f40001cb5844c0458002f450018d0854a33081c67307007b0af0020650e242f0020203c000000a1050066a0798442822002e4887a01c085bb80b084678052827010b08266ea4a816716202f001cd0af001806800000000026404a136600ff6e4cd70c3c42804fef00244e754cd70c3c70014fef00244e7552810800000167e04a28000957c07100448086807010b0816600feea4a8367d44ab90000000067c02439000000002f4200205b824a82672e42812409263c0000000041f9000000002642101b1818240bb9804a0057c071004480c280b1c366e891c86000fefa7a01bab90000000066c84ab90000000057c12409263c0000000041f9000000007301448160bc4e56feb420390000000080b90000000080b90000000080b900000000665e4a39000000006656486efebc220e0681ffffff602f01486efeb8486efec02d41feb44ebac7284fef0010222efeb44a806728487800032f2efebc2f012f2efeb8486efec02f2e00084eb9000000004fef0018" + "0300c88247f9000000002f40001cb5844c0458002f450018d0854a33081c67307007b0af0020650e242f0020203c000000a1050066a0798442822002e4887a01c085bb80b084678052827010b08266ea4a816716202f001cd0af001806800000000026404a136600ff6e4cd70c3c42804fef00244e754cd70c3c70014fef00244e7552810800000167e04a28000957c07100448086807010b0816600feea4a8367d44ab90000000067c02439000000002f4200205b824a82672e42812409263c0000000041f9000000002642101b1818240bb9804a0057c071004480c280b1c366e891c86000fefa7a01bab90000000066c84ab90000000057c12409263c0000000041f9000000007301448160bc4e56feb420390000000080b90000000080b90000000080b900000000665e4a39000000006656486efebc220e0681ffffff602f01486efeb8486efec02d41feb44ebac7304fef0010222efeb44a806728487800032f2efebc2f012f2efeb8486efec02f2e00084eb9000000004fef0018" ], [ "stock", @@ -7382,7 +7391,7 @@ ], [ "hex", - "4e5e4e7542804e5e4e754e56fe9020390000000048d70cfc80b90000000080b90000000080b900000000660000c24a3900000000660000b8486efebc2c0e0686ffffff602f06486efeb82e0e0687fffffec02f074ebac69c4fef00102d40feb44a806700008a4aae000c6774262efeb82803d8aefebc4a846766700a42854c030800246e0008264697c02412224b2d47feb04281b68163000098206efeb00c8200030000655c20100c8000030000655220680004d1c0b1c2630a2042d1ea0004b088655a700a5281d1aefeb043e9000ab88166c0528545ea000abaae000c66aa4cee0cfcfe90202efeb44e5e4e754cee0cfcfe9070ff2d40feb4202efeb44e5e4e757daa000871a80008b08666b67daa000971a80009b08666aa201060924cee0cfcfe9042aefeb4202efeb44e5e4e7520496000ff6a20390000000080b900000000" + "4e5e4e7542804e5e4e754e56fe9020390000000048d70cfc80b90000000080b90000000080b900000000660000c24a3900000000660000b8486efebc2c0e0686ffffff602f06486efeb82e0e0687fffffec02f074ebac6a44fef00102d40feb44a806700008a4aae000c6774262efeb82803d8aefebc4a846766700a42854c030800246e0008264697c02412224b2d47feb04281b68163000098206efeb00c8200030000655c20100c8000030000655220680004d1c0b1c2630a2042d1ea0004b088655a700a5281d1aefeb043e9000ab88166c0528545ea000abaae000c66aa4cee0cfcfe90202efeb44e5e4e754cee0cfcfe9070ff2d40feb4202efeb44e5e4e757daa000871a80008b08666b67daa000971a80009b08666aa201060924cee0cfcfe9042aefeb4202efeb44e5e4e7520496000ff6a20390000000080b900000000" ], [ "stock", @@ -7409,7 +7418,7 @@ ], [ "hex", - "6000c4c62f027401" + "6000c4ce2f027401" ], [ "stock", @@ -7454,7 +7463,7 @@ ], [ "hex", - "000000006700012243f9000000004a7900000000664e42807240b2b00c00643c45f90000000034720a0022300c000681ffffffc075ca3d4afd72b282631e7640b6b00c0064000e54346efd7222300c000681ffffffc0928a3341fffe53804a80670001684a51660001625489700160a84aae000c674a7005222e000841f9000000001180180074ff2d42fd684cee0c0cfd50202efd684e5e4e754aae00106720246e000841f90000000043ee000e3191aa0041eefdbe47f9000000003790aa044200222e000841f9000000001180180072012d41fd684cee0c0cfd50202efd684e5e4e757001226e000841f90000000042aefd68118098004cee0c0cfd50202efd684e5e4e75203900000000760ab68066d27006226e000841f90000000042aefd681180980060d048780ded48780c3042a742a74879000000004879000000002d48fd604eb90000000045f90000000047f9000000002f39000000004879000000004eb90000000023d2000000004fef002045f90000000023d20000000045f900000000700123d30000000023d20000000043f90000000047f90000000045f90000000023c000000000206efd6023d10000000023d30000000023d20000000023d1000000006000fe40262e00087440b4b03c00640009c0222e0008740120303c00b5812439000000000680ffffffc041eefe9042982d42fddc2479000000002679000000004298429826390000000024390000000042982d4afdd890ae000c2d4bfde42d43fde02d42fdcc4298429843eefe0042982d40fdbc203c80000ec42d41fdec223cfffffe10247900000000908942902d49fd6c2d4afdd4267900000000d28e20402d4bfdd0263900000000242e00082d43fdc82d42fd702d49fd741030980012c0b28966f6486efe70486efe50486efe30206efd74486efe10486efe002d48fd60262efd704ebac25c4fef00142d43fd88206efd6043eeff0042812d49fda01010758022424a006d0000dc760c" + "000000006700012243f9000000004a7900000000664e42807240b2b00c00643c45f90000000034720a0022300c000681ffffffc075ca3d4afd72b282631e7640b6b00c0064000e54346efd7222300c000681ffffffc0928a3341fffe53804a80670001684a51660001625489700160a84aae000c674a7005222e000841f9000000001180180074ff2d42fd684cee0c0cfd50202efd684e5e4e754aae00106720246e000841f90000000043ee000e3191aa0041eefdbe47f9000000003790aa044200222e000841f9000000001180180072012d41fd684cee0c0cfd50202efd684e5e4e757001226e000841f90000000042aefd68118098004cee0c0cfd50202efd684e5e4e75203900000000760ab68066d27006226e000841f90000000042aefd681180980060d048780ded48780c3042a742a74879000000004879000000002d48fd604eb90000000045f90000000047f9000000002f39000000004879000000004eb90000000023d2000000004fef002045f90000000023d20000000045f900000000700123d30000000023d20000000043f90000000047f90000000045f90000000023c000000000206efd6023d10000000023d30000000023d20000000023d1000000006000fe40262e00087440b4b03c00640009c0222e0008740120303c00b5812439000000000680ffffffc041eefe9042982d42fddc2479000000002679000000004298429826390000000024390000000042982d4afdd890ae000c2d4bfde42d43fde02d42fdcc4298429843eefe0042982d40fdbc203c80000ec42d41fdec223cfffffe10247900000000908942902d49fd6c2d4afdd4267900000000d28e20402d4bfdd0263900000000242e00082d43fdc82d42fd702d49fd741030980012c0b28966f6486efe70486efe50486efe30206efd74486efe10486efe002d48fd60262efd704ebac2644fef00142d43fd88206efd6043eeff0042812d49fda01010758022424a006d0000dc760c" ], [ "stock", @@ -7472,7 +7481,7 @@ ], [ "hex", - "ff682f2efda02f2efdbc2f2efdb44ebaaa9c4fef000c4a8066000368206efdac76032d43fd8042802400ea8a721fc2802242528043f69c00262efd70246efd6c266efd74242efd782d43fdf02d4afdf42d4bfdf82d42fdfc2269fdf026090303670410bc00015c880c800000008066b84aaefdb86716202efdc072065a80b28065000140725101016700013852aefda87603b6aefda86700023ab6aefd80660007727010d1aefda4" + "ff682f2efda02f2efdbc2f2efdb44ebaaaa44fef000c4a8066000368206efdac76032d43fd8042802400ea8a721fc2802242528043f69c00262efd70246efd6c266efd74242efd782d43fdf02d4afdf42d4bfdf82d42fdfc2269fdf026090303670410bc00015c880c800000008066b84aaefdb86716202efdc072065a80b28065000140725101016700013852aefda87603b6aefda86700023ab6aefd80660007727010d1aefda4" ], [ "stock", @@ -7490,7 +7499,7 @@ ], [ "hex", - "222efda4224024412040242efd982642588b22da2d4bfd6c2009598b224126e9fff0264026da220a200b47eefeb0246efd6c2d4bfd9858aefd6c24e9fff42440224b264124db200a220b246efd6c266efda458aefd6c24ebfff8244026412493246efd6c266efda424abfffc202efde86000ff60242efdb47003262efdd8206efde42d42000823c300000000226efddc246efde023c80000000023c900000000266efdd4222efdd023ca0000000023cb00000000242efdcc262efdc823c10000000023c20000000023c300000000b0aefd80670009524280222efd80e989d28e0681fffffed02d41fd78222e00082d41fd84741fc4802200ea895280266efdac226efd7845f61c00206efd982d42fd744a13671620d920d920d92091222afeb00501660672012d41fd9c5caefdac0c800000008066bc242efd842d4200084aaefd9c670002e04aae0010670005227401b4ae0010670005e6246e000843f9000000004ab1ac00670005f2700341f90000000074ff42b1ac002d42fd681180a8006000f6f4222efdb4242efdd8262efde42d41000823c200000000206efddc226efde023c300000000760323c800000000246efdd4266efdd023c90000000023ca00000000222efdcc242efdc823cb0000000023c10000000023c200000000b6aefd806600fef24aaefdb8670004a870fb74fbc0aefdc0262e0008720441f90000000043f90000000042b13c00b48057c058801180380010303800b3804a0056c071002d40fd684cee0c0cfd50202efd684e5e4e75202efdb0d08e206efda42240588843e9feb0598822d85888598822d858882d48fd80266efd8059882d4efd8822d8229343f90000000047f900000000246efdb4548a2d4afd843271aa00242efdec206efda0e98a222efdc40681000000002d48fd943d49fd8c43eefdbe3791aa002242d3ce45e9fe90588a43e9feb0598a22da588a598a22da588a598a266efd6c22da22922d4bfd802d48fd90224820412d41fdb8301973c00c810000ffff6708321030803341fffe5c88b3eefd8866e4206efd90222efdb8202efd802f2efd982d41fd642d48fd602d40fd6c4ebaac10588f242efd6c206efd60222efd6422412d40fdc02d42fd80301873c00c810000ffff6708321132803141fffe5c89b1eefd8866e4346efd8c262efd807001226efd8441f9000000002d43fd6c318a9a00b0aefdc06700029272037401206efdac42802d41fd802d42fdb86000fb5c222e0008740141eefe9042804298b581243900000000429842982d42fddc247900000000429842982d4afdd8267900000000429843eefe002d4bfde426390000000042982439000000002d43fde090ae000c2d42fdcc2479000000002d41fdec223cfffffe10267900000000d28e2d40fdbc203c80000ec426390000000090894290242e000820402d49fd6c2d4afdd42d4bfdd02d43fdc82d42fd702d49fd746000f648222e000841f900000000226efda042b01c00242e00082049222efd9c2d49fd6c2d42fd70224e301846804a40" + "222efda4224024412040242efd982642588b22da2d4bfd6c2009598b224126e9fff0264026da220a200b47eefeb0246efd6c2d4bfd9858aefd6c24e9fff42440224b264124db200a220b246efd6c266efda458aefd6c24ebfff8244026412493246efd6c266efda424abfffc202efde86000ff60242efdb47003262efdd8206efde42d42000823c300000000226efddc246efde023c80000000023c900000000266efdd4222efdd023ca0000000023cb00000000242efdcc262efdc823c10000000023c20000000023c300000000b0aefd80670009524280222efd80e989d28e0681fffffed02d41fd78222e00082d41fd84741fc4802200ea895280266efdac226efd7845f61c00206efd982d42fd744a13671620d920d920d92091222afeb00501660672012d41fd9c5caefdac0c800000008066bc242efd842d4200084aaefd9c670002e04aae0010670005227401b4ae0010670005e6246e000843f9000000004ab1ac00670005f2700341f90000000074ff42b1ac002d42fd681180a8006000f6f4222efdb4242efdd8262efde42d41000823c200000000206efddc226efde023c300000000760323c800000000246efdd4266efdd023c90000000023ca00000000222efdcc242efdc823cb0000000023c10000000023c200000000b6aefd806600fef24aaefdb8670004a870fb74fbc0aefdc0262e0008720441f90000000043f90000000042b13c00b48057c058801180380010303800b3804a0056c071002d40fd684cee0c0cfd50202efd684e5e4e75202efdb0d08e206efda42240588843e9feb0598822d85888598822d858882d48fd80266efd8059882d4efd8822d8229343f90000000047f900000000246efdb4548a2d4afd843271aa00242efdec206efda0e98a222efdc40681000000002d48fd943d49fd8c43eefdbe3791aa002242d3ce45e9fe90588a43e9feb0598a22da588a598a22da588a598a266efd6c22da22922d4bfd802d48fd90224820412d41fdb8301973c00c810000ffff6708321030803341fffe5c88b3eefd8866e4206efd90222efdb8202efd802f2efd982d41fd642d48fd602d40fd6c4ebaac18588f242efd6c206efd60222efd6422412d40fdc02d42fd80301873c00c810000ffff6708321132803141fffe5c89b1eefd8866e4346efd8c262efd807001226efd8441f9000000002d43fd6c318a9a00b0aefdc06700029272037401206efdac42802d41fd802d42fdb86000fb5c222e0008740141eefe9042804298b581243900000000429842982d42fddc247900000000429842982d4afdd8267900000000429843eefe002d4bfde426390000000042982439000000002d43fde090ae000c2d42fdcc2479000000002d41fdec223cfffffe10267900000000d28e2d40fdbc203c80000ec426390000000090894290242e000820402d49fd6c2d4afdd42d4bfdd02d43fdc82d42fd702d49fd746000f648222e000841f900000000226efda042b01c00242e00082049222efd9c2d49fd6c2d42fd70224e301846804a40" ], [ "stock", @@ -7508,7 +7517,7 @@ ], [ "hex", - "4e5e4e75486efff44eb900000000588f4aae0008671c202e0008b0aefff4661271aefffc57804a8066084ab900000000660c42804e5e4e7570ff4e5e4e754879000000004ebaa08e588f4a8066e42f2e00084eb900000000588f4a8067a2202e000842b90000000023c00000000070014e5e4e754e56ffbc22390000000048d7040c4a81660000ea4aae000c6718206e000c4aa800b0670e4aa800b467087001b0ae0010640e42814cee040cffbc20014e5e4e752f2e00082d41ffc84ebaa9f4588f222effc84aae0010670000b2307c0005b1c066d02f2e000c2d41ffc84ebaa0c2588f222effc820404a806700012471a8001bb0ae0010670000e44a390000000066a24aae0010679c1428001a1d42ffd30802000067322f28000c2f1071a800182f002f012d41ffc82d48ffcc4ebaa2c04fef0010222effc8206effcc53804a80662453814a81670c162effd372010803000166c22d48ffcc4ebaa98c206effcc4a8066000086700123c0000000004cee040cffbc72ff20014e5e4e75307c00036000ff4e72ff76ff2d43ffe82d41ffd42d41ffec42a72f2e000c42a74ebaa05c4fef000c222effe82040116effd700184a816d1010280019314100147201808111400019222effec4a816d10102800197402314100168082114000194cee040cffbc720120014e5e4e75" + "4e5e4e75486efff44eb900000000588f4aae0008671c202e0008b0aefff4661271aefffc57804a8066084ab900000000660c42804e5e4e7570ff4e5e4e754879000000004ebaa096588f4a8066e42f2e00084eb900000000588f4a8067a2202e000842b90000000023c00000000070014e5e4e754e56ffbc22390000000048d7040c4a81660000ea4aae000c6718206e000c4aa800b0670e4aa800b467087001b0ae0010640e42814cee040cffbc20014e5e4e752f2e00082d41ffc84ebaa9fc588f222effc84aae0010670000b2307c0005b1c066d02f2e000c2d41ffc84ebaa0ca588f222effc820404a806700012471a8001bb0ae0010670000e44a390000000066a24aae0010679c1428001a1d42ffd30802000067322f28000c2f1071a800182f002f012d41ffc82d48ffcc4ebaa2c84fef0010222effc8206effcc53804a80662453814a81670c162effd372010803000166c22d48ffcc4ebaa994206effcc4a8066000086700123c0000000004cee040cffbc72ff20014e5e4e75307c00036000ff4e72ff76ff2d43ffe82d41ffd42d41ffec42a72f2e000c42a74ebaa0644fef000c222effe82040116effd700184a816d1010280019314100147201808111400019222effec4a816d10102800197402314100168082114000194cee040cffbc720120014e5e4e75" ], [ "stock", @@ -7517,7 +7526,7 @@ ], [ "hex", - "2f082d40ffc84ebaa0004fef000c4cee040cffbc222effc820014e5e4e754a39000000006600fe8c203900000000" + "2f082d40ffc84ebaa0084fef000c4cee040cffbc222effc820014e5e4e754a39000000006600fe8c203900000000" ], [ "stock", @@ -7544,7 +7553,7 @@ ], [ "hex", - "4aa80008660c4aaeffd46c00ff186000fd984aaeffd46d00fca0206effd04aa800086700ff0071a80016b0aeffd46700fef442816000fc84206e000c43eeffe82d49ffd82d50ffe02f2effe02f2effdc74ff2f2effd42f012d41ffc84eba9fa44fef0010222effc8b4806700fc4c4a806712206effd0202800084a806618226effd8429158aeffd853814a816700fd1a222effe460b22f002f012d41ffc84eba9e2e508f246effd8222effc824804a806cd242816000fc04518f4ab90000000066204aaf000c671a202f000cb0b900000000660e203900000000b0b900000000650670ff508f4e75eb8842a743faa7ca2040d1fc000000002f082f4800082f49000c4e91508f52802057226f00044a806732487800012f082f4800084e91508f528020574a80671c1228001c4a28001b671e1028001ab3804a0057c071004480508f4e75700123c00000000070ff609410280019b3804a0057c07100448060e02f024ab900000000666e4aaf00086762202f0008b0b90000000066564aaf001467504aaf0018674a2f2f000c4eba9c26588f20404a80673a203900000000eb88068000000000b08866281028001b7380b2af0010661c4a390000000066141228001c4a0067181028001a73817580b4816718241f42804e75241f70ff4e751028001973817580b48166e8206f0014226f0018108041f900000000203c0000000012d8b1c066fa206f0018203c0000000043f90000000041e8001c10d9b3c066fa241f70014e75223900000000518f2f024a816708241f70ff508f4e752f2f00102f4100084ebaa47e588f5980222f00044a8066204a390000000066184aaf001467124aaf0018670c202f0018b0b9000000006708241f4280508f4e75226f00142f092f4100082f49000c4eba9b28588f226f00082040222f0004528143e900de4a8067d04a28001b66ca4aa8000c66c44aa8001067be4a28001966b84a28001a66b24a28001c66acb2af001866b2242f0010700123c200000000241f508f" + "4aa80008660c4aaeffd46c00ff186000fd984aaeffd46d00fca0206effd04aa800086700ff0071a80016b0aeffd46700fef442816000fc84206e000c43eeffe82d49ffd82d50ffe02f2effe02f2effdc74ff2f2effd42f012d41ffc84eba9fac4fef0010222effc8b4806700fc4c4a806712206effd0202800084a806618226effd8429158aeffd853814a816700fd1a222effe460b22f002f012d41ffc84eba9e36508f246effd8222effc824804a806cd242816000fc04518f4ab90000000066204aaf000c671a202f000cb0b900000000660e203900000000b0b900000000650670ff508f4e75eb8842a743faa7d22040d1fc000000002f082f4800082f49000c4e91508f52802057226f00044a806732487800012f082f4800084e91508f528020574a80671c1228001c4a28001b671e1028001ab3804a0057c071004480508f4e75700123c00000000070ff609410280019b3804a0057c07100448060e02f024ab900000000666e4aaf00086762202f0008b0b90000000066564aaf001467504aaf0018674a2f2f000c4eba9c2e588f20404a80673a203900000000eb88068000000000b08866281028001b7380b2af0010661c4a390000000066141228001c4a0067181028001a73817580b4816718241f42804e75241f70ff4e751028001973817580b48166e8206f0014226f0018108041f900000000203c0000000012d8b1c066fa206f0018203c0000000043f90000000041e8001c10d9b3c066fa241f70014e75223900000000518f2f024a816708241f70ff508f4e752f2f00102f4100084ebaa486588f5980222f00044a8066204a390000000066184aaf001467124aaf0018670c202f0018b0b9000000006708241f4280508f4e75226f00142f092f4100082f49000c4eba9b30588f226f00082040222f0004528143e900de4a8067d04a28001b66ca4aa8000c66c44aa8001067be4a28001966b84a28001a66b24a28001c66acb2af001866b2242f0010700123c200000000241f508f" ], [ "stock", @@ -7553,7 +7562,7 @@ ], [ "hex", - "4c042c79000000004a8e6600009c4a3900000000670000a642af00104cd74c04202f00104fef00684e7508010001672473a8000c70064c0108000681000000802240d3fc000000004a1167542250b3f21c00664c41e80020bdef0014670000ae1228000e528e4a28000f6700008c71a800107381b28066a41228000d0801000067a871a8000c740647f9000000004c0028004a33281c67082410b4b20c00678a700123c0000000004cd74c0472ff2f410010202f00104fef00684e752f2f006c4ebaa31c2f400014588f4a806600ff4a2039000000002f4000144a80672e41f900000000528e1228000e45f9000000004a28000f6600ff784a016700ff7c4cd74c04202f00104fef00684e75486f00184eba98ee588f4a80668641ef001843f9000000004def00687390719152885289b0816600ff6cb1ce66ee4ebaa2d84a806700ff5e2f2f006c4eb900000000588f53804a806600fec6226f006cb3f9000000006726720142b9000000002f41001042b90000000042b9000000004cd74c04202f00104fef00684e7570ff720142b90000000023c00000000023c00000000023c00000000023c00000000042b9000000002f41001042b90000000042b90000000060b8" + "4c042c79000000004a8e6600009c4a3900000000670000a642af00104cd74c04202f00104fef00684e7508010001672473a8000c70064c0108000681000000802240d3fc000000004a1167542250b3f21c00664c41e80020bdef0014670000ae1228000e528e4a28000f6700008c71a800107381b28066a41228000d0801000067a871a8000c740647f9000000004c0028004a33281c67082410b4b20c00678a700123c0000000004cd74c0472ff2f410010202f00104fef00684e752f2f006c4ebaa3242f400014588f4a806600ff4a2039000000002f4000144a80672e41f900000000528e1228000e45f9000000004a28000f6600ff784a016700ff7c4cd74c04202f00104fef00684e75486f00184eba98f6588f4a80668641ef001843f9000000004def00687390719152885289b0816600ff6cb1ce66ee4ebaa2e04a806700ff5e2f2f006c4eb900000000588f53804a806600fec6226f006cb3f9000000006726720142b9000000002f41001042b90000000042b9000000004cd74c04202f00104fef00684e7570ff720142b90000000023c00000000023c00000000023c00000000023c00000000042b9000000002f41001042b90000000042b90000000060b8" ], [ "stock", @@ -15722,7 +15731,7 @@ ], [ "hex", - "4e7500004eb9000000004ef94002dc6e4eb9000000004ef94002dc964eb9000000004ef94002dcca00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000022020c81000001036306223c000001034ef94001d86422020c81000001036306223c000001034ef94001d8a24feffff448d703024eb9000000004cd703024fef000c4a80671a72ffb081671a72feb08167262f39000000002f004ef94001de5c4ef900000000" + "4e7500004eb9000000004ef94002dc6e4eb9000000004ef94002dc964eb9000000004ef94002dcca000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000022020c81000001036306223c000001034ef94001d86422020c81000001036306223c000001034ef94001d8a24feffff448d703024eb9000000004cd703024fef000c4a80671a72ffb081671a72feb08167262f39000000002f004ef94001de5c4ef900000000" ], [ "stock", @@ -17923,7 +17932,16 @@ ], [ "hex", - "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003262306364636133363761656337376137646130666461396238663739353434383838623833386336366361323564376534666164633137393236396261643400623163373664303664626537363338646638373833316439643637393364656230646362376364633136393130316439363632376237623035633839346639610000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000312e34304300000000000000000000000062316337366430366462653736333864000100000095a80000002d00000352" + "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003232343335316165383933626235303137633333666332643162333136373032303637643232393765316339323464383038623466393364386234323665363800626431656434333233663035333837343330386264343266396339366133333266336333633930616162383633363033383435356536303737653466653430" + ], + [ + "stock", + "0x400ba570", + 26 + ], + [ + "hex", + "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000312e34304300000000000000000000000062643165643433323366303533383734000100000095a80000002d00000352" ], [ "stock", @@ -18600,7 +18618,7 @@ ], [ "hex", - "302e372e313000b1c76d06dbe7638df87831d9d6793deb0dcb7cdc169101d96627b7b05c894f9a00000000200000003200000044000000480000004c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + "302e372e313100bd1ed4323f053874308bd42f9c96a332f3c3c90aab8636038455e6077e4fe40900000000200000003200000044000000480000004c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" ], [ "stock", @@ -19559,23 +19577,23 @@ ], "park": [ ".run", - 269338 + 269330 ], "putpanel": [ ".run", - 269504 + 269496 ], "txempty": [ ".run", - 269516 + 269508 ], "parkcore": [ ".run", - 269456 + 269448 ], "drain": [ ".run", - 269406 + 269398 ], "mw_run_next": [ ".boot", @@ -22275,11 +22293,11 @@ ], "mg_dirty": [ ".run", - 168064 + 168056 ], "mg_forward": [ ".run", - 168152 + 168144 ], "mg_saved": [ ".bss", @@ -22287,11 +22305,11 @@ ], "mg_generators": [ ".run", - 168274 + 168266 ], "mg_page_view": [ ".run", - 168418 + 168410 ], "mg_active": [ ".bss", @@ -22339,11 +22357,11 @@ ], "runtime_set_parse": [ ".run", - 172944 + 172936 ], "off_seal": [ ".run", - 173334 + 173326 ], "off_bytes": [ ".bss", @@ -22355,11 +22373,11 @@ ], "whole": [ ".run", - 173420 + 173412 ], "load": [ ".run", - 173594 + 173586 ], "off_moving": [ ".bss", @@ -22371,23 +22389,23 @@ ], "removes": [ ".run", - 174376 + 174368 ], "off_find": [ ".run", - 174454 + 174446 ], "off_drop": [ ".run", - 174558 + 174550 ], "seal": [ ".run", - 174924 + 174916 ], "restore_pass": [ ".run", - 175190 + 175182 ], "restore_tries": [ ".bss", @@ -22535,19 +22553,19 @@ ], "dec": [ ".run", - 185084 + 185076 ], "chooser": [ ".run", - 185330 + 185322 ], "session": [ ".run", - 185524 + 185516 ], "octamod_log_flush.part.0": [ ".run", - 190656 + 190648 ], "first_flush": [ ".run", @@ -22599,7 +22617,7 @@ ], "pm_remember": [ ".run", - 192352 + 192344 ], "pm_parent": [ ".bss", @@ -22631,15 +22649,15 @@ ], "pm_entries": [ ".run", - 192516 + 192508 ], "pm_move": [ ".run", - 192694 + 192686 ], "pm_recall": [ ".run", - 192902 + 192894 ], "pm_names": [ ".bss", @@ -22735,15 +22753,15 @@ ], "add_span": [ ".run", - 196332 + 196324 ], "reserve_of": [ ".run", - 196482 + 196474 ], "free_span": [ ".run", - 196586 + 196578 ], "wanted_now": [ ".bss", @@ -22751,7 +22769,7 @@ ], "reserve": [ ".run", - 197036 + 197028 ], "lane": [ ".bss", @@ -22779,7 +22797,7 @@ ], "REDRAW": [ ".run", - 202064 + 202056 ], "masked_at": [ ".bss", @@ -22799,27 +22817,27 @@ ], "source_not_recording": [ ".run", - 204548 + 204540 ], "capture": [ ".run", - 204650 + 204642 ], "rows_match": [ ".run", - 205160 + 205152 ], "unlock": [ ".run", - 205246 + 205238 ], "lock": [ ".run", - 205258 + 205250 ], "api_cancel": [ ".run", - 205264 + 205256 ], "idle_seen": [ ".bss", @@ -22843,19 +22861,19 @@ ], "buffer": [ ".run", - 206652 + 206644 ], "api_replace": [ ".run", - 206794 + 206786 ], "api_confirm": [ ".run", - 206902 + 206894 ], "api_copy": [ ".run", - 207010 + 207002 ], "waveform_seen": [ ".bss", @@ -22943,11 +22961,11 @@ ], "reconcile_question.part.0": [ ".run", - 208418 + 208410 ], "answer": [ ".run", - 208716 + 208708 ], "question_token": [ ".bss", @@ -22963,7 +22981,7 @@ ], "answer.part.0": [ ".run", - 208570 + 208562 ], "labels": [ ".bss", @@ -22999,7 +23017,7 @@ ], "confirm.part.0": [ ".run", - 211708 + 211700 ], "first": [ ".bss", @@ -23011,15 +23029,15 @@ ], "dl_selection_capture": [ ".run", - 215792 + 215784 ], "dl_selection_apply": [ ".run", - 216606 + 216598 ], "same.constprop.0": [ ".run", - 216918 + 216910 ], "queued": [ ".bss", @@ -23027,7 +23045,7 @@ ], "guard": [ ".run", - 217166 + 217158 ], "replay": [ ".bss", @@ -23063,7 +23081,7 @@ ], "block": [ ".run", - 218892 + 218884 ], "k.0": [ ".run", @@ -23071,15 +23089,15 @@ ], "missing_where": [ ".run", - 221424 + 221416 ], "fill": [ ".run", - 221560 + 221552 ], "cell": [ ".run", - 221692 + 221684 ], "surface": [ ".bss", @@ -23087,15 +23105,15 @@ ], "centred": [ ".run", - 221932 + 221924 ], "switch_why": [ ".run", - 222006 + 221998 ], "switches_read": [ ".run", - 222252 + 222244 ], "switch_cursor": [ ".bss", @@ -23131,39 +23149,39 @@ ], "warning": [ ".run", - 223350 + 223342 ], "arrow": [ ".run", - 223530 + 223522 ], "percent": [ ".run", - 223738 + 223730 ], "outline": [ ".run", - 223884 + 223876 ], "dialog": [ ".run", - 224174 + 224166 ], "button": [ ".run", - 224406 + 224398 ], "bar": [ ".run", - 224506 + 224498 ], "share_bar.constprop.0": [ ".run", - 224888 + 224880 ], "wide_bar": [ ".run", - 225088 + 225080 ], "transfer_ticks": [ ".bss", @@ -23207,7 +23225,7 @@ ], "missing_locate": [ ".run", - 225924 + 225916 ], "missing": [ ".bss", @@ -23503,7 +23521,7 @@ ], "exception_hook": [ ".run", - 246676 + 246668 ], "previous_exception": [ ".run", @@ -23539,19 +23557,19 @@ ], "byte.part.0.isra.0": [ ".run", - 248816 + 248808 ], "word": [ ".run", - 249068 + 249060 ], "valid": [ ".run", - 250728 + 250720 ], "meets": [ ".run", - 250814 + 250806 ], "fx2": [ ".run", @@ -23571,27 +23589,27 @@ ], "arrays": [ ".run", - 255394 + 255386 ], "machine_without_table": [ ".run", - 256220 + 256212 ], "owned_upload_valid": [ ".run", - 258180 + 258172 ], "owned_command_valid": [ ".run", - 258406 + 258398 ], "owned_reset_valid": [ ".run", - 258716 + 258708 ], "owned_reserve": [ ".run", - 259078 + 259070 ], "jobs": [ ".bss", @@ -23623,11 +23641,11 @@ ], "owned_idle": [ ".run", - 259640 + 259632 ], "packet": [ ".run", - 259686 + 259678 ], "age": [ ".bss", @@ -23651,23 +23669,23 @@ ], "copy": [ ".run", - 263996 + 263988 ], "equal": [ ".run", - 264026 + 264018 ], "read32": [ ".run", - 267988 + 267980 ], "write32": [ ".run", - 267996 + 267988 ], "bytes.constprop.0": [ ".run", - 268006 + 267998 ], "REC": [ "abs", @@ -23683,23 +23701,23 @@ ], "dl_idle": [ ".run", - 269748 + 269740 ], "dl_return": [ ".run", - 270202 + 270194 ], "dl_next": [ ".run", - 269814 + 269806 ], "dl_complete": [ ".run", - 269832 + 269824 ], "dl_write": [ ".run", - 269922 + 269914 ], "dl_pin_sent": [ ".run", @@ -23707,27 +23725,27 @@ ], "dl_send": [ ".run", - 269958 + 269950 ], "dl_read": [ ".run", - 270084 + 270076 ], "dl_select_return": [ ".run", - 270376 + 270368 ], "dl_fx1_body": [ ".run", - 270318 + 270310 ], "dl_fx2_body": [ ".run", - 270362 + 270354 ], "dl_part_body": [ ".run", - 270414 + 270406 ], "STATE3": [ "abs", @@ -23763,19 +23781,19 @@ ], "mw_delay_silent": [ ".run", - 271036 + 271028 ], "mw_delay_quiet": [ ".run", - 271058 + 271050 ], "modwerk_raise_row": [ ".run", - 274598 + 274590 ], "modwerk_after_row": [ ".run", - 274718 + 274710 ], "BANK_PTR": [ "abs", @@ -23787,35 +23805,35 @@ ], "mw_row_type": [ ".run", - 274820 + 274812 ], ".main_refuse": [ ".run", - 274918 + 274910 ], "mw_src_common": [ ".run", - 274948 + 274940 ], ".src_refuse": [ ".run", - 275010 + 275002 ], "mw_chooser_row_type": [ ".run", - 275214 + 275206 ], "mw_name_pick": [ ".run", - 275132 + 275124 ], "mw_pool_kind": [ ".run", - 275248 + 275240 ], "mw_render_call": [ ".run", - 275820 + 275812 ], "mg_list_keys": [ ".run", @@ -23831,39 +23849,39 @@ ], "service_context": [ ".run", - 277758 + 277750 ], "mvs_copy": [ ".run", - 276110 + 276102 ], "quarantine": [ ".run", - 276138 + 276130 ], "settle": [ ".run", - 276166 + 276158 ], "rollback": [ ".run", - 276200 + 276192 ], "mvs_different.constprop.0": [ ".run", - 276278 + 276270 ], "mvs_fill.constprop.0": [ ".run", - 276326 + 276318 ], "mvs_copy.constprop.0": [ ".run", - 276344 + 276336 ], "cache": [ ".run", - 276368 + 276360 ], "kept.2": [ ".bss", @@ -23879,11 +23897,11 @@ ], "same": [ ".run", - 281568 + 281560 ], "same_view": [ ".run", - 281614 + 281606 ], "board": [ ".bss", @@ -24443,7 +24461,7 @@ ], "dl_hook_reset_start": [ ".run", - 260976 + 260968 ], "modwerk_dsp_meter_bits": [ ".bss", @@ -24455,19 +24473,19 @@ ], "mw_resolve_pb": [ ".run", - 275502 + 275494 ], "modwerk_stock_4004fbfe_6": [ ".run", - 272806 + 272798 ], "mw_stock_hooks_tick": [ ".run", - 253692 + 253684 ], "modwerk_site_40006820": [ ".run", - 271778 + 271770 ], "mw_foreign_render": [ ".run", @@ -24475,23 +24493,23 @@ ], "dl_sum_start": [ ".run", - 260838 + 260830 ], "modwerk_stock_4007a1ec_6": [ ".run", - 273634 + 273626 ], "mw_seq_get_none": [ ".run", - 275914 + 275906 ], "modwerk_machine_stack": [ ".run", - 203086 + 203078 ], "mw_sample_editor_bootstrap": [ ".run", - 207120 + 207112 ], "modwerk_flash_backend": [ ".run", @@ -24503,11 +24521,11 @@ ], "modwerk_status_close_menu": [ ".run", - 225708 + 225700 ], "mw_stock_hooks_retire": [ ".run", - 254340 + 254332 ], "mw_resident_records_A_3": [ ".boot", @@ -24519,7 +24537,7 @@ ], "modwerk_stock_400035ba_8": [ ".run", - 271150 + 271142 ], "modwerk_table_declarations": [ ".run", @@ -24527,7 +24545,7 @@ ], "mg_tick": [ ".run", - 171616 + 171608 ], "modwerk_return_400905d4": [ ".run", @@ -24535,7 +24553,7 @@ ], "modwerk_status_refused": [ ".run", - 232420 + 232412 ], "modwerk_flash_slots": [ ".bss", @@ -24543,7 +24561,7 @@ ], "octamod_log_engine_begin": [ ".run", - 191644 + 191636 ], "mw_engine_buffer": [ ".run", @@ -24555,31 +24573,31 @@ ], "mw_sample_editor_confirm": [ ".run", - 214296 + 214288 ], "modwerk_raise_ev_bank_loaded": [ ".run", - 274548 + 274540 ], "modwerk_raise_ev_project_stored": [ ".run", - 274568 + 274560 ], "modwerk_modset_notice_tick": [ ".run", - 180086 + 180078 ], "modwerk_site_4004a9c4": [ ".run", - 272540 + 272532 ], "modwerk_status_load": [ ".run", - 225436 + 225428 ], "modwerk_stock_40090504_8": [ ".run", - 274176 + 274168 ], "core_midi": [ ".run", @@ -24599,7 +24617,7 @@ ], "modwerk_site_4008ee74": [ ".run", - 273990 + 273982 ], "modwerk_runtime_refused": [ ".run", @@ -24611,7 +24629,7 @@ ], "dl_owned_reset_reserve": [ ".run", - 262860 + 262852 ], "core_draw": [ ".run", @@ -24623,15 +24641,15 @@ ], "modwerk_stock_4000362a_6": [ ".run", - 271474 + 271466 ], "mw_hook_buffer_permitted_held": [ ".run", - 251198 + 251190 ], "dl_state3": [ ".run", - 270428 + 270420 ], "modwerk_dsp_flags": [ ".run", @@ -24639,7 +24657,7 @@ ], "mw_validate_hook": [ ".run", - 275588 + 275580 ], "mw_engines_placed_count": [ ".bss", @@ -24659,7 +24677,7 @@ ], "octamod_log_snapshot": [ ".run", - 187886 + 187878 ], "mw_sample_editor": [ ".bss", @@ -24667,27 +24685,27 @@ ], "mu_commit": [ ".run", - 265426 + 265418 ], "modwerk_stock_4008f180_8": [ ".run", - 274102 + 274094 ], "mw_engines_poll": [ ".run", - 197856 + 197848 ], "dl_publication_prepare": [ ".run", - 159270 + 159262 ], "mw_hook_buffer_clear_of": [ ".run", - 252266 + 252258 ], "modwerk_stock_4003cd98_8": [ ".run", - 275464 + 275456 ], "modwerk_dsp_booked": [ ".run", @@ -24715,15 +24733,15 @@ ], "mw_list_draw": [ ".run", - 275738 + 275730 ], "modwerk_machine_journal_admit": [ ".run", - 281788 + 281780 ], "mg_page_site": [ ".run", - 275972 + 275964 ], "mw_cpu_refusals": [ ".bss", @@ -24731,11 +24749,11 @@ ], "olog_stock_close": [ ".run", - 269130 + 269122 ], "dl_selection_part_guard": [ ".run", - 218206 + 218198 ], "modwerk_dsp_source_claim": [ ".run", @@ -24755,11 +24773,11 @@ ], "mw_stock_pool_open": [ ".run", - 275644 + 275636 ], "modwerk_stock_4006d784_8": [ ".run", - 275772 + 275764 ], "mw_name": [ ".run", @@ -24819,11 +24837,11 @@ ], "mw_chooser_name": [ ".run", - 275164 + 275156 ], "modwerk_machine_journal_commit_ready": [ ".run", - 283334 + 283326 ], "audio_sessend_shim": [ ".run", @@ -24839,11 +24857,11 @@ ], "mw_setup_draw6": [ ".run", - 275408 + 275400 ], "mw_setup_open": [ ".run", - 275030 + 275022 ], "dl_stub_at_boot": [ ".run", @@ -24851,23 +24869,23 @@ ], "mu_request": [ ".run", - 268038 + 268030 ], "modwerk_raise_ev_modules_ready": [ ".run", - 274588 + 274580 ], "mw_sample_editor_replace": [ ".run", - 214352 + 214344 ], "octamod_log_io_error": [ ".run", - 192214 + 192206 ], "mu_abort": [ ".run", - 265938 + 265930 ], "modwerk_set_retire": [ ".run", @@ -24875,23 +24893,23 @@ ], "mw_seq_set_none": [ ".run", - 275920 + 275912 ], "modwerk_volatile_tick": [ ".run", - 277630 + 277622 ], "mw_setup_edit6": [ ".run", - 275292 + 275284 ], "dl_tick": [ ".run", - 270216 + 270208 ], "mw_hook_driver_export_idle": [ ".run", - 249258 + 249250 ], "modwerk_fxmap_machines_read": [ ".bss", @@ -24903,19 +24921,19 @@ ], "modwerk_status_cpu_recent": [ ".run", - 233634 + 233626 ], "modwerk_modset_restored": [ ".run", - 181010 + 181002 ], "modwerk_stock_4000d9a6_10": [ ".run", - 275886 + 275878 ], "modwerk_status_cpu_hot": [ ".run", - 233774 + 233766 ], "modwerk_machine_declarations": [ ".run", @@ -24931,7 +24949,7 @@ ], "modwerk_modset_switch_due": [ ".run", - 180464 + 180456 ], "modwerk_fxpage_missing": [ ".run", @@ -24951,7 +24969,7 @@ ], "mw_part_menu_key": [ ".run", - 193404 + 193396 ], "dl_unloads": [ ".bss", @@ -24959,7 +24977,7 @@ ], "modwerk_stock_400909d8_10": [ ".run", - 274334 + 274326 ], "mw_open_pool": [ ".run", @@ -24983,11 +25001,11 @@ ], "modwerk_site_400909d8": [ ".run", - 274296 + 274288 ], "modwerk_stock_4004fbde_6": [ ".run", - 272722 + 272714 ], "olog_source": [ ".run", @@ -24995,15 +25013,15 @@ ], "mv_tick": [ ".run", - 267436 + 267428 ], "modwerk_stock_400858c0_6": [ ".run", - 284254 + 284246 ], "mw_seq_none": [ ".run", - 275922 + 275914 ], "core_key": [ ".run", @@ -25011,7 +25029,7 @@ ], "modwerk_raise_ev_bank_written": [ ".run", - 274558 + 274550 ], "modwerk_idle_gap": [ ".bss", @@ -25043,7 +25061,7 @@ ], "dl_selection_tick": [ ".run", - 218320 + 218312 ], "dl_selection_commit": [ ".run", @@ -25059,7 +25077,7 @@ ], "modwerk_site_400866cc": [ ".run", - 273732 + 273724 ], "mw_controller_slot_write_allowed": [ ".run", @@ -25071,7 +25089,7 @@ ], "modwerk_site_40004100": [ ".run", - 271648 + 271640 ], "modwerk_fxmap_describe": [ ".run", @@ -25087,11 +25105,11 @@ ], "modwerk_stock_4000e746_6": [ ".run", - 272062 + 272054 ], "mw_sample_editor_answer": [ ".run", - 214410 + 214402 ], "modwerk_status_key_at": [ ".bss", @@ -25103,7 +25121,7 @@ ], "dl_manager_state": [ ".run", - 160456 + 160448 ], "modwerk_usb_clamp2": [ ".run", @@ -25111,27 +25129,27 @@ ], "modwerk_stock_4004a9d0_8": [ ".run", - 272636 + 272628 ], "modwerk_stock_4000d440_4": [ ".run", - 275796 + 275788 ], "dl_fx2_guard": [ ".run", - 270332 + 270324 ], "modwerk_status_tick": [ ".run", - 226238 + 226230 ], "octamod_log_platform_init": [ ".run", - 246718 + 246710 ], "modwerk_site_40044968": [ ".run", - 272262 + 272254 ], "memcpy": [ ".run", @@ -25143,7 +25161,7 @@ ], "dl_abort": [ ".run", - 262568 + 262560 ], "mw_controller_registry_init": [ ".run", @@ -25151,15 +25169,15 @@ ], "dl_bound": [ ".run", - 160504 + 160496 ], "modwerk_site_40004d0c": [ ".run", - 271716 + 271708 ], "modwerk_modset_keep": [ ".run", - 179276 + 179268 ], "olog_build": [ ".run", @@ -25175,7 +25193,7 @@ ], "mw_part_menu_at_4002dc68": [ ".run", - 284480 + 284472 ], "usbmidi_isr_shim": [ ".run", @@ -25191,19 +25209,19 @@ ], "mw_stock_hooks_begin": [ ".run", - 253256 + 253248 ], "modwerk_runtime_draw": [ ".run", - 203462 + 203454 ], "mw_manager_journal_freeze": [ ".run", - 165832 + 165824 ], "octamod_log_fault": [ ".run", - 191490 + 191482 ], "modwerk_machine_map_line": [ ".run", @@ -25215,11 +25233,11 @@ ], "modwerk_stock_400905d4_8": [ ".run", - 274260 + 274252 ], "mw_engines_admit": [ ".run", - 200762 + 200754 ], "modwerk_runtime_journal_begin": [ ".run", @@ -25247,15 +25265,15 @@ ], "dl_arena": [ ".run", - 160620 + 160612 ], "mw_stock_hooks_observed": [ ".run", - 254182 + 254174 ], "dl_publication_poll": [ ".run", - 159438 + 159430 ], "dl_pin7": [ ".run", @@ -25263,7 +25281,7 @@ ], "mw_part_menu_at_4002dcc4": [ ".run", - 284504 + 284496 ], "modwerk_controller_write_resolve": [ ".run", @@ -25307,7 +25325,7 @@ ], "modwerk_status_report": [ ".run", - 225626 + 225618 ], "modwerk_controller_write_policies": [ ".run", @@ -25319,7 +25337,7 @@ ], "octamod_log_event": [ ".run", - 191410 + 191402 ], "mw_pb_table": [ ".bss", @@ -25327,7 +25345,7 @@ ], "modwerk_site_40055170": [ ".run", - 273464 + 273456 ], "mw_pool_left": [ ".run", @@ -25335,11 +25353,11 @@ ], "olog_idle_hook": [ ".run", - 268956 + 268948 ], "modwerk_stock_4004fd06_4": [ ".run", - 273180 + 273172 ], "mw_engines_refused": [ ".bss", @@ -25363,11 +25381,11 @@ ], "mg_key": [ ".run", - 169480 + 169472 ], "modwerk_sample_memory_service": [ ".run", - 215230 + 215222 ], "modwerk_dsp_keybus_price": [ ".run", @@ -25379,7 +25397,7 @@ ], "modwerk_machine_stopped": [ ".run", - 202476 + 202468 ], "mw_ab_restore_plan": [ ".run", @@ -25387,7 +25405,7 @@ ], "modwerk_site_4000dfd4": [ ".run", - 271890 + 271882 ], "dl_allocator_retire": [ ".run", @@ -25395,11 +25413,11 @@ ], "dl_engine_reserved": [ ".run", - 160646 + 160638 ], "modwerk_site_4008f180": [ ".run", - 274064 + 274056 ], "dl_selection_requested": [ ".bss", @@ -25411,15 +25429,15 @@ ], "modwerk_status_key": [ ".run", - 230852 + 230844 ], "table_metadata_admission": [ ".run", - 256750 + 256742 ], "dl_owned_holder": [ ".run", - 263786 + 263778 ], "machine_ui_lifetime": [ ".run", @@ -25427,7 +25445,7 @@ ], "dl_frame": [ ".run", - 261286 + 261278 ], "modwerk_upload_busy": [ ".run", @@ -25455,15 +25473,15 @@ ], "modwerk_stock_40055170_6": [ ".run", - 273546 + 273538 ], "mw_knob_step": [ ".run", - 270870 + 270862 ], "modwerk_status_enc": [ ".run", - 232374 + 232366 ], "modwerk_saved_set_busy": [ ".run", @@ -25471,15 +25489,15 @@ ], "modwerk_stock_4000332a_6": [ ".run", - 271122 + 271114 ], "mw_part_menu_tick": [ ".run", - 194454 + 194446 ], "modwerk_machine_usb_disk": [ ".run", - 202532 + 202524 ], "modwerk_dsp_stalls": [ ".bss", @@ -25487,27 +25505,27 @@ ], "modwerk_site_400905d4": [ ".run", - 274212 + 274204 ], "octamod_log_ticks": [ ".run", - 246760 + 246752 ], "dl_job_release": [ ".run", - 261230 + 261222 ], "modwerk_after_4008ee74": [ ".run", - 274686 + 274678 ], "modwerk_machine_invalidate_code": [ ".run", - 202558 + 202550 ], "octamod_log_format": [ ".run", - 188324 + 188316 ], "modwerk_dsp_missing_tick": [ ".run", @@ -25523,7 +25541,7 @@ ], "mw_part_menu_open": [ ".run", - 193048 + 193040 ], "mw_row_setup_all": [ ".run", @@ -25539,15 +25557,15 @@ ], "mw_project_end": [ ".run", - 270744 + 270736 ], "modwerk_stock_400449be_8": [ ".run", - 272430 + 272422 ], "mg_tap_site": [ ".run", - 275924 + 275916 ], "machine_contributor_validate": [ ".run", @@ -25559,11 +25577,11 @@ ], "dl_fx1_guard": [ ".run", - 270290 + 270282 ], "mw_main_commit": [ ".run", - 274854 + 274846 ], "modwerk_fxpage_build": [ ".run", @@ -25571,15 +25589,15 @@ ], "mu_disconnect": [ ".run", - 266322 + 266314 ], "octamod_log_can_flush": [ ".run", - 246768 + 246760 ], "slot_pick": [ ".run", - 221214 + 221206 ], "boot": [ ".boot", @@ -25587,7 +25605,7 @@ ], "modwerk_machine_uncached": [ ".run", - 202546 + 202538 ], "modwerk_runtime_journal_accept": [ ".run", @@ -25595,11 +25613,11 @@ ], "modwerk_stock_4003a52e_8": [ ".run", - 275394 + 275386 ], "modwerk_stock_4007981c_6": [ ".run", - 274906 + 274898 ], "modwerk_fxmap_where": [ ".run", @@ -25607,7 +25625,7 @@ ], "mw_ts_gate": [ ".run", - 271004 + 270996 ], "modwerk_fxmap_write": [ ".run", @@ -25615,11 +25633,11 @@ ], "mu_verify": [ ".run", - 265176 + 265168 ], "slot_read": [ ".run", - 220750 + 220742 ], "modwerk_machine_bank_modules": [ ".run", @@ -25627,7 +25645,7 @@ ], "modwerk_stock_40002318_8": [ ".run", - 275594 + 275586 ], "machine_metadata_admission": [ ".run", @@ -25659,7 +25677,7 @@ ], "modwerk_cue_cfg_clamp": [ ".run", - 271620 + 271612 ], "mw_controller_cancel": [ ".run", @@ -25667,11 +25685,11 @@ ], "mw_engines_want": [ ".run", - 196780 + 196772 ], "modwerk_load_menu": [ ".run", - 225730 + 225722 ], "mw_resident_records_A_2_end": [ ".boot", @@ -25687,15 +25705,15 @@ ], "modwerk_status_dialog": [ ".run", - 230832 + 230824 ], "octamod_log_boot": [ ".run", - 187268 + 187260 ], "olog_open_hook": [ ".run", - 248592 + 248584 ], "mw_resident_records_A_2": [ ".boot", @@ -25715,7 +25733,7 @@ ], "mw_sample_owner_current_locked": [ ".run", - 206504 + 206496 ], "modwerk_runtime_module": [ ".run", @@ -25723,43 +25741,43 @@ ], "mw_pool_title": [ ".run", - 275658 + 275650 ], "mw_manager_journal_stage": [ ".run", - 165980 + 165972 ], "olog_replay_write": [ ".run", - 269116 + 269108 ], "modwerk_status_draw": [ ".run", - 234178 + 234170 ], "modwerk_site_40050e60": [ ".run", - 273366 + 273358 ], "modwerk_machine_journal_commit_consume": [ ".run", - 283514 + 283506 ], "slot_stub_whole": [ ".run", - 220300 + 220292 ], "modwerk_machine_journal_association": [ ".run", - 281772 + 281764 ], "dl_owned_job_release": [ ".run", - 263570 + 263562 ], "mw_sample_action_decode": [ ".run", - 203668 + 203660 ], "modwerk_controller_write_end": [ ".run", @@ -25791,15 +25809,15 @@ ], "modwerk_machine_dsp_features": [ ".run", - 196776 + 196768 ], "mw_hook_driver_retire": [ ".run", - 250722 + 250714 ], "slot_record_check": [ ".run", - 220072 + 220064 ], "core_up": [ "abs", @@ -25807,7 +25825,7 @@ ], "mw_hook_ranges_idle": [ ".run", - 251536 + 251528 ], "modwerk_dsp_keybus_charge": [ ".run", @@ -25815,11 +25833,11 @@ ], "modwerk_machine_retarget": [ ".run", - 202224 + 202216 ], "slot_newest": [ ".run", - 221170 + 221162 ], "modwerk_diag_refused": [ ".run", @@ -25835,7 +25853,7 @@ ], "modwerk_stock_4004fce0_6": [ ".run", - 273088 + 273080 ], "modwerk_base_version": [ ".run", @@ -25843,11 +25861,11 @@ ], "dl_selection_part_edit_guard": [ ".run", - 218236 + 218228 ], "mw_setup_row": [ ".run", - 275148 + 275140 ], "modwerk_fxmap_loaded": [ ".run", @@ -25859,7 +25877,7 @@ ], "modwerk_events_code": [ ".run", - 271648 + 271640 ], "dl_buffers_next": [ ".run", @@ -25871,7 +25889,7 @@ ], "modwerk_stock_400791e4_8": [ ".run", - 275644 + 275636 ], "modwerk_ep0_poll_shim": [ ".run", @@ -25887,11 +25905,11 @@ ], "mw_chooser_column": [ ".run", - 275078 + 275070 ], "modwerk_after_4008f180": [ ".run", - 274702 + 274694 ], "modwerk_controller_admit": [ ".run", @@ -25907,15 +25925,15 @@ ], "mv_init": [ ".run", - 266472 + 266464 ], "slot_fnv": [ ".run", - 220250 + 220242 ], "mw_sample_select_entry": [ ".run", - 284266 + 284258 ], "modwerk_runtime_calls": [ ".run", @@ -25923,7 +25941,7 @@ ], "mw_hook_buffer_permitted": [ ".run", - 251442 + 251434 ], "modwerk_stock_hook_buffer_policy": [ ".run", @@ -25931,7 +25949,7 @@ ], "modwerk_machine_journal_transition": [ ".run", - 281810 + 281802 ], "modwerk_runtime_journal_prepare": [ ".run", @@ -25947,11 +25965,11 @@ ], "mw_engines_ready": [ ".run", - 198318 + 198310 ], "mw_machine_name": [ ".run", - 274790 + 274782 ], "modwerk_runtime_owner_epoch": [ ".run", @@ -25959,11 +25977,11 @@ ], "modwerk_machine_journal_trial": [ ".run", - 281776 + 281768 ], "modwerk_machine_patchable": [ ".run", - 203162 + 203154 ], "modwerk_boot_run": [ ".run", @@ -25971,11 +25989,11 @@ ], "modwerk_site_4004fbfe": [ ".run", - 272734 + 272726 ], "modwerk_modset_accepted": [ ".run", - 178172 + 178164 ], "modwerk_fx_legacy_count": [ ".run", @@ -26003,7 +26021,7 @@ ], "mw_frame_leave": [ ".run", - 275880 + 275872 ], "dl_bypass_unbound": [ ".run", @@ -26011,7 +26029,7 @@ ], "mw_src_commit2": [ ".run", - 274942 + 274934 ], "usbaudio_maxfill": [ ".run", @@ -26035,7 +26053,7 @@ ], "dl_owned_lease_release": [ ".run", - 263940 + 263932 ], "mw_setup_knob": [ ".run", @@ -26047,7 +26065,7 @@ ], "olog_stock_read": [ ".run", - 269102 + 269094 ], "modwerk_crash_tick": [ ".run", @@ -26055,11 +26073,11 @@ ], "modwerk_machine_journal_roots_clear": [ ".run", - 283674 + 283666 ], "modwerk_after_400905d4": [ ".run", - 274654 + 274646 ], "modwerk_runtime_active": [ ".run", @@ -26087,11 +26105,11 @@ ], "modwerk_after_40090504": [ ".run", - 274638 + 274630 ], "dl_owned_upload_reserve": [ ".run", - 262804 + 262796 ], "modwerk_dsp_miss": [ ".bss", @@ -26099,7 +26117,7 @@ ], "dl_engine_claim": [ ".run", - 160918 + 160910 ], "modwerk_fx_legacy": [ ".run", @@ -26111,11 +26129,11 @@ ], "mw_source_render": [ ".run", - 275786 + 275778 ], "octamod_log_flush": [ ".run", - 191570 + 191562 ], "modwerk_machine_voice_shed": [ ".run", @@ -26123,7 +26141,7 @@ ], "dl_selection_applied": [ ".run", - 218284 + 218276 ], "dl_publication_finish": [ ".run", @@ -26151,11 +26169,11 @@ ], "modwerk_status_cpu_refused": [ ".run", - 233404 + 233396 ], "table_metadata_family": [ ".run", - 255902 + 255894 ], "modwerk_dsp_last_flags": [ ".bss", @@ -26167,7 +26185,7 @@ ], "olog_replay_transport": [ ".run", - 269074 + 269066 ], "modwerk_set_restore": [ ".run", @@ -26199,7 +26217,7 @@ ], "mw_delay_read": [ ".run", - 271140 + 271132 ], "mw_controller_start": [ ".run", @@ -26207,7 +26225,7 @@ ], "modwerk_machine_flush_data": [ ".run", - 202584 + 202576 ], "modwerk_dsp_edma_es": [ ".bss", @@ -26219,11 +26237,11 @@ ], "modwerk_stock_400917c8_8": [ ".run", - 274388 + 274380 ], "modwerk_modset_off_list": [ ".run", - 180472 + 180464 ], "modwerk_modset_generation": [ ".bss", @@ -26275,7 +26293,7 @@ ], "dl_placed": [ ".run", - 160546 + 160538 ], "mw_usb_clock_dropped": [ ".run", @@ -26287,31 +26305,31 @@ ], "modwerk_stock_4000d47e_4": [ ".run", - 274754 + 274746 ], "modwerk_status_effect_busy": [ ".run", - 233890 + 233882 ], "dl_owned_submit": [ ".run", - 262970 + 262962 ], "olog_read_hook": [ ".run", - 248656 + 248648 ], "dl_owned_command_reserve": [ ".run", - 262700 + 262692 ], "mg_stock_note_draw": [ ".run", - 276058 + 276050 ], "mw_sample_editor_begin": [ ".run", - 213136 + 213128 ], "modwerk_machine_where_module": [ ".run", @@ -26319,23 +26337,23 @@ ], "mu_init": [ ".run", - 264216 + 264208 ], "modwerk_dsp_arena_now": [ ".run", - 160672 + 160664 ], "modwerk_site_400917c8": [ ".run", - 274350 + 274342 ], "mw_sample_ui_tick": [ ".run", - 210710 + 210702 ], "mu_leave": [ ".run", - 266220 + 266212 ], "modwerk_controller_effect_package": [ ".run", @@ -26343,7 +26361,7 @@ ], "olog_replay_read": [ ".run", - 269102 + 269094 ], "dl_selection_cancel": [ ".run", @@ -26351,7 +26369,7 @@ ], "modwerk_switches_menu": [ ".run", - 230760 + 230752 ], "modwerk_dsp_source_engine_off": [ ".run", @@ -26359,7 +26377,7 @@ ], "mw_sample_engine_job": [ ".run", - 207292 + 207284 ], "modwerk_machine_dsp_claims_admit": [ ".run", @@ -26371,7 +26389,7 @@ ], "mw_src_commit": [ ".run", - 274934 + 274926 ], "dl_c1_isr": [ ".run", @@ -26379,7 +26397,7 @@ ], "mw_sample_owner_changing": [ ".run", - 207152 + 207144 ], "usbmidi_rx_setcfg_shim": [ ".run", @@ -26387,7 +26405,7 @@ ], "mw_manager_journal_receipt": [ ".run", - 167222 + 167214 ], "modwerk_selftest_start": [ ".run", @@ -26399,7 +26417,7 @@ ], "modwerk_machine_journal_enabled": [ ".run", - 281768 + 281760 ], "mw_type": [ ".run", @@ -26407,11 +26425,11 @@ ], "dl_hook_buffer_ranges_idle": [ ".run", - 159972 + 159964 ], "mw_engine_exit_of": [ ".run", - 196284 + 196276 ], "mw_frame_count": [ ".bss", @@ -26431,11 +26449,11 @@ ], "dl_upload_start": [ ".run", - 260528 + 260520 ], "mv_setup": [ ".run", - 266702 + 266694 ], "machine_contribution": [ ".run", @@ -26443,7 +26461,7 @@ ], "modwerk_missing_menu": [ ".run", - 226168 + 226160 ], "mw_source_render_impl": [ ".run", @@ -26451,11 +26469,11 @@ ], "modwerk_modules_menu": [ ".run", - 225796 + 225788 ], "mg_page": [ ".run", - 168558 + 168550 ], "modwerk_runtime_journal_verify": [ ".run", @@ -26471,7 +26489,7 @@ ], "mw_manager_journal_accept": [ ".run", - 167420 + 167412 ], "modwerk_runtime_refusal": [ ".run", @@ -26487,7 +26505,7 @@ ], "mw_name_a": [ ".run", - 275112 + 275104 ], "machine_part_lifetime": [ ".run", @@ -26499,7 +26517,7 @@ ], "modwerk_machine_types_restored": [ ".run", - 202270 + 202262 ], "dl_frame_gap": [ ".bss", @@ -26511,7 +26529,7 @@ ], "octamod_log_capture_state": [ ".run", - 248128 + 248120 ], "modwerk_stock_hook_export_idle": [ ".run", @@ -26523,11 +26541,11 @@ ], "mw_hook_claim_permitted": [ ".run", - 251856 + 251848 ], "mw_chooser_open": [ ".run", - 275058 + 275050 ], "mw_frame_t0": [ ".bss", @@ -26535,7 +26553,7 @@ ], "mw_lfo_pb": [ ".run", - 275536 + 275528 ], "modwerk_modset_count": [ ".bss", @@ -26543,7 +26561,7 @@ ], "mw_sample_editor_init": [ ".run", - 212764 + 212756 ], "usbmidi_rx_reset_shim": [ ".run", @@ -26551,15 +26569,15 @@ ], "modwerk_modset_switch": [ ".run", - 180410 + 180402 ], "mu_enter": [ ".run", - 264482 + 264474 ], "mw_render_second": [ ".run", - 275806 + 275798 ], "modwerk_fx_modules": [ ".run", @@ -26567,7 +26585,7 @@ ], "dl_engine_evacuation": [ ".run", - 160840 + 160832 ], "modwerk_runtime_owner_valid": [ ".run", @@ -26579,11 +26597,11 @@ ], "modwerk_stock_4000aad0_8": [ ".run", - 275854 + 275846 ], "mv_reset": [ ".run", - 267388 + 267380 ], "core_tick": [ ".run", @@ -26591,7 +26609,7 @@ ], "dl_residency_nudge": [ ".run", - 160422 + 160414 ], "modwerk_diag_set": [ ".run", @@ -26603,11 +26621,11 @@ ], "mw_engines_place": [ ".run", - 198516 + 198508 ], "modwerk_boot_reset": [ ".run", - 269210 + 269202 ], "mw_pool_right": [ ".run", @@ -26619,11 +26637,11 @@ ], "octamod_log_on_boot": [ ".run", - 191174 + 191166 ], "mw_sample_menu_open": [ ".run", - 208738 + 208730 ], "modwerk_dsp_pack": [ ".run", @@ -26635,7 +26653,7 @@ ], "mw_wide_dial": [ ".run", - 270784 + 270776 ], "dl_refusal": [ ".bss", @@ -26647,11 +26665,11 @@ ], "modwerk_test_menu": [ ".run", - 225854 + 225846 ], "dl_job_status": [ ".run", - 261154 + 261146 ], "modwerk_runtime_journal_abort": [ ".run", @@ -26659,7 +26677,7 @@ ], "mv_abandon": [ ".run", - 266678 + 266670 ], "modwerk_dsp_miss_bits": [ ".bss", @@ -26667,7 +26685,7 @@ ], "modwerk_stock_4000d52e_4": [ ".run", - 275810 + 275802 ], "core_enc": [ ".run", @@ -26679,19 +26697,19 @@ ], "mw_sample_editor_cancel": [ ".run", - 214762 + 214754 ], "octamod_log_start_slot": [ ".run", - 246864 + 246856 ], "dl_owned_cancel": [ ".run", - 263106 + 263098 ], "mw_hook_driver_tick": [ ".run", - 249738 + 249730 ], "modwerk_fxmap_machines_written": [ ".bss", @@ -26703,7 +26721,7 @@ ], "mw_stock_hooks_ready": [ ".run", - 252566 + 252558 ], "dl_c1_phase": [ ".run", @@ -26711,7 +26729,7 @@ ], "modwerk_raise_ev_trig_muted": [ ".run", - 274528 + 274520 ], "modwerk_fxmap_assign_checked": [ ".run", @@ -26723,7 +26741,7 @@ ], "mw_engine_relocate": [ ".run", - 196876 + 196868 ], "modwerk_dsp_dry": [ ".run", @@ -26731,7 +26749,7 @@ ], "modwerk_machine_mask": [ ".run", - 202644 + 202636 ], "mw_ab_board_retire": [ ".run", @@ -26751,7 +26769,7 @@ ], "octamod_log_transport": [ ".run", - 192124 + 192116 ], "modwerk_boot_pending": [ ".run", @@ -26787,23 +26805,23 @@ ], "modwerk_stock_4004fd20_4": [ ".run", - 273270 + 273262 ], "mw_sample_waveform_entry": [ ".run", - 284212 + 284204 ], "olog_replay_open": [ ".run", - 269088 + 269080 ], "mg_arp_setup": [ ".run", - 168756 + 168748 ], "modwerk_events_code_end": [ ".run", - 274744 + 274736 ], "dl_engine_evac_failures": [ ".bss", @@ -26843,15 +26861,15 @@ ], "modwerk_site_4004a9d0": [ ".run", - 272592 + 272584 ], "modwerk_raise_ev_mute_keep": [ ".run", - 274518 + 274510 ], "modwerk_stock_40050e60_10": [ ".run", - 273448 + 273440 ], "audio_setiface_shim": [ ".run", @@ -26863,7 +26881,7 @@ ], "octamod_log_seal": [ ".run", - 187156 + 187148 ], "mw_controller_control_write_allowed": [ ".run", @@ -26875,19 +26893,19 @@ ], "modwerk_site_40010212": [ ".run", - 272074 + 272066 ], "mw_delay_idle": [ ".run", - 271170 + 271162 ], "modwerk_modset_candidate": [ ".run", - 176796 + 176788 ], "mv_service": [ ".run", - 267512 + 267504 ], "dl_frames": [ ".bss", @@ -26899,7 +26917,7 @@ ], "mw_sample_ui_key": [ ".run", - 210592 + 210584 ], "mw_delay": [ ".bss", @@ -26907,11 +26925,11 @@ ], "modwerk_status_frame_load": [ ".run", - 225652 + 225644 ], "mw_sample_storage_ready": [ ".run", - 181018 + 181010 ], "modwerk_retained_start": [ ".bss", @@ -26935,7 +26953,7 @@ ], "mw_project_line": [ ".run", - 270678 + 270670 ], "modwerk_backend_prepare": [ ".run", @@ -26943,15 +26961,15 @@ ], "mw_project_write": [ ".run", - 270714 + 270706 ], "dl_owned_lease_acquire": [ ".run", - 263850 + 263842 ], "olog_stock_write": [ ".run", - 269116 + 269108 ], "modwerk_runtime_refused_check": [ ".run", @@ -26963,7 +26981,7 @@ ], "olog_close_hook": [ ".run", - 248768 + 248760 ], "modwerk_hook_boot": [ ".run", @@ -26983,7 +27001,7 @@ ], "modwerk_volatile_init": [ ".run", - 276906 + 276898 ], "modwerk_dsp_used": [ ".run", @@ -26995,7 +27013,7 @@ ], "mw_sample_editor_changed_locked": [ ".run", - 212852 + 212844 ], "modwerk_dsp_watch_ticks": [ ".bss", @@ -27011,7 +27029,7 @@ ], "dl_command_start": [ ".run", - 260714 + 260706 ], "modwerk_flash_tick": [ ".run", @@ -27019,7 +27037,7 @@ ], "modwerk_volatile_busy": [ ".run", - 276872 + 276864 ], "modwerk_fxmap_generation": [ ".run", @@ -27031,7 +27049,7 @@ ], "olog_job_hook": [ ".run", - 268996 + 268988 ], "modwerk_selftest": [ ".bss", @@ -27039,7 +27057,7 @@ ], "modwerk_site_40090504": [ ".run", - 274138 + 274130 ], "usbaudio_anchor": [ ".run", @@ -27055,23 +27073,23 @@ ], "mw_sample_menu_call": [ ".run", - 284200 + 284192 ], "modwerk_site_4004fce0": [ ".run", - 273016 + 273008 ], "modwerk_volatile_queue": [ ".run", - 277230 + 277222 ], "dl_engine_release": [ ".run", - 160740 + 160732 ], "modwerk_site_4009fb58": [ ".run", - 274424 + 274416 ], "dl_parked": [ ".run", @@ -27095,11 +27113,11 @@ ], "mw_name_b": [ ".run", - 275122 + 275114 ], "mw_sample_selection_leave": [ ".run", - 210108 + 210100 ], "modwerk_machine_map_refresh": [ ".run", @@ -27107,15 +27125,15 @@ ], "modwerk_runtime_key": [ ".run", - 203530 + 203522 ], "mw_part_menu_at_4002dc90": [ ".run", - 284492 + 284484 ], "modwerk_machine_journal_idle": [ ".run", - 284136 + 284128 ], "modwerk_dsp_moves_idle": [ ".run", @@ -27127,7 +27145,7 @@ ], "mw_engines_collect": [ ".run", - 201430 + 201422 ], "modwerk_flash_host": [ ".bss", @@ -27135,15 +27153,15 @@ ], "modwerk_stock_4004fc58_10": [ ".run", - 272908 + 272900 ], "mw_stock_validate": [ ".run", - 275594 + 275586 ], "olog_transport_hook": [ ".run", - 269046 + 269038 ], "modwerk_fx1_id2pos": [ ".run", @@ -27155,15 +27173,15 @@ ], "dl_tick2": [ ".run", - 270256 + 270248 ], "mw_sample_select_return": [ ".run", - 284426 + 284418 ], "modwerk_stock_40050254_8": [ ".run", - 273352 + 273344 ], "modwerk_set_prepare": [ ".run", @@ -27211,7 +27229,7 @@ ], "modwerk_machine_reference": [ ".run", - 202448 + 202440 ], "modwerk_runtime_handle_reserved": [ ".run", @@ -27227,7 +27245,7 @@ ], "mw_tick_hook": [ ".run", - 275478 + 275470 ], "dl_reinit_enabled": [ ".run", @@ -27239,7 +27257,7 @@ ], "mw_sample_waveform_job": [ ".run", - 207488 + 207480 ], "modwerk_runtime_next_hook": [ ".run", @@ -27247,7 +27265,7 @@ ], "olog_write_hook": [ ".run", - 248712 + 248704 ], "modwerk_menu_list": [ ".run", @@ -27259,11 +27277,11 @@ ], "octamod_log_engine_idle": [ ".run", - 191784 + 191776 ], "mw_engines_package": [ ".run", - 197738 + 197730 ], "modwerk_flash_trial": [ ".bss", @@ -27271,7 +27289,7 @@ ], "mg_track_tap": [ ".run", - 168968 + 168960 ], "usbmidi_rx_state": [ ".run", @@ -27287,11 +27305,11 @@ ], "mw_sample_select_tail": [ ".run", - 284370 + 284362 ], "octamod_log": [ ".run", - 187600 + 187592 ], "modwerk_flash_progress": [ ".bss", @@ -27299,7 +27317,7 @@ ], "olog_stock_open": [ ".run", - 269088 + 269080 ], "modwerk_return_4008ee74": [ ".run", @@ -27307,7 +27325,7 @@ ], "mw_stock_hooks_busy": [ ".run", - 252550 + 252542 ], "mw_frame_exit": [ ".run", @@ -27315,7 +27333,7 @@ ], "mu_rollback": [ ".run", - 266022 + 266014 ], "modwerk_ep0_bus_reset": [ ".run", @@ -27323,11 +27341,11 @@ ], "mu_chunk": [ ".run", - 264974 + 264966 ], "modwerk_stock_40036548_8": [ ".run", - 276058 + 276050 ], "modwerk_fxmap_name": [ ".run", @@ -27339,19 +27357,19 @@ ], "mw_stock_hooks_reset_begin": [ ".run", - 252648 + 252640 ], "mw_hook_default_claim": [ ".run", - 251108 + 251100 ], "modwerk_after_400917c8": [ ".run", - 274670 + 274662 ], "mw_arena_clear": [ ".run", - 214896 + 214888 ], "modwerk_machine_map_begin": [ ".run", @@ -27359,11 +27377,11 @@ ], "modwerk_runtime_enc": [ ".run", - 203598 + 203590 ], "modwerk_machine_code": [ ".run", - 202572 + 202564 ], "mw_sample_commit_max": [ ".bss", @@ -27375,11 +27393,11 @@ ], "mw_chooser_row": [ ".run", - 275184 + 275176 ], "octamod_log_write_checkpoint": [ ".run", - 247136 + 247128 ], "mg_list_layer": [ ".run", @@ -27407,7 +27425,7 @@ ], "mu_accept": [ ".run", - 265808 + 265800 ], "audio_frame_shim": [ ".run", @@ -27415,11 +27433,11 @@ ], "modwerk_status_cpu_load": [ ".run", - 233656 + 233648 ], "mw_crash": [ ".run", - 269532 + 269524 ], "modwerk_fxpage_current": [ ".run", @@ -27447,7 +27465,7 @@ ], "mw_engines_settled": [ ".run", - 196792 + 196784 ], "mw_ab_part_board_access": [ ".run", @@ -27455,19 +27473,19 @@ ], "modwerk_stock_40010212_6": [ ".run", - 272156 + 272148 ], "dl_state7": [ ".run", - 269672 + 269664 ], "mw_stock_hooks_init": [ ".run", - 252516 + 252508 ], "mg_setup_site": [ ".run", - 276018 + 276010 ], "usbaudio_acc": [ ".run", @@ -27495,7 +27513,7 @@ ], "dl_owned_fail_closed": [ ".run", - 263762 + 263754 ], "modwerk_idle_counts": [ ".bss", @@ -27507,7 +27525,7 @@ ], "modwerk_stock_40025ac2_6": [ ".run", - 272250 + 272242 ], "dl_rx": [ ".bss", @@ -27515,7 +27533,7 @@ ], "mw_sample_refresh_ui": [ ".run", - 207960 + 207952 ], "dl_modal_pending": [ ".bss", @@ -27523,7 +27541,7 @@ ], "dl_owned_closed": [ ".run", - 263818 + 263810 ], "mw_ab_board_check": [ ".run", @@ -27535,11 +27553,11 @@ ], "mw_delay_read0": [ ".run", - 271110 + 271102 ], "modwerk_raise_ev_project_reloaded": [ ".run", - 274578 + 274570 ], "modwerk_load_label": [ ".run", @@ -27547,7 +27565,7 @@ ], "modwerk_modset_kept": [ ".run", - 180010 + 180002 ], "modwerk_dsp_meter_read": [ ".run", @@ -27567,7 +27585,7 @@ ], "dl_publication_ready": [ ".run", - 159538 + 159530 ], "modwerk_selftest_refresh": [ ".run", @@ -27575,11 +27593,11 @@ ], "octamod_log_next_correlation": [ ".run", - 191620 + 191612 ], "modwerk_stock_4008ee74_8": [ ".run", - 274028 + 274020 ], "modwerk_stock_hook_retire": [ ".run", @@ -27591,15 +27609,15 @@ ], "modwerk_site_400867a2": [ ".run", - 273818 + 273810 ], "mw_render_first": [ ".run", - 275792 + 275784 ], "modwerk_modset_due": [ ".run", - 181054 + 181046 ], "modwerk_backend_retire": [ ".run", @@ -27607,15 +27625,15 @@ ], "modwerk_stock_4000dfd4_6": [ ".run", - 271966 + 271958 ], "dl_owned_job_poll": [ ".run", - 263272 + 263264 ], "mg_knob": [ ".run", - 171400 + 171392 ], "mw_frame_max": [ ".bss", @@ -27635,7 +27653,7 @@ ], "modwerk_machine_unlock": [ ".run", - 202776 + 202768 ], "mw_chooser_type": [ ".run", @@ -27659,11 +27677,11 @@ ], "modwerk_stock_400888aa_8": [ ".run", - 273976 + 273968 ], "dl_selection_guard": [ ".run", - 218178 + 218170 ], "modwerk_runtime_owner_snapshot": [ ".run", @@ -27671,7 +27689,7 @@ ], "olog_replay_idle": [ ".run", - 268984 + 268976 ], "modwerk_machine_assigned": [ ".bss", @@ -27683,7 +27701,7 @@ ], "modwerk_site_40045918": [ ".run", - 272444 + 272436 ], "modwerk_idle_hook": [ ".run", @@ -27695,11 +27713,11 @@ ], "mw_stock_list_draw": [ ".run", - 275772 + 275764 ], "mw_hook_driver_begin": [ ".run", - 249500 + 249492 ], "modwerk_modset_switch_result": [ ".bss", @@ -27711,11 +27729,11 @@ ], "mw_manager_journal_step": [ ".run", - 167054 + 167046 ], "modwerk_volatile_status": [ ".run", - 277516 + 277508 ], "modwerk_track_machines": [ ".run", @@ -27723,7 +27741,7 @@ ], "mw_part_menu_enc": [ ".run", - 194130 + 194122 ], "modwerk_runtime_owner_at": [ ".run", @@ -27735,11 +27753,11 @@ ], "mw_sample_selection_enter": [ ".run", - 209706 + 209698 ], "olog_replay_job": [ ".run", - 269034 + 269026 ], "mw_ab_restore_apply": [ ".run", @@ -27751,15 +27769,15 @@ ], "modwerk_stock_4006d8f4_6": [ ".run", - 284340 + 284332 ], "modwerk_modset_check_set": [ ".run", - 176834 + 176826 ], "modwerk_site_40050254": [ ".run", - 273280 + 273272 ], "mw_sample_commit_spans": [ ".bss", @@ -27767,7 +27785,7 @@ ], "mg_note_setup_draw": [ ".run", - 169018 + 169010 ], "dl_publication_tick": [ ".run", @@ -27779,11 +27797,11 @@ ], "modwerk_modset_service": [ ".run", - 181114 + 181106 ], "dl_part_guard": [ ".run", - 270378 + 270370 ], "modwerk_fx_rows": [ ".run", @@ -27807,11 +27825,11 @@ ], "modwerk_stock_4007a2ec_8": [ ".run", - 273718 + 273710 ], "mv_service_held": [ ".run", - 267794 + 267786 ], "modwerk_controller_write_policy_count": [ ".run", @@ -27819,7 +27837,7 @@ ], "modwerk_raise_ev_banks_loaded": [ ".run", - 274538 + 274530 ], "modwerk_controller_write_stack": [ ".run", @@ -27827,11 +27845,11 @@ ], "mw_sample_editor_retire_locked": [ ".run", - 212896 + 212888 ], "mw_sample_menu_retire_locked": [ ".run", - 210188 + 210180 ], "usbaudio_lastbank": [ ".run", @@ -27839,15 +27857,15 @@ ], "modwerk_site_4004fc58": [ ".run", - 272826 + 272818 ], "modwerk_stock_40004d0c_10": [ ".run", - 271762 + 271754 ], "mw_project_begin": [ ".run", - 270628 + 270620 ], "modwerk_runtime_set_refresh": [ ".run", @@ -27859,7 +27877,7 @@ ], "modwerk_volatile_service": [ ".run", - 276072 + 276064 ], "modwerk_boot_recording": [ ".run", @@ -27875,15 +27893,15 @@ ], "modwerk_volatile_reset": [ ".run", - 277600 + 277592 ], "table_machine_association": [ ".run", - 256416 + 256408 ], "dl_publication_idle": [ ".run", - 160402 + 160394 ], "modwerk_fxmap_named": [ ".run", @@ -27895,7 +27913,7 @@ ], "modwerk_site_4004fc94": [ ".run", - 272924 + 272916 ], "modwerk_compact_left": [ ".run", @@ -27903,7 +27921,7 @@ ], "mw_stock_hooks_reset_done": [ ".run", - 253094 + 253086 ], "modwerk_session_end_shim": [ ".run", @@ -27911,7 +27929,7 @@ ], "mw_stock_hooks_held": [ ".run", - 250992 + 250984 ], "mw_controller_transport_poll": [ ".run", @@ -27919,19 +27937,19 @@ ], "modwerk_site_4000e746": [ ".run", - 271986 + 271978 ], "modwerk_site_4004fbde": [ ".run", - 272650 + 272642 ], "octamod_log_flushed": [ ".run", - 188208 + 188200 ], "mw_seq_draw": [ ".run", - 275896 + 275888 ], "modwerk_diag_tick": [ ".run", @@ -27939,7 +27957,7 @@ ], "mw_hook_driver_init": [ ".run", - 249446 + 249438 ], "mw_resident_records_A_3_end": [ ".boot", @@ -27959,11 +27977,11 @@ ], "modwerk_machine_site_restored": [ ".run", - 202416 + 202408 ], "modwerk_site_400449be": [ ".run", - 272348 + 272340 ], "modwerk_ep0_reply": [ ".bss", @@ -27975,7 +27993,7 @@ ], "mw_sample_action_admission": [ ".run", - 204328 + 204320 ], "dl_allocator_move": [ ".run", @@ -28003,11 +28021,11 @@ ], "modwerk_machine_paused": [ ".run", - 202784 + 202776 ], "modwerk_stock_400867a2_8": [ ".run", - 273890 + 273882 ], "modwerk_runtime_volatile_busy": [ ".run", @@ -28015,7 +28033,7 @@ ], "modwerk_site_400888aa": [ ".run", - 273904 + 273896 ], "mg_page_layer": [ ".run", @@ -28031,11 +28049,11 @@ ], "mu_sha256": [ ".run", - 219632 + 219624 ], "modwerk_stock_400866cc_8": [ ".run", - 273804 + 273796 ], "modwerk_base_digest": [ ".run", @@ -28047,11 +28065,11 @@ ], "modwerk_modset_is_off": [ ".run", - 180948 + 180940 ], "mw_manager_journal_release": [ ".run", - 167606 + 167598 ], "modwerk_fxmap_line": [ ".run", @@ -28079,7 +28097,7 @@ ], "slot_keep": [ ".run", - 221354 + 221346 ], "octamod_log_identity": [ ".run", @@ -28091,15 +28109,15 @@ ], "mw_source_start": [ ".run", - 274744 + 274736 ], "modwerk_boot_quiesce": [ ".run", - 269144 + 269136 ], "mu_begin": [ ".run", - 264592 + 264584 ], "modwerk_runtime_capabilities": [ ".run", @@ -28119,11 +28137,11 @@ ], "modwerk_site_4004fd20": [ ".run", - 273198 + 273190 ], "mv_data": [ ".run", - 267344 + 267336 ], "mw_controller_release_job": [ ".run", @@ -28143,7 +28161,7 @@ ], "modwerk_stock_40045918_8": [ ".run", - 272526 + 272518 ], "modwerk_dsp_missing": [ ".bss", @@ -28151,19 +28169,19 @@ ], "olog_replay_close": [ ".run", - 269130 + 269122 ], "mw_sample_engine_idle": [ ".run", - 207790 + 207782 ], "modwerk_site_4007a1ec": [ ".run", - 273558 + 273550 ], "modwerk_machine_unmask": [ ".run", - 202680 + 202672 ], "mw_cpu_refused": [ ".bss", @@ -28175,15 +28193,15 @@ ], "modwerk_stock_40044968_8": [ ".run", - 272334 + 272326 ], "modwerk_stock_4004fc94_6": [ ".run", - 272996 + 272988 ], "modwerk_status_machine_refused": [ ".run", - 233076 + 233068 ], "modwerk_fxmap_read": [ ".bss", @@ -28195,7 +28213,7 @@ ], "modwerk_modset_unsaved": [ ".run", - 180058 + 180050 ], "usbmidi_rx_errs": [ ".run", @@ -28215,11 +28233,11 @@ ], "modwerk_stock_4004a9c4_10": [ ".run", - 272582 + 272574 ], "modwerk_machine_journal_accept": [ ".run", - 283826 + 283818 ], "audio_reset_shim": [ ".run", @@ -28231,27 +28249,27 @@ ], "mw_frame_entry": [ ".run", - 275854 + 275846 ], "modwerk_machine_lock": [ ".run", - 202742 + 202734 ], "modwerk_site_4004fd06": [ ".run", - 273108 + 273100 ], "slot_record": [ ".run", - 220106 + 220098 ], "mw_sample_selection_arm": [ ".run", - 209938 + 209930 ], "dl_hook_claims_idle": [ ".run", - 160102 + 160094 ], "modwerk_runtime_event_row": [ ".run", @@ -28259,11 +28277,11 @@ ], "dl_publication_arm": [ ".run", - 159494 + 159486 ], "modwerk_runtime_tick": [ ".run", - 203206 + 203198 ], "modwerk_post_key": [ ".run", @@ -28271,11 +28289,11 @@ ], "mw_pool_open": [ ".run", - 275608 + 275600 ], "dl_ui": [ ".run", - 262426 + 262418 ], "dl_rejected": [ ".bss", @@ -28287,7 +28305,7 @@ ], "mw_sample_editor_copy": [ ".run", - 213998 + 213990 ], "modwerk_boot_gate": [ ".boot", @@ -28303,11 +28321,11 @@ ], "modwerk_site_4007a2ec": [ ".run", - 273646 + 273638 ], "mw_part_menu_draw": [ ".run", - 194522 + 194514 ], "mw_window_column": [ ".run", @@ -28315,7 +28333,7 @@ ], "mw_idle": [ ".run", - 270964 + 270956 ], "modwerk_test_label": [ ".run", @@ -28323,7 +28341,7 @@ ], "modwerk_site_40025ac2": [ ".run", - 272168 + 272160 ], "modwerk_dsp_packing": [ ".run", @@ -29655,7 +29673,7 @@ 4816, "abs32", "sec:.run", - 176796 + 176788 ], [ ".run", @@ -29683,7 +29701,7 @@ 4918, "abs32", "sec:.run", - 176834 + 176826 ], [ ".run", @@ -29956,7 +29974,7 @@ 5482, "abs32", "sec:.run", - 176834 + 176826 ], [ ".run", @@ -29977,7 +29995,7 @@ 5556, "abs32", "sec:.run", - 178172 + 178164 ], [ ".run", @@ -29991,7 +30009,7 @@ 5586, "abs32", "sec:.run", - 176796 + 176788 ], [ ".run", @@ -30082,7 +30100,7 @@ 5736, "abs32", "sec:.run", - 202476 + 202468 ], [ ".run", @@ -30110,14 +30128,14 @@ 5812, "abs32", "sec:.run", - 202644 + 202636 ], [ ".run", 5870, "abs32", "sec:.run", - 202680 + 202672 ], [ ".run", @@ -30159,7 +30177,7 @@ 5998, "abs32", "sec:.run", - 176796 + 176788 ], [ ".run", @@ -30467,42 +30485,42 @@ 6564, "abs32", "sec:.run", - 202644 + 202636 ], [ ".run", 6604, "abs32", "sec:.run", - 202680 + 202672 ], [ ".run", 6672, "abs32", "sec:.run", - 202644 + 202636 ], [ ".run", 6732, "abs32", "sec:.run", - 202680 + 202672 ], [ ".run", 6748, "abs32", "sec:.run", - 202644 + 202636 ], [ ".run", 6808, "abs32", "sec:.run", - 202680 + 202672 ], [ ".run", @@ -30600,14 +30618,14 @@ 6958, "abs32", "sec:.run", - 269144 + 269136 ], [ ".run", 6964, "abs32", "sec:.run", - 269210 + 269202 ], [ ".run", @@ -31272,7 +31290,7 @@ 19036, "abs32", "sec:.run", - 159972 + 159964 ], [ ".run", @@ -31384,7 +31402,7 @@ 20230, "abs32", "sec:.run", - 263818 + 263810 ], [ ".run", @@ -31447,14 +31465,14 @@ 20534, "abs32", "sec:.run", - 262700 + 262692 ], [ ".run", 20550, "abs32", "sec:.run", - 262970 + 262962 ], [ ".run", @@ -31475,7 +31493,7 @@ 20654, "abs32", "sec:.run", - 262860 + 262852 ], [ ".run", @@ -31496,21 +31514,21 @@ 20736, "abs32", "sec:.run", - 262860 + 262852 ], [ ".run", 20752, "abs32", "sec:.run", - 263106 + 263098 ], [ ".run", 20770, "abs32", "sec:.run", - 263762 + 263754 ], [ ".run", @@ -31531,7 +31549,7 @@ 20840, "abs32", "sec:.run", - 262700 + 262692 ], [ ".run", @@ -31545,7 +31563,7 @@ 20900, "abs32", "sec:.run", - 262860 + 262852 ], [ ".run", @@ -31622,7 +31640,7 @@ 21070, "abs32", "sec:.run", - 219632 + 219624 ], [ ".run", @@ -31636,7 +31654,7 @@ 21120, "abs32", "sec:.run", - 202644 + 202636 ], [ ".run", @@ -31650,7 +31668,7 @@ 21158, "abs32", "sec:.run", - 202680 + 202672 ], [ ".run", @@ -31902,7 +31920,7 @@ 22150, "abs32", "sec:.run", - 202742 + 202734 ], [ ".run", @@ -31930,7 +31948,7 @@ 22188, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -31993,7 +32011,7 @@ 22350, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -32063,7 +32081,7 @@ 22492, "abs32", "sec:.run", - 197856 + 197848 ], [ ".run", @@ -32217,14 +32235,14 @@ 22808, "abs32", "sec:.run", - 263272 + 263264 ], [ ".run", 22838, "abs32", "sec:.run", - 263570 + 263562 ], [ ".run", @@ -32294,7 +32312,7 @@ 23182, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -32343,7 +32361,7 @@ 23336, "abs32", "sec:.run", - 263762 + 263754 ], [ ".run", @@ -32469,7 +32487,7 @@ 23592, "abs32", "sec:.run", - 196780 + 196772 ], [ ".run", @@ -32553,7 +32571,7 @@ 23740, "abs32", "sec:.run", - 198516 + 198508 ], [ ".run", @@ -32567,7 +32585,7 @@ 23790, "abs32", "sec:.run", - 159972 + 159964 ], [ ".run", @@ -32672,7 +32690,7 @@ 24090, "abs32", "sec:.run", - 159972 + 159964 ], [ ".run", @@ -32770,7 +32788,7 @@ 24386, "abs32", "sec:.run", - 201430 + 201422 ], [ ".run", @@ -32805,7 +32823,7 @@ 24454, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -32931,7 +32949,7 @@ 25022, "abs32", "sec:.run", - 263570 + 263562 ], [ ".run", @@ -32952,7 +32970,7 @@ 25068, "abs32", "sec:.run", - 196792 + 196784 ], [ ".run", @@ -33001,7 +33019,7 @@ 25242, "abs32", "sec:.run", - 263570 + 263562 ], [ ".run", @@ -33162,7 +33180,7 @@ 25950, "abs32", "sec:.run", - 197738 + 197730 ], [ ".run", @@ -33176,7 +33194,7 @@ 25986, "abs32", "sec:.run", - 198318 + 198310 ], [ ".run", @@ -33190,7 +33208,7 @@ 26044, "abs32", "sec:.run", - 200762 + 200754 ], [ ".run", @@ -33218,14 +33236,14 @@ 26108, "abs32", "sec:.run", - 198516 + 198508 ], [ ".run", 26192, "abs32", "sec:.run", - 196284 + 196276 ], [ ".run", @@ -33288,7 +33306,7 @@ 26598, "abs32", "sec:.run", - 219632 + 219624 ], [ ".run", @@ -33323,14 +33341,14 @@ 26950, "abs32", "sec:.run", - 200762 + 200754 ], [ ".run", 27032, "abs32", "sec:.run", - 196284 + 196276 ], [ ".run", @@ -33421,7 +33439,7 @@ 27782, "abs32", "sec:.run", - 202644 + 202636 ], [ ".run", @@ -33442,7 +33460,7 @@ 27824, "abs32", "sec:.run", - 202680 + 202672 ], [ ".run", @@ -33470,7 +33488,7 @@ 27864, "abs32", "sec:.run", - 219632 + 219624 ], [ ".run", @@ -33547,7 +33565,7 @@ 28134, "abs32", "sec:.run", - 263818 + 263810 ], [ ".run", @@ -33694,7 +33712,7 @@ 28932, "abs32", "sec:.run", - 200762 + 200754 ], [ ".run", @@ -33785,7 +33803,7 @@ 29530, "abs32", "sec:.run", - 200762 + 200754 ], [ ".run", @@ -33841,21 +33859,21 @@ 30904, "abs32", "sec:.run", - 262970 + 262962 ], [ ".run", 31000, "abs32", "sec:.run", - 202742 + 202734 ], [ ".run", 31084, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -33883,21 +33901,21 @@ 31206, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", 31258, "abs32", "sec:.run", - 202742 + 202734 ], [ ".run", 31792, "abs32", "sec:.run", - 262700 + 262692 ], [ ".run", @@ -33918,28 +33936,28 @@ 32076, "abs32", "sec:.run", - 263106 + 263098 ], [ ".run", 32110, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", 32144, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", 32328, "abs32", "sec:.run", - 262860 + 262852 ], [ ".run", @@ -33953,7 +33971,7 @@ 32486, "abs32", "sec:.run", - 263762 + 263754 ], [ ".run", @@ -33967,21 +33985,21 @@ 32522, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", 32566, "abs32", "sec:.run", - 202742 + 202734 ], [ ".run", 32694, "abs32", "sec:.run", - 263570 + 263562 ], [ ".run", @@ -33995,28 +34013,28 @@ 32792, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", 32822, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", 32858, "abs32", "sec:.run", - 263272 + 263264 ], [ ".run", 32922, "abs32", "sec:.run", - 263762 + 263754 ], [ ".run", @@ -34030,7 +34048,7 @@ 33000, "abs32", "sec:.run", - 263762 + 263754 ], [ ".run", @@ -34044,21 +34062,21 @@ 33030, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", 33066, "abs32", "sec:.run", - 263762 + 263754 ], [ ".run", 33086, "abs32", "sec:.run", - 263762 + 263754 ], [ ".run", @@ -34072,7 +34090,7 @@ 33122, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -34093,14 +34111,14 @@ 33282, "abs32", "sec:.run", - 203086 + 203078 ], [ ".run", 33394, "abs32", "sec:.run", - 202742 + 202734 ], [ ".run", @@ -34128,7 +34146,7 @@ 33472, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -34198,7 +34216,7 @@ 33768, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -34352,7 +34370,7 @@ 34954, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -34373,7 +34391,7 @@ 35026, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -34639,7 +34657,7 @@ 35732, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -34793,7 +34811,7 @@ 36126, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -34856,7 +34874,7 @@ 36252, "abs32", "sec:.run", - 269532 + 269524 ], [ ".run", @@ -36102,7 +36120,7 @@ 41602, "abs32", "sec:.run", - 160546 + 160538 ], [ ".run", @@ -36116,7 +36134,7 @@ 41794, "abs32", "sec:.run", - 159972 + 159964 ], [ ".run", @@ -36137,7 +36155,7 @@ 41848, "abs32", "sec:.run", - 160504 + 160496 ], [ ".run", @@ -36312,7 +36330,7 @@ 42996, "abs32", "sec:.run", - 219632 + 219624 ], [ ".run", @@ -36382,7 +36400,7 @@ 43438, "abs32", "sec:.run", - 159972 + 159964 ], [ ".run", @@ -36396,7 +36414,7 @@ 43490, "abs32", "sec:.run", - 260714 + 260706 ], [ ".run", @@ -36410,7 +36428,7 @@ 43656, "abs32", "sec:.run", - 219632 + 219624 ], [ ".run", @@ -36900,7 +36918,7 @@ 47514, "abs32", "sec:.run", - 160402 + 160394 ], [ ".run", @@ -37047,7 +37065,7 @@ 48618, "abs32", "sec:.run", - 283334 + 283326 ], [ ".run", @@ -37208,7 +37226,7 @@ 50202, "abs32", "sec:.run", - 283514 + 283506 ], [ ".run", @@ -37362,7 +37380,7 @@ 51698, "abs32", "sec:.run", - 160672 + 160664 ], [ ".run", @@ -37537,7 +37555,7 @@ 52730, "abs32", "sec:.run", - 180948 + 180940 ], [ ".run", @@ -37565,7 +37583,7 @@ 53146, "abs32", "sec:.run", - 180948 + 180940 ], [ ".run", @@ -37747,7 +37765,7 @@ 54000, "abs32", "sec:.run", - 202532 + 202524 ], [ ".run", @@ -37775,14 +37793,14 @@ 54064, "abs32", "sec:.run", - 160402 + 160394 ], [ ".run", 54088, "abs32", "sec:.run", - 260714 + 260706 ], [ ".run", @@ -37922,14 +37940,14 @@ 54328, "abs32", "sec:.run", - 202476 + 202468 ], [ ".run", 54348, "abs32", "sec:.run", - 160402 + 160394 ], [ ".run", @@ -38419,7 +38437,7 @@ 55918, "abs32", "sec:.run", - 160620 + 160612 ], [ ".run", @@ -38433,7 +38451,7 @@ 56278, "abs32", "sec:.run", - 160620 + 160612 ], [ ".run", @@ -38503,7 +38521,7 @@ 56476, "abs32", "sec:.run", - 249258 + 249250 ], [ ".run", @@ -38524,7 +38542,7 @@ 56498, "abs32", "sec:.run", - 249446 + 249438 ], [ ".run", @@ -38545,7 +38563,7 @@ 56520, "abs32", "sec:.run", - 249258 + 249250 ], [ ".run", @@ -38559,7 +38577,7 @@ 56590, "abs32", "sec:.run", - 251108 + 251100 ], [ ".run", @@ -38580,7 +38598,7 @@ 56654, "abs32", "sec:.run", - 251108 + 251100 ], [ ".run", @@ -38608,7 +38626,7 @@ 56690, "abs32", "sec:.run", - 249446 + 249438 ], [ ".run", @@ -38643,7 +38661,7 @@ 56766, "abs32", "sec:.run", - 252266 + 252258 ], [ ".run", @@ -38657,7 +38675,7 @@ 56914, "abs32", "sec:.run", - 250992 + 250984 ], [ ".run", @@ -38720,7 +38738,7 @@ 57072, "abs32", "sec:.run", - 251198 + 251190 ], [ ".run", @@ -38769,7 +38787,7 @@ 57320, "abs32", "sec:.run", - 251856 + 251848 ], [ ".run", @@ -38783,7 +38801,7 @@ 57424, "abs32", "sec:.run", - 160102 + 160094 ], [ ".run", @@ -38804,7 +38822,7 @@ 57556, "abs32", "sec:.run", - 160402 + 160394 ], [ ".run", @@ -38846,7 +38864,7 @@ 57620, "abs32", "sec:.run", - 249500 + 249492 ], [ ".run", @@ -38867,7 +38885,7 @@ 57644, "abs32", "sec:.run", - 249446 + 249438 ], [ ".run", @@ -38902,7 +38920,7 @@ 57720, "abs32", "sec:.run", - 250722 + 250714 ], [ ".run", @@ -38923,7 +38941,7 @@ 57744, "abs32", "sec:.run", - 249446 + 249438 ], [ ".run", @@ -38958,7 +38976,7 @@ 57810, "abs32", "sec:.run", - 261154 + 261146 ], [ ".run", @@ -39028,7 +39046,7 @@ 57934, "abs32", "sec:.run", - 160456 + 160448 ], [ ".run", @@ -39322,7 +39340,7 @@ 58542, "abs32", "sec:.run", - 225626 + 225618 ], [ ".run", @@ -39364,7 +39382,7 @@ 58958, "abs32", "sec:.run", - 202644 + 202636 ], [ ".run", @@ -39441,7 +39459,7 @@ 59154, "abs32", "sec:.run", - 262568 + 262560 ], [ ".run", @@ -39455,7 +39473,7 @@ 59178, "abs32", "sec:.run", - 202680 + 202672 ], [ ".run", @@ -39553,7 +39571,7 @@ 59514, "abs32", "sec:.run", - 249738 + 249730 ], [ ".run", @@ -39567,7 +39585,7 @@ 59526, "abs32", "sec:.run", - 252550 + 252542 ], [ ".run", @@ -39693,7 +39711,7 @@ 59768, "abs32", "sec:.run", - 202532 + 202524 ], [ ".run", @@ -39735,7 +39753,7 @@ 59860, "abs32", "sec:.run", - 261154 + 261146 ], [ ".run", @@ -39763,7 +39781,7 @@ 59904, "abs32", "sec:.run", - 261230 + 261222 ], [ ".run", @@ -39791,7 +39809,7 @@ 59952, "abs32", "sec:.run", - 160402 + 160394 ], [ ".run", @@ -39987,7 +40005,7 @@ 60442, "abs32", "sec:.run", - 160422 + 160414 ], [ ".run", @@ -40029,7 +40047,7 @@ 60504, "abs32", "sec:.run", - 261154 + 261146 ], [ ".run", @@ -40043,7 +40061,7 @@ 60540, "abs32", "sec:.run", - 261230 + 261222 ], [ ".run", @@ -40064,7 +40082,7 @@ 60574, "abs32", "sec:.run", - 160402 + 160394 ], [ ".run", @@ -40085,7 +40103,7 @@ 60650, "abs32", "sec:.run", - 260714 + 260706 ], [ ".run", @@ -40211,7 +40229,7 @@ 60840, "abs32", "sec:.run", - 160402 + 160394 ], [ ".run", @@ -40393,7 +40411,7 @@ 61120, "abs32", "sec:.run", - 249446 + 249438 ], [ ".run", @@ -40421,7 +40439,7 @@ 61146, "abs32", "sec:.run", - 249738 + 249730 ], [ ".run", @@ -40435,7 +40453,7 @@ 61158, "abs32", "sec:.run", - 252550 + 252542 ], [ ".run", @@ -40470,14 +40488,14 @@ 61212, "abs32", "sec:.run", - 202644 + 202636 ], [ ".run", 61248, "abs32", "sec:.run", - 202680 + 202672 ], [ ".run", @@ -40498,7 +40516,7 @@ 61310, "abs32", "sec:.run", - 261154 + 261146 ], [ ".run", @@ -40568,7 +40586,7 @@ 61468, "abs32", "sec:.run", - 160402 + 160394 ], [ ".run", @@ -40624,7 +40642,7 @@ 61580, "abs32", "sec:.run", - 160402 + 160394 ], [ ".run", @@ -40953,7 +40971,7 @@ 62354, "abs32", "sec:.run", - 261230 + 261222 ], [ ".run", @@ -41142,7 +41160,7 @@ 62720, "abs32", "sec:.run", - 160402 + 160394 ], [ ".run", @@ -41184,7 +41202,7 @@ 62818, "abs32", "sec:.run", - 261230 + 261222 ], [ ".run", @@ -41212,14 +41230,14 @@ 62880, "abs32", "sec:.run", - 202644 + 202636 ], [ ".run", 62906, "abs32", "sec:.run", - 202680 + 202672 ], [ ".run", @@ -41240,7 +41258,7 @@ 62952, "abs32", "sec:.run", - 202680 + 202672 ], [ ".run", @@ -41296,7 +41314,7 @@ 63026, "abs32", "sec:.run", - 261154 + 261146 ], [ ".run", @@ -41443,7 +41461,7 @@ 63254, "abs32", "sec:.run", - 160402 + 160394 ], [ ".run", @@ -41471,7 +41489,7 @@ 63308, "abs32", "sec:.run", - 261154 + 261146 ], [ ".run", @@ -41632,7 +41650,7 @@ 63508, "abs32", "sec:.run", - 160402 + 160394 ], [ ".run", @@ -41807,7 +41825,7 @@ 63774, "abs32", "sec:.run", - 202644 + 202636 ], [ ".run", @@ -41828,7 +41846,7 @@ 63836, "abs32", "sec:.run", - 202680 + 202672 ], [ ".run", @@ -41863,7 +41881,7 @@ 63916, "abs32", "sec:.run", - 160402 + 160394 ], [ ".run", @@ -41968,7 +41986,7 @@ 64120, "abs32", "sec:.run", - 160402 + 160394 ], [ ".run", @@ -41996,7 +42014,7 @@ 64170, "abs32", "sec:.run", - 160402 + 160394 ], [ ".run", @@ -42066,7 +42084,7 @@ 64304, "abs32", "sec:.run", - 160546 + 160538 ], [ ".run", @@ -42080,7 +42098,7 @@ 64338, "abs32", "sec:.run", - 160402 + 160394 ], [ ".run", @@ -42402,7 +42420,7 @@ 64786, "abs32", "sec:.run", - 160402 + 160394 ], [ ".run", @@ -42472,7 +42490,7 @@ 64896, "abs32", "sec:.run", - 160402 + 160394 ], [ ".run", @@ -42689,7 +42707,7 @@ 65214, "abs32", "sec:.run", - 160402 + 160394 ], [ ".run", @@ -42759,7 +42777,7 @@ 65318, "abs32", "sec:.run", - 160620 + 160612 ], [ ".run", @@ -43172,14 +43190,14 @@ 66162, "abs32", "sec:.run", - 261154 + 261146 ], [ ".run", 66180, "abs32", "sec:.run", - 261230 + 261222 ], [ ".run", @@ -43319,7 +43337,7 @@ 66494, "abs32", "sec:.run", - 160402 + 160394 ], [ ".run", @@ -43396,7 +43414,7 @@ 66628, "abs32", "sec:.run", - 160402 + 160394 ], [ ".run", @@ -43501,7 +43519,7 @@ 66796, "abs32", "sec:.run", - 160402 + 160394 ], [ ".run", @@ -43550,7 +43568,7 @@ 66888, "abs32", "sec:.run", - 261154 + 261146 ], [ ".run", @@ -43592,7 +43610,7 @@ 67094, "abs32", "sec:.run", - 160620 + 160612 ], [ ".run", @@ -43627,7 +43645,7 @@ 67172, "abs32", "sec:.run", - 260838 + 260830 ], [ ".run", @@ -43998,7 +44016,7 @@ 68090, "abs32", "sec:.run", - 266472 + 266464 ], [ ".run", @@ -44061,7 +44079,7 @@ 68174, "abs32", "sec:.run", - 277600 + 277592 ], [ ".run", @@ -44089,7 +44107,7 @@ 68280, "abs32", "sec:.run", - 266678 + 266670 ], [ ".run", @@ -44103,7 +44121,7 @@ 68300, "abs32", "sec:.run", - 277230 + 277222 ], [ ".run", @@ -44138,7 +44156,7 @@ 68378, "abs32", "sec:.run", - 267344 + 267336 ], [ ".run", @@ -44208,7 +44226,7 @@ 69090, "abs32", "sec:.run", - 276872 + 276864 ], [ ".run", @@ -44264,7 +44282,7 @@ 69192, "abs32", "sec:.run", - 276872 + 276864 ], [ ".run", @@ -44383,7 +44401,7 @@ 69524, "abs32", "sec:.run", - 266472 + 266464 ], [ ".run", @@ -44411,7 +44429,7 @@ 69586, "abs32", "sec:.run", - 266702 + 266694 ], [ ".run", @@ -44467,7 +44485,7 @@ 69766, "abs32", "sec:.run", - 277600 + 277592 ], [ ".run", @@ -44502,7 +44520,7 @@ 69822, "abs32", "sec:.run", - 276872 + 276864 ], [ ".run", @@ -44768,7 +44786,7 @@ 70588, "abs32", "sec:.run", - 277516 + 277508 ], [ ".run", @@ -44817,7 +44835,7 @@ 70988, "abs32", "sec:.run", - 276872 + 276864 ], [ ".run", @@ -44901,14 +44919,14 @@ 71244, "abs32", "sec:.run", - 225436 + 225428 ], [ ".run", 71342, "abs32", "sec:.run", - 180472 + 180464 ], [ ".run", @@ -45069,7 +45087,7 @@ 71890, "abs32", "sec:.run", - 277600 + 277592 ], [ ".run", @@ -45111,7 +45129,7 @@ 71948, "abs32", "sec:.run", - 267388 + 267380 ], [ ".run", @@ -45167,7 +45185,7 @@ 72082, "abs32", "sec:.run", - 266472 + 266464 ], [ ".run", @@ -45181,7 +45199,7 @@ 72108, "abs32", "sec:.run", - 180086 + 180078 ], [ ".run", @@ -45356,7 +45374,7 @@ 72380, "abs32", "sec:.run", - 180464 + 180456 ], [ ".run", @@ -45426,7 +45444,7 @@ 72498, "abs32", "sec:.run", - 267436 + 267428 ], [ ".run", @@ -45510,7 +45528,7 @@ 72636, "abs32", "sec:.run", - 266472 + 266464 ], [ ".run", @@ -45566,7 +45584,7 @@ 72716, "abs32", "sec:.run", - 277630 + 277622 ], [ ".run", @@ -45601,7 +45619,7 @@ 72782, "abs32", "sec:.run", - 202742 + 202734 ], [ ".run", @@ -45685,7 +45703,7 @@ 72898, "abs32", "sec:.run", - 277600 + 277592 ], [ ".run", @@ -45713,7 +45731,7 @@ 73016, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -45727,7 +45745,7 @@ 73038, "abs32", "sec:.run", - 181054 + 181046 ], [ ".run", @@ -45769,7 +45787,7 @@ 73122, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -45790,7 +45808,7 @@ 73150, "abs32", "sec:.run", - 266678 + 266670 ], [ ".run", @@ -45818,7 +45836,7 @@ 73196, "abs32", "sec:.run", - 266472 + 266464 ], [ ".run", @@ -45839,14 +45857,14 @@ 73228, "abs32", "sec:.run", - 266678 + 266670 ], [ ".run", 73252, "abs32", "sec:.run", - 181114 + 181106 ], [ ".run", @@ -45881,7 +45899,7 @@ 73306, "abs32", "sec:.run", - 160402 + 160394 ], [ ".run", @@ -45909,14 +45927,14 @@ 73336, "abs32", "sec:.run", - 267794 + 267786 ], [ ".run", 73356, "abs32", "sec:.run", - 181010 + 181002 ], [ ".run", @@ -45944,7 +45962,7 @@ 73480, "abs32", "sec:.run", - 219632 + 219624 ], [ ".run", @@ -45986,7 +46004,7 @@ 73542, "abs32", "sec:.run", - 264216 + 264208 ], [ ".run", @@ -46035,7 +46053,7 @@ 73606, "abs32", "sec:.run", - 276906 + 276898 ], [ ".run", @@ -46063,7 +46081,7 @@ 73642, "abs32", "sec:.run", - 276072 + 276064 ], [ ".run", @@ -46084,7 +46102,7 @@ 73668, "abs32", "sec:.run", - 276872 + 276864 ], [ ".run", @@ -46105,7 +46123,7 @@ 73694, "abs32", "sec:.run", - 267512 + 267504 ], [ ".run", @@ -46126,14 +46144,14 @@ 73712, "abs32", "sec:.run", - 276072 + 276064 ], [ ".run", 73718, "abs32", "sec:.run", - 181114 + 181106 ], [ ".run", @@ -46182,7 +46200,7 @@ 73830, "abs32", "sec:.run", - 176796 + 176788 ], [ ".run", @@ -46364,21 +46382,21 @@ 74352, "abs32", "sec:.run", - 220300 + 220292 ], [ ".run", 74376, "abs32", "sec:.run", - 220750 + 220742 ], [ ".run", 74414, "abs32", "sec:.run", - 221170 + 221162 ], [ ".run", @@ -46574,7 +46592,7 @@ 75896, "abs32", "sec:.run", - 220106 + 220098 ], [ ".run", @@ -46588,7 +46606,7 @@ 75960, "abs32", "sec:.run", - 220750 + 220742 ], [ ".run", @@ -46658,7 +46676,7 @@ 76252, "abs32", "sec:.run", - 219632 + 219624 ], [ ".run", @@ -46742,7 +46760,7 @@ 77114, "abs32", "sec:.run", - 220300 + 220292 ], [ ".run", @@ -46763,7 +46781,7 @@ 77146, "abs32", "sec:.run", - 220300 + 220292 ], [ ".run", @@ -46784,7 +46802,7 @@ 77172, "abs32", "sec:.run", - 220300 + 220292 ], [ ".run", @@ -46805,14 +46823,14 @@ 77196, "abs32", "sec:.run", - 220300 + 220292 ], [ ".run", 77224, "abs32", "sec:.run", - 219632 + 219624 ], [ ".run", @@ -46847,7 +46865,7 @@ 77356, "abs32", "sec:.run", - 220300 + 220292 ], [ ".run", @@ -46868,7 +46886,7 @@ 77392, "abs32", "sec:.run", - 220750 + 220742 ], [ ".run", @@ -46882,7 +46900,7 @@ 77424, "abs32", "sec:.run", - 221214 + 221206 ], [ ".run", @@ -46903,7 +46921,7 @@ 77508, "abs32", "sec:.run", - 221354 + 221346 ], [ ".run", @@ -46945,14 +46963,14 @@ 77612, "abs32", "sec:.run", - 220300 + 220292 ], [ ".run", 77624, "abs32", "sec:.run", - 220300 + 220292 ], [ ".run", @@ -46987,21 +47005,21 @@ 77662, "abs32", "sec:.run", - 269144 + 269136 ], [ ".run", 77676, "abs32", "sec:.run", - 220750 + 220742 ], [ ".run", 77702, "abs32", "sec:.run", - 221214 + 221206 ], [ ".run", @@ -47022,14 +47040,14 @@ 77800, "abs32", "sec:.run", - 220300 + 220292 ], [ ".run", 77820, "abs32", "sec:.run", - 220750 + 220742 ], [ ".run", @@ -47239,7 +47257,7 @@ 78480, "abs32", "sec:.run", - 220750 + 220742 ], [ ".run", @@ -47575,35 +47593,35 @@ 79162, "abs32", "sec:.run", - 220300 + 220292 ], [ ".run", 79184, "abs32", "sec:.run", - 220750 + 220742 ], [ ".run", 79214, "abs32", "sec:.run", - 221170 + 221162 ], [ ".run", 79300, "abs32", "sec:.run", - 202644 + 202636 ], [ ".run", 79334, "abs32", "sec:.run", - 202680 + 202672 ], [ ".run", @@ -47638,14 +47656,14 @@ 79464, "abs32", "sec:.run", - 202644 + 202636 ], [ ".run", 79498, "abs32", "sec:.run", - 202680 + 202672 ], [ ".run", @@ -48338,14 +48356,14 @@ 85404, "abs32", "sec:.run", - 219632 + 219624 ], [ ".run", 86156, "abs32", "sec:.run", - 219632 + 219624 ], [ ".run", @@ -48373,14 +48391,14 @@ 86752, "abs32", "sec:.run", - 202584 + 202576 ], [ ".run", 86834, "abs32", "sec:.run", - 202558 + 202550 ], [ ".run", @@ -48877,70 +48895,70 @@ 89620, "abs32", "sec:.run", - 202742 + 202734 ], [ ".run", 89628, "abs32", "sec:.run", - 202644 + 202636 ], [ ".run", 89638, "abs32", "sec:.run", - 202572 + 202564 ], [ ".run", 89688, "abs32", "sec:.run", - 202680 + 202672 ], [ ".run", 89696, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", 89724, "abs32", "sec:.run", - 219632 + 219624 ], [ ".run", 89924, "abs32", "sec:.run", - 202680 + 202672 ], [ ".run", 89932, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", 89976, "abs32", "sec:.run", - 219632 + 219624 ], [ ".run", 90016, "abs32", "sec:.run", - 219632 + 219624 ], [ ".run", @@ -48954,7 +48972,7 @@ 90052, "abs32", "sec:.run", - 202476 + 202468 ], [ ".run", @@ -48968,7 +48986,7 @@ 90080, "abs32", "sec:.run", - 202476 + 202468 ], [ ".run", @@ -49255,7 +49273,7 @@ 91560, "abs32", "sec:.run", - 202572 + 202564 ], [ ".run", @@ -49269,7 +49287,7 @@ 91814, "abs32", "sec:.run", - 202644 + 202636 ], [ ".run", @@ -49318,7 +49336,7 @@ 92030, "abs32", "sec:.run", - 202680 + 202672 ], [ ".run", @@ -49360,7 +49378,7 @@ 92230, "abs32", "sec:.run", - 219632 + 219624 ], [ ".run", @@ -49381,42 +49399,42 @@ 92358, "abs32", "sec:.run", - 202584 + 202576 ], [ ".run", 92364, "abs32", "sec:.run", - 202572 + 202564 ], [ ".run", 92440, "abs32", "sec:.run", - 202416 + 202408 ], [ ".run", 92560, "abs32", "sec:.run", - 202572 + 202564 ], [ ".run", 92568, "abs32", "sec:.run", - 202584 + 202576 ], [ ".run", 92704, "abs32", "sec:.run", - 202416 + 202408 ], [ ".run", @@ -49430,21 +49448,21 @@ 92754, "abs32", "sec:.run", - 202742 + 202734 ], [ ".run", 92776, "abs32", "sec:.run", - 202784 + 202776 ], [ ".run", 92798, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -49465,7 +49483,7 @@ 92842, "abs32", "sec:.run", - 202448 + 202440 ], [ ".run", @@ -49535,14 +49553,14 @@ 93426, "abs32", "sec:.run", - 202784 + 202776 ], [ ".run", 93462, "abs32", "sec:.run", - 202448 + 202440 ], [ ".run", @@ -49570,28 +49588,28 @@ 93792, "abs32", "sec:.run", - 202572 + 202564 ], [ ".run", 93924, "abs32", "sec:.run", - 202644 + 202636 ], [ ".run", 93954, "abs32", "sec:.run", - 202558 + 202550 ], [ ".run", 93976, "abs32", "sec:.run", - 202680 + 202672 ], [ ".run", @@ -49647,7 +49665,7 @@ 94330, "abs32", "sec:.run", - 202784 + 202776 ], [ ".run", @@ -49661,14 +49679,14 @@ 94496, "abs32", "sec:.run", - 271648 + 271640 ], [ ".run", 94514, "abs32", "sec:.run", - 274744 + 274736 ], [ ".run", @@ -49696,7 +49714,7 @@ 94852, "abs32", "sec:.run", - 202784 + 202776 ], [ ".run", @@ -49745,7 +49763,7 @@ 95136, "abs32", "sec:.run", - 202680 + 202672 ], [ ".run", @@ -49955,7 +49973,7 @@ 98772, "abs32", "sec:.run", - 203162 + 203154 ], [ ".run", @@ -50004,28 +50022,28 @@ 99280, "abs32", "sec:.run", - 203162 + 203154 ], [ ".run", 100236, "abs32", "sec:.run", - 219632 + 219624 ], [ ".run", 100266, "abs32", "sec:.run", - 219632 + 219624 ], [ ".run", 100284, "abs32", "sec:.run", - 219632 + 219624 ], [ ".run", @@ -50130,14 +50148,14 @@ 102686, "abs32", "sec:.run", - 219632 + 219624 ], [ ".run", 102712, "abs32", "sec:.run", - 196776 + 196768 ], [ ".run", @@ -50158,7 +50176,7 @@ 102806, "abs32", "sec:.run", - 219632 + 219624 ], [ ".run", @@ -50340,7 +50358,7 @@ 104122, "abs32", "sec:.run", - 202742 + 202734 ], [ ".run", @@ -50396,7 +50414,7 @@ 104288, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -50452,7 +50470,7 @@ 104710, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -50585,7 +50603,7 @@ 105270, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -50739,7 +50757,7 @@ 107288, "abs32", "sec:.run", - 202742 + 202734 ], [ ".run", @@ -50753,21 +50771,21 @@ 107316, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", 107346, "abs32", "sec:.run", - 202584 + 202576 ], [ ".run", 107352, "abs32", "sec:.run", - 202558 + 202550 ], [ ".run", @@ -50984,14 +51002,14 @@ 109230, "abs32", "sec:.run", - 202742 + 202734 ], [ ".run", 109240, "abs32", "sec:.run", - 202644 + 202636 ], [ ".run", @@ -51005,7 +51023,7 @@ 109256, "abs32", "sec:.run", - 202680 + 202672 ], [ ".run", @@ -51019,21 +51037,21 @@ 109334, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", 109362, "abs32", "sec:.run", - 202742 + 202734 ], [ ".run", 109370, "abs32", "sec:.run", - 202644 + 202636 ], [ ".run", @@ -51047,7 +51065,7 @@ 109382, "abs32", "sec:.run", - 202680 + 202672 ], [ ".run", @@ -51061,7 +51079,7 @@ 109478, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -51117,7 +51135,7 @@ 109916, "abs32", "sec:.run", - 202742 + 202734 ], [ ".run", @@ -51131,28 +51149,28 @@ 109940, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", 109986, "abs32", "sec:.run", - 202784 + 202776 ], [ ".run", 110012, "abs32", "sec:.run", - 271648 + 271640 ], [ ".run", 110018, "abs32", "sec:.run", - 202448 + 202440 ], [ ".run", @@ -51194,35 +51212,35 @@ 110312, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", 110324, "abs32", "sec:.run", - 274744 + 274736 ], [ ".run", 110382, "abs32", "sec:.run", - 202784 + 202776 ], [ ".run", 110628, "abs32", "sec:.run", - 202644 + 202636 ], [ ".run", 110678, "abs32", "sec:.run", - 202558 + 202550 ], [ ".run", @@ -51236,14 +51254,14 @@ 110704, "abs32", "sec:.run", - 202680 + 202672 ], [ ".run", 110770, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -51271,21 +51289,21 @@ 110844, "abs32", "sec:.run", - 202644 + 202636 ], [ ".run", 110982, "abs32", "sec:.run", - 202680 + 202672 ], [ ".run", 111004, "abs32", "sec:.run", - 202680 + 202672 ], [ ".run", @@ -51369,21 +51387,21 @@ 111146, "abs32", "sec:.run", - 202742 + 202734 ], [ ".run", 111156, "abs32", "sec:.run", - 202476 + 202468 ], [ ".run", 111194, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -51411,7 +51429,7 @@ 111252, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -51453,21 +51471,21 @@ 111324, "abs32", "sec:.run", - 202742 + 202734 ], [ ".run", 111334, "abs32", "sec:.run", - 202476 + 202468 ], [ ".run", 111372, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -51488,7 +51506,7 @@ 111416, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -51516,7 +51534,7 @@ 111502, "abs32", "sec:.run", - 202742 + 202734 ], [ ".run", @@ -51544,14 +51562,14 @@ 111534, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", 111550, "abs32", "sec:.run", - 202742 + 202734 ], [ ".run", @@ -51593,7 +51611,7 @@ 111602, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -51614,14 +51632,14 @@ 111650, "abs32", "sec:.run", - 202476 + 202468 ], [ ".run", 111676, "abs32", "sec:.run", - 281768 + 281760 ], [ ".run", @@ -51677,7 +51695,7 @@ 111794, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -51747,7 +51765,7 @@ 112162, "abs32", "sec:.run", - 202742 + 202734 ], [ ".run", @@ -51761,7 +51779,7 @@ 112228, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -51810,7 +51828,7 @@ 112360, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -51824,14 +51842,14 @@ 112402, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", 112428, "abs32", "sec:.run", - 219632 + 219624 ], [ ".run", @@ -51845,7 +51863,7 @@ 112460, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -51866,7 +51884,7 @@ 112502, "abs32", "sec:.run", - 202742 + 202734 ], [ ".run", @@ -51887,14 +51905,14 @@ 112576, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", 112606, "abs32", "sec:.run", - 281788 + 281780 ], [ ".run", @@ -51908,7 +51926,7 @@ 112632, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -51943,7 +51961,7 @@ 112712, "abs32", "sec:.run", - 202742 + 202734 ], [ ".run", @@ -51957,7 +51975,7 @@ 112734, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -51999,7 +52017,7 @@ 112896, "abs32", "sec:.run", - 283826 + 283818 ], [ ".run", @@ -52013,14 +52031,14 @@ 112926, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", 112958, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -52083,14 +52101,14 @@ 113036, "abs32", "sec:.run", - 284136 + 284128 ], [ ".run", 113044, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -52104,7 +52122,7 @@ 113100, "abs32", "sec:.run", - 202742 + 202734 ], [ ".run", @@ -52132,7 +52150,7 @@ 113184, "abs32", "sec:.run", - 202742 + 202734 ], [ ".run", @@ -52181,14 +52199,14 @@ 113310, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", 113392, "abs32", "sec:.run", - 281810 + 281802 ], [ ".run", @@ -52230,7 +52248,7 @@ 113656, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -52244,7 +52262,7 @@ 113724, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -52272,7 +52290,7 @@ 113784, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -52293,7 +52311,7 @@ 113816, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -52314,7 +52332,7 @@ 113924, "abs32", "sec:.run", - 283674 + 283666 ], [ ".run", @@ -52377,14 +52395,14 @@ 114024, "abs32", "sec:.run", - 284136 + 284128 ], [ ".run", 114034, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -52405,7 +52423,7 @@ 114182, "abs32", "sec:.run", - 202476 + 202468 ], [ ".run", @@ -52447,14 +52465,14 @@ 114342, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", 114382, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -52482,7 +52500,7 @@ 114474, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -52580,7 +52598,7 @@ 114726, "abs32", "sec:.run", - 202742 + 202734 ], [ ".run", @@ -52601,7 +52619,7 @@ 114758, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -52664,7 +52682,7 @@ 114888, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -52748,14 +52766,14 @@ 115408, "abs32", "sec:.run", - 202742 + 202734 ], [ ".run", 115462, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -52797,7 +52815,7 @@ 115634, "abs32", "sec:.run", - 202742 + 202734 ], [ ".run", @@ -52853,7 +52871,7 @@ 115894, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -52881,7 +52899,7 @@ 116078, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -52902,7 +52920,7 @@ 116132, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -53021,7 +53039,7 @@ 116348, "abs32", "sec:.run", - 202742 + 202734 ], [ ".run", @@ -53042,28 +53060,28 @@ 116446, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", 116472, "abs32", "sec:.run", - 202742 + 202734 ], [ ".run", 116482, "abs32", "sec:.run", - 202476 + 202468 ], [ ".run", 116524, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -53098,14 +53116,14 @@ 116596, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", 116622, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -53126,7 +53144,7 @@ 116676, "abs32", "sec:.run", - 202742 + 202734 ], [ ".run", @@ -53147,14 +53165,14 @@ 116764, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", 116790, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -53175,21 +53193,21 @@ 116830, "abs32", "sec:.run", - 202742 + 202734 ], [ ".run", 116840, "abs32", "sec:.run", - 202476 + 202468 ], [ ".run", 116884, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -53266,7 +53284,7 @@ 117010, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -53301,7 +53319,7 @@ 117082, "abs32", "sec:.run", - 202742 + 202734 ], [ ".run", @@ -53322,7 +53340,7 @@ 117148, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -53336,14 +53354,14 @@ 117204, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", 117230, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -53399,7 +53417,7 @@ 117320, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -53504,7 +53522,7 @@ 119242, "abs32", "sec:.run", - 204328 + 204320 ], [ ".run", @@ -53525,7 +53543,7 @@ 119294, "abs32", "sec:.run", - 255902 + 255894 ], [ ".run", @@ -53539,7 +53557,7 @@ 119314, "abs32", "sec:.run", - 255902 + 255894 ], [ ".run", @@ -53588,7 +53606,7 @@ 119502, "abs32", "sec:.run", - 256416 + 256408 ], [ ".run", @@ -53630,7 +53648,7 @@ 119856, "abs32", "sec:.run", - 202784 + 202776 ], [ ".run", @@ -53644,7 +53662,7 @@ 119894, "abs32", "sec:.run", - 256750 + 256742 ], [ ".run", @@ -53658,7 +53676,7 @@ 119936, "abs32", "sec:.run", - 255902 + 255894 ], [ ".run", @@ -53805,21 +53823,21 @@ 124742, "abs32", "sec:.run", - 275922 + 275914 ], [ ".run", 124750, "abs32", "sec:.run", - 275914 + 275906 ], [ ".run", 124756, "abs32", "sec:.run", - 275920 + 275912 ], [ ".run", @@ -53833,7 +53851,7 @@ 124824, "abs32", "sec:.run", - 202644 + 202636 ], [ ".run", @@ -53847,14 +53865,14 @@ 124906, "abs32", "sec:.run", - 202680 + 202672 ], [ ".run", 124936, "abs32", "sec:.run", - 202680 + 202672 ], [ ".run", @@ -53896,7 +53914,7 @@ 125064, "abs32", "sec:.run", - 275594 + 275586 ], [ ".run", @@ -54190,14 +54208,14 @@ 127574, "abs32", "sec:.run", - 202584 + 202576 ], [ ".run", 127588, "abs32", "sec:.run", - 202572 + 202564 ], [ ".run", @@ -54225,7 +54243,7 @@ 127768, "abs32", "sec:.run", - 202558 + 202550 ], [ ".run", @@ -54351,7 +54369,7 @@ 128626, "abs32", "sec:.run", - 275644 + 275636 ], [ ".run", @@ -54463,7 +54481,7 @@ 130374, "abs32", "sec:.run", - 233076 + 233068 ], [ ".run", @@ -54512,7 +54530,7 @@ 130582, "abs32", "sec:.run", - 233404 + 233396 ], [ ".run", @@ -54533,7 +54551,7 @@ 130650, "abs32", "sec:.run", - 233404 + 233396 ], [ ".run", @@ -54638,7 +54656,7 @@ 132158, "abs32", "sec:.run", - 233656 + 233648 ], [ ".run", @@ -54687,7 +54705,7 @@ 132706, "abs32", "sec:.run", - 233774 + 233766 ], [ ".run", @@ -54708,21 +54726,21 @@ 134152, "abs32", "sec:.run", - 202644 + 202636 ], [ ".run", 134174, "abs32", "sec:.run", - 202680 + 202672 ], [ ".run", 134180, "abs32", "sec:.run", - 171616 + 171608 ], [ ".run", @@ -54771,21 +54789,21 @@ 134406, "abs32", "sec:.run", - 202644 + 202636 ], [ ".run", 134428, "abs32", "sec:.run", - 202680 + 202672 ], [ ".run", 134434, "abs32", "sec:.run", - 171616 + 171608 ], [ ".run", @@ -54890,7 +54908,7 @@ 136026, "abs32", "sec:.run", - 275772 + 275764 ], [ ".run", @@ -56143,7 +56161,7 @@ 143878, "abs32", "sec:.run", - 202742 + 202734 ], [ ".run", @@ -56164,14 +56182,14 @@ 143940, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", 144008, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", @@ -56227,7 +56245,7 @@ 144120, "abs32", "sec:.run", - 263106 + 263098 ], [ ".run", @@ -56241,7 +56259,7 @@ 144144, "abs32", "sec:.run", - 263106 + 263098 ], [ ".run", @@ -56276,7 +56294,7 @@ 144308, "abs32", "sec:.run", - 262700 + 262692 ], [ ".run", @@ -56290,14 +56308,14 @@ 144442, "abs32", "sec:.run", - 262700 + 262692 ], [ ".run", 144506, "abs32", "sec:.run", - 262804 + 262796 ], [ ".run", @@ -56332,7 +56350,7 @@ 144722, "abs32", "sec:.run", - 262970 + 262962 ], [ ".run", @@ -56360,7 +56378,7 @@ 144788, "abs32", "sec:.run", - 263272 + 263264 ], [ ".run", @@ -56374,7 +56392,7 @@ 144850, "abs32", "sec:.run", - 263570 + 263562 ], [ ".run", @@ -56528,7 +56546,7 @@ 145702, "abs32", "sec:.run", - 251108 + 251100 ], [ ".run", @@ -56549,7 +56567,7 @@ 145946, "abs32", "sec:.run", - 251108 + 251100 ], [ ".run", @@ -56990,14 +57008,14 @@ 147768, "abs32", "sec:.run", - 261154 + 261146 ], [ ".run", 147790, "abs32", "sec:.run", - 261230 + 261222 ], [ ".run", @@ -57046,7 +57064,7 @@ 147888, "abs32", "sec:.run", - 260714 + 260706 ], [ ".run", @@ -57060,14 +57078,14 @@ 147912, "abs32", "sec:.run", - 261154 + 261146 ], [ ".run", 147932, "abs32", "sec:.run", - 263786 + 263778 ], [ ".run", @@ -57704,7 +57722,7 @@ 149206, "abs32", "sec:.run", - 260714 + 260706 ], [ ".run", @@ -57718,14 +57736,14 @@ 149238, "abs32", "sec:.run", - 261154 + 261146 ], [ ".run", 149260, "abs32", "sec:.run", - 263786 + 263778 ], [ ".run", @@ -57956,14 +57974,14 @@ 149612, "abs32", "sec:.run", - 261154 + 261146 ], [ ".run", 149630, "abs32", "sec:.run", - 261230 + 261222 ], [ ".run", @@ -58173,7 +58191,7 @@ 150202, "abs32", "sec:.run", - 261154 + 261146 ], [ ".run", @@ -58187,7 +58205,7 @@ 150224, "abs32", "sec:.run", - 261230 + 261222 ], [ ".run", @@ -58292,7 +58310,7 @@ 150506, "abs32", "sec:.run", - 260714 + 260706 ], [ ".run", @@ -59146,14 +59164,14 @@ 152016, "abs32", "sec:.run", - 261154 + 261146 ], [ ".run", 152034, "abs32", "sec:.run", - 261230 + 261222 ], [ ".run", @@ -59335,7 +59353,7 @@ 152780, "abs32", "sec:.run", - 260714 + 260706 ], [ ".run", @@ -59559,7 +59577,7 @@ 153162, "abs32", "sec:.run", - 260714 + 260706 ], [ ".run", @@ -59881,7 +59899,7 @@ 153862, "abs32", "sec:.run", - 260714 + 260706 ], [ ".run", @@ -60154,7 +60172,7 @@ 154388, "abs32", "sec:.run", - 260528 + 260520 ], [ ".run", @@ -60357,7 +60375,7 @@ 154934, "abs32", "sec:.run", - 260714 + 260706 ], [ ".run", @@ -60574,7 +60592,7 @@ 155562, "abs32", "sec:.run", - 260714 + 260706 ], [ ".run", @@ -60595,7 +60613,7 @@ 155618, "abs32", "sec:.run", - 260714 + 260706 ], [ ".run", @@ -60896,7 +60914,7 @@ 156250, "abs32", "sec:.run", - 260528 + 260520 ], [ ".run", @@ -61229,7 +61247,7 @@ ], [ ".run", - 156974, + 156970, "abs32", "sec:.bss", 3459304 @@ -61294,61 +61312,68 @@ ".run", 157220, "abs32", + "sec:.run", + 82516 + ], + [ + ".run", + 157232, + "abs32", "sec:.bss", 3459304 ], [ ".run", - 157226, + 157238, "abs32", "sec:.bss", 3459308 ], [ ".run", - 157270, + 157282, "abs32", "sec:.bss", 3460568 ], [ ".run", - 157278, + 157302, "abs32", "sec:.bss", 3460572 ], [ ".run", - 157326, + 157344, "abs32", "sec:.bss", 3454944 ], [ ".run", - 157338, + 157356, "abs32", "sec:.bss", 3454944 ], [ ".run", - 157604, + 157596, "abs32", "sec:.bss", 3460536 ], [ ".run", - 157646, + 157650, "abs32", "sec:.bss", 3460540 ], [ ".run", - 157678, + 157674, "abs32", "sec:.bss", 3460544 @@ -61362,70 +61387,70 @@ ], [ ".run", - 157728, + 157726, "abs32", "sec:.bss", 3460552 ], [ ".run", - 157740, + 157748, "abs32", "sec:.bss", 3460556 ], [ ".run", - 157760, + 157762, "abs32", "sec:.bss", 3460560 ], [ ".run", - 157776, + 157778, "abs32", "sec:.bss", 3460564 ], [ ".run", - 157824, + 157828, "abs32", "sec:.bss", 3460504 ], [ ".run", - 157846, + 157856, "abs32", "sec:.bss", 3460508 ], [ ".run", - 157874, + 157884, "abs32", "sec:.bss", 3460512 ], [ ".run", - 157890, + 157900, "abs32", "sec:.bss", 3460512 ], [ ".run", - 157908, + 157918, "abs32", "sec:.bss", 3460516 ], [ ".run", - 157946, + 157948, "abs32", "sec:.bss", 3460516 @@ -61460,25196 +61485,25196 @@ ], [ ".run", - 158108, + 158110, "abs32", "sec:.bss", 3460536 ], [ ".run", - 158118, + 158122, "abs32", "sec:.bss", 3460540 ], [ ".run", - 158128, + 158132, "abs32", "sec:.bss", - 3460552 + 3460544 ], [ ".run", - 158134, + 158138, "abs32", "sec:.bss", - 3460556 + 3460552 ], [ ".run", - 158142, + 158148, "abs32", "sec:.bss", - 3460544 + 3460548 ], [ ".run", - 158156, + 158158, "abs32", "sec:.bss", - 3460548 + 3460556 ], [ ".run", - 158166, + 158164, "abs32", "sec:.bss", 3460560 ], [ ".run", - 158188, + 158184, "abs32", "sec:.bss", 3460564 ], [ ".run", - 158196, + 158198, "abs32", "sec:.bss", 3460520 ], [ ".run", - 158202, + 158206, "abs32", "sec:.bss", - 3460528 + 3460524 ], [ ".run", 158212, "abs32", "sec:.bss", - 3460524 + 3460528 ], [ ".run", - 158242, + 158246, "abs32", "sec:.bss", 3460572 ], [ ".run", - 158264, + 158268, "abs32", "sec:.run", 309052 ], [ ".run", - 158272, + 158276, "abs32", "sec:.bss", 3460568 ], [ ".run", - 158290, + 158294, "abs32", "sec:.run", 309052 ], [ ".run", - 158296, + 158300, "abs32", "sec:.bss", 3460588 ], [ ".run", - 158302, + 158306, "abs32", "sec:.bss", 3460588 ], [ ".run", - 158320, + 158324, "abs32", "sec:.bss", 3460476 ], [ ".run", - 158328, + 158332, "abs32", "sec:.bss", 3460484 ], [ ".run", - 158334, + 158338, "abs32", "sec:.bss", 3459400 ], [ ".run", - 158340, + 158344, "abs32", "sec:.bss", 3460472 ], [ ".run", - 158346, + 158350, "abs32", "sec:.bss", 3460496 ], [ ".run", - 158352, + 158356, "abs32", "sec:.bss", 3460492 ], [ ".run", - 158358, + 158362, "abs32", "sec:.bss", 3460488 ], [ ".run", - 158364, + 158368, "abs32", "sec:.bss", 3460480 ], [ ".run", - 158374, + 158378, "abs32", "sec:.run", 338256 ], [ ".run", - 158384, + 158388, "abs32", "sec:.run", 338260 ], [ ".run", - 158390, + 158394, "abs32", "sec:.run", 338264 ], [ ".run", - 158396, + 158400, "abs32", "sec:.run", 338268 ], [ ".run", - 158470, + 158456, "abs32", "sec:.bss", 3459284 ], [ ".run", - 158480, + 158466, "abs32", "sec:.run", 308996 ], [ ".run", - 158538, + 158524, "abs32", "sec:.bss", 3459308 ], [ ".run", - 158574, + 158560, "abs32", "sec:.bss", 3459304 ], [ ".run", - 158590, + 158576, "abs32", "sec:.bss", 3459308 ], [ ".run", - 158642, + 158628, "abs32", "sec:.run", 309024 ], [ ".run", - 158654, + 158640, "abs32", "sec:.bss", 3459304 ], [ ".run", - 158660, + 158646, "abs32", "sec:.run", 309020 ], [ ".run", - 158700, + 158684, "abs32", "sec:.bss", 3460504 ], [ ".run", - 158706, + 158690, "abs32", "sec:.bss", 3460508 ], [ ".run", - 158712, + 158696, "abs32", "sec:.bss", 3460512 ], [ ".run", - 158718, + 158702, "abs32", "sec:.bss", 3460516 ], [ ".run", - 158766, + 158758, "abs32", "sec:.bss", 3460536 ], [ ".run", - 158776, + 158770, "abs32", "sec:.bss", 3460540 ], [ ".run", - 158786, + 158780, "abs32", "sec:.bss", - 3460552 + 3460544 ], [ ".run", - 158792, + 158786, "abs32", "sec:.bss", - 3460556 + 3460552 ], [ ".run", - 158800, + 158796, "abs32", "sec:.bss", - 3460544 + 3460548 ], [ ".run", - 158814, + 158806, "abs32", "sec:.bss", - 3460548 + 3460556 ], [ ".run", - 158824, + 158812, "abs32", "sec:.bss", 3460560 ], [ ".run", - 158846, + 158832, "abs32", "sec:.bss", 3460564 ], [ ".run", - 158870, + 158860, "abs32", "sec:.bss", 3460520 ], [ ".run", - 158880, + 158870, "abs32", "sec:.bss", 3460524 ], [ ".run", - 158886, + 158876, "abs32", "sec:.bss", 3460528 ], [ ".run", - 158892, + 158882, "abs32", "sec:.bss", 3460532 ], [ ".run", - 158898, + 158888, "abs32", "sec:.bss", 3460572 ], [ ".run", - 158916, + 158910, "abs32", "sec:.run", 309052 ], [ ".run", - 158922, + 158916, "abs32", "sec:.bss", 3460588 ], [ ".run", - 158932, + 158926, "abs32", "sec:.bss", 3460588 ], [ ".run", - 158942, + 158936, "abs32", "sec:.bss", 3460536 ], [ ".run", - 158952, + 158946, "abs32", "sec:.bss", 3460540 ], [ ".run", - 158962, + 158956, "abs32", "sec:.bss", 3460544 ], [ ".run", - 158968, + 158962, "abs32", "sec:.bss", 3460548 ], [ ".run", - 158998, + 158992, "abs32", "sec:.bss", 3460552 ], [ ".run", - 159004, + 158998, "abs32", "sec:.bss", 3460556 ], [ ".run", - 159010, + 159004, "abs32", "sec:.bss", 3460560 ], [ ".run", - 159016, + 159010, "abs32", "sec:.bss", 3460564 ], [ ".run", - 159038, + 159032, "abs32", "sec:.bss", 3460504 ], [ ".run", - 159044, + 159038, "abs32", "sec:.bss", 3460508 ], [ ".run", - 159050, + 159044, "abs32", "sec:.bss", 3460512 ], [ ".run", - 159056, + 159050, "abs32", "sec:.bss", 3460516 ], [ ".run", - 159078, + 159072, "abs32", "sec:.bss", 3460520 ], [ ".run", - 159084, + 159078, "abs32", "sec:.bss", 3460524 ], [ ".run", - 159090, + 159084, "abs32", "sec:.bss", 3460528 ], [ ".run", - 159096, + 159090, "abs32", "sec:.bss", 3460532 ], [ ".run", - 159134, + 159128, "abs32", "sec:.bss", 3460536 ], [ ".run", - 159144, + 159140, "abs32", "sec:.bss", 3460540 ], [ ".run", - 159154, + 159150, "abs32", "sec:.bss", - 3460552 + 3460544 ], [ ".run", - 159160, + 159156, "abs32", "sec:.bss", - 3460556 + 3460552 ], [ ".run", - 159168, + 159166, "abs32", "sec:.bss", - 3460544 + 3460548 ], [ ".run", - 159182, + 159176, "abs32", "sec:.bss", - 3460548 + 3460556 ], [ ".run", - 159192, + 159182, "abs32", "sec:.bss", 3460560 ], [ ".run", - 159214, + 159202, "abs32", "sec:.bss", 3460564 ], [ ".run", - 159222, + 159216, "abs32", "sec:.bss", 3460520 ], [ ".run", - 159228, + 159224, "abs32", "sec:.bss", - 3460528 + 3460524 ], [ ".run", - 159238, + 159230, "abs32", "sec:.bss", - 3460524 + 3460528 ], [ ".run", - 159274, + 159266, "abs32", "sec:.bss", 3460468 ], [ ".run", - 159284, + 159276, "abs32", "sec:.run", 56460 ], [ ".run", - 159296, + 159288, "abs32", "sec:.run", 68410 ], [ ".run", - 159302, + 159294, "abs32", "sec:.bss", 3460496 ], [ ".run", - 159336, + 159328, "abs32", "sec:.bss", 3460588 ], [ ".run", - 159344, + 159336, "abs32", "sec:.bss", 3460604 ], [ ".run", - 159358, + 159350, "abs32", "sec:.bss", 3460484 ], [ ".run", - 159364, + 159356, "abs32", "sec:.bss", 3459400 ], [ ".run", - 159370, + 159362, "abs32", "sec:.bss", 3460476 ], [ ".run", - 159376, + 159368, "abs32", "sec:.bss", 3460472 ], [ ".run", - 159382, + 159374, "abs32", "sec:.bss", 3460496 ], [ ".run", - 159388, + 159380, "abs32", "sec:.bss", 3460492 ], [ ".run", - 159394, + 159386, "abs32", "sec:.bss", 3460488 ], [ ".run", - 159400, + 159392, "abs32", "sec:.bss", 3460480 ], [ ".run", - 159410, + 159402, "abs32", "sec:.bss", 3460476 ], [ ".run", - 159424, + 159416, "abs32", "sec:.bss", 3460472 ], [ ".run", - 159446, + 159438, "abs32", "sec:.bss", 3460476 ], [ ".run", - 159454, + 159446, "abs32", "sec:.bss", 3459324 ], [ ".run", - 159466, + 159458, "abs32", "sec:.bss", 3460476 ], [ ".run", - 159480, + 159472, "abs32", "sec:.bss", 3460472 ], [ ".run", - 159500, + 159492, "abs32", "sec:.bss", 3460476 ], [ ".run", - 159512, + 159504, "abs32", "sec:.bss", 3460496 ], [ ".run", - 159522, + 159514, "abs32", "sec:.bss", 3460472 ], [ ".run", - 159532, + 159524, "abs32", "sec:.bss", 3460484 ], [ ".run", - 159552, + 159544, "abs32", "sec:.bss", 3460468 ], [ ".run", - 159562, + 159554, "abs32", "sec:.run", 309048 ], [ ".run", - 159576, + 159568, "abs32", "sec:.run", 300112 ], [ ".run", - 159648, + 159640, "abs32", "sec:.bss", 3460588 ], [ ".run", - 159708, + 159700, "abs32", "sec:.bss", 3460850 ], [ ".run", - 159796, + 159788, "abs32", "sec:.bss", 3462414 ], [ ".run", - 159866, + 159858, "abs32", "sec:.bss", 3460500 ], [ ".run", - 159874, + 159866, "abs32", "sec:.bss", 3460496 ], [ ".run", - 159894, + 159886, "abs32", "sec:.bss", 3460604 ], [ ".run", - 159900, + 159892, "abs32", "sec:.bss", 3460588 ], [ ".run", - 159938, + 159930, "abs32", "sec:.bss", 3460472 ], [ ".run", - 159946, + 159938, "abs32", "sec:.bss", 3460480 ], [ ".run", - 159956, + 159948, "abs32", "sec:.bss", 3460604 ], [ ".run", - 159962, + 159954, "abs32", "sec:.bss", 3460588 ], [ ".run", - 159978, + 159970, "abs32", "sec:.bss", 3460468 ], [ ".run", - 159984, + 159976, "abs32", "sec:.bss", 3460496 ], [ ".run", - 159990, + 159982, "abs32", "sec:.bss", 3460488 ], [ ".run", - 159996, + 159988, "abs32", "sec:.bss", 3459324 ], [ ".run", - 160004, + 159996, "abs32", "sec:.bss", 3460848 ], [ ".run", - 160076, + 160068, "abs32", "sec:.run", - 251536 + 251528 ], [ ".run", - 160108, + 160100, "abs32", "sec:.bss", 3460468 ], [ ".run", - 160118, + 160110, "abs32", "sec:.bss", 3460496 ], [ ".run", - 160124, + 160116, "abs32", "sec:.bss", 3460488 ], [ ".run", - 160130, + 160122, "abs32", "sec:.bss", 3459324 ], [ ".run", - 160140, + 160132, "abs32", "sec:.bss", 3460848 ], [ ".run", - 160404, + 160396, "abs32", "sec:.bss", 3460496 ], [ ".run", - 160410, + 160402, "abs32", "sec:.bss", 3460468 ], [ ".run", - 160426, + 160418, "abs32", "sec:.bss", 3460568 ], [ ".run", - 160432, + 160424, "abs32", "sec:.run", 309024 ], [ ".run", - 160438, + 160430, "abs32", "sec:.run", 309028 ], [ ".run", - 160444, + 160436, "abs32", "sec:.run", 309032 ], [ ".run", - 160450, + 160442, "abs32", "sec:.run", 309036 ], [ ".run", - 160458, + 160450, "abs32", "sec:.bss", 3460488 ], [ ".run", - 160464, + 160456, "abs32", "sec:.bss", 3460492 ], [ ".run", - 160482, + 160474, "abs32", "sec:.bss", 3460472 ], [ ".run", - 160496, + 160488, "abs32", "sec:.bss", 3460496 ], [ ".run", - 160590, + 160582, "abs32", "sec:.bss", 3460850 ], [ ".run", - 160636, + 160628, "abs32", "sec:.bss", 3460850 ], [ ".run", - 160662, + 160654, "abs32", "sec:.bss", 3460464 ], [ ".run", - 160688, + 160680, "abs32", "sec:.run", 309284 ], [ ".run", - 160706, + 160698, "abs32", "sec:.bss", 3460464 ], [ ".run", - 160726, + 160718, "abs32", "sec:.bss", 3460464 ], [ ".run", - 160752, + 160744, "abs32", "sec:.bss", 3460464 ], [ ".run", - 160776, + 160768, "abs32", "sec:.bss", 3460500 ], [ ".run", - 160784, + 160776, "abs32", "sec:.run", 309284 ], [ ".run", - 160812, + 160804, "abs32", "sec:.bss", 3460850 ], [ ".run", - 160826, + 160818, "abs32", "sec:.bss", 3460850 ], [ ".run", - 160846, + 160838, "abs32", "sec:.bss", 3460496 ], [ ".run", - 160854, + 160846, "abs32", "sec:.bss", 3459281 ], [ ".run", - 160860, + 160852, "abs32", "sec:.bss", 3459280 ], [ ".run", - 160880, + 160872, "abs32", "sec:.bss", 3459283 ], [ ".run", - 160886, + 160878, "abs32", "sec:.bss", 3459282 ], [ ".run", - 160892, + 160884, "abs32", "sec:.bss", 3459280 ], [ ".run", - 160902, + 160894, "abs32", "sec:.bss", 3459281 ], [ ".run", - 160938, + 160930, "abs32", "sec:.run", 309284 ], [ ".run", - 160984, + 160976, "abs32", "sec:.bss", 3460464 ], [ ".run", - 161002, + 160994, "abs32", "sec:.bss", 3460496 ], [ ".run", - 161010, + 161002, "abs32", "sec:.bss", 3460468 ], [ ".run", - 161020, + 161012, "abs32", "sec:.bss", 3460488 ], [ ".run", - 161026, + 161018, "abs32", "sec:.bss", 3459324 ], [ ".run", - 161042, + 161034, "abs32", "sec:.bss", 3463978 ], [ ".run", - 161048, + 161040, "abs32", "sec:.bss", 3460848 ], [ ".run", - 161062, + 161054, "abs32", "sec:.run", 309048 ], [ ".run", - 161076, + 161068, "abs32", "sec:.run", 56460 ], [ ".run", - 161096, + 161088, "abs32", "sec:.run", 68410 ], [ ".run", - 161116, + 161108, "abs32", "sec:.bss", 3460500 ], [ ".run", - 161126, + 161118, "abs32", "sec:.bss", 3460856 ], [ ".run", - 161132, + 161124, "abs32", "sec:.bss", 3460854 ], [ ".run", - 161150, + 161142, "abs32", "sec:.bss", 3460464 ], [ ".run", - 161242, + 161234, "abs32", "sec:.bss", 3454628 ], [ ".run", - 161282, + 161274, "abs32", "sec:.bss", 3460464 ], [ ".run", - 161300, + 161292, "abs32", "sec:.bss", 3460850 ], [ ".run", - 161316, + 161308, "abs32", "sec:.bss", 3454628 ], [ ".run", - 161352, + 161344, "abs32", "sec:.bss", 3454628 ], [ ".run", - 161380, + 161372, "abs32", "sec:.bss", 3460496 ], [ ".run", - 161398, + 161390, "abs32", "sec:.bss", 3454628 ], [ ".run", - 161426, + 161418, "abs32", "sec:.run", 300112 ], [ ".run", - 161432, + 161424, "abs32", "sec:.bss", 3460850 ], [ ".run", - 161442, + 161434, "abs32", "sec:.run", 1164 ], [ ".run", - 161448, + 161440, "abs32", "sec:.run", 338256 ], [ ".run", - 161454, + 161446, "abs32", "sec:.run", 338264 ], [ ".run", - 161460, + 161452, "abs32", "sec:.run", 338252 ], [ ".run", - 161466, + 161458, "abs32", "sec:.bss", 3460604 ], [ ".run", - 161472, + 161464, "abs32", "sec:.run", 9998 ], [ ".run", - 161478, + 161470, "abs32", "sec:.bss", 3459420 ], [ ".run", - 161488, + 161480, "abs32", "sec:.run", 338260 ], [ ".run", - 161494, + 161486, "abs32", "sec:.bss", 3459424 ], [ ".run", - 161500, + 161492, "abs32", "sec:.run", 338256 ], [ ".run", - 161508, + 161500, "abs32", "sec:.bss", 3459428 ], [ ".run", - 161514, + 161506, "abs32", "sec:.bss", 3459404 ], [ ".run", - 161520, + 161512, "abs32", "sec:.run", 338268 ], [ ".run", - 161526, + 161518, "abs32", "sec:.run", 338260 ], [ ".run", - 161532, + 161524, "abs32", "sec:.run", 338264 ], [ ".run", - 161538, + 161530, "abs32", "sec:.bss", 3460500 ], [ ".run", - 161548, + 161540, "abs32", "sec:.bss", 3459432 ], [ ".run", - 161554, + 161546, "abs32", "sec:.bss", 3459408 ], [ ".run", - 161560, + 161552, "abs32", "sec:.bss", 3459412 ], [ ".run", - 161566, + 161558, "abs32", "sec:.bss", 3459416 ], [ ".run", - 161602, + 161594, "abs32", "sec:.bss", 3463990 ], [ ".run", - 161624, + 161616, "abs32", "sec:.bss", 3463982 ], [ ".run", - 161630, + 161622, "abs32", "sec:.bss", 3463986 ], [ ".run", - 161640, + 161632, "abs32", "sec:.bss", 3463994 ], [ ".run", - 161646, + 161638, "abs32", "sec:.bss", 3464006 ], [ ".run", - 161704, + 161696, "abs32", "sec:.bss", 3463998 ], [ ".run", - 161722, + 161714, "abs32", "sec:.bss", 3464002 ], [ ".run", - 161736, + 161728, "abs32", "sec:.bss", 3464010 ], [ ".run", - 161846, + 161838, "abs32", "sec:.run", 300112 ], [ ".run", - 162618, + 162610, "abs32", "sec:.bss", 3460878 ], [ ".run", - 163322, + 163314, "abs32", "sec:.bss", 3463982 ], [ ".run", - 163336, + 163328, "abs32", "sec:.bss", 3463986 ], [ ".run", - 163342, + 163334, "abs32", "sec:.bss", 3463990 ], [ ".run", - 163356, + 163348, "abs32", "sec:.bss", 3463994 ], [ ".run", - 163362, + 163354, "abs32", "sec:.bss", 3463998 ], [ ".run", - 163376, + 163368, "abs32", "sec:.bss", 3464002 ], [ ".run", - 163382, + 163374, "abs32", "sec:.bss", 3464006 ], [ ".run", - 163388, + 163380, "abs32", "sec:.bss", 3464010 ], [ ".run", - 163536, + 163528, "abs32", "sec:.bss", 3459252 ], [ ".run", - 163552, + 163544, "abs32", "sec:.bss", 3454628 ], [ ".run", - 163592, + 163584, "abs32", "sec:.bss", 3463982 ], [ ".run", - 163606, + 163598, "abs32", "sec:.bss", 3463986 ], [ ".run", - 163614, + 163606, "abs32", "sec:.bss", 3463990 ], [ ".run", - 163628, + 163620, "abs32", "sec:.bss", 3463994 ], [ ".run", - 163634, + 163626, "abs32", "sec:.bss", 3463998 ], [ ".run", - 163648, + 163640, "abs32", "sec:.bss", 3464002 ], [ ".run", - 163654, + 163646, "abs32", "sec:.bss", 3464006 ], [ ".run", - 163660, + 163652, "abs32", "sec:.bss", 3464010 ], [ ".run", - 163696, + 163688, "abs32", "sec:.bss", 3454628 ], [ ".run", - 163702, + 163694, "abs32", "sec:.bss", 3459252 ], [ ".run", - 163800, + 163792, "abs32", "sec:.bss", 3460850 ], [ ".run", - 163806, + 163798, "abs32", "sec:.bss", 3460850 ], [ ".run", - 163840, + 163832, "abs32", "sec:.bss", 3460874 ], [ ".run", - 164040, + 164032, "abs32", "sec:.bss", 3460850 ], [ ".run", - 164100, + 164092, "abs32", "sec:.bss", 3463990 ], [ ".run", - 164114, + 164106, "abs32", "sec:.bss", 3463982 ], [ ".run", - 164128, + 164120, "abs32", "sec:.bss", 3463986 ], [ ".run", - 164144, + 164136, "abs32", "sec:.bss", 3463994 ], [ ".run", - 164152, + 164144, "abs32", "sec:.bss", 3464006 ], [ ".run", - 164170, + 164162, "abs32", "sec:.bss", 3463998 ], [ ".run", - 164186, + 164178, "abs32", "sec:.bss", 3464002 ], [ ".run", - 164204, + 164196, "abs32", "sec:.bss", 3464010 ], [ ".run", - 164252, + 164244, "abs32", "sec:.bss", 3459252 ], [ ".run", - 164330, + 164322, "abs32", "sec:.bss", 3459280 ], [ ".run", - 164362, + 164354, "abs32", "sec:.run", 309052 ], [ ".run", - 164396, + 164388, "abs32", "sec:.run", 309052 ], [ ".run", - 164402, + 164394, "abs32", "sec:.bss", 3460874 ], [ ".run", - 164424, + 164416, "abs32", "sec:.bss", 3462410 ], [ ".run", - 164474, + 164466, "abs32", "sec:.bss", 3463946 ], [ ".run", - 164486, + 164478, "abs32", "sec:.bss", 3463962 ], [ ".run", - 164522, + 164514, "abs32", "sec:.bss", 3460588 ], [ ".run", - 164542, + 164534, "abs32", "sec:.bss", 3463980 ], [ ".run", - 164552, + 164544, "abs32", "sec:.bss", 3460870 ], [ ".run", - 164558, + 164550, "abs32", "sec:.bss", 3463979 ], [ ".run", - 164564, + 164556, "abs32", "sec:.bss", 3463978 ], [ ".run", - 164584, + 164576, "abs32", "sec:.bss", 3459260 ], [ ".run", - 164590, + 164582, "abs32", "sec:.bss", 3460484 ], [ ".run", - 164600, + 164592, "abs32", "sec:.bss", 3460472 ], [ ".run", - 164606, + 164598, "abs32", "sec:.bss", 3460492 ], [ ".run", - 164612, + 164604, "abs32", "sec:.bss", 3460488 ], [ ".run", - 164620, + 164612, "abs32", "sec:.bss", 3460480 ], [ ".run", - 164642, + 164634, "abs32", "sec:.bss", 3459283 ], [ ".run", - 164652, + 164644, "abs32", "sec:.bss", 3459282 ], [ ".run", - 164658, + 164650, "abs32", "sec:.bss", 3460476 ], [ ".run", - 164664, + 164656, "abs32", "sec:.bss", 3459278 ], [ ".run", - 164670, + 164662, "abs32", "sec:.bss", 3459276 ], [ ".run", - 164676, + 164668, "abs32", "sec:.run", 79546 ], [ ".run", - 164690, + 164682, "abs32", "sec:.bss", 3454628 ], [ ".run", - 164702, + 164694, "abs32", "sec:.bss", 3460496 ], [ ".run", - 164758, + 164750, "abs32", "sec:.bss", 3463982 ], [ ".run", - 164772, + 164764, "abs32", "sec:.bss", 3463986 ], [ ".run", - 164778, + 164770, "abs32", "sec:.bss", 3463990 ], [ ".run", - 164792, + 164784, "abs32", "sec:.bss", 3463994 ], [ ".run", - 164798, + 164790, "abs32", "sec:.bss", 3463998 ], [ ".run", - 164812, + 164804, "abs32", "sec:.bss", 3464002 ], [ ".run", - 164818, + 164810, "abs32", "sec:.bss", 3464006 ], [ ".run", - 164824, + 164816, "abs32", "sec:.bss", 3464010 ], [ ".run", - 164836, + 164828, "abs32", "sec:.bss", 3454628 ], [ ".run", - 164880, + 164872, "abs32", "sec:.bss", 3454628 ], [ ".run", - 164886, + 164878, "abs32", "sec:.bss", 3459252 ], [ ".run", - 164934, + 164926, "abs32", "sec:.bss", 3464002 ], [ ".run", - 164948, + 164940, "abs32", "sec:.bss", 3463982 ], [ ".run", - 164980, + 164972, "abs32", "sec:.bss", 3463986 ], [ ".run", - 164998, + 164990, "abs32", "sec:.bss", 3463990 ], [ ".run", - 165008, + 165000, "abs32", "sec:.bss", 3463994 ], [ ".run", - 165014, + 165006, "abs32", "sec:.bss", 3463998 ], [ ".run", - 165020, + 165012, "abs32", "sec:.bss", 3464006 ], [ ".run", - 165026, + 165018, "abs32", "sec:.bss", 3464010 ], [ ".run", - 165046, + 165038, "abs32", "sec:.bss", 3454628 ], [ ".run", - 165170, + 165162, "abs32", "sec:.bss", 3461646 ], [ ".run", - 165196, + 165188, "abs32", "sec:.bss", 3459356 ], [ ".run", - 165202, + 165194, "abs32", "sec:.bss", 3459356 ], [ ".run", - 165216, + 165208, "abs32", "sec:.run", 79546 ], [ ".run", - 165382, + 165374, "abs32", "sec:.bss", 3459388 ], [ ".run", - 165388, + 165380, "abs32", "sec:.bss", 3459392 ], [ ".run", - 165398, + 165390, "abs32", "sec:.run", 309052 ], [ ".run", - 165418, + 165410, "abs32", "sec:.run", 309052 ], [ ".run", - 165424, + 165416, "abs32", "sec:.bss", 3460588 ], [ ".run", - 165456, + 165448, "abs32", "sec:.bss", 3454670 ], [ ".run", - 165462, + 165454, "abs32", "sec:.bss", 3454628 ], [ ".run", - 165468, + 165460, "abs32", "sec:.bss", 3460476 ], [ ".run", - 165476, + 165468, "abs32", "sec:.bss", 3460484 ], [ ".run", - 165482, + 165474, "abs32", "sec:.bss", 3460496 ], [ ".run", - 165488, + 165480, "abs32", "sec:.bss", 3459400 ], [ ".run", - 165494, + 165486, "abs32", "sec:.bss", 3460472 ], [ ".run", - 165500, + 165492, "abs32", "sec:.bss", 3460492 ], [ ".run", - 165506, + 165498, "abs32", "sec:.bss", 3460488 ], [ ".run", - 165512, + 165504, "abs32", "sec:.bss", 3460480 ], [ ".run", - 165692, + 165684, "abs32", "sec:.bss", 3459356 ], [ ".run", - 165704, + 165696, "abs32", "sec:.run", 79546 ], [ ".run", - 165730, + 165722, "abs32", "sec:.bss", 3454628 ], [ ".run", - 165758, + 165750, "abs32", "sec:.run", 309052 ], [ ".run", - 165772, + 165764, "abs32", "sec:.bss", 3460588 ], [ ".run", - 165794, + 165786, "abs32", "sec:.bss", 3454628 ], [ ".run", - 165800, + 165792, "abs32", "sec:.bss", 3459252 ], [ ".run", - 165838, + 165830, "abs32", "sec:.bss", 3455034 ], [ ".run", - 165846, + 165838, "abs32", "sec:.bss", 3460468 ], [ ".run", - 165874, + 165866, "abs32", "sec:.run", 111488 ], [ ".run", - 165908, + 165900, "abs32", "sec:.run", 309048 ], [ ".run", - 165928, + 165920, "abs32", "sec:.bss", 3454948 ], [ ".run", - 165948, + 165940, "abs32", "sec:.run", - 263850 + 263842 ], [ ".run", - 165964, + 165956, "abs32", "sec:.bss", 3455042 ], [ ".run", - 165970, + 165962, "abs32", "sec:.bss", 3460468 ], [ ".run", - 165986, + 165978, "abs32", "sec:.bss", 3455034 ], [ ".run", - 166118, + 166110, "abs32", "sec:.bss", 3455028 ], [ ".run", - 166228, + 166220, "abs32", "sec:.bss", 3455034 ], [ ".run", - 166396, + 166388, "abs32", "sec:.bss", 3455028 ], [ ".run", - 166406, + 166398, "abs32", "sec:.bss", 3455042 ], [ ".run", - 166434, + 166426, "abs32", "sec:.bss", 3455038 ], [ ".run", - 166444, + 166436, "abs32", "sec:.bss", 3455156 ], [ ".run", - 166668, + 166660, "abs32", "sec:.run", 338236 ], [ ".run", - 166684, + 166676, "abs32", "sec:.run", 79516 ], [ ".run", - 166728, + 166720, "abs32", "sec:.bss", 3455042 ], [ ".run", - 166736, + 166728, "abs32", "sec:.bss", 3455180 ], [ ".run", - 166842, + 166834, "abs32", "sec:.run", 48286 ], [ ".run", - 167058, + 167050, "abs32", "sec:.bss", 3455034 ], [ ".run", - 167076, + 167068, "abs32", "sec:.bss", 3460468 ], [ ".run", - 167084, + 167076, "abs32", "sec:.bss", 3455038 ], [ ".run", - 167090, + 167082, "abs32", "sec:.bss", 3455042 ], [ ".run", - 167114, + 167106, "abs32", "sec:.bss", 3455156 ], [ ".run", - 167198, + 167190, "abs32", "sec:.bss", 3455034 ], [ ".run", - 167226, + 167218, "abs32", "sec:.bss", 3455034 ], [ ".run", - 167244, + 167236, "abs32", "sec:.bss", 3460468 ], [ ".run", - 167280, + 167272, "abs32", "sec:.bss", 3455038 ], [ ".run", - 167288, + 167280, "abs32", "sec:.bss", 3455156 ], [ ".run", - 167310, + 167302, "abs32", "sec:.bss", 3455028 ], [ ".run", - 167372, + 167364, "abs32", "sec:.bss", 3455072 ], [ ".run", - 167378, + 167370, "abs32", "sec:.bss", 3455100 ], [ ".run", - 167394, + 167386, "abs32", "sec:.bss", 3455154 ], [ ".run", - 167400, + 167392, "abs32", "sec:.bss", 3455126 ], [ ".run", - 167422, + 167414, "abs32", "sec:.bss", 3455034 ], [ ".run", - 167468, + 167460, "abs32", "sec:.bss", 3455028 ], [ ".run", - 167492, + 167484, "abs32", "sec:.bss", 3455042 ], [ ".run", - 167596, + 167588, "abs32", "sec:.bss", 3455030 ], [ ".run", - 167616, + 167608, "abs32", "sec:.bss", 3455034 ], [ ".run", - 167628, + 167620, "abs32", "sec:.bss", 3455028 ], [ ".run", - 167680, + 167672, "abs32", "sec:.bss", 3461646 ], [ ".run", - 167750, + 167742, "abs32", "sec:.bss", 3460850 ], [ ".run", - 167776, + 167768, "abs32", "sec:.bss", 3455034 ], [ ".run", - 167822, + 167814, "abs32", "sec:.bss", 3455042 ], [ ".run", - 167836, + 167828, "abs32", "sec:.bss", 3455168 ], [ ".run", - 167848, + 167840, "abs32", "sec:.bss", 3459440 ], [ ".run", - 167900, + 167892, "abs32", "sec:.bss", 3454948 ], [ ".run", - 167942, + 167934, "abs32", "sec:.run", - 263940 + 263932 ], [ ".run", - 167962, + 167954, "abs32", "sec:.bss", 3455030 ], [ ".run", - 167972, + 167964, "abs32", "sec:.bss", 3460468 ], [ ".run", - 167982, + 167974, "abs32", "sec:.bss", 3455042 ], [ ".run", - 167988, + 167980, "abs32", "sec:.bss", 3455030 ], [ ".run", - 168012, + 168004, "abs32", "sec:.bss", 3460568 ], [ ".run", - 168018, + 168010, "abs32", "sec:.run", 309024 ], [ ".run", - 168024, + 168016, "abs32", "sec:.run", 309028 ], [ ".run", - 168030, + 168022, "abs32", "sec:.run", 309032 ], [ ".run", - 168036, + 168028, "abs32", "sec:.run", 309036 ], [ ".run", - 168042, + 168034, "abs32", "sec:.bss", 3460468 ], [ ".run", - 168052, + 168044, "abs32", "sec:.bss", 3455042 ], [ ".run", - 168058, + 168050, "abs32", "sec:.bss", 3455030 ], [ ".run", - 168218, + 168210, "abs32", "sec:.bss", 3464040 ], [ ".run", - 168284, + 168276, "abs32", "sec:.run", - 202644 + 202636 ], [ ".run", - 168290, + 168282, "abs32", "sec:.run", 339398 ], [ ".run", - 168398, + 168390, "abs32", "sec:.run", - 202680 + 202672 ], [ ".run", - 168576, + 168568, "abs32", "sec:.run", 309384 ], [ ".run", - 168582, + 168574, "abs32", "sec:.bss", 3464088 ], [ ".run", - 168724, + 168716, "abs32", "sec:.bss", 3464032 ], [ ".run", - 168932, + 168924, "abs32", "sec:.bss", 3464032 ], [ ".run", - 169028, + 169020, "abs32", "sec:.run", - 276058 + 276050 ], [ ".run", - 169110, + 169102, "abs32", "sec:.bss", 3464024 ], [ ".run", - 169120, + 169112, "abs32", "sec:.bss", 3464024 ], [ ".run", - 169128, + 169120, "abs32", "sec:.bss", 3464020 ], [ ".run", - 169156, + 169148, "abs32", "sec:.bss", 3464020 ], [ ".run", - 169172, + 169164, "abs32", "sec:.bss", 3464020 ], [ ".run", - 169220, + 169212, "abs32", "sec:.bss", 3464020 ], [ ".run", - 169256, + 169248, "abs32", "sec:.run", 341065 ], [ ".run", - 169292, + 169284, "abs32", "sec:.bss", 3464024 ], [ ".run", - 169314, + 169306, "abs32", "sec:.bss", 3464020 ], [ ".run", - 169382, + 169374, "abs32", "sec:.bss", 3464024 ], [ ".run", - 169460, + 169452, "abs32", "sec:.bss", 3464020 ], [ ".run", - 169472, + 169464, "abs32", "sec:.bss", 3464020 ], [ ".run", - 169554, + 169546, "abs32", "sec:.bss", 3464088 ], [ ".run", - 169564, + 169556, "abs32", "sec:.run", 309356 ], [ ".run", - 169572, + 169564, "abs32", "sec:.run", 309384 ], [ ".run", - 169686, + 169678, "abs32", "sec:.bss", 3464024 ], [ ".run", - 169694, + 169686, "abs32", "sec:.bss", 3464036 ], [ ".run", - 169706, + 169698, "abs32", "sec:.bss", 3464024 ], [ ".run", - 169878, + 169870, "abs32", "sec:.bss", 3464032 ], [ ".run", - 169890, + 169882, "abs32", "sec:.bss", 3464036 ], [ ".run", - 169900, + 169892, "abs32", "sec:.bss", 3464032 ], [ ".run", - 169944, + 169936, "abs32", "sec:.bss", 3464036 ], [ ".run", - 170006, + 169998, "abs32", "sec:.bss", 3464088 ], [ ".run", - 170016, + 170008, "abs32", "sec:.run", 309356 ], [ ".run", - 170050, + 170042, "abs32", "sec:.bss", 3464036 ], [ ".run", - 170098, + 170090, "abs32", "sec:.bss", 3464036 ], [ ".run", - 170142, + 170134, "abs32", "sec:.bss", 3464024 ], [ ".run", - 170150, + 170142, "abs32", "sec:.bss", 3464036 ], [ ".run", - 170164, + 170156, "abs32", "sec:.bss", 3464024 ], [ ".run", - 170200, + 170192, "abs32", "sec:.bss", 3464024 ], [ ".run", - 170434, + 170426, "abs32", "sec:.run", 341073 ], [ ".run", - 170450, + 170442, "abs32", "sec:.run", 341079 ], [ ".run", - 170488, + 170480, "abs32", "sec:.run", 340074 ], [ ".run", - 170692, + 170684, "abs32", "sec:.run", 341085 ], [ ".run", - 171122, + 171114, "abs32", "sec:.run", 341073 ], [ ".run", - 171138, + 171130, "abs32", "sec:.run", 341079 ], [ ".run", - 171190, + 171182, "abs32", "sec:.run", 340074 ], [ ".run", - 171426, + 171418, "abs32", "sec:.run", 309384 ], [ ".run", - 171432, + 171424, "abs32", "sec:.bss", 3464088 ], [ ".run", - 171570, + 171562, "abs32", "sec:.bss", 3464032 ], [ ".run", - 171708, + 171700, "abs32", "sec:.bss", 3464092 ], [ ".run", - 171718, + 171710, "abs32", "sec:.bss", 3464092 ], [ ".run", - 171874, + 171866, "abs32", "sec:.bss", 3464088 ], [ ".run", - 171902, + 171894, "abs32", "sec:.bss", 3464016 ], [ ".run", - 171908, + 171900, "abs32", "sec:.bss", 3464028 ], [ ".run", - 171918, + 171910, "abs32", "sec:.bss", 3464032 ], [ ".run", - 171924, + 171916, "abs32", "sec:.bss", 3464028 ], [ ".run", - 171930, + 171922, "abs32", "sec:.bss", 3464088 ], [ ".run", - 171940, + 171932, "abs32", "sec:.bss", 3464036 ], [ ".run", - 171948, + 171940, "abs32", "sec:.run", 309384 ], [ ".run", - 171964, + 171956, "abs32", "sec:.bss", 3464088 ], [ ".run", - 172110, + 172102, "abs32", "sec:.bss", 3464016 ], [ ".run", - 172124, + 172116, "abs32", "sec:.bss", 3464028 ], [ ".run", - 172134, + 172126, "abs32", "sec:.bss", 3464032 ], [ ".run", - 172140, + 172132, "abs32", "sec:.bss", 3464028 ], [ ".run", - 172152, + 172144, "abs32", "sec:.run", 309384 ], [ ".run", - 172158, + 172150, "abs32", "sec:.bss", 3464088 ], [ ".run", - 172176, + 172168, "abs32", "sec:.bss", 3464036 ], [ ".run", - 172186, + 172178, "abs32", "sec:.run", 309384 ], [ ".run", - 172202, + 172194, "abs32", "sec:.bss", 3464088 ], [ ".run", - 172218, + 172210, "abs32", "sec:.run", 309356 ], [ ".run", - 172240, + 172232, "abs32", "sec:.run", 341069 ], [ ".run", - 172246, + 172238, "abs32", "sec:.bss", 3464040 ], [ ".run", - 172272, + 172264, "abs32", "sec:.run", - 169480 + 169472 ], [ ".run", - 172296, + 172288, "abs32", "sec:.bss", 3464088 ], [ ".run", - 172314, + 172306, "abs32", "sec:.run", 309384 ], [ ".run", - 172322, + 172314, "abs32", "sec:.bss", 3464088 ], [ ".run", - 172456, + 172448, "abs32", "sec:.bss", 3464032 ], [ ".run", - 172488, + 172480, "abs32", "sec:.bss", 3464016 ], [ ".run", - 172518, + 172510, "abs32", "sec:.bss", 3464028 ], [ ".run", - 172528, + 172520, "abs32", "sec:.bss", 3464032 ], [ ".run", - 172534, + 172526, "abs32", "sec:.bss", 3464028 ], [ ".run", - 172540, + 172532, "abs32", "sec:.run", 309356 ], [ ".run", - 172546, + 172538, "abs32", "sec:.bss", 3464088 ], [ ".run", - 172558, + 172550, "abs32", "sec:.bss", 3464036 ], [ ".run", - 172580, + 172572, "abs32", "sec:.run", 309356 ], [ ".run", - 172606, + 172598, "abs32", "sec:.run", 341069 ], [ ".run", - 172612, + 172604, "abs32", "sec:.bss", 3464040 ], [ ".run", - 172632, + 172624, "abs32", "sec:.run", 309356 ], [ ".run", - 172638, + 172630, "abs32", "sec:.run", 341069 ], [ ".run", - 172644, + 172636, "abs32", "sec:.bss", 3464040 ], [ ".run", - 172658, + 172650, "abs32", "sec:.bss", 3464016 ], [ ".run", - 172664, + 172656, "abs32", "sec:.bss", 3464032 ], [ ".run", - 172694, + 172686, "abs32", "sec:.bss", 3464092 ], [ ".run", - 172704, + 172696, "abs32", "sec:.bss", 3464092 ], [ ".run", - 172730, + 172722, "abs32", "sec:.bss", 3464032 ], [ ".run", - 172736, + 172728, "abs32", "sec:.run", 309356 ], [ ".run", - 172760, + 172752, "abs32", "sec:.bss", 3464016 ], [ ".run", - 172808, + 172800, "abs32", "sec:.bss", 3464024 ], [ ".run", - 172858, + 172850, "abs32", "sec:.bss", 3464032 ], [ ".run", - 172864, + 172856, "abs32", "sec:.run", 309384 ], [ ".run", - 172876, + 172868, "abs32", "sec:.bss", 3464024 ], [ ".run", - 172890, + 172882, "abs32", "sec:.run", 309384 ], [ ".run", - 172906, + 172898, "abs32", "sec:.bss", 3464088 ], [ ".run", - 172922, + 172914, "abs32", "sec:.run", 309356 ], [ ".run", - 173344, + 173336, "abs32", "sec:.bss", 3485864 ], [ ".run", - 173350, + 173342, "abs32", "sec:.bss", 4276432 ], [ ".run", - 173408, + 173400, "abs32", "sec:.run", - 219632 + 219624 ], [ ".run", - 173436, + 173428, "abs32", "sec:.bss", 3485908 ], [ ".run", - 173454, + 173446, "abs32", "sec:.bss", 3485864 ], [ ".run", - 173466, + 173458, "abs32", "sec:.bss", 3485920 ], [ ".run", - 173484, + 173476, "abs32", "sec:.bss", 3485924 ], [ ".run", - 173490, + 173482, "abs32", "sec:.run", 338315 ], [ ".run", - 173496, + 173488, "abs32", "sec:.bss", 3485956 ], [ ".run", - 173514, + 173506, "abs32", "sec:.bss", 3485956 ], [ ".run", - 173534, + 173526, "abs32", "sec:.bss", 3485988 ], [ ".run", - 173540, + 173532, "abs32", "sec:.run", - 219632 + 219624 ], [ ".run", - 173586, + 173578, "abs32", "sec:.bss", 3464100 ], [ ".run", - 173610, + 173602, "abs32", "sec:.run", 341085 ], [ ".run", - 173620, + 173612, "abs32", "sec:.bss", 138587648 ], [ ".run", - 173626, + 173618, "abs32", "sec:.run", 341113 ], [ ".run", - 173644, + 173636, "abs32", "sec:.run", - 269088 + 269080 ], [ ".run", - 173662, + 173654, "abs32", "sec:.bss", 3485904 ], [ ".run", - 173670, + 173662, "abs32", "sec:.run", - 269102 + 269094 ], [ ".run", - 173688, + 173680, "abs32", "sec:.bss", 3485860 ], [ ".run", - 173696, + 173688, "abs32", "sec:.bss", 3485864 ], [ ".run", - 173702, + 173694, "abs32", "sec:.bss", 3485860 ], [ ".run", - 173708, + 173700, "abs32", "sec:.run", - 269130 + 269122 ], [ ".run", - 173728, + 173720, "abs32", "sec:.run", 341099 ], [ ".run", - 173742, + 173734, "abs32", "sec:.bss", 3485904 ], [ ".run", - 173750, + 173742, "abs32", "sec:.bss", 3485920 ], [ ".run", - 173778, + 173770, "abs32", "sec:.bss", 3486416 ], [ ".run", - 173828, + 173820, "abs32", "sec:.bss", 3485860 ], [ ".run", - 173834, + 173826, "abs32", "sec:.bss", 3485864 ], [ ".run", - 173842, + 173834, "abs32", "sec:.bss", 3485908 ], [ ".run", - 173852, + 173844, "abs32", "sec:.bss", 3485860 ], [ ".run", - 173858, + 173850, "abs32", "sec:.run", - 269130 + 269122 ], [ ".run", - 173884, + 173876, "abs32", "sec:.bss", 3464624 ], [ ".run", - 173910, + 173902, "abs32", "sec:.bss", 3464624 ], [ ".run", - 173918, + 173910, "abs32", "sec:.bss", 3464636 ], [ ".run", - 173932, + 173924, "abs32", "sec:.bss", 3464640 ], [ ".run", - 173938, + 173930, "abs32", "sec:.bss", 3485912 ], [ ".run", - 173998, + 173990, "abs32", "sec:.bss", 4276432 ], [ ".run", - 174006, + 173998, "abs32", "sec:.bss", 3464624 ], [ ".run", - 174012, + 174004, "abs32", "sec:.bss", 3465136 ], [ ".run", - 174098, + 174090, "abs32", "sec:.bss", 3485860 ], [ ".run", - 174104, + 174096, "abs32", "sec:.run", - 269130 + 269122 ], [ ".run", - 174286, + 174278, "abs32", "sec:.run", - 219632 + 219624 ], [ ".run", - 174324, + 174316, "abs32", "sec:.bss", 3485864 ], [ ".run", - 174330, + 174322, "abs32", "sec:.bss", 3485860 ], [ ".run", - 174336, + 174328, "abs32", "sec:.run", - 269130 + 269122 ], [ ".run", - 174358, + 174350, "abs32", "sec:.bss", 3485904 ], [ ".run", - 174370, + 174362, "abs32", "sec:.bss", 3485920 ], [ ".run", - 174464, + 174456, "abs32", "sec:.bss", 3485864 ], [ ".run", - 174486, + 174478, "abs32", "sec:.bss", 3485904 ], [ ".run", - 174506, + 174498, "abs32", "sec:.bss", 4276436 ], [ ".run", - 174518, + 174510, "abs32", "sec:.bss", 4276432 ], [ ".run", - 174584, + 174576, "abs32", "sec:.bss", 3485864 ], [ ".run", - 174606, + 174598, "abs32", "sec:.bss", 3485904 ], [ ".run", - 174612, + 174604, "abs32", "sec:.bss", 3485860 ], [ ".run", - 174650, + 174642, "abs32", "sec:.bss", 3485864 ], [ ".run", - 174656, + 174648, "abs32", "sec:.bss", 3485860 ], [ ".run", - 174680, + 174672, "abs32", "sec:.bss", 3485860 ], [ ".run", - 174690, + 174682, "abs32", "sec:.bss", 4276432 ], [ ".run", - 174800, + 174792, "abs32", "sec:.bss", 3485864 ], [ ".run", - 174814, + 174806, "abs32", "sec:.bss", 4276432 ], [ ".run", - 174822, + 174814, "abs32", "sec:.bss", 4276432 ], [ ".run", - 174854, + 174846, "abs32", "sec:.bss", 3485864 ], [ ".run", - 174860, + 174852, "abs32", "sec:.bss", 3485860 ], [ ".run", - 174930, + 174922, "abs32", "sec:.bss", 3485864 ], [ ".run", - 174954, + 174946, "abs32", "sec:.bss", 3485904 ], [ ".run", - 174964, + 174956, "abs32", "sec:.bss", 3485908 ], [ ".run", - 174992, + 174984, "abs32", "sec:.bss", 3485864 ], [ ".run", - 175014, + 175006, "abs32", "sec:.bss", 3485912 ], [ ".run", - 175022, + 175014, "abs32", "sec:.bss", 3485912 ], [ ".run", - 175028, + 175020, "abs32", "sec:.bss", 3485920 ], [ ".run", - 175034, + 175026, "abs32", "sec:.bss", 3485908 ], [ ".run", - 175040, + 175032, "abs32", "sec:.bss", 3485910 ], [ ".run", - 175054, + 175046, "abs32", "sec:.bss", 3485904 ], [ ".run", - 175060, + 175052, "abs32", "sec:.bss", 3485911 ], [ ".run", - 175070, + 175062, "abs32", "sec:.bss", 3485916 ], [ ".run", - 175092, + 175084, "abs32", "sec:.run", 338315 ], [ ".run", - 175098, + 175090, "abs32", "sec:.bss", 3485924 ], [ ".run", - 175106, + 175098, "abs32", "sec:.run", 338347 ], [ ".run", - 175114, + 175106, "abs32", "sec:.bss", 3485956 ], [ ".run", - 175124, + 175116, "abs32", "sec:.bss", 3485988 ], [ ".run", - 175130, + 175122, "abs32", "sec:.run", - 219632 + 219624 ], [ ".run", - 175142, + 175134, "abs32", "sec:.bss", 3485912 ], [ ".run", - 175148, + 175140, "abs32", "sec:.bss", 3464108 ], [ ".run", - 175158, + 175150, "abs32", "sec:.bss", 3464104 ], [ ".run", - 175182, + 175174, "abs32", "sec:.bss", 3485904 ], [ ".run", - 175266, + 175258, "abs32", "sec:.run", 338404 ], [ ".run", - 175272, + 175264, "abs32", "sec:.run", 338408 ], [ ".run", - 175282, + 175274, "abs32", "sec:.bss", 3485718 ], [ ".run", - 175290, + 175282, "abs32", "sec:.bss", 3485718 ], [ ".run", - 175324, + 175316, "abs32", "sec:.bss", 3485724 ], [ ".run", - 175336, + 175328, "abs32", "sec:.bss", 3485908 ], [ ".run", - 175406, + 175398, "abs32", "sec:.run", 338416 ], [ ".run", - 175428, + 175420, "abs32", "sec:.bss", 3485888 ], [ ".run", - 175434, + 175426, "abs32", "sec:.bss", 3485718 ], [ ".run", - 175454, + 175446, "abs32", "sec:.bss", 3485908 ], [ ".run", - 175460, + 175452, "abs32", "sec:.bss", 3485724 ], [ ".run", - 175512, + 175504, "abs32", "sec:.bss", 3485714 ], [ ".run", - 175536, + 175528, "abs32", "sec:.bss", 3485912 ], [ ".run", - 175544, + 175536, "abs32", "sec:.bss", 3464108 ], [ ".run", - 175550, + 175542, "abs32", "sec:.bss", 3464104 ], [ ".run", - 175556, + 175548, "abs32", "sec:.bss", 3464100 ], [ ".run", - 175568, + 175560, "abs32", "sec:.bss", 2593200 ], [ ".run", - 175582, + 175574, "abs32", "sec:.bss", 3485868 ], [ ".run", - 175588, + 175580, "abs32", "sec:.bss", 3485872 ], [ ".run", - 175600, + 175592, "abs32", "sec:.run", 341141 ], [ ".run", - 175606, + 175598, "abs32", "sec:.bss", 3485876 ], [ ".run", - 175620, + 175612, "abs32", "sec:.run", 39008 ], [ ".run", - 175632, + 175624, "abs32", "sec:.bss", 3485904 ], [ ".run", - 175734, + 175726, "abs32", "sec:.run", 338420 ], [ ".run", - 175754, + 175746, "abs32", "sec:.run", 338428 ], [ ".run", - 175774, + 175766, "abs32", "sec:.run", 95478 ], [ ".run", - 175782, + 175774, "abs32", "sec:.run", 338424 ], [ ".run", - 175806, + 175798, "abs32", "sec:.bss", 3485714 ], [ ".run", - 175816, + 175808, "abs32", "sec:.bss", 3485702 ], [ ".run", - 175822, + 175814, "abs32", "sec:.bss", 3485714 ], [ ".run", - 175828, + 175820, "abs32", "sec:.bss", 3485710 ], [ ".run", - 175834, + 175826, "abs32", "sec:.run", 108340 ], [ ".run", - 175848, + 175840, "abs32", "sec:.bss", 3485706 ], [ ".run", - 175854, + 175846, "abs32", "sec:.run", 95504 ], [ ".run", - 175862, + 175854, "abs32", "sec:.bss", 3485698 ], [ ".run", - 175902, + 175894, "abs32", "sec:.bss", 3485714 ], [ ".run", - 175918, + 175910, "abs32", "sec:.bss", 3485702 ], [ ".run", - 175926, + 175918, "abs32", "sec:.bss", 3485714 ], [ ".run", - 175932, + 175924, "abs32", "sec:.bss", 3485710 ], [ ".run", - 175938, + 175930, "abs32", "sec:.run", 108340 ], [ ".run", - 175952, + 175944, "abs32", "sec:.bss", 3485706 ], [ ".run", - 175962, + 175954, "abs32", "sec:.bss", 3485698 ], [ ".run", - 176040, + 176032, "abs32", "sec:.bss", 3485714 ], [ ".run", - 176062, + 176054, "abs32", "sec:.bss", 3485710 ], [ ".run", - 176072, + 176064, "abs32", "sec:.bss", 3485714 ], [ ".run", - 176100, + 176092, "abs32", "sec:.bss", 3485912 ], [ ".run", - 176110, + 176102, "abs32", "sec:.bss", 3485904 ], [ ".run", - 176166, + 176158, "abs32", "sec:.bss", 3485912 ], [ ".run", - 176172, + 176164, "abs32", "sec:.bss", 3464108 ], [ ".run", - 176178, + 176170, "abs32", "sec:.bss", 3464104 ], [ ".run", - 176192, + 176184, "abs32", "sec:.bss", 3464100 ], [ ".run", - 176208, + 176200, "abs32", "sec:.run", 341158 ], [ ".run", - 176232, + 176224, "abs32", "sec:.run", 39008 ], [ ".run", - 176238, + 176230, "abs32", "sec:.bss", 3485698 ], [ ".run", - 176244, + 176236, "abs32", "sec:.bss", 3485702 ], [ ".run", - 176250, + 176242, "abs32", "sec:.bss", 3485706 ], [ ".run", - 176256, + 176248, "abs32", "sec:.bss", 3485710 ], [ ".run", - 176264, + 176256, "abs32", "sec:.run", 38956 ], [ ".run", - 176306, + 176298, "abs32", "sec:.bss", 2593200 ], [ ".run", - 176316, + 176308, "abs32", "sec:.bss", 3485880 ], [ ".run", - 176332, + 176324, "abs32", "sec:.bss", 3464100 ], [ ".run", - 176344, + 176336, "abs32", "sec:.bss", 2593200 ], [ ".run", - 176350, + 176342, "abs32", "sec:.bss", 3485872 ], [ ".run", - 176356, + 176348, "abs32", "sec:.bss", 3485868 ], [ ".run", - 176368, + 176360, "abs32", "sec:.bss", 3485674 ], [ ".run", - 176374, + 176366, "abs32", "sec:.bss", 3485876 ], [ ".run", - 176384, + 176376, "abs32", "sec:.run", 338436 ], [ ".run", - 176528, + 176520, "abs32", "sec:.bss", 3485674 ], [ ".run", - 176606, + 176598, "abs32", "sec:.run", 341131 ], [ ".run", - 176630, + 176622, "abs32", "sec:.bss", 3485714 ], [ ".run", - 176648, + 176640, "abs32", "sec:.bss", 2593200 ], [ ".run", - 176654, + 176646, "abs32", "sec:.bss", 3485872 ], [ ".run", - 176660, + 176652, "abs32", "sec:.run", 341197 ], [ ".run", - 176666, + 176658, "abs32", "sec:.bss", 3485876 ], [ ".run", - 176680, + 176672, "abs32", "sec:.run", 341178 ], [ ".run", - 176702, + 176694, "abs32", "sec:.bss", 3485674 ], [ ".run", - 176710, + 176702, "abs32", "sec:.run", 341115 ], [ ".run", - 176730, + 176722, "abs32", "sec:.bss", 3485714 ], [ ".run", - 176764, + 176756, "abs32", "sec:.run", 341115 ], [ ".run", - 176778, + 176770, "abs32", "sec:.run", 341131 ], [ ".run", - 176798, + 176790, "abs32", "sec:.bss", 3485876 ], [ ".run", - 176804, + 176796, "abs32", "sec:.run", 92722 ], [ ".run", - 176818, + 176810, "abs32", "sec:.bss", 3485900 ], [ ".run", - 176828, + 176820, "abs32", "sec:.bss", 3485896 ], [ ".run", - 176852, + 176844, "abs32", "sec:.bss", 3484644 ], [ ".run", - 176858, + 176850, "abs32", "sec:.bss", 3485156 ], [ ".run", - 176884, + 176876, "abs32", "sec:.bss", 3485892 ], [ ".run", - 176896, + 176888, "abs32", "sec:.bss", 3464100 ], [ ".run", - 176910, + 176902, "abs32", "sec:.run", 95486 ], [ ".run", - 176926, + 176918, "abs32", "sec:.bss", 3485888 ], [ ".run", - 176936, + 176928, "abs32", "sec:.bss", 3485892 ], [ ".run", - 176964, + 176956, "abs32", "sec:.bss", 3484644 ], [ ".run", - 176986, + 176978, "abs32", "sec:.bss", 3484132 ], [ ".run", - 176996, + 176988, "abs32", "sec:.run", - 219632 + 219624 ], [ ".run", - 177026, + 177018, "abs32", "sec:.bss", 3485908 ], [ ".run", - 177060, + 177052, "abs32", "sec:.bss", 3485904 ], [ ".run", - 177080, + 177072, "abs32", "sec:.bss", 3485912 ], [ ".run", - 177094, + 177086, "abs32", "sec:.bss", 3480036 ], [ ".run", - 177116, + 177108, "abs32", "sec:.bss", 3485156 ], [ ".run", - 177124, + 177116, "abs32", "sec:.bss", 3484644 ], [ ".run", - 177202, + 177194, "abs32", "sec:.run", 95486 ], [ ".run", - 177286, + 177278, "abs32", "sec:.bss", 3479524 ], [ ".run", - 177300, + 177292, "abs32", "sec:.bss", 3475428 ], [ ".run", - 177340, + 177332, "abs32", "sec:.bss", 3485900 ], [ ".run", - 177346, + 177338, "abs32", "sec:.bss", 3485896 ], [ ".run", - 177398, + 177390, "abs32", "sec:.bss", 3470812 ], [ ".run", - 177404, + 177396, "abs32", "sec:.bss", 3480068 ], [ ".run", - 177410, + 177402, "abs32", "sec:.bss", 3484132 ], [ ".run", - 177420, + 177412, "abs32", "sec:.bss", 3484132 ], [ ".run", - 177426, + 177418, "abs32", "sec:.bss", 3470816 ], [ ".run", - 177432, + 177424, "abs32", "sec:.bss", 3470818 ], [ ".run", - 177468, + 177460, "abs32", "sec:.bss", 3470820 ], [ ".run", - 177500, + 177492, "abs32", "sec:.bss", 3484132 ], [ ".run", - 177522, + 177514, "abs32", "sec:.bss", 3470812 ], [ ".run", - 177542, + 177534, "abs32", "sec:.bss", 3470819 ], [ ".run", - 177592, + 177584, "abs32", "sec:.bss", 3484644 ], [ ".run", - 177602, + 177594, "abs32", "sec:.bss", 3485156 ], [ ".run", - 177616, + 177608, "abs32", "sec:.bss", 3479524 ], [ ".run", - 177670, + 177662, "abs32", "sec:.bss", 3485864 ], [ ".run", - 177728, + 177720, "abs32", "sec:.bss", 3475428 ], [ ".run", - 177796, + 177788, "abs32", "sec:.bss", 3470812 ], [ ".run", - 177802, + 177794, "abs32", "sec:.bss", 3470818 ], [ ".run", - 177808, + 177800, "abs32", "sec:.bss", 3470816 ], [ ".run", - 177822, + 177814, "abs32", "sec:.bss", 3479524 ], [ ".run", - 177832, + 177824, "abs32", "sec:.bss", 3475460 ], [ ".run", - 177894, + 177886, "abs32", "sec:.run", - 219632 + 219624 ], [ ".run", - 177904, + 177896, "abs32", "sec:.bss", 3470812 ], [ ".run", - 177928, + 177920, "abs32", "sec:.bss", 3470812 ], [ ".run", - 177934, + 177926, "abs32", "sec:.bss", 3470818 ], [ ".run", - 177950, + 177942, "abs32", "sec:.bss", 3470816 ], [ ".run", - 177956, + 177948, "abs32", "sec:.bss", 3470819 ], [ ".run", - 177996, + 177988, "abs32", "sec:.run", 95486 ], [ ".run", - 178040, + 178032, "abs32", "sec:.bss", 3470820 ], [ ".run", - 178090, + 178082, "abs32", "sec:.run", 95486 ], [ ".run", - 178130, + 178122, "abs32", "sec:.bss", 3470819 ], [ ".run", - 178182, + 178174, "abs32", "sec:.run", 92722 ], [ ".run", - 178202, + 178194, "abs32", "sec:.run", 92258 ], [ ".run", - 178212, + 178204, "abs32", "sec:.bss", 3485900 ], [ ".run", - 178222, + 178214, "abs32", "sec:.bss", 3485896 ], [ ".run", - 178276, + 178268, "abs32", "sec:.bss", 3485904 ], [ ".run", - 178296, + 178288, "abs32", "sec:.bss", 3485904 ], [ ".run", - 178308, + 178300, "abs32", "sec:.bss", 3485908 ], [ ".run", - 178366, + 178358, "abs32", "sec:.bss", 3485896 ], [ ".run", - 178372, + 178364, "abs32", "sec:.bss", 3485900 ], [ ".run", - 178412, + 178404, "abs32", "sec:.bss", 3485864 ], [ ".run", - 178430, + 178422, "abs32", "sec:.bss", 3485904 ], [ ".run", - 178440, + 178432, "abs32", "sec:.bss", 3485908 ], [ ".run", - 178460, + 178452, "abs32", "sec:.bss", 3485912 ], [ ".run", - 178482, + 178474, "abs32", "sec:.bss", 3485912 ], [ ".run", - 178516, + 178508, "abs32", "sec:.bss", 3485900 ], [ ".run", - 178522, + 178514, "abs32", "sec:.bss", 3485880 ], [ ".run", - 178534, + 178526, "abs32", "sec:.bss", 3485892 ], [ ".run", - 178604, + 178596, "abs32", "sec:.bss", 3485916 ], [ ".run", - 178624, + 178616, "abs32", "sec:.bss", 3464100 ], [ ".run", - 178630, + 178622, "abs32", "sec:.bss", 3485900 ], [ ".run", - 178642, + 178634, "abs32", "sec:.bss", 3469788 ], [ ".run", - 178654, + 178646, "abs32", "sec:.bss", 3470300 ], [ ".run", - 178682, + 178674, "abs32", "sec:.bss", 3485904 ], [ ".run", - 178708, + 178700, "abs32", "sec:.bss", 3469788 ], [ ".run", - 178716, + 178708, "abs32", "sec:.bss", 3485904 ], [ ".run", - 178728, + 178720, "abs32", "sec:.bss", 3485908 ], [ ".run", - 178766, + 178758, "abs32", "sec:.bss", 3485904 ], [ ".run", - 178774, + 178766, "abs32", "sec:.bss", 3470300 ], [ ".run", - 178784, + 178776, "abs32", "sec:.bss", 3469788 ], [ ".run", - 178850, + 178842, "abs32", "sec:.bss", 3485904 ], [ ".run", - 178906, + 178898, "abs32", "sec:.bss", 3469788 ], [ ".run", - 178912, + 178904, "abs32", "sec:.bss", 3470300 ], [ ".run", - 178926, + 178918, "abs32", "sec:.run", - 174558 + 174550 ], [ ".run", - 179014, + 179006, "abs32", "sec:.bss", 3485900 ], [ ".run", - 179020, + 179012, "abs32", "sec:.bss", 3485880 ], [ ".run", - 179032, + 179024, "abs32", "sec:.bss", 3485892 ], [ ".run", - 179110, + 179102, "abs32", "sec:.bss", 3485904 ], [ ".run", - 179138, + 179130, "abs32", "sec:.bss", 3485908 ], [ ".run", - 179152, + 179144, "abs32", "sec:.bss", 3485912 ], [ ".run", - 179264, + 179256, "abs32", "sec:.bss", 3485916 ], [ ".run", - 179298, + 179290, "abs32", "sec:.bss", 3485852 ], [ ".run", - 179304, + 179296, "abs32", "sec:.bss", 3485876 ], [ ".run", - 179312, + 179304, "abs32", "sec:.bss", 3485888 ], [ ".run", - 179338, + 179330, "abs32", "sec:.bss", 3485864 ], [ ".run", - 179346, + 179338, "abs32", "sec:.bss", 3485908 ], [ ".run", - 179424, + 179416, "abs32", "sec:.bss", 3485904 ], [ ".run", - 179456, + 179448, "abs32", "sec:.bss", 3485912 ], [ ".run", - 179512, + 179504, "abs32", "sec:.bss", 3469276 ], [ ".run", - 179520, + 179512, "abs32", "sec:.run", - 219632 + 219624 ], [ ".run", - 179536, + 179528, "abs32", "sec:.bss", 3465180 ], [ ".run", - 179548, + 179540, "abs32", "sec:.bss", 3485908 ], [ ".run", - 179556, + 179548, "abs32", "sec:.bss", 3485904 ], [ ".run", - 179582, + 179574, "abs32", "sec:.bss", 3485912 ], [ ".run", - 179700, + 179692, "abs32", "sec:.bss", 3470812 ], [ ".run", - 179706, + 179698, "abs32", "sec:.bss", 3469276 ], [ ".run", - 179716, + 179708, "abs32", "sec:.bss", 3470818 ], [ ".run", - 179722, + 179714, "abs32", "sec:.bss", 3470816 ], [ ".run", - 179728, + 179720, "abs32", "sec:.bss", 3465212 ], [ ".run", - 179790, + 179782, "abs32", "sec:.bss", 3470820 ], [ ".run", - 179850, + 179842, "abs32", "sec:.bss", 3470812 ], [ ".run", - 179862, + 179854, "abs32", "sec:.bss", 3470812 ], [ ".run", - 179868, + 179860, "abs32", "sec:.run", - 219632 + 219624 ], [ ".run", - 179874, + 179866, "abs32", "sec:.bss", 3470818 ], [ ".run", - 179880, + 179872, "abs32", "sec:.bss", 3470816 ], [ ".run", - 179886, + 179878, "abs32", "sec:.bss", 3470819 ], [ ".run", - 179932, + 179924, "abs32", "sec:.bss", 3485852 ], [ ".run", - 179944, + 179936, "abs32", "sec:.bss", 3485856 ], [ ".run", - 179972, + 179964, "abs32", "sec:.bss", 3470812 ], [ ".run", - 179982, + 179974, "abs32", "sec:.bss", 3470819 ], [ ".run", - 180012, + 180004, "abs32", "sec:.bss", 3485852 ], [ ".run", - 180026, + 180018, "abs32", "sec:.bss", 3485856 ], [ ".run", - 180036, + 180028, "abs32", "sec:.bss", 3485880 ], [ ".run", - 180042, + 180034, "abs32", "sec:.bss", 3485852 ], [ ".run", - 180052, + 180044, "abs32", "sec:.bss", 3485892 ], [ ".run", - 180060, + 180052, "abs32", "sec:.bss", 3485892 ], [ ".run", - 180072, + 180064, "abs32", "sec:.bss", 3464100 ], [ ".run", - 180088, + 180080, "abs32", "sec:.bss", 4362720 ], [ ".run", - 180098, + 180090, "abs32", "sec:.bss", 3485888 ], [ ".run", - 180116, + 180108, "abs32", "sec:.bss", 2593200 ], [ ".run", - 180122, + 180114, "abs32", "sec:.bss", 3465172 ], [ ".run", - 180128, + 180120, "abs32", "sec:.bss", 3485876 ], [ ".run", - 180134, + 180126, "abs32", "sec:.bss", 2593200 ], [ ".run", - 180140, + 180132, "abs32", "sec:.bss", 3485872 ], [ ".run", - 180146, + 180138, "abs32", "sec:.bss", 3465176 ], [ ".run", - 180156, + 180148, "abs32", "sec:.bss", 3485868 ], [ ".run", - 180162, + 180154, "abs32", "sec:.bss", 2593200 ], [ ".run", - 180186, + 180178, "abs32", "sec:.run", - 230832 + 230824 ], [ ".run", - 180230, + 180222, "abs32", "sec:.bss", 3485876 ], [ ".run", - 180250, + 180242, "abs32", "sec:.bss", 3465176 ], [ ".run", - 180312, + 180304, "abs32", "sec:.bss", 2593200 ], [ ".run", - 180318, + 180310, "abs32", "sec:.bss", 3465172 ], [ ".run", - 180358, + 180350, "abs32", "sec:.run", 27916 ], [ ".run", - 180378, + 180370, "abs32", "sec:.bss", 3485876 ], [ ".run", - 180412, + 180404, "abs32", "sec:.bss", 3485668 ], [ ".run", - 180432, + 180424, "abs32", "sec:.bss", 3485670 ], [ ".run", - 180440, + 180432, "abs32", "sec:.bss", 3485669 ], [ ".run", - 180448, + 180440, "abs32", "sec:.bss", 3464096 ], [ ".run", - 180454, + 180446, "abs32", "sec:.bss", 3485668 ], [ ".run", - 180466, + 180458, "abs32", "sec:.bss", 3485668 ], [ ".run", - 180494, + 180486, "abs32", "sec:.bss", 3485860 ], [ ".run", - 180510, + 180502, "abs32", "sec:.bss", 3485864 ], [ ".run", - 180530, + 180522, "abs32", "sec:.bss", 3485904 ], [ ".run", - 180574, + 180566, "abs32", "sec:.bss", 3485904 ], [ ".run", - 180614, + 180606, "abs32", "sec:.bss", 3485904 ], [ ".run", - 180930, + 180922, "abs32", "sec:.bss", 3485904 ], [ ".run", - 180950, + 180942, "abs32", "sec:.bss", 3485860 ], [ ".run", - 180996, + 180988, "abs32", "sec:.bss", 3485860 ], [ ".run", - 181012, + 181004, "abs32", "sec:.bss", 3485888 ], [ ".run", - 181020, + 181012, "abs32", "sec:.bss", 3485888 ], [ ".run", - 181028, + 181020, "abs32", "sec:.bss", 3485892 ], [ ".run", - 181040, + 181032, "abs32", "sec:.run", 92722 ], [ ".run", - 181056, + 181048, "abs32", "sec:.bss", 3485888 ], [ ".run", - 181064, + 181056, "abs32", "sec:.bss", 3485892 ], [ ".run", - 181072, + 181064, "abs32", "sec:.bss", 3485880 ], [ ".run", - 181078, + 181070, "abs32", "sec:.bss", 2593200 ], [ ".run", - 181090, + 181082, "abs32", "sec:.run", 92722 ], [ ".run", - 181100, + 181092, "abs32", "sec:.run", 92258 ], [ ".run", - 181124, + 181116, "abs32", "sec:.bss", 3485668 ], [ ".run", - 181134, + 181126, "abs32", "sec:.run", 92722 ], [ ".run", - 181156, + 181148, "abs32", "sec:.run", 92258 ], [ ".run", - 181166, + 181158, "abs32", "sec:.run", - 246768 + 246760 ], [ ".run", - 181176, + 181168, "abs32", "sec:.bss", 3485888 ], [ ".run", - 181186, + 181178, "abs32", "sec:.bss", 3485718 ], [ ".run", - 181204, + 181196, "abs32", "sec:.bss", 2593200 ], [ ".run", - 181214, + 181206, "abs32", "sec:.bss", 3485888 ], [ ".run", - 181276, + 181268, "abs32", "sec:.bss", 3485912 ], [ ".run", - 181314, + 181306, "abs32", "sec:.bss", 3485912 ], [ ".run", - 181410, + 181402, "abs32", "sec:.run", 338315 ], [ ".run", - 181634, + 181626, "abs32", "sec:.bss", 3485884 ], [ ".run", - 181648, + 181640, "abs32", "sec:.bss", 3485904 ], [ ".run", - 181656, + 181648, "abs32", "sec:.bss", 3485988 ], [ ".run", - 181668, + 181660, "abs32", "sec:.bss", 3485912 ], [ ".run", - 181688, + 181680, "abs32", "sec:.bss", 3464100 ], [ ".run", - 181694, + 181686, "abs32", "sec:.run", 341212 ], [ ".run", - 181718, + 181710, "abs32", "sec:.bss", 3485669 ], [ ".run", - 181724, + 181716, "abs32", "sec:.bss", 3485670 ], [ ".run", - 181738, + 181730, "abs32", "sec:.run", - 202476 + 202468 ], [ ".run", - 181750, + 181742, "abs32", "sec:.bss", 3485888 ], [ ".run", - 181758, + 181750, "abs32", "sec:.bss", 3485892 ], [ ".run", - 181768, + 181760, "abs32", "sec:.bss", 3485900 ], [ ".run", - 181776, + 181768, "abs32", "sec:.run", 92722 ], [ ".run", - 181784, + 181776, "abs32", "sec:.bss", 3464096 ], [ ".run", - 181792, + 181784, "abs32", "sec:.bss", 3485668 ], [ ".run", - 181810, + 181802, "abs32", "sec:.run", 92722 ], [ ".run", - 181826, + 181818, "abs32", "sec:.run", 92258 ], [ ".run", - 181836, + 181828, "abs32", "sec:.run", 69068 ], [ ".run", - 181846, + 181838, "abs32", "sec:.run", - 246768 + 246760 ], [ ".run", - 181862, + 181854, "abs32", "sec:.bss", 3464100 ], [ ".run", - 181874, + 181866, "abs32", "sec:.bss", 3464100 ], [ ".run", - 181886, + 181878, "abs32", "sec:.bss", 3464100 ], [ ".run", - 181898, + 181890, "abs32", "sec:.bss", 3464100 ], [ ".run", - 181908, + 181900, "abs32", "sec:.bss", 3464100 ], [ ".run", - 181918, + 181910, "abs32", "sec:.bss", 3464100 ], [ ".run", - 181958, + 181950, "abs32", "sec:.bss", 3485904 ], [ ".run", - 181990, + 181982, "abs32", "sec:.bss", 3485904 ], [ ".run", - 182004, + 181996, "abs32", "sec:.bss", 3485908 ], [ ".run", - 182052, + 182044, "abs32", "sec:.bss", 3464096 ], [ ".run", - 182060, + 182052, "abs32", "sec:.bss", 3485668 ], [ ".run", - 182070, + 182062, "abs32", "sec:.run", 92250 ], [ ".run", - 182076, + 182068, "abs32", "sec:.bss", 3465168 ], [ ".run", - 182086, + 182078, "abs32", "sec:.bss", 3485892 ], [ ".run", - 182096, + 182088, "abs32", "sec:.bss", 3485880 ], [ ".run", - 182102, + 182094, "abs32", "sec:.bss", 2593200 ], [ ".run", - 182112, + 182104, "abs32", "sec:.bss", 3485884 ], [ ".run", - 182126, + 182118, "abs32", "sec:.bss", 3485884 ], [ ".run", - 182140, + 182132, "abs32", "sec:.run", 92258 ], [ ".run", - 182160, + 182152, "abs32", "sec:.run", 341085 ], [ ".run", - 182178, + 182170, "abs32", "sec:.bss", 138587648 ], [ ".run", - 182184, + 182176, "abs32", "sec:.run", 341241 ], [ ".run", - 182202, + 182194, "abs32", "sec:.run", - 269088 + 269080 ], [ ".run", - 182242, + 182234, "abs32", "sec:.bss", 3485904 ], [ ".run", - 182286, + 182278, "abs32", "sec:.run", - 269130 + 269122 ], [ ".run", - 182302, + 182294, "abs32", "sec:.bss", 2593200 ], [ ".run", - 182308, + 182300, "abs32", "sec:.bss", 3485884 ], [ ".run", - 182314, + 182306, "abs32", "sec:.bss", 3464100 ], [ ".run", - 182324, + 182316, "abs32", "sec:.bss", 3485880 ], [ ".run", - 182338, + 182330, "abs32", "sec:.bss", 3464096 ], [ ".run", - 182346, + 182338, "abs32", "sec:.run", 92722 ], [ ".run", - 182352, + 182344, "abs32", "sec:.bss", 3485668 ], [ ".run", - 182362, + 182354, "abs32", "sec:.bss", 3485880 ], [ ".run", - 182368, + 182360, "abs32", "sec:.bss", 2593200 ], [ ".run", - 182390, + 182382, "abs32", "sec:.bss", 3465168 ], [ ".run", - 182396, + 182388, "abs32", "sec:.run", - 215230 + 215222 ], [ ".run", - 182402, + 182394, "abs32", "sec:.run", - 274588 + 274580 ], [ ".run", - 182412, + 182404, "abs32", "sec:.run", 92258 ], [ ".run", - 182424, + 182416, "abs32", "sec:.run", - 246768 + 246760 ], [ ".run", - 182454, + 182446, "abs32", "sec:.run", - 269116 + 269108 ], [ ".run", - 182480, + 182472, "abs32", "sec:.run", - 269130 + 269122 ], [ ".run", - 182492, + 182484, "abs32", "sec:.run", 338315 ], [ ".run", - 182562, + 182554, "abs32", "sec:.run", 338315 ], [ ".run", - 182592, + 182584, "abs32", "sec:.bss", 3464096 ], [ ".run", - 182600, + 182592, "abs32", "sec:.bss", 3485668 ], [ ".run", - 182628, + 182620, "abs32", "sec:.bss", 3485884 ], [ ".run", - 182698, + 182690, "abs32", "sec:.bss", 3485884 ], [ ".run", - 182704, + 182696, "abs32", "sec:.bss", 3485724 ], [ ".run", - 182712, + 182704, "abs32", "sec:.bss", 3485852 ], [ ".run", - 182724, + 182716, "abs32", "sec:.bss", 3485888 ], [ ".run", - 182730, + 182722, "abs32", "sec:.bss", 3485698 ], [ ".run", - 182736, + 182728, "abs32", "sec:.bss", 3485702 ], [ ".run", - 182742, + 182734, "abs32", "sec:.bss", 3485706 ], [ ".run", - 182748, + 182740, "abs32", "sec:.bss", 3485710 ], [ ".run", - 182754, + 182746, "abs32", "sec:.bss", 3485714 ], [ ".run", - 182810, + 182802, "abs32", "sec:.bss", 3464100 ], [ ".run", - 182832, + 182824, "abs32", "sec:.bss", 3464100 ], [ ".run", - 182838, + 182830, "abs32", "sec:.bss", 3485864 ], [ ".run", - 182844, + 182836, "abs32", "sec:.bss", 3485904 ], [ ".run", - 182852, + 182844, "abs32", "sec:.bss", 3485988 ], [ ".run", - 182868, + 182860, "abs32", "sec:.run", 39008 ], [ ".run", - 182916, + 182908, "abs32", "sec:.bss", 3464096 ], [ ".run", - 182924, + 182916, "abs32", "sec:.bss", 3485668 ], [ ".run", - 182958, + 182950, "abs32", "sec:.bss", 3485864 ], [ ".run", - 183034, + 183026, "abs32", "sec:.bss", 3465136 ], [ ".run", - 183042, + 183034, "abs32", "sec:.bss", 3465168 ], [ ".run", - 183052, + 183044, "abs32", "sec:.run", 338404 ], [ ".run", - 183064, + 183056, "abs32", "sec:.bss", 3465136 ], [ ".run", - 183084, + 183076, "abs32", "sec:.run", 338408 ], [ ".run", - 183094, + 183086, "abs32", "sec:.bss", 3465164 ], [ ".run", - 183100, + 183092, "abs32", "sec:.bss", 3465141 ], [ ".run", - 183128, + 183120, "abs32", "sec:.run", 338420 ], [ ".run", - 183134, + 183126, "abs32", "sec:.bss", 3465136 ], [ ".run", - 183174, + 183166, "abs32", "sec:.run", 338428 ], [ ".run", - 183194, + 183186, "abs32", "sec:.run", 95478 ], [ ".run", - 183204, + 183196, "abs32", "sec:.run", 338424 ], [ ".run", - 183220, + 183212, "abs32", "sec:.run", 338416 ], [ ".run", - 183240, + 183232, "abs32", "sec:.bss", 3464096 ], [ ".run", - 183248, + 183240, "abs32", "sec:.bss", 3485668 ], [ ".run", - 183258, + 183250, "abs32", "sec:.run", 338436 ], [ ".run", - 183284, + 183276, "abs32", "sec:.run", 338416 ], [ ".run", - 183330, + 183322, "abs32", "sec:.bss", 3485904 ], [ ".run", - 183348, + 183340, "abs32", "sec:.bss", 3485908 ], [ ".run", - 183380, + 183372, "abs32", "sec:.bss", 3485876 ], [ ".run", - 183386, + 183378, "abs32", "sec:.bss", 3485880 ], [ ".run", - 183398, + 183390, "abs32", "sec:.bss", 3485892 ], [ ".run", - 183404, + 183396, "abs32", "sec:.bss", 3464096 ], [ ".run", - 183412, + 183404, "abs32", "sec:.bss", 3485668 ], [ ".run", - 183422, + 183414, "abs32", "sec:.run", 341099 ], [ ".run", - 183436, + 183428, "abs32", "sec:.bss", 3485884 ], [ ".run", - 183450, + 183442, "abs32", "sec:.bss", 3485864 ], [ ".run", - 183456, + 183448, "abs32", "sec:.bss", 3485904 ], [ ".run", - 183486, + 183478, "abs32", "sec:.bss", 3464100 ], [ ".run", - 183492, + 183484, "abs32", "sec:.bss", 2593200 ], [ ".run", - 183498, + 183490, "abs32", "sec:.run", 341228 ], [ ".run", - 183504, + 183496, "abs32", "sec:.bss", 3485868 ], [ ".run", - 183510, + 183502, "abs32", "sec:.bss", 3485872 ], [ ".run", - 183516, + 183508, "abs32", "sec:.bss", 3485876 ], [ ".run", - 183522, + 183514, "abs32", "sec:.run", 38956 ], [ ".run", - 183538, + 183530, "abs32", "sec:.run", 39008 ], [ ".run", - 183552, + 183544, "abs32", "sec:.bss", 3485864 ], [ ".run", - 183570, + 183562, "abs32", "sec:.run", 92258 ], [ ".run", - 183582, + 183574, "abs32", "sec:.run", - 246768 + 246760 ], [ ".run", - 183602, + 183594, "abs32", "sec:.bss", 3485864 ], [ ".run", - 183608, + 183600, "abs32", "sec:.bss", 4276432 ], [ ".run", - 183620, + 183612, "abs32", "sec:.run", - 269116 + 269108 ], [ ".run", - 183650, + 183642, "abs32", "sec:.run", - 269130 + 269122 ], [ ".run", - 183662, + 183654, "abs32", "sec:.bss", 3485916 ], [ ".run", - 183718, + 183710, "abs32", "sec:.bss", 3464096 ], [ ".run", - 183726, + 183718, "abs32", "sec:.bss", 3485668 ], [ ".run", - 183776, + 183768, "abs32", "sec:.bss", 3485864 ], [ ".run", - 183846, + 183838, "abs32", "sec:.bss", 3485912 ], [ ".run", - 183880, + 183872, "abs32", "sec:.run", 338404 ], [ ".run", - 183890, + 183882, "abs32", "sec:.bss", 3485904 ], [ ".run", - 183904, + 183896, "abs32", "sec:.run", 338408 ], [ ".run", - 183938, + 183930, "abs32", "sec:.run", 338420 ], [ ".run", - 184044, + 184036, "abs32", "sec:.bss", 3485884 ], [ ".run", - 184066, + 184058, "abs32", "sec:.bss", 3464100 ], [ ".run", - 184076, + 184068, "abs32", "sec:.bss", 3485864 ], [ ".run", - 184098, + 184090, "abs32", "sec:.bss", 3485864 ], [ ".run", - 184128, + 184120, "abs32", "sec:.bss", 3485904 ], [ ".run", - 184160, + 184152, "abs32", "sec:.bss", 3485904 ], [ ".run", - 184166, + 184158, "abs32", "sec:.bss", 3485904 ], [ ".run", - 184218, + 184210, "abs32", "sec:.bss", 3485876 ], [ ".run", - 184224, + 184216, "abs32", "sec:.bss", 3485880 ], [ ".run", - 184232, + 184224, "abs32", "sec:.bss", 3485892 ], [ ".run", - 184338, + 184330, "abs32", "sec:.bss", 4276432 ], [ ".run", - 184344, + 184336, "abs32", "sec:.bss", 3485912 ], [ ".run", - 184358, + 184350, "abs32", "sec:.bss", 3485860 ], [ ".run", - 184400, + 184392, "abs32", "sec:.bss", 3485864 ], [ ".run", - 184422, + 184414, "abs32", "sec:.run", - 219632 + 219624 ], [ ".run", - 184518, + 184510, "abs32", "sec:.bss", 3485860 ], [ ".run", - 184536, + 184528, "abs32", "sec:.bss", 4276432 ], [ ".run", - 184704, + 184696, "abs32", "sec:.bss", 3464100 ], [ ".run", - 184752, + 184744, "abs32", "sec:.run", - 269130 + 269122 ], [ ".run", - 184770, + 184762, "abs32", "sec:.bss", 138587648 ], [ ".run", - 184776, + 184768, "abs32", "sec:.run", 341113 ], [ ".run", - 184790, + 184782, "abs32", "sec:.run", - 269088 + 269080 ], [ ".run", - 184812, + 184804, "abs32", "sec:.bss", 3485904 ], [ ".run", - 184842, + 184834, "abs32", "sec:.bss", 3464112 ], [ ".run", - 184852, + 184844, "abs32", "sec:.run", - 269102 + 269094 ], [ ".run", - 184874, + 184866, "abs32", "sec:.bss", 3464112 ], [ ".run", - 184894, + 184886, "abs32", "sec:.bss", 3464624 ], [ ".run", - 184918, + 184910, "abs32", "sec:.bss", 3485864 ], [ ".run", - 184928, + 184920, "abs32", "sec:.bss", 3464624 ], [ ".run", - 184952, + 184944, "abs32", "sec:.bss", 3464112 ], [ ".run", - 184962, + 184954, "abs32", "sec:.run", - 269102 + 269094 ], [ ".run", - 184980, + 184972, "abs32", "sec:.bss", 4276432 ], [ ".run", - 184986, + 184978, "abs32", "sec:.bss", 3485864 ], [ ".run", - 185002, + 184994, "abs32", "sec:.bss", 3464112 ], [ ".run", - 185042, + 185034, "abs32", "sec:.run", - 269130 + 269122 ], [ ".run", - 185058, + 185050, "abs32", "sec:.bss", 3464100 ], [ ".run", - 185068, + 185060, "abs32", "sec:.bss", 3485892 ], [ ".run", - 185078, + 185070, "abs32", "sec:.run", 39008 ], [ ".run", - 185544, + 185536, "abs32", "sec:.run", 341243 ], [ ".run", - 185590, + 185582, "abs32", "sec:.run", 341250 ], [ ".run", - 185674, + 185666, "abs32", "sec:.run", 341281 ], [ ".run", - 186028, + 186020, "abs32", "sec:.run", 341277 ], [ ".run", - 186066, + 186058, "abs32", "sec:.run", 341280 ], [ ".run", - 186538, + 186530, "abs32", "sec:.run", 341280 ], [ ".run", - 186814, + 186806, "abs32", "sec:.run", 341250 ], [ ".run", - 186888, + 186880, "abs32", "sec:.run", 341277 ], [ ".run", - 186916, + 186908, "abs32", "sec:.run", 341266 ], [ ".run", - 186954, + 186946, "abs32", "sec:.run", 341276 ], [ ".run", - 187016, + 187008, "abs32", "sec:.run", 341251 ], [ ".run", - 187050, + 187042, "abs32", "sec:.run", 341265 ], [ ".run", - 187082, + 187074, "abs32", "sec:.run", 341265 ], [ ".run", - 187102, + 187094, "abs32", "sec:.run", 341276 ], [ ".run", - 187460, + 187452, "abs32", "sec:.run", 79516 ], [ ".run", - 188434, + 188426, "abs32", "sec:.run", 341417 ], [ ".run", - 189108, + 189100, "abs32", "sec:.run", 341298 ], [ ".run", - 189134, + 189126, "abs32", "sec:.run", 341315 ], [ ".run", - 189144, + 189136, "abs32", "sec:.run", 341316 ], [ ".run", - 189170, + 189162, "abs32", "sec:.run", 341324 ], [ ".run", - 189218, + 189210, "abs32", "sec:.run", 341325 ], [ ".run", - 189252, + 189244, "abs32", "sec:.run", 341330 ], [ ".run", - 189304, + 189296, "abs32", "sec:.run", 341331 ], [ ".run", - 189336, + 189328, "abs32", "sec:.run", 341341 ], [ ".run", - 189388, + 189380, "abs32", "sec:.run", 341342 ], [ ".run", - 189420, + 189412, "abs32", "sec:.run", 341358 ], [ ".run", - 189470, + 189462, "abs32", "sec:.run", 341359 ], [ ".run", - 189504, + 189496, "abs32", "sec:.run", 341368 ], [ ".run", - 189556, + 189548, "abs32", "sec:.run", 341369 ], [ ".run", - 189588, + 189580, "abs32", "sec:.run", 341375 ], [ ".run", - 189640, + 189632, "abs32", "sec:.run", 341376 ], [ ".run", - 189672, + 189664, "abs32", "sec:.run", 341382 ], [ ".run", - 189722, + 189714, "abs32", "sec:.run", 341383 ], [ ".run", - 189756, + 189748, "abs32", "sec:.run", 341392 ], [ ".run", - 189808, + 189800, "abs32", "sec:.run", 341393 ], [ ".run", - 189840, + 189832, "abs32", "sec:.run", 341404 ], [ ".run", - 190060, + 190052, "abs32", "sec:.run", 341405 ], [ ".run", - 190086, + 190078, "abs32", "sec:.run", 341416 ], [ ".run", - 190096, + 190088, "abs32", "sec:.run", 341281 ], [ ".run", - 190346, + 190338, "abs32", "sec:.run", 341393 ], [ ".run", - 190360, + 190352, "abs32", "sec:.run", 341383 ], [ ".run", - 190374, + 190366, "abs32", "sec:.run", 341376 ], [ ".run", - 190388, + 190380, "abs32", "sec:.run", 341369 ], [ ".run", - 190402, + 190394, "abs32", "sec:.run", 341359 ], [ ".run", - 190416, + 190408, "abs32", "sec:.run", 341342 ], [ ".run", - 190430, + 190422, "abs32", "sec:.run", 341331 ], [ ".run", - 190444, + 190436, "abs32", "sec:.run", 341325 ], [ ".run", - 190458, + 190450, "abs32", "sec:.run", 341405 ], [ ".run", - 190664, + 190656, "abs32", "sec:.run", - 246760 + 246752 ], [ ".run", - 190676, + 190668, "abs32", "sec:.run", 309080 ], [ ".run", - 190684, + 190676, "abs32", "sec:.bss", 4363856 ], [ ".run", - 190690, + 190682, "abs32", "sec:.bss", 4363868 ], [ ".run", - 190700, + 190692, "abs32", "sec:.run", 309060 ], [ ".run", - 190716, + 190708, "abs32", "sec:.run", 309092 ], [ ".run", - 190728, + 190720, "abs32", "sec:.run", 309088 ], [ ".run", - 190744, + 190736, "abs32", "sec:.bss", 4309504 ], [ ".run", - 190752, + 190744, "abs32", "sec:.bss", 4363844 ], [ ".run", - 190758, + 190750, "abs32", "sec:.run", 309100 ], [ ".run", - 190764, + 190756, "abs32", "sec:.run", - 187886 + 187878 ], [ ".run", - 190778, + 190770, "abs32", "sec:.run", 309096 ], [ ".run", - 190788, + 190780, "abs32", "sec:.bss", 4276736 ], [ ".run", - 190794, + 190786, "abs32", "sec:.bss", 4314656 ], [ ".run", - 190800, + 190792, "abs32", "sec:.run", 338272 ], [ ".run", - 190808, + 190800, "abs32", "sec:.bss", 4309504 ], [ ".run", - 190814, + 190806, "abs32", "sec:.run", - 188324 + 188316 ], [ ".run", - 190832, + 190824, "abs32", "sec:.run", 309092 ], [ ".run", - 190842, + 190834, "abs32", "sec:.run", 309084 ], [ ".run", - 190858, + 190850, "abs32", "sec:.bss", 4276736 ], [ ".run", - 190864, + 190856, "abs32", "sec:.run", 309092 ], [ ".run", - 190876, + 190868, "abs32", "sec:.run", 309088 ], [ ".run", - 190888, + 190880, "abs32", "sec:.run", - 247136 + 247128 ], [ ".run", - 190908, + 190900, "abs32", "sec:.run", 309100 ], [ ".run", - 190914, + 190906, "abs32", "sec:.run", 309104 ], [ ".run", - 190932, + 190924, "abs32", "sec:.run", 309060 ], [ ".run", - 190950, + 190942, "abs32", "sec:.run", 309100 ], [ ".run", - 190962, + 190954, "abs32", "sec:.bss", 4276736 ], [ ".run", - 190968, + 190960, "abs32", "sec:.run", 338272 ], [ ".run", - 190978, + 190970, "abs32", "sec:.bss", 4309504 ], [ ".run", - 190984, + 190976, "abs32", "sec:.run", - 188324 + 188316 ], [ ".run", - 191002, + 190994, "abs32", "sec:.run", 309100 ], [ ".run", - 191014, + 191006, "abs32", "sec:.run", 309084 ], [ ".run", - 191050, + 191042, "abs32", "sec:.bss", 4363844 ], [ ".run", - 191056, + 191048, "abs32", "sec:.run", - 187600 + 187592 ], [ ".run", - 191068, + 191060, "abs32", "sec:.run", 309060 ], [ ".run", - 191080, + 191072, "abs32", "sec:.bss", 4309516 ], [ ".run", - 191086, + 191078, "abs32", "sec:.bss", 4363844 ], [ ".run", - 191092, + 191084, "abs32", "sec:.run", - 188208 + 188200 ], [ ".run", - 191100, + 191092, "abs32", "sec:.run", 309080 ], [ ".run", - 191106, + 191098, "abs32", "sec:.run", 309100 ], [ ".run", - 191112, + 191104, "abs32", "sec:.bss", 4309516 ], [ ".run", - 191122, + 191114, "abs32", "sec:.bss", 4363856 ], [ ".run", - 191132, + 191124, "abs32", "sec:.run", 309084 ], [ ".run", - 191142, + 191134, "abs32", "sec:.run", 309060 ], [ ".run", - 191156, + 191148, "abs32", "sec:.run", - 246864 + 246856 ], [ ".run", - 191166, + 191158, "abs32", "sec:.run", 309084 ], [ ".run", - 191186, + 191178, "abs32", "sec:.bss", 4363776 ], [ ".run", - 191192, + 191184, "abs32", "sec:.run", 338284 ], [ ".run", - 191200, + 191192, "abs32", "sec:.run", 309104 ], [ ".run", - 191224, + 191216, "abs32", "sec:.bss", 4363841 ], [ ".run", - 191236, + 191228, "abs32", "sec:.bss", 4363844 ], [ ".run", - 191242, + 191234, "abs32", "sec:.bss", 4314656 ], [ ".run", - 191248, + 191240, "abs32", "sec:.bss", 4363844 ], [ ".run", - 191254, + 191246, "abs32", "sec:.run", - 187268 + 187260 ], [ ".run", - 191262, + 191254, "abs32", "sec:.run", 309096 ], [ ".run", - 191270, + 191262, "abs32", "sec:.bss", 4363841 ], [ ".run", - 191280, + 191272, "abs32", "sec:.run", 309060 ], [ ".run", - 191286, + 191278, "abs32", "sec:.run", 309068 ], [ ".run", - 191292, + 191284, "abs32", "sec:.run", 309076 ], [ ".run", - 191298, + 191290, "abs32", "sec:.run", 309084 ], [ ".run", - 191304, + 191296, "abs32", "sec:.run", 309092 ], [ ".run", - 191310, + 191302, "abs32", "sec:.run", 309100 ], [ ".run", - 191316, + 191308, "abs32", "sec:.run", 309104 ], [ ".run", - 191322, + 191314, "abs32", "sec:.run", 309080 ], [ ".run", - 191328, + 191320, "abs32", "sec:.run", - 246718 + 246710 ], [ ".run", - 191334, + 191326, "abs32", "sec:.run", 309104 ], [ ".run", - 191352, + 191344, "abs32", "sec:.run", 309096 ], [ ".run", - 191358, + 191350, "abs32", "sec:.run", - 246760 + 246752 ], [ ".run", - 191386, + 191378, "abs32", "sec:.bss", 4363844 ], [ ".run", - 191392, + 191384, "abs32", "sec:.run", - 187600 + 187592 ], [ ".run", - 191412, + 191404, "abs32", "sec:.run", 309104 ], [ ".run", - 191422, + 191414, "abs32", "sec:.run", - 246760 + 246752 ], [ ".run", - 191452, + 191444, "abs32", "sec:.bss", 4363844 ], [ ".run", - 191458, + 191450, "abs32", "sec:.run", - 187600 + 187592 ], [ ".run", - 191484, + 191476, "abs32", "sec:.run", 309060 ], [ ".run", - 191494, + 191486, "abs32", "sec:.run", 309104 ], [ ".run", - 191506, + 191498, "abs32", "sec:.run", - 246760 + 246752 ], [ ".run", - 191544, + 191536, "abs32", "sec:.bss", 4363844 ], [ ".run", - 191550, + 191542, "abs32", "sec:.run", - 187600 + 187592 ], [ ".run", - 191564, + 191556, "abs32", "sec:.run", 309060 ], [ ".run", - 191576, + 191568, "abs32", "sec:.run", 309104 ], [ ".run", - 191584, + 191576, "abs32", "sec:.run", 309100 ], [ ".run", - 191598, + 191590, "abs32", "sec:.run", 309060 ], [ ".run", - 191604, + 191596, "abs32", "sec:.run", - 246768 + 246760 ], [ ".run", - 191628, + 191620, "abs32", "sec:.run", 309068 ], [ ".run", - 191636, + 191628, "abs32", "sec:.run", 309068 ], [ ".run", - 191654, + 191646, "abs32", "sec:.run", 309076 ], [ ".run", - 191660, + 191652, "abs32", "sec:.run", 309072 ], [ ".run", - 191672, + 191664, "abs32", "sec:.run", 309068 ], [ ".run", - 191680, + 191672, "abs32", "sec:.run", 309068 ], [ ".run", - 191688, + 191680, "abs32", "sec:.run", 309064 ], [ ".run", - 191694, + 191686, "abs32", "sec:.run", 309104 ], [ ".run", - 191708, + 191700, "abs32", "sec:.run", - 248128 + 248120 ], [ ".run", - 191720, + 191712, "abs32", "sec:.run", - 246760 + 246752 ], [ ".run", - 191752, + 191744, "abs32", "sec:.bss", 4363844 ], [ ".run", - 191758, + 191750, "abs32", "sec:.run", - 187600 + 187592 ], [ ".run", - 191768, + 191760, "abs32", "sec:.run", 309064 ], [ ".run", - 191780, + 191772, "abs32", "sec:.run", - 248128 + 248120 ], [ ".run", - 191790, + 191782, "abs32", "sec:.run", 309104 ], [ ".run", - 191798, + 191790, "abs32", "sec:.run", 309076 ], [ ".run", - 191808, + 191800, "abs32", "sec:.run", 309100 ], [ ".run", - 191816, + 191808, "abs32", "sec:.run", - 246768 + 246760 ], [ ".run", - 191838, + 191830, "abs32", "sec:.run", 309100 ], [ ".run", - 191856, + 191848, "abs32", "sec:.run", 309104 ], [ ".run", - 191862, + 191854, "abs32", "sec:.run", 309076 ], [ ".run", - 191872, + 191864, "abs32", "sec:.run", 309064 ], [ ".run", - 191888, + 191880, "abs32", "sec:.run", - 248128 + 248120 ], [ ".run", - 191896, + 191888, "abs32", "sec:.run", 309072 ], [ ".run", - 191902, + 191894, "abs32", "sec:.run", 309076 ], [ ".run", - 191908, + 191900, "abs32", "sec:.run", 309104 ], [ ".run", - 191934, + 191926, "abs32", "sec:.run", 309100 ], [ ".run", - 191946, + 191938, "abs32", "sec:.run", 309060 ], [ ".run", - 191956, + 191948, "abs32", "sec:.run", 309064 ], [ ".run", - 191962, + 191954, "abs32", "sec:.run", 309072 ], [ ".run", - 191976, + 191968, "abs32", "sec:.run", - 246760 + 246752 ], [ ".run", - 192008, + 192000, "abs32", "sec:.bss", 4363844 ], [ ".run", - 192014, + 192006, "abs32", "sec:.run", - 187600 + 187592 ], [ ".run", - 192024, + 192016, "abs32", "sec:.run", 309064 ], [ ".run", - 192034, + 192026, "abs32", "sec:.run", 309072 ], [ ".run", - 192048, + 192040, "abs32", "sec:.run", - 246760 + 246752 ], [ ".run", - 192080, + 192072, "abs32", "sec:.bss", 4363844 ], [ ".run", - 192086, + 192078, "abs32", "sec:.run", - 187600 + 187592 ], [ ".run", - 192096, + 192088, "abs32", "sec:.run", 309064 ], [ ".run", - 192112, + 192104, "abs32", "sec:.run", 309100 ], [ ".run", - 192134, + 192126, "abs32", "sec:.run", 309068 ], [ ".run", - 192142, + 192134, "abs32", "sec:.run", 309068 ], [ ".run", - 192150, + 192142, "abs32", "sec:.run", 309104 ], [ ".run", - 192164, + 192156, "abs32", "sec:.run", - 246760 + 246752 ], [ ".run", - 192196, + 192188, "abs32", "sec:.bss", 4363844 ], [ ".run", - 192202, + 192194, "abs32", "sec:.run", - 187600 + 187592 ], [ ".run", - 192226, + 192218, "abs32", "sec:.run", 309100 ], [ ".run", - 192256, + 192248, "abs32", "sec:.run", 309100 ], [ ".run", - 192266, + 192258, "abs32", "sec:.run", 309076 ], [ ".run", - 192276, + 192268, "abs32", "sec:.run", 309064 ], [ ".run", - 192282, + 192274, "abs32", "sec:.run", 309104 ], [ ".run", - 192292, + 192284, "abs32", "sec:.run", - 246760 + 246752 ], [ ".run", - 192326, + 192318, "abs32", "sec:.bss", 4363844 ], [ ".run", - 192332, + 192324, "abs32", "sec:.run", - 187600 + 187592 ], [ ".run", - 192344, + 192336, "abs32", "sec:.run", 309060 ], [ ".run", - 192354, + 192346, "abs32", "sec:.bss", 4319904 ], [ ".run", - 192376, + 192368, "abs32", "sec:.bss", 4319908 ], [ ".run", - 192382, + 192374, "abs32", "sec:.bss", 4319896 ], [ ".run", - 192388, + 192380, "abs32", "sec:.bss", 4319860 ], [ ".run", - 192398, + 192390, "abs32", "sec:.bss", 4319864 ], [ ".run", - 192434, + 192426, "abs32", "sec:.bss", 4319852 ], [ ".run", - 192440, + 192432, "abs32", "sec:.bss", 4319903 ], [ ".run", - 192450, + 192442, "abs32", "sec:.bss", 4319864 ], [ ".run", - 192484, + 192476, "abs32", "sec:.bss", 4319852 ], [ ".run", - 192490, + 192482, "abs32", "sec:.bss", 4319903 ], [ ".run", - 192500, + 192492, "abs32", "sec:.bss", 4319864 ], [ ".run", - 192526, + 192518, "abs32", "sec:.run", - 202644 + 202636 ], [ ".run", - 192532, + 192524, "abs32", "sec:.run", 339486 ], [ ".run", - 192654, + 192646, "abs32", "sec:.run", - 202680 + 202672 ], [ ".run", - 192696, + 192688, "abs32", "sec:.bss", 4319904 ], [ ".run", - 192704, + 192696, "abs32", "sec:.bss", 4319908 ], [ ".run", - 192728, + 192720, "abs32", "sec:.bss", 4319900 ], [ ".run", - 192740, + 192732, "abs32", "sec:.bss", 4319900 ], [ ".run", - 192750, + 192742, "abs32", "sec:.bss", 4319900 ], [ ".run", - 192772, + 192764, "abs32", "sec:.bss", 4319900 ], [ ".run", - 192806, + 192798, "abs32", "sec:.bss", 4319904 ], [ ".run", - 192814, + 192806, "abs32", "sec:.bss", 4319900 ], [ ".run", - 192832, + 192824, "abs32", "sec:.bss", 4319900 ], [ ".run", - 192850, + 192842, "abs32", "sec:.bss", 4319904 ], [ ".run", - 192864, + 192856, "abs32", "sec:.bss", 4319900 ], [ ".run", - 192896, + 192888, "abs32", "sec:.bss", 4319900 ], [ ".run", - 192926, + 192918, "abs32", "sec:.bss", 4319864 ], [ ".run", - 192964, + 192956, "abs32", "sec:.bss", 4319864 ], [ ".run", - 193012, + 193004, "abs32", "sec:.bss", 4319852 ], [ ".run", - 193032, + 193024, "abs32", "sec:.bss", 4319852 ], [ ".run", - 193186, + 193178, "abs32", "sec:.bss", 4319848 ], [ ".run", - 193192, + 193184, "abs32", "sec:.bss", 4319860 ], [ ".run", - 193202, + 193194, "abs32", "sec:.bss", 4319896 ], [ ".run", - 193216, + 193208, "abs32", "sec:.bss", 4319908 ], [ ".run", - 193222, + 193214, "abs32", "sec:.bss", 4319904 ], [ ".run", - 193228, + 193220, "abs32", "sec:.bss", 4319836 ], [ ".run", - 193296, + 193288, "abs32", "sec:.bss", 4319904 ], [ ".run", - 193306, + 193298, "abs32", "sec:.bss", 4319908 ], [ ".run", - 193320, + 193312, "abs32", "sec:.bss", 4319900 ], [ ".run", - 193346, + 193338, "abs32", "sec:.bss", 4319912 ], [ ".run", - 193384, + 193376, "abs32", "sec:.bss", 4319900 ], [ ".run", - 193392, + 193384, "abs32", "sec:.bss", 4319912 ], [ ".run", - 193426, + 193418, "abs32", "sec:.bss", 4319840 ], [ ".run", - 193468, + 193460, "abs32", "sec:.bss", 4319912 ], [ ".run", - 193540, + 193532, "abs32", "sec:.bss", 4319912 ], [ ".run", - 193548, + 193540, "abs32", "sec:.bss", 4319836 ], [ ".run", - 193622, + 193614, "abs32", "sec:.bss", 4319904 ], [ ".run", - 193634, + 193626, "abs32", "sec:.bss", 4319904 ], [ ".run", - 193640, + 193632, "abs32", "sec:.bss", 4319908 ], [ ".run", - 193662, + 193654, "abs32", "sec:.bss", 4319844 ], [ ".run", - 193722, + 193714, "abs32", "sec:.bss", 4319904 ], [ ".run", - 193730, + 193722, "abs32", "sec:.bss", 4319908 ], [ ".run", - 193752, + 193744, "abs32", "sec:.bss", 4319900 ], [ ".run", - 193788, + 193780, "abs32", "sec:.bss", 4319908 ], [ ".run", - 193812, + 193804, "abs32", "sec:.bss", 4319900 ], [ ".run", - 193844, + 193836, "abs32", "sec:.bss", 4319844 ], [ ".run", - 193878, + 193870, "abs32", "sec:.bss", 4319908 ], [ ".run", - 193902, + 193894, "abs32", "sec:.bss", 4319900 ], [ ".run", - 193924, + 193916, "abs32", "sec:.bss", 4319912 ], [ ".run", - 193930, + 193922, "abs32", "sec:.bss", 4319836 ], [ ".run", - 194010, + 194002, "abs32", "sec:.bss", 4319900 ], [ ".run", - 194036, + 194028, "abs32", "sec:.bss", 4319844 ], [ ".run", - 194046, + 194038, "abs32", "sec:.bss", 4319912 ], [ ".run", - 194052, + 194044, "abs32", "sec:.bss", 4319836 ], [ ".run", - 194106, + 194098, "abs32", "sec:.bss", 4319912 ], [ ".run", - 194112, + 194104, "abs32", "sec:.bss", 4319836 ], [ ".run", - 194144, + 194136, "abs32", "sec:.bss", 4319912 ], [ ".run", - 194186, + 194178, "abs32", "sec:.bss", 4319912 ], [ ".run", - 194194, + 194186, "abs32", "sec:.bss", 4319836 ], [ ".run", - 194252, + 194244, "abs32", "sec:.bss", 4319836 ], [ ".run", - 194282, + 194274, "abs32", "sec:.bss", 4319836 ], [ ".run", - 194324, + 194316, "abs32", "sec:.bss", 4319836 ], [ ".run", - 194370, + 194362, "abs32", "sec:.bss", 4319836 ], [ ".run", - 194410, + 194402, "abs32", "sec:.bss", 4319836 ], [ ".run", - 194440, + 194432, "abs32", "sec:.bss", 4319836 ], [ ".run", - 194448, + 194440, "abs32", "sec:.bss", 4319836 ], [ ".run", - 194456, + 194448, "abs32", "sec:.bss", 4319912 ], [ ".run", - 194502, + 194494, "abs32", "sec:.bss", 4319912 ], [ ".run", - 194510, + 194502, "abs32", "sec:.bss", 4319836 ], [ ".run", - 194532, + 194524, "abs32", "sec:.bss", 4319912 ], [ ".run", - 194608, + 194600, "abs32", "sec:.bss", 4319904 ], [ ".run", - 194616, + 194608, "abs32", "sec:.bss", 4319904 ], [ ".run", - 194622, + 194614, "abs32", "sec:.bss", 4319908 ], [ ".run", - 194638, + 194630, "abs32", "sec:.bss", 4319808 ], [ ".run", - 194656, + 194648, "abs32", "sec:.bss", 4319836 ], [ ".run", - 194678, + 194670, "abs32", "sec:.bss", 4319820 ], [ ".run", - 194732, + 194724, "abs32", "sec:.run", 341431 ], [ ".run", - 194760, + 194752, "abs32", "sec:.bss", 4319808 ], [ ".run", - 195040, + 195032, "abs32", "sec:.bss", 4319904 ], [ ".run", - 195102, + 195094, "abs32", "sec:.run", 341442 ], [ ".run", - 195320, + 195312, "abs32", "sec:.bss", 4319848 ], [ ".run", - 195346, + 195338, "abs32", "sec:.bss", 4319808 ], [ ".run", - 195368, + 195360, "abs32", "sec:.bss", 4319908 ], [ ".run", - 195376, + 195368, "abs32", "sec:.bss", 4319900 ], [ ".run", - 195394, + 195386, "abs32", "sec:.bss", 4319904 ], [ ".run", - 195550, + 195542, "abs32", "sec:.bss", 4319808 ], [ ".run", - 195572, + 195564, "abs32", "sec:.bss", 4319904 ], [ ".run", - 195668, + 195660, "abs32", "sec:.bss", 4319908 ], [ ".run", - 196080, + 196072, "abs32", "sec:.run", 341426 ], [ ".run", - 196104, + 196096, "abs32", "sec:.bss", 4319808 ], [ ".run", - 196126, + 196118, "abs32", "sec:.bss", 4319904 ], [ ".run", - 196310, + 196302, "abs32", "sec:.run", 341714 ], [ ".run", - 196360, + 196352, "abs32", "sec:.run", 309284 ], [ ".run", - 196494, + 196486, "abs32", "sec:.run", 309284 ], [ ".run", - 196630, + 196622, "abs32", "sec:.bss", 4336328 ], [ ".run", - 196664, + 196656, "abs32", "sec:.bss", 4336328 ], [ ".run", - 196710, + 196702, "abs32", "sec:.run", - 160646 + 160638 ], [ ".run", - 196772, + 196764, "abs32", "sec:.run", - 160740 + 160732 ], [ ".run", - 196786, + 196778, "abs32", "sec:.bss", 4336424 ], [ ".run", - 196794, + 196786, "abs32", "sec:.run", - 202476 + 202468 ], [ ".run", - 196844, + 196836, "abs32", "sec:.bss", 2593200 ], [ ".run", - 196852, + 196844, "abs32", "sec:.bss", 4347080 ], [ ".run", - 196862, + 196854, "abs32", "sec:.run", 55014 ], [ ".run", - 197070, + 197062, "abs32", "sec:.bss", 4336328 ], [ ".run", - 197092, + 197084, "abs32", "sec:.bss", 4336590 ], [ ".run", - 197154, + 197146, "abs32", "sec:.run", - 262700 + 262692 ], [ ".run", - 197180, + 197172, "abs32", "sec:.run", - 262970 + 262962 ], [ ".run", - 197198, + 197190, "abs32", "sec:.run", - 263106 + 263098 ], [ ".run", - 197234, + 197226, "abs32", "sec:.run", 341742 ], [ ".run", - 197258, + 197250, "abs32", "sec:.bss", 4336574 ], [ ".run", - 197298, + 197290, "abs32", "sec:.run", 309292 ], [ ".run", - 197350, + 197342, "abs32", "sec:.run", 341750 ], [ ".run", - 197378, + 197370, "abs32", "sec:.bss", 4336574 ], [ ".run", - 197398, + 197390, "abs32", "sec:.bss", 4336574 ], [ ".run", - 197478, + 197470, "abs32", "sec:.run", - 262804 + 262796 ], [ ".run", - 197508, + 197500, "abs32", "sec:.bss", 4336590 ], [ ".run", - 197534, + 197526, "abs32", "sec:.bss", 4336324 ], [ ".run", - 197550, + 197542, "abs32", "sec:.run", - 263762 + 263754 ], [ ".run", - 197562, + 197554, "abs32", "sec:.bss", 4336428 ], [ ".run", - 197584, + 197576, "abs32", "sec:.bss", 4336574 ], [ ".run", - 197620, + 197612, "abs32", "sec:.run", 309292 ], [ ".run", - 197656, + 197648, "abs32", "sec:.bss", 4336478 ], [ ".run", - 197684, + 197676, "abs32", "sec:.bss", 4336574 ], [ ".run", - 197704, + 197696, "abs32", "sec:.bss", 4336574 ], [ ".run", - 197752, + 197744, "abs32", "sec:.run", 350360 ], [ ".run", - 197782, + 197774, "abs32", "sec:.bss", 4336478 ], [ ".run", - 197788, + 197780, "abs32", "sec:.bss", 4336482 ], [ ".run", - 197794, + 197786, "abs32", "sec:.bss", 4336486 ], [ ".run", - 197800, + 197792, "abs32", "sec:.bss", 4336490 ], [ ".run", - 197810, + 197802, "abs32", "sec:.bss", 4336438 ], [ ".run", - 197820, + 197812, "abs32", "sec:.bss", 4336542 ], [ ".run", - 197830, + 197822, "abs32", "sec:.bss", 4336546 ], [ ".run", - 197840, + 197832, "abs32", "sec:.bss", 4336550 ], [ ".run", - 197850, + 197842, "abs32", "sec:.bss", 4336554 ], [ ".run", - 197862, + 197854, "abs32", "sec:.bss", 4336590 ], [ ".run", - 197876, + 197868, "abs32", "sec:.bss", 4336614 ], [ ".run", - 197896, + 197888, "abs32", "sec:.run", - 263272 + 263264 ], [ ".run", - 197932, + 197924, "abs32", "sec:.run", - 263570 + 263562 ], [ ".run", - 197950, + 197942, "abs32", "sec:.bss", 4336428 ], [ ".run", - 197998, + 197990, "abs32", "sec:.bss", 4336332 ], [ ".run", - 198074, + 198066, "abs32", "sec:.run", - 263570 + 263562 ], [ ".run", - 198124, + 198116, "abs32", "sec:.bss", 4336316 ], [ ".run", - 198142, + 198134, "abs32", "sec:.run", - 263762 + 263754 ], [ ".run", - 198162, + 198154, "abs32", "sec:.bss", 4336428 ], [ ".run", - 198184, + 198176, "abs32", "sec:.bss", 4336332 ], [ ".run", - 198252, + 198244, "abs32", "sec:.bss", 4336332 ], [ ".run", - 198278, + 198270, "abs32", "sec:.bss", 4336320 ], [ ".run", - 198300, + 198292, "abs32", "sec:.bss", 4336332 ], [ ".run", - 198340, + 198332, "abs32", "sec:.run", 350360 ], [ ".run", - 198374, + 198366, "abs32", "sec:.bss", 4336486 ], [ ".run", - 198384, + 198376, "abs32", "sec:.bss", 4336356 ], [ ".run", - 198398, + 198390, "abs32", "sec:.run", 341758 ], [ ".run", - 198490, + 198482, "abs32", "sec:.bss", 4336438 ], [ ".run", - 198540, + 198532, "abs32", "sec:.run", 350360 ], [ ".run", - 198594, + 198586, "abs32", "sec:.bss", 4336328 ], [ ".run", - 198612, + 198604, "abs32", "sec:.bss", 4336614 ], [ ".run", - 198626, + 198618, "abs32", "sec:.bss", 4336478 ], [ ".run", - 198632, + 198624, "abs32", "sec:.run", 309108 ], [ ".run", - 198646, + 198638, "abs32", "sec:.run", 341750 ], [ ".run", - 198746, + 198738, "abs32", "sec:.bss", 4336304 ], [ ".run", - 198814, + 198806, "abs32", "sec:.bss", 4336328 ], [ ".run", - 198820, + 198812, "abs32", "sec:.bss", 4336438 ], [ ".run", - 198834, + 198826, "abs32", "sec:.bss", 4336614 ], [ ".run", - 198844, + 198836, "abs32", "sec:.bss", 4336478 ], [ ".run", - 198850, + 198842, "abs32", "sec:.run", 309108 ], [ ".run", - 198880, + 198872, "abs32", "sec:.run", 341750 ], [ ".run", - 198942, + 198934, "abs32", "sec:.bss", 4336428 ], [ ".run", - 198968, + 198960, "abs32", "sec:.run", - 263818 + 263810 ], [ ".run", - 199082, + 199074, "abs32", "sec:.run", - 202476 + 202468 ], [ ".run", - 199144, + 199136, "abs32", "sec:.bss", 4336304 ], [ ".run", - 199190, + 199182, "abs32", "sec:.bss", 4336304 ], [ ".run", - 199212, + 199204, "abs32", "sec:.bss", 4336304 ], [ ".run", - 199330, + 199322, "abs32", "sec:.bss", 4336304 ], [ ".run", - 199504, + 199496, "abs32", "sec:.bss", 4336312 ], [ ".run", - 199512, + 199504, "abs32", "sec:.bss", 4336304 ], [ ".run", - 199608, + 199600, "abs32", "sec:.bss", 4336304 ], [ ".run", - 199688, + 199680, "abs32", "sec:.bss", 4336304 ], [ ".run", - 199732, + 199724, "abs32", "sec:.bss", 4336304 ], [ ".run", - 199764, + 199756, "abs32", "sec:.bss", 4336304 ], [ ".run", - 199818, + 199810, "abs32", "sec:.run", 341750 ], [ ".run", - 199830, + 199822, "abs32", "sec:.bss", 4336424 ], [ ".run", - 199916, + 199908, "abs32", "sec:.run", - 160646 + 160638 ], [ ".run", - 199988, + 199980, "abs32", "sec:.run", - 202476 + 202468 ], [ ".run", - 200044, + 200036, "abs32", "sec:.run", - 202476 + 202468 ], [ ".run", - 200100, + 200092, "abs32", "sec:.run", - 160918 + 160910 ], [ ".run", - 200124, + 200116, "abs32", "sec:.bss", 3454628 ], [ ".run", - 200148, + 200140, "abs32", "sec:.bss", 3454628 ], [ ".run", - 200180, + 200172, "abs32", "sec:.bss", 4336304 ], [ ".run", - 200286, + 200278, "abs32", "sec:.bss", 4336304 ], [ ".run", - 200356, + 200348, "abs32", "sec:.bss", 2593200 ], [ ".run", - 200364, + 200356, "abs32", "sec:.bss", 4347080 ], [ ".run", - 200376, + 200368, "abs32", "sec:.run", 55014 ], [ ".run", - 200406, + 200398, "abs32", "sec:.run", - 202476 + 202468 ], [ ".run", - 200612, + 200604, "abs32", "sec:.bss", 4336304 ], [ ".run", - 200644, + 200636, "abs32", "sec:.bss", 4336304 ], [ ".run", - 200664, + 200656, "abs32", "sec:.bss", 4336312 ], [ ".run", - 200672, + 200664, "abs32", "sec:.bss", 4336304 ], [ ".run", - 200696, + 200688, "abs32", "sec:.bss", 4336304 ], [ ".run", - 200720, + 200712, "abs32", "sec:.bss", 4336304 ], [ ".run", - 200750, + 200742, "abs32", "sec:.bss", 4336304 ], [ ".run", - 200788, + 200780, "abs32", "sec:.run", 350360 ], [ ".run", - 200810, + 200802, "abs32", "sec:.run", 341750 ], [ ".run", - 200818, + 200810, "abs32", "sec:.bss", 4336328 ], [ ".run", - 200834, + 200826, "abs32", "sec:.run", 341758 ], [ ".run", - 200842, + 200834, "abs32", "sec:.bss", 4336332 ], [ ".run", - 200888, + 200880, "abs32", "sec:.bss", 4336478 ], [ ".run", - 201076, + 201068, "abs32", "sec:.bss", 4336428 ], [ ".run", - 201264, + 201256, "abs32", "sec:.bss", 4336300 ], [ ".run", - 201300, + 201292, "abs32", "sec:.run", - 160918 + 160910 ], [ ".run", - 201316, + 201308, "abs32", "sec:.bss", 4336300 ], [ ".run", - 201384, + 201376, "abs32", "sec:.run", - 263818 + 263810 ], [ ".run", - 201472, + 201464, "abs32", "sec:.bss", 4336614 ], [ ".run", - 201478, + 201470, "abs32", "sec:.bss", 4336332 ], [ ".run", - 201484, + 201476, "abs32", "sec:.run", 341758 ], [ ".run", - 201490, + 201482, "abs32", "sec:.bss", 4336428 ], [ ".run", - 201496, + 201488, "abs32", "sec:.run", - 202476 + 202468 ], [ ".run", - 201786, + 201778, "abs32", "sec:.run", - 160646 + 160638 ], [ ".run", - 201806, + 201798, "abs32", "sec:.run", - 160740 + 160732 ], [ ".run", - 201900, + 201892, "abs32", "sec:.bss", 4336438 ], [ ".run", - 201906, + 201898, "abs32", "sec:.bss", 4336332 ], [ ".run", - 201912, + 201904, "abs32", "sec:.bss", 4336614 ], [ ".run", - 201918, + 201910, "abs32", "sec:.run", 341758 ], [ ".run", - 201924, + 201916, "abs32", "sec:.bss", 4336428 ], [ ".run", - 201930, + 201922, "abs32", "sec:.run", - 202476 + 202468 ], [ ".run", - 201936, + 201928, "abs32", "sec:.bss", 4336550 ], [ ".run", - 201942, + 201934, "abs32", "sec:.bss", 4336486 ], [ ".run", - 202674, + 202666, "abs32", "sec:.bss", 4336666 ], [ ".run", - 202708, + 202700, "abs32", "sec:.bss", 4336666 ], [ ".run", - 202714, + 202706, "abs32", "sec:.bss", 4336650 ], [ ".run", - 202720, + 202712, "abs32", "sec:.bss", 4336646 ], [ ".run", - 202726, + 202718, "abs32", "sec:.bss", 4336654 ], [ ".run", - 202734, + 202726, "abs32", "sec:.bss", 4336654 ], [ ".run", - 202806, + 202798, "abs32", "sec:.run", 350392 ], [ ".run", - 202824, + 202816, "abs32", "sec:.run", 350524 ], [ ".run", - 202876, + 202868, "abs32", "sec:.run", 350524 ], [ ".run", - 203036, + 203028, "abs32", "sec:.run", 350524 ], [ ".run", - 203076, + 203068, "abs32", "sec:.run", 350524 ], [ ".run", - 203096, + 203088, "abs32", "sec:.run", 350392 ], [ ".run", - 203216, + 203208, "abs32", "sec:.run", 92250 ], [ ".run", - 203226, + 203218, "abs32", "sec:.bss", 4336662 ], [ ".run", - 203250, + 203242, "abs32", "sec:.run", 95264 ], [ ".run", - 203308, + 203300, "abs32", "sec:.bss", 4336662 ], [ ".run", - 203314, + 203306, "abs32", "sec:.bss", 4336658 ], [ ".run", - 203322, + 203314, "abs32", "sec:.bss", 4336658 ], [ ".run", - 203330, + 203322, "abs32", "sec:.bss", 2593204 ], [ ".run", - 203340, + 203332, "abs32", "sec:.run", 95290 ], [ ".run", - 203360, + 203352, "abs32", "sec:.bss", 2593204 ], [ ".run", - 203386, + 203378, "abs32", "sec:.bss", 4336644 ], [ ".run", - 203402, + 203394, "abs32", "sec:.bss", 2593200 ], [ ".run", - 203420, + 203412, "abs32", "sec:.run", 95290 ], [ ".run", - 203436, + 203428, "abs32", "sec:.bss", 2593200 ], [ ".run", - 203448, + 203440, "abs32", "sec:.bss", 4336644 ], [ ".run", - 203486, + 203478, "abs32", "sec:.run", 95290 ], [ ".run", - 203552, + 203544, "abs32", "sec:.run", 95290 ], [ ".run", - 203620, + 203612, "abs32", "sec:.run", 95290 ], [ ".run", - 204536, + 204528, "abs32", "sec:.run", - 207152 + 207144 ], [ ".run", - 205254, + 205246, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", - 205260, + 205252, "abs32", "sec:.run", - 202742 + 202734 ], [ ".run", - 205276, + 205268, "abs32", "sec:.run", - 202742 + 202734 ], [ ".run", - 205288, + 205280, "abs32", "sec:.bss", 4336684 ], [ ".run", - 205294, + 205286, "abs32", "sec:.run", - 214762 + 214754 ], [ ".run", - 205310, + 205302, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", - 205334, + 205326, "abs32", "sec:.bss", 4339312 ], [ ".run", - 205342, + 205334, "abs32", "sec:.bss", 4339308 ], [ ".run", - 205436, + 205428, "abs32", "sec:.run", 69140 ], [ ".run", - 205446, + 205438, "abs32", "sec:.run", - 181018 + 181010 ], [ ".run", - 205938, + 205930, "abs32", "sec:.bss", 4339280 ], [ ".run", - 205954, + 205946, "abs32", "sec:.bss", 4336672 ], [ ".run", - 205960, + 205952, "abs32", "sec:.bss", 4336676 ], [ ".run", - 205966, + 205958, "abs32", "sec:.bss", 4336680 ], [ ".run", - 205974, + 205966, "abs32", "sec:.bss", 4336680 ], [ ".run", - 205998, + 205990, "abs32", "sec:.bss", 4339304 ], [ ".run", - 206232, + 206224, "abs32", "sec:.bss", 4339280 ], [ ".run", - 206446, + 206438, "abs32", "sec:.bss", 4339280 ], [ ".run", - 206492, + 206484, "abs32", "sec:.bss", 4339280 ], [ ".run", - 206522, + 206514, "abs32", "sec:.bss", 4339284 ], [ ".run", - 206530, + 206522, "abs32", "sec:.run", 108528 ], [ ".run", - 206542, + 206534, "abs32", "sec:.bss", 4339300 ], [ ".run", - 206554, + 206546, "abs32", "sec:.run", 95264 ], [ ".run", - 206596, + 206588, "abs32", "sec:.bss", 4339300 ], [ ".run", - 206616, + 206608, "abs32", "sec:.run", 95264 ], [ ".run", - 206664, + 206656, "abs32", "sec:.bss", 4336716 ], [ ".run", - 206680, + 206672, "abs32", "sec:.bss", 4336732 ], [ ".run", - 206686, + 206678, "abs32", "sec:.bss", 4336728 ], [ ".run", - 206696, + 206688, "abs32", "sec:.bss", 4336736 ], [ ".run", - 206710, + 206702, "abs32", "sec:.bss", 4336724 ], [ ".run", - 206798, + 206790, "abs32", "sec:.run", - 202742 + 202734 ], [ ".run", - 206840, + 206832, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", - 206864, + 206856, "abs32", "sec:.bss", 4336684 ], [ ".run", - 206870, + 206862, "abs32", "sec:.run", - 214352 + 214344 ], [ ".run", - 206888, + 206880, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", - 206906, + 206898, "abs32", "sec:.run", - 202742 + 202734 ], [ ".run", - 206948, + 206940, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", - 206972, + 206964, "abs32", "sec:.bss", 4336684 ], [ ".run", - 206978, + 206970, "abs32", "sec:.run", - 214296 + 214288 ], [ ".run", - 206996, + 206988, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", - 207014, + 207006, "abs32", "sec:.run", - 202742 + 202734 ], [ ".run", - 207058, + 207050, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", - 207082, + 207074, "abs32", "sec:.bss", 4336684 ], [ ".run", - 207088, + 207080, "abs32", "sec:.run", - 213998 + 213990 ], [ ".run", - 207106, + 207098, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", - 207122, + 207114, "abs32", "sec:.bss", 4336688 ], [ ".run", - 207132, + 207124, "abs32", "sec:.run", 350548 ], [ ".run", - 207138, + 207130, "abs32", "sec:.bss", 4336684 ], [ ".run", - 207144, + 207136, "abs32", "sec:.run", - 212764 + 212756 ], [ ".run", - 207164, + 207156, "abs32", "sec:.run", - 202644 + 202636 ], [ ".run", - 207176, + 207168, "abs32", "sec:.run", - 210188 + 210180 ], [ ".run", - 207198, + 207190, "abs32", "sec:.bss", 4336720 ], [ ".run", - 207220, + 207212, "abs32", "sec:.run", - 202680 + 202672 ], [ ".run", - 207226, + 207218, "abs32", "sec:.bss", 4336724 ], [ ".run", - 207232, + 207224, "abs32", "sec:.bss", 4336732 ], [ ".run", - 207254, + 207246, "abs32", "sec:.bss", 4336716 ], [ ".run", - 207260, + 207252, "abs32", "sec:.bss", 4336684 ], [ ".run", - 207266, + 207258, "abs32", "sec:.run", - 212896 + 212888 ], [ ".run", - 207288, + 207280, "abs32", "sec:.run", - 202680 + 202672 ], [ ".run", - 207302, + 207294, "abs32", "sec:.run", - 202644 + 202636 ], [ ".run", - 207312, + 207304, "abs32", "sec:.bss", 4336688 ], [ ".run", - 207320, + 207312, "abs32", "sec:.bss", 4339308 ], [ ".run", - 207332, + 207324, "abs32", "sec:.bss", 4339308 ], [ ".run", - 207338, + 207330, "abs32", "sec:.bss", 4339292 ], [ ".run", - 207344, + 207336, "abs32", "sec:.bss", 4339296 ], [ ".run", - 207350, + 207342, "abs32", "sec:.bss", 4339288 ], [ ".run", - 207356, + 207348, "abs32", "sec:.run", 69122 ], [ ".run", - 207380, + 207372, "abs32", "sec:.bss", 4336684 ], [ ".run", - 207386, + 207378, "abs32", "sec:.run", - 212852 + 212844 ], [ ".run", - 207406, + 207398, "abs32", "sec:.run", - 202680 + 202672 ], [ ".run", - 207412, + 207404, "abs32", "sec:.bss", 4336684 ], [ ".run", - 207418, + 207410, "abs32", "sec:.run", - 212852 + 212844 ], [ ".run", - 207428, + 207420, "abs32", "sec:.run", 350548 ], [ ".run", - 207434, + 207426, "abs32", "sec:.bss", 4336684 ], [ ".run", - 207440, + 207432, "abs32", "sec:.run", - 212764 + 212756 ], [ ".run", - 207448, + 207440, "abs32", "sec:.bss", 4339308 ], [ ".run", - 207464, + 207456, "abs32", "sec:.bss", 4339288 ], [ ".run", - 207470, + 207462, "abs32", "sec:.bss", 4339296 ], [ ".run", - 207484, + 207476, "abs32", "sec:.run", - 202680 + 202672 ], [ ".run", - 207506, + 207498, "abs32", "sec:.run", - 202644 + 202636 ], [ ".run", - 207514, + 207506, "abs32", "sec:.bss", 4339308 ], [ ".run", - 207522, + 207514, "abs32", "sec:.bss", 4339296 ], [ ".run", - 207534, + 207526, "abs32", "sec:.bss", 4339288 ], [ ".run", - 207554, + 207546, "abs32", "sec:.run", - 202680 + 202672 ], [ ".run", - 207760, + 207752, "abs32", "sec:.bss", 4339292 ], [ ".run", - 207774, + 207766, "abs32", "sec:.run", - 202680 + 202672 ], [ ".run", - 207794, + 207786, "abs32", "sec:.run", - 202644 + 202636 ], [ ".run", - 207802, + 207794, "abs32", "sec:.bss", 4336688 ], [ ".run", - 207810, + 207802, "abs32", "sec:.bss", 4339296 ], [ ".run", - 207818, + 207810, "abs32", "sec:.bss", 4339292 ], [ ".run", - 207830, + 207822, "abs32", "sec:.bss", 4339312 ], [ ".run", - 207836, + 207828, "abs32", "sec:.bss", 4339292 ], [ ".run", - 207842, + 207834, "abs32", "sec:.bss", 4339296 ], [ ".run", - 207848, + 207840, "abs32", "sec:.bss", 4339288 ], [ ".run", - 207854, + 207846, "abs32", "sec:.bss", 4339308 ], [ ".run", - 207860, + 207852, "abs32", "sec:.run", - 202680 + 202672 ], [ ".run", - 207870, + 207862, "abs32", "sec:.run", 350548 ], [ ".run", - 207876, + 207868, "abs32", "sec:.bss", 4336684 ], [ ".run", - 207886, + 207878, "abs32", "sec:.run", - 212764 + 212756 ], [ ".run", - 207898, + 207890, "abs32", "sec:.bss", 4336684 ], [ ".run", - 207908, + 207900, "abs32", "sec:.run", - 212852 + 212844 ], [ ".run", - 207916, + 207908, "abs32", "sec:.bss", 4339292 ], [ ".run", - 207922, + 207914, "abs32", "sec:.bss", 4339296 ], [ ".run", - 207932, + 207924, "abs32", "sec:.bss", 4339312 ], [ ".run", - 207938, + 207930, "abs32", "sec:.bss", 4339288 ], [ ".run", - 207946, + 207938, "abs32", "sec:.bss", 4339308 ], [ ".run", - 207952, + 207944, "abs32", "sec:.run", - 202680 + 202672 ], [ ".run", - 207964, + 207956, "abs32", "sec:.bss", 4339304 ], [ ".run", - 207976, + 207968, "abs32", "sec:.run", - 202742 + 202734 ], [ ".run", - 207982, + 207974, "abs32", "sec:.bss", 4339304 ], [ ".run", - 207988, + 207980, "abs32", "sec:.bss", 4336804 ], [ ".run", - 208004, + 207996, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", - 208016, + 208008, "abs32", "sec:.bss", 4336808 ], [ ".run", - 208054, + 208046, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", - 208072, + 208064, "abs32", "sec:.run", - 202742 + 202734 ], [ ".run", - 208080, + 208072, "abs32", "sec:.bss", 4339344 ], [ ".run", - 208088, + 208080, "abs32", "sec:.bss", 4339340 ], [ ".run", - 208096, + 208088, "abs32", "sec:.run", - 208064 + 208056 ], [ ".run", - 208102, + 208094, "abs32", "sec:.bss", 4339316 ], [ ".run", - 208112, + 208104, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", - 208128, + 208120, "abs32", "sec:.bss", 4339920 ], [ ".run", - 208134, + 208126, "abs32", "sec:.bss", 4339336 ], [ ".run", - 208148, + 208140, "abs32", "sec:.bss", 4339328 ], [ ".run", - 208156, + 208148, "abs32", "sec:.bss", 4339332 ], [ ".run", - 208162, + 208154, "abs32", "sec:.bss", 4339924 ], [ ".run", - 208174, + 208166, "abs32", "sec:.bss", 4339932 ], [ ".run", - 208184, + 208176, "abs32", "sec:.bss", 4339868 ], [ ".run", - 208190, + 208182, "abs32", "sec:.bss", 4339340 ], [ ".run", - 208200, + 208192, "abs32", "sec:.bss", 4339872 ], [ ".run", - 208220, + 208212, "abs32", "sec:.bss", 4340068 ], [ ".run", - 208242, + 208234, "abs32", "sec:.run", - 206504 + 206496 ], [ ".run", - 208264, + 208256, "abs32", "sec:.bss", 4339912 ], [ ".run", - 208280, + 208272, "abs32", "sec:.bss", 4339908 ], [ ".run", - 208300, + 208292, "abs32", "sec:.bss", 4339936 ], [ ".run", - 208308, + 208300, "abs32", "sec:.bss", 4340068 ], [ ".run", - 208320, + 208312, "abs32", "sec:.bss", 2593200 ], [ ".run", - 208326, + 208318, "abs32", "sec:.bss", 4339904 ], [ ".run", - 208332, + 208324, "abs32", "sec:.bss", 4339900 ], [ ".run", - 208338, + 208330, "abs32", "sec:.bss", 4339896 ], [ ".run", - 208368, + 208360, "abs32", "sec:.bss", 4339892 ], [ ".run", - 208376, + 208368, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", - 208412, + 208404, "abs32", "sec:.bss", 4339892 ], [ ".run", - 208436, + 208428, "abs32", "sec:.run", - 208716 + 208708 ], [ ".run", - 208454, + 208446, "abs32", "sec:.bss", 4339888 ], [ ".run", - 208462, + 208454, "abs32", "sec:.bss", 4336704 ], [ ".run", - 208470, + 208462, "abs32", "sec:.bss", 4336696 ], [ ".run", - 208480, + 208472, "abs32", "sec:.bss", 4336684 ], [ ".run", - 208486, + 208478, "abs32", "sec:.run", - 214762 + 214754 ], [ ".run", - 208492, + 208484, "abs32", "sec:.bss", 4339888 ], [ ".run", - 208498, + 208490, "abs32", "sec:.bss", 4339880 ], [ ".run", - 208504, + 208496, "abs32", "sec:.bss", 4339884 ], [ ".run", - 208520, + 208512, "abs32", "sec:.bss", 4339880 ], [ ".run", - 208538, + 208530, "abs32", "sec:.bss", 4336684 ], [ ".run", - 208544, + 208536, "abs32", "sec:.run", - 214762 + 214754 ], [ ".run", - 208550, + 208542, "abs32", "sec:.bss", 4339888 ], [ ".run", - 208556, + 208548, "abs32", "sec:.bss", 4339880 ], [ ".run", - 208562, + 208554, "abs32", "sec:.bss", 4339884 ], [ ".run", - 208588, + 208580, "abs32", "sec:.bss", 4339888 ], [ ".run", - 208594, + 208586, "abs32", "sec:.bss", 4336684 ], [ ".run", - 208600, + 208592, "abs32", "sec:.run", - 214410 + 214402 ], [ ".run", - 208616, + 208608, "abs32", "sec:.bss", 4339888 ], [ ".run", - 208624, + 208616, "abs32", "sec:.bss", 4339880 ], [ ".run", - 208630, + 208622, "abs32", "sec:.bss", 4339884 ], [ ".run", - 208654, + 208646, "abs32", "sec:.run", 350588 ], [ ".run", - 208672, + 208664, "abs32", "sec:.bss", 4339880 ], [ ".run", - 208684, + 208676, "abs32", "sec:.run", 350576 ], [ ".run", - 208700, + 208692, "abs32", "sec:.bss", 4339880 ], [ ".run", - 208712, + 208704, "abs32", "sec:.run", - 207960 + 207952 ], [ ".run", - 208722, + 208714, "abs32", "sec:.bss", 4339884 ], [ ".run", - 208776, + 208768, "abs32", "sec:.run", - 202742 + 202734 ], [ ".run", - 208786, + 208778, "abs32", "sec:.run", - 207120 + 207112 ], [ ".run", - 208792, + 208784, "abs32", "sec:.bss", 4339884 ], [ ".run", - 208842, + 208834, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", - 208984, + 208976, "abs32", "sec:.bss", 4339344 ], [ ".run", - 209000, + 208992, "abs32", "sec:.bss", 4339884 ], [ ".run", - 209006, + 208998, "abs32", "sec:.bss", 4340064 ], [ ".run", - 209024, + 209016, "abs32", "sec:.bss", 4339920 ], [ ".run", - 209052, + 209044, "abs32", "sec:.run", 339418 ], [ ".run", - 209060, + 209052, "abs32", "sec:.bss", 4340068 ], [ ".run", - 209066, + 209058, "abs32", "sec:.run", 108612 ], [ ".run", - 209100, + 209092, "abs32", "sec:.run", - 206504 + 206496 ], [ ".run", - 209162, + 209154, "abs32", "sec:.run", - 202644 + 202636 ], [ ".run", - 209188, + 209180, "abs32", "sec:.run", - 203668 + 203660 ], [ ".run", - 209198, + 209190, "abs32", "sec:.run", - 202680 + 202672 ], [ ".run", - 209266, + 209258, "abs32", "sec:.bss", 4339400 ], [ ".run", - 209272, + 209264, "abs32", "sec:.bss", 4339348 ], [ ".run", - 209288, + 209280, "abs32", "sec:.bss", 4339452 ], [ ".run", - 209366, + 209358, "abs32", "sec:.bss", 4339452 ], [ ".run", - 209402, + 209394, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", - 209438, + 209430, "abs32", "sec:.bss", 4339324 ], [ ".run", - 209446, + 209438, "abs32", "sec:.bss", 4340196 ], [ ".run", - 209468, + 209460, "abs32", "sec:.bss", 4339332 ], [ ".run", - 209474, + 209466, "abs32", "sec:.bss", 4339384 ], [ ".run", - 209506, + 209498, "abs32", "sec:.run", - 208064 + 208056 ], [ ".run", - 209528, + 209520, "abs32", "sec:.bss", 4339928 ], [ ".run", - 209534, + 209526, "abs32", "sec:.bss", 4339932 ], [ ".run", - 209540, + 209532, "abs32", "sec:.bss", 4339924 ], [ ".run", - 209546, + 209538, "abs32", "sec:.bss", 4339920 ], [ ".run", - 209552, + 209544, "abs32", "sec:.bss", 4339916 ], [ ".run", - 209566, + 209558, "abs32", "sec:.bss", 4339912 ], [ ".run", - 209572, + 209564, "abs32", "sec:.bss", 4339908 ], [ ".run", - 209594, + 209586, "abs32", "sec:.bss", 4339872 ], [ ".run", - 209604, + 209596, "abs32", "sec:.bss", 4339868 ], [ ".run", - 209610, + 209602, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", - 209618, + 209610, "abs32", "sec:.bss", 4339872 ], [ ".run", - 209634, + 209626, "abs32", "sec:.bss", 4339348 ], [ ".run", - 209652, + 209644, "abs32", "sec:.bss", 4339400 ], [ ".run", - 209690, + 209682, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", - 209730, + 209722, "abs32", "sec:.bss", 4339348 ], [ ".run", - 209742, + 209734, "abs32", "sec:.bss", 4339400 ], [ ".run", - 209758, + 209750, "abs32", "sec:.bss", 4339344 ], [ ".run", - 209772, + 209764, "abs32", "sec:.bss", 4339324 ], [ ".run", - 209782, + 209774, "abs32", "sec:.bss", 4339344 ], [ ".run", - 209788, + 209780, "abs32", "sec:.bss", 4339340 ], [ ".run", - 209794, + 209786, "abs32", "sec:.bss", 4339336 ], [ ".run", - 209800, + 209792, "abs32", "sec:.bss", 4339320 ], [ ".run", - 209806, + 209798, "abs32", "sec:.bss", 4339316 ], [ ".run", - 209872, + 209864, "abs32", "sec:.bss", 4339916 ], [ ".run", - 209886, + 209878, "abs32", "sec:.bss", 4339928 ], [ ".run", - 209892, + 209884, "abs32", "sec:.bss", 4339932 ], [ ".run", - 209906, + 209898, "abs32", "sec:.bss", 4339920 ], [ ".run", - 209912, + 209904, "abs32", "sec:.bss", 4339328 ], [ ".run", - 209920, + 209912, "abs32", "sec:.bss", 4339336 ], [ ".run", - 209926, + 209918, "abs32", "sec:.bss", 4339332 ], [ ".run", - 209932, + 209924, "abs32", "sec:.bss", 4339316 ], [ ".run", - 209940, + 209932, "abs32", "sec:.bss", 4339344 ], [ ".run", - 209948, + 209940, "abs32", "sec:.bss", 4339336 ], [ ".run", - 209954, + 209946, "abs32", "sec:.bss", 4339920 ], [ ".run", - 209972, + 209964, "abs32", "sec:.bss", 4339324 ], [ ".run", - 209988, + 209980, "abs32", "sec:.bss", 4339348 ], [ ".run", - 210002, + 209994, "abs32", "sec:.bss", 4339400 ], [ ".run", - 210016, + 210008, "abs32", "sec:.bss", 4339332 ], [ ".run", - 210036, + 210028, "abs32", "sec:.bss", 4339328 ], [ ".run", - 210048, + 210040, "abs32", "sec:.bss", 4339316 ], [ ".run", - 210058, + 210050, "abs32", "sec:.bss", 4339340 ], [ ".run", - 210068, + 210060, "abs32", "sec:.run", - 208064 + 208056 ], [ ".run", - 210076, + 210068, "abs32", "sec:.bss", 4339868 ], [ ".run", - 210086, + 210078, "abs32", "sec:.bss", 4339932 ], [ ".run", - 210094, + 210086, "abs32", "sec:.bss", 4339924 ], [ ".run", - 210110, + 210102, "abs32", "sec:.bss", 4339320 ], [ ".run", - 210116, + 210108, "abs32", "sec:.bss", 4339344 ], [ ".run", - 210124, + 210116, "abs32", "sec:.bss", 4339324 ], [ ".run", - 210140, + 210132, "abs32", "sec:.bss", 4340064 ], [ ".run", - 210146, + 210138, "abs32", "sec:.bss", 4339920 ], [ ".run", - 210152, + 210144, "abs32", "sec:.bss", 4339320 ], [ ".run", - 210158, + 210150, "abs32", "sec:.bss", 4339324 ], [ ".run", - 210164, + 210156, "abs32", "sec:.bss", 4339336 ], [ ".run", - 210170, + 210162, "abs32", "sec:.bss", 4339340 ], [ ".run", - 210176, + 210168, "abs32", "sec:.bss", 4339344 ], [ ".run", - 210182, + 210174, "abs32", "sec:.bss", 4339316 ], [ ".run", - 210190, + 210182, "abs32", "sec:.bss", 4339932 ], [ ".run", - 210208, + 210200, "abs32", "sec:.bss", 4340072 ], [ ".run", - 210242, + 210234, "abs32", "sec:.bss", 4340064 ], [ ".run", - 210480, + 210472, "abs32", "sec:.bss", 4340064 ], [ ".run", - 210500, + 210492, "abs32", "sec:.bss", 4339944 ], [ ".run", - 210506, + 210498, "abs32", "sec:.bss", 4339948 ], [ ".run", - 210522, + 210514, "abs32", "sec:.bss", 4339952 ], [ ".run", - 210536, + 210528, "abs32", "sec:.bss", 4339956 ], [ ".run", - 210554, + 210546, "abs32", "sec:.bss", 4339940 ], [ ".run", - 210582, + 210574, "abs32", "sec:.bss", 4340064 ], [ ".run", - 210594, + 210586, "abs32", "sec:.bss", 4339884 ], [ ".run", - 210606, + 210598, "abs32", "sec:.bss", 4340064 ], [ ".run", - 210630, + 210622, "abs32", "sec:.bss", 4340064 ], [ ".run", - 210636, + 210628, "abs32", "sec:.bss", 4339880 ], [ ".run", - 210644, + 210636, "abs32", "sec:.bss", 4339884 ], [ ".run", - 210674, + 210666, "abs32", "sec:.bss", 4339880 ], [ ".run", - 210702, + 210694, "abs32", "sec:.bss", 4339876 ], [ ".run", - 210718, + 210710, "abs32", "sec:.run", - 207120 + 207112 ], [ ".run", - 210724, + 210716, "abs32", "sec:.bss", 4339884 ], [ ".run", - 210736, + 210728, "abs32", "sec:.bss", 4339880 ], [ ".run", - 210744, + 210736, "abs32", "sec:.bss", 4339884 ], [ ".run", - 210762, + 210754, "abs32", "sec:.bss", 4340064 ], [ ".run", - 210770, + 210762, "abs32", "sec:.bss", 4339344 ], [ ".run", - 210778, + 210770, "abs32", "sec:.bss", 4339884 ], [ ".run", - 210798, + 210790, "abs32", "sec:.bss", 4336704 ], [ ".run", - 210814, + 210806, "abs32", "sec:.run", - 202742 + 202734 ], [ ".run", - 210824, + 210816, "abs32", "sec:.bss", 4339900 ], [ ".run", - 210856, + 210848, "abs32", "sec:.bss", 4340064 ], [ ".run", - 210866, + 210858, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", - 210874, + 210866, "abs32", "sec:.run", 350613 ], [ ".run", - 210896, + 210888, "abs32", "sec:.bss", 4336704 ], [ ".run", - 210904, + 210896, "abs32", "sec:.bss", 4339884 ], [ ".run", - 210912, + 210904, "abs32", "sec:.bss", 4339344 ], [ ".run", - 210918, + 210910, "abs32", "sec:.bss", 4339876 ], [ ".run", - 210934, + 210926, "abs32", "sec:.bss", 4336696 ], [ ".run", - 210942, + 210934, "abs32", "sec:.bss", 4339888 ], [ ".run", - 210948, + 210940, "abs32", "sec:.bss", 4339884 ], [ ".run", - 210954, + 210946, "abs32", "sec:.bss", 4336712 ], [ ".run", - 210964, + 210956, "abs32", "sec:.bss", 4336840 ], [ ".run", - 210978, + 210970, "abs32", "sec:.run", 350632 ], [ ".run", - 211002, + 210994, "abs32", "sec:.bss", 4339896 ], [ ".run", - 211028, + 211020, "abs32", "sec:.bss", 4339892 ], [ ".run", - 211044, + 211036, "abs32", "sec:.bss", 4339936 ], [ ".run", - 211050, + 211042, "abs32", "sec:.bss", 4336684 ], [ ".run", - 211056, + 211048, "abs32", "sec:.run", - 213136 + 213128 ], [ ".run", - 211072, + 211064, "abs32", "sec:.bss", 4340064 ], [ ".run", - 211082, + 211074, "abs32", "sec:.bss", 4339944 ], [ ".run", - 211088, + 211080, "abs32", "sec:.bss", 4339948 ], [ ".run", - 211102, + 211094, "abs32", "sec:.bss", 4339952 ], [ ".run", - 211114, + 211106, "abs32", "sec:.bss", 4339956 ], [ ".run", - 211122, + 211114, "abs32", "sec:.bss", 4339936 ], [ ".run", - 211136, + 211128, "abs32", "sec:.run", - 206504 + 206496 ], [ ".run", - 211160, + 211152, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", - 211168, + 211160, "abs32", "sec:.run", 350613 ], [ ".run", - 211182, + 211174, "abs32", "sec:.bss", 4340028 ], [ ".run", - 211188, + 211180, "abs32", "sec:.run", 350524 ], [ ".run", - 211204, + 211196, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", - 211246, + 211238, "abs32", "sec:.run", 350648 ], [ ".run", - 211266, + 211258, "abs32", "sec:.bss", 2593200 ], [ ".run", - 211272, + 211264, "abs32", "sec:.bss", 4339904 ], [ ".run", - 211290, + 211282, "abs32", "sec:.bss", 4340064 ], [ ".run", - 211296, + 211288, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", - 211308, + 211300, "abs32", "sec:.run", 350603 ], [ ".run", - 211332, + 211324, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", - 214914, + 214906, "abs32", "sec:.bss", 4340600 ], [ ".run", - 214968, + 214960, "abs32", "sec:.bss", 4340604 ], [ ".run", - 215046, + 215038, "abs32", "sec:.bss", 4340604 ], [ ".run", - 215070, + 215062, "abs32", "sec:.bss", 4340604 ], [ ".run", - 215082, + 215074, "abs32", "sec:.bss", 4340600 ], [ ".run", - 215176, + 215168, "abs32", "sec:.bss", 4340604 ], [ ".run", - 215200, + 215192, "abs32", "sec:.bss", 4340604 ], [ ".run", - 215212, + 215204, "abs32", "sec:.bss", 4340600 ], [ ".run", - 215240, + 215232, "abs32", "sec:.run", - 202644 + 202636 ], [ ".run", - 215246, + 215238, "abs32", "sec:.run", - 202680 + 202672 ], [ ".run", - 215254, + 215246, "abs32", "sec:.run", 339482 ], [ ".run", - 215268, + 215260, "abs32", "sec:.bss", 4340600 ], [ ".run", - 215296, + 215288, "abs32", "sec:.bss", 4340604 ], [ ".run", - 215322, + 215314, "abs32", "sym:arena_base", 0 ], [ ".run", - 215394, + 215386, "abs32", "sec:.bss", 4340604 ], [ ".run", - 215400, + 215392, "abs32", "sec:.bss", 4340600 ], [ ".run", - 215410, + 215402, "abs32", "sec:.bss", 4340600 ], [ ".run", - 215416, + 215408, "abs32", "sec:.bss", 4340604 ], [ ".run", - 215422, + 215414, "abs32", "sec:.bss", 4340596 ], [ ".run", - 215570, + 215562, "abs32", "sec:.bss", 4340604 ], [ ".run", - 215584, + 215576, "abs32", "sec:.bss", 4340600 ], [ ".run", - 215590, + 215582, "abs32", "sec:.bss", 4340604 ], [ ".run", - 215596, + 215588, "abs32", "sec:.bss", 4340596 ], [ ".run", - 215640, + 215632, "abs32", "sec:.bss", 4340604 ], [ ".run", - 215646, + 215638, "abs32", "sec:.bss", 4340600 ], [ ".run", - 215656, + 215648, "abs32", "sec:.bss", 4340596 ], [ ".run", - 215662, + 215654, "abs32", "sec:.bss", 4340604 ], [ ".run", - 215678, + 215670, "abs32", "sym:arena_base", 0 ], [ ".run", - 215702, + 215694, "abs32", "sec:.bss", 4340600 ], [ ".run", - 215708, + 215700, "abs32", "sec:.bss", 4340604 ], [ ".run", - 215714, + 215706, "abs32", "sec:.bss", 4340596 ], [ ".run", - 215726, + 215718, "abs32", "sec:.bss", 4340596 ], [ ".run", - 215734, + 215726, "abs32", "sec:.bss", 4340604 ], [ ".run", - 215746, + 215738, "abs32", "sec:.bss", 4340596 ], [ ".run", - 215756, + 215748, "abs32", "sym:arena_base", 0 ], [ ".run", - 216932, + 216924, "abs32", "sec:.bss", 4346998 ], [ ".run", - 216944, + 216936, "abs32", "sec:.bss", 4347002 ], [ ".run", - 216966, + 216958, "abs32", "sec:.bss", 4347006 ], [ ".run", - 216978, + 216970, "abs32", "sec:.bss", 4347010 ], [ ".run", - 216990, + 216982, "abs32", "sec:.bss", 4347014 ], [ ".run", - 217002, + 216994, "abs32", "sec:.bss", 4347018 ], [ ".run", - 217014, + 217006, "abs32", "sec:.bss", 4347022 ], [ ".run", - 217026, + 217018, "abs32", "sec:.bss", 4347026 ], [ ".run", - 217042, + 217034, "abs32", "sec:.bss", 4347030 ], [ ".run", - 217090, + 217082, "abs32", "sec:.bss", 4347046 ], [ ".run", - 217106, + 217098, "abs32", "sec:.bss", 4347062 ], [ ".run", - 217208, + 217200, "abs32", "sec:.bss", 4340656 ], [ ".run", - 217246, + 217238, "abs32", "sec:.bss", 4340660 ], [ ".run", - 217292, + 217284, "abs32", "sec:.bss", 4340668 ], [ ".run", - 217304, + 217296, "abs32", "sec:.run", 148392 ], [ ".run", - 217310, + 217302, "abs32", "sec:.bss", 4340660 ], [ ".run", - 217318, + 217310, "abs32", "sec:.bss", 4340616 ], [ ".run", - 217424, + 217416, "abs32", "sec:.bss", 4340672 ], [ ".run", - 217446, + 217438, "abs32", "sec:.bss", 4340672 ], [ ".run", - 217452, + 217444, "abs32", "sec:.bss", 4340668 ], [ ".run", - 217458, + 217450, "abs32", "sec:.bss", 4340624 ], [ ".run", - 217464, + 217456, "abs32", "sec:.run", 156326 ], [ ".run", - 217498, + 217490, "abs32", "sec:.bss", 4346998 ], [ ".run", - 217516, + 217508, "abs32", "sec:.bss", 4340660 ], [ ".run", - 217538, + 217530, "abs32", "sec:.bss", 4340612 ], [ ".run", - 217546, + 217538, "abs32", "sec:.bss", 4362680 ], [ ".run", - 217570, + 217562, "abs32", "sec:.bss", 4340668 ], [ ".run", - 217576, + 217568, "abs32", "sec:.bss", 4340664 ], [ ".run", - 217592, + 217584, "abs32", "sec:.bss", 4340636 ], [ ".run", - 217638, + 217630, "abs32", "sec:.bss", 4340636 ], [ ".run", - 217654, + 217646, "abs32", "sec:.bss", 4347018 ], [ ".run", - 217696, + 217688, "abs32", "sec:.bss", 4340632 ], [ ".run", - 217706, + 217698, "abs32", "sec:.bss", 4340640 ], [ ".run", - 217720, + 217712, "abs32", "sec:.bss", 4340616 ], [ ".run", - 217726, + 217718, "abs32", "sec:.bss", 4340632 ], [ ".run", - 217732, + 217724, "abs32", "sec:.bss", 4340628 ], [ ".run", - 217738, + 217730, "abs32", "sec:.bss", 4340636 ], [ ".run", - 217744, + 217736, "abs32", "sec:.bss", 4340608 ], [ ".run", - 217786, + 217778, "abs32", "sec:.bss", 4347014 ], [ ".run", - 217812, + 217804, "abs32", "sec:.bss", 4340668 ], [ ".run", - 217824, + 217816, "abs32", "sec:.run", 148392 ], [ ".run", - 217832, + 217824, "abs32", "sec:.bss", 4340660 ], [ ".run", - 217838, + 217830, "abs32", "sec:.bss", 4340616 ], [ ".run", - 217872, + 217864, "abs32", "sec:.run", - 233890 + 233882 ], [ ".run", - 217886, + 217878, "abs32", "sec:.bss", 4340612 ], [ ".run", - 217914, + 217906, "abs32", "sec:.bss", 4340676 ], [ ".run", - 217924, + 217916, "abs32", "sec:.bss", 4346998 ], [ ".run", - 217942, + 217934, "abs32", "sec:.bss", 4340676 ], [ ".run", - 217956, + 217948, "abs32", "sec:.bss", 4346998 ], [ ".run", - 217970, + 217962, "abs32", "sec:.bss", 4340628 ], [ ".run", - 217986, + 217978, "abs32", "sec:.bss", 4340640 ], [ ".run", - 218000, + 217992, "abs32", "sec:.bss", 4340632 ], [ ".run", - 218006, + 217998, "abs32", "sec:.bss", 4340628 ], [ ".run", - 218012, + 218004, "abs32", "sec:.bss", 4340608 ], [ ".run", - 218020, + 218012, "abs32", "sec:.bss", 4340636 ], [ ".run", - 218030, + 218022, "abs32", "sec:.bss", 4340676 ], [ ".run", - 218056, + 218048, "abs32", "sec:.bss", 4340668 ], [ ".run", - 218068, + 218060, "abs32", "sec:.run", 148392 ], [ ".run", - 218076, + 218068, "abs32", "sec:.bss", 4340660 ], [ ".run", - 218082, + 218074, "abs32", "sec:.bss", 4340616 ], [ ".run", - 218104, + 218096, "abs32", "sec:.bss", 4340668 ], [ ".run", - 218114, + 218106, "abs32", "sec:.run", 148392 ], [ ".run", - 218122, + 218114, "abs32", "sec:.bss", 4340612 ], [ ".run", - 218144, + 218136, "abs32", "sec:.bss", 4362680 ], [ ".run", - 218160, + 218152, "abs32", "sec:.bss", 4362680 ], [ ".run", - 218172, + 218164, "abs32", "sec:.bss", 4362680 ], [ ".run", - 218286, + 218278, "abs32", "sec:.bss", 4340664 ], [ ".run", - 218300, + 218292, "abs32", "sec:.run", 148706 ], [ ".run", - 218306, + 218298, "abs32", "sec:.bss", 4340664 ], [ ".run", - 218312, + 218304, "abs32", "sec:.bss", 4340620 ], [ ".run", - 218330, + 218322, "abs32", "sec:.bss", 4340660 ], [ ".run", - 218342, + 218334, "abs32", "sec:.bss", 4347018 ], [ ".run", - 218350, + 218342, "abs32", "sec:.bss", 4347022 ], [ ".run", - 218364, + 218356, "abs32", "sec:.bss", 4347026 ], [ ".run", - 218378, + 218370, "abs32", "sec:.bss", 4340668 ], [ ".run", - 218414, + 218406, "abs32", "sec:.run", 148392 ], [ ".run", - 218420, + 218412, "abs32", "sec:.bss", 4340660 ], [ ".run", - 218426, + 218418, "abs32", "sec:.bss", 4340616 ], [ ".run", - 218444, + 218436, "abs32", "sec:.bss", 4347014 ], [ ".run", - 218472, + 218464, "abs32", "sec:.run", 156644 ], [ ".run", - 218496, + 218488, "abs32", "sec:.bss", 4340668 ], [ ".run", - 218512, + 218504, "abs32", "sec:.run", 148392 ], [ ".run", - 218520, + 218512, "abs32", "sec:.bss", 4340660 ], [ ".run", - 218526, + 218518, "abs32", "sec:.bss", 4340616 ], [ ".run", - 218536, + 218528, "abs32", "sec:.bss", 4340612 ], [ ".run", - 218560, + 218552, "abs32", "sec:.bss", 4362680 ], [ ".run", - 218576, + 218568, "abs32", "sec:.bss", 4340636 ], [ ".run", - 218586, + 218578, "abs32", "sec:.bss", 4340632 ], [ ".run", - 218606, + 218598, "abs32", "sec:.bss", 4340628 ], [ ".run", - 218618, + 218610, "abs32", "sec:.bss", 4340636 ], [ ".run", - 218624, + 218616, "abs32", "sec:.bss", 4340616 ], [ ".run", - 218636, + 218628, "abs32", "sec:.bss", 4347026 ], [ ".run", - 218646, + 218638, "abs32", "sec:.bss", 4347018 ], [ ".run", - 218652, + 218644, "abs32", "sec:.bss", 4340656 ], [ ".run", - 218666, + 218658, "abs32", "sec:.bss", 4340656 ], [ ".run", - 218672, + 218664, "abs32", "sec:.bss", 4340660 ], [ ".run", - 218690, + 218682, "abs32", "sec:.bss", 4362680 ], [ ".run", - 218700, + 218692, "abs32", "sec:.run", - 160402 + 160394 ], [ ".run", - 218712, + 218704, "abs32", "sec:.bss", 4340636 ], [ ".run", - 218770, + 218762, "abs32", "sec:.bss", 4340640 ], [ ".run", - 218792, + 218784, "abs32", "sec:.bss", 4340636 ], [ ".run", - 218834, + 218826, "abs32", "sec:.bss", 4340640 ], [ ".run", - 218858, + 218850, "abs32", "sec:.bss", 4340636 ], [ ".run", - 218884, + 218876, "abs32", "sec:.bss", 4362680 ], [ ".run", - 219084, + 219076, "abs32", "sec:.run", 350664 ], [ ".run", - 219356, + 219348, "abs32", "sec:.run", 350920 ], [ ".run", - 219544, + 219536, "abs32", "sec:.run", 350920 ], [ ".run", - 221452, + 221444, "abs32", "sec:.run", 353600 ], [ ".run", - 221492, + 221484, "abs32", "sec:.run", 353606 ], [ ".run", - 221554, + 221546, "abs32", "sec:.run", 353613 ], [ ".run", - 221738, + 221730, "abs32", "sec:.bss", 4347646 ], [ ".run", - 221794, + 221786, "abs32", "sec:.bss", 4347646 ], [ ".run", - 221852, + 221844, "abs32", "sec:.bss", 4347646 ], [ ".run", - 221908, + 221900, "abs32", "sec:.bss", 4347646 ], [ ".run", - 221984, + 221976, "abs32", "sec:.bss", 4347646 ], [ ".run", - 222130, + 222122, "abs32", "sec:.run", 353683 ], [ ".run", - 222140, + 222132, "abs32", "sec:.run", 353626 ], [ ".run", - 222150, + 222142, "abs32", "sec:.run", 353660 ], [ ".run", - 222160, + 222152, "abs32", "sec:.run", 353709 ], [ ".run", - 222170, + 222162, "abs32", "sec:.run", 353646 ], [ ".run", - 222180, + 222172, "abs32", "sec:.run", 353776 ], [ ".run", - 222190, + 222182, "abs32", "sec:.run", 353691 ], [ ".run", - 222200, + 222192, "abs32", "sec:.run", 353810 ], [ ".run", - 222216, + 222208, "abs32", "sec:.run", 353726 ], [ ".run", - 222226, + 222218, "abs32", "sec:.run", 353735 ], [ ".run", - 222236, + 222228, "abs32", "sec:.run", 353756 ], [ ".run", - 222246, + 222238, "abs32", "sec:.run", 353791 ], [ ".run", - 222254, + 222246, "abs32", "sec:.bss", 4347730 ], [ ".run", - 222268, + 222260, "abs32", "sec:.bss", 4347734 ], [ ".run", - 222286, + 222278, "abs32", "sec:.bss", 4347738 ], [ ".run", - 222294, + 222286, "abs32", "sec:.run", - 202742 + 202734 ], [ ".run", - 222300, + 222292, "abs32", "sec:.run", - 180472 + 180464 ], [ ".run", - 222306, + 222298, "abs32", "sec:.bss", 4347338 ], [ ".run", - 222316, + 222308, "abs32", "sec:.bss", 4362044 ], [ ".run", - 222322, + 222314, "abs32", "sec:.bss", 4347718 ], [ ".run", - 222342, + 222334, "abs32", "sec:.bss", 4347306 ], [ ".run", - 222358, + 222350, "abs32", "sec:.bss", 4347309 ], [ ".run", - 222382, + 222374, "abs32", "sec:.bss", 4347738 ], [ ".run", - 222446, + 222438, "abs32", "sec:.bss", 4347306 ], [ ".run", - 222464, + 222456, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", - 222474, + 222466, "abs32", "sec:.bss", 4347711 ], [ ".run", - 222492, + 222484, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", - 222504, + 222496, "abs32", "sec:.run", 109514 ], [ ".run", - 222518, + 222510, "abs32", "sec:.bss", 4347306 ], [ ".run", - 222556, + 222548, "abs32", "sec:.bss", 4347334 ], [ ".run", - 222570, + 222562, "abs32", "sec:.bss", 4347738 ], [ ".run", - 222642, + 222634, "abs32", "sec:.bss", 4347306 ], [ ".run", - 222678, + 222670, "abs32", "sec:.bss", 4347742 ], [ ".run", - 222684, + 222676, "abs32", "sec:.bss", 4347738 ], [ ".run", - 222766, + 222758, "abs32", "sec:.bss", 4347284 ], [ ".run", - 222776, + 222768, "abs32", "sec:.bss", 4347760 ], [ ".run", - 222790, + 222782, "abs32", "sec:.bss", 4347288 ], [ ".run", - 222800, + 222792, "abs32", "sec:.bss", 4347292 ], [ ".run", - 222808, + 222800, "abs32", "sec:.bss", 4347296 ], [ ".run", - 222818, + 222810, "abs32", "sec:.bss", 4347300 ], [ ".run", - 222826, + 222818, "abs32", "sec:.bss", 4347304 ], [ ".run", - 222844, + 222836, "abs32", "sec:.bss", 4347288 ], [ ".run", - 222870, + 222862, "abs32", "sec:.bss", 4347304 ], [ ".run", - 222926, + 222918, "abs32", "sec:.bss", 4347738 ], [ ".run", - 222932, + 222924, "abs32", "sec:.bss", 4347288 ], [ ".run", - 222948, + 222940, "abs32", "sec:.bss", 4347292 ], [ ".run", - 222956, + 222948, "abs32", "sec:.bss", 4347296 ], [ ".run", - 222964, + 222956, "abs32", "sec:.bss", 4347300 ], [ ".run", - 222972, + 222964, "abs32", "sec:.bss", 4347304 ], [ ".run", - 222992, + 222984, "abs32", "sec:.bss", 4347734 ], [ ".run", - 222998, + 222990, "abs32", "sec:.bss", 4347711 ], [ ".run", - 223012, + 223004, "abs32", "sec:.bss", 4347730 ], [ ".run", - 223034, + 223026, "abs32", "sec:.bss", 4347730 ], [ ".run", - 223040, + 223032, "abs32", "sec:.bss", 4347726 ], [ ".run", - 223074, + 223066, "abs32", "sec:.bss", 4347726 ], [ ".run", - 223086, + 223078, "abs32", "sec:.bss", 4362044 ], [ ".run", - 223098, + 223090, "abs32", "sec:.bss", 4347338 ], [ ".run", - 223104, + 223096, "abs32", "sec:.bss", 4347718 ], [ ".run", - 223110, + 223102, "abs32", "sec:.run", - 202742 + 202734 ], [ ".run", - 223120, + 223112, "abs32", "sec:.run", - 180472 + 180464 ], [ ".run", - 223140, + 223132, "abs32", "sec:.run", 353827 ], [ ".run", - 223176, + 223168, "abs32", "sec:.bss", 4347734 ], [ ".run", - 223182, + 223174, "abs32", "sec:.bss", 4347730 ], [ ".run", - 223188, + 223180, "abs32", "sec:.bss", 4347711 ], [ ".run", - 223194, + 223186, "abs32", "sec:.bss", 4347726 ], [ ".run", - 223216, + 223208, "abs32", "sec:.bss", 4347726 ], [ ".run", - 223310, + 223302, "abs32", "sec:.bss", 4347730 ], [ ".run", - 223338, + 223330, "abs32", "sec:.bss", 4347730 ], [ ".run", - 223856, + 223848, "abs32", "sec:.bss", 4347646 ], [ ".run", - 224194, + 224186, "abs32", "sec:.bss", 4347646 ], [ ".run", - 224208, + 224200, "abs32", "sec:.bss", 4347674 ], [ ".run", - 224220, + 224212, "abs32", "sec:.bss", 4347658 ], [ ".run", - 224348, + 224340, "abs32", "sec:.bss", 4347646 ], [ ".run", - 224482, + 224474, "abs32", "sec:.bss", 4347646 ], [ ".run", - 225322, + 225314, "abs32", "sec:.bss", 4361916 ], [ ".run", - 225452, + 225444, "abs32", "sec:.bss", 4362080 ], [ ".run", - 225458, + 225450, "abs32", "sec:.bss", 4362076 ], [ ".run", - 225466, + 225458, "abs32", "sec:.bss", 2593200 ], [ ".run", - 225634, + 225626, "abs32", "sec:.bss", 4347092 ], [ ".run", - 225656, + 225648, "abs32", "sec:.bss", 4361964 ], [ ".run", - 225666, + 225658, "abs32", "sec:.bss", 4361996 ], [ ".run", - 225676, + 225668, "abs32", "sec:.run", - 202476 + 202468 ], [ ".run", - 225686, + 225678, "abs32", "sec:.bss", 4361960 ], [ ".run", - 225710, + 225702, "abs32", "sec:.bss", 4361904 ], [ ".run", - 225718, + 225710, "abs32", "sec:.bss", 4361904 ], [ ".run", - 225766, + 225758, "abs32", "sec:.bss", 4362044 ], [ ".run", - 225774, + 225766, "abs32", "sec:.bss", 4361948 ], [ ".run", - 225780, + 225772, "abs32", "sec:.bss", 4361904 ], [ ".run", - 225790, + 225782, "abs32", "sec:.bss", 4361888 ], [ ".run", - 225834, + 225826, "abs32", "sec:.bss", 4361948 ], [ ".run", - 225842, + 225834, "abs32", "sec:.bss", 4361896 ], [ ".run", - 225848, + 225840, "abs32", "sec:.bss", 4361904 ], [ ".run", - 225892, + 225884, "abs32", "sec:.bss", 4361948 ], [ ".run", - 225900, + 225892, "abs32", "sec:.bss", 4361904 ], [ ".run", - 225906, + 225898, "abs32", "sec:.run", 54304 ], [ ".run", - 225912, + 225904, "abs32", "sec:.bss", 4361884 ], [ ".run", - 225934, + 225926, "abs32", "sec:.bss", 4358427 ], [ ".run", - 225952, + 225944, "abs32", "sec:.bss", 4358428 ], [ ".run", - 225964, + 225956, "abs32", "sec:.bss", 4357848 ], [ ".run", - 225982, + 225974, "abs32", "sec:.run", 80646 ], [ ".run", - 225988, + 225980, "abs32", "sec:.run", 139428 ], [ ".run", - 226048, + 226040, "abs32", "sec:.bss", 4358427 ], [ ".run", - 226122, + 226114, "abs32", "sec:.bss", 4358427 ], [ ".run", - 226206, + 226198, "abs32", "sec:.bss", 4361948 ], [ ".run", - 226214, + 226206, "abs32", "sec:.bss", 4361900 ], [ ".run", - 226220, + 226212, "abs32", "sec:.bss", 4361892 ], [ ".run", - 226226, + 226218, "abs32", "sec:.bss", 4361904 ], [ ".run", - 226248, + 226240, "abs32", "sec:.bss", 4361904 ], [ ".run", - 226256, + 226248, "abs32", "sec:.bss", 4361904 ], [ ".run", - 226278, + 226270, "abs32", "sec:.bss", 1623904 ], [ ".run", - 226288, + 226280, "abs32", "sec:.run", 68418 ], [ ".run", - 226296, + 226288, "abs32", "sec:.bss", 4361916 ], [ ".run", - 226314, + 226306, "abs32", "sec:.bss", 4361920 ], [ ".run", - 226320, + 226312, "abs32", "sec:.bss", 4361916 ], [ ".run", - 226342, + 226334, "abs32", "sec:.bss", 4361940 ], [ ".run", - 226354, + 226346, "abs32", "sec:.bss", 4361928 ], [ ".run", - 226372, + 226364, "abs32", "sec:.bss", 4361920 ], [ ".run", - 226386, + 226378, "abs32", "sec:.bss", 4361936 ], [ ".run", - 226392, + 226384, "abs32", "sec:.bss", 4361928 ], [ ".run", - 226398, + 226390, "abs32", "sec:.run", 309198 ], [ ".run", - 226406, + 226398, "abs32", "sec:.bss", 4361944 ], [ ".run", - 226412, + 226404, "abs32", "sec:.bss", 736 ], [ ".run", - 226418, + 226410, "abs32", "sec:.bss", 4347642 ], [ ".run", - 226424, + 226416, "abs32", "sec:.bss", 4347638 ], [ ".run", - 226438, + 226430, "abs32", "sec:.bss", 4340620 ], [ ".run", - 226456, + 226448, "abs32", "sec:.bss", 4347622 ], [ ".run", - 226462, + 226454, "abs32", "sec:.run", 338236 ], [ ".run", - 226468, + 226460, "abs32", "sec:.run", 338240 ], [ ".run", - 226474, + 226466, "abs32", "sec:.run", 338244 ], [ ".run", - 226514, + 226506, "abs32", "sec:.run", 338248 ], [ ".run", - 226582, + 226574, "abs32", "sec:.bss", 4340620 ], [ ".run", - 226590, + 226582, "abs32", "sec:.run", 309140 ], [ ".run", - 226604, + 226596, "abs32", "sec:.bss", 4347638 ], [ ".run", - 226612, + 226604, "abs32", "sec:.bss", 4347622 ], [ ".run", - 226628, + 226620, "abs32", "sec:.bss", 4340620 ], [ ".run", - 226634, + 226626, "abs32", "sec:.bss", 4347638 ], [ ".run", - 226640, + 226632, "abs32", "sec:.bss", 736 ], [ ".run", - 226646, + 226638, "abs32", "sec:.bss", 4347642 ], [ ".run", - 226668, + 226660, "abs32", "sec:.bss", 4361948 ], [ ".run", - 226688, + 226680, "abs32", "sec:.bss", 4361948 ], [ ".run", - 226694, + 226686, "abs32", "sec:.bss", 4356538 ], [ ".run", - 226702, + 226694, "abs32", "sec:.bss", 4361948 ], [ ".run", - 226712, + 226704, "abs32", "sec:.run", 87102 ], [ ".run", - 226718, + 226710, "abs32", "sec:.bss", 4356552 ], [ ".run", - 226730, + 226722, "abs32", "sec:.bss", 4356546 ], [ ".run", - 226740, + 226732, "abs32", "sec:.bss", 3464096 ], [ ".run", - 226756, + 226748, "abs32", "sec:.bss", 4356546 ], [ ".run", - 226784, + 226776, "abs32", "sec:.bss", 4356552 ], [ ".run", - 226790, + 226782, "abs32", "sec:.bss", 4356542 ], [ ".run", - 226796, + 226788, "abs32", "sec:.bss", 4362044 ], [ ".run", - 226808, + 226800, "abs32", "sec:.bss", 4356556 ], [ ".run", - 226824, + 226816, "abs32", "sec:.bss", 4362044 ], [ ".run", - 226838, + 226830, "abs32", "sec:.run", 138626 ], [ ".run", - 226852, + 226844, "abs32", "sec:.bss", 4358424 ], [ ".run", - 226858, + 226850, "abs32", "sec:.run", 53484 ], [ ".run", - 226874, + 226866, "abs32", "sec:.run", 82516 ], [ ".run", - 226892, + 226884, "abs32", "sec:.bss", 4357136 ], [ ".run", - 226900, + 226892, "abs32", "sec:.bss", 4357652 ], [ ".run", - 226906, + 226898, "abs32", "sec:.bss", 4357656 ], [ ".run", - 226912, + 226904, "abs32", "sec:.bss", 4357660 ], [ ".run", - 226930, + 226922, "abs32", "sec:.bss", 4358428 ], [ ".run", - 226950, + 226942, "abs32", "sec:.run", - 180948 + 180940 ], [ ".run", - 226958, + 226950, "abs32", "sec:.bss", 4357664 ], [ ".run", - 226984, + 226976, "abs32", "sec:.bss", 4357136 ], [ ".run", - 226990, + 226982, "abs32", "sec:.bss", 4357656 ], [ ".run", - 227000, + 226992, "abs32", "sec:.bss", 4357140 ], [ ".run", - 227096, + 227088, "abs32", "sec:.bss", 4357652 ], [ ".run", - 227114, + 227106, "abs32", "sec:.bss", 4361948 ], [ ".run", - 227136, + 227128, "abs32", "sec:.bss", 4361900 ], [ ".run", - 227158, + 227150, "abs32", "sec:.bss", 4361900 ], [ ".run", - 227168, + 227160, "abs32", "sec:.bss", 4357836 ], [ ".run", - 227178, + 227170, "abs32", "sec:.bss", 4357832 ], [ ".run", - 227188, + 227180, "abs32", "sec:.bss", 4357844 ], [ ".run", - 227216, + 227208, "abs32", "sec:.bss", 4357840 ], [ ".run", - 227308, + 227300, "abs32", "sec:.bss", 4357812 ], [ ".run", - 227326, + 227318, "abs32", "sec:.bss", 4357816 ], [ ".run", - 227340, + 227332, "abs32", "sec:.bss", 4357812 ], [ ".run", - 227348, + 227340, "abs32", "sec:.bss", 4357840 ], [ ".run", - 227442, + 227434, "abs32", "sec:.bss", 4357836 ], [ ".run", - 227448, + 227440, "abs32", "sec:.bss", 4357820 ], [ ".run", - 227454, + 227446, "abs32", "sec:.bss", 4357840 ], [ ".run", - 227460, + 227452, "abs32", "sec:.bss", 4357812 ], [ ".run", - 227466, + 227458, "abs32", "sec:.bss", 4357824 ], [ ".run", - 227472, + 227464, "abs32", "sec:.bss", 4357828 ], [ ".run", - 227478, + 227470, "abs32", "sec:.bss", 4357808 ], [ ".run", - 227484, + 227476, "abs32", "sec:.bss", 4357844 ], [ ".run", - 227492, + 227484, "abs32", "sec:.bss", 4361948 ], [ ".run", - 227500, + 227492, "abs32", "sec:.bss", 4347712 ], [ ".run", - 227512, + 227504, "abs32", "sec:.bss", 3464096 ], [ ".run", - 227526, + 227518, "abs32", "sec:.bss", 3464096 ], [ ".run", - 227532, + 227524, "abs32", "sec:.bss", 4347712 ], [ ".run", - 227538, + 227530, "abs32", "sec:.bss", 4347711 ], [ ".run", - 227550, + 227542, "abs32", "sec:.bss", 4347710 ], [ ".run", - 227560, + 227552, "abs32", "sec:.bss", 3464096 ], [ ".run", - 227566, + 227558, "abs32", "sec:.bss", 3464096 ], [ ".run", - 227578, + 227570, "abs32", "sec:.bss", 4347706 ], [ ".run", - 227588, + 227580, "abs32", "sec:.bss", 4362044 ], [ ".run", - 227598, + 227590, "abs32", "sec:.bss", 4347714 ], [ ".run", - 227608, + 227600, "abs32", "sec:.bss", 4362044 ], [ ".run", - 227622, + 227614, "abs32", "sec:.bss", 4362720 ], [ ".run", - 227630, + 227622, "abs32", "sec:.bss", 4362056 ], [ ".run", - 227636, + 227628, "abs32", "sec:.bss", 4347244 ], [ ".run", - 227642, + 227634, "abs32", "sec:.bss", 4362048 ], [ ".run", - 227648, + 227640, "abs32", "sec:.bss", 4362052 ], [ ".run", - 227654, + 227646, "abs32", "sec:.bss", 4362048 ], [ ".run", - 227660, + 227652, "abs32", "sec:.bss", 4362056 ], [ ".run", - 227666, + 227658, "abs32", "sec:.bss", 4362052 ], [ ".run", - 227694, + 227686, "abs32", "sec:.bss", 4347124 ], [ ".run", - 227702, + 227694, "abs32", "sec:.bss", 4347240 ], [ ".run", - 227754, + 227746, "abs32", "sec:.bss", 4347092 ], [ ".run", - 227772, + 227764, "abs32", "sec:.bss", 4362064 ], [ ".run", - 227786, + 227778, "abs32", "sec:.bss", 4362008 ], [ ".run", - 227792, + 227784, "abs32", "sec:.bss", 4361956 ], [ ".run", - 227804, + 227796, "abs32", "sec:.bss", 3453412 ], [ ".run", - 227810, + 227802, "abs32", "sec:.bss", 3453408 ], [ ".run", - 227818, + 227810, "abs32", "sec:.bss", 4361952 ], [ ".run", - 227824, + 227816, "abs32", "sec:.bss", 4361956 ], [ ".run", - 227830, + 227822, "abs32", "sec:.bss", 4361952 ], [ ".run", - 227846, + 227838, "abs32", "sec:.run", - 202476 + 202468 ], [ ".run", - 227858, + 227850, "abs32", "sec:.bss", 4362000 ], [ ".run", - 227864, + 227856, "abs32", "sec:.run", 309218 ], [ ".run", - 227874, + 227866, "abs32", "sec:.run", 292888 ], [ ".run", - 227884, + 227876, "abs32", "sec:.bss", 4362040 ], [ ".run", - 227892, + 227884, "abs32", "sec:.bss", 4362040 ], [ ".run", - 227906, + 227898, "abs32", "sec:.run", 309218 ], [ ".run", - 227912, + 227904, "abs32", "sec:.bss", 4347084 ], [ ".run", - 227926, + 227918, "abs32", "sec:.run", 309214 ], [ ".run", - 227942, + 227934, "abs32", "sec:.run", 309210 ], [ ".run", - 227948, + 227940, "abs32", "sec:.run", 54120 ], [ ".run", - 227962, + 227954, "abs32", "sec:.run", 309214 ], [ ".run", - 227968, + 227960, "abs32", "sec:.bss", 4362040 ], [ ".run", - 227976, + 227968, "abs32", "sec:.run", 309214 ], [ ".run", - 227982, + 227974, "abs32", "sec:.run", 309218 ], [ ".run", - 227988, + 227980, "abs32", "sec:.run", 148164 ], [ ".run", - 227998, + 227990, "abs32", "sec:.run", - 160672 + 160664 ], [ ".run", - 228010, + 228002, "abs32", "sec:.bss", 4347112 ], [ ".run", - 228016, + 228008, "abs32", "sec:.run", 108340 ], [ ".run", - 228024, + 228016, "abs32", "sec:.bss", 4347116 ], [ ".run", - 228030, + 228022, "abs32", "sec:.run", 95444 ], [ ".run", - 228038, + 228030, "abs32", "sec:.bss", 4347120 ], [ ".run", - 228058, + 228050, "abs32", "sec:.bss", 4362720 ], [ ".run", - 228064, + 228056, "abs32", "sec:.bss", 4362080 ], [ ".run", - 228074, + 228066, "abs32", "sec:.bss", 4362060 ], [ ".run", - 228082, + 228074, "abs32", "sec:.bss", 4347128 ], [ ".run", - 228090, + 228082, "abs32", "sec:.bss", 4362076 ], [ ".run", - 228124, + 228116, "abs32", "sec:.bss", 4362068 ], [ ".run", - 228130, + 228122, "abs32", "sec:.bss", 4362072 ], [ ".run", - 228166, + 228158, "abs32", "sec:.bss", 4362076 ], [ ".run", - 228182, + 228174, "abs32", "sec:.bss", 4361940 ], [ ".run", - 228194, + 228186, "abs32", "sec:.bss", 4361928 ], [ ".run", - 228204, + 228196, "abs32", "sec:.bss", 4361944 ], [ ".run", - 228218, + 228210, "abs32", "sec:.bss", 4361936 ], [ ".run", - 228230, + 228222, "abs32", "sec:.bss", 4361936 ], [ ".run", - 228242, + 228234, "abs32", "sec:.bss", 736 ], [ ".run", - 228248, + 228240, "abs32", "sec:.bss", 4347642 ], [ ".run", - 228254, + 228246, "abs32", "sec:.bss", 4361944 ], [ ".run", - 228260, + 228252, "abs32", "sec:.bss", 4347638 ], [ ".run", - 228274, + 228266, "abs32", "sec:.bss", 4340620 ], [ ".run", - 228296, + 228288, "abs32", "sec:.bss", 4340620 ], [ ".run", - 228302, + 228294, "abs32", "sec:.bss", 4347622 ], [ ".run", - 228310, + 228302, "abs32", "sec:.run", 309140 ], [ ".run", - 228324, + 228316, "abs32", "sec:.run", 309140 ], [ ".run", - 228330, + 228322, "abs32", "sec:.bss", 4361996 ], [ ".run", - 228336, + 228328, "abs32", "sec:.bss", 4361964 ], [ ".run", - 228352, + 228344, "abs32", "sec:.run", - 202476 + 202468 ], [ ".run", - 228362, + 228354, "abs32", "sec:.bss", 4361960 ], [ ".run", - 228378, + 228370, "abs32", "sec:.bss", 4356444 ], [ ".run", - 228392, + 228384, "abs32", "sec:.bss", 4340620 ], [ ".run", - 228406, + 228398, "abs32", "sec:.bss", 4347638 ], [ ".run", - 228414, + 228406, "abs32", "sec:.bss", 4347622 ], [ ".run", - 228424, + 228416, "abs32", "sec:.bss", 4340620 ], [ ".run", - 228432, + 228424, "abs32", "sec:.bss", 4347622 ], [ ".run", - 228444, + 228436, "abs32", "sec:.bss", 4340620 ], [ ".run", - 228450, + 228442, "abs32", "sec:.bss", 4347638 ], [ ".run", - 228456, + 228448, "abs32", "sec:.bss", 736 ], [ ".run", - 228462, + 228454, "abs32", "sec:.bss", 4347642 ], [ ".run", - 228468, + 228460, "abs32", "sec:.bss", 4361948 ], [ ".run", - 228488, + 228480, "abs32", "sec:.bss", 4356534 ], [ ".run", - 228500, + 228492, "abs32", "sec:.bss", 4356534 ], [ ".run", - 228510, + 228502, "abs32", "sec:.bss", 4361948 ], [ ".run", - 228516, + 228508, "abs32", "sec:.bss", 3454678 ], [ ".run", - 228522, + 228514, "abs32", "sec:.bss", 3454682 ], [ ".run", - 228528, + 228520, "abs32", "sec:.bss", 4356448 ], [ ".run", - 228534, + 228526, "abs32", "sec:.bss", 4356452 ], [ ".run", - 228540, + 228532, "abs32", "sec:.run", 87102 ], [ ".run", - 228546, + 228538, "abs32", "sec:.bss", 4356552 ], [ ".run", - 228558, + 228550, "abs32", "sec:.bss", 4362044 ], [ ".run", - 228568, + 228560, "abs32", "sec:.bss", 4356548 ], [ ".run", - 228580, + 228572, "abs32", "sec:.bss", 4362044 ], [ ".run", - 228586, + 228578, "abs32", "sec:.bss", 4356552 ], [ ".run", - 228598, + 228590, "abs32", "sec:.bss", 4357660 ], [ ".run", - 228644, + 228636, "abs32", "sec:.bss", 4357652 ], [ ".run", - 228658, + 228650, "abs32", "sec:.bss", 4357136 ], [ ".run", - 228670, + 228662, "abs32", "sec:.bss", 4357140 ], [ ".run", - 228682, + 228674, "abs32", "sec:.run", - 180948 + 180940 ], [ ".run", - 228710, + 228702, "abs32", "sec:.bss", 4357136 ], [ ".run", - 228722, + 228714, "abs32", "sec:.bss", 4347092 ], [ ".run", - 228728, + 228720, "abs32", "sec:.bss", 4347092 ], [ ".run", - 228734, + 228726, "abs32", "sec:.bss", 4362064 ], [ ".run", - 228744, + 228736, "abs32", "sec:.bss", 4357812 ], [ ".run", - 228758, + 228750, "abs32", "sec:.bss", 4357816 ], [ ".run", - 228770, + 228762, "abs32", "sec:.bss", 4357820 ], [ ".run", - 228780, + 228772, "abs32", "sec:.bss", 4357824 ], [ ".run", - 228802, + 228794, "abs32", "sec:.bss", 4357828 ], [ ".run", - 228846, + 228838, "abs32", "sec:.bss", 4357808 ], [ ".run", - 228862, + 228854, "abs32", "sec:.bss", 4361944 ], [ ".run", - 228872, + 228864, "abs32", "sec:.run", - 181010 + 181002 ], [ ".run", - 228884, + 228876, "abs32", "sec:.bss", 3464100 ], [ ".run", - 228896, + 228888, "abs32", "sec:.bss", 4361948 ], [ ".run", - 228902, + 228894, "abs32", "sec:.bss", 4361900 ], [ ".run", - 228908, + 228900, "abs32", "sec:.bss", 4361892 ], [ ".run", - 228918, + 228910, "abs32", "sec:.bss", 4357840 ], [ ".run", - 228924, + 228916, "abs32", "sec:.bss", 4357844 ], [ ".run", - 228930, + 228922, "abs32", "sec:.bss", 4357836 ], [ ".run", - 228940, + 228932, "abs32", "sec:.bss", 4357812 ], [ ".run", - 228946, + 228938, "abs32", "sec:.bss", 4357820 ], [ ".run", - 228952, + 228944, "abs32", "sec:.bss", 4357824 ], [ ".run", - 228958, + 228950, "abs32", "sec:.bss", 4357828 ], [ ".run", - 228964, + 228956, "abs32", "sec:.bss", 4357808 ], [ ".run", - 228982, + 228974, "abs32", "sec:.bss", 4362000 ], [ ".run", - 228990, + 228982, "abs32", "sec:.bss", 4362000 ], [ ".run", - 229004, + 228996, "abs32", "sec:.bss", 4362008 ], [ ".run", - 229014, + 229006, "abs32", "sec:.bss", 4362040 ], [ ".run", - 229024, + 229016, "abs32", "sec:.bss", 4361964 ], [ ".run", - 229032, + 229024, "abs32", "sec:.bss", 4362004 ], [ ".run", - 229040, + 229032, "abs32", "sec:.bss", 4361996 ], [ ".run", - 229050, + 229042, "abs32", "sec:.bss", 4361960 ], [ ".run", - 229060, + 229052, "abs32", "sec:.bss", 4357652 ], [ ".run", - 229070, + 229062, "abs32", "sec:.bss", 4356552 ], [ ".run", - 229076, + 229068, "abs32", "sec:.bss", 4361892 ], [ ".run", - 229086, + 229078, "abs32", "sec:.bss", 4361948 ], [ ".run", - 229100, + 229092, "abs32", "sec:.bss", 4361940 ], [ ".run", - 229108, + 229100, "abs32", "sec:.bss", 1623908 ], [ ".run", - 229124, + 229116, "abs32", "sec:.bss", 4361932 ], [ ".run", - 229130, + 229122, "abs32", "sec:.run", 309198 ], [ ".run", - 229136, + 229128, "abs32", "sec:.bss", 1623908 ], [ ".run", - 229148, + 229140, "abs32", "sec:.bss", 4361944 ], [ ".run", - 229160, + 229152, "abs32", "sec:.bss", 1623908 ], [ ".run", - 229170, + 229162, "abs32", "sec:.bss", 1623908 ], [ ".run", - 229178, + 229170, "abs32", "sec:.bss", 4361924 ], [ ".run", - 229188, + 229180, "abs32", "sec:.bss", 4347711 ], [ ".run", - 229200, + 229192, "abs32", "sec:.bss", 4362044 ], [ ".run", - 229208, + 229200, "abs32", "sec:.bss", 4347718 ], [ ".run", - 229252, + 229244, "abs32", "sec:.bss", 4361964 ], [ ".run", - 229274, + 229266, "abs32", "sec:.bss", 4361900 ], [ ".run", - 229290, + 229282, "abs32", "sec:.run", 309210 ], [ ".run", - 229306, + 229298, "abs32", "sec:.bss", 1584572 ], [ ".run", - 229324, + 229316, "abs32", "sec:.bss", 1584564 ], [ ".run", - 229362, + 229354, "abs32", "sec:.bss", 4347096 ], [ ".run", - 229372, + 229364, "abs32", "sec:.bss", 1584564 ], [ ".run", - 229382, + 229374, "abs32", "sec:.bss", 2593200 ], [ ".run", - 229392, + 229384, "abs32", "sec:.bss", 4362060 ], [ ".run", - 229398, + 229390, "abs32", "sec:.bss", 1584556 ], [ ".run", - 229414, + 229406, "abs32", "sec:.run", 350980 ], [ ".run", - 229476, + 229468, "abs32", "sec:.run", 309218 ], [ ".run", - 229482, + 229474, "abs32", "sec:.bss", 4347088 ], [ ".run", - 229488, + 229480, "abs32", "sec:.bss", 4347084 ], [ ".run", - 229506, + 229498, "abs32", "sec:.bss", 4356560 ], [ ".run", - 229516, + 229508, "abs32", "sec:.run", - 180410 + 180402 ], [ ".run", - 229532, + 229524, "abs32", "sec:.bss", 4356548 ], [ ".run", - 229538, + 229530, "abs32", "sec:.bss", 4356546 ], [ ".run", - 229544, + 229536, "abs32", "sec:.bss", 4362044 ], [ ".run", - 229560, + 229552, "abs32", "sec:.bss", 4361924 ], [ ".run", - 229570, + 229562, "abs32", "sec:.run", 6854 ], [ ".run", - 229580, + 229572, "abs32", "sec:.bss", 4361940 ], [ ".run", - 229614, + 229606, "abs32", "sec:.bss", 4361944 ], [ ".run", - 229620, + 229612, "abs32", "sec:.bss", 4361924 ], [ ".run", - 229630, + 229622, "abs32", "sec:.bss", 4347092 ], [ ".run", - 229636, + 229628, "abs32", "sec:.bss", 4347092 ], [ ".run", - 229648, + 229640, "abs32", "sec:.bss", 4362064 ], [ ".run", - 229654, + 229646, "abs32", "sec:.bss", 4362060 ], [ ".run", - 229660, + 229652, "abs32", "sec:.bss", 2593200 ], [ ".run", - 229670, + 229662, "abs32", "sec:.bss", 4361948 ], [ ".run", - 229708, + 229700, "abs32", "sec:.bss", 4361944 ], [ ".run", - 229724, + 229716, "abs32", "sec:.bss", 3464096 ], [ ".run", - 229734, + 229726, "abs32", "sec:.bss", 4347710 ], [ ".run", - 229744, + 229736, "abs32", "sec:.bss", 4347722 ], [ ".run", - 229752, + 229744, "abs32", "sec:.run", 80932 ], [ ".run", - 229792, + 229784, "abs32", "sec:.run", 81474 ], [ ".run", - 229798, + 229790, "abs32", "sec:.run", 80646 ], [ ".run", - 229918, + 229910, "abs32", "sec:.run", 139898 ], [ ".run", - 229956, + 229948, "abs32", "sec:.bss", 4347674 ], [ ".run", - 229962, + 229954, "abs32", "sec:.run", 353834 ], [ ".run", - 229974, + 229966, "abs32", "sec:.run", 353842 ], [ ".run", - 229990, + 229982, "abs32", "sec:.bss", 4347682 ], [ ".run", - 230000, + 229992, "abs32", "sec:.bss", 4347674 ], [ ".run", - 230010, + 230002, "abs32", "sec:.bss", 4347706 ], [ ".run", - 230016, + 230008, "abs32", "sec:.bss", 4362044 ], [ ".run", - 230022, + 230014, "abs32", "sec:.bss", 4347711 ], [ ".run", - 230032, + 230024, "abs32", "sec:.bss", 4347714 ], [ ".run", - 230042, + 230034, "abs32", "sec:.bss", 4347638 ], [ ".run", - 230048, + 230040, "abs32", "sec:.bss", 4340620 ], [ ".run", - 230058, + 230050, "abs32", "sec:.bss", 4340620 ], [ ".run", - 230064, + 230056, "abs32", "sec:.bss", 4347638 ], [ ".run", - 230070, + 230062, "abs32", "sec:.bss", 736 ], [ ".run", - 230076, + 230068, "abs32", "sec:.bss", 4347642 ], [ ".run", - 230086, + 230078, "abs32", "sec:.bss", 4356552 ], [ ".run", - 230094, + 230086, "abs32", "sec:.bss", 4361892 ], [ ".run", - 230116, + 230108, "abs32", "sec:.bss", 1623900 ], [ ".run", - 230122, + 230114, "abs32", "sec:.bss", 4361932 ], [ ".run", - 230132, + 230124, "abs32", "sec:.run", 309198 ], [ ".run", - 230138, + 230130, "abs32", "sec:.bss", 4361916 ], [ ".run", - 230150, + 230142, "abs32", "sec:.bss", 4361944 ], [ ".run", - 230204, + 230196, "abs32", "sec:.bss", 4347674 ], [ ".run", - 230210, + 230202, "abs32", "sec:.run", 353834 ], [ ".run", - 230222, + 230214, "abs32", "sec:.run", 353842 ], [ ".run", - 230238, + 230230, "abs32", "sec:.bss", 4347682 ], [ ".run", - 230252, + 230244, "abs32", "sec:.bss", 4362044 ], [ ".run", - 230258, + 230250, "abs32", "sec:.bss", 4347674 ], [ ".run", - 230264, + 230256, "abs32", "sec:.bss", 4347711 ], [ ".run", - 230274, + 230266, "abs32", "sec:.bss", 4347706 ], [ ".run", - 230280, + 230272, "abs32", "sec:.bss", 4347714 ], [ ".run", - 230292, + 230284, "abs32", "sec:.bss", 1584572 ], [ ".run", - 230302, + 230294, "abs32", "sec:.bss", 4362040 ], [ ".run", - 230310, + 230302, "abs32", "sec:.bss", 4362040 ], [ ".run", - 230344, + 230336, "abs32", "sec:.run", 309218 ], [ ".run", - 230350, + 230342, "abs32", "sec:.bss", 4347088 ], [ ".run", - 230360, + 230352, "abs32", "sec:.bss", 4347722 ], [ ".run", - 230370, + 230362, "abs32", "sec:.bss", 4357136 ], [ ".run", - 230376, + 230368, "abs32", "sec:.bss", 4357140 ], [ ".run", - 230410, + 230402, "abs32", "sec:.bss", 3464096 ], [ ".run", - 230432, + 230424, "abs32", "sec:.run", 80932 ], [ ".run", - 230462, + 230454, "abs32", "sec:.run", 81474 ], [ ".run", - 230468, + 230460, "abs32", "sec:.run", 80646 ], [ ".run", - 230484, + 230476, "abs32", "sec:.bss", 4357136 ], [ ".run", - 230490, + 230482, "abs32", "sec:.bss", 3464096 ], [ ".run", - 230510, + 230502, "abs32", "sec:.bss", 4361944 ], [ ".run", - 230516, + 230508, "abs32", "sec:.bss", 4361924 ], [ ".run", - 230526, + 230518, "abs32", "sec:.bss", 4361948 ], [ ".run", - 230558, + 230550, "abs32", "sec:.bss", 4347104 ], [ ".run", - 230568, + 230560, "abs32", "sec:.bss", 1584564 ], [ ".run", - 230578, + 230570, "abs32", "sec:.bss", 2593200 ], [ ".run", - 230588, + 230580, "abs32", "sec:.bss", 4362060 ], [ ".run", - 230632, + 230624, "abs32", "sec:.bss", 4347104 ], [ ".run", - 230674, + 230666, "abs32", "sec:.bss", 4347096 ], [ ".run", - 230694, + 230686, "abs32", "sec:.bss", 4361944 ], [ ".run", - 230700, + 230692, "abs32", "sec:.bss", 4361924 ], [ ".run", - 230710, + 230702, "abs32", "sec:.bss", 4356538 ], [ ".run", - 230724, + 230716, "abs32", "sec:.bss", 4356538 ], [ ".run", - 230736, + 230728, "abs32", "sec:.bss", 4361948 ], [ ".run", - 230746, + 230738, "abs32", "sec:.bss", 4347711 ], [ ".run", - 230752, + 230744, "abs32", "sec:.bss", 4347706 ], [ ".run", - 230798, + 230790, "abs32", "sec:.bss", 4361948 ], [ ".run", - 230806, + 230798, "abs32", "sec:.bss", 4347726 ], [ ".run", - 230812, + 230804, "abs32", "sec:.bss", 4347730 ], [ ".run", - 230818, + 230810, "abs32", "sec:.bss", 4347706 ], [ ".run", - 230824, + 230816, "abs32", "sec:.bss", 4361904 ], [ ".run", - 230834, + 230826, "abs32", "sec:.bss", 4361944 ], [ ".run", - 230840, + 230832, "abs32", "sec:.bss", 4361948 ], [ ".run", - 230884, + 230876, "abs32", "sec:.bss", 4361908 ], [ ".run", - 230934, + 230926, "abs32", "sec:.bss", 1584452 ], [ ".run", - 230950, + 230942, "abs32", "sec:.bss", 4347280 ], [ ".run", - 230956, + 230948, "abs32", "sec:.run", 309202 ], [ ".run", - 230978, + 230970, "abs32", "sec:.bss", 2593200 ], [ ".run", - 230986, + 230978, "abs32", "sec:.bss", 4347080 ], [ ".run", - 230996, + 230988, "abs32", "sec:.bss", 4361944 ], [ ".run", - 231044, + 231036, "abs32", "sec:.bss", 4361908 ], [ ".run", - 231072, + 231064, "abs32", "sec:.bss", 1584452 ], [ ".run", - 231082, + 231074, "abs32", "sec:.bss", 4361948 ], [ ".run", - 231126, + 231118, "abs32", "sec:.bss", 4361948 ], [ ".run", - 231132, + 231124, "abs32", "sec:.bss", 4356542 ], [ ".run", - 231150, + 231142, "abs32", "sec:.run", 309202 ], [ ".run", - 231160, + 231152, "abs32", "sec:.bss", 1584452 ], [ ".run", - 231174, + 231166, "abs32", "sec:.bss", 1584452 ], [ ".run", - 231184, + 231176, "abs32", "sec:.bss", 1584452 ], [ ".run", - 231200, + 231192, "abs32", "sec:.bss", 1584452 ], [ ".run", - 231218, + 231210, "abs32", "sec:.bss", 4347280 ], [ ".run", - 231238, + 231230, "abs32", "sec:.run", 309202 ], [ ".run", - 231250, + 231242, "abs32", "sec:.bss", 4361944 ], [ ".run", - 231256, + 231248, "abs32", "sec:.bss", 1584452 ], [ ".run", - 231268, + 231260, "abs32", "sec:.bss", 1584452 ], [ ".run", - 231294, + 231286, "abs32", "sec:.bss", 4347280 ], [ ".run", - 231312, + 231304, "abs32", "sec:.bss", 4361948 ], [ ".run", - 231326, + 231318, "abs32", "sec:.bss", 4347280 ], [ ".run", - 231382, + 231374, "abs32", "sec:.bss", 1584452 ], [ ".run", - 231392, + 231384, "abs32", "sec:.bss", 4361948 ], [ ".run", - 231444, + 231436, "abs32", "sec:.bss", 4356552 ], [ ".run", - 231454, + 231446, "abs32", "sec:.bss", 4357656 ], [ ".run", - 231464, + 231456, "abs32", "sec:.bss", 4361948 ], [ ".run", - 231470, + 231462, "abs32", "sec:.bss", 4356542 ], [ ".run", - 231476, + 231468, "abs32", "sec:.run", 309202 ], [ ".run", - 231494, + 231486, "abs32", "sec:.run", 309202 ], [ ".run", - 231504, + 231496, "abs32", "sec:.bss", 4361948 ], [ ".run", - 231532, + 231524, "abs32", "sec:.bss", 4353372 ], [ ".run", - 231542, + 231534, "abs32", "sec:.run", 51274 ], [ ".run", - 231548, + 231540, "abs32", "sec:.bss", 4361896 ], [ ".run", - 231568, + 231560, "abs32", "sec:.bss", 4361948 ], [ ".run", - 231594, + 231586, "abs32", "sec:.run", 309202 ], [ ".run", - 231612, + 231604, "abs32", "sec:.bss", 4347730 ], [ ".run", - 231618, + 231610, "abs32", "sec:.bss", 4347726 ], [ ".run", - 231642, + 231634, "abs32", "sec:.bss", 4347726 ], [ ".run", - 231648, + 231640, "abs32", "sec:.bss", 4347734 ], [ ".run", - 231658, + 231650, "abs32", "sec:.bss", 4347712 ], [ ".run", - 231674, + 231666, "abs32", "sec:.bss", 4347738 ], [ ".run", - 231704, + 231696, "abs32", "sec:.run", - 180410 + 180402 ], [ ".run", - 231726, + 231718, "abs32", "sec:.bss", 4347730 ], [ ".run", - 231736, + 231728, "abs32", "sec:.bss", 4347706 ], [ ".run", - 231746, + 231738, "abs32", "sec:.run", 309202 ], [ ".run", - 231762, + 231754, "abs32", "sec:.bss", 4347712 ], [ ".run", - 231768, + 231760, "abs32", "sec:.bss", 4347722 ], [ ".run", - 231776, + 231768, "abs32", "sec:.bss", 4347710 ], [ ".run", - 231794, + 231786, "abs32", "sec:.bss", 4347730 ], [ ".run", - 231804, + 231796, "abs32", "sec:.bss", 4347734 ], [ ".run", - 231812, + 231804, "abs32", "sec:.bss", 4347730 ], [ ".run", - 231820, + 231812, "abs32", "sec:.bss", 4347726 ], [ ".run", - 231838, + 231830, "abs32", "sec:.bss", 4347726 ], [ ".run", - 231844, + 231836, "abs32", "sec:.run", 309202 ], [ ".run", - 231868, + 231860, "abs32", "sec:.bss", 4358427 ], [ ".run", - 231874, + 231866, "abs32", "sec:.bss", 4356548 ], [ ".run", - 231880, + 231872, "abs32", "sec:.bss", 4356542 ], [ ".run", - 231886, + 231878, "abs32", "sec:.bss", 4356546 ], [ ".run", - 231898, + 231890, "abs32", "sec:.bss", 4357664 ], [ ".run", - 231916, + 231908, "abs32", "sec:.bss", 4358432 ], [ ".run", - 231964, + 231956, "abs32", "sec:.bss", 4357808 ], [ ".run", - 231982, + 231974, "abs32", "sec:.bss", 4356552 ], [ ".run", - 231990, + 231982, "abs32", "sec:.run", 309202 ], [ ".run", - 232008, + 232000, "abs32", "sec:.bss", 4353372 ], [ ".run", - 232018, + 232010, "abs32", "sec:.run", 51274 ], [ ".run", - 232026, + 232018, "abs32", "sec:.bss", 4361896 ], [ ".run", - 232048, + 232040, "abs32", "sec:.run", 309202 ], [ ".run", - 232070, + 232062, "abs32", "sec:.bss", 4347726 ], [ ".run", - 232088, + 232080, "abs32", "sec:.bss", 4356560 ], [ ".run", - 232162, + 232154, "abs32", "sec:.bss", 4358427 ], [ ".run", - 232168, + 232160, "abs32", "sec:.bss", 4361900 ], [ ".run", - 232182, + 232174, "abs32", "sec:.bss", 4347726 ], [ ".run", - 232192, + 232184, "abs32", "sec:.bss", 1584452 ], [ ".run", - 232216, + 232208, "abs32", "sec:.bss", 4347280 ], [ ".run", - 232272, + 232264, "abs32", "sec:.bss", 4361900 ], [ ".run", - 232294, + 232286, "abs32", "sec:.run", 54946 ], [ ".run", - 232300, + 232292, "abs32", "sec:.bss", 4361948 ], [ ".run", - 232310, + 232302, "abs32", "sec:.run", 309202 ], [ ".run", - 232328, + 232320, "abs32", "sec:.bss", 4347730 ], [ ".run", - 232338, + 232330, "abs32", "sec:.bss", 4347726 ], [ ".run", - 232348, + 232340, "abs32", "sec:.bss", 4347726 ], [ ".run", - 232354, + 232346, "abs32", "sec:.run", 309202 ], [ ".run", - 232366, + 232358, "abs32", "sec:.bss", 4347730 ], [ ".run", - 232376, + 232368, "abs32", "sec:.bss", 2593200 ], [ ".run", - 232384, + 232376, "abs32", "sec:.bss", 4347080 ], [ ".run", - 232390, + 232382, "abs32", "sec:.bss", 4361944 ], [ ".run", - 232400, + 232392, "abs32", "sec:.bss", 4361948 ], [ ".run", - 232410, + 232402, "abs32", "sec:.bss", 4361948 ], [ ".run", - 232424, + 232416, "abs32", "sec:.bss", 4361948 ], [ ".run", - 232454, + 232446, "abs32", "sec:.bss", 3454634 ], [ ".run", - 232462, + 232454, "abs32", "sec:.bss", 3454638 ], [ ".run", - 232496, + 232488, "abs32", "sec:.bss", 4356486 ], [ ".run", - 232514, + 232506, "abs32", "sec:.bss", 4356490 ], [ ".run", - 232526, + 232518, "abs32", "sec:.bss", 4356494 ], [ ".run", - 232532, + 232524, "abs32", "sec:.run", 309040 ], [ ".run", - 232552, + 232544, "abs32", "sec:.bss", 4356522 ], [ ".run", - 232560, + 232552, "abs32", "sec:.bss", 4356486 ], [ ".run", - 232578, + 232570, "abs32", "sec:.bss", 4356530 ], [ ".run", - 232588, + 232580, "abs32", "sec:.bss", 4356526 ], [ ".run", - 232594, + 232586, "abs32", "sec:.bss", 4356518 ], [ ".run", - 232600, + 232592, "abs32", "sec:.run", 51838 ], [ ".run", - 232608, + 232600, "abs32", "sec:.bss", 3454678 ], [ ".run", - 232618, + 232610, "abs32", "sec:.bss", 4356482 ], [ ".run", - 232628, + 232620, "abs32", "sec:.bss", 4356478 ], [ ".run", - 232634, + 232626, "abs32", "sec:.bss", 4347128 ], [ ".run", - 232650, + 232642, "abs32", "sec:.bss", 4353372 ], [ ".run", - 232658, + 232650, "abs32", "sec:.bss", 4356474 ], [ ".run", - 232664, + 232656, "abs32", "sec:.bss", 4356456 ], [ ".run", - 232670, + 232662, "abs32", "sec:.bss", 4356460 ], [ ".run", - 232676, + 232668, "abs32", "sec:.bss", 4356464 ], [ ".run", - 232682, + 232674, "abs32", "sec:.bss", 4356468 ], [ ".run", - 232688, + 232680, "abs32", "sec:.bss", 4356472 ], [ ".run", - 232694, + 232686, "abs32", "sec:.run", 51274 ], [ ".run", - 232714, + 232706, "abs32", "sec:.bss", 4353372 ], [ ".run", - 232720, + 232712, "abs32", "sec:.bss", 4356456 ], [ ".run", - 232762, + 232754, "abs32", "sec:.bss", 4356456 ], [ ".run", - 232768, + 232760, "abs32", "sec:.bss", 4356472 ], [ ".run", - 232816, + 232808, "abs32", "sec:.bss", 4361948 ], [ ".run", - 232822, + 232814, "abs32", "sec:.bss", 4356534 ], [ ".run", - 232844, + 232836, "abs32", "sec:.bss", 4356456 ], [ ".run", - 232882, + 232874, "abs32", "sec:.run", 309040 ], [ ".run", - 232926, + 232918, "abs32", "sec:.bss", 4356456 ], [ ".run", - 232932, + 232924, "abs32", "sec:.bss", 4356472 ], [ ".run", - 232964, + 232956, "abs32", "sec:.bss", 4356472 ], [ ".run", - 232976, + 232968, "abs32", "sec:.bss", 4356456 ], [ ".run", - 232998, + 232990, "abs32", "sec:.bss", 4356472 ], [ ".run", - 233008, + 233000, "abs32", "sec:.bss", 4361948 ], [ ".run", - 233014, + 233006, "abs32", "sec:.bss", 4356534 ], [ ".run", - 233030, + 233022, "abs32", "sec:.run", 67410 ], [ ".run", - 233064, + 233056, "abs32", "sec:.bss", 4356456 ], [ ".run", - 233084, + 233076, "abs32", "sec:.bss", 4361948 ], [ ".run", - 233120, + 233112, "abs32", "sec:.run", 45632 ], [ ".run", - 233130, + 233122, "abs32", "sec:.bss", 4356494 ], [ ".run", - 233136, + 233128, "abs32", "sec:.bss", 4356498 ], [ ".run", - 233146, + 233138, "abs32", "sec:.bss", 4356530 ], [ ".run", - 233156, + 233148, "abs32", "sec:.bss", 4356506 ], [ ".run", - 233166, + 233158, "abs32", "sec:.bss", 4356510 ], [ ".run", - 233172, + 233164, "abs32", "sec:.bss", 4356502 ], [ ".run", - 233180, + 233172, "abs32", "sec:.bss", 4356514 ], [ ".run", - 233186, + 233178, "abs32", "sec:.bss", 4356486 ], [ ".run", - 233192, + 233184, "abs32", "sec:.bss", 4356490 ], [ ".run", - 233198, + 233190, "abs32", "sec:.bss", 4356522 ], [ ".run", - 233204, + 233196, "abs32", "sec:.bss", 4356526 ], [ ".run", - 233210, + 233202, "abs32", "sec:.run", 51838 ], [ ".run", - 233220, + 233212, "abs32", "sec:.bss", 3454678 ], [ ".run", - 233226, + 233218, "abs32", "sec:.bss", 4356482 ], [ ".run", - 233240, + 233232, "abs32", "sec:.bss", 4356478 ], [ ".run", - 233252, + 233244, "abs32", "sec:.bss", 4347128 ], [ ".run", - 233264, + 233256, "abs32", "sec:.bss", 4356474 ], [ ".run", - 233270, + 233262, "abs32", "sec:.bss", 4356456 ], [ ".run", - 233276, + 233268, "abs32", "sec:.bss", 4356460 ], [ ".run", - 233282, + 233274, "abs32", "sec:.bss", 4356464 ], [ ".run", - 233288, + 233280, "abs32", "sec:.bss", 4356468 ], [ ".run", - 233294, + 233286, "abs32", "sec:.bss", 4356472 ], [ ".run", - 233310, + 233302, "abs32", "sec:.bss", 4356456 ], [ ".run", - 233358, + 233350, "abs32", "sec:.bss", 4356472 ], [ ".run", - 233378, + 233370, "abs32", "sec:.bss", 4361948 ], [ ".run", - 233384, + 233376, "abs32", "sec:.bss", 4356534 ], [ ".run", - 233394, + 233386, "abs32", "sec:.bss", 4347128 ], [ ".run", - 233408, + 233400, "abs32", "sec:.bss", 4361948 ], [ ".run", - 233442, + 233434, "abs32", "sec:.bss", 4356502 ], [ ".run", - 233448, + 233440, "abs32", "sec:.bss", 4356486 ], [ ".run", - 233460, + 233452, "abs32", "sec:.bss", 4356494 ], [ ".run", - 233466, + 233458, "abs32", "sec:.bss", 4356498 ], [ ".run", - 233472, + 233464, "abs32", "sec:.bss", 4356506 ], [ ".run", - 233478, + 233470, "abs32", "sec:.bss", 4356510 ], [ ".run", - 233484, + 233476, "abs32", "sec:.bss", 4356514 ], [ ".run", - 233490, + 233482, "abs32", "sec:.bss", 4356522 ], [ ".run", - 233496, + 233488, "abs32", "sec:.bss", 4356456 ], [ ".run", - 233502, + 233494, "abs32", "sec:.bss", 4356460 ], [ ".run", - 233508, + 233500, "abs32", "sec:.bss", 4356464 ], [ ".run", - 233514, + 233506, "abs32", "sec:.bss", 4356468 ], [ ".run", - 233520, + 233512, "abs32", "sec:.bss", 4356472 ], [ ".run", - 233530, + 233522, "abs32", "sec:.bss", 4356482 ], [ ".run", - 233536, + 233528, "abs32", "sec:.bss", 4356490 ], [ ".run", - 233544, + 233536, "abs32", "sec:.bss", 4356530 ], [ ".run", - 233556, + 233548, "abs32", "sec:.bss", 4356456 ], [ ".run", - 233602, + 233594, "abs32", "sec:.bss", 4356472 ], [ ".run", - 233618, + 233610, "abs32", "sec:.bss", 4361948 ], [ ".run", - 233624, + 233616, "abs32", "sec:.bss", 4356534 ], [ ".run", - 233636, + 233628, "abs32", "sec:.bss", 4362008 ], [ ".run", - 233646, + 233638, "abs32", "sec:.bss", 4362040 ], [ ".run", - 233660, + 233652, "abs32", "sec:.run", - 202476 + 202468 ], [ ".run", - 233670, + 233662, "abs32", "sec:.bss", 4362008 ], [ ".run", - 233680, + 233672, "abs32", "sec:.bss", 4362040 ], [ ".run", - 233690, + 233682, "abs32", "sec:.bss", 4362004 ], [ ".run", - 233700, + 233692, "abs32", "sec:.bss", 4347208 ], [ ".run", - 233708, + 233700, "abs32", "sec:.bss", 4347240 ], [ ".run", - 233738, + 233730, "abs32", "sec:.bss", 4362008 ], [ ".run", - 233748, + 233740, "abs32", "sec:.bss", 4362040 ], [ ".run", - 233758, + 233750, "abs32", "sec:.bss", 4347208 ], [ ".run", - 233764, + 233756, "abs32", "sec:.bss", 4347240 ], [ ".run", - 233800, + 233792, "abs32", "sec:.bss", 4361948 ], [ ".run", - 233812, + 233804, "abs32", "sec:.bss", 4356530 ], [ ".run", - 233824, + 233816, "abs32", "sec:.bss", 4356490 ], [ ".run", - 233834, + 233826, "abs32", "sec:.bss", 4356486 ], [ ".run", - 233840, + 233832, "abs32", "sec:.run", - 202476 + 202468 ], [ ".run", - 233850, + 233842, "abs32", "sec:.bss", 4362008 ], [ ".run", - 233858, + 233850, "abs32", "sec:.bss", 4362040 ], [ ".run", - 233872, + 233864, "abs32", "sec:.bss", 4362004 ], [ ".run", - 233884, + 233876, "abs32", "sec:.bss", 4361996 ], [ ".run", - 233912, + 233904, "abs32", "sec:.run", 338240 ], [ ".run", - 233924, + 233916, "abs32", "sec:.run", 338244 ], [ ".run", - 233934, + 233926, "abs32", "sec:.run", 338248 ], [ ".run", - 233944, + 233936, "abs32", "sec:.run", 338236 ], [ ".run", - 233982, + 233974, "abs32", "sec:.run", 308990 ], [ ".run", - 234002, + 233994, "abs32", "sec:.run", 81444 ], [ ".run", - 234020, + 234012, "abs32", "sec:.bss", 3453564 ], [ ".run", - 234038, + 234030, "abs32", "sec:.bss", 3453560 ], [ ".run", - 234054, + 234046, "abs32", "sec:.bss", 4361948 ], [ ".run", - 234084, + 234076, "abs32", "sec:.bss", 4356530 ], [ ".run", - 234094, + 234086, "abs32", "sec:.bss", 4356486 ], [ ".run", - 234108, + 234100, "abs32", "sec:.bss", 4356486 ], [ ".run", - 234114, + 234106, "abs32", "sec:.bss", 4356522 ], [ ".run", - 234120, + 234112, "abs32", "sec:.bss", 4356490 ], [ ".run", - 234126, + 234118, "abs32", "sec:.run", - 202476 + 202468 ], [ ".run", - 234136, + 234128, "abs32", "sec:.bss", 4362008 ], [ ".run", - 234144, + 234136, "abs32", "sec:.bss", 4362040 ], [ ".run", - 234158, + 234150, "abs32", "sec:.bss", 4362004 ], [ ".run", - 234170, + 234162, "abs32", "sec:.bss", 4361996 ], [ ".run", - 234190, + 234182, "abs32", "sec:.bss", 4361944 ], [ ".run", - 234212, + 234204, "abs32", "sec:.bss", 4361948 ], [ ".run", - 234258, + 234250, "abs32", "sec:.run", 338308 ], [ ".run", - 234264, + 234256, "abs32", "sec:.run", 309129 ], [ ".run", - 234288, + 234280, "abs32", "sec:.run", 338317 ], [ ".run", - 234300, + 234292, "abs32", "sec:.run", 309116 ], [ ".run", - 234322, + 234314, "abs32", "sec:.bss", 4362008 ], [ ".run", - 234340, + 234332, "abs32", "sec:.bss", 4362040 ], [ ".run", - 234358, + 234350, "abs32", "sec:.run", - 160672 + 160664 ], [ ".run", - 234368, + 234360, "abs32", "sec:.bss", 3454678 ], [ ".run", - 234410, + 234402, "abs32", "sec:.bss", 3454682 ], [ ".run", - 234446, + 234438, "abs32", "sec:.run", 51838 ], [ ".run", - 234468, + 234460, "abs32", "sec:.bss", 4347096 ], [ ".run", - 234476, + 234468, "abs32", "sec:.bss", 4347092 ], [ ".run", - 234486, + 234478, "abs32", "sec:.bss", 4347104 ], [ ".run", - 234506, + 234498, "abs32", "sec:.bss", 4347108 ], [ ".run", - 234522, + 234514, "abs32", "sec:.run", 350960 ], [ ".run", - 234540, + 234532, "abs32", "sec:.bss", 4347100 ], [ ".run", - 234558, + 234550, "abs32", "sec:.run", - 223738 + 223730 ], [ ".run", - 234608, + 234600, "abs32", "sec:.bss", 4347646 ], [ ".run", - 234704, + 234696, "abs32", "sec:.bss", 4361888 ], [ ".run", - 234714, + 234706, "abs32", "sec:.bss", 4362044 ], [ ".run", - 234758, + 234750, "abs32", "sec:.bss", 4353372 ], [ ".run", - 234764, + 234756, "abs32", "sec:.run", 51274 ], [ ".run", - 234772, + 234764, "abs32", "sec:.bss", 4361896 ], [ ".run", - 234798, + 234790, "abs32", "sec:.bss", 4361896 ], [ ".run", - 234804, + 234796, "abs32", "sec:.run", 354627 ], [ ".run", - 234828, + 234820, "abs32", "sec:.run", 354639 ], [ ".run", - 234846, + 234838, "abs32", "sec:.bss", 4347646 ], [ ".run", - 234868, + 234860, "abs32", "sec:.bss", 4361896 ], [ ".run", - 234878, + 234870, "abs32", "sec:.run", 354520 ], [ ".run", - 234914, + 234906, "abs32", "sec:.run", 354484 ], [ ".run", - 234920, + 234912, "abs32", "sec:.bss", 4358427 ], [ ".run", - 234942, + 234934, "abs32", "sec:.run", 354500 ], [ ".run", - 234960, + 234952, "abs32", "sec:.bss", 4347646 ], [ ".run", - 234982, + 234974, "abs32", "sec:.bss", 4361900 ], [ ".run", - 234992, + 234984, "abs32", "sec:.bss", 4356552 ], [ ".run", - 235002, + 234994, "abs32", "sec:.bss", 4356542 ], [ ".run", - 235012, + 235004, "abs32", "sec:.bss", 4356556 ], [ ".run", - 235018, + 235010, "abs32", "sec:.bss", 4362044 ], [ ".run", - 235030, + 235022, "abs32", "sec:.bss", 4357656 ], [ ".run", - 235132, + 235124, "abs32", "sec:.run", 354015 ], [ ".run", - 235152, + 235144, "abs32", "sec:.run", 354029 ], [ ".run", - 235194, + 235186, "abs32", "sec:.bss", 4347646 ], [ ".run", - 235216, + 235208, "abs32", "sec:.run", 354520 ], [ ".run", - 235246, + 235238, "abs32", "sec:.run", 354585 ], [ ".run", - 235260, + 235252, "abs32", "sec:.bss", 4347734 ], [ ".run", - 235272, + 235264, "abs32", "sec:.run", 354639 ], [ ".run", - 235290, + 235282, "abs32", "sec:.bss", 4347646 ], [ ".run", - 235312, + 235304, "abs32", "sec:.bss", 4347734 ], [ ".run", - 235334, + 235326, "abs32", "sec:.bss", 4347738 ], [ ".run", - 235344, + 235336, "abs32", "sec:.bss", 4347726 ], [ ".run", - 235374, + 235366, "abs32", "sec:.bss", 4347742 ], [ ".run", - 235446, + 235438, "abs32", "sec:.bss", 4347726 ], [ ".run", - 235452, + 235444, "abs32", "sec:.bss", 4347730 ], [ ".run", - 235474, + 235466, "abs32", "sec:.bss", 4347646 ], [ ".run", - 235496, + 235488, "abs32", "sec:.bss", 4347712 ], [ ".run", - 235504, + 235496, "abs32", "sec:.bss", 4347722 ], [ ".run", - 235526, + 235518, "abs32", "sec:.run", 354260 ], [ ".run", - 235568, + 235560, "abs32", "sec:.bss", 4347646 ], [ ".run", - 235592, + 235584, "abs32", "sec:.bss", 4347734 ], [ ".run", - 235608, + 235600, "abs32", "sec:.bss", 4347726 ], [ ".run", - 235632, + 235624, "abs32", "sec:.bss", 4347706 ], [ ".run", - 235638, + 235630, "abs32", "sec:.bss", 4347674 ], [ ".run", - 235652, + 235644, "abs32", "sec:.bss", 4347714 ], [ ".run", - 235658, + 235650, "abs32", "sec:.bss", 4362044 ], [ ".run", - 235670, + 235662, "abs32", "sec:.bss", 4347734 ], [ ".run", - 235680, + 235672, "abs32", "sec:.run", 354517 ], [ ".run", - 235718, + 235710, "abs32", "sec:.run", 354041 ], [ ".run", - 235818, + 235810, "abs32", "sec:.run", 354661 ], [ ".run", - 235850, + 235842, "abs32", "sec:.run", 354661 ], [ ".run", - 235870, + 235862, "abs32", "sec:.bss", 4347646 ], [ ".run", - 235888, + 235880, "abs32", "sec:.run", 354666 ], [ ".run", - 235910, + 235902, "abs32", "sec:.run", 354666 ], [ ".run", - 235930, + 235922, "abs32", "sec:.bss", 4347646 ], [ ".run", - 235960, + 235952, "abs32", "sec:.bss", 4353393 ], [ ".run", - 236058, + 236050, "abs32", "sec:.bss", 4361896 ], [ ".run", - 236090, + 236082, "abs32", "sec:.bss", 4353372 ], [ ".run", - 236210, + 236202, "abs32", "sec:.bss", 4347646 ], [ ".run", - 236228, + 236220, "abs32", "sec:.bss", 4353372 ], [ ".run", - 236440, + 236432, "abs32", "sec:.bss", 4347646 ], [ ".run", - 236490, + 236482, "abs32", "sec:.bss", 4361896 ], [ ".run", - 236524, + 236516, "abs32", "sec:.run", 354671 ], [ ".run", - 236542, + 236534, "abs32", "sec:.bss", 4347646 ], [ ".run", - 236584, + 236576, "abs32", "sec:.bss", 4347646 ], [ ".run", - 236590, + 236582, "abs32", "sec:.bss", 4347674 ], [ ".run", - 236624, + 236616, "abs32", "sec:.bss", 4347658 ], [ ".run", - 236688, + 236680, "abs32", "sec:.run", 354313 ], [ ".run", - 236772, + 236764, "abs32", "sec:.bss", 4361944 ], [ ".run", - 236792, + 236784, "abs32", "sec:.run", 350944 ], [ ".run", - 236834, + 236826, "abs32", "sec:.bss", 4361924 ], [ ".run", - 237062, + 237054, "abs32", "sec:.run", 354383 ], [ ".run", - 237080, + 237072, "abs32", "sec:.bss", 4347646 ], [ ".run", - 237098, + 237090, "abs32", "sec:.run", 354325 ], [ ".run", - 237116, + 237108, "abs32", "sec:.bss", 4347646 ], [ ".run", - 237154, + 237146, "abs32", "sec:.bss", 4347646 ], [ ".run", - 237160, + 237152, "abs32", "sec:.bss", 4347674 ], [ ".run", - 237196, + 237188, "abs32", "sec:.bss", 4347658 ], [ ".run", - 237280, + 237272, "abs32", "sec:.run", 354300 ], [ ".run", - 237352, + 237344, "abs32", "sec:.bss", 4361944 ], [ ".run", - 237362, + 237354, "abs32", "sec:.run", 353861 ], [ ".run", - 237376, + 237368, "abs32", "sec:.bss", 4361924 ], [ ".run", - 237386, + 237378, "abs32", "sec:.bss", 4361944 ], [ ".run", - 237518, + 237510, "abs32", "sec:.bss", 4347646 ], [ ".run", - 237594, + 237586, "abs32", "sec:.run", 353826 ], [ ".run", - 237604, + 237596, "abs32", "sec:.run", 354263 ], [ ".run", - 237670, + 237662, "abs32", "sec:.bss", 4347646 ], [ ".run", - 237688, + 237680, "abs32", "sec:.bss", 4347674 ], [ ".run", - 237710, + 237702, "abs32", "sec:.bss", 4347658 ], [ ".run", - 237802, + 237794, "abs32", "sec:.bss", 4356490 ], [ ".run", - 237836, + 237828, "abs32", "sec:.bss", 4356526 ], [ ".run", - 237864, + 237856, "abs32", "sec:.bss", 4356522 ], [ ".run", - 237888, + 237880, "abs32", "sec:.bss", 4356486 ], [ ".run", - 237898, + 237890, "abs32", "sec:.bss", 4356530 ], [ ".run", - 237918, + 237910, "abs32", "sec:.run", 353916 ], [ ".run", - 238002, + 237994, "abs32", "sec:.bss", 4347646 ], [ ".run", - 238054, + 238046, "abs32", "sec:.bss", 4347646 ], [ ".run", - 238122, + 238114, "abs32", "sec:.bss", 4356456 ], [ ".run", - 238134, + 238126, "abs32", "sec:.run", 354288 ], [ ".run", - 238194, + 238186, "abs32", "sec:.bss", 4356486 ], [ ".run", - 238218, + 238210, "abs32", "sec:.bss", 4356530 ], [ ".run", - 238228, + 238220, "abs32", "sec:.bss", 4356502 ], [ ".run", - 238234, + 238226, "abs32", "sec:.bss", 4356474 ], [ ".run", - 238268, + 238260, "abs32", "sec:.bss", 4356478 ], [ ".run", - 238284, + 238276, "abs32", "sec:.bss", 4356482 ], [ ".run", - 238316, + 238308, "abs32", "sec:.run", 353962 ], [ ".run", - 238462, + 238454, "abs32", "sec:.run", - 224888 + 224880 ], [ ".run", - 238492, + 238484, "abs32", "sec:.bss", 4347646 ], [ ".run", - 238506, + 238498, "abs32", "sec:.run", 354464 ], [ ".run", - 238524, + 238516, "abs32", "sec:.bss", 4347646 ], [ ".run", - 238544, + 238536, "abs32", "sec:.run", - 223738 + 223730 ], [ ".run", - 238576, + 238568, "abs32", "sec:.run", 354468 ], [ ".run", - 238594, + 238586, "abs32", "sec:.bss", 4347646 ], [ ".run", - 238652, + 238644, "abs32", "sec:.run", 54198 ], [ ".run", - 238658, + 238650, "abs32", "sec:.run", 354534 ], [ ".run", - 238664, + 238656, "abs32", "sec:.bss", 1584456 ], [ ".run", - 238680, + 238672, "abs32", "sec:.bss", 4361884 ], [ ".run", - 238696, + 238688, "abs32", "sec:.run", 354544 ], [ ".run", - 238720, + 238712, "abs32", "sec:.bss", 4347646 ], [ ".run", - 238734, + 238726, "abs32", "sec:.run", 354565 ], [ ".run", - 238752, + 238744, "abs32", "sec:.bss", 4347646 ], [ ".run", - 238770, + 238762, "abs32", "sec:.run", 354517 ], [ ".run", - 238814, + 238806, "abs32", "sec:.bss", 1584472 ], [ ".run", - 238836, + 238828, "abs32", "sec:.bss", 1584516 ], [ ".run", - 238848, + 238840, "abs32", "sec:.bss", 1584516 ], [ ".run", - 238858, + 238850, "abs32", "sec:.bss", 1584524 ], [ ".run", - 238868, + 238860, "abs32", "sec:.bss", 1584516 ], [ ".run", - 238874, + 238866, "abs32", "sec:.bss", 1584464 ], [ ".run", - 238892, + 238884, "abs32", "sec:.run", 354035 ], [ ".run", - 238902, + 238894, "abs32", "sec:.run", 354585 ], [ ".run", - 238930, + 238922, "abs32", "sec:.run", 354035 ], [ ".run", - 238938, + 238930, "abs32", "sec:.run", 354593 ], [ ".run", - 238976, + 238968, "abs32", "sec:.bss", 1584464 ], [ ".run", - 238994, + 238986, "abs32", "sec:.run", 354035 ], [ ".run", - 239000, + 238992, "abs32", "sec:.run", 354599 ], [ ".run", - 239020, + 239012, "abs32", "sec:.bss", 1584464 ], [ ".run", - 239032, + 239024, "abs32", "sec:.run", 354030 ], [ ".run", - 239040, + 239032, "abs32", "sec:.run", 354604 ], [ ".run", - 239060, + 239052, "abs32", "sec:.bss", 1584464 ], [ ".run", - 239092, + 239084, "abs32", "sec:.run", 354035 ], [ ".run", - 239100, + 239092, "abs32", "sec:.run", 354611 ], [ ".run", - 239126, + 239118, "abs32", "sec:.bss", 1584472 ], [ ".run", - 239138, + 239130, "abs32", "sec:.bss", 1584480 ], [ ".run", - 239322, + 239314, "abs32", "sec:.run", 354045 ], [ ".run", - 239340, + 239332, "abs32", "sec:.run", 354049 ], [ ".run", - 239370, + 239362, "abs32", "sec:.run", 354040 ], [ ".run", - 239376, + 239368, "abs32", "sec:.run", 350920 ], [ ".run", - 239388, + 239380, "abs32", "sec:.run", - 223738 + 223730 ], [ ".run", - 239406, + 239398, "abs32", "sec:.bss", 1584488 ], [ ".run", - 239426, + 239418, "abs32", "sec:.bss", 1584492 ], [ ".run", - 239436, + 239428, "abs32", "sec:.bss", 1584484 ], [ ".run", - 239478, + 239470, "abs32", "sec:.bss", 4347646 ], [ ".run", - 239590, + 239582, "abs32", "sec:.bss", 1584464 ], [ ".run", - 239694, + 239686, "abs32", "sec:.run", 354168 ], [ ".run", - 239700, + 239692, "abs32", "sec:.bss", 1584532 ], [ ".run", - 239732, + 239724, "abs32", "sec:.bss", 4347646 ], [ ".run", - 239750, + 239742, "abs32", "sec:.run", 354517 ], [ ".run", - 239790, + 239782, "abs32", "sec:.run", 108340 ], [ ".run", - 239800, + 239792, "abs32", "sec:.run", - 160672 + 160664 ], [ ".run", - 239812, + 239804, "abs32", "sec:.bss", 3454682 ], [ ".run", - 239856, + 239848, "abs32", "sec:.bss", 3454678 ], [ ".run", - 239928, + 239920, "abs32", "sec:.bss", 4347646 ], [ ".run", - 239950, + 239942, "abs32", "sec:.bss", 4347674 ], [ ".run", - 239984, + 239976, "abs32", "sec:.bss", 4347658 ], [ ".run", - 240072, + 240064, "abs32", "sec:.run", 309140 ], [ ".run", - 240084, + 240076, "abs32", "sec:.run", 354472 ], [ ".run", - 240108, + 240100, "abs32", "sec:.run", 354472 ], [ ".run", - 240134, + 240126, "abs32", "sec:.bss", 4347646 ], [ ".run", - 240198, + 240190, "abs32", "sec:.run", - 223738 + 223730 ], [ ".run", - 240210, + 240202, "abs32", "sec:.run", 350932 ], [ ".run", - 240248, + 240240, "abs32", "sec:.bss", 4347646 ], [ ".run", - 240338, + 240330, "abs32", "sec:.bss", 4347646 ], [ ".run", - 240430, + 240422, "abs32", "sec:.bss", 4361924 ], [ ".run", - 240492, + 240484, "abs32", "sec:.run", 353843 ], [ ".run", - 240536, + 240528, "abs32", "sec:.bss", 4347108 ], [ ".run", - 240548, + 240540, "abs32", "sec:.run", 350960 ], [ ".run", - 240568, + 240560, "abs32", "sec:.bss", 4347100 ], [ ".run", - 240586, + 240578, "abs32", "sec:.run", - 223738 + 223730 ], [ ".run", - 240638, + 240630, "abs32", "sec:.bss", 4358436 ], [ ".run", - 240650, + 240642, "abs32", "sec:.bss", 4357664 ], [ ".run", - 240664, + 240656, "abs32", "sec:.bss", 4361900 ], [ ".run", - 240780, + 240772, "abs32", "sec:.bss", 4347646 ], [ ".run", - 240812, + 240804, "abs32", "sec:.bss", 4361900 ], [ ".run", - 240826, + 240818, "abs32", "sec:.bss", 4357848 ], [ ".run", - 240882, + 240874, "abs32", "sec:.bss", 4347646 ], [ ".run", - 240922, + 240914, "abs32", "sec:.bss", 4361900 ], [ ".run", - 240978, + 240970, "abs32", "sec:.bss", 4361900 ], [ ".run", - 240990, + 240982, "abs32", "sec:.bss", 4357848 ], [ ".run", - 241018, + 241010, "abs32", "sec:.bss", 4347096 ], [ ".run", - 241026, + 241018, "abs32", "sec:.bss", 4347092 ], [ ".run", - 241036, + 241028, "abs32", "sec:.bss", 4347104 ], [ ".run", - 241072, + 241064, "abs32", "sec:.run", 51470 ], [ ".run", - 241088, + 241080, "abs32", "sec:.run", 309140 ], [ ".run", - 241236, + 241228, "abs32", "sec:.bss", 4347646 ], [ ".run", - 241296, + 241288, "abs32", "sec:.bss", 4347646 ], [ ".run", - 241452, + 241444, "abs32", "sec:.bss", 4356448 ], [ ".run", - 241502, + 241494, "abs32", "sec:.run", 354464 ], [ ".run", - 241520, + 241512, "abs32", "sec:.bss", 4347646 ], [ ".run", - 241702, + 241694, "abs32", "sec:.bss", 4347646 ], [ ".run", - 241716, + 241708, "abs32", "sec:.run", 354468 ], [ ".run", - 241734, + 241726, "abs32", "sec:.bss", 4347646 ], [ ".run", - 241914, + 241906, "abs32", "sec:.bss", 4347646 ], [ ".run", - 241936, + 241928, "abs32", "sec:.run", 309206 ], [ ".run", - 241946, + 241938, "abs32", "sec:.bss", 4356444 ], [ ".run", - 241976, + 241968, "abs32", "sec:.run", 354460 ], [ ".run", - 241994, + 241986, "abs32", "sec:.bss", 4347646 ], [ ".run", - 242164, + 242156, "abs32", "sec:.run", 354689 ], [ ".run", - 242190, + 242182, "abs32", "sec:.run", 354689 ], [ ".run", - 242218, + 242210, "abs32", "sec:.bss", 4347646 ], [ ".run", - 242272, + 242264, "abs32", "sec:.bss", 4347706 ], [ ".run", - 242278, + 242270, "abs32", "sec:.bss", 4347674 ], [ ".run", - 242338, + 242330, "abs32", "sec:.bss", 4347646 ], [ ".run", - 242400, + 242392, "abs32", "sec:.bss", 4347706 ], [ ".run", - 242416, + 242408, "abs32", "sec:.bss", 1584460 ], [ ".run", - 242434, + 242426, "abs32", "sec:.run", 354520 ], [ ".run", - 242458, + 242450, "abs32", "sec:.run", 354682 ], [ ".run", - 242476, + 242468, "abs32", "sec:.bss", 4347646 ], [ ".run", - 242498, + 242490, "abs32", "sec:.run", 354517 ], [ ".run", - 242554, + 242546, "abs32", "sec:.bss", 4361924 ], [ ".run", - 242570, + 242562, "abs32", "sec:.bss", 4361924 ], [ ".run", - 242646, + 242638, "abs32", "sec:.run", 353999 ], [ ".run", - 242666, + 242658, "abs32", "sec:.bss", 4347646 ], [ ".run", - 242684, + 242676, "abs32", "sec:.run", 354517 ], [ ".run", - 242714, + 242706, "abs32", "sec:.bss", 1584524 ], [ ".run", - 242720, + 242712, "abs32", "sec:.bss", 1584520 ], [ ".run", - 242730, + 242722, "abs32", "sec:.bss", 1584464 ], [ ".run", - 242748, + 242740, "abs32", "sec:.run", 354035 ], [ ".run", - 242754, + 242746, "abs32", "sec:.run", 354585 ], [ ".run", - 242776, + 242768, "abs32", "sec:.run", 354035 ], [ ".run", - 242814, + 242806, "abs32", "sec:.bss", 4361896 ], [ ".run", - 242858, + 242850, "abs32", "sec:.bss", 4361900 ], [ ".run", - 242904, + 242896, "abs32", "sec:.bss", 4356482 ], [ ".run", - 242914, + 242906, "abs32", "sec:.run", 353962 ], [ ".run", - 242928, + 242920, "abs32", "sec:.run", 354030 ], [ ".run", - 242934, + 242926, "abs32", "sec:.run", 354585 ], [ ".run", - 242956, + 242948, "abs32", "sec:.run", 354038 ], [ ".run", - 242972, + 242964, "abs32", "sec:.run", 353984 ], [ ".run", - 242994, + 242986, "abs32", "sec:.bss", 4347646 ], [ ".run", - 243030, + 243022, "abs32", "sec:.bss", 1584464 ], [ ".run", - 243042, + 243034, "abs32", "sec:.bss", 1584464 ], [ ".run", - 243120, + 243112, "abs32", "sec:.bss", 4347248 ], [ ".run", - 243126, + 243118, "abs32", "sec:.run", 354242 ], [ ".run", - 243228, + 243220, "abs32", "sec:.bss", 4347247 ], [ ".run", - 243244, + 243236, "abs32", "sec:.bss", 4347248 ], [ ".run", - 243284, + 243276, "abs32", "sec:.run", 353889 ], [ ".run", - 243346, + 243338, "abs32", "sec:.run", 354325 ], [ ".run", - 243358, + 243350, "abs32", "sec:.run", 354343 ], [ ".run", - 243402, + 243394, "abs32", "sec:.run", 353970 ], [ ".run", - 243414, + 243406, "abs32", "sec:.run", 353976 ], [ ".run", - 243468, + 243460, "abs32", "sec:.run", 353977 ], [ ".run", - 243510, + 243502, "abs32", "sec:.bss", 4347646 ], [ ".run", - 243536, + 243528, "abs32", "sec:.bss", 4361900 ], [ ".run", - 243544, + 243536, "abs32", "sec:.bss", 4357848 ], [ ".run", - 243590, + 243582, "abs32", "sec:.run", 354030 ], [ ".run", - 243598, + 243590, "abs32", "sec:.run", 354611 ], [ ".run", - 243630, + 243622, "abs32", "sec:.bss", 1584472 ], [ ".run", - 243636, + 243628, "abs32", "sec:.bss", 1584480 ], [ ".run", - 243650, + 243642, "abs32", "sec:.run", 354038 ], [ ".run", - 243656, + 243648, "abs32", "sec:.run", 354599 ], [ ".run", - 243674, + 243666, "abs32", "sec:.run", 354038 ], [ ".run", - 243684, + 243676, "abs32", "sec:.run", 354040 ], [ ".run", - 243690, + 243682, "abs32", "sec:.run", 354050 ], [ ".run", - 243698, + 243690, "abs32", "sec:.run", 350920 ], [ ".run", - 243708, + 243700, "abs32", "sec:.run", - 223738 + 223730 ], [ ".run", - 243722, + 243714, "abs32", "sec:.bss", 1584488 ], [ ".run", - 243740, + 243732, "abs32", "sec:.bss", 1584492 ], [ ".run", - 243750, + 243742, "abs32", "sec:.bss", 1584484 ], [ ".run", - 243854, + 243846, "abs32", "sec:.bss", 4347646 ], [ ".run", - 243870, + 243862, "abs32", "sec:.bss", 4347674 ], [ ".run", - 243886, + 243878, "abs32", "sec:.bss", 4356518 ], [ ".run", - 243924, + 243916, "abs32", "sec:.bss", 4347646 ], [ ".run", - 244030, + 244022, "abs32", "sec:.bss", 4347646 ], [ ".run", - 244044, + 244036, "abs32", "sec:.run", 354443 ], [ ".run", - 244062, + 244054, "abs32", "sec:.bss", 4347646 ], [ ".run", - 244090, + 244082, "abs32", "sec:.run", 353899 ], [ ".run", - 244100, + 244092, "abs32", "sec:.bss", 1584464 ], [ ".run", - 244118, + 244110, "abs32", "sec:.run", 354035 ], [ ".run", - 244124, + 244116, "abs32", "sec:.run", 354585 ], [ ".run", - 244216, + 244208, "abs32", "sec:.run", 353907 ], [ ".run", - 244246, + 244238, "abs32", "sec:.run", 354057 ], [ ".run", - 244256, + 244248, "abs32", "sec:.run", 354068 ], [ ".run", - 244266, + 244258, "abs32", "sec:.run", 354041 ], [ ".run", - 244274, + 244266, "abs32", "sec:.run", 354611 ], [ ".run", - 244306, + 244298, "abs32", "sec:.bss", 1584472 ], [ ".run", - 244312, + 244304, "abs32", "sec:.bss", 1584480 ], [ ".run", - 244340, + 244332, "abs32", "sec:.bss", 3454682 ], [ ".run", - 244358, + 244350, "abs32", "sec:.run", 354364 ], [ ".run", - 244398, + 244390, "abs32", "sec:.bss", 3454678 ], [ ".run", - 244422, + 244414, "abs32", "sec:.run", 51838 ], [ ".run", - 244580, + 244572, "abs32", "sec:.run", 353878 ], [ ".run", - 244634, + 244626, "abs32", "sec:.run", 354520 ], [ ".run", - 244658, + 244650, "abs32", "sec:.run", 354524 ], [ ".run", - 244676, + 244668, "abs32", "sec:.bss", 4347646 ], [ ".run", - 244702, + 244694, "abs32", "sec:.bss", 1584500 ], [ ".run", - 244708, + 244700, "abs32", "sec:.bss", 1584496 ], [ ".run", - 244768, + 244760, "abs32", "sec:.run", 354618 ], [ ".run", - 244804, + 244796, "abs32", "sec:.run", 354030 ], [ ".run", - 244814, + 244806, "abs32", "sec:.run", 354585 ], [ ".run", - 244846, + 244838, "abs32", "sec:.run", 354035 ], [ ".run", - 244906, + 244898, "abs32", "sec:.bss", 4347646 ], [ ".run", - 244920, + 244912, "abs32", "sec:.run", 354460 ], [ ".run", - 244938, + 244930, "abs32", "sec:.bss", 4347646 ], [ ".run", - 244958, + 244950, "abs32", "sec:.bss", 4356482 ], [ ".run", - 244996, + 244988, "abs32", "sec:.bss", 4361996 ], [ ".run", - 245006, + 244998, "abs32", "sec:.run", 353932 ], [ ".run", - 245026, + 245018, "abs32", "sec:.bss", 4347646 ], [ ".run", - 245058, + 245050, "abs32", "sec:.run", 353726 ], [ ".run", - 245068, + 245060, "abs32", "sec:.bss", 4347714 ], [ ".run", - 245074, + 245066, "abs32", "sec:.run", 354267 ], [ ".run", - 245080, + 245072, "abs32", "sec:.bss", 4347706 ], [ ".run", - 245088, + 245080, "abs32", "sec:.bss", 4362044 ], [ ".run", - 245104, + 245096, "abs32", "sec:.run", 354030 ], [ ".run", - 245110, + 245102, "abs32", "sec:.run", 354599 ], [ ".run", - 245134, + 245126, "abs32", "sec:.bss", 1584460 ], [ ".run", - 245144, + 245136, "abs32", "sec:.bss", 1584464 ], [ ".run", - 245162, + 245154, "abs32", "sec:.run", 354030 ], [ ".run", - 245168, + 245160, "abs32", "sec:.run", 354599 ], [ ".run", - 245188, + 245180, "abs32", "sec:.bss", 1584460 ], [ ".run", - 245200, + 245192, "abs32", "sec:.bss", 1584460 ], [ ".run", - 245210, + 245202, "abs32", "sec:.run", 354041 ], [ ".run", - 245232, + 245224, "abs32", "sec:.run", 353962 ], [ ".run", - 245274, + 245266, "abs32", "sec:.bss", 4356502 ], [ ".run", - 245384, + 245376, "abs32", "sec:.bss", 4347646 ], [ ".run", - 245398, + 245390, "abs32", "sec:.run", 354460 ], [ ".run", - 245416, + 245408, "abs32", "sec:.bss", 4347646 ], [ ".run", - 245434, + 245426, "abs32", "sec:.bss", 4356502 ], [ ".run", - 245442, + 245434, "abs32", "sec:.bss", 4356482 ], [ ".run", - 245478, + 245470, "abs32", "sec:.run", 354443 ], [ ".run", - 245496, + 245488, "abs32", "sec:.bss", 4347646 ], [ ".run", - 245524, + 245516, "abs32", "sec:.run", 354396 ], [ ".run", - 245548, + 245540, "abs32", "sec:.bss", 4347646 ], [ ".run", - 245562, + 245554, "abs32", "sec:.run", 354412 ], [ ".run", - 245580, + 245572, "abs32", "sec:.bss", 4347646 ], [ ".run", - 245598, + 245590, "abs32", "sec:.run", 354427 ], [ ".run", - 245616, + 245608, "abs32", "sec:.bss", 4347646 ], [ ".run", - 245644, + 245636, "abs32", "sec:.run", 354076 ], [ ".run", - 245654, + 245646, "abs32", "sec:.run", 353949 ], [ ".run", - 245674, + 245666, "abs32", "sec:.bss", 4347646 ], [ ".run", - 245700, + 245692, "abs32", "sec:.bss", 4356506 ], [ ".run", - 245720, + 245712, "abs32", "sec:.bss", 4356482 ], [ ".run", - 245734, + 245726, "abs32", "sec:.bss", 4356478 ], [ ".run", - 245758, + 245750, "abs32", "sec:.run", 354030 ], [ ".run", - 245764, + 245756, "abs32", "sec:.run", 354585 ], [ ".run", - 245790, + 245782, "abs32", "sec:.run", 354040 ], [ ".run", - 245798, + 245790, "abs32", "sec:.run", 354611 ], [ ".run", - 245830, + 245822, "abs32", "sec:.bss", 1584472 ], [ ".run", - 245836, + 245828, "abs32", "sec:.bss", 1584480 ], [ ".run", - 245850, + 245842, "abs32", "sec:.run", 354040 ], [ ".run", - 245934, + 245926, "abs32", "sec:.run", 354040 ], [ ".run", - 245944, + 245936, "abs32", "sec:.run", 354464 ], [ ".run", - 245962, + 245954, "abs32", "sec:.bss", 4347646 ], [ ".run", - 246032, + 246024, "abs32", "sec:.run", 354041 ], [ ".run", - 246042, + 246034, "abs32", "sec:.run", 354090 ], [ ".run", - 246052, + 246044, "abs32", "sec:.run", 354103 ], [ ".run", - 246062, + 246054, "abs32", "sec:.run", 354460 ], [ ".run", - 246086, + 246078, "abs32", "sec:.bss", 4347646 ], [ ".run", - 246190, + 246182, "abs32", "sec:.run", 354618 ], [ ".run", - 246236, + 246228, "abs32", "sec:.bss", 4347248 ], [ ".run", - 246242, + 246234, "abs32", "sec:.run", 354189 ], [ ".run", - 246270, + 246262, "abs32", "sec:.run", 354464 ], [ ".run", - 246294, + 246286, "abs32", "sec:.bss", 4347646 ], [ ".run", - 246414, + 246406, "abs32", "sec:.bss", 4347248 ], [ ".run", - 246420, + 246412, "abs32", "sec:.run", 354197 ], [ ".run", - 246438, + 246430, "abs32", "sec:.run", 354118 ], [ ".run", - 246448, + 246440, "abs32", "sec:.run", 354182 ], [ ".run", - 246458, + 246450, "abs32", "sec:.run", 353683 ], [ ".run", - 246468, + 246460, "abs32", "sec:.run", 354155 ], [ ".run", - 246478, + 246470, "abs32", "sec:.run", 354142 ], [ ".run", - 246492, + 246484, "abs32", "sec:.bss", 4347248 ], [ ".run", - 246498, + 246490, "abs32", "sec:.run", 354252 ], [ ".run", - 246516, + 246508, "abs32", "sec:.run", 354130 ], [ ".run", - 246570, + 246562, "abs32", "sec:.bss", 4347248 ], [ ".run", - 246576, + 246568, "abs32", "sec:.run", 354232 ], [ ".run", - 246598, + 246590, "abs32", "sec:.bss", 4347248 ], [ ".run", - 246604, + 246596, "abs32", "sec:.run", 354226 ], [ ".run", - 246626, + 246618, "abs32", "sec:.bss", 4347248 ], [ ".run", - 246632, + 246624, "abs32", "sec:.run", 354215 ], [ ".run", - 246654, + 246646, "abs32", "sec:.bss", 4347248 ], [ ".run", - 246660, + 246652, "abs32", "sec:.run", 354206 ], [ ".run", - 246690, + 246682, "abs32", "sec:.run", - 191490 + 191482 ], [ ".run", - 246698, + 246690, "abs32", "sec:.run", 309224 ], [ ".run", - 246734, + 246726, "abs32", "sec:.run", - 246676 + 246668 ], [ ".run", - 246744, + 246736, "abs32", "sec:.run", 309224 ], [ ".run", - 246878, + 246870, "abs32", "sec:.bss", 138587648 ], [ ".run", - 246886, + 246878, "abs32", "sec:.run", 350988 ], [ ".run", - 246892, + 246884, "abs32", "sec:.run", 350990 ], [ ".run", - 246908, + 246900, "abs32", "sec:.run", - 269088 + 269080 ], [ ".run", - 246948, + 246940, "abs32", "sec:.run", - 269130 + 269122 ], [ ".run", - 246992, + 246984, "abs32", "sec:.bss", 4362160 ], [ ".run", - 247000, + 246992, "abs32", "sec:.run", - 269102 + 269094 ], [ ".run", - 247016, + 247008, "abs32", "sec:.bss", 4362160 ], [ ".run", - 247022, + 247014, "abs32", "sec:.run", 351003 ], [ ".run", - 247040, + 247032, "abs32", "sec:.bss", 4362177 ], [ ".run", - 247052, + 247044, "abs32", "sec:.run", - 269130 + 269122 ], [ ".run", - 247070, + 247062, "abs32", "sec:.run", 350988 ], [ ".run", - 247076, + 247068, "abs32", "sec:.run", 351021 ], [ ".run", - 247176, + 247168, "abs32", "sec:.run", 350990 ], [ ".run", - 247212, + 247204, "abs32", "sec:.bss", 138587648 ], [ ".run", - 247218, + 247210, "abs32", "sec:.run", 350988 ], [ ".run", - 247234, + 247226, "abs32", "sec:.run", - 269088 + 269080 ], [ ".run", - 247272, + 247264, "abs32", "sec:.run", - 269130 + 269122 ], [ ".run", - 247302, + 247294, "abs32", "sec:.run", 351021 ], [ ".run", - 247338, + 247330, "abs32", "sec:.bss", 138587648 ], [ ".run", - 247344, + 247336, "abs32", "sec:.run", 351035 ], [ ".run", - 247356, + 247348, "abs32", "sec:.run", - 269088 + 269080 ], [ ".run", - 247384, + 247376, "abs32", "sec:.run", 309276 ], [ ".run", - 247490, + 247482, "abs32", "sec:.run", - 269130 + 269122 ], [ ".run", - 247516, + 247508, "abs32", "sec:.bss", 4362160 ], [ ".run", - 247524, + 247516, "abs32", "sec:.run", - 269102 + 269094 ], [ ".run", - 247542, + 247534, "abs32", "sec:.bss", 4362160 ], [ ".run", - 247548, + 247540, "abs32", "sec:.run", 351003 ], [ ".run", - 247568, + 247560, "abs32", "sec:.bss", 4362177 ], [ ".run", - 247578, + 247570, "abs32", "sec:.run", - 269130 + 269122 ], [ ".run", - 247608, + 247600, "abs32", "sec:.run", - 269116 + 269108 ], [ ".run", - 247654, + 247646, "abs32", "sec:.run", - 269130 + 269122 ], [ ".run", - 247706, + 247698, "abs32", "sec:.run", - 269130 + 269122 ], [ ".run", - 247812, + 247804, "abs32", "sec:.run", - 269130 + 269122 ], [ ".run", - 247846, + 247838, "abs32", "sec:.run", - 269130 + 269122 ], [ ".run", - 247882, + 247874, "abs32", "sec:.bss", 138587648 ], [ ".run", - 247888, + 247880, "abs32", "sec:.run", 350988 ], [ ".run", - 247900, + 247892, "abs32", "sec:.run", - 269088 + 269080 ], [ ".run", - 247948, + 247940, "abs32", "sec:.bss", 4362160 ], [ ".run", - 247956, + 247948, "abs32", "sec:.run", - 269102 + 269094 ], [ ".run", - 247980, + 247972, "abs32", "sec:.bss", 4362160 ], [ ".run", - 248010, + 248002, "abs32", "sec:.bss", 4362672 ], [ ".run", - 248110, + 248102, "abs32", "sec:.run", - 269130 + 269122 ], [ ".run", - 248150, + 248142, "abs32", "sec:.run", 309232 ], [ ".run", - 248160, + 248152, "abs32", "sec:.run", 309228 ], [ ".run", - 248228, + 248220, "abs32", "sec:.run", 309272 ], [ ".run", - 248238, + 248230, "abs32", "sec:.run", 309272 ], [ ".run", - 248282, + 248274, "abs32", "sec:.run", 309240 ], [ ".run", - 248332, + 248324, "abs32", "sec:.run", 309236 ], [ ".run", - 248364, + 248356, "abs32", "sec:.run", - 191410 + 191402 ], [ ".run", - 248386, + 248378, "abs32", "sec:.run", 309236 ], [ ".run", - 248422, + 248414, "abs32", "sec:.run", - 191410 + 191402 ], [ ".run", - 248458, + 248450, "abs32", "sec:.run", - 191410 + 191402 ], [ ".run", - 248464, + 248456, "abs32", "sec:.run", 309228 ], [ ".run", - 248530, + 248522, "abs32", "sec:.run", 309272 ], [ ".run", - 248564, + 248556, "abs32", "sec:.run", - 191410 + 191402 ], [ ".run", - 248570, + 248562, "abs32", "sec:.run", 309232 ], [ ".run", - 248580, + 248572, "abs32", "sec:.run", 309228 ], [ ".run", - 248616, + 248608, "abs32", "sec:.run", - 269088 + 269080 ], [ ".run", - 248644, + 248636, "abs32", "sec:.run", - 192214 + 192206 ], [ ".run", - 248672, + 248664, "abs32", "sec:.run", - 269102 + 269094 ], [ ".run", - 248700, + 248692, "abs32", "sec:.run", - 192214 + 192206 ], [ ".run", - 248728, + 248720, "abs32", "sec:.run", - 269116 + 269108 ], [ ".run", - 248756, + 248748, "abs32", "sec:.run", - 192214 + 192206 ], [ ".run", - 248776, + 248768, "abs32", "sec:.run", - 269130 + 269122 ], [ ".run", - 248802, + 248794, "abs32", "sec:.run", - 192214 + 192206 ], [ ".run", - 249470, + 249462, "abs32", "sec:.run", 79546 ], [ ".run", - 249496, + 249488, "abs32", "sec:.run", - 252516 + 252508 ], [ ".run", - 249560, + 249552, "abs32", "sec:.run", - 252648 + 252640 ], [ ".run", - 249600, + 249592, "abs32", "sec:.run", 79546 ], [ ".run", - 249720, + 249712, "abs32", "sec:.run", - 253256 + 253248 ], [ ".run", - 250446, + 250438, "abs32", "sec:.run", - 253692 + 253684 ], [ ".run", - 250474, + 250466, "abs32", "sec:.run", - 253692 + 253684 ], [ ".run", - 250492, + 250484, "abs32", "sec:.run", - 253094 + 253086 ], [ ".run", - 250658, + 250650, "abs32", "sec:.run", - 253094 + 253086 ], [ ".run", - 250704, + 250696, "abs32", "sec:.run", - 253256 + 253248 ], [ ".run", - 250724, + 250716, "abs32", "sec:.run", - 254340 + 254332 ], [ ".run", - 250838, + 250830, "abs32", "sec:.run", 351086 ], [ ".run", - 250948, + 250940, "abs32", "sec:.run", 351242 ], [ ".run", - 250982, + 250974, "abs32", "sec:.run", 351242 ], [ ".run", - 251316, + 251308, "abs32", "sec:.run", 351038 ], [ ".run", - 251394, + 251386, "abs32", "sec:.run", 351070 ], [ ".run", - 251962, + 251954, "abs32", "sec:.run", 351086 ], [ ".run", - 252090, + 252082, "abs32", "sec:.run", 351242 ], [ ".run", - 252168, + 252160, "abs32", "sec:.run", 351242 ], [ ".run", - 252224, + 252216, "abs32", "sec:.run", 351242 ], [ ".run", - 252340, + 252332, "abs32", "sec:.run", 351038 ], [ ".run", - 252428, + 252420, "abs32", "sec:.run", 351070 ], [ ".run", - 252584, + 252576, "abs32", "sec:.run", 351242 ], [ ".run", - 252676, + 252668, "abs32", "sec:.run", 351242 ], [ ".run", - 253278, + 253270, "abs32", "sec:.run", 351242 ], [ ".run", - 254358, + 254350, "abs32", "sec:.run", 351242 ], [ ".run", - 254534, + 254526, "abs32", "sec:.run", 352400 ], [ ".run", - 254846, + 254838, "abs32", "sec:.run", 352410 ], [ ".run", - 255490, + 255482, "abs32", "sec:.run", 352410 ], [ ".run", - 255498, + 255490, "abs32", "sec:.run", 352410 ], [ ".run", - 255518, + 255510, "abs32", "sec:.run", 352422 ], [ ".run", - 255584, + 255576, "abs32", "sec:.run", 352410 ], [ ".run", - 255812, + 255804, "abs32", "sec:.run", 352410 ], [ ".run", - 255984, + 255976, "abs32", "sec:.run", 352405 ], [ ".run", - 256296, + 256288, "abs32", "sec:.run", 352405 ], [ ".run", - 256472, + 256464, "abs32", "sec:.run", 118184 ], [ ".run", - 257108, + 257100, "abs32", "sec:.run", 352410 ], [ ".run", - 257148, + 257140, "abs32", "sec:.run", 122262 ], [ ".run", - 257188, + 257180, "abs32", "sec:.run", 352410 ], [ ".run", - 257228, + 257220, "abs32", "sec:.run", 122262 ], [ ".run", - 257312, + 257304, "abs32", "sec:.run", 122262 ], [ ".run", - 258104, + 258096, "abs32", "sec:.run", 352410 ], [ ".run", - 258200, + 258192, "abs32", "sec:.run", 309292 ], [ ".run", - 258258, + 258250, "abs32", "sec:.run", 309284 ], [ ".run", - 258570, + 258562, "abs32", "sec:.run", 309284 ], [ ".run", - 258676, + 258668, "abs32", "sec:.run", 309284 ], [ ".run", - 259166, + 259158, "abs32", "sec:.bss", 4363188 ], [ ".run", - 259188, + 259180, "abs32", "sec:.bss", 4363268 ], [ ".run", - 259210, + 259202, "abs32", "sec:.bss", 4363140 ], [ ".run", - 259228, + 259220, "abs32", "sec:.bss", 4363132 ], [ ".run", - 259242, + 259234, "abs32", "sec:.bss", 4363124 ], [ ".run", - 259266, + 259258, "abs32", "sec:.bss", 4363134 ], [ ".run", - 259294, + 259286, "abs32", "sec:.bss", 4363272 ], [ ".run", - 259344, + 259336, "abs32", "sec:.bss", 4363134 ], [ ".run", - 259388, + 259380, "abs32", "sec:.bss", 4363272 ], [ ".run", - 259402, + 259394, "abs32", "sec:.bss", 4363128 ], [ ".run", - 259438, + 259430, "abs32", "sec:.bss", 4363152 ], [ ".run", - 259642, + 259634, "abs32", "sec:.bss", 4363216 ], [ ".run", - 259650, + 259642, "abs32", "sec:.bss", 4363246 ], [ ".run", - 259658, + 259650, "abs32", "sec:.bss", 4363144 ], [ ".run", - 259664, + 259656, "abs32", "sec:.bss", 4363268 ], [ ".run", - 259670, + 259662, "abs32", "sec:.bss", 4363168 ], [ ".run", - 259704, + 259696, "abs32", "sec:.bss", 4362864 ], [ ".run", - 259746, + 259738, "abs32", "sec:.bss", 4363140 ], [ ".run", - 259760, + 259752, "abs32", "sec:.bss", 4363128 ], [ ".run", - 259878, + 259870, "abs32", "sec:.bss", 4363188 ], [ ".run", - 259928, + 259920, "abs32", "sec:.bss", 4363268 ], [ ".run", - 259938, + 259930, "abs32", "sec:.bss", 4363264 ], [ ".run", - 259950, + 259942, "abs32", "sec:.run", 53838 ], [ ".run", - 259956, + 259948, "abs32", "sec:.bss", 4363248 ], [ ".run", - 259978, + 259970, "abs32", "sec:.bss", 4363272 ], [ ".run", - 260024, + 260016, "abs32", "sec:.bss", 4363132 ], [ ".run", - 260246, + 260238, "abs32", "sec:.bss", 4363188 ], [ ".run", - 260298, + 260290, "abs32", "sec:.bss", 4363188 ], [ ".run", - 260308, + 260300, "abs32", "sec:.run", 309292 ], [ ".run", - 260416, + 260408, "abs32", "sec:.bss", 4363188 ], [ ".run", - 260484, + 260476, "abs32", "sec:.bss", 4363188 ], [ ".run", - 260554, + 260546, "abs32", "sec:.bss", 4363188 ], [ ".run", - 260570, + 260562, "abs32", "sec:.bss", 4363124 ], [ ".run", - 260662, + 260654, "abs32", "sec:.bss", 4363188 ], [ ".run", - 260676, + 260668, "abs32", "sec:.bss", 4363188 ], [ ".run", - 260736, + 260728, "abs32", "sec:.bss", 4363188 ], [ ".run", - 260750, + 260742, "abs32", "sec:.bss", 4363124 ], [ ".run", - 260860, + 260852, "abs32", "sec:.bss", 4363188 ], [ ".run", - 260874, + 260866, "abs32", "sec:.bss", 4363124 ], [ ".run", - 260908, + 260900, "abs32", "sec:.run", 309284 ], [ ".run", - 261004, + 260996, "abs32", "sec:.bss", 4363188 ], [ ".run", - 261020, + 261012, "abs32", "sec:.bss", 4363124 ], [ ".run", - 261096, + 261088, "abs32", "sec:.bss", 4363188 ], [ ".run", - 261174, + 261166, "abs32", "sec:.bss", 4363144 ], [ ".run", - 261192, + 261184, "abs32", "sec:.bss", 4363216 ], [ ".run", - 261252, + 261244, "abs32", "sec:.bss", 4363144 ], [ ".run", - 261272, + 261264, "abs32", "sec:.bss", 4363216 ], [ ".run", - 261296, + 261288, "abs32", "sec:.bss", 4363120 ], [ ".run", - 261310, + 261302, "abs32", "sec:.bss", 4363120 ], [ ".run", - 261316, + 261308, "abs32", "sec:.bss", 4362672 ], [ ".run", - 261324, + 261316, "abs32", "sec:.bss", 4362672 ], [ ".run", - 261330, + 261322, "abs32", "sec:.bss", 4362720 ], [ ".run", - 261336, + 261328, "abs32", "sec:.run", 39624 ], [ ".run", - 261342, + 261334, "abs32", "sec:.bss", 138580592 ], [ ".run", - 261348, + 261340, "abs32", "sec:.bss", 4363196 ], [ ".run", - 261356, + 261348, "abs32", "sec:.bss", 4363264 ], [ ".run", - 261362, + 261354, "abs32", "sec:.bss", 4363268 ], [ ".run", - 261390, + 261382, "abs32", "sec:.bss", 4363208 ], [ ".run", - 261396, + 261388, "abs32", "sec:.bss", 4363270 ], [ ".run", - 261402, + 261394, "abs32", "sec:.bss", 4363268 ], [ ".run", - 261420, + 261412, "abs32", "sec:.bss", 4363216 ], [ ".run", - 261466, + 261458, "abs32", "sec:.bss", 4363216 ], [ ".run", - 261498, + 261490, "abs32", "sec:.run", 53838 ], [ ".run", - 261504, + 261496, "abs32", "sec:.bss", 4363248 ], [ ".run", - 261544, + 261536, "abs32", "sec:.bss", 4363188 ], [ ".run", - 261592, + 261584, "abs32", "sec:.bss", 4362712 ], [ ".run", - 261608, + 261600, "abs32", "sec:.bss", 4363188 ], [ ".run", - 261634, + 261626, "abs32", "sec:.bss", 4362696 ], [ ".run", - 261648, + 261640, "abs32", "sec:.bss", 4363188 ], [ ".run", - 261700, + 261692, "abs32", "sec:.bss", 4362692 ], [ ".run", - 261724, + 261716, "abs32", "sec:.bss", 4363260 ], [ ".run", - 261730, + 261722, "abs32", "sec:.bss", 4362688 ], [ ".run", - 261740, + 261732, "abs32", "sec:.bss", 4363268 ], [ ".run", - 261746, + 261738, "abs32", "sec:.bss", 4363124 ], [ ".run", - 261760, + 261752, "abs32", "sec:.bss", 4362684 ], [ ".run", - 261800, + 261792, "abs32", "sec:.bss", 4363132 ], [ ".run", - 261810, + 261802, "abs32", "sec:.bss", 4362700 ], [ ".run", - 261834, + 261826, "abs32", "sec:.bss", 4363216 ], [ ".run", - 261860, + 261852, "abs32", "sec:.bss", 4362680 ], [ ".run", - 261912, + 261904, "abs32", "sec:.bss", 4362688 ], [ ".run", - 261918, + 261910, "abs32", "sec:.bss", 4363260 ], [ ".run", - 261944, + 261936, "abs32", "sec:.bss", 4363256 ], [ ".run", - 261950, + 261942, "abs32", "sec:.bss", 4363268 ], [ ".run", - 261956, + 261948, "abs32", "sec:.bss", 4362684 ], [ ".run", - 261966, + 261958, "abs32", "sec:.bss", 4363124 ], [ ".run", - 261982, + 261974, "abs32", "sec:.bss", 4363216 ], [ ".run", - 261992, + 261984, "abs32", "sec:.bss", 4363246 ], [ ".run", - 262008, + 262000, "abs32", "sec:.bss", 4362684 ], [ ".run", - 262014, + 262006, "abs32", "sec:.bss", 4363256 ], [ ".run", - 262040, + 262032, "abs32", "sec:.bss", 4363268 ], [ ".run", - 262064, + 262056, "abs32", "sec:.bss", 4362704 ], [ ".run", - 262082, + 262074, "abs32", "sec:.bss", 4362700 ], [ ".run", - 262088, + 262080, "abs32", "sec:.bss", 4362680 ], [ ".run", - 262094, + 262086, "abs32", "sec:.bss", 4363188 ], [ ".run", - 262118, + 262110, "abs32", "sec:.bss", 4363188 ], [ ".run", - 262182, + 262174, "abs32", "sec:.bss", 4363188 ], [ ".run", - 262200, + 262192, "abs32", "sec:.bss", 4363216 ], [ ".run", - 262210, + 262202, "abs32", "sec:.bss", 4363246 ], [ ".run", - 262220, + 262212, "abs32", "sec:.bss", 4363256 ], [ ".run", - 262226, + 262218, "abs32", "sec:.bss", 4362684 ], [ ".run", - 262236, + 262228, "abs32", "sec:.bss", 4363216 ], [ ".run", - 262254, + 262246, "abs32", "sec:.bss", 4362680 ], [ ".run", - 262378, + 262370, "abs32", "sec:.bss", 4363188 ], [ ".run", - 262398, + 262390, "abs32", "sec:.bss", 4363256 ], [ ".run", - 262404, + 262396, "abs32", "sec:.bss", 4362684 ], [ ".run", - 262414, + 262406, "abs32", "sec:.bss", 4363216 ], [ ".run", - 262430, + 262422, "abs32", "sec:.run", - 218320 + 218312 ], [ ".run", - 262436, + 262428, "abs32", "sec:.run", 156700 ], [ ".run", - 262442, + 262434, "abs32", "sec:.bss", 4362680 ], [ ".run", - 262450, + 262442, "abs32", "sec:.bss", 4362680 ], [ ".run", - 262458, + 262450, "abs32", "sec:.bss", 4362680 ], [ ".run", - 262464, + 262456, "abs32", "sec:.bss", 4362676 ], [ ".run", - 262482, + 262474, "abs32", "sec:.run", 352482 ], [ ".run", - 262494, + 262486, "abs32", "sec:.run", - 232420 + 232412 ], [ ".run", - 262526, + 262518, "abs32", "sec:.run", 352498 ], [ ".run", - 262534, + 262526, "abs32", "sec:.run", - 232420 + 232412 ], [ ".run", - 262548, + 262540, "abs32", "sec:.run", 352514 ], [ ".run", - 262556, + 262548, "abs32", "sec:.run", - 232420 + 232412 ], [ ".run", - 262580, + 262572, "abs32", "sec:.bss", 4363268 ], [ ".run", - 262586, + 262578, "abs32", "sec:.bss", 138580592 ], [ ".run", - 262592, + 262584, "abs32", "sec:.bss", 4363188 ], [ ".run", - 262598, + 262590, "abs32", "sec:.bss", 4363132 ], [ ".run", - 262622, + 262614, "abs32", "sec:.bss", 4362700 ], [ ".run", - 263024, + 263016, "abs32", "sec:.bss", 4363140 ], [ ".run", - 263052, + 263044, "abs32", "sec:.bss", 4363188 ], [ ".run", - 263162, + 263154, "abs32", "sec:.bss", 4363140 ], [ ".run", - 263190, + 263182, "abs32", "sec:.bss", 4363188 ], [ ".run", - 263206, + 263198, "abs32", "sec:.bss", 4363128 ], [ ".run", - 263226, + 263218, "abs32", "sec:.bss", 4363144 ], [ ".run", - 263332, + 263324, "abs32", "sec:.bss", 4363140 ], [ ".run", - 263360, + 263352, "abs32", "sec:.bss", 4363188 ], [ ".run", - 263378, + 263370, "abs32", "sec:.bss", 4363128 ], [ ".run", - 263550, + 263542, "abs32", "sec:.bss", 4363132 ], [ ".run", - 263618, + 263610, "abs32", "sec:.bss", 4363140 ], [ ".run", - 263646, + 263638, "abs32", "sec:.bss", 4363188 ], [ ".run", - 263704, + 263696, "abs32", "sec:.bss", 4363144 ], [ ".run", - 263728, + 263720, "abs32", "sec:.bss", 4363132 ], [ ".run", - 263746, + 263738, "abs32", "sec:.bss", 4363144 ], [ ".run", - 263776, + 263768, "abs32", "sec:.bss", 4363132 ], [ ".run", - 263810, + 263802, "abs32", "sec:.bss", 4363144 ], [ ".run", - 263834, + 263826, "abs32", "sec:.bss", 4363132 ], [ ".run", - 263866, + 263858, "abs32", "sec:.bss", 4363124 ], [ ".run", - 263894, + 263886, "abs32", "sec:.bss", 4363260 ], [ ".run", - 263900, + 263892, "abs32", "sec:.bss", 4362688 ], [ ".run", - 263908, + 263900, "abs32", "sec:.bss", 4363256 ], [ ".run", - 263914, + 263906, "abs32", "sec:.bss", 4362684 ], [ ".run", - 263926, + 263918, "abs32", "sec:.bss", 4363124 ], [ ".run", - 263952, + 263944, "abs32", "sec:.bss", 4363124 ], [ ".run", - 263984, + 263976, "abs32", "sec:.bss", 4363124 ], [ ".run", - 264690, + 264682, "abs32", "sec:.run", - 264026 + 264018 ], [ ".run", - 265292, + 265284, "abs32", "sec:.run", - 219632 + 219624 ], [ ".run", - 265572, + 265564, "abs32", "sec:.run", - 219632 + 219624 ], [ ".run", - 266386, + 266378, "abs32", "sec:.bss", 4363276 ], [ ".run", - 266396, + 266388, "abs32", "sec:.bss", 4363276 ], [ ".run", - 267602, + 267594, "abs32", "sec:.run", - 266322 + 266314 ], [ ".run", - 267624, + 267616, "abs32", "sec:.run", - 266322 + 266314 ], [ ".run", - 267684, + 267676, "abs32", "sec:.run", - 268038 + 268030 ], [ ".run", - 267770, + 267762, "abs32", "sec:.run", - 266322 + 266314 ], [ ".run", - 267886, + 267878, "abs32", "sec:.run", - 266322 + 266314 ], [ ".run", - 267940, + 267932, "abs32", "sec:.run", - 266322 + 266314 ], [ ".run", - 267976, + 267968, "abs32", "sec:.run", - 266322 + 266314 ], [ ".run", - 268134, + 268126, "abs32", "sec:.run", - 267988 + 267980 ], [ ".run", - 268404, + 268396, "abs32", "sec:.run", - 264592 + 264584 ], [ ".run", - 268468, + 268460, "abs32", "sec:.run", - 264974 + 264966 ], [ ".run", - 268546, + 268538, "abs32", "sec:.run", - 264482 + 264474 ], [ ".run", - 268568, + 268560, "abs32", "sec:.run", - 265176 + 265168 ], [ ".run", - 268590, + 268582, "abs32", "sec:.run", - 265426 + 265418 ], [ ".run", - 268612, + 268604, "abs32", "sec:.run", - 265808 + 265800 ], [ ".run", - 268634, + 268626, "abs32", "sec:.run", - 266022 + 266014 ], [ ".run", - 268654, + 268646, "abs32", "sec:.run", - 265938 + 265930 ], [ ".run", - 268682, + 268674, "abs32", "sec:.run", - 266220 + 266212 ], [ ".run", - 268700, + 268692, "abs32", "sec:.run", - 266322 + 266314 ], [ ".run", - 268966, + 268958, "abs32", "sec:.run", - 207790 + 207782 ], [ ".run", - 268972, + 268964, "abs32", "sec:.run", - 191784 + 191776 ], [ ".run", - 269010, + 269002, "abs32", "sec:.run", - 191644 + 191636 ], [ ".run", - 269020, + 269012, "abs32", "sec:.run", - 207292 + 207284 ], [ ".run", - 269060, + 269052, "abs32", "sec:.run", - 192124 + 192116 ], [ ".run", - 269216, + 269208, "abs32", "sec:.bss", 134218480 ], [ ".run", - 269242, + 269234, "abs32", "sec:.bss", 134218480 ], [ ".run", - 269312, + 269304, "abs32", "sec:.bss", 134218480 ], [ ".run", - 269666, + 269658, "abs32", "sec:.run", - 269210 + 269202 ], [ ".run", - 269712, + 269704, "abs32", "sec:.run", 309308 ], [ ".run", - 269718, + 269710, "abs32", "sec:.run", 309300 ], [ ".run", - 269750, + 269742, "abs32", "sec:.run", 309300 ], [ ".run", - 269766, + 269758, "abs32", "sec:.run", 309304 ], [ ".run", - 269786, + 269778, "abs32", "sec:.run", 309312 ], [ ".run", - 269792, + 269784, "abs32", "sec:.run", - 261286 + 261278 ], [ ".run", - 269806, + 269798, "abs32", "sec:.run", 309300 ], [ ".run", - 269818, + 269810, "abs32", "sec:.run", 309300 ], [ ".run", - 269834, + 269826, "abs32", "sec:.run", 309320 ], [ ".run", - 269844, + 269836, "abs32", "sec:.run", 309320 ], [ ".run", - 269870, + 269862, "abs32", "sec:.run", 309316 ], [ ".run", - 269876, + 269868, "abs32", "sec:.run", 309304 ], [ ".run", - 269888, + 269880, "abs32", "sec:.run", 309300 ], [ ".run", - 269930, + 269922, "abs32", "sec:.bss", 4362864 ], [ ".run", - 269950, + 269942, "abs32", "sec:.run", 309300 ], [ ".run", - 269974, + 269966, "abs32", "sec:.run", 309320 ], [ ".run", - 269988, + 269980, "abs32", "sec:.bss", 4362864 ], [ ".run", - 270096, + 270088, "abs32", "sec:.bss", 4362736 ], [ ".run", - 270226, + 270218, "abs32", "sec:.run", - 262426 + 262418 ], [ ".run", - 270266, + 270258, "abs32", "sec:.run", - 262426 + 262418 ], [ ".run", - 270294, + 270286, "abs32", "sec:.run", - 218178 + 218170 ], [ ".run", - 270312, + 270304, "abs32", "sec:.run", - 218284 + 218276 ], [ ".run", - 270338, + 270330, "abs32", "sec:.run", - 218178 + 218170 ], [ ".run", - 270356, + 270348, "abs32", "sec:.run", - 218284 + 218276 ], [ ".run", - 270384, + 270376, "abs32", "sec:.run", - 218206 + 218198 ], [ ".run", - 270408, + 270400, "abs32", "sec:.run", - 218284 + 218276 ], [ ".run", - 270436, + 270428, "abs32", "sec:.run", 309332 ], [ ".run", - 270442, + 270434, "abs32", "sec:.run", 309324 ], [ ".run", - 270452, + 270444, "abs32", "sec:.bss", 4362992 ], [ ".run", - 270572, + 270564, "abs32", "sec:.run", 309324 ], [ ".run", - 270578, + 270570, "abs32", "sec:.run", 309328 ], [ ".run", - 270596, + 270588, "abs32", "sec:.run", 309324 ], [ ".run", - 270602, + 270594, "abs32", "sec:.bss", 4362992 ], [ ".run", - 270658, + 270650, "abs32", "sec:.run", 82524 ], [ ".run", - 270696, + 270688, "abs32", "sec:.run", 82630 ], [ ".run", - 270728, + 270720, "abs32", "sec:.run", 83770 ], [ ".run", - 270756, + 270748, "abs32", "sec:.run", 83266 ], [ ".run", - 270794, + 270786, "abs32", "sec:.bss", 2479100 ], [ ".run", - 270990, + 270982, "abs32", "sec:.bss", 4347240 ], [ ".run", - 270998, + 270990, "abs32", "sec:.bss", 4347244 ], [ ".run", - 271060, + 271052, "abs32", "sec:.bss", 4347140 ], [ ".run", - 271074, + 271066, "abs32", "sec:.bss", 4347140 ], [ ".run", - 271112, + 271104, "abs32", "sec:.bss", 4347140 ], [ ".run", - 271176, + 271168, "abs32", "sec:.bss", 4347140 ], [ ".run", - 271186, + 271178, "abs32", "sec:.bss", 4347140 ], [ ".run", - 271662, + 271654, "abs32", "sec:.run", 339290 ], [ ".run", - 271726, + 271718, "abs32", "sec:.run", 339394 ], [ ".run", - 271788, + 271780, "abs32", "sec:.run", 339294 ], [ ".run", - 271832, + 271824, "abs32", "sec:.run", 339298 ], [ ".run", - 271900, + 271892, "abs32", "sec:.run", 339310 ], [ ".run", - 271996, + 271988, "abs32", "sec:.run", 339306 ], [ ".run", - 272084, + 272076, "abs32", "sec:.run", 339322 ], [ ".run", - 272178, + 272170, "abs32", "sec:.run", 339326 ], [ ".run", - 272272, + 272264, "abs32", "sec:.run", 339330 ], [ ".run", - 272358, + 272350, "abs32", "sec:.run", 339318 ], [ ".run", - 272454, + 272446, "abs32", "sec:.run", 339314 ], [ ".run", - 272550, + 272542, "abs32", "sec:.run", 339470 ], [ ".run", - 272602, + 272594, "abs32", "sec:.run", 339474 ], [ ".run", - 272660, + 272652, "abs32", "sec:.run", 339334 ], [ ".run", - 272744, + 272736, "abs32", "sec:.run", 339338 ], [ ".run", - 272836, + 272828, "abs32", "sec:.run", 339342 ], [ ".run", - 272934, + 272926, "abs32", "sec:.run", 339346 ], [ ".run", - 273026, + 273018, "abs32", "sec:.run", 339350 ], [ ".run", - 273118, + 273110, "abs32", "sec:.run", 339354 ], [ ".run", - 273208, + 273200, "abs32", "sec:.run", 339358 ], [ ".run", - 273290, + 273282, "abs32", "sec:.run", 339362 ], [ ".run", - 273376, + 273368, "abs32", "sec:.run", 339366 ], [ ".run", - 273474, + 273466, "abs32", "sec:.run", 339370 ], [ ".run", - 273568, + 273560, "abs32", "sec:.run", 339410 ], [ ".run", - 273656, + 273648, "abs32", "sec:.run", 339406 ], [ ".run", - 273742, + 273734, "abs32", "sec:.run", 339374 ], [ ".run", - 273828, + 273820, "abs32", "sec:.run", 339378 ], [ ".run", - 273914, + 273906, "abs32", "sec:.run", 339382 ], [ ".run", - 274000, + 273992, "abs32", "sec:.run", 339454 ], [ ".run", - 274044, + 274036, "abs32", "sec:.run", 309348 ], [ ".run", - 274074, + 274066, "abs32", "sec:.run", 339462 ], [ ".run", - 274118, + 274110, "abs32", "sec:.run", 309352 ], [ ".run", - 274148, + 274140, "abs32", "sec:.run", 339426 ], [ ".run", - 274192, + 274184, "abs32", "sec:.run", 309336 ], [ ".run", - 274222, + 274214, "abs32", "sec:.run", 339434 ], [ ".run", - 274276, + 274268, "abs32", "sec:.run", 309340 ], [ ".run", - 274306, + 274298, "abs32", "sec:.run", 339442 ], [ ".run", - 274360, + 274352, "abs32", "sec:.run", 339446 ], [ ".run", - 274404, + 274396, "abs32", "sec:.run", 309344 ], [ ".run", - 274434, + 274426, "abs32", "sec:.run", 339402 ], [ ".run", - 274520, + 274512, "abs32", "sec:.run", 339302 ], [ ".run", - 274530, + 274522, "abs32", "sec:.run", 339414 ], [ ".run", - 274540, + 274532, "abs32", "sec:.run", 339430 ], [ ".run", - 274550, + 274542, "abs32", "sec:.run", 339438 ], [ ".run", - 274560, + 274552, "abs32", "sec:.run", 339450 ], [ ".run", - 274570, + 274562, "abs32", "sec:.run", 339458 ], [ ".run", - 274580, + 274572, "abs32", "sec:.run", 339466 ], [ ".run", - 274590, + 274582, "abs32", "sec:.run", 339478 ], [ ".run", - 274640, + 274632, "abs32", "sec:.run", 309336 ], [ ".run", - 274646, + 274638, "abs32", "sec:.run", 339430 ], [ ".run", - 274656, + 274648, "abs32", "sec:.run", 309340 ], [ ".run", - 274662, + 274654, "abs32", "sec:.run", 339438 ], [ ".run", - 274672, + 274664, "abs32", "sec:.run", 309344 ], [ ".run", - 274678, + 274670, "abs32", "sec:.run", 339450 ], [ ".run", - 274688, + 274680, "abs32", "sec:.run", 309348 ], [ ".run", - 274694, + 274686, "abs32", "sec:.run", 339458 ], [ ".run", - 274704, + 274696, "abs32", "sec:.run", 309352 ], [ ".run", - 274710, + 274702, "abs32", "sec:.run", 339466 ], [ ".run", - 274766, + 274758, "abs32", "sec:.run", 136682 ], [ ".run", - 274804, + 274796, "abs32", "sec:.run", 131398 ], [ ".run", - 274838, + 274830, "abs32", "sec:.run", 131494 ], [ ".run", - 274886, + 274878, "abs32", "sec:.run", 131864 ], [ ".run", - 274988, + 274980, "abs32", "sec:.run", 131864 ], [ ".run", - 275090, + 275082, "abs32", "sec:.run", 136124 ], [ ".run", - 275138, + 275130, "abs32", "sec:.bss", 3453626 ], [ ".run", - 275232, + 275224, "abs32", "sec:.run", 131658 ], [ ".run", - 275316, + 275308, "abs32", "sec:.run", 136524 ], [ ".run", - 275364, + 275356, "abs32", "sec:.run", 136290 ], [ ".run", - 275436, + 275428, "abs32", "sec:.run", 136406 ], [ ".run", - 275492, + 275484, "abs32", "sec:.run", 134058 ], [ ".run", - 275506, + 275498, "abs32", "sec:.run", 134552 ], [ ".run", - 275520, + 275512, "abs32", "sec:.bss", 3453574 ], [ ".run", - 275548, + 275540, "abs32", "sec:.run", 134552 ], [ ".run", - 275578, + 275570, "abs32", "sec:.bss", 3453574 ], [ ".run", - 275590, + 275582, "abs32", "sec:.run", 134766 ], [ ".run", - 275618, + 275610, "abs32", "sec:.run", 135498 ], [ ".run", - 275682, + 275674, "abs32", "sec:.run", 136348 ], [ ".run", - 275750, + 275742, "abs32", "sec:.run", 135970 ], [ ".run", - 275788, + 275780, "abs32", "sec:.run", 137216 ], [ ".run", - 275832, + 275824, "abs32", "sec:.run", - 275786 + 275778 ], [ ".run", - 275842, + 275834, "abs32", "sec:.bss", 3453328 ], [ ".run", - 275848, + 275840, "abs32", "sec:.run", 138260 ], [ ".run", - 275870, + 275862, "abs32", "sec:.bss", 3453424 ], [ ".run", - 275882, + 275874, "abs32", "sec:.run", 136950 ], [ ".run", - 275946, + 275938, "abs32", "sec:.run", - 168968 + 168960 ], [ ".run", - 275998, + 275990, "abs32", "sec:.run", - 168558 + 168550 ], [ ".run", - 276028, + 276020, "abs32", "sec:.run", - 168756 + 168748 ], [ ".run", - 276216, + 276208, "abs32", "sec:.run", - 281776 + 281768 ], [ ".run", - 276236, + 276228, "abs32", "sec:.run", 112678 ], [ ".run", - 276396, + 276388, "abs32", "sec:.run", 111488 ], [ ".run", - 276402, + 276394, "abs32", "sec:.run", - 202742 + 202734 ], [ ".run", - 276436, + 276428, "abs32", "sec:.run", 352523 ], [ ".run", - 276504, + 276496, "abs32", "sec:.run", - 281768 + 281760 ], [ ".run", - 276592, + 276584, "abs32", "sec:.run", - 276344 + 276336 ], [ ".run", - 276716, + 276708, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", - 276802, + 276794, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", - 277094, + 277086, "abs32", "sec:.run", - 202742 + 202734 ], [ ".run", - 277112, + 277104, "abs32", "sec:.run", 111470 ], [ ".run", - 277126, + 277118, "abs32", "sec:.run", - 281768 + 281760 ], [ ".run", - 277158, + 277150, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", - 277212, + 277204, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", - 277554, + 277546, "abs32", "sec:.run", - 180058 + 180050 ], [ ".run", - 277804, + 277796, "abs32", "sec:.run", - 202742 + 202734 ], [ ".run", - 277940, + 277932, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", - 278116, + 278108, "abs32", "sec:.run", 112472 ], [ ".run", - 278176, + 278168, "abs32", "sec:.run", 113064 ], [ ".run", - 278210, + 278202, "abs32", "sec:.run", 111470 ], [ ".run", - 278324, + 278316, "abs32", "sec:.run", 111470 ], [ ".run", - 278366, + 278358, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", - 278520, + 278512, "abs32", "sec:.run", 111816 ], [ ".run", - 278618, + 278610, "abs32", "sec:.run", - 281776 + 281768 ], [ ".run", - 278644, + 278636, "abs32", "sec:.run", 112678 ], [ ".run", - 278714, + 278706, "abs32", "sec:.run", - 281776 + 281768 ], [ ".run", - 278740, + 278732, "abs32", "sec:.run", 112678 ], [ ".run", - 278796, + 278788, "abs32", "sec:.run", - 281768 + 281760 ], [ ".run", - 279026, + 279018, "abs32", "sec:.run", 112650 ], [ ".run", - 279306, + 279298, "abs32", "sec:.run", - 202742 + 202734 ], [ ".run", - 279320, + 279312, "abs32", "sec:.run", 111470 ], [ ".run", - 279338, + 279330, "abs32", "sec:.run", 111488 ], [ ".run", - 279348, + 279340, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", - 279550, + 279542, "abs32", "sec:.run", - 281776 + 281768 ], [ ".run", - 279860, + 279852, "abs32", "sec:.bss", 4536536 ], [ ".run", - 279866, + 279858, "abs32", "sec:.bss", 4536024 ], [ ".run", - 279946, + 279938, "abs32", "sec:.bss", 4536024 ], [ ".run", - 279952, + 279944, "abs32", "sec:.bss", 4536536 ], [ ".run", - 279962, + 279954, "abs32", "sec:.run", - 179276 + 179268 ], [ ".run", - 279978, + 279970, "abs32", "sec:.run", 112702 ], [ ".run", - 280002, + 279994, "abs32", "sec:.run", 111470 ], [ ".run", - 280060, + 280052, "abs32", "sec:.run", - 180010 + 180002 ], [ ".run", - 280110, + 280102, "abs32", "sec:.run", 111488 ], [ ".run", - 280120, + 280112, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", - 280192, + 280184, "abs32", "sec:.run", - 219632 + 219624 ], [ ".run", - 280772, + 280764, "abs32", "sec:.run", - 219632 + 219624 ], [ ".run", - 281008, + 281000, "abs32", "sec:.bss", 4535512 ], [ ".run", - 281058, + 281050, "abs32", "sec:.bss", 4535512 ], [ ".run", - 281070, + 281062, "abs32", "sec:.run", - 281772 + 281764 ], [ ".run", - 281268, + 281260, "abs32", "sec:.run", 111542 ], [ ".run", - 281282, + 281274, "abs32", "sec:.run", 111488 ], [ ".run", - 281292, + 281284, "abs32", "sec:.run", - 202776 + 202768 ], [ ".run", - 281798, + 281790, "abs32", "sec:.run", 111488 ], [ ".run", - 281816, + 281808, "abs32", "sec:.bss", 4538002 ], [ ".run", - 281844, + 281836, "abs32", "sec:.bss", 4537362 ], [ ".run", - 281910, + 281902, "abs32", "sec:.run", 111488 ], [ ".run", - 281922, + 281914, "abs32", "sec:.bss", 4538007 ], [ ".run", - 281964, + 281956, "abs32", "sec:.run", 111488 ], [ ".run", - 281976, + 281968, "abs32", "sec:.bss", 4538007 ], [ ".run", - 282002, + 281994, "abs32", "sec:.bss", 4537342 ], [ ".run", - 282018, + 282010, "abs32", "sec:.bss", 4538002 ], [ ".run", - 282030, + 282022, "abs32", "sec:.bss", 4537346 ], [ ".run", - 282054, + 282046, "abs32", "sec:.run", - 165832 + 165824 ], [ ".run", - 282072, + 282064, "abs32", "sec:.bss", 4537346 ], [ ".run", - 282086, + 282078, "abs32", "sec:.bss", 4538003 ], [ ".run", - 282104, + 282096, "abs32", "sec:.run", - 165980 + 165972 ], [ ".run", - 282124, + 282116, "abs32", "sec:.bss", 4537048 ], [ ".run", - 282156, + 282148, "abs32", "sec:.bss", 4538003 ], [ ".run", - 282162, + 282154, "abs32", "sec:.bss", 4538004 ], [ ".run", - 282168, + 282160, "abs32", "sec:.bss", 4538005 ], [ ".run", - 282174, + 282166, "abs32", "sec:.bss", 4537346 ], [ ".run", - 282180, + 282172, "abs32", "sec:.run", - 167054 + 167046 ], [ ".run", - 282202, + 282194, "abs32", "sec:.bss", 4538005 ], [ ".run", - 282208, + 282200, "abs32", "sec:.bss", 4538006 ], [ ".run", - 282222, + 282214, "abs32", "sec:.bss", 4537048 ], [ ".run", - 282238, + 282230, "abs32", "sec:.bss", 4537335 ], [ ".run", - 282278, + 282270, "abs32", "sec:.bss", 4538007 ], [ ".run", - 282304, + 282296, "abs32", "sec:.bss", 4538003 ], [ ".run", - 282322, + 282314, "abs32", "sec:.run", - 165980 + 165972 ], [ ".run", - 282350, + 282342, "abs32", "sec:.bss", 4537048 ], [ ".run", - 282370, + 282362, "abs32", "sec:.bss", 4538007 ], [ ".run", - 282388, + 282380, "abs32", "sec:.bss", 4538004 ], [ ".run", - 282410, + 282402, "abs32", "sec:.bss", 4538005 ], [ ".run", - 282432, + 282424, "abs32", "sec:.bss", 4538006 ], [ ".run", - 282438, + 282430, "abs32", "sec:.bss", 4538003 ], [ ".run", - 282444, + 282436, "abs32", "sec:.run", - 165980 + 165972 ], [ ".run", - 282464, + 282456, "abs32", "sec:.bss", 4537048 ], [ ".run", - 282556, + 282548, "abs32", "sec:.bss", 4537346 ], [ ".run", - 282566, + 282558, "abs32", "sec:.run", - 167222 + 167214 ], [ ".run", - 282596, + 282588, "abs32", "sec:.bss", 4537350 ], [ ".run", - 282616, + 282608, "abs32", "sec:.bss", 4537048 ], [ ".run", - 282622, + 282614, "abs32", "sec:.run", 79546 ], [ ".run", - 282638, + 282630, "abs32", "sec:.bss", 4537048 ], [ ".run", - 282644, + 282636, "abs32", "sec:.run", 79516 ], [ ".run", - 282650, + 282642, "abs32", "sec:.bss", 4537350 ], [ ".run", - 282656, + 282648, "abs32", "sec:.bss", 4537270 ], [ ".run", - 282666, + 282658, "abs32", "sec:.bss", 4537346 ], [ ".run", - 282672, + 282664, "abs32", "sec:.bss", 4537274 ], [ ".run", - 282678, + 282670, "abs32", "sec:.run", 81872 ], [ ".run", - 282696, + 282688, "abs32", "sec:.bss", 4537334 ], [ ".run", - 282702, + 282694, "abs32", "sec:.bss", 4537278 ], [ ".run", - 282712, + 282704, "abs32", "sec:.bss", 4537282 ], [ ".run", - 282722, + 282714, "abs32", "sec:.bss", 4537314 ], [ ".run", - 282728, + 282720, "abs32", "sec:.bss", 4537337 ], [ ".run", - 282734, + 282726, "abs32", "sec:.bss", 4537336 ], [ ".run", - 282740, + 282732, "abs32", "sec:.bss", 4537335 ], [ ".run", - 282858, + 282850, "abs32", "sec:.bss", 4537338 ], [ ".run", - 282896, + 282888, "abs32", "sec:.bss", 4537338 ], [ ".run", - 283000, + 282992, "abs32", "sec:.run", 48286 ], [ ".run", - 283028, + 283020, "abs32", "sec:.bss", 4537339 ], [ ".run", - 283044, + 283036, "abs32", "sec:.bss", 4537048 ], [ ".run", - 283064, + 283056, "abs32", "sec:.bss", 4537340 ], [ ".run", - 283072, + 283064, "abs32", "sec:.bss", 4538006 ], [ ".run", - 283084, + 283076, "abs32", "sec:.run", - 167054 + 167046 ], [ ".run", - 283136, + 283128, "abs32", "sec:.bss", 4538004 ], [ ".run", - 283146, + 283138, "abs32", "sec:.bss", 4538005 ], [ ".run", - 283156, + 283148, "abs32", "sec:.bss", 4538006 ], [ ".run", - 283172, + 283164, "abs32", "sec:.bss", 4537346 ], [ ".run", - 283188, + 283180, "abs32", "sec:.bss", 4538006 ], [ ".run", - 283194, + 283186, "abs32", "sec:.bss", 4538003 ], [ ".run", - 283200, + 283192, "abs32", "sec:.run", - 165980 + 165972 ], [ ".run", - 283340, + 283332, "abs32", "sec:.bss", 4538007 ], [ ".run", - 283350, + 283342, "abs32", "sec:.bss", 4538006 ], [ ".run", - 283372, + 283364, "abs32", "sec:.bss", 4537334 ], [ ".run", - 283384, + 283376, "abs32", "sec:.bss", 4537274 ], [ ".run", - 283408, + 283400, "abs32", "sec:.run", 111488 ], [ ".run", - 283438, + 283430, "abs32", "sec:.bss", 4537048 ], [ ".run", - 283462, + 283454, "abs32", "sec:.bss", 4537048 ], [ ".run", - 283472, + 283464, "abs32", "sec:.run", 79516 ], [ ".run", - 283518, + 283510, "abs32", "sec:.bss", 4538007 ], [ ".run", - 283526, + 283518, "abs32", "sec:.bss", 4538006 ], [ ".run", - 283540, + 283532, "abs32", "sec:.bss", 4537048 ], [ ".run", - 283564, + 283556, "abs32", "sec:.bss", 4537270 ], [ ".run", - 283590, + 283582, "abs32", "sec:.bss", 4538003 ], [ ".run", - 283596, + 283588, "abs32", "sec:.bss", 4537048 ], [ ".run", - 283630, + 283622, "abs32", "sec:.bss", 4538006 ], [ ".run", - 283636, + 283628, "abs32", "sec:.bss", 4538003 ], [ ".run", - 283662, + 283654, "abs32", "sec:.bss", 4538006 ], [ ".run", - 283668, + 283660, "abs32", "sec:.bss", 4538003 ], [ ".run", - 283684, + 283676, "abs32", "sec:.run", 111488 ], [ ".run", - 283722, + 283714, "abs32", "sec:.bss", 4537346 ], [ ".run", - 283730, + 283722, "abs32", "sec:.bss", 4538002 ], [ ".run", - 283750, + 283742, "abs32", "sec:.bss", 4537362 ], [ ".run", - 283778, + 283770, "abs32", "sec:.bss", 4538007 ], [ ".run", - 283790, + 283782, "abs32", "sec:.bss", 4537048 ], [ ".run", - 283802, + 283794, "abs32", "sec:.bss", 4538003 ], [ ".run", - 283840, + 283832, "abs32", "sec:.run", 111488 ], [ ".run", - 283852, + 283844, "abs32", "sec:.bss", 4538007 ], [ ".run", - 283898, + 283890, "abs32", "sec:.bss", 4537342 ], [ ".run", - 283908, + 283900, "abs32", "sec:.bss", 4537346 ], [ ".run", - 283934, + 283926, "abs32", "sec:.bss", 4538002 ], [ ".run", - 283948, + 283940, "abs32", "sec:.bss", 4538006 ], [ ".run", - 283954, + 283946, "abs32", "sec:.bss", 4538003 ], [ ".run", - 283972, + 283964, "abs32", "sec:.bss", 4537874 ], [ ".run", - 283988, + 283980, "abs32", "sec:.bss", 4537362 ], [ ".run", - 284060, + 284052, "abs32", "sec:.run", - 167420 + 167412 ], [ ".run", - 284084, + 284076, "abs32", "sec:.bss", 4538007 ], [ ".run", - 284124, + 284116, "abs32", "sec:.bss", 4538002 ], [ ".run", - 284142, + 284134, "abs32", "sec:.bss", 4538007 ], [ ".run", - 284154, + 284146, "abs32", "sec:.bss", 4537346 ], [ ".run", - 284166, + 284158, "abs32", "sec:.run", - 167606 + 167598 ], [ ".run", - 284186, + 284178, "abs32", "sec:.bss", 4538007 ], [ ".run", - 284194, + 284186, "abs32", "sec:.bss", 4537346 ], [ ".run", - 284202, + 284194, "abs32", "sec:.run", - 208738 + 208730 ], [ ".run", - 284234, + 284226, "abs32", "sec:.run", - 207488 + 207480 ], [ ".run", - 284294, + 284286, "abs32", "sec:.run", - 209706 + 209698 ], [ ".run", - 284318, + 284310, "abs32", "sec:.run", - 284426 + 284418 ], [ ".run", - 284400, + 284392, "abs32", "sec:.run", - 209938 + 209930 ], [ ".run", - 284452, + 284444, "abs32", "sec:.run", - 210108 + 210100 ], [ ".run", - 284482, + 284474, "abs32", "sec:.run", - 193048 + 193040 ], [ ".run", - 284494, + 284486, "abs32", "sec:.run", - 193048 + 193040 ], [ ".run", - 284506, + 284498, "abs32", "sec:.run", - 193048 + 193040 ], [ ".run", @@ -86733,7 +86758,7 @@ 284924, "abs32", "sec:.run", - 268956 + 268948 ], [ ".run", @@ -87958,147 +87983,147 @@ 309414, "abs32", "sec:.run", - 169480 + 169472 ], [ ".run", 309418, "abs32", "sec:.run", - 169480 + 169472 ], [ ".run", 309422, "abs32", "sec:.run", - 169480 + 169472 ], [ ".run", 309440, "abs32", "sec:.run", - 169480 + 169472 ], [ ".run", 309444, "abs32", "sec:.run", - 169480 + 169472 ], [ ".run", 309448, "abs32", "sec:.run", - 169480 + 169472 ], [ ".run", 309466, "abs32", "sec:.run", - 169480 + 169472 ], [ ".run", 309470, "abs32", "sec:.run", - 169480 + 169472 ], [ ".run", 309474, "abs32", "sec:.run", - 169480 + 169472 ], [ ".run", 309518, "abs32", "sec:.run", - 169480 + 169472 ], [ ".run", 309522, "abs32", "sec:.run", - 169480 + 169472 ], [ ".run", 309526, "abs32", "sec:.run", - 169480 + 169472 ], [ ".run", 309544, "abs32", "sec:.run", - 169480 + 169472 ], [ ".run", 309548, "abs32", "sec:.run", - 169480 + 169472 ], [ ".run", 309552, "abs32", "sec:.run", - 169480 + 169472 ], [ ".run", 309596, "abs32", "sec:.run", - 171400 + 171392 ], [ ".run", 309618, "abs32", "sec:.run", - 171400 + 171392 ], [ ".run", 309640, "abs32", "sec:.run", - 171400 + 171392 ], [ ".run", 309662, "abs32", "sec:.run", - 171400 + 171392 ], [ ".run", 309684, "abs32", "sec:.run", - 171400 + 171392 ], [ ".run", 309706, "abs32", "sec:.run", - 171400 + 171392 ], [ ".run", @@ -88266,21 +88291,21 @@ 318000, "abs32", "sec:.run", - 261154 + 261146 ], [ ".run", 318004, "abs32", "sec:.run", - 261230 + 261222 ], [ ".run", 318008, "abs32", "sec:.run", - 260976 + 260968 ], [ ".run", @@ -89022,7 +89047,7 @@ 318888, "abs32", "sec:.run", - 225730 + 225722 ], [ ".run", @@ -89036,7 +89061,7 @@ 318912, "abs32", "sec:.run", - 225796 + 225788 ], [ ".run", @@ -89050,7 +89075,7 @@ 318936, "abs32", "sec:.run", - 226168 + 226160 ], [ ".run", @@ -89064,7 +89089,7 @@ 318960, "abs32", "sec:.run", - 225854 + 225846 ], [ ".run", @@ -89078,7 +89103,7 @@ 318984, "abs32", "sec:.run", - 230760 + 230752 ], [ ".run", @@ -89260,14 +89285,14 @@ 338894, "abs32", "sec:.run", - 274518 + 274510 ], [ ".run", 339006, "abs32", "sec:.run", - 274528 + 274520 ], [ ".run", @@ -90212,70 +90237,70 @@ 350532, "abs32", "sec:.run", - 207010 + 207002 ], [ ".run", 350536, "abs32", "sec:.run", - 206902 + 206894 ], [ ".run", 350540, "abs32", "sec:.run", - 205264 + 205256 ], [ ".run", 350544, "abs32", "sec:.run", - 206794 + 206786 ], [ ".run", 350552, "abs32", "sec:.run", - 205258 + 205250 ], [ ".run", 350556, "abs32", "sec:.run", - 205246 + 205238 ], [ ".run", 350560, "abs32", "sec:.run", - 205314 + 205306 ], [ ".run", 350564, "abs32", "sec:.run", - 206642 + 206634 ], [ ".run", 350568, "abs32", "sec:.run", - 204650 + 204642 ], [ ".run", 350572, "abs32", "sec:.run", - 205462 + 205454 ], [ ".run", @@ -94695,7 +94720,7 @@ "freestanding.c": "698d66b43a956e789c8b3057375a195db12e9a88968d2fbb3c7ce09a8021b575", "fxmap.c": "4a3b7e97a68745e3a1c57fb594107a95d15e2b8c1746a5b57b8e680215bc80cf", "fxpage.c": "9ea7a4ab8f4106428235efb80daf925745bc1f077c581f22c8a1514564314448", - "identity.c": "a4a9d1f8ca37e6c6e1d108cad9fd7534dbeb038ced273e881fff0bc784df6a85", + "identity.c": "0c8c940407e8221c6504123c2aba3954415d60c8109c1175c2f33b7958e845b3", "loader.c": "0466752cf9824150251c61a2bdbcd45266ff1ea2b0d96c02406a715b960f7174", "machine_admission.c": "fb551bab034a1b789bb80437967778cd0ca179ac29190f839e7d1ec3892bc862", "machine_admission_runtime.c": "f297a9ec0f2eefe04b3b39a29d016a41fda7cfec139601bde836f6c7963ddc3c", @@ -94704,7 +94729,7 @@ "machine_lifetime.c": "8bf0a66c8113f2e608c6e4115aef67e056e13f8395f67b172342d9d296496f5a", "machine_parts.c": "baa268c5ef01965e9ad865a9d1d88ac4c1e68f363c83b28723fcb196ebe7cf3e", "machine_registry.c": "0f66f040be44457de946f5581947b61320741bc2f3ee683b29505cf599dfbde4", - "manager.c": "ca6b4d86b6aeaf0405c94f8e4bb9c935ae9bbee619241c741a2e80782bf33eb3", + "manager.c": "81194c9dc21dc3b8ce55ae871aab69034b77cfcc8e8fc72bfd86fc6540504ea8", "midi_generators.c": "13d583774ee32e86ec673bbfd1d2b51e40af80947add9fa1b2c98844c079fedf", "modset.c": "15781a4affe9007b3f3049452ef8e6396d49099b32818f9f03aa5610fb9d7327", "octamod_log.c": "cd6ff5e5bd291bd35a61a5acd07acc29dfa9137362bc05e2bbb23592614a56d6", diff --git a/src/engine/assets/octatrack-module-packages.json b/src/engine/assets/octatrack-module-packages.json index 6143c6539e..72a3b77706 100644 --- a/src/engine/assets/octatrack-module-packages.json +++ b/src/engine/assets/octatrack-module-packages.json @@ -338,7 +338,7 @@ "bytes": 2636, "sha256": "7aedb56f64cc17732efd367a3a1e4a85f73196924e4bf362411fa23217639408", "path": "octatrack-modules/sidechain-compressor/0.2.2-experimental.mwrm", - "requiredBase": "b1c76d06dbe7638df87831d9d6793deb0dcb7cdc169101d96627b7b05c894f9a" + "requiredBase": "bd1ed4323f053874308bd42f9c96a332f3c3c90aab8636038455e6077e4fe409" }, { "id": "output-matrix", @@ -354,7 +354,7 @@ "bytes": 3740, "sha256": "0304acd09210badf33e888c09f111a887f221a3842aaeb781ecd20147044203b", "path": "octatrack-modules/output-matrix/0.1.1-experimental.mwrm", - "requiredBase": "b1c76d06dbe7638df87831d9d6793deb0dcb7cdc169101d96627b7b05c894f9a" + "requiredBase": "bd1ed4323f053874308bd42f9c96a332f3c3c90aab8636038455e6077e4fe409" }, { "id": "cc-map", @@ -370,7 +370,7 @@ "bytes": 966, "sha256": "c7cd39a5f645d69279d3a288c40b8366e6638acdc042cf0fe68dfb9964a68ea2", "path": "octatrack-modules/cc-map/0.1.2-experimental.mwrm", - "requiredBase": "b1c76d06dbe7638df87831d9d6793deb0dcb7cdc169101d96627b7b05c894f9a" + "requiredBase": "bd1ed4323f053874308bd42f9c96a332f3c3c90aab8636038455e6077e4fe409" }, { "id": "quantize-live-rec-toggle", @@ -448,7 +448,7 @@ "bytes": 1818, "sha256": "71bd73bdab4b32b9a4fdbc48d0f89ab07f8dada0213f6a76216f8f1aebbad8bd", "path": "octatrack-modules/recorder-loop-fix/0.1.0-experimental.mwrm", - "requiredBase": "b1c76d06dbe7638df87831d9d6793deb0dcb7cdc169101d96627b7b05c894f9a" + "requiredBase": "bd1ed4323f053874308bd42f9c96a332f3c3c90aab8636038455e6077e4fe409" }, { "id": "analog-bassdrum", @@ -464,7 +464,7 @@ "bytes": 26172, "sha256": "99581aece3500d9a7c5d1b389afc8ff1697086d323bd28dbf01b4def22acacbc", "path": "octatrack-modules/analog-bassdrum/0.1.7-experimental.mwrm", - "requiredBase": "b1c76d06dbe7638df87831d9d6793deb0dcb7cdc169101d96627b7b05c894f9a", + "requiredBase": "bd1ed4323f053874308bd42f9c96a332f3c3c90aab8636038455e6077e4fe409", "requires": 0, "claims": 1, "entries": 1 From a22fa4c8b4c147916370c62ba360cea9a80c7bd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Fri, 20 Nov 2026 10:22:42 +0100 Subject: [PATCH 183/415] Octatrack base: name the wake margin by its variable and its measured source Co-Authored-By: Claude Opus 5.5 --- sdk/machines/octatrack/elekloader/machine_registry.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/machines/octatrack/elekloader/machine_registry.c b/sdk/machines/octatrack/elekloader/machine_registry.c index ce1eb180b3..ba23065b24 100644 --- a/sdk/machines/octatrack/elekloader/machine_registry.c +++ b/sdk/machines/octatrack/elekloader/machine_registry.c @@ -186,7 +186,7 @@ volatile uint32_t mw_cpu_hot = 850u; /* per mille; development bases may change /* A pick that wakes a resting machine's module (below, "Machines that rest") is judged with this on top of its price: * what the module's hooks and detours cost the frame again once awake, which the meter cannot show before. The most * of the 24 packages measured at rest on an MKII (20 November 2026, base 0.7.10 twin, playing): POLY8 0.3.3, 2.3 - * points; MKII tracks here are about one meter point a frame point. Per mille of the meter. */ + * points of the frame interrupt and 2.6 of the CPU meter. Per mille of the meter. */ volatile uint32_t mw_wake_mille = 30u; volatile uint32_t mw_cpu_allowance = 45u, mw_cpu_booked; /* percent of a frame; development bases may change the allowance */ volatile uint8_t mw_cpu_refused; /* the current Part's tracks past the allowance: the frame interrupt reads it whole */ @@ -526,7 +526,7 @@ unsigned mw_assign(Part *part, unsigned track, unsigned row) if (old != next) { /* a unit this machine's renders would make busy does not take it */ uint32_t cpu = modwerk_status_cpu_load(); /* A resting machine's module also brings its hooks and detours back into the frame: the meter does not - * hold them yet, so its pick is judged with them (MW_WAKE_MILLE) on top. */ + * hold them yet, so its pick is judged with them (mw_wake_mille) on top. */ if (cpu + 10u * cpu_price(next) + (waking ? mw_wake_mille : 0u) >= mw_cpu_hot) { mw_cpu_refusals = mw_cpu_refusals + 1u, mw_cpu_refusal_tracks |= 1u << track; modwerk_status_cpu_hot(track, next->label, cpu); From 14c65a5a146f84876bbfc62abdb095198adbdbca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Fri, 20 Nov 2026 10:31:18 +0100 Subject: [PATCH 184/415] Octatrack: USB Audio builds as a runtime package (20 channels), with an emulator verifier usb_audio_package.py builds the authored USB AUDIO OUT TRACKS MAIN CUE source as a package for a base that takes a module's USB function. The import stays exact; at guarded seams its interrupt, bus-end and producer shims return to the base and are subscribed to ev_usb_isr, ev_usb_bus_end and ev_usb_frame, the class requests are answered by an ev_usb_control handler that calls stock's usb_ep0_send (0x4001d498) instead of jumping into the dispatcher's tail, and its descriptors are the ot_usb_functions block, cut from the configuration a linked base sends. SET_INTERFACE, GET_INTERFACE and the EP0 page fix stay its own three stock sites, by SHA-256 guard. The transfer descriptors are aligned to 32 bytes at run time: a package's image sits at a 16-byte boundary of the pool. 3,292 bytes of code and data, 94,116 of bss, a 118-byte function block; the three guards match OS 1.40C. scripts/verify-octatrack-usb-audio-package.mjs, in ot_emu with --frame on a development base with USB MIDI alone (20 November 2026): a trial reconnects, the host reads the 259-byte configuration with six interfaces a linked base sends, the clock source answers 44.1 kHz, alternate setting 1 gives 16 packets of 800 or 880 bytes (10 or 11 frames of 20 channels) in 16 polls with no underrun or overrun counted, alternate setting 0 closes the stream, and a rollback restores the first configuration. Emulator only: no host driver, no audio content, not on a unit; the other five layouts are not built yet. Co-Authored-By: Claude Fable 5.2 --- .../verify-octatrack-usb-audio-package.mjs | 125 +++++++++ .../module-adapters/usb_audio_package.py | 262 ++++++++++++++++++ sdk/tests/test_usb_audio_package.py | 74 +++++ 3 files changed, 461 insertions(+) create mode 100644 scripts/verify-octatrack-usb-audio-package.mjs create mode 100644 sdk/machines/octatrack/module-adapters/usb_audio_package.py create mode 100644 sdk/tests/test_usb_audio_package.py diff --git a/scripts/verify-octatrack-usb-audio-package.mjs b/scripts/verify-octatrack-usb-audio-package.mjs new file mode 100644 index 0000000000..f0aab600e5 --- /dev/null +++ b/scripts/verify-octatrack-usb-audio-package.mjs @@ -0,0 +1,125 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +// USB Audio as a runtime package on a private Octatrack base in ot_emu (usb_audio_package.py, usb_function.c). +// +// python3 -B sdk/machines/octatrack/module-adapters/usb_audio_package.py -o /private/usb-audio.mwrm +// ot_emu --image BUILD/MAIN.raw --usb-host /tmp/ot-usb.sock --frame --ms 900000 & # the adapted ot_emu; --frame runs the producer +// node scripts/verify-octatrack-usb-audio-package.mjs /tmp/ot-usb.sock /private/usb-audio.mwrm +// +// On a base with USB MIDI alone: a trial of the package makes the base reconnect; the host then reads a configuration +// with AudioControl and AudioStreaming behind the base's own interfaces, the clock source answers its sample rate, +// alternate setting 1 opens the stream and EP3 IN sends packets of whole 20-channel frames at the high-speed rate; +// alternate setting 0 closes it; a rollback takes the function out again and the configuration is the first one. +// Emulator evidence of the package's and the base's code only: no host driver, no audio content check, no hardware. +import assert from 'node:assert/strict' +import { readFileSync } from 'node:fs' +import { sha } from '../vendor/elekloader/kit/src/bytes.ts' +import { UploadSession } from '../src/engine/elekloader/upload-session.ts' +import { findVendorInterface, UsbVendorTransport } from '../src/engine/elekloader/upload-usb.ts' +import { diagnostics } from '../src/dev/octatrack-usb-lifecycle.ts' +import { Bench, device } from './usb-bench.mjs' + +const [socket, file] = process.argv.slice(2) +if (!socket || !file) throw new Error('Usage: verify-octatrack-usb-audio-package.mjs BENCH-SOCKET usb-audio.mwrm') +const AC = 4, AS = 5, CLOCK = 0x10, FRAME_BYTES = 80 // 8 tracks, MAIN and CUE, stereo, 4 bytes a sample +const wait = ms => new Promise(resolve => setTimeout(resolve, ms)) +const bench = new Bench(socket) +await bench.ready() +const unit = device(bench) + +async function enumerate() { + await bench.command('speed hs'); await bench.command('reset'); await wait(300) + assert.equal((await bench.controlIn(0x80, 6, 0x0100, 0, 18))?.length, 18) + await bench.transaction(async () => { await bench.setup(0x00, 5, 1, 0, 0); await bench.command('in 0 64') }) + const header = await bench.controlIn(0x80, 6, 0x0200, 0, 9) + const cfg = await bench.controlIn(0x80, 6, 0x0200, 0, header.readUInt16LE(2)) + const other = await bench.controlIn(0x80, 6, 0x0700, 0, 512) + await bench.transaction(async () => { await bench.setup(0x00, 9, 1, 0, 0); await bench.command('in 0 64') }) + const interfaces = [] + for (let i = 0; i + 2 <= cfg.length && cfg[i] >= 2; i += cfg[i]) if (cfg[i + 1] === 4) interfaces.push({ interfaceNumber: cfg[i + 2], alternate: cfg[i + 3], alternates: [{ + interfaceClass: cfg[i + 5], interfaceSubclass: cfg[i + 6], interfaceProtocol: cfg[i + 7], endpoints: Array.from({ length: cfg[i + 4] }) }] }) + return { cfg, other, interfaces, total: header.readUInt16LE(2), count: header[4] } +} +const first = await enumerate(), index = findVendorInterface(first) +const transport = new UsbVendorTransport(unit, index, { pollMs: 5 }) +const identity = await transport.identify() +console.log(`base ${identity.base.slice(0, 16)}…: configuration ${first.total} bytes, ${first.count} interfaces`) +assert.equal(first.count, 4, 'a base with USB MIDI alone') +const usb = async () => { const reply = await bench.controlIn(0xc1, 41, 0, index, 8); return reply ? [...reply] : null } +assert.deepEqual(await usb(), [0, 0, 0, 0, 0, 0, 0, 0]) +const data = new Uint8Array(readFileSync(file)), pkg = { base: identity.base, data, sha256: sha(data) } + +async function stopping(step) { + for (const start = Date.now(); ; await wait(200)) { + try { return await step() } catch (error) { if (!['unsafe', 'needs-recovery'].includes(error.status?.result) || Date.now() - start > 5000) throw error } + } +} +async function settle(label, live) { + const seen = [] + let now + for (const start = Date.now(); Date.now() - start < 240000; await wait(20)) { + const s = await usb(), key = JSON.stringify(s?.slice(0, 5)) + if (seen.at(-1) !== key) { seen.push(key); console.log(` ${label}: USB FUNCTION ${key}`) } + if (s?.[0] === 3 && !now) now = await enumerate() + if (s?.[0] === 0 && s[1] === live) { assert.ok(now, label + ': the unit went off the bus and came back'); return now } + } + throw new Error(label + ': the reconnect did not settle') +} +const noData = (type, request, value, target) => bench.transaction(async () => { + await bench.setup(type, request, value, target, 0) + return (await bench.command('in 0 64'))[2] !== 'stall' +}) +const alternate = async () => (await bench.controlIn(0x81, 10, 0, AS, 1))?.[0] + +const session = await UploadSession.connect(transport, identity.base, { timeoutMs: 30000 }) +await session.stage(pkg); await session.activate(); await session.startTrial() +let now = await settle('trial', 1) +assert.equal(now.count, 6) +assert.ok(now.total > first.total && now.other.length === now.total) +assert.equal(now.cfg.subarray(5, first.total).toString('hex'), first.cfg.subarray(5).toString('hex'), 'the base’s own part is unchanged') +const audio = now.interfaces.filter(i => i.interfaceNumber >= AC) +assert.deepEqual(audio.map(i => [i.interfaceNumber, i.alternate, i.alternates[0].interfaceClass, i.alternates[0].interfaceSubclass, i.alternates[0].endpoints.length]), + [[AC, 0, 1, 1, 0], [AS, 0, 1, 2, 0], [AS, 1, 1, 2, 1]], 'AudioControl, and AudioStreaming with its streaming alternate') +console.log(` configuration ${now.total} bytes, ${now.count} interfaces: AudioControl ${AC}, AudioStreaming ${AS}`) +assert.ok((await diagnostics(unit, index)).active, 'the trial is still open after the base’s own reconnect') + +// The clock source: 44.1 kHz, valid; its range has one entry. A control nobody implements stalls. +assert.equal((await bench.controlIn(0xa1, 1, 0x0100, CLOCK << 8 | AC, 4))?.toString('hex'), '44ac0000') +assert.equal((await bench.controlIn(0xa1, 1, 0x0200, CLOCK << 8 | AC, 1))?.toString('hex'), '01') +assert.equal((await bench.controlIn(0xa1, 2, 0x0100, CLOCK << 8 | AC, 14))?.subarray(0, 2).toString('hex'), '0100') +assert.equal(await bench.controlIn(0xa1, 1, 0x0300, CLOCK << 8 | AC, 1), null) +assert.equal((await transport.identify()).base, identity.base) + +// The stream: alternate setting 1, then EP3 IN at the high-speed poll rate. +assert.equal(await alternate(), 0) +await bench.command('isohz 4000') +assert.ok(await noData(0x01, 11, 1, AS), 'SET_INTERFACE alternate 1') +assert.equal(await alternate(), 1) +const lengths = [] +let nonempty = 0 +for (let i = 0; i < 256 && nonempty < 16; ++i) { + const reply = await bench.command('in 3 1024') + assert.notEqual(reply[2], 'stall') + const packet = Buffer.from(reply[2] ?? '', 'hex') + lengths.push(packet.length) + if (!packet.length) continue + assert.ok(packet.length % FRAME_BYTES === 0 && [10, 11, 12].includes(packet.length / FRAME_BYTES), `a packet of ${packet.length} bytes is not 10 to 12 whole frames`) + ++nonempty +} +assert.equal(nonempty, 16, 'sixteen packets with audio frames; lengths ' + lengths.join(',')) +console.log(` stream: ${lengths.length} polls, 16 packets of ${[...new Set(lengths.filter(Boolean))].sort().join(' or ')} bytes`) +const counters = await bench.controlIn(0xc0, 0x55, 0, 0, 60) +assert.equal(counters?.length, 60) +console.log(` counters: consumed ${counters.readUInt32BE(0)}, overruns ${counters.readUInt32BE(8)}, underruns ${counters.readUInt32BE(12)}`) +assert.ok(counters.readUInt32BE(0) > 0, 'frames were pulled from the ring') +assert.ok(await noData(0x01, 11, 0, AS), 'SET_INTERFACE alternate 0') +assert.equal(await alternate(), 0) +assert.ok((await diagnostics(unit, index)).active, 'the trial is still open after the stream') + +await stopping(() => session.holdTrial()); await stopping(() => session.rollback()) +now = await settle('rollback', 0) +assert.equal(now.count, 4) +assert.equal(now.cfg.toString('hex'), first.cfg.toString('hex')) +assert.equal(await bench.controlIn(0xa1, 1, 0x0100, CLOCK << 8 | AC, 4), null, 'no clock source without the module') +await session.leaveUploadMode() +console.log('USB Audio as a package in the emulator: it enumerates behind the base’s interfaces, answers its clock, streams 20-channel packets at high speed, closes, and a rollback takes it out.') +process.exit(0) diff --git a/sdk/machines/octatrack/module-adapters/usb_audio_package.py b/sdk/machines/octatrack/module-adapters/usb_audio_package.py new file mode 100644 index 0000000000..74f101b330 --- /dev/null +++ b/sdk/machines/octatrack/module-adapters/usb_audio_package.py @@ -0,0 +1,262 @@ +#!/usr/bin/env python3 +# SPDX-License-Identifier: GPL-3.0-or-later +"""USB Audio as a runtime package: the authored producer on a base that takes a module's USB function. + + python3 -B sdk/machines/octatrack/module-adapters/usb_audio_package.py -o usb-audio.mwrm \\ + [--layout 'USB AUDIO OUT TRACKS MAIN CUE'] [--stock OS.bin --upstream ELEKLOADER] + +Development only: emulator evidence, never run on a unit. The package holds no stock bytes (its three stock +sites carry SHA-256 guards) and needs a base with ot_usb_functions and the four USB hooks (events.json, +elekloader/usb_function.c); a base that links USB Audio in refuses it. + +The imported source (sdk/octabam/modules/usb-audio-out-tracks-main-cue/usbaudio.s) stays exact. As in a base that +links it in (base_usb_functions.py), its interfaces move to 4 and 5, the packet reader gets its watermark and its +rings and DMA buffers go to bss. For a package, at guarded seams: + +- its four shims at sites the base owns end in rts and are called as hooks: the USB interrupt (ev_usb_isr), the bus + reset and session end (ev_usb_bus_end), the frame interrupt's block (ev_usb_frame); the class requests are answered + by a handler of the hook's own shape (ev_usb_control), which calls stock's usb_ep0_send instead of jumping into the + dispatcher's tail; +- its descriptors are the block ot_usb_functions takes, cut from the same composed configuration a linked base sends; +- SET_INTERFACE, GET_INTERFACE and the EP0 page fix stay its own stock sites, which no base without it patches; +- its transfer descriptors are aligned at run time: a package's image sits at a 16-byte boundary of the pool, and + the controller needs 32. +""" +import argparse +import hashlib +import importlib.util +import struct +import subprocess +import sys +import tempfile +from pathlib import Path + +HERE = Path(__file__).resolve().parent +ROOT = HERE.parents[3] +MODULE = 'usb-audio-out-tracks-main-cue' +TITLE = 'USB AUDIO' +SUPPORTED = ('USB AUDIO OUT TRACKS MAIN CUE',) # the 20-channel layout first; the others follow +USB_EP0_SEND = 0x4001d498 # stock: usb_ep0_send(length, buffer), the routine EP0_SEND_TAIL (0x4001de5c) calls + + +def load(name, path): + spec = importlib.util.spec_from_file_location(name, path) + module = importlib.util.module_from_spec(spec); spec.loader.exec_module(module) + return module + + +def once(text, old, new, what): + if text.count(old) != 1: + raise ValueError('The authored USB Audio source changed at %s; review the package seam.' % what) + return text.replace(old, new) + + +def function_block(functions, usb, descriptors, layout, high_speed, other_speed): + """The audio function's descriptors as they follow the base's own in a composed configuration.""" + without = functions.configuration(usb, descriptors, high_speed, other_speed, None) + whole = functions.configuration(usb, descriptors, high_speed, other_speed, layout) + block = whole[len(without):] + if (whole[9:len(without)] != without[9:] or whole[4] != without[4] + 2 + or struct.unpack_from('I', symbols[shim]) + sites.append((address, hashlib.sha256(bytes.fromhex(stock)).digest(), code, [2], 0, len(stock) // 2)) + if len(sites) != 3: + raise ValueError('USB Audio\'s own stock sites changed.') + loader.unevented(sites) + entries = [dict(event='ot_usb_functions', fn='mwua_function', order=50), dict(event='ev_usb_isr', fn='mwua_isr', order=50), + dict(event='ev_usb_bus_end', fn='mwua_bus_end', order=50), dict(event='ev_usb_control', fn='mwua_control', order=50), + dict(event='ev_usb_frame', fn='mwua_frame', order=50)] + hooks = loader.subscribe([loader.NONE] * len(loader.HANDLERS), entries, symbols) + data = loader.package(image, bss, hooks, offsets, sites, name=MODULE, hashed=True, title=TITLE, abi=8) + return data, dict(image=len(image), bss=bss, relocations=len(offsets), sites=[hex(s[0]) for s in sites], + block=len(blocks[0]), stock_sites=sites) + + +def main(): + parser = argparse.ArgumentParser(description=__doc__.split('\n\n')[0]) + parser.add_argument('-o', '--output', type=Path, required=True) + parser.add_argument('--layout', default=SUPPORTED[0]) + parser.add_argument('--cross', default='m68k-elf-') + parser.add_argument('--stock', type=Path, help='check the three sites\' guards against this OS file') + parser.add_argument('--upstream', type=Path, help='the Elekloader checkout --stock is read with') + args = parser.parse_args() + data, facts = build(args.layout, args.cross) + if args.stock: + if not args.upstream: + parser.error('--stock needs --upstream') + sys.path.insert(0, str(ROOT / 'sdk/runtime/loader')) + import build as loader + loader.check_stock(facts['stock_sites'], args.stock, args.upstream) + args.output.write_bytes(data) + print('%s: %s, %d bytes of code and data, %d of bss, %d relocations, sites %s, a %d-byte function block' % ( + args.output, args.layout, facts['image'], facts['bss'], facts['relocations'], ', '.join(facts['sites']), facts['block'])) + + +if __name__ == '__main__': + main() diff --git a/sdk/tests/test_usb_audio_package.py b/sdk/tests/test_usb_audio_package.py new file mode 100644 index 0000000000..bbba731a7f --- /dev/null +++ b/sdk/tests/test_usb_audio_package.py @@ -0,0 +1,74 @@ +# SPDX-License-Identifier: GPL-3.0-or-later +"""USB Audio as a runtime package (module-adapters/usb_audio_package.py): what the builder makes of the authored source.""" +import importlib.util +import shutil +import struct +import sys +import unittest +from pathlib import Path + +ROOT = Path(__file__).resolve().parents[2] +OT = ROOT / 'sdk/machines/octatrack' +sys.path.insert(0, str(OT)) +import events # noqa: E402 + + +def load(name, path): + spec = importlib.util.spec_from_file_location(name, path) + module = importlib.util.module_from_spec(spec); spec.loader.exec_module(module) + return module + + +builder = load('usb_audio_package', OT / 'module-adapters/usb_audio_package.py') +usb = load('modwerk_usb_base', OT / 'elekloader/usb_base.py') +functions = load('modwerk_base_usb_functions', OT / 'module-adapters/base_usb_functions.py') +LAYOUT = 'USB AUDIO OUT TRACKS MAIN CUE' + + +class UsbAudioPackage(unittest.TestCase): + def test_the_function_block_is_what_a_linked_base_sends_behind_its_own_interfaces(self): + descriptors = load('descriptors', usb.audio_paths(LAYOUT)[1]) + blocks = [builder.function_block(functions, usb, descriptors, LAYOUT, hs, other) + for hs, other in ((False, False), (True, False), (False, True), (True, True))] + self.assertEqual(len({len(b) for b in blocks}), 1) + for (hs, other), block in zip(((False, False), (True, False), (False, True), (True, True)), blocks): + without = functions.configuration(usb, descriptors, hs, other, None) + whole = functions.configuration(usb, descriptors, hs, other, LAYOUT) + self.assertEqual(without[9:] + block, whole[9:]) + self.assertLessEqual(len(without) + len(block), functions.SLOT) + records = list(builder._records(block)) + self.assertEqual(sum(len(r) for r in records), len(block)) + self.assertEqual(records[0][:4], bytes([8, 11, 4, 2])) # the association: two interfaces from 4 + self.assertEqual(sorted({r[2] for r in records if r[1] == 4}), [4, 5]) + self.assertEqual([r[2] for r in records if r[1] == 5], [0x83]) # endpoint 3 IN alone + self.assertIn('.short 2, %d' % len(blocks[0]), builder.record(blocks)) + + def test_the_source_keeps_the_import_and_changes_only_its_guarded_seams(self): + text = builder.source(functions, usb, LAYOUT) + self.assertNotIn('usbmidi_rx_isr_shim', text.split('| ---- the package', 1)[0].split('audio_isr_shim:', 1)[1].split('\n\n', 1)[0]) + self.assertNotIn('jmp 0x4000d9a6', text) # the base replays the frame site's displaced clear + self.assertNotIn('#(aud_dtds+UNCACHED),', text) # every use reads the run-time boundary + self.assertEqual(text.count('moveal mwua_dtds,'), 3) + self.assertIn('.set UAC2_AC_IFACE, 4 ', text) + with self.assertRaisesRegex(ValueError, 'Not built as a package yet'): + builder.build('USB AUDIO OUT MASTER') + + def test_the_package_subscribes_to_the_four_hooks_and_carries_three_guarded_sites(self): + if not shutil.which('m68k-elf-as'): + self.skipTest('no m68k-elf-as') + data, facts = builder.build(LAYOUT) + self.assertEqual((data[:4], struct.unpack_from('>H', data, 4)[0]), (b'MWRM', 8)) + self.assertEqual(facts['sites'], ['0x4001dd04', '0x4001d824', '0x4001d4b2']) + self.assertLess(facts['image'], 8192) + self.assertLess(facts['image'] + facts['bss'], 128 * 1024) + image, bss, relocations, hooks, sites = struct.unpack_from('>IIIII', data, 8) + self.assertEqual((image, bss, relocations, sites), (facts['image'], facts['bss'], facts['relocations'], 3)) + words = struct.unpack_from('>%dI' % hooks, data, 76) + by_name = {e['event']: e['index'] for e in events.load()['events']} + subscribed = {name for name, index in by_name.items() if index < hooks and words[index] != 0xffffffff} + self.assertEqual(subscribed, {'ot_usb_functions', 'ev_usb_isr', 'ev_usb_bus_end', 'ev_usb_control', 'ev_usb_frame'}) + self.assertTrue(all(w == 0xffffffff for w in words[:4])) # no tick, draw, key or encoder handler + + +if __name__ == '__main__': + unittest.main() From 6dad35726e3976241772e070439b8634add7a3c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Fri, 20 Nov 2026 10:33:34 +0100 Subject: [PATCH 185/415] Docs: record the 0.7.11 project-load build and the unit run that went off USB The verification record names the 0.7.11 identities, the host regression and the 20 November unit run: the flashed base kept set matched byte for byte by its whole-set identity, the six modules kept on candidate twin a328967d, and the restoring RAM boot that never enumerated. The driving guide says which card file a twin Keep replaces and how to find a kept set exact packages; the hardware traps add the second time a RAM boot came back without USB. Co-Authored-By: Claude Opus 5.5 --- docs/OCTATRACK_DRIVING.md | 5 ++++- docs/OCTATRACK_HARDWARE_TRAPS.md | 3 ++- docs/README.md | 1 + .../verification/2026-11-19-octatrack-project-load-dsp.md | 8 +++++++- 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/docs/OCTATRACK_DRIVING.md b/docs/OCTATRACK_DRIVING.md index e38dd70551..98de560509 100644 --- a/docs/OCTATRACK_DRIVING.md +++ b/docs/OCTATRACK_DRIVING.md @@ -38,7 +38,10 @@ the same image booted one-shot came back. Everything else here was done on the o `/MODWERK0.SET` and `/MODWERK1.SET`, written alternately and stamped with the writing base's identity (`modset.c`); a base loads neither file another base wrote. Two Keeps on a twin (a `try`, then a `remove`) replace both, and after the power cycle the flashed base starts with no modules (23 October 2026, MKII, flashed - `a408c505`, twin `8dc7692c`). Before a twin, note the flashed set (`inventory`) and where its packages are; base-bound + `a408c505`, twin `8dc7692c`). A base with no set of its own on the card saves first to `/MODWERK1.SET`, then to each + other file in turn (`modset.c` `slot`), so one Keep on a twin replaces only that file. The kept set's whole-set identity + (USB request 38, order-free: `journal.h` `runtime_journal_set_digest`) names its exact packages: hash candidate files + the same way to find them before a twin overwrites anything (flashed `dfa43813`, 20 November 2026). Before a twin, note the flashed set (`inventory`) and where its packages are; base-bound ones (Analog BD, Output Matrix) must be the copies bound to that base, from the commit that built it. Afterwards, power-cycle and `try` each again. `npm run device -- lifecycle` is such a pair too: it accepts a test module, then its removal. It is not a read; never run it on a unit whose kept set matters (30 October 2026, MKII, twin `04e94075`). diff --git a/docs/OCTATRACK_HARDWARE_TRAPS.md b/docs/OCTATRACK_HARDWARE_TRAPS.md index 092bbd20da..63051490ec 100644 --- a/docs/OCTATRACK_HARDWARE_TRAPS.md +++ b/docs/OCTATRACK_HARDWARE_TRAPS.md @@ -606,7 +606,8 @@ power cycle with six modules kept each left MNL with a solid bar, no key pressed dev twin (`82b9bef4`) ran for over 15 minutes (its log has loads) but never enumerated on the Mac: no Elektron device at all, not a dead bridge handle. Only a power cycle brought USB back. The same image had RAM-booted cleanly -before and did again after. +before and did again after. Again on Windows on 20 November 2026: a Tracks Post dev twin (`a328967d`) booted +cleanly from the flashed base, kept six modules, and its RAM boot into itself to restore them never enumerated. **An unused setup slot is not free storage.** MIDI NOTE SETUP shows four values, but its window binds all six encoders: D and F edit the two `----` slots (setup record +0x03 and +0x05) unseen, and YES commits all six staged diff --git a/docs/README.md b/docs/README.md index fe5cd87cf2..9a4151b0ec 100644 --- a/docs/README.md +++ b/docs/README.md @@ -95,6 +95,7 @@ Every document in `docs/`, one line each. [AGENTS.md](../AGENTS.md) says which t History, not current instructions. - The Analog BD Undo recording and BBD Delay buffer check are in the [Octatrack 0.7.10 test record](verification/2026-11-19-octatrack-0710-checks.md). +- The DSP stall on a project load with modules restored from the card, and its 0.7.11 fix, are in the [project-load record](verification/2026-11-19-octatrack-project-load-dsp.md). - [FRACT consolidation](verification/2026-11-04-fract-consolidation.md): source draft, native FLEX support, source checks and review limits for #926, 4 November 2026. - [OCTATRACK_USB_CHECKPOINT.md](OCTATRACK_USB_CHECKPOINT.md) and [OCTATRACK_BETA_HANDOVER.md](OCTATRACK_BETA_HANDOVER.md): handovers frozen on 12 October 2026. - [REPITCH_ORIGINAL_TEMPO_CHECK.md](REPITCH_ORIGINAL_TEMPO_CHECK.md): a check of 8 October 2026. diff --git a/docs/verification/2026-11-19-octatrack-project-load-dsp.md b/docs/verification/2026-11-19-octatrack-project-load-dsp.md index f20d6b637a..53ac534cdb 100644 --- a/docs/verification/2026-11-19-octatrack-project-load-dsp.md +++ b/docs/verification/2026-11-19-octatrack-project-load-dsp.md @@ -6,4 +6,10 @@ - **DSP trace.** Both runs started at 32/66 acknowledged loader packets and three residency commits. The stall stopped the frames at 85/112 acknowledgements and seven commits. Core 0 had completed Spatializer's bind. The manager was waiting for core 1's Spring Reverb bind, with its last transmitted command still the final write. Both effect slots were dry, and the incoming project's effect map had yet to be published. The trace leaves the precise cause of the missing frame edge open. - **Development base `1df94302`, same 0.7.9 source plus the observer gate.** The automatic manager continues existing requests and parks unbound slots while a project loads. New automatic plans wait for the complete effect map. With the same six package binaries restored from the card, the first `TARGET` to `FLEX07` load passed on two separate RAM boots, including a restart with the module file untouched. Both effects stayed loaded and no extra residency commit or DSP packet was needed. Playback advanced with sampled CPU readings up to 67.3%. An intentional temporary change of T5 FX1 from Spatializer to Filter followed by a project reload restored Spatializer and advanced the frames without a stall. -The DSP glue, effect-handle map and allocator host checks passed. On the cumulative 0.7.10 source with this fix, all seven USB audio layouts matched the native and browser builds byte for byte and passed the bootloader recovery checks. The resulting Tracks Post image, `0c3de9386dd25ed87229324e137323eb0e45c1ea35c43a3e0fb25615c1b8309e`, requires its own hardware qualification. +The DSP glue, effect-handle map and allocator host checks passed. + +## Base 0.7.11 + +20 November 2026. 0.7.10 shipped without the gate, so it was rebuilt on shipped 0.7.10 as base 0.7.11: default layout `bd1ed4323f053874308bd42f9c96a332f3c3c90aab8636038455e6077e4fe409`, Tracks Post `239d55a42bcba500a5f2f2cb3b2e7eff0332dc7f9ed98b390175c5c6ed52d901`. All seven layouts matched the native and browser builds byte for byte and passed the bootloader recovery checks. No lease entry moved, so the base-bound packages kept their bytes. `sdk/tests/test_project_load_residency.py` builds the observer as the base build generates it and counts its automatic plans across a load that keeps the effects, one that changes them, and one that ends with a transaction open. All three modes fail without the gate. + +Unit run, the same MKII and card (Set `MWREPRO`), on Tracks Post development twins built with the beta flags: 0.7.11 candidate `a328967d`, 0.7.10 control `700f8e4f`. Before it, a RAM boot of the flashed 0.7.9 base's own image (`dfa43813`, rebuilt from `25f9888ea`) restored the kept set from the card: ten modules, whole-set identity `100ed1fc…`, whose ten package files were matched byte for byte by that identity. On the candidate, `TARGET` loaded with the frames running, and Tape Echo, Euclid, LOFI2, Sidechain Compressor (bound to the twin), POLY8 and Slow LFO were kept as one set (card result 7, six saved and live). The first RAM boot meant to restore them from the card did not come back on USB: Windows saw no Elektron device. This is the trap recorded as "A RAM boot can come back without USB" in the hardware traps guide, and only a power cycle ends it. No `FLEX07` load ran after a card restore on 0.7.11 and the control did not run, so the exact 0.7.11 build still needs its hardware qualification. From 3daf0b2c784b63b46eebb7b26064a5fb7b2d1ba9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Fri, 20 Nov 2026 10:35:00 +0100 Subject: [PATCH 186/415] Improvement: build the forum page once, with placeholders the size of what they hold - With a stored session the forum waits for it (at most 1.5 s) instead of drawing the visitor layout and rearranging it for the member. - Thread list, showcase cards, This month, recent replies and the member profile load behind skeletons built from the loaded markup, so lines keep their height. - "Since your last visit" sits above the discussions and arrives with them. - The online line, the Showcase strip (empty or failed) and This month keep their place; Get started remembers its progress per member and has its full size from the start. - Library cards for modules in the set lose the grey outline and tinted body; the filled check button marks them. Co-Authored-By: Claude Opus 5.5 --- changelog/2026-11-20-forum-steady-loading.md | 4 ++ src/community/CommunityContext.tsx | 12 ++--- src/community/ForumHighlights.tsx | 7 +-- src/community/ForumPage.test.ts | 27 ++++++++++++ src/community/ForumPage.tsx | 46 ++++++++++++-------- src/community/ForumProfile.tsx | 19 +++++--- src/community/ForumRecentPosts.tsx | 3 +- src/community/ForumShowcase.test.ts | 39 +++++++++++++++-- src/community/ForumShowcase.tsx | 36 +++++++++++---- src/community/ForumSkeleton.tsx | 16 +++++++ src/community/ForumThreadList.tsx | 26 +++++++++++ src/community/GetStarted.tsx | 34 +++++++++++---- src/community/MemberPrompt.tsx | 3 +- src/community/MembersOnline.tsx | 8 ++-- src/community/api.ts | 2 + src/community/context.ts | 2 +- src/community/forum.css | 44 ++++++++++++++----- src/styles.css | 2 - 18 files changed, 260 insertions(+), 70 deletions(-) create mode 100755 changelog/2026-11-20-forum-steady-loading.md create mode 100755 src/community/ForumSkeleton.tsx diff --git a/changelog/2026-11-20-forum-steady-loading.md b/changelog/2026-11-20-forum-steady-loading.md new file mode 100755 index 0000000000..17612ea51f --- /dev/null +++ b/changelog/2026-11-20-forum-steady-loading.md @@ -0,0 +1,4 @@ +- The forum builds once instead of in stages: signed-in members no longer see the visitor layout rearrange itself, and loading placeholders have the size of what replaces them. +- "Since your last visit" now sits above the discussions it points to and arrives with them. +- The online line, the Showcase strip, This month and member profiles keep their place while loading, when empty and when unavailable. +- Library cards for modules in your set no longer get an outline; the filled check button marks them. diff --git a/src/community/CommunityContext.tsx b/src/community/CommunityContext.tsx index 4f3a1f5937..f1937ab904 100644 --- a/src/community/CommunityContext.tsx +++ b/src/community/CommunityContext.tsx @@ -1,12 +1,12 @@ import { useCallback, useEffect, useRef, useState } from 'react' import type { ReactNode } from 'react' -import { api, onCommunityReconnect } from './api' +import { api, hasSavedSession, onCommunityReconnect } from './api' import type { DeveloperSession, PublishedModule, Session } from './api' import { CommunityContext, emptyDeveloperSession, emptySession } from './context' import { recheck } from './recheck' import type { Recheck } from './recheck' export function CommunityProvider({children}:{children:ReactNode}){ - const [session,setSession]=useState(emptySession),[loading,setLoading]=useState(true),[developer,setDeveloper]=useState(null),[catalog,setCatalog]=useState([]) + const [session,setSession]=useState(emptySession),[loading,setLoading]=useState(true),[settled,setSettled]=useState(()=>!hasSavedSession()),[developer,setDeveloper]=useState(null),[catalog,setCatalog]=useState([]) const active=useRef(true),sessionRequest=useRef|null>(null),catalogRequest=useRef|null>(null),developerRequest=useRef|null>(null),sessionVersion=useRef(0),developerVersion=useRef(0),sessionRetry=useRef(null),developerRetry=useRef(null) const refreshCatalog=useCallback(()=>{ if(catalogRequest.current)return catalogRequest.current @@ -30,7 +30,7 @@ export function CommunityProvider({children}:{children:ReactNode}){ void refreshCatalog() // A background check that cannot reach the service keeps the session on screen and tries again shortly; // only an explicit refresh after an account change falls back to the signed-out state. - const request=api('/auth/session').then(next=>{if(active.current&&version===sessionVersion.current){setSession(next);sessionRetry.current?.succeeded()}}).catch(()=>{if(active.current&&version===sessionVersion.current){if(force)setSession(emptySession);sessionRetry.current?.failed()}}).finally(()=>{if(version===sessionVersion.current){sessionRequest.current=null;if(active.current)setLoading(false)}}) + const request=api('/auth/session').then(next=>{if(active.current&&version===sessionVersion.current){setSession(next);sessionRetry.current?.succeeded()}}).catch(()=>{if(active.current&&version===sessionVersion.current){if(force)setSession(emptySession);sessionRetry.current?.failed()}}).finally(()=>{if(version===sessionVersion.current){sessionRequest.current=null;if(active.current){setLoading(false);setSettled(true)}}}) sessionRequest.current=request return request },[refreshCatalog]) @@ -38,12 +38,14 @@ export function CommunityProvider({children}:{children:ReactNode}){ active.current=true const retry=sessionRetry.current=recheck(()=>{void refresh(false)}) void refresh(false) + // A slow first check stops holding layouts back; the page then updates when the session arrives. + const settle=window.setTimeout(()=>setSettled(true),1500) const resume=()=>{if(document.visibilityState==='visible')void refresh(false)} const changed=(event:StorageEvent)=>{if(event.key===null||event.key.startsWith('octamod.community.session:'))void refresh()} // Another read reaching the service again ends this check's backoff at once. const reconnected=onCommunityReconnect(()=>{void refresh(false)}) window.addEventListener('focus',resume);window.addEventListener('online',resume);window.addEventListener('storage',changed) - return()=>{active.current=false;retry.cancel();reconnected();window.removeEventListener('focus',resume);window.removeEventListener('online',resume);window.removeEventListener('storage',changed)} + return()=>{active.current=false;window.clearTimeout(settle);retry.cancel();reconnected();window.removeEventListener('focus',resume);window.removeEventListener('online',resume);window.removeEventListener('storage',changed)} },[refresh]) useEffect(()=>{ const load=()=>{void refreshDeveloper(false)},retry=developerRetry.current=recheck(load) @@ -52,5 +54,5 @@ export function CommunityProvider({children}:{children:ReactNode}){ load();window.addEventListener('focus',load);window.addEventListener('online',load);window.addEventListener('storage',changed) return()=>{retry.cancel();reconnected();window.removeEventListener('focus',load);window.removeEventListener('online',load);window.removeEventListener('storage',changed)} },[refreshDeveloper]) - return {children} + return {children} } diff --git a/src/community/ForumHighlights.tsx b/src/community/ForumHighlights.tsx index decc26bfc3..5fbc61bfc9 100644 --- a/src/community/ForumHighlights.tsx +++ b/src/community/ForumHighlights.tsx @@ -4,6 +4,7 @@ import { useReconnectRetry } from './useReconnectRetry' import type { ForumHighlights as Highlights } from './forum-contract' import { ForumAuthorName, ForumAvatar } from './ForumIdentity' import { Icon } from '../components/Icon' +import { Skeleton } from './ForumSkeleton' const likes = (count: number) => count + (count === 1 ? ' like' : ' likes') /** The forum home's "This month" block: the most liked posts and reply authors of the last 30 days, and the newest members. */ @@ -11,11 +12,11 @@ export function ForumHighlights() { const [data, setData] = useState(null), [unavailable, setUnavailable] = useState(false), [revision, setRevision] = useState(0) useEffect(() => { let cancelled = false; void api('/forum/highlights').then(value => { if (!cancelled) { setData(value); setUnavailable(false) } }).catch(() => { if (!cancelled) setUnavailable(true) }); return () => { cancelled = true } }, [revision]) useReconnectRetry(unavailable, setRevision) - if (unavailable) return null const quiet = data && !data.topPosts.length && !data.topMembers.length && !data.newMembers.length - return
+ // The block keeps its place in the sidebar while loading and when unavailable, so the blocks below it never jump. + return

This month

The last 30 days around the forum
- {!data ?

Loading highlights…

: quiet ?

Likes and new members will show up here.

: <> + {unavailable ?

Highlights are unavailable right now.

: !data ? <>Loading highlights…{['Most liked posts', 'Most liked replies'].map(title => )} : quiet ?

Likes and new members will show up here.

: <> {data.topPosts.length > 0 &&

Most liked posts

    {data.topPosts.map(post =>
  1. @{member.username}
  2. )}
} diff --git a/src/community/ForumPage.test.ts b/src/community/ForumPage.test.ts index 3f9361bde2..fda6cb6d42 100644 --- a/src/community/ForumPage.test.ts +++ b/src/community/ForumPage.test.ts @@ -33,6 +33,33 @@ afterEach(async () => { await act(() => root.unmount()); container.remove(); vi. const render = (route = 'forum') => act(async () => root.render(createElement(CommunityContext.Provider, { value: { session, developer: null, catalog: [], refresh: async () => {}, refreshDeveloper: async () => {} } }, createElement(ForumPage, { route, configurations: [], onCopy: () => {} })))) const banner = () => container.querySelector('.forum-since-visit') +it('waits for a stored session before building the page under its heading', async () => { + await act(async () => root.render(createElement(CommunityContext.Provider, { value: { session: { available: false, admin: false, user: null }, settled: false, developer: null, catalog: [], refresh: async () => {}, refreshDeveloper: async () => {} } }, createElement(ForumPage, { route: 'forum', configurations: [], onCopy: () => {} })))) + expect(container.querySelector('h1')?.textContent).toBe('Community forum') + expect(container.querySelector('.forum-pending')).not.toBeNull() + // No visitor toolbar or sign-in note to rearrange once the member arrives. + expect(container.querySelector('.forum-toolbar')).toBeNull() + expect(container.textContent).not.toContain('Sign in') + await render() + expect(container.querySelector('.forum-pending')).toBeNull() + expect(container.querySelector('.forum-toolbar')?.textContent).toContain('Following') +}) + +it('shows the visit banner together with the discussions, above them', async () => { + let answer!: (value: ForumVisit) => void + const pendingVisit = new Promise(resolve => { answer = resolve }) + vi.mocked(api).mockImplementation(async path => path === '/forum/visit' ? pendingVisit : { threads: [], hasMore: false }) + await render() + // The threads are in, but the list waits for the banner so the banner never pushes it down. + expect(container.querySelector('.forum-thread-list[aria-busy="true"]')).not.toBeNull() + expect(banner()).toBeNull() + await act(async () => answer({ ...caughtUp, newThreads: 2 })) + expect(container.querySelector('.forum-thread-list[aria-busy="true"]')).toBeNull() + const section = container.querySelector('.forum-discussions')! + expect(section.contains(banner())).toBe(true) + expect(banner()!.compareDocumentPosition(section.querySelector('.forum-empty')!) & Node.DOCUMENT_POSITION_FOLLOWING).toBeTruthy() +}) + it('reloads discussions that failed during an outage once the service answers again', async () => { const offline = new Error('Couldn’t reach the Modwerk community service.') vi.mocked(api).mockImplementation(async path => { if (path === '/forum/visit') return visit; throw offline }) diff --git a/src/community/ForumPage.tsx b/src/community/ForumPage.tsx index 95247253d8..a70b09b248 100644 --- a/src/community/ForumPage.tsx +++ b/src/community/ForumPage.tsx @@ -5,7 +5,7 @@ import { ForumHighlights } from './ForumHighlights' import { useReconnectRetry } from './useReconnectRetry' import { ForumOnlineNow } from './MembersOnline' import type { MemberProfile } from './forum-contract' -import { useEffect, useRef, useState } from 'react' +import { useCallback, useEffect, useRef, useState } from 'react' import { api, post } from './api' import { useCommunity } from './context' import { FORUM_CATEGORIES, FORUM_CATEGORY_DESCRIPTIONS, REQUEST_STATUSES, type ForumCategory, type ForumThread, type ForumVisit, type SharedConfiguration } from './forum-contract' @@ -24,7 +24,8 @@ import { ForumShoutbox } from './ForumShoutbox' import { ForumShowcase } from './ForumShowcase' import { ForumMessages } from './ForumMessages' import { ForumAvatar as Avatar } from './ForumIdentity' -import { ForumThreadList } from './ForumThreadList' +import { ForumThreadList, ForumThreadListSkeleton } from './ForumThreadList' +import { Skeleton } from './ForumSkeleton' import { RichTextEditor } from './ForumEditor' import { DEVICES, DEVICES_BY_ID, deviceHref, deviceTitle } from '../devices/registry' import { DeviceImage } from '../devices/DeviceImage' @@ -38,14 +39,13 @@ import { moveDiscussionIssueDraft, saveDiscussionIssueDraft } from './discussion import { profileHref } from '../routing' import { GetStarted } from './GetStarted' function errorText(error:unknown){return error instanceof Error?error.message:'The request could not be completed.'} -/** Unread activity since the member's previous visit. Hidden on the first visit and once everything is read. */ -function SinceVisit({onReadAll}:{onReadAll:()=>void}){ - const [visit,setVisit]=useState(null),[busy,setBusy]=useState(false) - useEffect(()=>{let cancelled=false;void api('/forum/visit').then(value=>{if(!cancelled)setVisit(value)}).catch(()=>{});return()=>{cancelled=true}},[]) +/** Unread activity since the member's previous visit, above the list it points into. Hidden on the first visit and once everything is read. */ +function SinceVisit({visit,onReadAll}:{visit?:ForumVisit|null;onReadAll:()=>void}){ + const [busy,setBusy]=useState(false) if(!visit?.since||(!visit.newThreads&&!visit.newReplies&&!visit.unreadFollowed))return null - async function readAll(){setBusy(true);try{await post('/forum/read-all',{});setVisit(current=>current&&{...current,newThreads:0,newReplies:0,unreadFollowed:0});onReadAll()}catch{/* the list keeps its markers; the next visit tries again */}finally{setBusy(false)}} + async function readAll(){setBusy(true);try{await post('/forum/read-all',{});onReadAll()}catch{/* the list keeps its markers; the next visit tries again */}finally{setBusy(false)}} return
-

Since your last visit

+

Since your last visit

} function ForumList({query,profile,machineHint}:{query:URLSearchParams;profile?:string;machineHint?:string}){ - const {session}=useCommunity(),[data,setData]=useState<{threads:ForumThread[];hasMore:boolean}|null>(null),[error,setError]=useState(''),[revision,setRevision]=useState(0) + const {session,settled=true}=useCommunity(),[data,setData]=useState<{threads:ForumThread[];hasMore:boolean}|null>(null),[error,setError]=useState(''),[revision,setRevision]=useState(0) const serialized=query.toString(),category=query.get('category')??'',page=Number(query.get('page')??0) // Phones fold the topic and machine filters behind a toggle next to the search field. - const [filtersOpen,setFiltersOpen]=useState(false),[member,setMember]=useState(null) + const [filtersOpen,setFiltersOpen]=useState(false),[member,setMember]=useState(null),[profileFailed,setProfileFailed]=useState(false) + const profileFail=useCallback(()=>setProfileFailed(true),[]) useEffect(()=>{let cancelled=false;void api<{threads:ForumThread[];hasMore:boolean}>('/forum/threads?'+serialized+(profile?'&author='+encodeURIComponent(profile):'')).then(value=>{if(!cancelled){setData(value);setError('')}}).catch(error=>{if(!cancelled)setError(errorText(error))});return()=>{cancelled=true}},[serialized,profile,revision]) useReconnectRetry(!!error,setRevision) function link(values:Record){const next=new URLSearchParams(query);next.delete('page');next.delete('welcome');for(const [key,value] of Object.entries(values)){if(value)next.set(key,value);else next.delete(key)}return (profile?profileHref(profile):'#forum')+(next.size?'?'+next.toString():'')} @@ -66,18 +67,28 @@ function ForumList({query,profile,machineHint}:{query:URLSearchParams;profile?:s // Feature requests open on the most voted ideas; the other views keep recent activity unless an order is chosen. const sort=query.get('sort')||(category==='requests'?'top':'active'),newest=sort==='newest',top=sort==='top',status=query.get('status')??'' const overview=!profile&&!saved&&!following&&!moduleView&&!category&&!filtered&&page===0,home=overview&&!machine + // The visit banner sits above the list and arrives with it, so it never pushes loaded threads down. + const wantVisit=home&&!!session.user?.verified,[visit,setVisit]=useState(undefined) + useEffect(()=>{if(!wantVisit)return;let cancelled=false;void api('/forum/visit').then(value=>{if(!cancelled)setVisit(value)}).catch(()=>{if(!cancelled)setVisit(null)});return()=>{cancelled=true}},[wantVisit]) + const listReady=!!data&&(!wantVisit||visit!==undefined) const heading=(profile?'Public discussions':saved?'Your bookmarks':following&&unreadOnly?'Unread in Following':following?'Following':unreadOnly?'Unread discussions':moduleView?'Module discussions':category&&Object.hasOwn(FORUM_CATEGORIES,category)?FORUM_CATEGORIES[category as ForumCategory]:query.get('q')?'Search results':newest?'New threads':top?'Top voted':'Latest activity')+(machine&&!profile?' · '+machine.name:'') const newParams=new URLSearchParams();if(category)newParams.set('category',category);if(machine)newParams.set('machine',machine.id);if(query.get('module'))newParams.set('module',query.get('module')!) const startHref=category==='issues'||session.user?.verified?'#forum/new'+(newParams.size?'?'+newParams.toString():''):session.user?'#account':'#account/register' const shareHref=session.user?.verified?'#forum/new?category=showcase'+(machine?'&machine='+machine.id:''):session.user?'#account':'#account/register' const showcase=overview&& const gallery=!profile&&category==='showcase'&&!saved&&!following&&!filtered&&page===0&& - return <> + const pageHeading=<> {profile&&All discussions}
Connect · Create · Explore

{profile?'@'+profile:'Community forum'}

{profile?'Public threads by this member.':'A place for the people who make their machines do more.'}

- {profile&&} + + // With a stored session the member's own blocks (Get started, Following, the visit banner) belong on the page. Until + // that session is checked the page shows only its heading, then builds once, instead of drawing the visitor layout + // and rearranging it a moment later. + if(!settled)return <>{pageHeading}
Loading the forum…
+ return <> + {pageHeading} + {profile&&} {home&&session.user?.verified&&} - {home&&session.user?.verified&&setRevision(value=>value+1)}/>} {home&&} {home&&showcase} {!profile&&<> @@ -116,11 +127,12 @@ function ForumList({query,profile,machineHint}:{query:URLSearchParams;profile?:s {!profile&&category==='requests'&&} {gallery} {moduleView&&

The home threads for catalog modules, with settings, questions and feedback collected in one place.

} -
-

{heading}

{data&&!error&&{data.threads.length}{data.hasMore?'+':''} {data.threads.length===1?'discussion':'discussions'}{page>0?' on this page':''}}
- {error?

Discussions could not load

{error}

:!data?
Loading discussions…{[0,1,2].map(row=>)}
:data.threads.length?:

{unreadOnly?'Nothing unread':filtered?'No matching discussions':profile?'No public threads yet':saved?'No bookmarks yet':following?'No followed discussions yet':'Be the first to start a conversation'}

{unreadOnly?'You have read everything here. New replies will show up as they arrive.':filtered?'Try another search or clear your filters.':saved?'Bookmark a thread to keep it close for later.':following?'Follow a thread to find it here. Threads you start or reply to are followed automatically.':profile?'Threads this member starts will appear here.':'Ask a question, share a discovery, or post a configuration you enjoy.'}

{!unreadOnly&&!filtered&&!saved&&!following&&!profile&&category==='issues'&&} {unreadOnly?'Show all':filtered?'Clear filters':saved||following||profile?'Browse discussions':category==='issues'?'Report an issue':'Start a thread'}
} +
+

{heading}

{!error&&(data&&listReady?{data.threads.length}{data.hasMore?'+':''} {data.threads.length===1?'discussion':'discussions'}{page>0?' on this page':''}:)}
+ {listReady&&!error&&{setVisit(current=>current&&{...current,newThreads:0,newReplies:0,unreadFollowed:0});setRevision(value=>value+1)}}/>} + {error?

Discussions could not load

{error}

:!data||!listReady?:data.threads.length?:

{unreadOnly?'Nothing unread':filtered?'No matching discussions':profile?'No public threads yet':saved?'No bookmarks yet':following?'No followed discussions yet':'Be the first to start a conversation'}

{unreadOnly?'You have read everything here. New replies will show up as they arrive.':filtered?'Try another search or clear your filters.':saved?'Bookmark a thread to keep it close for later.':following?'Follow a thread to find it here. Threads you start or reply to are followed automatically.':profile?'Threads this member starts will appear here.':'Ask a question, share a discovery, or post a configuration you enjoy.'}

{!unreadOnly&&!filtered&&!saved&&!following&&!profile&&category==='issues'&&} {unreadOnly?'Show all':filtered?'Clear filters':saved||following||profile?'Browse discussions':category==='issues'?'Report an issue':'Start a thread'}
} {(page>0||data?.hasMore)&&} -
{overview&&
{home&&}link({category})}/>
}{member&&
}
+
{overview&&
{home&&}link({category})}/>
}{profile&&!profileFailed&&
}
} diff --git a/src/community/ForumProfile.tsx b/src/community/ForumProfile.tsx index c31ea58381..08e7f14431 100644 --- a/src/community/ForumProfile.tsx +++ b/src/community/ForumProfile.tsx @@ -13,13 +13,22 @@ import { ModulePreview } from '../components/ModulePreview' import type { ModuleStatistics } from './module-statistics' import { memberStanding, POINTS, TIERS } from './member-standing' import { ProfileLinksView } from './ProfileLinksView' +import { ForumRecentSkeleton, Skeleton } from './ForumSkeleton' const memberSince = (value: string) => new Date(value.includes('T') ? value : value.replace(' ', 'T') + 'Z').toLocaleDateString(undefined, { month: 'long', year: 'numeric' }) -export function ForumProfile({ username, onLoad }: { username: string; onLoad?: (profile: MemberProfile) => void }) { +const PROFILE_STATS = ['Threads', 'Replies', 'Likes received', 'Bug reports', 'Modules'] +export function ForumProfile({ username, onLoad, onFail }: { username: string; onLoad?: (profile: MemberProfile) => void; onFail?: () => void }) { const { session } = useCommunity(), [profile, setProfile] = useState(null), [error, setError] = useState('') const canMessage = !!session.user?.verified && session.user.username?.toLowerCase() !== username.toLowerCase() - useEffect(() => { let cancelled = false; void api('/forum/profiles/' + encodeURIComponent(username)).then(value => { if (!cancelled) { setProfile(value); onLoad?.(value) } }).catch(error => { if (!cancelled) setError(error.message) }); return () => { cancelled = true } }, [username, onLoad]) - if (!profile) return

{error || 'Loading member profile…'}

+ useEffect(() => { let cancelled = false; void api('/forum/profiles/' + encodeURIComponent(username)).then(value => { if (!cancelled) { setProfile(value); onLoad?.(value) } }).catch(error => { if (!cancelled) { setError(error.message); onFail?.() } }); return () => { cancelled = true } }, [username, onLoad, onFail]) + if (error) return

{error}

+ // The loading card has the loaded one's avatar, lines and stat labels, so the threads below start where they stay. + if (!profile) return
+ Loading member profile… + + + +
return <>

{profile.displayName}{profile.maintains.length > 0 && }

@{profile.username} · Member since {memberSince(profile.memberSince)}

@@ -33,8 +42,8 @@ export function ForumProfile({ username, onLoad }: { username: string; onLoad?: } /** A member's latest replies, shown beside the threads they started. */ -export function ForumProfileReplies({ items }: { items: ForumReplyItem[] }) { - return
{prompt.conflict && prompt.open && DETAILS[module.id].family) : []), + ...(!device || device.id === 'octatrack' ? octatrackCatalogue.map(module => module.type) : []), ...DIGI_MODS.filter(mod => !device || mod.device === device.id).map(mod => mod.category), - ...ZOOM_EFFECTS.filter(effect => !device || effect.machine === device.id).map(effect => effect.presentation.family), + ...ZOOM_EFFECTS.filter(effect => !device || effect.machine === device.id).map(effect => effect.type), ])) const libraryFamily = families.includes(family) ? family : 'all' // Each module in view before the type filter, by type: the phone type sheet counts what each choice would show. const scopeFamilies = [ - ...(!device || device.id === 'octatrack' ? octatrackCatalogue.filter(module => (!category || module.category === category) && octatrackMatchesQuery(module, query)).map(module => DETAILS[module.id].family) : []), + ...(!device || device.id === 'octatrack' ? octatrackCatalogue.filter(module => (!category || module.category === category) && octatrackMatchesQuery(module, query)).map(module => module.type) : []), ...DIGI_MODS.filter(mod => (!device || mod.device === device.id) && (!category || mod.libraryCategory === category) && digiMatchesQuery(mod, query)).map(mod => mod.category), - ...ZOOM_EFFECTS.filter(effect => (!device || effect.machine === device.id) && (!category || effect.category === category) && matchesZoomEffect(effect, query)).map(effect => effect.presentation.family), + ...ZOOM_EFFECTS.filter(effect => (!device || effect.machine === device.id) && (!category || effect.category === category) && matchesZoomEffect(effect, query)).map(effect => effect.type), ] const typeCounts = families.map(value => ({ value, count: scopeFamilies.filter(item => item === value).length })).filter(option => option.count || option.value === libraryFamily) const digiGroups = DIGI_DEVICES.filter(id => !device || device.id === id).map(id => ({ @@ -166,7 +165,7 @@ export function MachineLibrary({ device, query, category, octatrackModules: octa // Zoom pedals: effect files installed one by one onto the pedal, so no set, build or memory estimate. const zoomGroups = DEVICES.filter(item => item.family === 'zoom' && (!device || device.id === item.id)).map(item => ({ device: item, - effects: ZOOM_EFFECTS.filter(effect => effect.machine === item.id && (!category || effect.category === category) && (libraryFamily === 'all' || effect.presentation.family === libraryFamily) && matchesZoomEffect(effect, query)) + effects: ZOOM_EFFECTS.filter(effect => effect.machine === item.id && (!category || effect.category === category) && (libraryFamily === 'all' || effect.type === libraryFamily) && matchesZoomEffect(effect, query)) .sort((a, b) => compareModules({id: item.id + '-' + a.id, name: a.name, authorName: zoomEffectAuthor(a), updatedAt: zoomEffectReleasedAt(a)}, {id: item.id + '-' + b.id, name: b.name, authorName: zoomEffectAuthor(b), updatedAt: zoomEffectReleasedAt(b)}, sort, statistics)), })) const mobile = useMobileWorkspace() diff --git a/src/devices/ZoomEffectDetail.tsx b/src/devices/ZoomEffectDetail.tsx index afeea08b23..96fdd5576f 100644 --- a/src/devices/ZoomEffectDetail.tsx +++ b/src/devices/ZoomEffectDetail.tsx @@ -35,7 +35,7 @@ export function ZoomEffectCard({ effect, selected, onToggle, statistics, compare
{effect.name}
v{effect.version}
{effect.license.spdx}
-
{effect.presentation.family}DSP {effect.platform.dspCost}
+
{effect.type}DSP {effect.platform.dspCost}
@@ -86,7 +86,7 @@ function ZoomEffectGuide({ effect, device }: { effect: ZoomEffect; device: Devic export function ZoomEffectDetail({ device, effect, selected, onToggle, browse, onBackToResults }: { device: DeviceProfile; effect: ZoomEffect; selected: boolean; onToggle: () => void; browse?: CatalogBrowse | null; onBackToResults?: () => void }) { const id = effect.machine + '-' + effect.id, dsp = budget(effect, 'Patch DSP') ?? 225, size = budget(effect, 'Effect file') ?? effect.platform.binary.bytes - return /modules//modwerk.module.json. type ElemodModule = ModwerkModule & { platform: ElemodPlatform } & Pick -export const DIGI_MODS: DigiMod[] = (MACHINE_MODULES.modules as (ModwerkModule & Pick)[]).filter((module): module is ElemodModule => module.platform.kind === 'elemod').map(module => ({ - id: module.id, device: module.machine as DigiMod['device'], title: module.name, version: module.version.split('-')[0], - updatedAt: moduleReleasedAt(module.machine + '-' + module.id, module.version), - author: displayName(module.author.github, module.author.name), authorLogin: module.author.github, repository: module.source?.repository ?? 'https://github.com/' + module.author.github, - contributors: module.author.contributors, - license: module.license.spdx, category: module.presentation.family, libraryCategory: module.category, summary: module.presentation.summary, - ramBytes: module.resources.memoryBytes ?? 0, claims: module.platform.claims, conflicts: module.compatibility.conflicts, requires: module.compatibility.requires, exclusive: module.exclusive, - releases: module.compatibility.releases, patchSites: module.patchSites, - hardware: module.evidence.hardware ? module.evidence.hardware.summary : undefined, -})) +export const DIGI_MODS: DigiMod[] = (MACHINE_MODULES.modules as (ModwerkModule & Pick)[]).filter((module): module is ElemodModule => module.platform.kind === 'elemod').map(module => { + const [libraryCategory, type] = libraryClassification(module.machine, module) + return { + id: module.id, device: module.machine as DigiMod['device'], title: module.name, version: module.version.split('-')[0], + updatedAt: moduleReleasedAt(module.machine + '-' + module.id, module.version), + author: displayName(module.author.github, module.author.name), authorLogin: module.author.github, repository: module.source?.repository ?? 'https://github.com/' + module.author.github, + contributors: module.author.contributors, + license: module.license.spdx, category: type, sourceFamily: module.presentation.family, libraryCategory, summary: module.presentation.summary, + ramBytes: module.resources.memoryBytes ?? 0, claims: module.platform.claims, conflicts: module.compatibility.conflicts, requires: module.compatibility.requires, exclusive: module.exclusive, + releases: module.compatibility.releases, patchSites: module.patchSites, + hardware: module.evidence.hardware ? module.evidence.hardware.summary : undefined, + } +}) export type DigiEstimate = { usedBytes: number; areaBytes: number; fits: boolean; compatibleReleases: string[]; clashes: { claim: string; mods: string[] }[] } diff --git a/src/devices/library-parity.test.ts b/src/devices/library-parity.test.ts index df035a37cf..a798785c00 100644 --- a/src/devices/library-parity.test.ts +++ b/src/devices/library-parity.test.ts @@ -121,8 +121,8 @@ describe('All machines library parity', () => { octatrackModules: [], family: 'Sampling', sort: 'name', })) expect(html).toContain('DIGISLICER') - expect(html).toContain('NEIGHBOR') - expect(html.indexOf('View DIGISLICER')).toBeLessThan(html.indexOf('View NEIGHBOR')) + expect(html).toContain('RAM Record and Playback') + expect(html.indexOf('View DIGISLICER')).toBeLessThan(html.indexOf('View RAM Record and Playback')) expect(html).not.toContain('View SOPHIE') expect(html).not.toContain('View digihealth') }) @@ -217,11 +217,11 @@ describe('Digi library parity', () => { it('filters type together with search and sorts the Digi library by name', () => { const html = renderToStaticMarkup(createElement(DigiLibrary, {...digiProps, family: 'Sampling', sort: 'name'})) - expect(html.indexOf('View DIGISLICER')).toBeLessThan(html.indexOf('View NEIGHBOR')) + expect(html.indexOf('View DIGISLICER')).toBeLessThan(html.indexOf('View RAM Record and Playback')) expect(html).not.toContain('View SOPHIE') expect(html).not.toContain('View digihealth') - const search = renderToStaticMarkup(createElement(DigiLibrary, {...digiProps, family: 'Sampling', query: 'neighbor'})) - expect(search).toContain('View NEIGHBOR') + const search = renderToStaticMarkup(createElement(DigiLibrary, {...digiProps, family: 'Sampling', query: 'ram record'})) + expect(search).toContain('View RAM Record and Playback') expect(search).not.toContain('View DIGISLICER') const switched = renderToStaticMarkup(createElement(DigiLibrary, {...digiProps, family: 'Octatrack-only type'})) expect(switched).toContain('View SOPHIE') diff --git a/src/devices/zoom-effects.ts b/src/devices/zoom-effects.ts index bbf9b4cf91..4d4ce82e64 100644 --- a/src/devices/zoom-effects.ts +++ b/src/devices/zoom-effects.ts @@ -2,17 +2,24 @@ // file served from public/zoom-effects/ and installed onto the pedal by the pedal page's link (docs/ZDL_MODULE_CONTRACT.md). import MACHINE_MODULES from '../catalog/machine-modules.json' import type { ModwerkModule, ZdlPlatform } from '../catalog/module-contract-v3' -import { displayName } from '../catalog/module-authors' +import { contributorSearchText, displayName } from '../catalog/module-authors' +import { matchesModuleQuery } from '../catalog/module-search' +import { LIBRARY_CATEGORY_LABELS, libraryClassification, type ModuleCategory } from '../catalog/library-classification' +import { DEVICES_BY_ID } from './registry' import { moduleReleasedAt } from '../catalog/module-releases' import { assetUrl } from '../hosting' import { givenIds } from '../engine/zoom/local-ids' import type { MachineProfile } from './machine-contract' import MACHINES from './machines.generated.json' -export type ZoomEffect = ModwerkModule & { platform: ZdlPlatform } +type ZoomDocument = ModwerkModule & { platform: ZdlPlatform } +export type ZoomEffect = Omit & { category: ModuleCategory; type: string } // Generated by npm run modules:generate from sdk/zoom/modules//modwerk.module.json. -export const ZOOM_EFFECTS: ZoomEffect[] = (MACHINE_MODULES.modules as ModwerkModule[]).filter((module): module is ZoomEffect => module.platform.kind === 'zdl') +export const ZOOM_EFFECTS: ZoomEffect[] = (MACHINE_MODULES.modules as ModwerkModule[]).filter((module): module is ZoomDocument => module.platform.kind === 'zdl').map(module => { + const [category, type] = libraryClassification(module.machine, module) + return { ...module, category, type } +}) export const zoomEffectAuthor = (effect: ZoomEffect) => displayName(effect.author.github, effect.author.name) export const zoomEffectRepository = (effect: ZoomEffect) => effect.source?.repository ?? effect.platform.binary.release.repository @@ -32,8 +39,9 @@ export async function fetchZoomEffect(effect: ZoomEffect, load: typeof fetch = f } export const matchesZoomEffect = (effect: ZoomEffect, query: string) => { - const term = query.toLowerCase().trim() - return !term || [effect.name, effect.presentation.summary, effect.presentation.family, zoomEffectAuthor(effect), effect.platform.file].some(value => value.toLowerCase().includes(term)) + return matchesModuleQuery(query, effect.name, effect.presentation.summary, effect.type, effect.presentation.family, + DEVICES_BY_ID[effect.machine].name, LIBRARY_CATEGORY_LABELS[effect.category], effect.platform.file, + zoomEffectAuthor(effect), effect.author.github, contributorSearchText(effect.author.contributors)) } /** Zoom pedals whose effects go in sets: those with the zdl platform. */ diff --git a/src/routing.test.ts b/src/routing.test.ts index f3f5879c00..97455556c2 100644 --- a/src/routing.test.ts +++ b/src/routing.test.ts @@ -13,6 +13,12 @@ describe.each(['https://modwerk.app/', 'https://example.github.io/octamod/'])('m expect(routeFromUrl(new URL('module/miniverb/index.html', appUrl), appUrl)).toBe('module/miniverb') expect(routeFromUrl(new URL('analog-rytm-mkii/module/filter-hz/', appUrl), appUrl)).toBe('analog-rytm-mkii/module/filter-hz') }) + it.each(['scenes', 'all/scenes', 'digitakt/scenes', 'analog-rytm-mkii/scenes'])('keeps old %s library links working', route => { + const old = new URL('#' + route, appUrl) + const current = route.replace('scenes', 'performance') + expect(routeFromUrl(old, appUrl)).toBe(current) + expect(canonicalRouteUrl(old, appUrl, moduleIds).hash).toBe('#' + current) + }) it('opens machine-qualified module paths and upgrades legacy Digi hashes', () => { for (const [device, id] of [['digitakt', 'digihealth'], ['digitakt-ii', 'track-names'], ['digitone', 'digihealth'], ['analog-rytm-mkii', 'filter-hz']]) { const path = `${device}/module/${id}` diff --git a/src/routing.ts b/src/routing.ts index fbd445837f..80a870c7a1 100644 --- a/src/routing.ts +++ b/src/routing.ts @@ -2,7 +2,7 @@ import { assetUrl } from './hosting' import { moduleIdFromSlug, modulePath, moduleSlug } from './catalog/module-links' import { profilePath, threadIdFromSegment, threadPath } from './community/forum-links' import { AUDIO_PREVIEW_GUIDE_ROUTE } from './components/audio-preview-guide' -import { hasDeviceModulePages } from './devices/registry' +import { ALL_MACHINES, DEVICES_BY_ID, hasDeviceModulePages } from './devices/registry' const moduleRoute = /^module\/([a-z0-9-]+)$/ const deviceModuleRoute = /^([a-z0-9-]+)\/module\/[a-z0-9-]+$/ @@ -25,12 +25,20 @@ function pathRoute(url: URL, appUrl: URL) { return /^projects\/(?:index\.html)?$/.test(path) ? 'projects' + url.search : /^submit\/(?:index\.html)?$/.test(path) ? 'submit' : module ? 'module/' + module[1] : thread ? 'forum/thread/' + threadIdFromSegment(thread[1]) + url.search : profile ? 'forum/profile/' + profile[1] + url.search : '' } +/** Keep bookmarks and saved browse sessions from the old Scenes category usable. */ +export function currentLibraryRoute(route: string): string { + if (route === 'scenes') return 'performance' + const [machine, category, ...rest] = route.split('/') + if (!rest.length && category === 'scenes' && (machine === ALL_MACHINES || Object.hasOwn(DEVICES_BY_ID, machine))) return machine + '/performance' + return route +} + /** Only app destinations participate; assets, downloads and external links keep normal browser behavior. */ export function routeFromUrl(url: URL, appUrl: URL, fallback = 'library'): string | undefined { if (url.origin !== appUrl.origin || !url.pathname.startsWith(appUrl.pathname)) return undefined const path = url.pathname.slice(appUrl.pathname.length), known = pathRoute(url, appUrl) if (path && path !== 'index.html' && !known) return undefined - const route = url.hash.slice(1) || known || fallback + const route = currentLibraryRoute(url.hash.slice(1) || known || fallback) const nativeRoute = route.replace(/^module\/([a-z0-9-]+)(?=\?|$)/, (_match, slug: string) => 'module/' + moduleIdFromSlug(slug)) // The forum's account page replaced the separate activity page; old #activity links open it. return route === 'faq/audio-previews' ? AUDIO_PREVIEW_GUIDE_ROUTE : route === 'remixes' ? 'module-sets' : route === 'activity' ? 'account' : route.startsWith('remix/') ? 'module-set/' + route.slice(6) : nativeRoute From a4faf80273e99953d4021fe0873219b118816711 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Fri, 20 Nov 2026 11:13:58 +0100 Subject: [PATCH 190/415] Docs: keep the hardware traps guide at its size; the second off-USB RAM boot stays in the verification record Co-Authored-By: Claude Opus 5.5 --- docs/OCTATRACK_HARDWARE_TRAPS.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/OCTATRACK_HARDWARE_TRAPS.md b/docs/OCTATRACK_HARDWARE_TRAPS.md index 63051490ec..092bbd20da 100644 --- a/docs/OCTATRACK_HARDWARE_TRAPS.md +++ b/docs/OCTATRACK_HARDWARE_TRAPS.md @@ -606,8 +606,7 @@ power cycle with six modules kept each left MNL with a solid bar, no key pressed dev twin (`82b9bef4`) ran for over 15 minutes (its log has loads) but never enumerated on the Mac: no Elektron device at all, not a dead bridge handle. Only a power cycle brought USB back. The same image had RAM-booted cleanly -before and did again after. Again on Windows on 20 November 2026: a Tracks Post dev twin (`a328967d`) booted -cleanly from the flashed base, kept six modules, and its RAM boot into itself to restore them never enumerated. +before and did again after. **An unused setup slot is not free storage.** MIDI NOTE SETUP shows four values, but its window binds all six encoders: D and F edit the two `----` slots (setup record +0x03 and +0x05) unseen, and YES commits all six staged From 168fdf5d445f5d999eb0054a7b95845ba35aa0f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Fri, 20 Nov 2026 11:17:12 +0100 Subject: [PATCH 191/415] Changelog: a development base takes a module USB function; USB Audio builds as packages Co-Authored-By: Claude Fable 5.2 --- changelog/2026-11-20-usb-audio-package.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog/2026-11-20-usb-audio-package.md diff --git a/changelog/2026-11-20-usb-audio-package.md b/changelog/2026-11-20-usb-audio-package.md new file mode 100644 index 0000000000..7873fbe2d6 --- /dev/null +++ b/changelog/2026-11-20-usb-audio-package.md @@ -0,0 +1 @@ +Development only, nothing changes for players yet: a development base can take a module's USB function (the table ot_usb_functions and the hooks ev_usb_isr, ev_usb_bus_end, ev_usb_control and ev_usb_frame) and reconnects on USB by itself when one comes or goes, and `usb_audio_package.py` builds each of USB Audio's six output layouts as a runtime package for it. Seen in the emulator only; the published base and its USB Audio layouts are unchanged. From 0481dbb114c0c838620913c9fe611173e19ae356 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Fri, 20 Nov 2026 11:21:01 +0100 Subject: [PATCH 192/415] Improvement: the maintenance bot asks for the submitter test record instead of filing a hardware test The owner approved this wording on 20 November 2026. Co-Authored-By: Claude Opus 5.5 --- changelog/2026-11-20-bot-asks-for-test-record.md | 1 + scripts/maintenance-bot/prompt.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog/2026-11-20-bot-asks-for-test-record.md diff --git a/changelog/2026-11-20-bot-asks-for-test-record.md b/changelog/2026-11-20-bot-asks-for-test-record.md new file mode 100644 index 0000000000..ab0b107fad --- /dev/null +++ b/changelog/2026-11-20-bot-asks-for-test-record.md @@ -0,0 +1 @@ +Development: The maintenance bot asks the author of a pull request that changes what runs on an instrument for its test record, instead of filing a hardware test for the owner. Submitters test, reviewers read. diff --git a/scripts/maintenance-bot/prompt.md b/scripts/maintenance-bot/prompt.md index 36235b5c2d..56ada2fb1e 100644 --- a/scripts/maintenance-bot/prompt.md +++ b/scripts/maintenance-bot/prompt.md @@ -69,7 +69,7 @@ Also note in the reason of a pull request's review when it adds a module, hook i ## What you never do -You do not push, build, release, deploy, run anything from a pull request, touch secrets, or work on firmware, the unit or the emulator. Work that needs those (a fix, a refresh with regenerated files, a base, a hardware test) becomes a to-do. +You do not push, build, release, deploy, run anything from a pull request, touch secrets, or work on firmware, the unit or the emulator. Work that needs those (a fix, a refresh with regenerated files, a base) becomes a to-do. A pull request that changes what runs on an instrument without its submitter's test record (docs/TEST_PROCEDURE.md) gets a request to its author for the record, not a hardware-test to-do: submitters test, reviewers read. ## To-dos From 8da00927c82b78484bfcd35485ceab8279cfed25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Fri, 20 Nov 2026 11:44:14 +0100 Subject: [PATCH 193/415] Docs: the resting change, its host checks and the unit run still owed Co-Authored-By: Claude Opus 5.5 --- ...2026-11-20-octatrack-unused-module-cost.md | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/docs/verification/2026-11-20-octatrack-unused-module-cost.md b/docs/verification/2026-11-20-octatrack-unused-module-cost.md index 403fb6d5d3..c47a6288ce 100644 --- a/docs/verification/2026-11-20-octatrack-unused-module-cost.md +++ b/docs/verification/2026-11-20-octatrack-unused-module-cost.md @@ -29,3 +29,34 @@ The seven modules with frame code together added 5.6 points; the other 17 togeth cost is base work that grows with the number of installed modules (0.7.10's sparse dispatch removed the UI tick's), and none of it is in the DSP: it is module code the frame interrupt enters while no track uses the module, through the hooks that rest and through each module's own detours. + +## The change: machines rest + +The base now answers `ev_in_use` for a machine's module (HOOKS.md): it rests while no track of any Part of the project, +working or saved, is that machine. That takes POLY8's three handlers out of the frame on its own. Its 11 frame-path +detours rest only once its package marks them `"rests"`, a POLY8 release of its own; a development build of POLY8 +0.3.3 with those 11 marked (same module id and image) was built for the unit run below and is not published. + +The other five modules in the table are not machines: each needs its own `ev_in_use` answer (HOOKS.md) to rest. + +## Not yet on the unit + +The after-twin of this change (`a7085bbd`) was built and queued at 10:32. The unit had been off USB since about 10:30 +(another session's RAM boot that did not come back), so none of its steps ran and nothing on this branch reached the +unit. The planned run: the empty and 24-package readings above against the after-twin, the 24 with the development +POLY8, POLY8 alone, a pick of the resting POLY8 on T8 while playing (the frame guard over the window holding the wake, +beside a STATIC pick as control), the same with a USB capture checked for zero runs, a self-test with the 24 installed, +a 120 s soak at 20 operations a second, and `npm run test:procedure -- --base` steps 6 to 10. + +## Host checks + +- `test_machine_registry.c` (and `sdk/tests/test_machine_charge.c` on it): resting after two idle scans, the frame + path of eight unowned FLEX tracks with two resting machines equal to the path with none, wake on pick before the + commit, the wake margin at the busy line, rest on release, a pasted track silent and START-less until the next tick, + a saved copy or another Part keeping a machine awake, no idle scans during a project load, a set change and a late + machine awake for two scans, removal while resting, RENDER_FLEX never resting. Without the resting check in the + render path two of them fail. +- `sdk/runtime/loader/tests/events_test.c` at 32 and 128 modules: a judged module leaves and rejoins only the resting + rows by the machine's answer, keeps its table record, its resting site holds stock's bytes, admission accepts the + site, `modwerk_runtime_resting_at`, and Undo of a trial over a resting module and over a woken one. Without the + judged path in the loader 12 checks fail. From 0653540c8394aa3b700ad256ee8a2ba859bfc596 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Fri, 20 Nov 2026 11:46:55 +0100 Subject: [PATCH 194/415] Octatrack: PROJ > MODWERK > SETTINGS, and USB Audio's on-device switch in its package The owner decided on 20 November 2026 that a module's on-device setting appears under one SETTINGS row in PROJ > MODWERK and that the base keeps it through a power cycle. - Base (development builds with site events and the DSP loader): the table ot_settings (events.json, hook 60): a module contributes a label, two to six choice names and apply(choice). settings.c keeps the choice in battery RAM under the label's hash ('MWS1' at 0x100f9000, eight entries, battery-ram.json) and applies every kept choice again after each change of the installed modules. status.c's SETTINGS page lists one row per setting with the choice in force; UP and DOWN move, YES takes the next choice at once, NO closes. - USB Audio's package contributes its setting: ALL CHANNELS and OFF in every layout, MAIN + CUE ONLY in the twenty-channel one. The producer reads it through pull request 1517's seams (audio_switch), which were written for a base that linked USB Audio in and tried on the owner's MKII there. Checked: test_settings.py (host model of the table, the store and when choices are applied), the package and battery-RAM tests. In ot_emu with --frame and a card, on a development base built from this commit: the twenty-channel package as a trial, the page opened from the panel, OFF kept in battery RAM with 16 whole packets of zeros, MAIN + CUE ONLY kept with the sixteen track channels silent, back to ALL CHANNELS; TRACKS the same with its two choices; the example USB function's verifier still passes. Emulator only: the page was not seen on a unit, the choice was not read back after a power cycle, and the counters showed 2 overruns across the choice changes, not looked into yet. Co-Authored-By: Claude Opus 5.5 --- .../verify-octatrack-usb-audio-package.mjs | 59 ++++- sdk/machines/octatrack/HOOKS.md | 2 + sdk/machines/octatrack/battery-ram.json | 1 + .../octatrack/elekloader/build_core.py | 8 +- .../octatrack/elekloader/runtime_events.h | 18 +- sdk/machines/octatrack/elekloader/settings.c | 122 ++++++++++ sdk/machines/octatrack/elekloader/settings.h | 16 ++ sdk/machines/octatrack/elekloader/status.c | 61 ++++- .../octatrack/elekloader/test_settings.c | 115 +++++++++ sdk/machines/octatrack/events.json | 17 ++ .../octatrack/include/modwerk_events.h | 12 + .../module-adapters/usb_audio_package.py | 219 ++++++++++++++++-- sdk/machines/octatrack/site-events.json | 7 + sdk/tests/test_settings.py | 42 ++++ sdk/tests/test_usb_audio_package.py | 12 +- 15 files changed, 676 insertions(+), 35 deletions(-) create mode 100644 sdk/machines/octatrack/elekloader/settings.c create mode 100644 sdk/machines/octatrack/elekloader/settings.h create mode 100644 sdk/machines/octatrack/elekloader/test_settings.c create mode 100644 sdk/tests/test_settings.py diff --git a/scripts/verify-octatrack-usb-audio-package.mjs b/scripts/verify-octatrack-usb-audio-package.mjs index dc6b02843d..d4e2845f64 100644 --- a/scripts/verify-octatrack-usb-audio-package.mjs +++ b/scripts/verify-octatrack-usb-audio-package.mjs @@ -9,6 +9,10 @@ // with AudioControl and AudioStreaming behind the base's own interfaces, the clock source answers its sample rate, // alternate setting 1 opens the stream and EP3 IN sends packets of whole frames of the layout at the high-speed rate; // alternate setting 0 closes it; a rollback takes the function out again and the configuration is the first one. +// With `setting`, on a development base (--dev) booted with a card (ot_emu --card): the panel opens PROJ > MODWERK > +// SETTINGS, YES takes OFF and, in the twenty-channel layout, MAIN + CUE ONLY; each choice is in the base's battery-RAM +// store, and the stream goes on under it with whole packets: of zeros under OFF, with silent track channels under +// MAIN + CUE ONLY. // Emulator evidence of the package's and the base's code only: no host driver, no audio content check, no hardware. import assert from 'node:assert/strict' import { readFileSync } from 'node:fs' @@ -18,8 +22,8 @@ import { findVendorInterface, UsbVendorTransport } from '../src/engine/elekloade import { diagnostics } from '../src/dev/octatrack-usb-lifecycle.ts' import { Bench, device } from './usb-bench.mjs' -const [socket, file, frame = '80'] = process.argv.slice(2) -if (!socket || !file || ![8, 16, 64, 80].includes(Number(frame))) throw new Error('Usage: verify-octatrack-usb-audio-package.mjs BENCH-SOCKET usb-audio.mwrm [FRAME-BYTES: 80 (default, 20 channels), 64 TRACKS, 16 MAIN CUE, 8 MASTER or MAIN]') +const [socket, file, frame = '80', setting] = process.argv.slice(2) +if (!socket || !file || ![8, 16, 64, 80].includes(Number(frame)) || (setting && setting !== 'setting')) throw new Error('Usage: verify-octatrack-usb-audio-package.mjs BENCH-SOCKET usb-audio.mwrm [FRAME-BYTES: 80 (default, 20 channels), 64 TRACKS, 16 MAIN CUE, 8 MASTER or MAIN] [setting]') const AC = 4, AS = 5, CLOCK = 0x10, FRAME_BYTES = Number(frame) // a frame: 4 bytes a sample for each channel of the layout const wait = ms => new Promise(resolve => setTimeout(resolve, ms)) const bench = new Bench(socket) @@ -89,6 +93,31 @@ assert.equal((await bench.controlIn(0xa1, 2, 0x0100, CLOCK << 8 | AC, 14))?.suba assert.equal(await bench.controlIn(0xa1, 1, 0x0300, CLOCK << 8 | AC, 1), null) assert.equal((await transport.identify()).base, identity.base) +// dev.c: keys as the panel reports them (request 5), RAM read-only (15 and 16). +const dev = async (request, value, length) => { + const reply = await unit.controlTransferIn({ requestType: 'vendor', recipient: 'interface', request, value, index }, length) + assert.equal(reply.status, 'ok', 'a development base answers request ' + request) + return new Uint8Array(reply.data.buffer, reply.data.byteOffset, reply.data.byteLength) +} +const KEY = { DOWN: 0x20, RIGHT: 0x21, YES: 0x31, NO: 0x32, PROJ: 0x1c } +const press = async (...names) => { for (const name of names) { await dev(5, KEY[name] | 0x100, 1); await wait(120); await dev(5, KEY[name], 1); await wait(1200) } } +const STORE = 0x100f9000 // settings.c: 'MWS1', then eight entries of a label's hash and its choice +const kept = async () => { await dev(15, STORE >>> 16, 1); const m = Buffer.from(await dev(16, STORE & 0xffff, 68)); return m } +let hash = 2166136261 +for (const c of 'USB AUDIO') hash = Math.imul(hash ^ c.charCodeAt(0), 16777619) >>> 0 +const choice = async () => { const m = await kept(); if (m.readUInt32BE(0) !== 0x4d575331) return undefined + for (let i = 0; i < 8; ++i) if (m.readUInt32BE(4 + 8 * i) === hash) return m.readUInt32BE(8 + 8 * i) } +/** YES on the open page, then the kept choice once it is `want`: the emulated panel runs far below real time. */ +const take = async (want, label) => { + await press('YES') + for (const start = Date.now(); Date.now() - start < 60000; await wait(500)) if (await choice() === want) return + assert.equal(await choice(), want, label) +} +if (setting) { // the page is opened before the stream: it never holds the panel, and stays open under it + assert.equal(await choice(), undefined, 'nothing kept before the player chooses') + await press('PROJ', 'DOWN', 'DOWN', 'DOWN', 'DOWN', 'RIGHT', 'DOWN', 'DOWN', 'DOWN', 'DOWN', 'DOWN', 'YES') // MODWERK, its sixth row +} + // The stream: alternate setting 1, then EP3 IN at the high-speed poll rate. assert.equal(await alternate(), 0) await bench.command('isohz 4000') @@ -107,6 +136,32 @@ for (let i = 0; i < 256 && nonempty < 16; ++i) { } assert.equal(nonempty, 16, 'sixteen packets with audio frames; lengths ' + lengths.join(',')) console.log(` stream: ${lengths.length} polls, 16 packets of ${[...new Set(lengths.filter(Boolean))].sort().join(' or ')} bytes`) +const first16 = async label => { + const packets = [] + for (let i = 0; i < 256 && packets.length < 16; ++i) { + const packet = Buffer.from((await bench.command('in 3 1024'))[2] ?? '', 'hex') + if (!packet.length) continue + assert.ok(packet.length % FRAME_BYTES === 0 && [10, 11, 12].includes(packet.length / FRAME_BYTES), `${label}: a packet of ${packet.length} bytes`) + packets.push(packet) + } + assert.equal(packets.length, 16, label + ': sixteen packets') + return packets +} +if (setting) { + await take(1, 'YES on the page keeps OFF') + for (const packet of await first16('OFF')) assert.ok(packet.every(byte => byte === 0), 'OFF sends packets of zeros') + console.log(' setting: OFF kept in battery RAM; 16 whole packets of zeros') + if (FRAME_BYTES === 80) { + await take(2, 'the twenty-channel layout offers MAIN + CUE ONLY') + for (const packet of await first16('MAIN + CUE ONLY')) for (let at = 0; at < packet.length; at += 80) + assert.ok(packet.subarray(at, at + 64).every(byte => byte === 0), 'MAIN + CUE ONLY: the sixteen track channels are silent') + console.log(' setting: MAIN + CUE ONLY kept; 16 whole packets with silent track channels') + } + await take(0, 'after the last choice comes ALL CHANNELS') + await first16('ALL CHANNELS') + await press('NO') + console.log(' setting: back to ALL CHANNELS; the stream goes on') +} const counters = await bench.controlIn(0xc0, 0x55, 0, 0, 60) assert.equal(counters?.length, 60) console.log(` counters: consumed ${counters.readUInt32BE(0)}, overruns ${counters.readUInt32BE(8)}, underruns ${counters.readUInt32BE(12)}`) diff --git a/sdk/machines/octatrack/HOOKS.md b/sdk/machines/octatrack/HOOKS.md index f3a550939d..b32a725d8d 100644 --- a/sdk/machines/octatrack/HOOKS.md +++ b/sdk/machines/octatrack/HOOKS.md @@ -89,6 +89,7 @@ next base build, which renames them; the base loads them by those paths. | `ev_usb_control` | call | none: the base raises it | a control request that neither stock nor the base's vendor interface answers, before stock stalls it; no stock site: the base raises it from its own shim at stock's unknown-request tail (0x4001de64) | `unsigned f(void)` | Read the SETUP packet at 0x46c8ce08. Return 0 when the request is not yours: with every answer 0 stock stalls it, as before. Otherwise answer it yourself before you return (stock's usb_ep0_send for an IN reply, a data stage you prime and finish in ev_usb_isr, or a stall of both directions) and return nonzero: the base then leaves through stock's done path and neither sends nor stalls. Claim only requests addressed to your own interfaces and entities: every handler runs, so two that answered one request would both act. d2-d7/a2-a6 must be kept. | lower first, then module id; every handler runs, so the order does not change the result. 10-90. | the USB interrupt: short, no firmware call that can block | | `ot_usb_functions` | table | none | the base builds the USB configuration descriptors a host reads: its own functions (mass storage, the vendor interface, USB MIDI), then the contributed function's interfaces | `32-byte record` | Contribute one struct modwerk_usb_function. The base checks the whole record at admission (ABI and size, 1-4 interfaces, endpoint 3 alone, four blocks of `length` bytes inside the package's initialized image, the configuration within its 512-byte slot) and refuses the package otherwise; a base that links USB Audio in (a development twin) refuses every function. When the table changes the host has to read the descriptors again, so the base reconnects by itself: it waits until the control endpoint is idle, takes the unit off the bus for half a second, rewrites the four configurations and comes back. A sync or trial stays open across that reconnect (the base's own disconnect undoes nothing), and the host has 20 s to speak to the vendor interface again before it counts as unplugged. A function that leaves has its endpoint flushed and disabled at the switch, before its memory can be reused. Its interrupt, bus-end and class-request work goes through ev_usb_isr, ev_usb_bus_end and ev_usb_control. SET_INTERFACE, GET_INTERFACE and the audio frame are not hooks yet: a function patches those stock sites itself, as its own. | lower first, then module id; the table holds one function. | the loader's switch (masked) and the sys task's tick; the record is copied, never called | | `ev_usb_frame` | call | none: the base raises it | every 16-sample block of the frame interrupt, at the point where USB Audio's producer runs when it is linked into a base, before stock clears its word at 0x46104d4e; no stock site: the base raises it from its own shim at 0x4000d9a0, in a base that takes a module's USB function | `unsigned f(void)` | Every handler runs; the answers are ignored. A USB function produces its block here: it reads the frame's read-back words, fills its ring and primes its own endpoint. Return at once while the host has not opened your stream: this runs every block, playing or not. d2-d7/a2-a6 must be kept, as C keeps them; the base keeps d0-d1/a0-a1. | lower first, then module id; every handler runs, so the order does not change the result. 10-90. | the frame interrupt: short, no firmware call that can block, the EMAC kept as found | +| `ot_settings` | table | none | PROJ > MODWERK > SETTINGS lists one row per contributed setting, in table order, with the name of the choice in force; YES on a row takes its next choice | `24-byte record` | Contribute one struct modwerk_setting (every field set) for a choice the player makes on the unit, not in a project: it holds for the whole instrument. The base calls apply(choice) when the player takes a choice and, within a tick, after every change of the installed modules (a power-up, a sync, an Undo, a switch in MODULES), so the module starts as with its first choice and needs no storage of its own. The base keeps the choice through a power cycle under the label, so an update of the module, or another build of it with the same label, keeps the setting; give a label no other module uses. A kept choice this record does not offer is the first one until the player chooses again. Labels and names are read each time the page is drawn: keep them in the image, printable capitals. | lower first, then module id: the page's row order. 50-90. | the UI task: apply is short and must not draw or open a window | ## Reviewed subscribers @@ -215,6 +216,7 @@ A raised hook has no stock site: these modules call the base's entry and act on - `ev_usb_control`: Requests are told apart by the interface or entity they address, and ot_usb_functions holds one function, so at most one handler answers. No module subscribes yet: USB Audio's audio_ctrl_shim answers its clock source's class requests at the same point when it is linked into a base. - `ot_usb_functions`: One function at a time: the controller has one endpoint left (3) and every authored USB Audio layout uses it, so a second function could not share the configuration. The USB Audio module is the first to contribute; until its package is published no module does. - `ev_usb_frame`: A function owns its ring and endpoint alone (ot_usb_functions holds one function). No module subscribes yet: USB Audio's audio_frame_shim does this work at the same site when it is linked into a base, and such a base leaves the site to it. +- `ot_settings`: Each setting is its module's own and no row reads another's. USB Audio is the first to contribute (ALL CHANNELS, OFF, and MAIN + CUE ONLY in the twenty-channel layout: issue 1512); until its package is published no module does. ## The sites diff --git a/sdk/machines/octatrack/battery-ram.json b/sdk/machines/octatrack/battery-ram.json index 57d06265a7..949bd2a2b0 100644 --- a/sdk/machines/octatrack/battery-ram.json +++ b/sdk/machines/octatrack/battery-ram.json @@ -5,6 +5,7 @@ "ranges": [ {"from": "0x100f85a0", "to": "0x100f85e8", "owner": "kits", "what": "'KCS1': which Kit each of the 64 Part slots holds, and a sum that starts from the project's id"}, {"from": "0x100f8600", "to": "0x100f8f06", "owner": "playmodes", "what": "'PMNV': each pattern's play mode, 256 rows of 9 bytes and a 16-bit sum"}, + {"from": "0x100f9000", "to": "0x100f9044", "owner": "base", "what": "settings.c's 'MWS1': the choice kept for each of eight module settings (PROJ > MODWERK > SETTINGS), by the hash of its label"}, {"from": "0x100f9800", "to": "0x100fbf00", "owner": "midi-scenes", "what": "'SCS2': the current bank's MIDI scene locks, packed (magic, bank, count, sum, project id, then one long a lock)"}, {"from": "0x100fbf00", "to": "0x100fc000", "owner": "kits", "what": "each of the 256 patterns' Kit, under the sum at 0x100f85a0"}, {"from": "0x100fc000", "to": "0x100fe000", "owner": "base", "what": "diag.c's log"}, diff --git a/sdk/machines/octatrack/elekloader/build_core.py b/sdk/machines/octatrack/elekloader/build_core.py index 46f6030675..fd34156aa3 100644 --- a/sdk/machines/octatrack/elekloader/build_core.py +++ b/sdk/machines/octatrack/elekloader/build_core.py @@ -1708,6 +1708,9 @@ def main(): 'midi_generators.s', 'sample_memory.c') if args.site_events else ()) + ( ('part_menu.c', 'part_menu.s') if args.part_menu else ()): shutil.copyfile(HERE / name, source / name) + if args.site_events and args.dsp_loader: # PROJ > MODWERK > SETTINGS (events.json ot_settings; status.c's page) + for name in ('settings.c', 'settings.h'): + shutil.copyfile(HERE / name, source / name) # A module may add one USB function to the base's configuration (events.json ot_usb_functions, usb_function.c). usb_function_slots = bool(usb_functions) and not usb_profiles and args.site_events if usb_function_slots: @@ -2060,7 +2063,8 @@ def resident_factory(tag, hi): raise ValueError('PROJ\'s root menu is not the four stock rows; review the MODWERK category.') stock_rows = image[ROOT_ROWS - device.main_load:][:4 * 24] columns = [sum(1 << r for r in range(8) if ICON[r][c] == '#') << 24 for c in range(19)] - leaves = (('load', 'load'), ('modules', 'modules'), ('missing', 'missing'), ('test', 'test'), ('switches', 'switches')) + leaves = (('load', 'load'), ('modules', 'modules'), ('missing', 'missing'), ('test', 'test'), ('switches', 'switches')) + ( + (('settings', 'settings'),) if args.site_events else ()) # settings.c: the settings modules contribute definitions += ('struct menu_row { const void *label, *window, *action, *value, *child; uint32_t page; };\n' 'extern char modwerk_menu_label[], %s;\nvoid %s;\n' % ( ', '.join('modwerk_%s_label[]' % label for label, _ in leaves), @@ -2133,6 +2137,8 @@ def resident_factory(tag, hi): recipe['cflags'].append('-DMODWERK_RUNTIME_SETS') if args.module_ui_roots: # loader.c's capability 1024, machine_admission_runtime.c recipe['cflags'].append('-DMODWERK_RUNTIME_UI_ROOTS') + if args.site_events and args.dsp_loader: + recipe['cflags'].append('-DMODWERK_SETTINGS') if usb_function_slots: # a base with USB Audio linked in (a development twin) has the table and refuses every function recipe['cflags'] += ['-DMODWERK_USB_FUNCTIONS'] + (['-DMODWERK_USB_AUDIO_LINKED'] if args.usb_audio else []) if args.saved_set_export: diff --git a/sdk/machines/octatrack/elekloader/runtime_events.h b/sdk/machines/octatrack/elekloader/runtime_events.h index 67d2fbdfe5..f1e5eed1b8 100644 --- a/sdk/machines/octatrack/elekloader/runtime_events.h +++ b/sdk/machines/octatrack/elekloader/runtime_events.h @@ -1,22 +1,22 @@ /* SPDX-License-Identifier: GPL-3.0-or-later * Generated by sdk/machines/octatrack/events.py from events.json: do not edit. * The Octatrack's events at base-owned stock sites and its tables, as hook - * indices after loader.h's RUNTIME_ENC: 4 ev_play_increment, 5 ev_voice_bind, 6 ev_voice_bind_run, 7 ev_mute_keep, 8 ev_midi_note_on, 9 ev_midi_note_off, 10 ev_octave_key, 11 ev_octave_number, 12 ev_settings_sanitise, 13 ev_project_defaults, 14 ev_keyboard_draw, 15 ev_chromatic_release, 16 ev_chromatic_held, 17 ev_chromatic_pitch, 18 ev_chromatic_trig, 19 ev_chromatic_record, 20 ev_chromatic_recorded, 21 ev_chromatic_locked, 22 ev_chromatic_index, 23 ev_plock_store, 24 ev_knob_store, 25 ev_project_load, 26 ev_project_line, 27 ev_project_write, 28 ot_machines, 29 ot_sequencer_rows, 30 ev_tail_kill, 31 ot_midi_generators, 32 ev_midi_note_key, 33 ev_arp_setup_knob, 34 ev_arp_setup_text, 35 ev_trig_muted, 36 ot_sample_editor_actions, 37 ot_machine_starts, 38 ev_banks_load, 39 ev_banks_loaded, 40 ev_bank_load, 41 ev_bank_loaded, 42 ev_project_new, 43 ev_bank_write, 44 ev_bank_written, 45 ev_project_store, 46 ev_project_stored, 47 ev_project_reload, 48 ev_project_reloaded, 49 ev_part_saved, 50 ev_part_clear, 51 ev_modules_ready, 52 ot_sample_memory, 53 ot_part_menu, 54 ev_in_use, 55 ev_usb_isr, 56 ev_usb_bus_end, 57 ev_usb_control, 58 ot_usb_functions, 59 ev_usb_frame. */ + * indices after loader.h's RUNTIME_ENC: 4 ev_play_increment, 5 ev_voice_bind, 6 ev_voice_bind_run, 7 ev_mute_keep, 8 ev_midi_note_on, 9 ev_midi_note_off, 10 ev_octave_key, 11 ev_octave_number, 12 ev_settings_sanitise, 13 ev_project_defaults, 14 ev_keyboard_draw, 15 ev_chromatic_release, 16 ev_chromatic_held, 17 ev_chromatic_pitch, 18 ev_chromatic_trig, 19 ev_chromatic_record, 20 ev_chromatic_recorded, 21 ev_chromatic_locked, 22 ev_chromatic_index, 23 ev_plock_store, 24 ev_knob_store, 25 ev_project_load, 26 ev_project_line, 27 ev_project_write, 28 ot_machines, 29 ot_sequencer_rows, 30 ev_tail_kill, 31 ot_midi_generators, 32 ev_midi_note_key, 33 ev_arp_setup_knob, 34 ev_arp_setup_text, 35 ev_trig_muted, 36 ot_sample_editor_actions, 37 ot_machine_starts, 38 ev_banks_load, 39 ev_banks_loaded, 40 ev_bank_load, 41 ev_bank_loaded, 42 ev_project_new, 43 ev_bank_write, 44 ev_bank_written, 45 ev_project_store, 46 ev_project_stored, 47 ev_project_reload, 48 ev_project_reloaded, 49 ev_part_saved, 50 ev_part_clear, 51 ev_modules_ready, 52 ot_sample_memory, 53 ot_part_menu, 54 ev_in_use, 55 ev_usb_isr, 56 ev_usb_bus_end, 57 ev_usb_control, 58 ot_usb_functions, 59 ev_usb_frame, 60 ot_settings. */ #ifndef MODWERK_RUNTIME_EVENTS_H #define MODWERK_RUNTIME_EVENTS_H -#define RUNTIME_SITE_EVENTS 56u -#define RUNTIME_SITE_EVENT_SPANS { {0x40004100u, 8u}, {0x40006820u, 8u}, {0x40006820u, 8u}, {0x00000000u, 0u}, {0x4000e746u, 6u}, {0x4000dfd4u, 8u}, {0x40045918u, 8u}, {0x400449beu, 8u}, {0x40010212u, 6u}, {0x40025ac2u, 6u}, {0x40044968u, 8u}, {0x4004fbdeu, 6u}, {0x4004fbfeu, 8u}, {0x4004fc58u, 10u}, {0x4004fc94u, 8u}, {0x4004fce0u, 8u}, {0x4004fd06u, 6u}, {0x4004fd20u, 6u}, {0x40050254u, 8u}, {0x40050e60u, 10u}, {0x40055170u, 6u}, {0x400866ccu, 8u}, {0x400867a2u, 8u}, {0x400888aau, 8u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x40004d0cu, 10u}, {0x00000000u, 0u}, {0x4009fb58u, 6u}, {0x4007a2ecu, 8u}, {0x4007a1ecu, 6u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x40090504u, 8u}, {0x00000000u, 0u}, {0x400905d4u, 8u}, {0x00000000u, 0u}, {0x400909d8u, 10u}, {0x400917c8u, 8u}, {0x00000000u, 0u}, {0x4008ee74u, 8u}, {0x00000000u, 0u}, {0x4008f180u, 8u}, {0x00000000u, 0u}, {0x4004a9c4u, 10u}, {0x4004a9d0u, 8u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x00000000u, 0u} } -#define RUNTIME_SITE_EVENT_ROOM { RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, RUNTIME_MODULES, 16u, 8u, 8u, 8u, RUNTIME_MODULES, 4u, 8u, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, 1u, 7u, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, 1u, RUNTIME_MODULES } -#define RUNTIME_SITE_EVENT_TABLES { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0 } -#define RUNTIME_SITE_EVENT_RESTS { 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } +#define RUNTIME_SITE_EVENTS 57u +#define RUNTIME_SITE_EVENT_SPANS { {0x40004100u, 8u}, {0x40006820u, 8u}, {0x40006820u, 8u}, {0x00000000u, 0u}, {0x4000e746u, 6u}, {0x4000dfd4u, 8u}, {0x40045918u, 8u}, {0x400449beu, 8u}, {0x40010212u, 6u}, {0x40025ac2u, 6u}, {0x40044968u, 8u}, {0x4004fbdeu, 6u}, {0x4004fbfeu, 8u}, {0x4004fc58u, 10u}, {0x4004fc94u, 8u}, {0x4004fce0u, 8u}, {0x4004fd06u, 6u}, {0x4004fd20u, 6u}, {0x40050254u, 8u}, {0x40050e60u, 10u}, {0x40055170u, 6u}, {0x400866ccu, 8u}, {0x400867a2u, 8u}, {0x400888aau, 8u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x40004d0cu, 10u}, {0x00000000u, 0u}, {0x4009fb58u, 6u}, {0x4007a2ecu, 8u}, {0x4007a1ecu, 6u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x40090504u, 8u}, {0x00000000u, 0u}, {0x400905d4u, 8u}, {0x00000000u, 0u}, {0x400909d8u, 10u}, {0x400917c8u, 8u}, {0x00000000u, 0u}, {0x4008ee74u, 8u}, {0x00000000u, 0u}, {0x4008f180u, 8u}, {0x00000000u, 0u}, {0x4004a9c4u, 10u}, {0x4004a9d0u, 8u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x00000000u, 0u}, {0x00000000u, 0u} } +#define RUNTIME_SITE_EVENT_ROOM { RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, 8u, RUNTIME_MODULES, 16u, 8u, 8u, 8u, RUNTIME_MODULES, 4u, 8u, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, 1u, 7u, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, RUNTIME_MODULES, 1u, RUNTIME_MODULES, 8u } +#define RUNTIME_SITE_EVENT_TABLES { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 1 } +#define RUNTIME_SITE_EVENT_RESTS { 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } /* the event the base asks each module from the UI tick (loader.c rest_poll) */ #define RUNTIME_SITE_EVENT_IN_USE 50u -#define RUNTIME_SITE_EVENT_WORDS (25u * (RUNTIME_MODULES + 1u) + 268u) -#define RUNTIME_SITE_EVENT_ROWS(r) { (r) + 0u * (RUNTIME_MODULES + 1u) + 0u, (r) + 1u * (RUNTIME_MODULES + 1u) + 0u, (r) + 2u * (RUNTIME_MODULES + 1u) + 0u, (r) + 3u * (RUNTIME_MODULES + 1u) + 0u, (r) + 4u * (RUNTIME_MODULES + 1u) + 0u, (r) + 4u * (RUNTIME_MODULES + 1u) + 9u, (r) + 4u * (RUNTIME_MODULES + 1u) + 18u, (r) + 4u * (RUNTIME_MODULES + 1u) + 27u, (r) + 4u * (RUNTIME_MODULES + 1u) + 36u, (r) + 4u * (RUNTIME_MODULES + 1u) + 45u, (r) + 4u * (RUNTIME_MODULES + 1u) + 54u, (r) + 4u * (RUNTIME_MODULES + 1u) + 63u, (r) + 4u * (RUNTIME_MODULES + 1u) + 72u, (r) + 4u * (RUNTIME_MODULES + 1u) + 81u, (r) + 4u * (RUNTIME_MODULES + 1u) + 90u, (r) + 4u * (RUNTIME_MODULES + 1u) + 99u, (r) + 4u * (RUNTIME_MODULES + 1u) + 108u, (r) + 4u * (RUNTIME_MODULES + 1u) + 117u, (r) + 4u * (RUNTIME_MODULES + 1u) + 126u, (r) + 4u * (RUNTIME_MODULES + 1u) + 135u, (r) + 4u * (RUNTIME_MODULES + 1u) + 144u, (r) + 4u * (RUNTIME_MODULES + 1u) + 153u, (r) + 4u * (RUNTIME_MODULES + 1u) + 162u, (r) + 4u * (RUNTIME_MODULES + 1u) + 171u, (r) + 4u * (RUNTIME_MODULES + 1u) + 180u, (r) + 4u * (RUNTIME_MODULES + 1u) + 189u, (r) + 4u * (RUNTIME_MODULES + 1u) + 198u, (r) + 5u * (RUNTIME_MODULES + 1u) + 198u, (r) + 5u * (RUNTIME_MODULES + 1u) + 215u, (r) + 5u * (RUNTIME_MODULES + 1u) + 224u, (r) + 5u * (RUNTIME_MODULES + 1u) + 233u, (r) + 5u * (RUNTIME_MODULES + 1u) + 242u, (r) + 6u * (RUNTIME_MODULES + 1u) + 242u, (r) + 6u * (RUNTIME_MODULES + 1u) + 247u, (r) + 6u * (RUNTIME_MODULES + 1u) + 256u, (r) + 7u * (RUNTIME_MODULES + 1u) + 256u, (r) + 8u * (RUNTIME_MODULES + 1u) + 256u, (r) + 9u * (RUNTIME_MODULES + 1u) + 256u, (r) + 10u * (RUNTIME_MODULES + 1u) + 256u, (r) + 11u * (RUNTIME_MODULES + 1u) + 256u, (r) + 12u * (RUNTIME_MODULES + 1u) + 256u, (r) + 13u * (RUNTIME_MODULES + 1u) + 256u, (r) + 14u * (RUNTIME_MODULES + 1u) + 256u, (r) + 15u * (RUNTIME_MODULES + 1u) + 256u, (r) + 16u * (RUNTIME_MODULES + 1u) + 256u, (r) + 17u * (RUNTIME_MODULES + 1u) + 256u, (r) + 18u * (RUNTIME_MODULES + 1u) + 256u, (r) + 19u * (RUNTIME_MODULES + 1u) + 256u, (r) + 20u * (RUNTIME_MODULES + 1u) + 256u, (r) + 20u * (RUNTIME_MODULES + 1u) + 258u, (r) + 20u * (RUNTIME_MODULES + 1u) + 266u, (r) + 21u * (RUNTIME_MODULES + 1u) + 266u, (r) + 22u * (RUNTIME_MODULES + 1u) + 266u, (r) + 23u * (RUNTIME_MODULES + 1u) + 266u, (r) + 24u * (RUNTIME_MODULES + 1u) + 266u, (r) + 24u * (RUNTIME_MODULES + 1u) + 268u } +#define RUNTIME_SITE_EVENT_WORDS (25u * (RUNTIME_MODULES + 1u) + 277u) +#define RUNTIME_SITE_EVENT_ROWS(r) { (r) + 0u * (RUNTIME_MODULES + 1u) + 0u, (r) + 1u * (RUNTIME_MODULES + 1u) + 0u, (r) + 2u * (RUNTIME_MODULES + 1u) + 0u, (r) + 3u * (RUNTIME_MODULES + 1u) + 0u, (r) + 4u * (RUNTIME_MODULES + 1u) + 0u, (r) + 4u * (RUNTIME_MODULES + 1u) + 9u, (r) + 4u * (RUNTIME_MODULES + 1u) + 18u, (r) + 4u * (RUNTIME_MODULES + 1u) + 27u, (r) + 4u * (RUNTIME_MODULES + 1u) + 36u, (r) + 4u * (RUNTIME_MODULES + 1u) + 45u, (r) + 4u * (RUNTIME_MODULES + 1u) + 54u, (r) + 4u * (RUNTIME_MODULES + 1u) + 63u, (r) + 4u * (RUNTIME_MODULES + 1u) + 72u, (r) + 4u * (RUNTIME_MODULES + 1u) + 81u, (r) + 4u * (RUNTIME_MODULES + 1u) + 90u, (r) + 4u * (RUNTIME_MODULES + 1u) + 99u, (r) + 4u * (RUNTIME_MODULES + 1u) + 108u, (r) + 4u * (RUNTIME_MODULES + 1u) + 117u, (r) + 4u * (RUNTIME_MODULES + 1u) + 126u, (r) + 4u * (RUNTIME_MODULES + 1u) + 135u, (r) + 4u * (RUNTIME_MODULES + 1u) + 144u, (r) + 4u * (RUNTIME_MODULES + 1u) + 153u, (r) + 4u * (RUNTIME_MODULES + 1u) + 162u, (r) + 4u * (RUNTIME_MODULES + 1u) + 171u, (r) + 4u * (RUNTIME_MODULES + 1u) + 180u, (r) + 4u * (RUNTIME_MODULES + 1u) + 189u, (r) + 4u * (RUNTIME_MODULES + 1u) + 198u, (r) + 5u * (RUNTIME_MODULES + 1u) + 198u, (r) + 5u * (RUNTIME_MODULES + 1u) + 215u, (r) + 5u * (RUNTIME_MODULES + 1u) + 224u, (r) + 5u * (RUNTIME_MODULES + 1u) + 233u, (r) + 5u * (RUNTIME_MODULES + 1u) + 242u, (r) + 6u * (RUNTIME_MODULES + 1u) + 242u, (r) + 6u * (RUNTIME_MODULES + 1u) + 247u, (r) + 6u * (RUNTIME_MODULES + 1u) + 256u, (r) + 7u * (RUNTIME_MODULES + 1u) + 256u, (r) + 8u * (RUNTIME_MODULES + 1u) + 256u, (r) + 9u * (RUNTIME_MODULES + 1u) + 256u, (r) + 10u * (RUNTIME_MODULES + 1u) + 256u, (r) + 11u * (RUNTIME_MODULES + 1u) + 256u, (r) + 12u * (RUNTIME_MODULES + 1u) + 256u, (r) + 13u * (RUNTIME_MODULES + 1u) + 256u, (r) + 14u * (RUNTIME_MODULES + 1u) + 256u, (r) + 15u * (RUNTIME_MODULES + 1u) + 256u, (r) + 16u * (RUNTIME_MODULES + 1u) + 256u, (r) + 17u * (RUNTIME_MODULES + 1u) + 256u, (r) + 18u * (RUNTIME_MODULES + 1u) + 256u, (r) + 19u * (RUNTIME_MODULES + 1u) + 256u, (r) + 20u * (RUNTIME_MODULES + 1u) + 256u, (r) + 20u * (RUNTIME_MODULES + 1u) + 258u, (r) + 20u * (RUNTIME_MODULES + 1u) + 266u, (r) + 21u * (RUNTIME_MODULES + 1u) + 266u, (r) + 22u * (RUNTIME_MODULES + 1u) + 266u, (r) + 23u * (RUNTIME_MODULES + 1u) + 266u, (r) + 24u * (RUNTIME_MODULES + 1u) + 266u, (r) + 24u * (RUNTIME_MODULES + 1u) + 268u, (r) + 25u * (RUNTIME_MODULES + 1u) + 268u } #define RUNTIME_OWNED_SITES 69u #define RUNTIME_OWNED_SPANS { {0x40002318u, 8u, 24u}, {0x40031e74u, 10u, 24u}, {0x400334d8u, 6u, 24u}, {0x4003a526u, 4u, 24u}, {0x4003a52eu, 8u, 24u}, {0x4003bff2u, 8u, 24u}, {0x4003c8ccu, 4u, 24u}, {0x4003c928u, 6u, 24u}, {0x4003c950u, 2u, 24u}, {0x4003c980u, 6u, 24u}, {0x4003cd98u, 8u, 24u}, {0x4003d136u, 4u, 24u}, {0x4003d718u, 6u, 24u}, {0x4004c36au, 6u, 24u}, {0x4005221eu, 10u, 24u}, {0x400585dcu, 10u, 24u}, {0x400585ecu, 4u, 24u}, {0x400585fau, 4u, 24u}, {0x4005a616u, 6u, 24u}, {0x4005a850u, 6u, 24u}, {0x4006d784u, 8u, 24u}, {0x40077b5cu, 6u, 24u}, {0x4007865eu, 4u, 24u}, {0x40078678u, 2u, 24u}, {0x400786c8u, 6u, 24u}, {0x400786ceu, 2u, 24u}, {0x40078886u, 10u, 24u}, {0x400791e4u, 8u, 24u}, {0x40079248u, 4u, 24u}, {0x4007981cu, 6u, 24u}, {0x40079904u, 2u, 24u}, {0x400ce10eu, 4u, 24u}, {0x400cf6fau, 4u, 24u}, {0x400cf702u, 4u, 24u}, {0x400cf714u, 4u, 24u}, {0x400d6438u, 4u, 24u}, {0x400788c4u, 12u, 24u}, {0x40078c22u, 2u, 24u}, {0x40078c28u, 2u, 24u}, {0x40078cb0u, 2u, 24u}, {0x40078cb6u, 2u, 24u}, {0x40078d2eu, 2u, 24u}, {0x40078d34u, 2u, 24u}, {0x40078deeu, 2u, 24u}, {0x40078df4u, 2u, 24u}, {0x40078e7cu, 2u, 24u}, {0x40078e82u, 2u, 24u}, {0x40065bcau, 6u, 25u}, {0x40065bd8u, 4u, 25u}, {0x40065bdeu, 4u, 25u}, {0x40065c7cu, 4u, 25u}, {0x40065cc4u, 4u, 25u}, {0x40065d3eu, 4u, 25u}, {0x40065d58u, 4u, 25u}, {0x40065d72u, 4u, 25u}, {0x40083afcu, 10u, 27u}, {0x4004e1eau, 10u, 27u}, {0x40032280u, 8u, 27u}, {0x40036548u, 8u, 27u}, {0x40072c30u, 6u, 32u}, {0x40072caau, 6u, 32u}, {0x4006d8f4u, 6u, 32u}, {0x4006d91cu, 6u, 32u}, {0x400858c0u, 6u, 32u}, {0x4000d47eu, 6u, 33u}, {0x40097014u, 4u, 48u}, {0x4002dc68u, 6u, 49u}, {0x4002dc90u, 6u, 49u}, {0x4002dcc4u, 6u, 49u} } extern const unsigned char modwerk_raise_ev_mute_keep[]; extern const unsigned char modwerk_raise_ev_trig_muted[]; /* raised events: the base's entry a package's RUNTIME_RAISE hook word receives */ -#define RUNTIME_SITE_EVENT_RAISES { 0, 0, 0, (uintptr_t)modwerk_raise_ev_mute_keep, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, (uintptr_t)modwerk_raise_ev_trig_muted, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } +#define RUNTIME_SITE_EVENT_RAISES { 0, 0, 0, (uintptr_t)modwerk_raise_ev_mute_keep, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, (uintptr_t)modwerk_raise_ev_trig_muted, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } #endif diff --git a/sdk/machines/octatrack/elekloader/settings.c b/sdk/machines/octatrack/elekloader/settings.c new file mode 100644 index 0000000000..61844fbcd3 --- /dev/null +++ b/sdk/machines/octatrack/elekloader/settings.c @@ -0,0 +1,122 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later + * PROJ > MODWERK > SETTINGS: one choice a module, changed on the unit (events.json ot_settings; owner, 20 November + * 2026: one SETTINGS row for every module, and the base keeps the choice through a power cycle). + * + * A module contributes one struct modwerk_setting: a label, two to six choice names and apply(choice). The base lists + * the settings (status.c's page), calls apply when the player takes the next choice, and keeps the choice in battery + * RAM under the label's hash, so a module replaced by a newer version or by another build of itself (USB Audio in + * another layout) keeps its setting, and one that is removed and installed again finds it. After every change of the + * installed modules each setting's kept choice is applied again: a module starts with its first choice until then, + * within a tick. A kept choice the installed record does not offer is the first one until the player chooses again; + * the kept value stays, for the build that offers it. + * + * The store: 'MWS1', then MODWERK_SETTINGS_ROOM entries of the label's hash (0: free) and the choice. A store whose + * magic is not ours is empty. With every entry taken a new setting replaces the entry its hash names: a setting of a + * module long gone, most likely. UI task only; apply runs there, outside the mask, as part_menu.c's choose does. + * Battery RAM: battery-ram.json. */ +#include +#include "modwerk_events.h" +#include "settings.h" +#ifndef ST_HOST /* test_settings.c maps these onto a model of the unit */ +#include "loader.h" +#define ST_TABLE (MODWERK_OT_SETTINGS - RUNTIME_EVENTS) +#define ST_STORE ((volatile uint32_t *)0x100f9000u) +#define ST_MASK() modwerk_machine_mask() +#define ST_UNMASK(m) modwerk_machine_unmask(m) +#define ST_EPOCH() modwerk_runtime_owner_epoch() +#define ST_ROW() modwerk_runtime_event_row[ST_TABLE] +#endif +#define ST_MAGIC 0x4d575331u /* "MWS1" */ +#define ST_CHOICES 6u +typedef struct modwerk_setting StEntry; + +/* Masked, so a table change is never seen half-way (midi_generators.c's mg_generators). */ +static unsigned st_entries(const StEntry **out) +{ + unsigned n = 0; + uint32_t mask = ST_MASK(); + for (uintptr_t volatile *row = ST_ROW(); *row && n < MODWERK_SETTINGS_ROOM; ++row) { + const StEntry *e = (const StEntry *)*row; + if (e->abi == MODWERK_SETTING_ABI && e->label && e->label[0] && e->choices && e->apply && e->count >= 2u && e->count <= ST_CHOICES) + out[n++] = e; + } + ST_UNMASK(mask); + return n; +} + +/* FNV-1a of the label, never 0. */ +static uint32_t st_key(const char *label) +{ + uint32_t h = 2166136261u; + for (unsigned i = 0; i < 16u && label[i]; ++i) h = (h ^ (uint8_t)label[i]) * 16777619u; + return h ? h : 1u; +} +static void st_format(void) +{ + volatile uint32_t *s = ST_STORE; + if (s[0] == ST_MAGIC) return; + for (unsigned i = 0; i < 2u * MODWERK_SETTINGS_ROOM; ++i) s[1u + i] = 0; + s[0] = ST_MAGIC; +} +/* The kept choice under this key: what the store holds, whatever the record offers. 0 without one. */ +static uint32_t st_kept(uint32_t key) +{ + volatile uint32_t *s = ST_STORE; + if (s[0] != ST_MAGIC) return 0; + for (unsigned i = 0; i < MODWERK_SETTINGS_ROOM; ++i) if (s[1u + 2u * i] == key) return s[2u + 2u * i]; + return 0; +} +static void st_keep(uint32_t key, uint32_t choice) +{ + volatile uint32_t *s = ST_STORE; + unsigned at = MODWERK_SETTINGS_ROOM; + st_format(); + for (unsigned i = 0; i < MODWERK_SETTINGS_ROOM; ++i) if (s[1u + 2u * i] == key) at = i; + for (unsigned i = 0; at == MODWERK_SETTINGS_ROOM && i < MODWERK_SETTINGS_ROOM; ++i) if (!s[1u + 2u * i]) at = i; + if (at == MODWERK_SETTINGS_ROOM) at = key % MODWERK_SETTINGS_ROOM; + s[2u + 2u * at] = choice; /* the value first: a power cut between the two leaves the entry's old key or a free one */ + s[1u + 2u * at] = key; +} +/* The choice in force for this record: the kept one when the record offers it. */ +static unsigned st_choice(const StEntry *e) +{ + uint32_t kept = st_kept(st_key(e->label)); + return kept < e->count ? (unsigned)kept : 0u; +} + +static uint32_t st_seen = 1u; /* the owner epoch the choices were last applied for; odd: never */ +void modwerk_settings_tick(void) +{ + const StEntry *e[MODWERK_SETTINGS_ROOM]; + uint32_t epoch = ST_EPOCH(); + if (epoch == st_seen || (epoch & 1u)) return; /* unchanged, or a change is under way */ + unsigned n = st_entries(e); + if (ST_EPOCH() != epoch) return; /* it moved while the rows were read: the next tick */ + st_seen = epoch; + for (unsigned i = 0; i < n; ++i) e[i]->apply(st_choice(e[i])); +} +unsigned modwerk_settings_count(void) +{ + const StEntry *e[MODWERK_SETTINGS_ROOM]; + return st_entries(e); +} +const char *modwerk_settings_name(unsigned i) +{ + const StEntry *e[MODWERK_SETTINGS_ROOM]; + return i < st_entries(e) ? e[i]->label : ""; +} +const char *modwerk_settings_choice(unsigned i) +{ + const StEntry *e[MODWERK_SETTINGS_ROOM]; + if (i >= st_entries(e)) return ""; + const char *name = e[i]->choices[st_choice(e[i])]; + return name ? name : ""; +} +void modwerk_settings_next(unsigned i) +{ + const StEntry *e[MODWERK_SETTINGS_ROOM]; + if (i >= st_entries(e)) return; + unsigned next = (st_choice(e[i]) + 1u) % e[i]->count; + st_keep(st_key(e[i]->label), next); + e[i]->apply(next); +} diff --git a/sdk/machines/octatrack/elekloader/settings.h b/sdk/machines/octatrack/elekloader/settings.h new file mode 100644 index 0000000000..9fa031bc6d --- /dev/null +++ b/sdk/machines/octatrack/elekloader/settings.h @@ -0,0 +1,16 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later + * The settings modules add to PROJ > MODWERK > SETTINGS (settings.c; events.json ot_settings). UI task only. */ +#ifndef MODWERK_SETTINGS_H +#define MODWERK_SETTINGS_H +#include +#define MODWERK_SETTINGS_ROOM 8u /* the table's room (events.json) */ +/* Each UI tick: after the installed modules changed, every setting's kept choice is applied again. */ +void modwerk_settings_tick(void); +/* The settings installed now, in table order: at most MODWERK_SETTINGS_ROOM. The page reads them once a draw or key. */ +unsigned modwerk_settings_count(void); +/* Setting i's label and the name of its choice in force; "" for a row that left meanwhile. */ +const char *modwerk_settings_name(unsigned i); +const char *modwerk_settings_choice(unsigned i); +/* YES on setting i: its next choice (the first after the last), applied and kept through a power cycle. */ +void modwerk_settings_next(unsigned i); +#endif diff --git a/sdk/machines/octatrack/elekloader/status.c b/sdk/machines/octatrack/elekloader/status.c index 12ef24d0c8..030a17ceb1 100644 --- a/sdk/machines/octatrack/elekloader/status.c +++ b/sdk/machines/octatrack/elekloader/status.c @@ -10,6 +10,9 @@ * frame is 72,520 cycles. */ #include #include "loader.h" +#ifdef MODWERK_SETTINGS +#include "settings.h" +#endif #include "selftest.h" #include "status.h" #include "fxids.h" @@ -149,6 +152,9 @@ static void transfer_tick(void); static void status_tick(void) { modwerk_status_close_menu(); +#ifdef MODWERK_SETTINGS + modwerk_settings_tick(); /* settings.c: the kept choices, after the installed modules changed */ +#endif transfer_tick(); memory_tick(); modwerk_fxpage_missing(); /* the first tick builds it; after that it returns at once */ @@ -192,7 +198,7 @@ static void status_tick(void) * screen it covered is back as it was. CUE + PROJ toggles the status from anywhere; PROJ's MODWERK category (the * fifth root row build_core.py adds, owner 12 October 2026) opens each page: STATUS, MODULE COST, MISSING, SELF TEST, MODULES (renamed from LOAD and MODULE LOAD, owner, * 16 November 2026: they read like loading modules). */ -enum { CLOSED, SHOWN, TEST, MISSING, MEMORY, MODULE_LOAD, REFUSED, SWITCHES }; +enum { CLOSED, SHOWN, TEST, MISSING, MEMORY, MODULE_LOAD, REFUSED, SWITCHES, SETTINGS }; static int open, taken = -1; /* which shows; a key press the handler took, whose release it takes too (-1: none; TRIG 1 is 0) */ /* What a host is doing to the unit, on its own screen (owner, 13 November 2026: a sync shows a dialog with a progress * bar, and a base update takes the whole screen and the panel until it is saved). The step is worked out each tick @@ -628,6 +634,29 @@ static void switches_tick(void) } if (switch_stale || ticks - switch_read_at >= 60u) switches_read(); } +#ifdef MODWERK_SETTINGS +/* SETTINGS (settings.c, events.json ot_settings; owner, 20 November 2026): one row a module that has a choice to + * make on the unit, its label and under it the choice in force. UP and DOWN move, YES takes the next choice, which + * holds at once and through a power cycle; NO closes. */ +#define SETTING_ROWS 2u /* two lines a setting */ +char modwerk_settings_label[] = "SETTINGS"; +static unsigned setting_cursor, setting_top; +void modwerk_settings_menu(int unused) +{ + (void)unused; + if (menu_open()) open = SETTINGS, setting_cursor = setting_top = 0, close_menu = 1; +} +static void settings_key(int code) +{ + unsigned n = modwerk_settings_count(); + if (setting_cursor >= n) setting_cursor = n ? n - 1u : 0; + if (code == UP && setting_cursor) --setting_cursor; + if (code == DOWN && setting_cursor + 1u < n) ++setting_cursor; + if (setting_top > setting_cursor) setting_top = setting_cursor; + if (setting_cursor >= setting_top + SETTING_ROWS) setting_top = setting_cursor + 1u - SETTING_ROWS; + if (code == YES && setting_cursor < n) modwerk_settings_next(setting_cursor); +} +#endif void modwerk_switches_menu(int unused) { (void)unused; @@ -669,6 +698,13 @@ int modwerk_status_key(int code, int pressed) taken = code; return 1; } +#ifdef MODWERK_SETTINGS + if (open == SETTINGS && (code == UP || code == DOWN || code == YES)) { + settings_key(code); + taken = code; + return 1; + } +#endif if (open == SWITCHES && (code == UP || code == DOWN || code == YES)) { if (code == UP && switch_cursor) --switch_cursor; if (code == DOWN && switch_cursor + 1u < switch_count) ++switch_cursor; @@ -1295,6 +1331,26 @@ void modwerk_status_draw(unsigned char *frame) { MW_STAMP(22); status_draw(frame); MW_STAMP(13); } +#ifdef MODWERK_SETTINGS +static void settings_page(unsigned char *frame) +{ + unsigned n = modwerk_settings_count(); + dialog(frame, "SETTINGS"); + if (!n) label(X0 + 6u, Y0 + 17u, "NO MODULE HAS A SETTING."); + if (setting_cursor >= n) setting_cursor = n ? n - 1u : 0; + if (setting_top > setting_cursor) setting_top = setting_cursor; + for (unsigned i = 0; i < SETTING_ROWS && setting_top + i < n; ++i) { + unsigned top = Y0 + 13u + 17u * i; + if (setting_top + i == setting_cursor) for (unsigned k = 0; k < 3u; ++k) fill(frame, X0 + 3u + k, top + k, X0 + 3u + k, top + 4u - k, 1); + label(X0 + 9u, top, modwerk_settings_name(setting_top + i)); + label(X0 + 15u, top + 8u, modwerk_settings_choice(setting_top + i)); + } + if (setting_top) arrow(frame, X1 - 10u, Y0 + 14u, 1); + if (setting_top + SETTING_ROWS < n) arrow(frame, X1 - 10u, Y0 + 14u + 17u * (SETTING_ROWS - 1u) + 8u, 0); + if (n) button(frame, X0 + 4u, Y1 - 10u, "YES"), label(X0 + 34u, Y1 - 8u, "CHANGE"); + button(frame, X1 - 24u, Y1 - 10u, "NO"); +} +#endif static void status_draw(unsigned char *frame) { if (transfer == T_SYNC || transfer == T_SYNC_START) { sync_box(frame); return; } @@ -1305,6 +1361,9 @@ static void status_draw(unsigned char *frame) if (open == TEST) { test_page(frame); return; } if (open == MODULE_LOAD) { modules_page(frame); return; } if (open == SWITCHES) { switches_page(frame); return; } +#ifdef MODWERK_SETTINGS + if (open == SETTINGS) { settings_page(frame); return; } +#endif if (open != SHOWN) return; /* The title names the base by its version (owner, 16 November 2026: a number a player can read and say). */ static char title[24] = "MODWERK BASE "; diff --git a/sdk/machines/octatrack/elekloader/test_settings.c b/sdk/machines/octatrack/elekloader/test_settings.c new file mode 100644 index 0000000000..33501edc63 --- /dev/null +++ b/sdk/machines/octatrack/elekloader/test_settings.c @@ -0,0 +1,115 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later + * Host test of settings.c: the table's rows, the kept choices and when they are applied. Run by + * sdk/tests/test_settings.py. */ +#include +#include +#include +#define ST_HOST +#define CHECK(c) do { if (!(c)) { fprintf(stderr, "line %d: %s\n", __LINE__, #c); failures++; } } while (0) +static int failures; +static uint32_t store[32], epoch = 2, masked; +static uintptr_t volatile table_row[12]; +static uint32_t host_mask(void) { CHECK(!masked); masked = 1; return 7u; } +static void host_unmask(uint32_t m) { CHECK(masked && m == 7u); masked = 0; } +static uint32_t host_epoch(void) { return epoch; } +#define ST_STORE ((volatile uint32_t *)store) +#define ST_MASK() host_mask() +#define ST_UNMASK(m) host_unmask(m) +#define ST_EPOCH() host_epoch() +#define ST_ROW() table_row +#include "settings.c" + +static unsigned applied[3], calls[3]; +static void apply0(unsigned c) { CHECK(!masked); applied[0] = c, ++calls[0]; } +static void apply1(unsigned c) { CHECK(!masked); applied[1] = c, ++calls[1]; } +static void apply2(unsigned c) { CHECK(!masked); applied[2] = c, ++calls[2]; } +static const char *const three[] = {"ALL CHANNELS", "OFF", "MAIN + CUE ONLY"}, *const two[] = {"ALL CHANNELS", "OFF"}; + +int main(void) +{ + struct modwerk_setting usb = {MODWERK_SETTING_ABI, "USB AUDIO", 3, three, apply0, 0}, + other = {MODWERK_SETTING_ABI, "OTHER", 2, two, apply1, 0}, bad = usb; + CHECK(sizeof(void *) != 4 || sizeof usb == 24); + + /* Nothing installed, a store that is not ours: no row, nothing applied, nothing written. */ + memset(store, 0xa5, sizeof store); + modwerk_settings_tick(); + CHECK(!modwerk_settings_count() && !calls[0] && store[0] == 0xa5a5a5a5u && !*modwerk_settings_name(0)); + modwerk_settings_next(0); + CHECK(store[0] == 0xa5a5a5a5u); + + /* A module arrives: its first choice is applied once for the change, not every tick. */ + table_row[0] = (uintptr_t)&usb, epoch = 4; + modwerk_settings_tick(), modwerk_settings_tick(); + CHECK(modwerk_settings_count() == 1u && calls[0] == 1u && applied[0] == 0u); + CHECK(!strcmp(modwerk_settings_name(0), "USB AUDIO") && !strcmp(modwerk_settings_choice(0), "ALL CHANNELS")); + CHECK(store[0] == 0xa5a5a5a5u); /* reading formats nothing */ + + /* YES: the next choice, applied at once and kept; after the last comes the first. */ + modwerk_settings_next(0); + CHECK(applied[0] == 1u && calls[0] == 2u && store[0] == ST_MAGIC && !strcmp(modwerk_settings_choice(0), "OFF")); + modwerk_settings_next(0); + CHECK(applied[0] == 2u && !strcmp(modwerk_settings_choice(0), "MAIN + CUE ONLY")); + modwerk_settings_next(0); + CHECK(applied[0] == 0u); + modwerk_settings_next(0), modwerk_settings_next(0); + CHECK(applied[0] == 2u); + + /* A change under way (odd epoch) waits; when it is done every kept choice is applied again. */ + epoch = 5; + modwerk_settings_tick(); + CHECK(calls[0] == 6u); + table_row[1] = (uintptr_t)&other, epoch = 6; + modwerk_settings_tick(); + CHECK(calls[0] == 7u && applied[0] == 2u && calls[1] == 1u && applied[1] == 0u && modwerk_settings_count() == 2u); + + /* Another build of the same module offers fewer choices: the first one, and the kept value stays for the build + * that offers it. */ + struct modwerk_setting small = {MODWERK_SETTING_ABI, "USB AUDIO", 2, two, apply2, 0}; + table_row[0] = (uintptr_t)&small, epoch = 8; + modwerk_settings_tick(); + CHECK(calls[2] == 1u && applied[2] == 0u && !strcmp(modwerk_settings_choice(0), "ALL CHANNELS")); + table_row[0] = (uintptr_t)&usb, epoch = 10; + modwerk_settings_tick(); + CHECK(applied[0] == 2u); + + /* A power cycle: the base's RAM is new, the store is not. */ + st_seen = 1u, applied[0] = 9u; + modwerk_settings_tick(); + CHECK(applied[0] == 2u); + + /* Records the base does not take are no rows: a wrong ABI, no label, one choice, seven, no apply. */ + bad.abi = 2, table_row[0] = (uintptr_t)&bad; + CHECK(modwerk_settings_count() == 1u && !strcmp(modwerk_settings_name(0), "OTHER")); + bad = usb, bad.count = 1; + CHECK(modwerk_settings_count() == 1u); + bad.count = 7; + CHECK(modwerk_settings_count() == 1u); + bad = usb, bad.apply = 0; + CHECK(modwerk_settings_count() == 1u); + bad = usb, bad.label = ""; + CHECK(modwerk_settings_count() == 1u); + table_row[0] = (uintptr_t)&usb; + + /* A full store: a ninth setting takes the entry its hash names, and the others keep theirs. */ + struct modwerk_setting many[8]; + char names[8][4]; + for (unsigned i = 0; i < 8u; ++i) { + names[i][0] = 'S', names[i][1] = (char)('0' + i), names[i][2] = 0; + many[i] = other, many[i].label = names[i]; + table_row[0] = (uintptr_t)&many[i], table_row[1] = 0; + modwerk_settings_next(0); + } + unsigned usb_kept = 0, others_kept = 0; + for (unsigned i = 0; i < MODWERK_SETTINGS_ROOM; ++i) { + usb_kept += store[1u + 2u * i] == st_key("USB AUDIO"); + others_kept += store[1u + 2u * i] != 0u; + } + CHECK(others_kept == MODWERK_SETTINGS_ROOM && usb_kept <= 1u); + table_row[0] = (uintptr_t)&many[7]; + CHECK(!strcmp(modwerk_settings_choice(0), "OFF")); + + if (failures) return 1; + puts("settings: rows, kept choices and their application pass"); + return 0; +} diff --git a/sdk/machines/octatrack/events.json b/sdk/machines/octatrack/events.json index b584aa2127..79a53d6f12 100644 --- a/sdk/machines/octatrack/events.json +++ b/sdk/machines/octatrack/events.json @@ -2400,6 +2400,23 @@ "raisers": [], "raisedByBase": true, "orderEvidence": "A function owns its ring and endpoint alone (ot_usb_functions holds one function). No module subscribes yet: USB Audio's audio_frame_shim does this work at the same site when it is linked into a base, and such a base leaves the site to it." + }, + { + "event": "ot_settings", + "index": 60, + "kind": "table", + "site": null, + "length": 0, + "record": 24, + "key": null, + "room": 8, + "declaration": "struct modwerk_setting {\n uint32_t abi; /* MODWERK_SETTING_ABI */\n const char *label; /* its row on the page: up to 15 characters */\n uint32_t count; /* its choices, 2-6 */\n const char *const *choices; /* each choice's name: up to 15 characters; the first is the one a new unit starts with */\n void (*apply)(unsigned choice); /* put choice 0..count-1 in force */\n uint32_t reserved; /* 0 */\n};\n#define MODWERK_SETTING_ABI 1u", + "when": "PROJ > MODWERK > SETTINGS lists one row per contributed setting, in table order, with the name of the choice in force; YES on a row takes its next choice", + "context": "the UI task: apply is short and must not draw or open a window", + "contract": "Contribute one struct modwerk_setting (every field set) for a choice the player makes on the unit, not in a project: it holds for the whole instrument. The base calls apply(choice) when the player takes a choice and, within a tick, after every change of the installed modules (a power-up, a sync, an Undo, a switch in MODULES), so the module starts as with its first choice and needs no storage of its own. The base keeps the choice through a power cycle under the label, so an update of the module, or another build of it with the same label, keeps the setting; give a label no other module uses. A kept choice this record does not offer is the first one until the player chooses again. Labels and names are read each time the page is drawn: keep them in the image, printable capitals.", + "order": "lower first, then module id: the page's row order. 50-90.", + "subscribers": [], + "orderEvidence": "Each setting is its module's own and no row reads another's. USB Audio is the first to contribute (ALL CHANNELS, OFF, and MAIN + CUE ONLY in the twenty-channel layout: issue 1512); until its package is published no module does." } ] } diff --git a/sdk/machines/octatrack/include/modwerk_events.h b/sdk/machines/octatrack/include/modwerk_events.h index dc8f51bdd4..861547e5fa 100644 --- a/sdk/machines/octatrack/include/modwerk_events.h +++ b/sdk/machines/octatrack/include/modwerk_events.h @@ -305,4 +305,16 @@ struct modwerk_usb_function { #define MODWERK_EV_USB_FRAME 59 typedef unsigned modwerk_ev_usb_frame(void); +/* ot_settings (table, contribute {"to": "ot_settings", "order", "data"}): PROJ > MODWERK > SETTINGS lists one row per contributed setting, in table order, with the name of the choice in force; YES on a row takes its next choice. The UI task: apply is short and must not draw or open a window. Contribute one struct modwerk_setting (every field set) for a choice the player makes on the unit, not in a project: it holds for the whole instrument. The base calls apply(choice) when the player takes a choice and, within a tick, after every change of the installed modules (a power-up, a sync, an Undo, a switch in MODULES), so the module starts as with its first choice and needs no storage of its own. The base keeps the choice through a power cycle under the label, so an update of the module, or another build of it with the same label, keeps the setting; give a label no other module uses. A kept choice this record does not offer is the first one until the player chooses again. Labels and names are read each time the page is drawn: keep them in the image, printable capitals. */ +#define MODWERK_OT_SETTINGS 60 +struct modwerk_setting { + uint32_t abi; /* MODWERK_SETTING_ABI */ + const char *label; /* its row on the page: up to 15 characters */ + uint32_t count; /* its choices, 2-6 */ + const char *const *choices; /* each choice's name: up to 15 characters; the first is the one a new unit starts with */ + void (*apply)(unsigned choice); /* put choice 0..count-1 in force */ + uint32_t reserved; /* 0 */ +}; +#define MODWERK_SETTING_ABI 1u + #endif diff --git a/sdk/machines/octatrack/module-adapters/usb_audio_package.py b/sdk/machines/octatrack/module-adapters/usb_audio_package.py index 3095bffb9f..37322f1ebb 100644 --- a/sdk/machines/octatrack/module-adapters/usb_audio_package.py +++ b/sdk/machines/octatrack/module-adapters/usb_audio_package.py @@ -19,6 +19,9 @@ dispatcher's tail; - its descriptors are the block ot_usb_functions takes, cut from the same composed configuration a linked base sends; - SET_INTERFACE, GET_INTERFACE and the EP0 page fix stay its own stock sites, which no base without it patches; +- the player's choice on the unit (PROJ > MODWERK > SETTINGS: ALL CHANNELS, OFF and, in the twenty-channel layout, + MAIN + CUE ONLY; issue 1512) is the package's ot_settings record, read by the producer through the seams pull + request 1517 made for a linked base; - its transfer descriptors are aligned at run time: a package's image sits at a 16-byte boundary of the pool, and the controller needs 32; - USB AUDIO OUT TRACKS POST takes its gain curve as the computed quarter sine (owner, 20 November 2026), not as @@ -68,6 +71,160 @@ def function_block(functions, usb, descriptors, layout, high_speed, other_speed) return block +def audio_switch(text, key, layouts): + """The player's choice on the unit (PROJ > MODWERK > SETTINGS, the package's ot_settings record), read by the + producer every frame. Written for a base that linked USB Audio in and tried on a unit there (pull request + 1517, 13 November 2026); in a package it has run in the emulator only. + + OFF: silence. The frame hook takes its no-host path, writes nothing to the ring and only counts the block's + sixteen frames, so the packet clock and its servo run on; the builder copies nothing and sends each packet + from a buffer zeroed once (the first packet each of the NSLOT buffers carries after the choice). A host sees + an ordinary stream of silence, whenever it opens it. When the player chooses again the first produced block + zeroes the cushion the reader is in, as at any start, so nothing from before OFF is sent. Two other ways + were tried on the owner's MKII with Windows 11 (13 November 2026): with the endpoint taken down under an + open stream no packet was collected again after it came back, and with empty packets the recording skipped + 42 to 71 frames shortly after about half of the resumes, the unit's own counters unbroken. MAIN + CUE ONLY (the + twenty-channel layout, at high speed: full speed sends the tracks' sum): the producer leaves each frame's + sixteen track words in the ring as they were, and the packet builder copies only the frame's last sixteen + bytes (MAIN and CUE) into the packet. What a stream costs is its memory traffic, through the 80 KB ring and + the controller's uncached buffers (owner's MKII, 13 November 2026, the frame interrupt's share while + playing: all channels 65.4 %, track words cleared in the ring and copied 64.1 %, cleared and not copied + 61.5 %, neither 55.6 %, no stream 38.6 %). The track bytes of a packet buffer are zeroed once, in the first + packet each of the NSLOT buffers carries after the choice. When the choice ends the builder keeps its short + copy for MW_MIX_HOLD more packets, over a thousand frames: by then the producer has rewritten every ring + slot, so no track word from before or during the choice is ever sent. A packet copied whole, or a + full-speed one, starts both counts again. The hook also writes which choices its layout offers (bit 0 all, 1 MAIN + CUE + only, 2 off). The descriptors, the packet sizes and the import stay as they are. + """ + if key not in layouts or 'modwerk_usb_audio' in text or '.Lmw_' in text: + raise ValueError('Choose an explicit supported USB output layout for an unswitched producer.') + wanted = (' tstb usbaudio_alt\n bnes .Lproduce\n' + " tstb aud_force | the harness's switch (usb_align): produce\n" + ' bnes .Lproduce | with no host and EP3 left alone\n') + tracks = ' moveq #RB_TRACKS-1,%d7\n2: movel %a0@,%d2 | track L\n' + after = (' lea %a0@(128),%a0 | next track, same frame\n subql #1,%d7\n bpl 2b\n' + '.if USB_LAYOUT == LAYOUT_TRACKS_MAIN_CUE\n') + buffer = ' moveal #(aud_bufs+UNCACHED),%a3\n addal %d0,%a3\n moveal %a3,%a1\n' + copy, helpers = ' bsr audio_copy80', '| Copy d0 (>= 1) 8-byte stereo-sum frames from %a2 to %a1, both advanced.\naudio_copy8:\n' + if any(text.count(seam) != 1 for seam in (wanted, tracks, after, buffer, helpers)) or text.count(copy) != 3 or \ + text.count('\n.Lcopied:\n') != 1 or text.count(' movel %d4,usbaudio_lastn\n') != 1 or \ + text.index(' movel %d4,usbaudio_lastn\n') > text.index(buffer): + raise ValueError('The authored audio producer changed; review the on-device switch.') + caps = 7 if layouts[key] == 0 else 5 + text = text.replace(wanted, """ moveq #%d,%%d0 | what this layout offers (mwua_setting) + moveb %%d0,modwerk_usb_audio_caps + tstb modwerk_usb_audio_off | the player's OFF: as with no host, the + beqs .Lmw_on | block's frames counted for the packet clock + addql #8,aud_produced + addql #8,aud_produced + bras .Lmw_idle +.Lmw_on: +""" % caps + wanted + '.Lmw_idle:\n') + text = text.replace(tracks, """.if USB_LAYOUT == LAYOUT_TRACKS_MAIN_CUE + tstb modwerk_usb_audio_mix | MAIN + CUE ONLY: silent track channels + beqs .Lmw_tracks + movel %a1,%d0 + beqs .Lmw_tracks | full speed sends the tracks' sum: copy them + lea %a3@(64),%a3 | the track words stay as they were: the builder does not send them + bra .Lmw_tracks_done +.Lmw_tracks: +.endif +""" + tracks) + text = text.replace(after, after.replace('.if USB_LAYOUT', '.Lmw_tracks_done:\n.endif\n.if USB_LAYOUT', 1).replace( + ' bpl 2b\n', ' bpl 2b\n.if USB_LAYOUT == LAYOUT_TRACKS_MAIN_CUE\n', 1)) + text = text.replace(buffer, buffer + """ tstb modwerk_usb_audio_off | OFF: a packet of silence, nothing copied + beqs .Lmw_send + bsr mw_off_packet + bra .Lcopied +.Lmw_send: + clrl mw_off_clean +.if USB_LAYOUT == LAYOUT_TRACKS_MAIN_CUE + bsr mw_mix_packet | MAIN + CUE ONLY: this buffer's track bytes are zero +.endif +""") + text = text.replace(copy, ' bsr mw_copy80') + return text.replace(helpers, """| OFF (Modwerk, usb_audio_package.py). Before a packet's copy, %a3 its buffer: zero the whole buffer of the first +| packet each of the NSLOT buffers carries after the choice; the builder then skips the copy. Any packet that is +| copied starts the count again. Uses d0-d1/a2, which the builder loads after this or no longer needs. +mw_off_packet: + movel mw_off_clean,%d0 + moveq #NSLOT,%d1 + cmpl %d1,%d0 + bccs 9f | every buffer is zero + addql #1,%d0 + movel %d0,mw_off_clean + moveal %a3,%a2 + movel #PKT_BUF/4-1,%d1 +7: clrl %a2@+ + subql #1,%d1 + bpls 7b +9: rts + .bss + .balign 4 +mw_off_clean: .space 4 | packets since OFF whose buffer was zeroed + .text +.if USB_LAYOUT == LAYOUT_TRACKS_MAIN_CUE +| MAIN + CUE ONLY (Modwerk, usb_audio_package.py). Before a packet is copied, %a3 its buffer: count the packets +| since the choice, and zero the track bytes of the first each of the NSLOT buffers carries (every frame a packet +| can hold). Any other packet starts the count again. Uses d0-d1/a2, which the builder loads after this. +mw_mix_packet: + tstb aud_hs + beqs 8f | full speed: the sum's packets, copied whole + tstb modwerk_usb_audio_mix + beqs 5f + moveq #MW_MIX_HOLD,%d0 | chosen: the short copy, and for this many packets after + movel %d0,mw_mix_hold + bras 6f +5: movel mw_mix_hold,%d0 + beqs 8f | not chosen, and the ring is the producer's again + subql #1,%d0 + movel %d0,mw_mix_hold +6: moveq #1,%d0 + moveb %d0,mw_mix_short + movel mw_mix_clean,%d0 + moveq #NSLOT,%d1 + cmpl %d1,%d0 + bccs 9f | every buffer's track bytes are zero + addql #1,%d0 + movel %d0,mw_mix_clean + moveal %a3,%a2 + moveq #PKT_MAX_HS/80-1,%d1 +7: .rept 16 + clrl %a2@+ + .endr + lea %a2@(16),%a2 + subql #1,%d1 + bpls 7b +9: rts +8: clrl mw_mix_clean + clrl mw_mix_hold + clrb mw_mix_short + rts +| audio_copy80's call: a short packet (mw_mix_packet) takes d0 (>= 1) frames' last sixteen bytes from %a2 to %a1, +| both advanced by the whole 80-byte slot. Clobbers d1-d4. +mw_copy80: + tstb mw_mix_short + beq audio_copy80 +1: moveml %a2@(64),%d1-%d4 + moveml %d1-%d4,%a1@(64) + lea %a2@(80),%a2 + lea %a1@(80),%a1 + subql #1,%d0 + bnes 1b + rts + .bss + .balign 4 +mw_mix_clean: .space 4 | packets since MAIN + CUE ONLY whose buffer's track bytes were zeroed +mw_mix_hold: .space 4 | packets the short copy still holds after the choice ended +mw_mix_short: .space 1 | this packet is copied short + .text +.set MW_MIX_HOLD, 96 | x 11 frames a packet: more than the ring's AUD_FRAMES +.else +.set mw_copy80, audio_copy80 +.endif +""" + helpers) + + def sine_curve(usb_post): """The first quarter of a 1024-step sine in 24 bits: the curve usb_post.py checks the stock table against.""" return usb_post.validate(round(math.sin(2 * math.pi * i / 1024) * 0x7fffff) for i in range(usb_post.COUNT)) @@ -82,7 +239,7 @@ def source(functions, usb, layout): include += usb_post.include(sine_curve(usb_post)) else: text = functions.packet_readiness(text) - text = functions.audio_storage_source(text) + text = functions.audio_storage_source(audio_switch(text, layout, functions.AUDIO_LAYOUTS)) text = once(text, ' .include "remix.inc"', include, 'its include') # The hooks: each shim at a site the base owns returns to the base instead of chaining or rejoining stock. text = once(text, ' jmp usbmidi_rx_isr_shim | USB MIDI\'s shim, whose detour this one stands in for', @@ -97,7 +254,7 @@ def source(functions, usb, layout): raise ValueError('The authored USB Audio source names its transfer descriptors elsewhere; review the alignment.') text = text.replace(aligned, ' moveal mwua_dtds,') text = once(text, 'aud_dtds: .space NSLOT*32 ', 'aud_dtds: .space NSLOT*32+32 ', 'its transfer descriptors') - return text + HANDLERS + return text + HANDLERS + setting(functions.AUDIO_LAYOUTS[layout] == 0) HANDLERS = ''' @@ -135,45 +292,45 @@ def source(functions, usb, layout): mwua_control: mvzb SETUP_BMREQ,%d0 cmpil #0xc0,%d0 - bnes .Lmw_class + bnes .Lmwc_class mvzb SETUP_BREQ,%d0 cmpil #0x55,%d0 - bne .Lmw_no + bne .Lmwc_no lea usbaudio_consumed,%a0 moveq #60,%d0 - bra .Lmw_send -.Lmw_class: + bra .Lmwc_send +.Lmwc_class: cmpil #0xa1,%d0 | class GET, interface recipient - bne .Lmw_no + bne .Lmwc_no mvzb SETUP_IFACE,%d0 cmpil #UAC2_AC_IFACE,%d0 - bne .Lmw_no + bne .Lmwc_no mvzb SETUP_WIDXH,%d0 cmpil #UAC2_CLOCK_ID,%d0 - bne .Lmw_no + bne .Lmwc_no mvzb SETUP_WVALH,%d0 | control selector mvzb SETUP_BREQ,%d1 | 1 = CUR, 2 = RANGE cmpil #1,%d0 | CS_SAM_FREQ_CONTROL - beqs .Lmw_freq + beqs .Lmwc_freq cmpil #2,%d0 | CS_CLOCK_VALID_CONTROL - bne .Lmw_no + bne .Lmwc_no cmpil #1,%d1 - bne .Lmw_no + bne .Lmwc_no lea uac2_clock_valid,%a0 moveq #1,%d0 - bras .Lmw_send -.Lmw_freq: + bras .Lmwc_send +.Lmwc_freq: cmpil #1,%d1 - bnes .Lmw_range + bnes .Lmwc_range lea uac2_freq_cur,%a0 moveq #4,%d0 - bras .Lmw_send -.Lmw_range: + bras .Lmwc_send +.Lmwc_range: cmpil #2,%d1 - bne .Lmw_no + bne .Lmwc_no lea uac2_freq_range,%a0 moveq #14,%d0 -.Lmw_send: +.Lmwc_send: mvzb 0x46c8ce0f,%d1 | SETUP wLength, little-endian lsll #8,%d1 movel %d1,%a1 @@ -188,7 +345,7 @@ def source(functions, usb, layout): addql #8,%sp moveq #1,%d0 rts -.Lmw_no: +.Lmwc_no: moveq #0,%d0 rts .size mwua_control, .-mwua_control @@ -200,6 +357,26 @@ def source(functions, usb, layout): ''' +def setting(mix): + """The package's row on PROJ > MODWERK > SETTINGS (events.json ot_settings): what the unit sends while a host has + the stream open. OFF is the second choice in every layout, so the base's kept choice means the same in each; + MAIN + CUE ONLY is the twenty-channel layout's alone.""" + names = ['ALL CHANNELS', 'OFF'] + (['MAIN + CUE ONLY'] if mix else []) + out = ['| ---- the on-device setting (Modwerk, usb_audio_package.py) ------------------', + ' .text', ' .balign 2', ' .global mwua_setting_apply', ' .type mwua_setting_apply,@function', + 'mwua_setting_apply: | apply(choice): 0 all channels, 1 off, 2 MAIN + CUE only', + ' movel %sp@(4),%d0', ' moveq #1,%d1', ' cmpl %d0,%d1', ' seq %d1', + ' moveb %d1,modwerk_usb_audio_off', ' moveq #2,%d1', ' cmpl %d0,%d1', ' seq %d1', + ' moveb %d1,modwerk_usb_audio_mix', ' rts', ' .size mwua_setting_apply, .-mwua_setting_apply', + ' .data', ' .balign 4', ' .global mwua_setting', + 'mwua_setting:', ' .long 1, mwua_set_label, %d, mwua_set_choices, mwua_setting_apply, 0' % len(names), + 'mwua_set_choices: .long ' + ', '.join('mwua_set_%d' % i for i in range(len(names))), + 'mwua_set_label: .asciz "USB AUDIO"'] + out += ['mwua_set_%d: .asciz "%s"' % pair for pair in enumerate(names)] + out += ['modwerk_usb_audio_off: .byte 0', 'modwerk_usb_audio_mix: .byte 0', 'modwerk_usb_audio_caps: .byte 0', ' .balign 4'] + return '\n'.join(out) + '\n' + + def record(blocks): """struct modwerk_usb_function (include/modwerk_events.h) and its four descriptor blocks.""" if len({len(b) for b in blocks}) != 1: @@ -248,7 +425,7 @@ def build(layout, cross='m68k-elf-'): loader.unevented(sites) entries = [dict(event='ot_usb_functions', fn='mwua_function', order=50), dict(event='ev_usb_isr', fn='mwua_isr', order=50), dict(event='ev_usb_bus_end', fn='mwua_bus_end', order=50), dict(event='ev_usb_control', fn='mwua_control', order=50), - dict(event='ev_usb_frame', fn='mwua_frame', order=50)] + dict(event='ev_usb_frame', fn='mwua_frame', order=50), dict(event='ot_settings', fn='mwua_setting', order=50)] hooks = loader.subscribe([loader.NONE] * len(loader.HANDLERS), entries, symbols) data = loader.package(image, bss, hooks, offsets, sites, name=MODULE, hashed=True, title=TITLE, abi=8) return data, dict(image=len(image), bss=bss, relocations=len(offsets), sites=[hex(s[0]) for s in sites], diff --git a/sdk/machines/octatrack/site-events.json b/sdk/machines/octatrack/site-events.json index 0fb24fd980..335feeebfa 100644 --- a/sdk/machines/octatrack/site-events.json +++ b/sdk/machines/octatrack/site-events.json @@ -319,6 +319,13 @@ "index": 59, "event": "ev_usb_frame", "kind": "raise" + }, + { + "index": 60, + "event": "ot_settings", + "kind": "table", + "room": 8, + "record": 24 } ] } diff --git a/sdk/tests/test_settings.py b/sdk/tests/test_settings.py new file mode 100644 index 0000000000..be01bcb8fa --- /dev/null +++ b/sdk/tests/test_settings.py @@ -0,0 +1,42 @@ +# SPDX-License-Identifier: GPL-3.0-or-later +"""PROJ > MODWERK > SETTINGS (elekloader/settings.c, events.json ot_settings).""" +import json +import shutil +import subprocess +import sys +import tempfile +import unittest +from pathlib import Path + +ROOT = Path(__file__).resolve().parents[2] +OT = ROOT / 'sdk/machines/octatrack' +sys.path.insert(0, str(OT)) +import events # noqa: E402 +from host_flags import SANITIZE # noqa: E402 + + +class Settings(unittest.TestCase): + def test_rows_kept_choices_and_their_application(self): + cc = shutil.which('cc') or shutil.which('gcc') + if not cc: + self.skipTest('no host C compiler') + with tempfile.TemporaryDirectory() as temp: + subprocess.run([cc, '-std=c11', '-Wall', '-Wextra', '-Werror', *SANITIZE, '-I', str(OT / 'include'), + '-I', str(OT / 'elekloader'), str(OT / 'elekloader/test_settings.c'), '-o', temp + '/t'], check=True) + result = subprocess.run([temp + '/t'], capture_output=True, text=True) + self.assertEqual(result.returncode, 0, result.stdout + result.stderr) + self.assertIn('settings: rows, kept choices and their application pass', result.stdout) + + def test_the_table_and_its_store_are_declared(self): + table = next(e for e in events.load()['events'] if e['event'] == 'ot_settings') + self.assertEqual((table['kind'], table['record'], table['room']), ('table', 24, 8)) + source = (OT / 'elekloader/settings.c').read_text() + self.assertIn('#define MODWERK_SETTINGS_ROOM 8u', (OT / 'elekloader/settings.h').read_text()) + self.assertIn('0x100f9000u', source) + ranges = json.loads((OT / 'battery-ram.json').read_text())['ranges'] + mine = [r for r in ranges if 'settings.c' in r['what']] + self.assertEqual([(r['from'], r['to'], r['owner']) for r in mine], [('0x100f9000', '0x100f9044', 'base')]) # 4 + 8 * 8 bytes + + +if __name__ == '__main__': + unittest.main() diff --git a/sdk/tests/test_usb_audio_package.py b/sdk/tests/test_usb_audio_package.py index 1142c7a464..eebe569c3f 100644 --- a/sdk/tests/test_usb_audio_package.py +++ b/sdk/tests/test_usb_audio_package.py @@ -53,6 +53,16 @@ def test_the_source_keeps_the_import_and_changes_only_its_guarded_seams(self): with self.assertRaisesRegex(ValueError, 'Not built as a package yet'): builder.build('USB AUDIO IN') + def test_the_setting_offers_main_and_cue_only_in_the_twenty_channel_layout(self): + twenty, tracks = builder.source(functions, usb, LAYOUT), builder.source(functions, usb, 'USB AUDIO OUT TRACKS') + self.assertIn(' .long 1, mwua_set_label, 3, mwua_set_choices, mwua_setting_apply, 0', twenty) + self.assertIn(' .long 1, mwua_set_label, 2, mwua_set_choices, mwua_setting_apply, 0', tracks) + for text in (twenty, tracks): # OFF is the second choice everywhere: the kept choice means the same + self.assertIn('mwua_set_0: .asciz "ALL CHANNELS"\nmwua_set_1: .asciz "OFF"\n', text) + self.assertIn(' tstb modwerk_usb_audio_off | the player\'s OFF', text) + self.assertIn('mwua_set_2: .asciz "MAIN + CUE ONLY"', twenty) + self.assertNotIn('mwua_set_2', tracks) + def test_tracks_post_takes_the_computed_sine_and_no_stock_table(self): usb_post = load('usb_post', OT / 'elekloader/usb_post.py') curve = builder.sine_curve(usb_post) @@ -77,7 +87,7 @@ def test_the_package_subscribes_to_the_four_hooks_and_carries_three_guarded_site words = struct.unpack_from('>%dI' % hooks, data, 76) by_name = {e['event']: e['index'] for e in events.load()['events']} subscribed = {name for name, index in by_name.items() if index < hooks and words[index] != 0xffffffff} - self.assertEqual(subscribed, {'ot_usb_functions', 'ev_usb_isr', 'ev_usb_bus_end', 'ev_usb_control', 'ev_usb_frame'}) + self.assertEqual(subscribed, {'ot_usb_functions', 'ev_usb_isr', 'ev_usb_bus_end', 'ev_usb_control', 'ev_usb_frame', 'ot_settings'}) self.assertTrue(all(w == 0xffffffff for w in words[:4])) # no tick, draw, key or encoder handler From a0647bab466412b35d963c6661893e6abd2bd739 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Fri, 20 Nov 2026 11:48:47 +0100 Subject: [PATCH 195/415] Open the admin workspace on its review queues (#1845) --- changelog/2026-11-20-admin-workspace.md | 1 + docs/COMMUNITY_OPERATIONS.md | 2 +- server/api.ts | 12 ++++- src/App.tsx | 22 ++++---- src/community/AccountMenu.tsx | 5 +- src/community/AdminOverview.tsx | 61 +++++++++++++++++++++ src/community/AdminPage.test.ts | 60 +++++++++++++++++++++ src/community/AdminPage.tsx | 72 ++++++++++++++++++++----- src/community/IssueInbox.tsx | 41 ++++++++++---- src/community/admin-navigation.ts | 45 ++++++++++++++++ src/community/forum.css | 6 --- src/community/member-access.ts | 6 ++- src/community/service.test.ts | 26 +++++++++ src/components/MobileMenu.tsx | 3 +- src/styles.css | 35 ++++++++++-- 15 files changed, 347 insertions(+), 50 deletions(-) create mode 100644 changelog/2026-11-20-admin-workspace.md create mode 100644 src/community/AdminOverview.tsx create mode 100644 src/community/AdminPage.test.ts create mode 100644 src/community/admin-navigation.ts diff --git a/changelog/2026-11-20-admin-workspace.md b/changelog/2026-11-20-admin-workspace.md new file mode 100644 index 0000000000..544b0ab3a5 --- /dev/null +++ b/changelog/2026-11-20-admin-workspace.md @@ -0,0 +1 @@ +The admin workspace opens with counts of open issues, unreviewed forum reports and active account removal requests. Each queue and tool has a direct link, and the issue inbox keeps its filters when you reload or use the Back button. diff --git a/docs/COMMUNITY_OPERATIONS.md b/docs/COMMUNITY_OPERATIONS.md index 86eec57afb..43297aada2 100644 --- a/docs/COMMUNITY_OPERATIONS.md +++ b/docs/COMMUNITY_OPERATIONS.md @@ -43,7 +43,7 @@ Before launch, assign a backup operator and confirm the off-device destination, ## Private account-removal requests -Members submit a private request from Your account using their current password and a confirmation. Requests can be withdrawn while pending; duplicate active requests are merged. The Accounts tab in the administrator workspace lists the private queue. A visitor/member session cannot access it. The review note should record approval references and actions, without passwords, email addresses, action links or unnecessary personal details. +Members submit a private request from Your account using their current password and a confirmation. Requests can be withdrawn while pending; duplicate active requests are merged. Open **Admin workspace → Account requests** for the private queue. A visitor/member session cannot access it. The review note should record approval references and actions, without passwords, email addresses, action links or unnecessary personal details. Submission and review never delete data. There is no automatic deletion endpoint. For each request: diff --git a/server/api.ts b/server/api.ts index 5a073f7bad..ab92e8dd4c 100644 --- a/server/api.ts +++ b/server/api.ts @@ -288,7 +288,17 @@ export async function handleApi(request: Request, env: Env): Promise { if (path === '/api/admin/activity' && request.method === 'GET') return response(await adminActivity(db,new Date(),Number(url.searchParams.get('days') ?? 30))) if (path === '/api/admin/accounts' && request.method === 'GET') return response(await adminAccounts(db,new Date(),Number(url.searchParams.get('days') ?? 30))) if (path === '/api/admin/statistics' && request.method === 'GET') return await usageStatistics(db,Number(url.searchParams.get('days') ?? 7)) - if (path === '/api/admin/overview' && request.method === 'GET') return response(await db.prepare("SELECT (SELECT COUNT(*) FROM submissions WHERE status='pending') AS pending,(SELECT COUNT(*) FROM module_publications) AS published,(SELECT COUNT(*) FROM forum_posts p JOIN forum_threads t ON t.id=p.thread_id WHERE t.id='module-' || t.module_id AND p.id<>t.id AND p.hidden=0 AND t.hidden=0) AS comments,(SELECT COUNT(*) FROM issues WHERE status='open') AS issues,(SELECT COALESCE(SUM(bytes),0) FROM media) AS mediaBytes").first()) + if (path === '/api/admin/overview' && request.method === 'GET') return response(await db.prepare(` + SELECT (SELECT COUNT(*) FROM issues WHERE status='open') AS issues, + (SELECT COUNT(*) FROM forum_reports WHERE resolved=0) + + (SELECT COUNT(*) FROM forum_shout_reports WHERE resolved=0) + + (SELECT COUNT(*) FROM message_reports WHERE resolved=0) AS forum, + (SELECT COUNT(*) FROM account_removal_requests WHERE status IN ('requested','reviewing')) AS requests, + (SELECT COUNT(*) FROM submissions WHERE status='pending') AS pending, + (SELECT COUNT(*) FROM module_publications) AS published, + (SELECT COUNT(*) FROM forum_posts p JOIN forum_threads t ON t.id=p.thread_id + WHERE t.id='module-' || t.module_id AND p.id<>t.id AND p.hidden=0 AND t.hidden=0) AS comments, + (SELECT COALESCE(SUM(bytes),0) FROM media) AS mediaBytes`).first()) if (path === '/api/admin/history' && request.method === 'GET') return response((await db.prepare('SELECT e.id,e.module_id,e.action,e.note,e.created_at,u.display_name AS actor FROM review_events e JOIN users u ON u.id=e.actor_id ORDER BY e.rowid DESC LIMIT 100').all()).results) if (path === '/api/admin/issues' && request.method === 'GET') { const moduleId = url.searchParams.has('moduleId') ? required(url.searchParams.get('moduleId'),'Module ID',100) : '', status = url.searchParams.get('status')??'all' diff --git a/src/App.tsx b/src/App.tsx index ae7e14e8b3..d22fc84d1c 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -39,6 +39,7 @@ import { browserHasUsb, hasBetaAccess, hasBetaUi, hasOctatrackBase, hasUsbLinkAc import { BetaUi, setWords } from './community/beta-ui' import { SubmissionPage } from './community/SubmissionPage' import { AdminPage } from './community/AdminPage' +import { isAdminRoute } from './community/admin-navigation' import { PublishedModulePage } from './community/PublishedModulePage' import { lazy, Suspense, useEffect, useLayoutEffect, useMemo, useRef, useState, useSyncExternalStore } from 'react' import type { ChangeEvent, ReactNode } from 'react' @@ -178,6 +179,7 @@ export default function App() { const pausedModule = MODULES.find(module => isModulePaused(module.id) && !isModuleAvailable(module.id, betaAccess) && (moduleRoute === 'module/' + module.id || moduleRoute === 'community-module/' + module.id)) const configuration = route === 'configuration' const communityModule = moduleRoute.startsWith('community-module/') ? catalog.find(item => item.module_id === moduleRoute.slice(17) && isModuleAvailable(item.module_id, betaAccess)) : undefined + const adminRoute = isAdminRoute(route) const projectsRoute = moduleRoute === 'projects' const devicesRoute = route === 'devices' const overviewRoute = route === 'overview' @@ -190,7 +192,7 @@ export default function App() { const developerRoute = route === 'developer' || route.startsWith('developer/') const betaInvitationRoute = moduleRoute.startsWith('beta/join/') const accountRoute = route === 'account' || route.startsWith('account/') || betaInvitationRoute - const newsEnabled = !accountRoute && !developerRoute && !configuration && machineView !== 'configuration' && !route.startsWith('submit') && !['admin', 'review', 'privacy', 'impressum', 'community-rules', 'modding-guidelines', 'report-content'].includes(route) + const newsEnabled = !accountRoute && !developerRoute && !configuration && machineView !== 'configuration' && !route.startsWith('submit') && !adminRoute && !['privacy', 'impressum', 'community-rules', 'modding-guidelines', 'report-content'].includes(route) // One link to the unit for the whole site: it connects by itself whenever an allowed Octatrack is plugged in. // Loading a module set sends the site's packages (module-set.ts) and keeps them. // The Octatrack base path's interface (module sets, the hub, sync, base install; one switch releases it) and the rest @@ -237,9 +239,9 @@ export default function App() { // announced to everyone; whoever has no Octatrack closes it for good). Until it was answered, and on the visit it // opened, the guide and the beta invitation keep away. const welcomeHere = !sessionLoading && !usbLinkPreview && !accountRoute && !developerRoute && !route.startsWith('submit') - && !['admin', 'review', 'privacy', 'impressum', 'community-rules', 'modding-guidelines', 'report-content'].includes(route) + && !adminRoute && !['privacy', 'impressum', 'community-rules', 'modding-guidelines', 'report-content'].includes(route) const welcome = useOctatrackWelcome(session.user?.verified ? session.user.id : null, OCTATRACK_BASE_RELEASED && !sessionLoading, welcomeHere, usbLink ?? null, !!baseInstall) - const baseInstallPrompt = useBaseInstallPrompt(session.user?.verified ? session.user.id : null, !welcome.due && !welcome.shown && !sessionLoading && !!usbLink && !usbLinkPreview && !accountRoute && !developerRoute && !route.startsWith('submit') && !['admin', 'review', 'privacy', 'impressum', 'community-rules', 'modding-guidelines', 'report-content'].includes(route), usbLink ?? null, + const baseInstallPrompt = useBaseInstallPrompt(session.user?.verified ? session.user.id : null, !welcome.due && !welcome.shown && !sessionLoading && !!usbLink && !usbLinkPreview && !accountRoute && !developerRoute && !route.startsWith('submit') && !adminRoute && !['privacy', 'impressum', 'community-rules', 'modding-guidelines', 'report-content'].includes(route), usbLink ?? null, octatrackUi && (route === 'octatrack' || route.startsWith('octatrack/') || route === 'configuration')) // Integration points for the diagnostics stream, connected here and nowhere else: the base install guide's last step, // shown once the unit first connects on the new base (skipped while undefined; either answer or Close finishes it), and where @@ -274,7 +276,7 @@ export default function App() { const zoomRoute = parseZoomHubRoute(moduleRoute), zoomHub = zoomRoute && (betaUi || isZoomSetDevice(zoomRoute.device.id)) ? zoomRoute : undefined const zoomHubName = zoomHub?.device.name useEffect(() => { if (zoomHub && !mobileWorkspace) void beta().then(module => setZoomLink(link => link ?? module.createZoomLink())).catch(console.error) }, [!!zoomHub, mobileWorkspace]) // eslint-disable-line react-hooks/exhaustive-deps - const missingRoute=!zoomHub&&!faqRoute&&!projectsRoute&&!overviewRoute&&!allRoute&&!devicesRoute&&!machineView&&route!=='octatrack'&&!route.startsWith('octatrack/')&&!route.startsWith('device/')&&!forumRoute&&!accountRoute&&!developerRoute&&!['library',...LIBRARY_CATEGORIES,'module-sets','configuration','faq','credits','base','review','admin','privacy','impressum','community-rules','modding-guidelines','report-content'].includes(route)&&!route.startsWith('submit')&&!detailModule&&!communityModule&&!route.startsWith('module-set/') + const missingRoute=!zoomHub&&!faqRoute&&!projectsRoute&&!overviewRoute&&!allRoute&&!devicesRoute&&!machineView&&route!=='octatrack'&&!route.startsWith('octatrack/')&&!route.startsWith('device/')&&!forumRoute&&!accountRoute&&!developerRoute&&!adminRoute&&!['library',...LIBRARY_CATEGORIES,'module-sets','configuration','faq','credits','base','privacy','impressum','community-rules','modding-guidelines','report-content'].includes(route)&&!route.startsWith('submit')&&!detailModule&&!communityModule&&!route.startsWith('module-set/') const filter = LIBRARY_CATEGORIES.find(category => category === route) ?? 'all' const hubRoute = octatrackUi && (route === 'octatrack' || route.startsWith('octatrack/') || route === 'configuration') // The Octatrack page's list: the unit's own pages (#octatrack is Status), and #configuration for the set you edit. @@ -400,10 +402,10 @@ export default function App() { else if (route === 'submit') setPageMetadata({ title: pageTitle('Start developing'), description: SUBMIT_DESCRIPTION, url: new URL('submit/', appUrl).href, image: SUBMIT_PREVIEW_IMAGE, imageAlt: SUBMIT_PREVIEW_ALT }) // A public thread owns its title and description, supplied by its static page and refreshed after loading. else if (!route.startsWith('forum/thread/')) { - const title = overviewRoute || allRoute || route === 'library' ? HOME_TITLE : pageTitle(zoomHubName?'Your '+zoomHubName:hubRoute?'Your Octatrack':machineView==='configuration'?currentDevice.name+' '+w.set:machineView?currentDevice.name+' modules':forumRoute?'Forum':accountRoute?(betaInvitationRoute?'Join the beta':'Account'):developerRoute?(developer?.user&&!route.startsWith('developer/complete')?'Creator settings':'Account'):faqRoute?'FAQ':route==='credits'?'Credits':route==='base'?'Base firmware':route==='privacy'?'Privacy':route==='impressum'?'Impressum':route==='community-rules'?'Community rules':route==='modding-guidelines'?'Modding guidelines':route==='report-content'?'Report content':route==='configuration'?w.Set:route.startsWith('submit')?'Start developing':(route==='review'||route==='admin')?'Admin workspace':route.startsWith('module-set')?'Module sets':'Module library') + const title = overviewRoute || allRoute || route === 'library' ? HOME_TITLE : pageTitle(zoomHubName?'Your '+zoomHubName:hubRoute?'Your Octatrack':machineView==='configuration'?currentDevice.name+' '+w.set:machineView?currentDevice.name+' modules':forumRoute?'Forum':accountRoute?(betaInvitationRoute?'Join the beta':'Account'):developerRoute?(developer?.user&&!route.startsWith('developer/complete')?'Creator settings':'Account'):faqRoute?'FAQ':route==='credits'?'Credits':route==='base'?'Base firmware':route==='privacy'?'Privacy':route==='impressum'?'Impressum':route==='community-rules'?'Community rules':route==='modding-guidelines'?'Modding guidelines':route==='report-content'?'Report content':route==='configuration'?w.Set:route.startsWith('submit')?'Start developing':adminRoute?'Admin workspace':route.startsWith('module-set')?'Module sets':'Module library') setPageMetadata({ title, description: HOME_DESCRIPTION, url: appUrl.href }) } - }, [overviewRoute, projectsRoute, faqRoute, route,detailModule,digiMod,zoomEffect,forumRoute,accountRoute,betaInvitationRoute,developerRoute,developer?.user,allRoute,machineView,currentDevice.name,w,hubRoute,zoomHubName]) + }, [overviewRoute, projectsRoute, faqRoute, adminRoute, route,detailModule,digiMod,zoomEffect,forumRoute,accountRoute,betaInvitationRoute,developerRoute,developer?.user,allRoute,machineView,currentDevice.name,w,hubRoute,zoomHubName]) const availabilityError = moduleAvailabilityError(selectedIds, betaAccess) const { blocks: addBlockMap } = withSetLimit<{ blocks: Record }>({ blocks: {} }, selectedIds) const showSelection = !mobileWorkspace && ( @@ -551,7 +553,7 @@ export default function App() { : route === 'privacy' ? 'Privacy' : route === 'impressum' ? 'Impressum' : route === 'community-rules' ? 'Community rules' : route === 'modding-guidelines' ? 'Modding guidelines' : route === 'report-content' ? 'Report content' : forumRoute ? 'Forum' : betaInvitationRoute ? 'Join the beta' : accountRoute ? 'Account' : developerRoute ? 'Creator settings' - : route === 'review' || route === 'admin' ? 'Admin workspace' : route.startsWith('submit') ? 'Start developing' + : adminRoute ? 'Admin workspace' : route.startsWith('submit') ? 'Start developing' : route.startsWith('module-set') ? 'Module sets' : missingRoute ? 'Page unavailable' : 'Modules' const resourcesCurrent = projectsRoute || faqRoute || ['base', 'credits', 'modding-guidelines'].includes(route) || (!DEVELOP_HIGHLIGHT && route.startsWith('submit')) useEffect(() => { @@ -654,7 +656,7 @@ export default function App() { {zoomLink && zoomInstall && setZoomInstall(false)} />} {supportOpen && setSupportOpen(false)} />} - +
@@ -682,14 +684,14 @@ export default function App() {
{firmwareFeedbackPreview && } {!accountRoute && } - {!accountRoute && !developerRoute && !configuration && machineView !== 'configuration' && !['admin', 'privacy', 'impressum', 'community-rules', 'modding-guidelines', 'report-content'].includes(route) && } + {!accountRoute && !developerRoute && !configuration && machineView !== 'configuration' && !adminRoute && !['privacy', 'impressum', 'community-rules', 'modding-guidelines', 'report-content'].includes(route) && } {workspace.storageError &&
{workspace.storageError} Export important configurations before closing this tab.
} {(configuration || machineView === 'configuration' || route.startsWith('module-set')) && } }> {projectsRoute ? : faqRoute ? : route === 'credits' ? : route === 'base' ? : overviewRoute ? : !ready ?
Opening your workspace…
: <> {onLibrary ? setQuery('')} onBrowse={rememberBrowse} device={allMachines ? undefined : currentDevice} machinePicker={phoneLayout ? undefined : machinePicker} phone={phoneLayout} resultsSlot={resultsSlot} query={query} category={libraryCategory as ModuleCategory | undefined} octatrackModules={visibleModules} family={family} onFamilyChange={setFamily} sort={sort} onSortChange={setSort} statistics={statistics} octatrackBlocks={addBlockMap} onSwapOctatrack={swapModule} comparison={comparison} onCompare={toggleComparison} onOpenComparison={() => setCompareOpen(true)} viewedModuleVersions={viewedModuleVersions} moduleBaseline={moduleBaseline} octatrackSelected={selectedIds} onToggleOctatrack={toggleModule} digiSelected={digiSelected} onToggleDigi={(device, id) => workspace.toggleModule(id, device)} zoomSelected={zoomSelected} onToggleZoom={(device, id) => workspace.toggleModule(id, device)} onClearSearch={() => { setQuery(''); setFamily('all') }}> {!allMachines && currentDevice.id === 'octatrack' && !!catalog.filter((item,index,items)=>!MODULES.some(module=>module.id===item.module_id)&&items.findIndex(other=>other.module_id===item.module_id)===index).length &&

Community modules

{catalog.filter((item,index,items)=>!MODULES.some(module=>module.id===item.module_id)&&items.findIndex(other=>other.module_id===item.module_id)===index).sort((a,b)=>compareModules({id:a.module_id,name:a.title,authorName:a.author,addedAt:a.added_at??undefined,updatedAt:a.updated_at??undefined},{id:b.module_id,name:b.title,authorName:b.author,addedAt:b.added_at??undefined,updatedAt:b.updated_at??undefined},sort,statistics)).map(item=>)}
} -
: digiDevice && digiMod ? toggleMachineModule(digiMod.id)} /> : zoomEffect ? toggleMachineModule(zoomEffect.id)} /> : digiDevice && machineView === 'configuration' ? machineActive && setReportingConfiguration({ machine: digiDevice.id, id: machineActive.id })} device={digiDevice} configuration={machineActive} configurations={machineConfigurations} onSelect={id => { workspace.selectConfiguration(id) }} onDialog={setConfigDialog} onToggle={toggleMachineModule} onImport={item => workspace.importConfiguration(item.name,item.moduleIds,false,item.moduleVersions,digiDevice.id,undefined,undefined,undefined,item.storageLock)} onStorageLock={workspace.saveStorageLock} /> : missingRoute?

{pausedModule ? 'Module temporarily unavailable' : 'Page not found'}

{pausedModule ? pausedModule.name + ' is temporarily unavailable.' : 'This module or page is not in the current catalog.'}

Open module library
:zoomHub? setZoomInstall(true)} {...isZoomSetDevice(zoomHub.device.id) ? { sets: configurationsFor(zoomHub.device.id), selectedId: activeFor(zoomHub.device.id)?.id, onSelect: (id: string) => { workspace.selectConfiguration(id); window.location.assign(zoomHubHref(zoomHub.device.id, 'set')) }, onNew: () => newConfiguration(zoomHub.device.id), onSetAction: setAction, onToggle: (effect: string) => workspace.toggleModule(effect, zoomHub.device.id) } : {}} />:hubRoute?hubPage:route==='module-sets'||route.startsWith('module-set/')?(octatrackUi ? {workspace.importConfiguration(name,ids);window.location.assign('#configuration')}}/> : {workspace.importConfiguration(name,ids);window.location.assign('#configuration')}}/>):forumRoute ? {const device=config.device??'octatrack';workspace.importConfiguration(config.name,config.moduleIds,config.keepStockFx2,config.moduleVersions,device,config.usbAudio);openEditedSet(device)}}/> : developerRoute ? : accountRoute ? betaInvitationRoute ? : : route === 'privacy' ? : ['impressum','community-rules','modding-guidelines','report-content'].includes(route) ? : route.startsWith('submit') ? : route === 'review'||route === 'admin' ? : communityModule ? : detailModule ? swapModule(detailModule.id, removeIds)} usbAudio={active?.usbAudio} configurationName={active?.name} configurationId={active?.id} onConfigureUsbAudio={configureUsbAudio} onToggle={() => toggleModule(detailModule.id)} /> : null} + : digiDevice && digiMod ? toggleMachineModule(digiMod.id)} /> : zoomEffect ? toggleMachineModule(zoomEffect.id)} /> : digiDevice && machineView === 'configuration' ? machineActive && setReportingConfiguration({ machine: digiDevice.id, id: machineActive.id })} device={digiDevice} configuration={machineActive} configurations={machineConfigurations} onSelect={id => { workspace.selectConfiguration(id) }} onDialog={setConfigDialog} onToggle={toggleMachineModule} onImport={item => workspace.importConfiguration(item.name,item.moduleIds,false,item.moduleVersions,digiDevice.id,undefined,undefined,undefined,item.storageLock)} onStorageLock={workspace.saveStorageLock} /> : missingRoute?

{pausedModule ? 'Module temporarily unavailable' : 'Page not found'}

{pausedModule ? pausedModule.name + ' is temporarily unavailable.' : 'This module or page is not in the current catalog.'}

Open module library
:zoomHub? setZoomInstall(true)} {...isZoomSetDevice(zoomHub.device.id) ? { sets: configurationsFor(zoomHub.device.id), selectedId: activeFor(zoomHub.device.id)?.id, onSelect: (id: string) => { workspace.selectConfiguration(id); window.location.assign(zoomHubHref(zoomHub.device.id, 'set')) }, onNew: () => newConfiguration(zoomHub.device.id), onSetAction: setAction, onToggle: (effect: string) => workspace.toggleModule(effect, zoomHub.device.id) } : {}} />:hubRoute?hubPage:route==='module-sets'||route.startsWith('module-set/')?(octatrackUi ? {workspace.importConfiguration(name,ids);window.location.assign('#configuration')}}/> : {workspace.importConfiguration(name,ids);window.location.assign('#configuration')}}/>):forumRoute ? {const device=config.device??'octatrack';workspace.importConfiguration(config.name,config.moduleIds,config.keepStockFx2,config.moduleVersions,device,config.usbAudio);openEditedSet(device)}}/> : developerRoute ? : accountRoute ? betaInvitationRoute ? : : route === 'privacy' ? : ['impressum','community-rules','modding-guidelines','report-content'].includes(route) ? : route.startsWith('submit') ? : adminRoute ? : communityModule ? : detailModule ? swapModule(detailModule.id, removeIds)} usbAudio={active?.usbAudio} configurationName={active?.name} configurationId={active?.id} onConfigureUsbAudio={configureUsbAudio} onToggle={() => toggleModule(detailModule.id)} /> : null} }
diff --git a/src/community/AccountMenu.tsx b/src/community/AccountMenu.tsx index d588785831..1c0747c142 100644 --- a/src/community/AccountMenu.tsx +++ b/src/community/AccountMenu.tsx @@ -2,6 +2,7 @@ import { useEffect, useId, useRef, useState, type KeyboardEvent as ReactKeyboard import { Icon } from '../components/Icon' import { post } from './api' import { useCommunity } from './context' +import { isAdminRoute } from './admin-navigation' import { ForumAvatar } from './ForumIdentity' // The sidebar's account row: the member's name opens a menu upwards with their account, workspaces and sign-out. @@ -25,7 +26,7 @@ export function AccountMenu({ route }: { route: string }) { window.addEventListener('pointerdown', onPointer) return () => { window.removeEventListener('hashchange', close); window.removeEventListener('keydown', onKey); window.removeEventListener('pointerdown', onPointer) } }, [open]) - const current = route === 'account' || route.startsWith('account/') || route === 'developer' || route.startsWith('developer/') || route === 'admin' || route === 'review' + const current = route === 'account' || route.startsWith('account/') || route === 'developer' || route.startsWith('developer/') || isAdminRoute(route) const user = session.user?.verified ? session.user : null if (!user) return const roles = [session.admin && 'Admin', developer?.user && 'Modder', user.betaTester && 'Beta tester'].filter(Boolean).join(' · ') @@ -48,7 +49,7 @@ export function AccountMenu({ route }: { route: string }) { Your account {user.username && Your public profile} {developer?.user && Creator settings} - {session.admin && Admin workspace} + {session.admin && Admin workspace}
{error &&

{error}

} diff --git a/src/community/AdminOverview.tsx b/src/community/AdminOverview.tsx new file mode 100644 index 0000000000..79d3f08f5a --- /dev/null +++ b/src/community/AdminOverview.tsx @@ -0,0 +1,61 @@ +import { useEffect, useState } from 'react' +import { Icon } from '../components/Icon' +import { api } from './api' +import { useReconnectRetry } from './useReconnectRetry' +import { adminHref, reviewQueues, toolGroups } from './admin-navigation' + +type QueueCounts = Partial> + +export function AdminOverview() { + const [attempt, setAttempt] = useState(0) + const [counts, setCounts] = useState({}) + const [loading, setLoading] = useState(true) + const [error, setError] = useState('') + useReconnectRetry(!!error, setAttempt) + + useEffect(() => { + const controller = new AbortController() + void api('/admin/overview', { signal: controller.signal }) + .then(data => { + if (!controller.signal.aborted) { setCounts(data); setError('') } + }) + .catch(error => { + if (!controller.signal.aborted) setError(error instanceof Error ? error.message : 'Unable to load queue counts.') + }) + .finally(() => { if (!controller.signal.aborted) setLoading(false) }) + return () => controller.abort() + }, [attempt]) + + return <> +
+
+

Review queues

+ +
+
+ {reviewQueues.map(queue => { + const count = counts[queue.id] + return + {queue.description} + {count?.toLocaleString() ?? —} + {queue.label} + + })} +
+ {error &&

Queue counts could not be refreshed. {error}

} +
+
+ {toolGroups.map(group =>
+

{group.label}

+ {group.sections.map(section => + {section.label}{section.description} + + )} +
)} +
+ +} diff --git a/src/community/AdminPage.test.ts b/src/community/AdminPage.test.ts new file mode 100644 index 0000000000..b578174042 --- /dev/null +++ b/src/community/AdminPage.test.ts @@ -0,0 +1,60 @@ +// @vitest-environment jsdom +import { act, createElement } from 'react' +import { createRoot } from 'react-dom/client' +import { afterEach, beforeEach, expect, it, vi } from 'vitest' +import { AdminPage } from './AdminPage' +import { api } from './api' +import { CommunityContext } from './context' + +vi.mock('./api', async original => ({ ...await original(), api: vi.fn() })) +const mockApi = vi.mocked(api) +let container: HTMLDivElement, root: ReturnType + +beforeEach(() => { + vi.stubGlobal('IS_REACT_ACT_ENVIRONMENT', true) + container = document.createElement('div') + root = createRoot(container) +}) +afterEach(async () => { + await act(() => root.unmount()) + mockApi.mockReset() + vi.unstubAllGlobals() +}) + +async function open(route: string, admin = true) { + const value = { session: { available: true, user: null, admin }, catalog: [], developer: null, refresh: async () => {}, refreshDeveloper: async () => {} } + await act(async () => root.render(createElement(CommunityContext.Provider, { value }, createElement(AdminPage, { route })))) +} + +it('opens only the overview and keeps every tool reachable when counts fail', async () => { + mockApi.mockRejectedValueOnce(new Error('Service unavailable')).mockResolvedValueOnce({ issues: 7, forum: 0, requests: 2 }) + await open('admin') + expect(container.querySelector('[role=alert]')?.textContent).toContain('Service unavailable') + expect(container.querySelectorAll('a[href^="#admin/"]')).toHaveLength(12) + await act(async () => container.querySelector('button')!.click()) + expect(container.querySelector('[role=alert]')).toBeNull() + expect(container.querySelector('a[href="#admin/forum"] strong')?.textContent).toBe('0') + expect(container.querySelector('a[href="#admin/issues"] strong')?.textContent).toBe('7') + expect(mockApi.mock.calls.map(([path]) => path)).toEqual(['/admin/overview', '/admin/overview']) +}) + +it('restores the issue filters from the URL and opens the queue on open reports', async () => { + mockApi.mockResolvedValue([]) + await open('admin/issues?module=tape-echo&status=closed') + expect(mockApi.mock.lastCall?.[0]).toBe('/admin/issues?status=closed&moduleId=tape-echo') + const select = container.querySelector('.inbox-controls select')! + expect(select.value).toBe('closed') + await act(() => container.querySelector('.inbox-controls button')!.click()) + expect(window.location.hash).toBe('#admin/issues?status=closed') + await open('admin/issues') + expect(mockApi.mock.lastCall?.[0]).toBe('/admin/issues?status=open') + expect(container.querySelector('.inbox-controls select')).toBe(select) + expect(select.value).toBe('open') +}) + +it('guards direct links before mounting a private panel', async () => { + await open('admin/requests', false) + expect(container.textContent).toContain('Administrators only') + expect(container.querySelector('a.button-primary')?.getAttribute('href')).toBe('#account/login?next=admin%2Frequests') + expect(mockApi).not.toHaveBeenCalled() +}) diff --git a/src/community/AdminPage.tsx b/src/community/AdminPage.tsx index ac006e8489..458af24851 100644 --- a/src/community/AdminPage.tsx +++ b/src/community/AdminPage.tsx @@ -13,14 +13,16 @@ import { CommunityActivity } from './CommunityActivity' import { useEffect, useState } from 'react' import { api, post } from './api' import { useCommunity } from './context' -import { SubmissionPage } from './SubmissionPage' +import { AdminOverview } from './AdminOverview' +import { adminGroups, adminHref, adminSectionFor, type AdminSection } from './admin-navigation' +import { accountHref } from './member-access' +import { sourceRepository } from '../hosting' import { ModerationPanel } from './ModerationPanel' import { IssueInbox } from './IssueInbox' import { AnnouncementsPanel } from './AnnouncementsPanel' import { NewsPanel } from './NewsPanel' import { DiagnosticsMailPanel } from './DiagnosticsMailPanel' import type { PublishedModule } from './api' -const ADMIN_SECTIONS = [['statistics', 'Statistics'], ['octatrack', 'Octatrack'], ['issues', 'Issues'], ['comments', 'Comments'], ['forum', 'Forum'], ['accounts', 'Accounts'], ['modules', 'Modules'], ['review', 'Module PRs'], ['announcements', 'Announcements'], ['news', 'News'], ['history', 'History']] type ReviewEvent = { id: string; module_id: string; action: string; note: string; created_at: string; actor: string } function PublishedModules({ onChange }: { onChange: () => void }) { const [items, setItems] = useState([]), [error, setError] = useState(''), [loading, setLoading] = useState(true), [selected, setSelected] = useState(''), [note, setNote] = useState(''), [busy, setBusy] = useState(false) @@ -33,16 +35,58 @@ function ReviewHistory() { useEffect(() => { void api('/admin/history').then(setItems).catch(error => setError(error.message)).finally(() => setLoading(false)) }, []) return

Review history

Approvals, rejections and withdrawals record the administrator and their notes.

{loading ?

Loading history…

: items.map(item =>
{item.module_id}{item.action}
@{item.actor} · {item.created_at}

{item.note}

)}{!loading && !items.length && !error &&

No review actions recorded yet.

}{error &&

{error}

}
} -export function AdminPage() { - const { session, refresh } = useCommunity(), [tab, setTab] = useState('statistics'), [issueModule,setIssueModule] = useState('') - function navigate(next: string, moduleId = '') { setIssueModule(moduleId); setTab(next) } - if (!session.admin) return
Community forum

MODWERK / ADMIN

Admin workspace

Moderation and publication history for the site administrator.

Administrators only

{session.available ? (session.user ? 'Your account does not have administrator access.' : 'Sign in with an administrator account to continue.') : 'Community services are not connected yet.'}

{session.available && !session.user ? Sign in : Return to library →}
- return
Community forum

MODWERK / ADMIN

Admin workspace

Understand site activity, explore module engagement and manage the community.

{tab === 'statistics' ? <> : tab === 'octatrack' ? <> : tab === 'review' ? : tab === 'modules' ? void refresh()}/> : tab === 'accounts' ? <> : tab === 'forum' ? : tab === 'announcements' ? : tab === 'news' ? : tab === 'comments' ? : tab === 'issues' ? navigate('issues')}/> : }
+function SectionContent({ section, query }: { section: AdminSection; query: URLSearchParams }) { + const { refresh } = useCommunity() + switch (section) { + case 'statistics': return <> { window.location.hash = adminHref(section, id) }}/> + case 'octatrack': return <> + case 'issues': { + const moduleId = query.get('module') ?? '' + const filter = query.get('status') + const status = filter === 'all' || filter === 'closed' ? filter : 'open' + return { window.location.hash = adminHref('issues', moduleId, value) }} + onClearModule={() => { window.location.hash = adminHref('issues', '', status) }}/> + } + case 'forum': return + case 'requests': return + case 'accounts': return <> + case 'comments': return + case 'modules': return void refresh()}/> + case 'review': return

Review a contribution

+

Module changes are reviewed and merged in the Modwerk repository.

+ +
+ case 'announcements': return + case 'news': return + case 'history': return + } +} + +export function AdminPage({ route }: { route: string }) { + const { session, loading } = useCommunity() + const [path, search] = route.split('?') + const section = adminSectionFor(path) + const inside = !!section && session.admin + return
+ {inside ? 'Admin workspace' : 'Community forum'} +
+

{inside ? section.label : 'Admin workspace'}

+ {inside && } +
+ {session.admin ? section ? : + : loading ?

Checking administrator access…

+ :

Administrators only

+

{session.available ? session.user ? 'Your account does not have administrator access.' : 'Sign in with an administrator account to continue.' : 'Community services are unavailable.'}

+ {session.available && !session.user ? Sign in : Return to library →} +
} +
} diff --git a/src/community/IssueInbox.tsx b/src/community/IssueInbox.tsx index 54e95bea0a..9183c133da 100644 --- a/src/community/IssueInbox.tsx +++ b/src/community/IssueInbox.tsx @@ -14,16 +14,35 @@ type Issue = ReportMetadata & { context: IssueContext | null; log: OtLogSummary | null; log_missing: LogMissingReason | null; log_missing_note: string public_sharing: number; forum_thread_id: string | null; github_state: 'none' | 'pending' | 'syncing' | 'synced' | 'failed'; github_url: string | null; github_error: string } -export function IssueInbox({moduleId = '',onClearModule}: {moduleId?: string;onClearModule?: () => void}) { - const [status,setStatus] = useState(moduleId ? 'open' : 'all') +export function IssueInbox({moduleId, status, onStatus, onClearModule}: { + moduleId: string; status: string; onStatus: (value: string) => void; onClearModule: () => void +}) { const path = '/admin/issues?status='+status+(moduleId ? '&moduleId='+encodeURIComponent(moduleId) : '') - const [items, setItems] = useState([]), [error, setError] = useState(''), [loading, setLoading] = useState(true), [busy, setBusy] = useState('') - useEffect(() => { let cancelled = false; void api(path).then(items => { if (!cancelled) setItems(items) }).catch(error => { if (!cancelled) { setItems([]); setError(error.message) } }).finally(() => { if (!cancelled) setLoading(false) }); return () => { cancelled = true } }, [path]) - async function act(item: Issue, action: () => Promise, failure: string) { setBusy(item.id); setError(''); try { await action(); setItems(await api(path)) } catch (error) { setError(error instanceof Error ? error.message : failure) } finally { setBusy('') } } + const [revision, setRevision] = useState(0) + const [result, setResult] = useState<{ path: string; revision: number; items: Issue[]; error?: string }>() + const [actionError, setActionError] = useState(''), [busy, setBusy] = useState('') + const current = result?.path === path && result.revision === revision ? result : undefined + const items = current?.items ?? [], loading = !current, error = current?.error || actionError + useEffect(() => { + const controller = new AbortController() + void api(path, { signal: controller.signal }).then(items => { + if (!controller.signal.aborted) setResult({ path, revision, items }) + }).catch(error => { + if (!controller.signal.aborted) setResult({ path, revision, items: [], error: error instanceof Error ? error.message : 'Unable to load reports.' }) + }) + return () => controller.abort() + }, [path, revision]) + async function act(item: Issue, action: () => Promise, failure: string) { + setBusy(item.id) + setActionError('') + try { await action(); setRevision(value => value + 1) } + catch (error) { setActionError(error instanceof Error ? error.message : failure) } + finally { setBusy('') } + } const resolve = (item: Issue) => act(item, () => post('/admin/issues/' + item.id, { status: item.status === 'open' ? 'closed' : 'open' }, 'PATCH'), 'Unable to update issue.') const mirror = (item: Issue) => act(item, async () => { const result = await post<{ state: string; error?: string }>('/admin/issues/' + item.id + '/github', {}); if (result.state === 'failed') throw new Error(result.error ?? 'GitHub mirroring failed.') }, 'Unable to mirror issue.') async function download(item: Issue) { - setError('') + setActionError('') try { // The admin session travels in a header, so fetch the log rather than linking to it. const result = await apiFetch('/admin/issues/' + item.id + '/log') @@ -31,11 +50,11 @@ export function IssueInbox({moduleId = '',onClearModule}: {moduleId?: string;onC const link = document.createElement('a'), url = URL.createObjectURL(await result.blob()) link.href = url; link.download = 'OCTAMOD-' + item.module_id + '-' + item.id.slice(0, 8) + '.LOG'; link.click() setTimeout(() => URL.revokeObjectURL(url), 1000) - } catch (error) { setError(error instanceof Error ? error.message : 'The log could not be downloaded.') } + } catch (error) { setActionError(error instanceof Error ? error.message : 'The log could not be downloaded.') } } - return

Author-directed issues

{items.filter(item => item.status === 'open').length} open
+ return

Issue reports

{!loading && !error && {items.length} {items.length === 1 ? 'report' : 'reports'}}

New account reports and logs stay private. Previously published reports retain their GitHub links and status synchronization. Private reports cannot be published through retries.

-
{moduleId && Module: {moduleId} }
+
{moduleId && Module: {moduleId} }
{items.length===200 &&

Showing the latest 200 matching reports.

} {loading ?

Loading reports…

: items.length ? items.map(item =>

{item.title}

@@ -54,5 +73,7 @@ export function IssueInbox({moduleId = '',onClearModule}: {moduleId?: string;onC {!!item.public_sharing && item.github_state !== 'synced' && }
{item.status === 'open' && <> void act(item,() => post('/issues/'+item.id,body,'PATCH'),'Unable to triage report.')}/> void act(item,() => post('/issues/'+item.id,{status:'closed',closureReason,note},'PATCH'),'Unable to close report.')}/>} - ) : !error &&

No reports match these filters.

}{error &&

{error}

} + ) : !error &&

No reports match these filters.

}{error &&

{error}

} + {current?.error && } + } diff --git a/src/community/admin-navigation.ts b/src/community/admin-navigation.ts new file mode 100644 index 0000000000..688aa2f8bd --- /dev/null +++ b/src/community/admin-navigation.ts @@ -0,0 +1,45 @@ +export const reviewQueues = [ + { id: 'issues', label: 'Issue inbox', description: 'Open issue reports', icon: 'warn' }, + { id: 'forum', label: 'Forum moderation', description: 'Unreviewed forum reports', icon: 'message' }, + { id: 'requests', label: 'Account requests', description: 'Active removal requests', icon: 'shield' }, +] as const + +export const toolGroups = [ + { label: 'Activity', sections: [ + { id: 'statistics', label: 'Statistics', description: 'Site usage and community activity' }, + { id: 'octatrack', label: 'Octatrack', description: 'USB syncs, diagnostics and tester mail' }, + ] }, + { label: 'Community', sections: [ + { id: 'accounts', label: 'Accounts and access', description: 'Member roles, beta access and account email' }, + { id: 'comments', label: 'Module comments', description: 'Review discussions on module pages' }, + { id: 'announcements', label: 'Announcements', description: 'Publish notices on the site' }, + { id: 'news', label: 'News email', description: 'Compose and send member updates' }, + ] }, + { label: 'Contributions', sections: [ + { id: 'modules', label: 'Published modules', description: 'Manage approved contributions' }, + { id: 'review', label: 'Module pull requests', description: 'Review changes on GitHub' }, + { id: 'history', label: 'Review history', description: 'Read past decisions and review notes' }, + ] }, +] as const + +export const adminGroups = [{ label: 'Review queues', sections: reviewQueues }, ...toolGroups] +export type AdminSection = typeof adminGroups[number]['sections'][number]['id'] +const sections = adminGroups.flatMap(group => [...group.sections]) + +export function adminSectionFor(path: string) { + return sections.find(section => path === 'admin/' + section.id) +} + +export function isAdminRoute(route: string) { + const path = route.split('?')[0] + return path === 'review' || path === 'admin' || !!adminSectionFor(path) +} + +export function adminHref(section: AdminSection, moduleId = '', status = 'open') { + const params = new URLSearchParams() + if (section === 'issues') { + if (moduleId) params.set('module', moduleId) + if (status !== 'open') params.set('status', status) + } + return '#admin/' + section + (params.size ? '?' + params : '') +} diff --git a/src/community/forum.css b/src/community/forum.css index 1508b72fc2..83c0582846 100644 --- a/src/community/forum.css +++ b/src/community/forum.css @@ -425,12 +425,6 @@ .news-composer textarea { resize: vertical; } .news-composer .review-actions { flex-wrap: wrap; } .news-preview { padding: 1rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--field); overflow-wrap: anywhere; } -.admin-section-picker { display: none; } -@media (max-width: 600px) { - .admin-tabs > button { display: none; } - .admin-section-picker { display: flex; align-items: center; gap: .75rem; width: 100%; font-size: .875rem; color: var(--muted); } - .admin-section-picker select { flex: 1; min-width: 0; min-height: 44px; padding: .5rem .75rem; border: 1px solid var(--control-border); border-radius: .375rem; background: var(--field); color: var(--text); font: inherit; } -} .developer-module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } .developer-module-grid .inbox-issue { padding: 16px; border: 1px solid var(--line); border-radius: 8px; } .private-report-context { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 18px; margin: 20px 0; font-size: 13px; line-height: 1.6; } diff --git a/src/community/member-access.ts b/src/community/member-access.ts index b835aafd4f..8001b86f45 100644 --- a/src/community/member-access.ts +++ b/src/community/member-access.ts @@ -1,6 +1,10 @@ import { post } from './api' +import { isAdminRoute } from './admin-navigation' export function accountHref(mode: 'login' | 'register', next = 'forum') { return '#account/' + mode + '?next=' + encodeURIComponent(safeNext(next)) } -export function safeNext(value: string | null) { return value && value.length <= 500 && /^[a-z][a-z0-9_/?=&%-]*$/i.test(value) && !value.startsWith('account') && !value.startsWith('admin') ? value : 'forum' } +export function safeNext(value: string | null) { + if (!value || value.length > 500 || !/^[a-z][a-z0-9_/?=&%-]*$/i.test(value) || value.startsWith('account')) return 'forum' + return value.startsWith('admin') && !isAdminRoute(value) ? 'forum' : value +} const nextKey = 'modwerk.account.next' /** Registration remembers where it started, so the emailed verification link can return there once the member is signed in. */ export function rememberNext(next: string) { try { if (safeNext(next) === 'forum') localStorage.removeItem(nextKey); else localStorage.setItem(nextKey, safeNext(next)) } catch { /* The forum is the fallback. */ } } diff --git a/src/community/service.test.ts b/src/community/service.test.ts index 95b5b9b3b7..fd547da1e9 100644 --- a/src/community/service.test.ts +++ b/src/community/service.test.ts @@ -92,6 +92,32 @@ const issue=(extra:Record={})=>({title:'Knob issue',steps:'Load afterEach(()=>{vi.useRealTimers();for(const db of databases.splice(0))db.close()}) const details={moduleId:'new-filter',title:'New filter',repositoryUrl:'https://github.com/sambanks/example/tree/main/modules/filter',description:'Original filter',usage:'Choose the filter',testReportUrl:'https://github.com/sambanks/example/blob/main/TESTS.md',stressNotes:'Eight tracks under stress',qualityNotes:'Emulator only; hardware untested',resourceNotes:'100 words; CPU not measured',license:'Original code, MIT; own capture',rightsConfirmed:true} describe('community access and review',()=>{ + it('counts outstanding work across all three admin queues', async () => { + const { call, db, admin } = await fixture() + const counts = async () => (await call('/admin/overview', 'GET', undefined, '', undefined, admin)).json() + expect(await counts()).toMatchObject({ issues: 0, forum: 0, requests: 0 }) + db.exec(` + INSERT INTO issues(id,module_id,author_login,reporter_id,title,body) VALUES('issue','mod','author','other','Title','Body'); + INSERT INTO forum_threads(id,user_id,title,category) VALUES('thread','author','Title','general'); + INSERT INTO forum_posts(id,thread_id,user_id,body) VALUES('post','thread','author','Body'); + INSERT INTO forum_reports(id,post_id,user_id,reason) VALUES('report','post','other','Reason'); + INSERT INTO forum_shouts(id,user_id,body) VALUES('shout','author','Body'); + INSERT INTO forum_shout_reports(id,shout_id,user_id,reason) VALUES('shout-report','shout','other','Reason'); + INSERT INTO conversations(id,pair_key) VALUES('dm','author:other'); + INSERT INTO conversation_members(conversation_id,user_id) VALUES('dm','author'),('dm','other'); + INSERT INTO message_reports(id,conversation_id,user_id,reason) VALUES('dm-report','dm','other','Reason'); + INSERT INTO account_removal_requests(id,user_id,status) VALUES('new','author','requested'),('active','other','reviewing'); + `) + expect(await counts()).toMatchObject({ issues: 1, forum: 3, requests: 2 }) + db.exec(` + UPDATE issues SET status='closed'; + UPDATE forum_reports SET resolved=1; + UPDATE message_reports SET resolved=1; + UPDATE account_removal_requests SET status='completed' WHERE id='active'; + UPDATE account_removal_requests SET status='cancelled' WHERE id='new'; + `) + expect(await counts()).toMatchObject({ issues: 0, forum: 1, requests: 0 }) + }) it('does not grant publication to historical reports during migration',()=>{ const db=new DatabaseSync(':memory:');databases.push(db) db.exec("CREATE TABLE issues(id TEXT PRIMARY KEY,context_json TEXT,github_url TEXT); INSERT INTO issues VALUES('private',NULL,NULL),('structured','{}',NULL),('published','{}','https://github.com/repeat98/octamod/issues/1')") diff --git a/src/components/MobileMenu.tsx b/src/components/MobileMenu.tsx index fb2c27c8ac..ebc6cc6070 100644 --- a/src/components/MobileMenu.tsx +++ b/src/components/MobileMenu.tsx @@ -5,6 +5,7 @@ import { useSheetFocus } from '../hooks/useSheetFocus' import { Icon } from './Icon' import type { IconName } from './Icon' import { SupportButton } from './SupportDialog' +import { isAdminRoute } from '../community/admin-navigation' import { useSetWords } from '../community/beta-ui' type MenuLink = { href: string; label: string; icon: IconName; current: boolean; count?: number; online?: number | null; tag?: string; isNew?: boolean } @@ -42,7 +43,7 @@ export function MobileMenu({ route, online, selectedCount, configurationHref, ad { href: '#account', label: 'Account / sign in', icon: 'shield', current: route.startsWith('account') }, ...(developer ? [{ href: '#developer', label: 'Creator settings', icon: 'sliders' as const, current: route.startsWith('developer') }] : []), ...(highlightDevelop ? [] : [develop]), - ...(admin ? [{ href: '#admin', label: 'Admin workspace', icon: 'shield' as const, current: route === 'admin' || route === 'review' }] : []), + ...(admin ? [{ href: '#admin', label: 'Admin workspace', icon: 'shield' as const, current: isAdminRoute(route) }] : []), ], [ { href: '#base', label: 'Base firmware', icon: 'shield', current: route === 'base', isNew: true }, diff --git a/src/styles.css b/src/styles.css index 55834983a3..57c948f8a5 100644 --- a/src/styles.css +++ b/src/styles.css @@ -1089,9 +1089,36 @@ h1 { font-size: 28px; } .admin-overview > div { border: 1px solid var(--line); border-radius: 7px; padding: 15px; background: #25252d; } .admin-overview dt { color: #a8a8b9; font-size: 12px; } .admin-overview dd { margin: 9px 0 0; font-size: 26px; font-weight: 500; font-variant-numeric: tabular-nums; } -.admin-tabs { display: flex; flex-wrap: wrap; gap: 5px; border-bottom: 1px solid var(--line); margin-bottom: 24px; padding-bottom: 12px; } -.admin-tabs button { min-height: 40px; padding: 8px 13px; border: 1px solid transparent; border-radius: 5px; color: var(--muted); background: transparent; font-size: 13px; } -.admin-tabs button[aria-pressed="true"] { color: #eeeaf8; background: #35313f; border-color: #4b435c; } +.admin-heading { flex-wrap: wrap; } +.admin-section-picker { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; } +.admin-section-picker select { min-height: 44px; min-width: 0; border: 1px solid var(--control-border); border-radius: 6px; padding: 8px 12px; background-color: var(--field); color: var(--text); font: inherit; } +.admin-queues .section-title { margin-bottom: 10px; } +.admin-queues .text-button { min-height: 44px; } +.admin-queue-grid, .admin-directory { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } +.admin-queue { display: grid; align-content: space-between; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); } +.admin-queue-label, .admin-queue-link { display: flex; align-items: center; gap: 8px; } +.admin-queue-label { color: var(--text-secondary); font-size: 13px; } +.admin-queue-label svg { color: var(--muted); } +.admin-queue strong { font: 550 32px/1.1 var(--mono); font-variant-numeric: tabular-nums; } +.admin-queue-link { justify-content: space-between; color: var(--accent); font-size: 13px; } +.admin-queue:hover, .admin-queue:focus-visible { border-color: var(--accent-line); background: var(--surface-hover); } +.admin-directory { margin-block: 30px; gap: 24px; } +.admin-directory h2 { margin-bottom: 10px; } +.admin-directory a { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding: 13px 4px; } +.admin-directory strong, .admin-directory small { display: block; } +.admin-directory strong { font-size: 14px; font-weight: 550; } +.admin-directory small { margin-top: 4px; line-height: 1.45; font-size: 12px; color: var(--muted); } +.admin-directory svg { color: var(--muted); } +.admin-directory a:hover strong, .admin-directory a:hover svg { color: var(--accent); } +@media (max-width: 650px) { + .admin-queue-grid, .admin-directory { grid-template-columns: minmax(0, 1fr); } + .admin-queue-grid { gap: 8px; } + .admin-queue { grid-template-columns: 1fr auto; gap: 4px 14px; padding: 13px 16px; } + .admin-queue strong { grid-area: 1 / 2 / 3 / 3; align-self: center; font-size: 26px; } + .admin-queue-link { justify-content: start; margin-left: 25px; } + .admin-section-picker { width: 100%; } + .admin-section-picker select { flex: 1; } +} .admin-review > .page-heading h2 { margin: 0; font-size: 20px; } .admin-module-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 16px 0; } .admin-module-row > div { min-width: 0; display: flex; flex-direction: column; gap: 7px; font-size: 14px; } @@ -1169,7 +1196,7 @@ h1 { font-size: 28px; } .announcement-remove:hover:not(:disabled) { border-color: #96514a; background: #3d2a2a; color: #ffd9d3; } @media(max-width:900px) { .announcement-compose { grid-template-columns: minmax(0, 1fr); } .announcement-preview { position: static; } } @media(max-width:650px) { .announcement-form .form-two-columns { grid-template-columns: 1fr; } .announcement-sent li { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; } .announcement-sent-text { grid-column: 1 / -1; } .announcement-form input, .announcement-form textarea, .announcement-form select, .announcement-visibility select { font-size: 16px; } } -@media(max-width:650px) { .admin-overview { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; } .admin-tabs button { padding: 8px 10px; } .admin-module-row { flex-wrap: wrap; } } +@media(max-width:650px) { .admin-overview { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; } .admin-module-row { flex-wrap: wrap; } } .chooser-options label {display:flex;align-items:flex-start;gap:12px;margin-top:12px;cursor:pointer} .chooser-options input {margin-top:4px;flex-shrink:0} From 5bdd0d3697762e4c83ce3cbbd51bf8dd159c92c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Fri, 20 Nov 2026 11:49:54 +0100 Subject: [PATCH 196/415] Docs: the 0.7.11 test procedure record and edge-case table for the project-load gate Co-Authored-By: Claude Opus 5.5 --- .../2026-11-19-octatrack-project-load-dsp.md | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/docs/verification/2026-11-19-octatrack-project-load-dsp.md b/docs/verification/2026-11-19-octatrack-project-load-dsp.md index 53ac534cdb..75ec7349b3 100644 --- a/docs/verification/2026-11-19-octatrack-project-load-dsp.md +++ b/docs/verification/2026-11-19-octatrack-project-load-dsp.md @@ -13,3 +13,32 @@ The DSP glue, effect-handle map and allocator host checks passed. 20 November 2026. 0.7.10 shipped without the gate, so it was rebuilt on shipped 0.7.10 as base 0.7.11: default layout `bd1ed4323f053874308bd42f9c96a332f3c3c90aab8636038455e6077e4fe409`, Tracks Post `239d55a42bcba500a5f2f2cb3b2e7eff0332dc7f9ed98b390175c5c6ed52d901`. All seven layouts matched the native and browser builds byte for byte and passed the bootloader recovery checks. No lease entry moved, so the base-bound packages kept their bytes. `sdk/tests/test_project_load_residency.py` builds the observer as the base build generates it and counts its automatic plans across a load that keeps the effects, one that changes them, and one that ends with a transaction open. All three modes fail without the gate. Unit run, the same MKII and card (Set `MWREPRO`), on Tracks Post development twins built with the beta flags: 0.7.11 candidate `a328967d`, 0.7.10 control `700f8e4f`. Before it, a RAM boot of the flashed 0.7.9 base's own image (`dfa43813`, rebuilt from `25f9888ea`) restored the kept set from the card: ten modules, whole-set identity `100ed1fc…`, whose ten package files were matched byte for byte by that identity. On the candidate, `TARGET` loaded with the frames running, and Tape Echo, Euclid, LOFI2, Sidechain Compressor (bound to the twin), POLY8 and Slow LFO were kept as one set (card result 7, six saved and live). The first RAM boot meant to restore them from the card did not come back on USB: Windows saw no Elektron device. This is the trap recorded as "A RAM boot can come back without USB" in the hardware traps guide, and only a power cycle ends it. No `FLEX07` load ran after a card restore on 0.7.11 and the control did not run, so the exact 0.7.11 build still needs its hardware qualification. + +### Test procedure: octatrack base 0.7.11, 2026-11-20 + +Build: revision `e056c91c6a52`, base package SHA-256 `7e51c8f32f2b430d72d0459d644c04076c3f3f630f213e12137b8cda1b68ba94`. `npm run test:procedure -- --base --no-unit` (the unit was off USB, above), 77 s. The runner stopped after step 1; steps 2 to 4 were then run by hand with the commands it names. + +| # | Step | Layer | Result | Command | +|---|---|---|---|---| +| 1 | Software checks | host | failed: `test_runtime_loader.py` only, its published-package rebuild refusing a standalone module's reviewed recipe ("does not name the exact source/image inputs") against this computer's stock image. The test does not build the base, and this computer has failed it before; 707 cases ran, 27 skips | `npm run sdk:check` | +| 2 | Beside every other module | contract | pass (by hand): 42 modules, 861 pairs and the whole set, 0 problems | `npm run modules:compat` | +| 3 | Name the build | host | pass (by hand): the SHA-256 above | hash of `src/engine/assets/octatrack-base.elemod` | +| 4 | DSP cost model | contract | pass (by hand): 10 records current, none under-reported | `node scripts/cycle-scan.mjs check` | +| 5 | Emulator rehearsal | emulator | not run: no emulator session | | +| 6-10 | Unit steps | unit | not run: the unit was off USB from 10:27 until a power cycle | `device.mjs status`, `do inventory`, the whole-set trial, the soak, `device:price` | +| 11 | Agent by hand | unit | partly run, above: the flashed base's kept set read, `TARGET` loaded, the six modules kept on the candidate; the restoring RAM boot lost USB | | +| 12 | Submitter's own stage | unit | not run | | + +#### Edge cases for this change + +| Case | Why this change makes it a risk | How run | Result | +|---|---|---|---| +| First load after six modules were restored from the card (`TARGET` to `FLEX07`) | the case that stalled; the gate holds new plans for the whole load | on the unit, 0.7.11 twin `a328967d`, two restoring RAM boots | not run: the first restoring RAM boot came back without USB | +| A load to a project with the same effects | the gate must leave the resident effects bound and ask the DSP for nothing | host, `test_project_load_residency.py` mode 1; unit, 0.7.9 plus the gate (`1df94302`), 19 November | pass on the host; pass 2 of 2 on 0.7.9 plus the gate; not run on 0.7.11 | +| A load to a project whose effect map differs | one plan must follow, for the completed map, never an intermediate Part | host, mode 2; unit, 0.7.9 plus the gate: T5 FX1 to Filter and a reload | pass on the host; pass on 0.7.9 plus the gate; not run on 0.7.11 | +| A load while a residency transaction is in flight | a second plan must not start, and the open one must still finish | host, mode 3 | pass on the host; not run on a unit | +| A load during playback | stock rewrites the slots while frames and trigs run, and the gate holds plans for the whole load | | not run: the unit was off USB | +| Undo or a trial's rollback during a load | a rollback asks for residency while the observer waits | | not run: the unit was off USB | +| No modules installed | the gate sits in the stock-effect path too and must not change a plain load | | not run: the unit was off USB | +| The 84-87 % CPU range after the load | the record's playback reached 67.3 %; the handoff asks for the range where the guard engages | | not run: the unit was off USB | +| Shipped 0.7.10 control | shows whether 0.7.10 has the stall | on the unit, twin `700f8e4f` | not run: left for last, since a stall needs a power cycle, and the unit went off USB before it | From f0acff70dde75efd24e5c21e4dda58355adb2efe Mon Sep 17 00:00:00 2001 From: Lukas Schmolz <154926255+prodbysmolec@users.noreply.github.com> Date: Fri, 20 Nov 2026 11:52:06 +0100 Subject: [PATCH 197/415] Docs: the Digitone II's processors (#1850) Co-authored-by: Claude Opus 5.5 --- .../2026-11-20-digitone-ii-processors.md | 1 + docs/DIGITONE_II_OS_RESEARCH.md | 19 ++++++++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 changelog/2026-11-20-digitone-ii-processors.md diff --git a/changelog/2026-11-20-digitone-ii-processors.md b/changelog/2026-11-20-digitone-ii-processors.md new file mode 100644 index 0000000000..000baf3960 --- /dev/null +++ b/changelog/2026-11-20-digitone-ii-processors.md @@ -0,0 +1 @@ +Docs: the Digitone II research page names its processors: the ColdFire, a SHARC+ audio DSP (a free toolchain exists for it) and a third ARM core. diff --git a/docs/DIGITONE_II_OS_RESEARCH.md b/docs/DIGITONE_II_OS_RESEARCH.md index d514681d6e..266ec2220e 100644 --- a/docs/DIGITONE_II_OS_RESEARCH.md +++ b/docs/DIGITONE_II_OS_RESEARCH.md @@ -56,7 +56,24 @@ A ColdFire emulator of the control processor, without the DSP: - toonst's unit (23 October 2026, [elekloader's build guide](https://github.com/toonst/elekloader/blob/3d7c2e3/docs/BUILDING.md#flash-it)): stock 1.12 and core/DigiHealth builds flashed over USB, the six UI events ran with core 0.1 and hooks-check 0.1, and the startup-menu recovery restored stock 1.12 over MIDI DIN. - A second unit (18 November 2026, [record](verification/2026-11-18-digitone-ii-core-on-a-unit.md)): toonst's elekloader at `3d7c2e3` built core-dn2 0.3 with hello-marker, then with hooks-check-dn2. Both booted from Transfer over USB, kits played normally, all six UI events and the subscriber order behaved as in the emulator, and a normal Transfer update put stock 1.12 back. +## The processors (20 November 2026) + +What the 1.12 update and a unit show; nobody has opened a unit for this: + +- **ColdFire MCF5445x (V4e)** runs the OS (`main_section` 3, loaded at `0x40000400`): the UI, the sequencer, USB and + MIDI, a kernel of sixteen tasks, and the parameter frames at 1,500 a second. 128 MB of DDR at `0x40000000`, read + uncached through `0x48000000`; 64 KB of SRAM at `0x80000000`, which section 4 fills (32 KB from `0x80000400`). + Section 2 (16 KB, at `0x02010000`) looks like the bootloader. External devices sit at `0xEC07xxxx` and `0xEC09xxxx` + (the reset and reset-status registers, and the power switch's interrupt). The SPI module drives the flash. +- **An Analog Devices SHARC+** (the ADSP-2156x or SC5xx family) renders the sound. Section 7 is an ADI boot stream: + 95 blocks, each led by the 0xAD signature, filling the section exactly, into L1 (`0x2824xxxx`-`0x283xxxxx`), L2 + (`0x2000xxxx`) and its own DDR (`0x80xxxxxx`). Its code is 48-bit ISA, little-endian words, with 32-bit float + tables. The Octatrack's DSP56k code cannot run there; algorithms port. A GPL-3.0 SHARC+ toolchain exists + ([selache](https://github.com/js216/selache): assembler, C compiler, linker, boot streams), and its disassembler + decodes the stock stream's code with about 1 % of words left undecoded. +- **An ARM core** runs section 8 (160 KB: 4 KB of 0xFF, then Thumb code): which one, and what it does, is open. + ## Still open -- No run that exercises the DSP side of a mod, no project save or power-cycle persistence check, and the startup-menu recovery has been tried on one unit only. +- How the ColdFire boots and feeds the SHARC, where the stock delay sits in its code, and no run that exercises the DSP side of a mod, no project save or power-cycle persistence check, and the startup-menu recovery has been tried on one unit only. - `core-dn2` and the device profile were in a local elekloader checkout. toonst's elekloader fork now has `core-dn2` 0.3 (commit `3d7c2e3`): the six events above plus an input bridge, SysEx observers and a SHARC bridge from earlier cores, and the Digitakt II 1.1 additions (`ev_frame_params`, `ev_key_leds`, project and kit data) at this unit's addresses. Its boot and six UI events have run on a unit; the 1.1 additions and the bridges have run in an emulator only. Modwerk has not copied it. The Digitone II's base follows the Digitakt II's, built here ([goal](../sdk/machines/digitone-ii/GOAL.md)). From 457a216cce196ecedc6f6b8e3e72d7fdecde8bea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannik=20A=C3=9Ffalg?= <67785539+repeat98@users.noreply.github.com> Date: Fri, 20 Nov 2026 12:23:26 +0100 Subject: [PATCH 198/415] Improve admin subpage navigation and review queues (#1852) --- changelog/2026-11-20-admin-subpages.md | 1 + server/api.ts | 10 +++- server/forum.ts | 8 ++- src/community/AccountRequests.tsx | 59 ++++++++++++++++-- src/community/AdminPage.test.ts | 23 +++++++ src/community/AdminPage.tsx | 71 +++++++++++++++++++--- src/community/AdminViews.tsx | 26 ++++++++ src/community/AnnouncementsPanel.tsx | 4 +- src/community/ForumModeration.tsx | 61 +++++++++++++++++-- src/community/IssueInbox.tsx | 35 ++++------- src/community/ModerationPanel.tsx | 17 +++++- src/community/NewsPanel.tsx | 16 +++-- src/community/admin-subpages.css | 83 ++++++++++++++++++++++++++ src/community/service.test.ts | 9 +++ src/community/useAdminQueue.ts | 18 ++++++ 15 files changed, 386 insertions(+), 55 deletions(-) create mode 100644 changelog/2026-11-20-admin-subpages.md create mode 100644 src/community/AdminViews.tsx create mode 100644 src/community/admin-subpages.css create mode 100644 src/community/useAdminQueue.ts diff --git a/changelog/2026-11-20-admin-subpages.md b/changelog/2026-11-20-admin-subpages.md new file mode 100644 index 0000000000..bb14e6cd55 --- /dev/null +++ b/changelog/2026-11-20-admin-subpages.md @@ -0,0 +1 @@ +Admins can scan issue reports, review pending forum reports and handle active removal requests in dedicated queues. Accounts, statistics and Octatrack tools have direct links to each view. News drafts, contribution decisions and email delivery counts are easier to review. diff --git a/server/api.ts b/server/api.ts index ab92e8dd4c..b54b5fed63 100644 --- a/server/api.ts +++ b/server/api.ts @@ -273,7 +273,15 @@ export async function handleApi(request: Request, env: Env): Promise { } if (path.startsWith('/api/admin/')) { if (!admin) throw new HttpError(403,'Administrator access is required.') - if(path==='/api/admin/account-requests'&&request.method==='GET')return response((await db.prepare("SELECT r.id,r.user_id,r.status,r.created_at,r.updated_at,r.review_note,u.username FROM account_removal_requests r JOIN users u ON u.id=r.user_id ORDER BY CASE WHEN r.status IN ('requested','reviewing') THEN 0 ELSE 1 END,r.created_at ASC,r.rowid ASC LIMIT 100").all<{created_at:string}>()).results.map(withPrivacyDeadline)) + if (path === '/api/admin/account-requests' && request.method === 'GET') { + const view = url.searchParams.get('view') + const active = "r.status IN ('requested','reviewing')" + const filter = view === 'active' ? 'WHERE ' + active : view === 'archive' ? 'WHERE NOT (' + active + ')' : '' + const order = view === 'archive' ? 'r.updated_at DESC, r.rowid DESC' : `CASE WHEN ${active} THEN 0 ELSE 1 END, r.created_at, r.rowid` + const rows = await db.prepare(`SELECT r.id,r.user_id,r.status,r.created_at,r.updated_at,r.review_note,u.username + FROM account_removal_requests r JOIN users u ON u.id=r.user_id ${filter} ORDER BY ${order} LIMIT 100`).all<{created_at:string}>() + return response(rows.results.map(withPrivacyDeadline)) + } if(path==='/api/admin/account-mail'&&request.method==='GET')return response((await db.prepare('SELECT day,purpose,accepted,failed,limited FROM account_mail_daily ORDER BY day DESC,purpose LIMIT 60').all()).results) if((match=path.match(/^\/api\/admin\/account-requests\/([a-zA-Z0-9-]+)$/))&&request.method==='PATCH')return reviewAccountRequest(request,db,match[1]) const announcements = await adminAnnouncements(request, db, path) diff --git a/server/forum.ts b/server/forum.ts index 9561c2a08c..be47c2bd58 100644 --- a/server/forum.ts +++ b/server/forum.ts @@ -65,9 +65,13 @@ export async function forum(request: Request, db: Database, user: User|null, adm let match: RegExpMatchArray|null if (path.startsWith('/api/admin/forum')) { if (!admin) throw new HttpError(403,'Administrator access is required.') - if (path === '/api/admin/forum/reports' && request.method === 'GET') return response((await db.prepare(`SELECT * FROM (SELECT r.id,r.reason,r.resolved,r.created_at,p.id AS post_id,p.body,p.hidden,p.thread_id,p.user_id,u.username,t.title,'post' AS kind FROM forum_reports r JOIN forum_posts p ON p.id=r.post_id JOIN forum_threads t ON t.id=p.thread_id JOIN users u ON u.id=p.user_id + if (path === '/api/admin/forum/reports' && request.method === 'GET') { + const view = url.searchParams.get('view') + const filter = view === 'pending' ? 'WHERE resolved=0' : view === 'reviewed' ? 'WHERE resolved=1' : '' + return response((await db.prepare(`SELECT * FROM (SELECT r.id,r.reason,r.resolved,r.created_at,p.id AS post_id,p.body,p.hidden,p.thread_id,p.user_id,u.username,t.title,'post' AS kind FROM forum_reports r JOIN forum_posts p ON p.id=r.post_id JOIN forum_threads t ON t.id=p.thread_id JOIN users u ON u.id=p.user_id UNION ALL SELECT r.id,r.reason,r.resolved,r.created_at,s.id AS post_id,s.body,s.hidden,NULL AS thread_id,s.user_id,u.username,'Shoutbox' AS title,'shout' AS kind FROM forum_shout_reports r JOIN forum_shouts s ON s.id=r.shout_id JOIN users u ON u.id=s.user_id - UNION ALL SELECT r.id,r.reason,r.resolved,r.created_at,(SELECT m.id FROM messages m WHERE m.conversation_id=r.conversation_id AND m.user_id<>r.user_id ORDER BY m.created_at DESC,m.rowid DESC LIMIT 1) AS post_id,(SELECT m.body FROM messages m WHERE m.conversation_id=r.conversation_id AND m.user_id<>r.user_id ORDER BY m.created_at DESC,m.rowid DESC LIMIT 1) AS body,(SELECT m.hidden FROM messages m WHERE m.conversation_id=r.conversation_id AND m.user_id<>r.user_id ORDER BY m.created_at DESC,m.rowid DESC LIMIT 1) AS hidden,r.conversation_id AS thread_id,cm.user_id,u.username,'Direct message' AS title,'message' AS kind FROM message_reports r JOIN conversation_members cm ON cm.conversation_id=r.conversation_id AND cm.user_id<>r.user_id JOIN users u ON u.id=cm.user_id) ORDER BY resolved,created_at DESC LIMIT 100`).all()).results) + UNION ALL SELECT r.id,r.reason,r.resolved,r.created_at,(SELECT m.id FROM messages m WHERE m.conversation_id=r.conversation_id AND m.user_id<>r.user_id ORDER BY m.created_at DESC,m.rowid DESC LIMIT 1) AS post_id,(SELECT m.body FROM messages m WHERE m.conversation_id=r.conversation_id AND m.user_id<>r.user_id ORDER BY m.created_at DESC,m.rowid DESC LIMIT 1) AS body,(SELECT m.hidden FROM messages m WHERE m.conversation_id=r.conversation_id AND m.user_id<>r.user_id ORDER BY m.created_at DESC,m.rowid DESC LIMIT 1) AS hidden,r.conversation_id AS thread_id,cm.user_id,u.username,'Direct message' AS title,'message' AS kind FROM message_reports r JOIN conversation_members cm ON cm.conversation_id=r.conversation_id AND cm.user_id<>r.user_id JOIN users u ON u.id=cm.user_id) ${filter} ORDER BY resolved,created_at DESC LIMIT 100`).all()).results) + } if (path === '/api/admin/forum/history' && request.method === 'GET') return response((await db.prepare('SELECT m.id,m.target,m.action,m.reason,m.created_at,u.display_name AS actor FROM forum_moderation m JOIN users u ON u.id=m.actor_id ORDER BY m.rowid DESC LIMIT 100').all()).results) if ((match = path.match(/^\/api\/admin\/forum\/messages\/([a-f0-9-]{36})$/)) && request.method === 'GET') { // A private conversation opens for the administrator only after one of its members reported it. diff --git a/src/community/AccountRequests.tsx b/src/community/AccountRequests.tsx index 0a6471b3ab..cd5e07dab9 100644 --- a/src/community/AccountRequests.tsx +++ b/src/community/AccountRequests.tsx @@ -1,5 +1,8 @@ import { useEffect, useState } from 'react' import { Icon } from '../components/Icon' +import { AdminRecord, AdminViews } from './AdminViews' +import { useAdminQueue } from './useAdminQueue' +import { ForumTime } from './ForumTime' import { AccountConfirmation } from './AccountConfirmation' import { api, post } from './api' import { SUPPORT_EMAIL, SUPPORT_MAILTO } from '../support' @@ -25,14 +28,58 @@ export function AccountRemovalRequest(){ {error&&

{error}

} } -export function AccountRequestInbox(){ - const [items,setItems]=useState([]),[loading,setLoading]=useState(true),[error,setError]=useState(''),[busy,setBusy]=useState('') - useEffect(()=>{let cancelled=false;void api('/admin/account-requests').then(items=>{if(!cancelled)setItems(items)}).catch(error=>{if(!cancelled)setError(errorText(error))}).finally(()=>{if(!cancelled)setLoading(false)});return()=>{cancelled=true}},[]) - async function review(id:string,form:HTMLFormElement){setBusy(id);setError('');try{await post('/admin/account-requests/'+id,Object.fromEntries(new FormData(form)),'PATCH');setItems(await api('/admin/account-requests'))}catch(error){setError(errorText(error))}finally{setBusy('')}} - return

Private account requests

Submitting and reviewing a request never deletes account data. Obtain and record approval for the specific removal scope, follow the operator procedure, then verify removal before marking completion. The server rejects completion while account credentials or private reports remain.

{loading?

Loading requests…

:items.length?items.map(item=>

{item.username?'@'+item.username:'Removed account'}

{labels[item.status]}

Initial response due {new Date(item.responseDueAt).toLocaleDateString()}{item.responseOverdue?' · overdue':''}

Request {item.id} · account {item.user_id} · {item.created_at}{item.review_note&&

{item.review_note}

}{(item.status==='requested'||item.status==='reviewing')&&{event.preventDefault();void review(item.id,event.currentTarget)}}>