Skip to content

Improvement: Digitone mk1 cumulative base draft (Modwerk base 3.0) - #2381

Draft
repeat98 wants to merge 4 commits into
base/digitakt-nextfrom
base/digitone-next
Draft

repeat98 wants to merge 4 commits into
base/digitakt-nextfrom
base/digitone-next

Conversation

@repeat98

Copy link
Copy Markdown
Owner

What this is: Modwerk's own base for the Digitone mk1 (OS 1.43 and 1.44), the whole Digitone interface 2.2: 12 events, 5 tables, 4 exports and the Mod Menu. It's built on the same Modwerk core as the Digitakt base, so this draft targets base/digitakt-next (#2378) and moves to main once that lands.

  • Works (software): with the stock OS, KitBank links on the base on 1.44. Today it fails on core 5.4, because both patch the same two places, and builds fall back to an older core. The base links on its own on 1.43, where no module ships. Both bases rebuild byte-identical from source (npm run elemod:base -- digitone|digitakt). The host C tests (with AddressSanitizer and UBSan), the elekloader, catalog and device tests, modules:check and elekloader:check pass.
  • Not tested: nothing has run on a Digitone or in an emulator. Still to confirm: boot, every hook, the parameter slots, page placement, the Mod Menu, project save/load/new with KitBank, MIDI CC, the key LEDs, and audio (and on a Digitone Keys).
  • Musically: nothing changes yet. Site builds don't use the base in this PR.
  • Who acts: a tester with a Digitone mk1 (and ideally a Keys) runs it on 1.43 and 1.44. Then the owner decides when site builds switch.
  • Next: the beta-only switch for the Digitakt and Digitone bases, then the hook bus shared by the Digitakt II, Rytm and Model:Cycles bases.
Details
  • sdk/machines/digitone/base/: base.json (90 sites per OS: addresses, lengths and SHA-256 only), sites.s, params.c, pages.c, projdata.c, menu.c, audio.c, base.h, tests, README. Packages: sdk/imports/packages/modwerk-base-digitone/ (1.43 a06626e4, 1.44 532ae3d0). GPL-3.0-or-later.
  • Project save and new project are hooked at their 5 + 3 call sites, never at the routine entries (0x4000eb10, 0x4001570e), so KitBank's sites stay free. A test asserts this.
  • Project data: one shared list at file+0x1c that keeps other modules' records, reads 0x20 lists on load, and writes nothing while no module uses core_projdata.
  • 3 parameter slots (ids 182-184); the stock table is moved and 58 range checks are raised. Module memory is 128 KiB (base 3.0). machine.json's budget now says so, with a note that the catalogue cores still take more while builds use them.
  • ev_render_out stays at the reference site, with EMAC saved and restored around handlers.
  • digi:link-all now links a given core on its own when no module ships for that OS.
  • Open questions: the Mod Menu's colours and text metrics; the order and format of USB words 10-11 in exclusive audio mode; whether to save into a header someone else holds (the base doesn't, as KitBank doesn't); EMAC around ev_voice_on and ev_note_queue; whether hold action 9 repeats; machine.json's sdk.core.version (left at 5.4 while builds use it).
  • Guides: the Digitone Modwerk stack section and the recipe row are updated.

🤖 Generated with Claude Code

repeat98 and others added 4 commits November 28, 2026 13:23
…and an MW_NO_RENDER_VOICES switch

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

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

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant