Skip to content

Digitone II base (cumulative): the Digitakt II base for OS 1.12 - #1767

Draft
repeat98 wants to merge 57 commits into
mainfrom
base/digitone-ii-next
Draft

repeat98 wants to merge 57 commits into
mainfrom
base/digitone-ii-next

Conversation

@repeat98

@repeat98 repeat98 commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

The cumulative Digitone II base pull request (Change a base): base changes for the Digitone II collect here, and the owner decides when it ships. It stays a draft until the base has been tested extensively on a unit. Open a Digitone II base pull request against base/digitone-ii-next (gh pr create --base base/digitone-ii-next); it is merged in with your authorship.

🤖 Generated with Claude Code

Merged main ef6099b0a into this cumulative draft on 21 November. Local readiness passed on 07fd2164c. The unit evidence above is for base 7a60d82e. #1812 is now integrated at 9a5f0a187. It adds the beta-only browser build for the plain base and migration 0102 for usage counts. Download approval stays off. The integrated head awaits extensive unit testing.

Edge cases

Case Why this change makes it a risk How run Result
Plain base on the beta machine page The page must select the qualified base identity Local Chrome build recorded in #1812 Pass. The build verified against the plain base.
Fitted update at the device size limit An oversized image can stop near the end of transfer Device transfer recorded in #1819 and #1822 Pass on the fitted browser build.
Existing usage rows and a Digitone II build Migration 0102 widens the device constraint Migration and service tests recorded in #1812 Pass. Existing rows survived and the new device was counted.
Extensive unit testing of the cumulative head Earlier device runs cover individual builds Integrated build after #1812 Not run: the owner still needs to qualify this head on a Digitone II.

prodbysmolec and others added 13 commits November 18, 2026 21:09
ele3.ts gets ELE3_DEVICES['digitone-ii'] (the Digitakt II's platform:
main section 3 at 0x40000400, staged at 0x40400000, flash 0x80000 to
0x380000, HMAC seal; SysEx id 0x15) as an ElemodMachine, so DigiMachine
and the app's firmware flow are unchanged. elemod.ts gets LINK_DEVICES
'digitone-mk2' for OS 1.12 with the 256 KB DDR area at 0x47F00000 and
no .fast area, the values of elekloader's device profile and the OS
research; a test ties them to the profile, the research and the
Digitakt II's container.

core-dn2 carries its SHARC bridge in a 'sharc' field. The linker now
takes it on the Digitone II (its ABI only) and refuses a set in which
another mod brings DSP code, since it writes the main OS alone.

