Skip to content

Improvement: Digitakt II cumulative base for Mixer pages, track machines and linked voices - #1999

Merged
repeat98 merged 129 commits into
mainfrom
base/digitakt-ii-next
Nov 26, 2026
Merged

repeat98 merged 129 commits into
mainfrom
base/digitakt-ii-next

Conversation

@repeat98

@repeat98 repeat98 commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

What was wrong or hard

The Digitakt II needed a shared place for modules to add Mixer pages, for track machines to coexist with the seven stock types, and for a track to play overlapping notes and chords across several tracks. This cumulative draft collects the base work for OS 1.17 and tracks the remaining unit qualification before release.

What this changes

Merged into base/digitakt-ii-next so far:

main was merged in on 25 Nov (818c65384). Base cost: 948be0c4 has 47 sites, 15,626 bytes .run and 12,664 bytes .bss, against 22 sites, 10,032 and 9,848 on main (8650bb8a). scripts/base-size.mjs covers the Octatrack only, so these figures come from base-binding.json.

Design proposals merged (documents only, no base code yet): #2146 (a shared effect slot for FX modules, core_fx, table 6) and #2180 (module filter types, core_filters, table 7).

Held back: #2138 (chords recorded across linked voices) was merged and then reverted in e18ca55eb. Its release step and unit cases are still open, so this release is the tested 948be0c4 base. It comes back by reverting e18ca55eb.

When this ships, merge with --merge, not squash: the pin record names commit d3eada36c on this branch.

How I checked it

The #1799 review ran 112 focused tests, six module-doctor tests, and verified that the base-only browser and CLI builds produced identical images. #2130 rebuilt the branch with the reviewed toolchain and matched base-binding.json (948be0c4). After the merge of main, the generators and the prepare step left no changes, the Digitakt II build tests pass and tsc -b is clean.

Tested on a unit: base 948be0c4 on Digitakt II OS 1.17 as image 27dfadf8, which is this base byte for byte with the Morpha module. The submitter recorded chords from the keys with VOICES 3-4 and knobs turned while playing, with every chord note keeping the lead's settings. Track machines ran on the earlier base a3ced45e: base-only image a4b3cab2 and test-machine image 838c1462 (stock playback, added machines on tracks 1, 9 and 16, stereo output, sample selection, pattern changes, project reload with and without the machine). The Mixer and sidechain checks in #1582 used the earlier base 0e3cbcd0 and image 93fb4d85. Records: track machines, linked voices.

Edge cases

