Skip to content

Improvement: Digitakt mk1 cumulative base draft (Modwerk base 5.0) - #2378

Draft
repeat98 wants to merge 5 commits into
mainfrom
base/digitakt-next
Draft

repeat98 wants to merge 5 commits into
mainfrom
base/digitakt-next

Conversation

@repeat98

Copy link
Copy Markdown
Owner

What this is: Modwerk's own base for the Digitakt mk1 (OS 1.53 and 1.54), the same stack the Octatrack, Digitakt II and Model:Cycles have. It's built on Modwerk's own core from October. The base also owns what Machine Pages provided (the machine pages, ev_render_voices), so STRING, Live Looper and RAM Machines build unchanged against a code-free machine-pages 2.0 package.

  • Works (software): every Digitakt module in the library links against the base, alone and in every pair, with the stock OS checks. 1.53: 11 singles and 54 pairs. 1.54: 18 singles and 151 pairs. This is the same result as the core builds use today (npm run digi:link-all, new in this PR). The base rebuilds byte-identical from source (npm run elemod:base -- digitakt). Host C tests, modules:check, elekloader:check and the build tests pass.
  • Not tested: nothing has run on a Digitakt or in an emulator. Still to confirm: boot, the DTIM0 timer, the machine menu and icons, kit save and load, STRING, RAM-R1/P1 and LOOPER rendering, the SETTINGS rows, the SRC and LFO pages, and ev_render_voices timing.
  • Musically: nothing changes yet. Site builds are byte-identical, because the base isn't switched on for visitors in this PR.
  • Who acts: a tester with a Digitakt mk1 runs the base on 1.53 and 1.54. Then the owner decides when site builds switch over.
  • Next: a beta-only switch for the base in the builder, then the Digitone mk1 base on its own draft.
Details
  • sdk/machines/digitakt/base/: base.json (59 sites: addresses, lengths and SHA-256 only), machines.s/.c, pages.s/.c, resumes.s, base.h, tests, README. GPL-3.0-or-later.
  • sdk/elemod/core: boot (DTIM0 start, fast-area copies, core_zero), the ev_render_voices hook with EMAC saved, and the render-out hook saving EMAC around its handlers (all behind MW_BASE). core_additem now stores the menu for select and change, and 0 for label and draw.
  • sdk/machines/digitakt/base-binding.json: 1.53 1dfc330b…, 1.54 0e922f15…. events.json is the hook registry. sdk/digitakt/core/interface.json adds ev_render_voices, core_machine_ui, cm_ui_v3 and cm_ui_v31, and the memory area moves to 0x47bc0000-0x47c00000.
  • The base reports core 5.0, so module memory stays 256 KiB.
  • Open questions: the return value of the knob-graphic hook when a machine draws its own knob; whether the mw_* internals stay exported; when the fa_copies loop first runs (no module has .fast code yet); and DTIM0's clock rate, which needs measuring on a unit.
  • Guides: the Modwerk stack section in sdk/machines/digitakt/README.md and the Digitakt row in docs/MACHINE_RECIPE.md are updated. What they lacked: no tool linked every Digitakt module against a core, which digi:link-all now does.

🤖 Generated with Claude Code

repeat98 and others added 5 commits November 28, 2026 11:51
…k-all)

Singles and pairs on each OS, against the core a build picks today or a
given file, on the site's own linker; --stock adds the stock-byte and
whole-instruction checks. Baseline on core 4.4 with the stock OS: 1.53
11 singles + 54 pairs, 1.54 18 + 151, all link. Digitone 1.44: kitbank
links only on 2.0a (it patches two of core 5.4's sites); the build's
fallback already takes 2.0a.

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

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>

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

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant