Skip to content

Proposal: Digitakt II base: module filter types on the FLTR page (core_filters) - #2180

Merged
repeat98 merged 4 commits into
repeat98:base/digitakt-ii-nextfrom
Claptom-music:base/dt2-filter-types
Nov 26, 2026
Merged

repeat98 merged 4 commits into
repeat98:base/digitakt-ii-nextfrom
Claptom-music:base/dt2-filter-types

Conversation

@Claptom-music

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

Copy link
Copy Markdown
Contributor

What was wrong or hard

Filter modules need to replace the filter of the voices that use them. On the Digitakt II that filter runs per voice on the sound chip, a voice site no module may patch, and several filter modules must sit side by side. The base has no filter hook yet.

What this proposes

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

  • Module filter types in the stock list. Each filter module adds one type after the six stock ones, under its own name, picked like a stock type. It shows its own names on the three type knobs (slots 35-37) over the rows of the stock type it stands for, as core_machines does for track machines on slots 25-34. Saved with the kit; without the module, and on the official OS, a sound loads with the stock default filter type (type 0). Stock types are unchanged.
  • Table core_filters (proposed digitakt-ii/tables/7, room 4): struct dt2_filter {magic, fixed type 7-10 claimed as filter-id (a board kind the base code adds; machine-id claims by hand until then), stands_for, names, three knob names}.
  • Sound-chip site: the per-voice filter dispatch in pass 3 of the voice loop. OS 1.17 PC 0x1c6c13 (loader byte 0x2838d826), one 48-bit instruction, SHA-256 2321e702bdf2ccdca5e0ca716efa1417ceda63e6e956bb2f2ef6eee3866e39af: a type of 7 or more jumps past every filter. The base points only that branch at a fixed dispatcher with four slots (L2 0x200c4000-0x200c4800), so voices on stock filters never enter base code.
  • Stock movement: a module filter reads the stock's per-voice values for its stand-in (cutoff after envelope, LFO and key tracking; second and third knob), so ENV, LFO, locks and velocity sweep it like a stock filter. No frame-tail words, so the effect slot's mailbox and the machine wire are untouched.
  • Cost: a filter replaces the stock one for its voices and is judged against the stock filter's cost per voice.

Chosen with me as the developer on 25 November 2026: types in the stock list (not one MOD type with a chooser knob), stock movement (not raw knob values over the frame tail), and one filter type per module (the first two will be a vowel/formant filter and a deep notch/ringing peak, as separate modules).

Fits beside the effect slot (#2146): different site (0x1c18a6 against 0x1c6c13), table 6 against 7, separate L2 ranges, no shared tail words.

How I checked it

  • Static reads of the owner's OS 1.17: the parameter table's six filter-type groups and their slots, the ColdFire per-type lookup 0x400c89c6 (six entries), and the sound chip's pass 3 dispatch and case table. Listed in the document, addresses and hashes only.
  • Board and open pull requests: no Digitakt II filter claim or PR. draadpiraat's Filters (Filters 0.1.0-experimental: DJ and band-pass filter types on the Digitakt I's FLTR page #1445) is the original Digitakt's; nothing taken from it. The board's base-table claim now reads digitakt-ii/tables/4-7.
  • Relative links in the two changed files resolve.
  • Not run: the emulator (no base code yet), npm run check, npm run pr:ready (it merges main into a branch that targets base/digitakt-ii-next).

Still to confirm before code (listed in the document): that a module type reaches the sound chip as itself, where the stand-in's cooked per-voice values live, the live registers at the site, and the remaining ColdFire sites. Then builder tests, an emulator proof (stock types byte-identical, a -6 dB test filter on T1 only) and a unit test image.

Guides

The Digitakt II guide did not say where a filter module goes. It now points filter modules to this proposal (sdk/machines/digitakt-ii/README.md). Nothing else was wrong.

🤖 Generated with Claude Code

…e_filters)

Design chosen with the developer on 25 November 2026. Documentation only; base code follows the owner's OK.
…ip type table

The official OS loads an unknown filter type as the stock default (0x400db48e); fallback is the stock default, not the stand-in; one budget for machines, filters and effects; type numbers from 7 with no fixed end. Sound chip translates the raw track filter type through an unbounded table at DM 0x2567a0 (relocated by the base). First emulator run did not change the type through FUNC+FLTR.
@repeat98

Copy link
Copy Markdown
Owner

Thanks, this is a careful read of the filter path, and it fits beside the effect slot: a different site, table 7, its own L2 range and no tail words. The kit-load check at 0x400db48e answering the official-OS question from the stock code itself is good to have.

Before the base code:

  1. The budget's arithmetic. "Machines and filters at 32 voices each, minus nothing for the stock work a filter replaces" against 60,000 refuses Granula on its own: at about 17,000 a voice (Proposal: Digitakt II base: a shared effect slot for FX modules (core_fx) #2146's figure), 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, the stand-in's filter case), at the voices it can really hold. Write it the same way in Proposal: Digitakt II base: a shared effect slot for FX modules (core_fx) #2146, which still leaves the machines' share open.
  2. What a sound loads as without the module. "What the musician gets" and acceptance step 2 say type 0, the stock default. Acceptance step 3 and the description still say "loads as its stand-in". Please make all three say the same thing. Type 0 is what the stock kit-load check gives you.
  3. The filter-id claim. The board has no such kind yet (KINDS in scripts/agent-board.mjs: module, hook, migration, dsp-region, machine-id, issue), and pr:ready only detects new machine:<id> claims from manifests. Kits save the type number, so it needs the same protection as a machine id. Please say in the proposal how a module claims filter:<type>: a new board kind added with the base code, with pr:ready detecting it, or an existing kind. Until then, claim 7 and 8 for the first two filters by hand under the kind you choose.

repeat98 added a commit to Claptom-music/modwerk that referenced this pull request Nov 26, 2026
…, 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 and others added 2 commits November 26, 2026 13:06
…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>
…t2-filter-2180

# Conflicts:
#	sdk/machines/digitakt-ii/README.md
@repeat98
repeat98 marked this pull request as ready for review November 26, 2026 12:07
@repeat98

Copy link
Copy Markdown
Owner

I settled the three points in the proposal myself and am merging it next to the effect slot (#2146). Please open the base code as a new pull request into base/digitakt-ii-next.

  • One budget, the same rule as Proposal: Digitakt II base: a shared effect slot for FX modules (core_fx) #2146. A machine or a filter counts as its cost over the stock work it replaces (a playing SAMPLE voice for a machine, the stand-in's filter case for a filter), at the voices it can really hold, plus every effect. There's no flat 32-voice count any more.
  • Without the module, type 0. Acceptance step 3 and the description now say what "What the musician gets" and step 2 already said: a sound loads with the stock default filter type (type 0).
  • The filter-id claim. The base code adds filter-id to the board's KINDS, and pr:ready detects a package's new filter:<type> as it does machine:<id>. Until then, please claim types 7 and 8 by hand as machine-id claims named digitakt-ii/filter-7 and digitakt-ii/filter-8. Say if you'd rather use another kind.

The README now names both proposals, each as approved.

@repeat98
repeat98 merged commit 1e89773 into repeat98:base/digitakt-ii-next Nov 26, 2026
2 of 3 checks passed
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