Case Why this change makes it a risk How run Result
Stock track alongside an added machine Both use the audio dispatcher Unit playback recorded in #1799 Pass on a3ced45e. Stock SAMPLE played and the added machine played on tracks 1, 9 and 16.
Reload a project after removing its machine A saved type may be absent from the current set Unit reload with each image in #1799 Pass on a3ced45e. The installed machine persisted and the absent machine fell back to SAMPLE.
Mixer controls and saved settings Module pages share controls and persistence Unit run on the earlier #1582 image Pass on 0e3cbcd0. The destination ducked and settings survived reload and power cycling.
Chords from the keys on a linked lead Note allocation and routing in the frame interrupt Unit, 27dfadf8 (#2005) Pass
Knobs turned while chords play The per-frame copy of the lead's settings Unit, 27dfadf8 (#2005) Pass
Multiple machine modules and a machine without a player Registry slots must resolve independently Host composition tests in #1799 Pass on host. Not run on a unit because the corresponding test modules are unavailable.
MIDI chords, sequencer trigs on a lead, a stock machine as the lead, muted voices Not covered by the unit runs Not run Not tested
Changing VOICES while notes play The interrupt reads groups the menu rewrites Code review: routing pauses while the groups change Not run on a unit
USB lifecycle, sustained load and cost Playback alone cannot establish recovery or headroom Digitakt II test procedure Not run: the procedure lacks Digitakt II USB, soak and on-unit cost steps.

Still to do before release: the cases marked not run above, on 948be0c4 or its successor, and the guide figures on this branch, which are out of date (sdk/machines/digitakt-ii/README.md gives 10,448 / 9,884 and elekloader/README.md gives 22 sites).

Guides: #1582 describes the shared Mixer and audio-frame contracts. #1799 updates the machine SDK guide and base notes for registered track machines and their build path. #2005 adds VOICES.md and the knob words in MACHINES.md.

…xer base

The base now starts from main's 8650bb8a (kit data kept out of the project archive) with the Mixer and audio-frame additions: 0e3cbcd0, the same in two builds with the reviewed toolchain.
…d so far

Static reads of the machine descriptor lookup, the descriptor records, the parameter table and the shared page lookup. Nothing is built yet.
Static reads of OS 1.17's per-voice loop, its machine-type dispatch, the per-voice sample setter and the sample slot lookup.
…e parameter sites

Static reads of the parameter-code lookup, the SRC view's type getter and the MIDI CC and NRPN mappings.
Describes the stock machine descriptor's layout and the core_machines entry: names, five knob rows, the sample flag and the sound-chip routines.
…must be relocated

Counts the parameter table's absolute references and bound checks on OS 1.17 and plans a first test machine on stock rows.
…I base

Added machine types (7 and up) answer the machine descriptor and parameter-code lookups with the stock type they stand for. A development base adds a test machine that stands for SAMPLE. The released base is not rebuilt or recorded yet.
A test machine at type 7 shows SAMPLE's knobs on the SRC page; the unchanged base shows the default descriptor. The header name and the machine menu are still to do.
…itle

The three machine-string lookups answer from the core_machines record. Emulator: the SRC header shows the test machine's name.
…ake one

The menu's list getter appends the added types and the permission check answers them as the stock type they stand for. Emulator: the test machine appears after MIDI and selecting it sets the track's type to 7.
The sound load keeps an installed added type and still turns any other unknown type into SAMPLE. Emulator: a saved project reloads with the test machine; without the hook it reloads as SAMPLE.
Names the voice-loop site, the dispatcher's job, how machine packages carry their sound-chip code and what the SHARC builder must learn. What is left to trace before building it is listed.
Coupled emulator trace of one stock SAMPLE voice: the type dispatch only sets a voice up, a separate render pass picks the renderer without looking at the type, each voice writes 32 samples to its own slot of a shared buffer, and a playing voice costs about 3,500 instructions per block. Notes the registers the dispatcher must keep and the second site an added machine's render needs.
Coupled emulator runs: the base leaves normal playback byte-identical; an added type arrives at the sound chip as SAMPLE and plays its sample; a first setup detour broke the voice by using a register the stock code still needs. The next step is a distinct value for added types in the DSP frame.
The ColdFire sends the raw type; the sound chip looks up a per-type selector in a seven-entry table. Added types need a longer table and a render hook that reads the raw type.
The forced-type run skipped the setter, so the sound chip never saw type 7. Chosen through the menu, the test machine plays at the same level but through the stock path the selector word after the table names; record the table's contents.
A copied, longer selector table leaves stock playback byte-identical and does not change the test machine either, so the test machine's small difference from SAMPLE comes from elsewhere.
…the machine selector table

Dt2RenderPlan gains a list of base-owned sites; planDt2MachineSelectors copies the stock selector table to free L2 with one word per added machine and points the lookup at it; combineDt2Plans merges plan fragments. Unit tests cover what needs no firmware; a local build from OS 1.17 verifies and matches the emulator-tested image byte for byte.
Claptom-music and others added 3 commits November 24, 2026 23:39
… live notes fill from the lead

On a unit (11fa7318, the pattern running) recorded chord notes on voice tracks played louder, unfiltered and without
envelope, and of four linked tracks only 1 and 3 recorded. Pointing a voice step's note record at the lead's sound
was not enough: in the emulator a voice track's own note played 9 dB over the lead's and held flat, still so with
the kit sound copied, and like the lead (level and decay) only with the pattern track's TRIG defaults copied too
(+0x480..+0x48f, read by the note record's constructor). Voice tracks now copy the lead's kit sound and those track
settings when linking and one voice a frame. Notes from the keys and MIDI fill from the lead whatever the pattern
plays there; the lead's pattern notes play on the lead, or on a free voice track with no steps of its own. The
released linked-voices changelog entry is restored; the recording gets its own entry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…voice's sound a sixth at a time

On a unit (f83435c3, the pattern running) recorded chords sounded like the lead, but some linked tracks recorded
nothing, and page changes on a linked track lagged. The live-record routine skipped a note the group already held,
which is also a note the frame had played before the routine saw it: the frame now marks such a note on the track it
chose, and the routine records it there. The idle copy compares a sixth of a voice's sound a frame, not all of it,
and writes a voice's targets only where they differ; the lag's cause is not confirmed. Emulator: the project's
pattern and the default note as before; two taps on a linked lead ring on two tracks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The author reported on a unit, with the pattern running and VOICES 3-4: chords from the keys put a note on every
linked track and sound like the lead, a recorded note on a voice track edits like any step, page changes on a linked
track no longer lag, timing is fine with quantize on, and live chords, knobs and Morpha's FOLD play as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claptom-music and others added 2 commits November 25, 2026 00:02
Step 2 of the release #2130 made: the pin record names 948be0c4 at #2130's merge commit, npm run elekloader:update
--overlay vendored it, and the a3ced45e package left the imports and the vendored catalog, as 5c6c1ce did.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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 repeat98 changed the title Improvement: Digitakt II cumulative base for Mixer pages and track machines Improvement: Digitakt II cumulative base for Mixer pages, track machines and linked voices Nov 25, 2026
repeat98 added a commit that referenced this pull request Nov 25, 2026
…ng the part a branch adds (#2147)

A hook claim on digitakt-ii/tables/4-6 now covers a branch that adds tables 4-5, so #1999 no longer fails as unclaimed. pr:ready renews a covering run whole.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
repeat98 and others added 2 commits November 25, 2026 08:35
…e_filters)

Design chosen with the developer on 25 November 2026. Documentation only; base code follows the owner's OK.
Claptom-music and others added 2 commits November 25, 2026 18:07
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>
…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 and others added 7 commits November 26, 2026 12:47
…, ten pages first

The owner's three points on #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 #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>
Proposal: Digitakt II base: a shared effect slot for FX modules (core_fx)
…e filter-id claim

The owner's three points on #2180 (26 Nov): a machine or filter counts as its cost over
the stock work it replaces at the voices it can hold (as #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
Proposal: Digitakt II base: module filter types on the FLTR page (core_filters)
Improvement: Digitakt II base: chords recorded across linked voices
This reverts merge 82085b9. #2138 still needs its release step (binding,
package, pin) and the unit cases on the PR. The cumulative base ships without it as the
released 948be0c4. To bring it back, revert this commit on base/digitakt-ii-next (a
re-merge of the branch would not re-apply it).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@repeat98
repeat98 marked this pull request as ready for review November 26, 2026 12:27
@repeat98 repeat98 closed this Nov 26, 2026
@repeat98 repeat98 reopened this Nov 26, 2026
@repeat98
repeat98 merged commit 70e5378 into main Nov 26, 2026
27 of 30 checks passed
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.

2 participants