Skip to content

Proposal: Digitakt II base: a shared effect slot for FX modules (core_fx) - #2146

Merged
repeat98 merged 3 commits into
repeat98:base/digitakt-ii-nextfrom
Claptom-music:base/dt2-fx-slot
Nov 26, 2026
Merged

repeat98 merged 3 commits into
repeat98:base/digitakt-ii-nextfrom
Claptom-music:base/dt2-fx-slot

Conversation

@Claptom-music

@Claptom-music Claptom-music commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

What was wrong or hard

Effect modules (delay, reverb, drive, chorus) need to process audio on the Digitakt II's sound chip, and any set of them must run side by side. The only way in today is the pre-send render site. Sidechain Comp takes it through a private path (build.dt2_sharc version 1 and the per-set dispatcher planDt2Render), so a second effect would collide with it. The machine guide says the core "exposes no audio-render hook yet".

What this proposes

A hook proposal for the cumulative draft (#1999), per Propose a hook on the Digitakt, Digitone or Digitakt II. It is documentation only, with no base code yet. Full text: docs/verification/2026-11-25-digitakt-ii-fx-slot.md.

  • Track inserts at the proven pre-send site (0x1c18a6, SHA-256 guard as in the 10 and 14 November records). Effects work on the tracks the musician lights, after each track's own sound and before the stock delay, reverb and chorus sends. The stock sends and the master compressor are unchanged.
  • Table core_fx (proposed digitakt-ii/tables/6, room 8): one record per effect with its tag, order band, flags, name and up to eight values. The base's fixed sound-chip dispatcher calls 8 listen slots, then 8 process slots, in order bands (tone and drive, then time effects, then dynamics). It is the same code for every set: the builder only fills slots, as for the machine players and frame receivers.
  • One shared FX page in the Mixer after COMP, drawn by the base: choose an effect, light its tracks with TRIG, set its values with knobs A-H. Settings are saved with the project in a base archive block, matched by each effect's tag, so adding or removing an effect keeps the others' settings.
  • A settings line: the transfer tail's words 0-15 become a shared mailbox (core_fx_set), replacing Sidechain's own words 0-10. The machine wire's tempo words are sent while any machine or effect is registered.
  • Cost budget: each package declares its worst case per block. Stock at its busiest in the emulator (all sixteen tracks playing, every track's FX knobs up) is 342,016 busy instructions a block. So the builder refuses a set over 60,000, which keeps that case under 85% of the block at the high bound of our own provisional cycle factor (1.13 to 1.41 times the emulator's count, not yet measured). Machine players and filters share the budget, each counted as its cost over the stock work it replaces. The figure is set again from a cycle count on a unit.
  • Frame tail and event 10: words 0-15 are the only free tail words, so they become one mailbox, and ev_audio_frame subscribers write no transfer word (no library module does today).
  • Mixer room: the FX page is the base's own page id 37, outside core_mixer_pages' four entries. Each effect's memory is its own L2 dsp-region. The base keeps 0x200c3000-0x200c4000.
  • Sidechain Comp (digitakt-ii/dt2-sidechain, mine, not in the library) moves onto the slot in the same base change: a listen routine, a process routine in the dynamics band, and core_fx_set. Its SC and ENV pages stay. planDt2Render and the version 1 path then go.

Chosen with me as the developer on 25 November 2026: track inserts (a send/return waits for a proven post-send site), effects before the duck, one shared FX page rather than a page per effect, and settings per project rather than per kit (kit data has 143 bytes for all modules).

Not covered: a send/return, a master-output site (the claimed digitakt-ii/retro-record final-output EQ would need one), a shared delay-memory pool in external RAM, and a base filter-type hook. Each would be its own proposal.

How I checked it

  • Read the site, guard and buffer layout from the 10 and 14 November records and src/engine/elektron/dt2-sharc.ts, the base's L2 map from DT2_BASE_SHARC, and the L2 ranges Granula, Morpha and Sidechain use (no overlap with 0x200c3000-0x200c4000).
  • Board and open pull requests: no claim on a Digitakt II effect, render or send slot. tables/6 is claimed for this proposal.
  • Emulator (25 November), stock OS 1.17, coupled sharc-live, busy instructions per block, max: one note 212,992; all sixteen TRIG keys 321,536; with T1's FX knobs up 324,608; with every track's FX knobs up 342,016. No missed blocks. The table is in the proposal.
  • npm run check: one failure, digi-build.test.ts "plans the released Digitakt II mods on the pinned Modwerk base". base-binding.json on base/digitakt-ii-next names 948be0c4 while the vendored catalogue does not carry it yet (the pin is Digitakt II base 948be0c4: pin for the browser builder (release step 2) #2143). This change touches neither file.
  • Not run: npm run pr:ready, which merges main into a branch that targets base/digitakt-ii-next (as on Digitakt II base 948be0c4: release of linked voices and full-resolution knobs (step 1) #2130).

Pending before this could be marked ready (after the owner's OK on the design): the base code, builder tests with the owner's OS, an emulator run (empty slot byte-identical to stock, a test effect at -6.02 dB on one track only, Sidechain matching its 18 November figures), and a test image run on a Digitakt II.

Guides

The Digitakt II guide said the core has no audio-render hook. It now points effect modules to this proposal instead of the render site (sdk/machines/digitakt-ii/README.md). Nothing else was wrong.

🤖 Generated with Claude Code

Track inserts at the pre-send site, a fixed sound-chip dispatcher with
listen and process slots, one shared FX page in the Mixer, settings
saved with the project, and Sidechain Comp moved onto the slot.

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

Copy link
Copy Markdown
Owner

Thanks for writing this up as a proposal before the code. That's the order the guide asks for, and tables/6 already sits under your 4-6 claim for the cumulative draft. I'm reading it, and I'll post my answer on the design choices here. Meanwhile, here's what I couldn't work out from the text:

  • Frame-tail words. ev_audio_frame (event 10) lets each subscriber write "explicitly reserved" frame-tail words. The base would now take words 0-15 for core_fx_set, and the machine wire takes 16-66. What is left for an event-10 subscriber, and how does it reserve words? Please spell that out in the proposal, or narrow event 10's contract in the same change.
  • The budget. The 160,000-instruction cap is a quarter of a block, measured against stock with one note (about 210,000). What does stock cost at its busiest: sixteen tracks playing, all three sends and the master compressor? The cap needs to fit under that, not under one note. Please add that emulator figure next to the one-note figure, before the unit cycle count.
  • Mixer page room. Does the base's FX page use one of core_mixer_pages' four entries? Sidechain already has two (SC and ENV), so effect modules with their own page might find no room left.

Event 10 subscribers write no transfer word (words 0-15 become the one
mailbox), the budget drops to 60,000 a block after measuring stock at its
busiest in the emulator (342,016), and the FX page takes no
core_mixer_pages entry.

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

Copy link
Copy Markdown
Owner

Thanks, that answers all three. Narrowing ev_audio_frame to read-only, the FX page as the base's own page 37 outside core_mixer_pages, and the busiest-stock figure with the budget set from it are what I was after.

The design is fine with me: track inserts at the pre-send site, effects before the duck, one shared FX page, settings per project in FXS1, words 0-15 as one mailbox, and Sidechain Comp moving onto the slot in the same base change. Go ahead with the base code here.

Three things to settle in the proposal first:

  1. One budget, written the same way in both proposals. This one still leaves open whether added machine players share the 60,000, while Proposal: Digitakt II base: module filter types on the FLTR page (core_filters) #2180 says one budget per block covers machines, filters and effects, with machines and filters counted at 32 voices each and nothing subtracted. Taken literally that refuses Granula on its own: at about 17,000 a voice, 32 voices come to roughly 544,000. Please count a machine or a filter as its cost over the stock work it replaces (a playing SAMPLE voice is about 3,600, a filter its stand-in's case), at the voices it can really hold, and put the same rule in both documents.
  2. The cycle factor. Please state the 1.13 to 1.41 range as our own provisional assumption, with how you arrived at it, and drop the reference to another project's model file, here and in the description. The unit cycle count replaces it before the base ships anyway.
  3. Ten Mixer pages. The stock OS has only been seen with nine, so please put the ten-page navigation check from your emulator step first, before the rest of the FX page code. If the OS has a fixed limit there, the page needs another home, and that changes the design.

…, ten pages first

The owner's three points on repeat98#2146 (26 Nov): machine players and filters share the
slot budget, each counted as its cost over the stock work it replaces at the voices it
can hold (as repeat98#2180 should say too); the 1.13-1.41 cycle factor is our own provisional
assumption until the unit count, with no other project's model file named; the ten-page
Mixer navigation check comes first in the emulator step. README: design approved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@repeat98
repeat98 marked this pull request as ready for review November 26, 2026 11:47
@repeat98

Copy link
Copy Markdown
Owner

I settled the three points in the proposal myself and am merging it, so the design is on base/digitakt-ii-next before the code. Please open the base code as a new pull request into that branch.

  • One budget. Machine players and filters share the 60,000. Each counts as its cost over the stock work it replaces, at the voices it can really hold: a Granula voice at about 17,000 counts about 13,400 over a SAMPLE voice's 3,600, and a filter counts its cost over its stand-in's case. Proposal: Digitakt II base: module filter types on the FLTR page (core_filters) #2180 still needs the same rule, in the same words.
  • The cycle factor. 1.13 to 1.41 is now stated as our own provisional assumption, not yet measured, here and in the description, and no other project's model file is named. If you know how the range was arrived at, please add it in the code PR. The unit cycle count replaces it either way.
  • Ten Mixer pages now come first in the emulator step, before the rest of the FX page code. If the OS has a fixed limit, the FX page needs another home.

The README now says the design is approved.

@repeat98
repeat98 merged commit d0f1577 into repeat98:base/digitakt-ii-next Nov 26, 2026
2 of 3 checks passed
repeat98 added a commit to Claptom-music/modwerk that referenced this pull request Nov 26, 2026
…e filter-id claim

The owner's three points on repeat98#2180 (26 Nov): a machine or filter counts as its cost over
the stock work it replaces at the voices it can hold (as repeat98#2146 now says); acceptance step 3
loads a sound without the module as type 0 like the rest; a filter type is claimed under a
new board kind filter-id the base code adds, by hand as machine-id claims until then.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

2 participants