Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
2 changes: 1 addition & 1 deletion sdk/catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@
},
{
"id": "seq",
"version": "0.1.0-experimental",
"version": "0.1.1-experimental",
"addedAt": "2026-11-27T20:30:00Z"
},
{
Expand Down
14 changes: 11 additions & 3 deletions sdk/octatrack/modules/seq/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SEQ

Version 0.1.0-experimental · by @ilia-murzinov · MKII and emulator results recorded.
Version 0.1.1-experimental · by @ilia-murzinov · MKII and emulator results recorded.

## Overview

Expand Down Expand Up @@ -122,8 +122,10 @@ byte for byte under `upstream/`. `seq.s` here differs in five ways:
(`ef_audio_dest_valid`), CLEAR ALL DEST stops at 29, and the trigless scan
no longer reads PLOCKS P2's table. The `seq.work` layout is unchanged;
`test_seq_port.py` compares it with the upstream source.
3. **Stock's FX2 descriptor table** (`0x400d5fdc`, ids 0-31): the base's
effect ids fit it.
3. **FX1/FX2 destinations through the base's tables.** Knob D reads the
FX editor lea operands the base patches to `modwerk_fx*_ids`, so a
Modwerk effect on FX1 or FX2 offers its page-1 parameters. Ids stay
0-31.
4. **Stock sites by SHA-256**: the PAGE prologue (`0x4004ffc4`), MKII TRACK
TRIG EDIT (`0x4007c0d0`) and the MKI FUNC+BANK key-table entry
(`0x400bf4a4`). The MKI entry falls back to its stock handler, which
Expand Down Expand Up @@ -160,3 +162,9 @@ SEQ is by [ilia-murzinov](https://github.com/ilia-murzinov), MIT
![SEQ Harmony on a MIDI track with RAND selected (emulator).](media/seq-harmony-midi-emulator.png)

![SEQ clear menu (emulator).](media/seq-clear-menu-emulator.png)

![SEQ rhythm page with DEST EVRB / MIX after scrolling D past AMP BAL (MKII, E-Verb on FX2).](media/seq-dest-everb-mix.png)

![SEQ rhythm page with DEST DEL TIME on stock Delay FX2 (MKII).](media/seq-dest-delay-time.png)

![SEQ rhythm page with DEST RESO / PTCH after Resonator on FX1 (MKII).](media/seq-dest-reso-fx1.png)
57 changes: 56 additions & 1 deletion sdk/octatrack/modules/seq/TESTING.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,61 @@
# SEQ testing

Version **0.1.0-experimental** (`sdk/octatrack/modules/seq`). Results are separated by where they ran.
Version **0.1.1-experimental** (`sdk/octatrack/modules/seq`). Results are separated by where they ran.

## Issue 2490: Modwerk FX destinations (1 Dec 2026)

Report: with E-Verb or Resonator on FX2, SEQ knob D stopped at AMP BAL;
stock Delay on FX2 listed every FX2 page-1 destination.

Cause (source): `ef_fx_dest` indexed stock `FX*_IDS`. Free effect ids there
point at NONE, while the base keeps module descriptors in `modwerk_fx*_ids`
and patches the FX editor lea operands to those tables.

Fix: read those lea operands (`0x4003ac28` / `0x4003aa20`) before indexing.

### Automated so far

| Check | Where | Result |
| --- | --- | --- |
| `test_fx_dest_follows_base_lea_sites` | host `test_seq_port.py` | pass: `seq.s` uses `FX1_LEA`/`FX2_LEA`, no stock `FX*_IDS` absolutes |
| `test_plock_trig_fx_dests_use_lea_validity_and_lock_store` | host `test_seq_port.py` | pass: dest order includes FX1/FX2 page-1; seek validity and labels use `ef_fx_dest` leas; `ef_yes`→`ef_fill`→`ef_plk_save`; `ed_store` writes `LOCK0+ef_dest` through `DEST_LAST` 29 |
| full `test_seq_port.py` | host | pass |
| `fx_plock_unit.py` dest sweep TRIG+PLCK | unit (share socket) | pass: E-Verb on T2 FX2; scroll D with PULS/ROT/DEPTH; YES; MEM peek LOCK0 — TRIG wrote flats incl. FX2 25/27/29; PLCK wrote 18–29 incl. all FX2 24–29 (`/tmp/fx-plock-sweep.log`) |
| octabam `verify_seq_scenarios.py` | image gate | not ported to Modwerk |

### Unit — stage 1 (agent, 1 Dec 2026)

Package `ffb0ab4d…` (`0.1.1-experimental`). Two RAM twins of release base
`eb667962`: **release twin** `43ac24652a89f28b`
(`scope-dev-current-20261127-2`) for stock Delay, and **pr2352 twin**
`0c8b6906b80812ae` (`pr2352-hooks-audio-exact-b-20261130`, moduleSets) for
multi-module Modwerk FX trials. Rolled back; no Keep.

| Case | How run | Result |
| --- | --- | --- |
| FX2 = E-Verb: knob D past AMP BAL | twin `0c8b6906`; LEVEL via `modwerk_fx2_id2pos` row 15; TRACK+PAGE; enc D; LCD | pass: DEST **EVRB / MIX** |
| FX2 = stock Delay: page-1 dests + YES locks | twin `43ac2465`; SEQ-only trial; LIVE_FX FX2=8; LCD DEL TIME/VOL/SEND; PLCK YES wrote flats 18–25 incl. FX2 24–25 | pass |
| FX1 = Resonator: page-1 dests + YES locks | twin `0c8b6906`; MCP SEQ+Resonator; FX1 `id2pos` `0x40AD7238` row 11; LCD RESO/PTCH + RESO/DCAY; PLCK YES wrote FX1 flats 22–23 | pass |
| Dest sweep TRIG+PLCK, peek locks (E-Verb FX2) | `fx_plock_unit.py --track 2` on twin `0c8b6906` | pass: see Automated table |
| PLCK/TRIG YES with FX dest (host path) | `test_plock_trig_fx_dests_use_lea_validity_and_lock_store` | pass (assembly) |

`pick:T#:FX#:Name` fails on these twins (stock `effectTables` lea sites sit
outside the development MEM windows). LEVEL via `modwerk_fx*_id2pos` works.
E-Verb is FX2-only; Resonator covers FX1.

### Unit — stage 2 (author, 1 Dec 2026)

Author on the same package tip with SEQ + E-Verb + Resonator in a rolled-back
trial: Modwerk FX destinations on knob D work. Pass.


### Shipped package vs earlier record

Package `ffb0ab4d…` (0.1.1-experimental) is the one that ships. The 1 Dec 2026
unit pass above ran that package (EVRB/MIX, TRIG/PLCK dest sweep with lock peek).
The functional hardware record now names `ffb0ab4d`. The older `5c88a76b` run
still documents the 0.1.0 catalog procedure; it does not need a re-qualify for
this lea-site fix beyond the 0.1.1 unit evidence above.

## CUE and trial rollback (fix36)

Expand Down
52 changes: 26 additions & 26 deletions sdk/octatrack/modules/seq/evidence/cpu-price.json
Original file line number Diff line number Diff line change
@@ -1,66 +1,66 @@
{
"module": "seq",
"version": "0.1.0-experimental",
"version": "0.1.1-experimental",
"base": "Octatrack release base eb6679620d0c9ed7, RAM-booted twin 43ac24652a89f28b, MKII, OS 1.40C",
"scene": "author's project, bank A pattern 2, Part 1, stopped (release base eb667962 via RAM twin)",
"inputs": {
"transport": "playing"
},
"seconds": 8,
"readings": 3,
"measuredAt": "2026-11-27T23:16:58.768Z",
"measuredAt": "2026-12-01T11:31:08.034Z",
"result": {
"id": "seq",
"version": "0.1.0-experimental",
"packageSha256": "5c88a76b8748de8e656351884e2249805061c2d803ca387820fd2c74a565d771",
"version": "0.1.1-experimental",
"packageSha256": "ffb0ab4d8546e80528aac967656df1c6682dce85b9658834e6c07c578a77bd98",
"before": {
"frame": 29.4,
"frameMax": 61.2,
"frames": 67160,
"frame": 25.6,
"frameMax": 41,
"frames": 67156,
"skipped": 0,
"cpu": 44.1,
"dsp1to4": 34.3,
"cpu": 37.6,
"dsp1to4": 27.4,
"dsp5to8": 41.6,
"dsp1to4Peak": 35.5,
"dsp1to4Peak": 28.5,
"dsp5to8Peak": 42.6,
"readings": 3,
"spread": {
"frame": 0,
"frame": 0.1,
"cpu": 0.1,
"dsp1to4": 0,
"dsp1to4": 0.1,
"dsp5to8": 0,
"frameMax": 0.9,
"frameMax": 1.7,
"dsp1to4Peak": 0.1,
"dsp5to8Peak": 0.9
}
},
"atRest": {
"frame": 29.4,
"frameMax": 64.7,
"frames": 67124,
"frame": 25.6,
"frameMax": 41.1,
"frames": 67157,
"skipped": 0,
"cpu": 44.1,
"dsp1to4": 34.1,
"cpu": 37.7,
"dsp1to4": 27.4,
"dsp5to8": 41.6,
"dsp1to4Peak": 35.4,
"dsp1to4Peak": 28.5,
"dsp5to8Peak": 42.6,
"readings": 3,
"spread": {
"frame": 0,
"cpu": 0.3,
"dsp1to4": 0,
"cpu": 0,
"dsp1to4": 0.1,
"dsp5to8": 0,
"frameMax": 1.5,
"dsp1to4Peak": 0,
"frameMax": 1.6,
"dsp1to4Peak": 0.1,
"dsp5to8Peak": 0.9
}
},
"atRestAdds": {
"frame": 0,
"cpu": 0,
"dsp1to4": -0.2,
"cpu": 0.1,
"dsp1to4": 0,
"dsp5to8": 0,
"dsp1to4Peak": -0.1,
"dsp1to4Peak": 0,
"dsp5to8Peak": 0
},
"rolledBack": true
Expand Down
4 changes: 2 additions & 2 deletions sdk/octatrack/modules/seq/evidence/memory.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# SEQ memory (package header and assembler)

Version **0.1.0-experimental**, package built on 27 November 2026 with `npm run module:dev -- seq --build-only`.
Version **0.1.1-experimental**, package built on 1 December 2026 with `npm run module:dev -- seq --build-only`.

| Region | Space | Bytes | Scope |
| --- | --- | ---: | --- |
| Runtime package code and data (MWRM ABI 8) | cpu-ram | 38,356 | shared |
| Runtime package code and data (MWRM ABI 8) | cpu-ram | 38,368 | shared |
| Per-project seq.work (max layout, octabam-compatible) | card | ~9,216 | per project while SEQ is installed |

The package carries no BSS. SEQ takes no DSP slot, no delay line and no shared DRAM unit of its own beyond the loader pool entry. seq.work sits beside bank files on the card; the base's project events read and write it.
12 changes: 6 additions & 6 deletions sdk/octatrack/modules/seq/evidence/performance.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{
"schema": 1,
"module": "seq",
"version": "0.1.0-experimental",
"sourceSha256": "c4d331626e9e922bd59cd36d1872589e6b7ff4e1c1342e4b52f9372d39557afa",
"version": "0.1.1-experimental",
"sourceSha256": "e0ccb8a3a27687c203d6bace71c92072675eb858db0853a59ddcc816277c3834",
"kind": "coldfire",
"cycles": {
"unit": "cycles/event",
"static": 13799,
"measured": 13799,
"static": 13812,
"measured": 13812,
"budget": 26600000,
"method": "Static instruction count on seq.s with MODWERK_EVENTS=1 (perf.py static): dearest UI event is [YES] after rhythm edits on the rhythm page. SEQ has no frame-interrupt hook; cycles are priced in the UI task when a key is handled."
"method": "Static instruction count on seq.s with MODWERK_EVENTS=1 (perf.py static): dearest UI event is [YES] after rhythm edits on the rhythm page. SEQ has no frame-interrupt hook; cycles are priced in the UI task when a key is handled. Remeasured 1 Dec 2026 after ef_fx_dest followed the base FX lea sites (+13 instructions on that path; YES path 13812)."
},
"load": {
"frameUs": 362.8,
"stockLongestUs": 87.5,
"moduleLongestUs": 87.5,
"stockIdlePercent": 63.8,
"moduleIdlePercent": 63.8,
"method": "Hardware, 27 November 2026, development twin 43ac2465, package 5c88a76b, MKII over USB: npm run device:price on author's project bank A pattern 2 Part 1 stopped then playing, three 3 s samples. Frame interrupt share 24.1 % with and without SEQ installed and the window closed (evidence/cpu-price.json); converted with a 362.8 us frame to 87.5 us longest frame-interrupt share and CPU meter 36.2 % (63.8 % idle) on both runs, so the comparison adds 0 us and 0 idle points."
"method": "Hardware, 27 November 2026, development twin 43ac2465, package 5c88a76b, MKII over USB: npm run device:price on author's project bank A pattern 2 Part 1 stopped then playing, three 3 s samples. Frame interrupt share 24.1 % with and without SEQ installed and the window closed (evidence/cpu-price.json); converted with a 362.8 us frame to 87.5 us longest frame-interrupt share and CPU meter 36.2 % (63.8 % idle) on both runs, so the comparison adds 0 us and 0 idle points. Remains the 0.1.0-experimental frame-interrupt comparison: this tip does not add a frame hook; unit remeasure of destinations is still open."
},
"stress": {
"floodMessagesPerSecond": 1000,
Expand Down
Loading
Loading