On the owner's stock 1.12, linkMods links core-dn2 0.3 (toonst's fork
at 3d7c2e3) and 0.4 (elekloader 0.11.0's release, sha256 103af58b),
each alone, with hello-marker-dn2, with hooks-check-dn2 and with both,
to the main OS image elekloader.patch writes, byte for byte: eight
sets. Two of the 0.3 images are the builds that ran on a unit (#1743).

The pinned Elekloader kit the site and machine:base build through
does not know the Digitone II; the goal page says so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ield, and compare containers without unused names

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The pinned Elekloader kit has no Digitone II, and stays unchanged (owner, 19 November 2026). The device's facts live in
sdk/machines/digitone-ii/elekloader/device.json; npm run machine:base registers it with the kit's Python SDK, and the
site registers it with the browser kit in the page and in its own builder worker. Tests tie it to machine.json and to
Modwerk's linker and container profiles.

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

sdk/machines/digitone-ii/elekloader/base.json reuses the Digitakt II base's core-dt2 1.1 source with the Digitone II's
device, 24 addresses and 14 sites (core-dn2 0.3's, toonst's fork at 3d7c2e3), as the Rytm MKI reuses the MKII's, and
copies of mod.json (OS 1.12, no .fast area), store.s (the kit loader's registers) and store.c (the kit room). One plain
variant; pending its run on a unit, so no binding yet. A test pins what each copy changes.

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

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

The Digitone II refuses an upgrade over about 2 MiB decoded, and the kit's greedy packer leaves its main OS larger
than that allows. pack.ts gains packOptimal: an optimal parse of the same bit format that also uses the offset-reuse
code, which Elektron's own packer uses and the boot code depacks; pack() is unchanged, so every recorded vector holds.
fit-update.ts repacks a build past the device's limit (device.json's update_max), writes and seals it with the kit's
own writer and verifies it, and refuses one that still does not fit.

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

Only a device with a known limit (the Digitone II) is touched; every other machine's result is returned as the kit
built it.

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

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The first change on the cumulative Digitone II base draft. Conflicts in the recipe table, the goal page and test_machine_base.py taken from #1760, whose rows are the newer ones.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
prodbysmolec and others added 3 commits November 19, 2026 09:39
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Improvement: fit Elektron upgrades to the unit's limit (optimal packer, Digitone II)
@prodbysmolec

prodbysmolec commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

Long run on a unit, 19 November 2026: my Digitone II on OS 1.12 ran base 7a60d82e with hello-marker-dn2 and hooks-check-dn2 (DN2_1.12_modwerk-base_hooks-marker_v2.syx, 87c4dbb3…, packed by Elekloader 0.11; from the base record) for about five hours spread over a working day, played with MIDI notes in from an external sequencer. Nothing unusual: no clicks, hangs, missed notes or lost settings.

The development link (#1763, now ready, aimed at this branch) also answered on the same unit: ident and mem over USB, and out-of-range requests refused (record on its branch).

prodbysmolec and others added 2 commits November 19, 2026 20:48
…ts package

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
prodbysmolec and others added 8 commits November 19, 2026 20:50
The update and vendor scripts know the Digitone II (its odd-jump check uses the device Modwerk's builder carries),
the catalog serves the base package, and machine-build.ts builds on its plain variant.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The machine joins the site's builder machines as the Rytm's core build preview did, beta only (hasBetaUi), with an
empty module folder and an SDK profile from the base that ran on a unit (owner, board, 19 November 2026). Downloads
stay off; the kit-side tests register the carried device as the site's worker does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The kit's build result names its device ("Digitone II"), so fitBuilt passed the site's build through unpacked: the
unit then refused it at about 98 %, seen on a unit from the page. It now looks the limit up by name too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
prodbysmolec and others added 9 commits November 22, 2026 19:00
…chine/digitone-ii-site-base

# Conflicts:
#	src/components/UsbAudioConfigurator.test.ts
Machine: build on the Digitone II base from the site (binding, catalog, builder)
…es a preview

Spreads the voices of a chord across the stereo field and their filter
frequencies a little apart, from two rows in SETTINGS > PERSONALIZE, through
the base's ev_frame_params (per voice on the Digitone II). Ran on a unit
from RAM. machine.json: core and mods done, status preview.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…count the Digitone II

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
repeat98 and others added 5 commits November 23, 2026 09:15
What a module developer needs on the Digitone II, from unit reads on OS 1.12:
the base's hooks, the voice-to-track table and gate mask, the frame budget
measured in ev_frame_params, key and encoder events, how stock builds its
parameter pages (records, descriptors, a page key's sub-page vector) and the
stock page grid. ev_frame_params's contract now says it hands over voice slots.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Docs: a Digitone II SDK guide (voices, frame budget, panel input, pages)
…either order

0102 (Digitone II, this draft) and 0104 (Model:Cycles, #2125) each rebuilt usage_device_daily with a closed machine list that left out the other machine. Deploy applies the later-numbered file even after the earlier one, so whichever landed second would fail on the other machine's rows or drop it from the list. 0102 now lists both, and a test checks that the latest rebuild of the table accepts every machine in USAGE_DEVICES.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
durchgemacht added a commit to durchgemacht/modwerk that referenced this pull request Nov 25, 2026
0102 on the Digitone II base draft (repeat98#1767) rebuilds usage_device_daily the
same way. With both machines in both lists the two rebuilds apply in either
order without dropping or refusing the other machine's rows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
repeat98 and others added 3 commits November 26, 2026 07:58
Model:Cycles (#2077, #2125, #2126) landed on main beside the Digitone II:
both machines kept in every device list; the core build preview uses
main beta-only gate (coreBuildPreviewOpen) for both; MACHINE_RECIPE keeps
this branch Digitone II row with main Model:Cycles and Analog Keys rows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The merge of main into base/digitone-ii-next (1816db9) put the hook behind
betaUi ||, which lint refuses (react-hooks/rules-of-hooks).

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

repeat98 commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner Author

@prodbysmolec, here is one prompt to take the Digitone II to full parity with the Octatrack's stack. Paste it into your coding agent in a fresh session on current main. It holds my three decisions, so your agent doesn't need to wait for me on them. Anything outside them comes back to me.

Take the Digitone II to full parity with the Octatrack's stack: the seven pieces on its machine page (base, USB link, setup and updates over USB, loading without a reflash, status page, diagnostics, device tools), all done for musicians, not only on development bases. Work in the order below, one pull request per piece, each with its unit record.

Read first: AGENTS.md, docs/MACHINE_RECIPE.md, sdk/machines/digitone-ii/{GOAL.md,LINK.md,LOADER.md}, docs/OCTATRACK_TWO_SLOT_BASE.md, and the open PRs #1767, #1763, #1817, #1820, #1821, #1842, #1819, #2003 and #1846 with their latest owner comments.

The owner's decisions (fixed, don't reopen):
1. The release base gets the read-only link and the loader: ident, screen, diag/log, and upload with the runtime loader. Remote keys and encoders, RAM boot, freeze and bootdiag stay in development bases only. ident in the release base also reports the base's build identity and the live module set, so the page can "read what is installed".
2. Keep = reflash with the set. A trial runs from RAM as now. Keep makes the page build the base with that module set and send it through the stock OS upgrade, which needs a person's YES on the unit. Undo and a power cycle bring back the flashed set.
3. Base updates use a two-slot base: two slots, at most one restart, and stock recovery (FUNC + TRIG 4, the stock .syx over MIDI DIN) always stays the floor. Start with research. Open a Docs PR with the Digitone II's flash layout, where the second slot fits, how boot chooses a slot and how a failed slot falls back. Wait for the owner's OK on that proposal before writing any flash code. Once two slots exist, Keep writes the inactive slot instead of going through the stock upgrade.

Order:
0. Finish the open stack. Run the unit session from the checklist on #1763 (issuecomment-7188423077) on the dev package of #1842's head. Put its record with the package's SHA-256 on each PR, refresh the descriptions and mark them ready. The owner merges #1763 → #1817 → #1820 → #1821 → #1842 into base/digitone-ii-next, then #2003 and #1819. Merge, never rebase.
1. Base (piece 1). Run the release build of #1767 on two units, with both SHA-256s in the record. Then the owner turns downloads on and #1767 goes to main. Voice Spread then moves to main as its own PR.
1b. Agree the shared design with karigardarsson (see Rules, "One implementation for both machines") before writing any new link, loader or page code.
2. Release link (piece 2). Move the read-only requests and the loader from base.json's `dev` into the release base, following decision 1. On the unit: MIDI, audio and Overbridge keep working in every USB mode while the link runs. A reply never blocks the UI or the sequencer when the host stops reading. Keys still refused in a release build.
3. Machine page (pieces 3–5), beta-only (hasBetaUi), modelled on the Octatrack's unit pages (src/components/OctatrackHub.tsx). Use the existing site client (src/engine/elektron/dn2-link.ts); today only tests use it. The page shows the connected unit's base, modules and load. The guided first install goes in the base dialog frame (#1819, behind its flag). Try, Keep and Undo follow decision 2.
4. Diagnostics (piece 6), as the Octatrack's: load meters, self-test results and the unit's log, shared only with consent, through the same records and parser (device-log.ts).
5. Device tools (piece 7). Bring #1846 up to the merged stack and the release link, then mark it ready.
6. Two-slot updates (piece 3, second half), following decision 3 and only after the owner's OK.

Rules:
- Each PR updates GOAL.md's table, the recipe's table and machine.json's `stack`.
- Only what you saw on a unit counts, named by the image's SHA-256. Firmware and built images stay on your computer.
- One implementation for both machines. karigardarsson is bringing the same link and loader to the Digitakt II, and the two of you build ONE thing, not two ports. The Digitone II base is already built from the Digitakt II's source (base.json `source`), so link.c, diag.c, the loader glue, the site's link client (dn2-link.ts → one Elektron link client with a per-machine table), the page and the MCP tools live in shared files. Each machine adds only its addresses, sites and command table in its recipe or a thin per-machine file. Before step 2, write the split down with him in one shared Docs PR: which files are shared, which are per machine, who owns which piece. Claim the pieces on the board and keep to that split. Every change to a shared file builds and passes the checks for BOTH machines (run the Digitakt II's too). Never push to each other's branches; review each other's PRs on shared files instead.
- Stop and ask the owner before: anything that writes the flash outside the stock upgrade path, anything that could get in the way of stock recovery, or any decision not covered above.

@repeat98

Copy link
Copy Markdown
Owner Author

@prodbysmolec @karigardarsson: the two of you are building the same pieces, the USB link, the runtime loader and the unit pages, Lukas for the Digitone II and Kari for the Digitakt II. Please build them once, together, not as two ports. Both machines share one base (the Digitone II's is built from the Digitakt II's source), so the link, the diagnostics log, the loader glue, the site's link client, the page and the MCP tools go into shared files. Each machine adds only its addresses and command table.

Next step for both of you: before new code, open one shared Docs PR that sets out which files are shared and which are per machine, and who takes which piece. Claim those pieces on the board. Every change to a shared file has to pass both machines' checks. Review each other's PRs; don't push to each other's branches. The handover prompt above has this as a rule.

…pread

Voice Spread: the first Digitone II module, and the Digitone II becomes a preview
@karigardarsson

Copy link
Copy Markdown
Contributor

Hey @prodbysmolec, nice to meet you :)

I've put together a proposed design for the shared DT2/DN2 link and runtime, based on your existing DN2 work and my DT2 research.

I'd love to hear your thoughts and figure out how we can split the work between us. Looking forward to working with you.

@prodbysmolec

Copy link
Copy Markdown
Collaborator

@karigardarsson thanks, and welcome! I've answered on your design PR #2356: the file split and the leads work for me, with a few notes on the extraction order, the TX contract and the identity carrier. Let's keep the discussion there.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants