Repository navigation
Improvement: Digitakt II cumulative base for Mixer pages, track machines and linked voices - #1999
Merged
Merged
Conversation
…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.
… 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>
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>
Digitakt II base 948be0c4: pin for the browser builder (release step 2)
…e_filters) Design chosen with the developer on 25 November 2026. Documentation only; base code follows the owner's OK.
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.
…, 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-nextso far:core_mixer_pages, table 4) and audio-frame handling (ev_audio_frame, event 10).core_machines, table 5), kit save and reload, SRC controls and a common build path for the browser and CLI. The development machine used in its tests is not part of this submission.T1 VOICES…T16 VOICESin SETTINGS (1 = stock, up to 8) let a lead track send each new note to the next free track of its group, with the lead's settings copied per frame. Design and records:sdk/machines/digitakt-ii/elekloader/modwerk/VOICES.md.base-binding.json, the package, the core image size inmachine.json).sdk/imports/elekloader-modwerk-base-digitakt-ii-2026-11-19.jsonatd3eada36c), replacing the earliera3ced45epackage.mainwas merged in on 25 Nov (818c65384). Base cost: 948be0c4 has 47 sites, 15,626 bytes.runand 12,664 bytes.bss, against 22 sites, 10,032 and 9,848 onmain(8650bb8a).scripts/base-size.mjscovers the Octatrack only, so these figures come frombase-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 revertinge18ca55eb.When this ships, merge with
--merge, not squash: the pin record names commitd3eada36con 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 ofmain, the generators and the prepare step left no changes, the Digitakt II build tests pass andtsc -bis 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 basea3ced45e: base-only imagea4b3cab2and test-machine image838c1462(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 base0e3cbcd0and image93fb4d85. Records: track machines, linked voices.Edge cases
a3ced45e. Stock SAMPLE played and the added machine played on tracks 1, 9 and 16.a3ced45e. The installed machine persisted and the absent machine fell back to SAMPLE.0e3cbcd0. The destination ducked and settings survived reload and power cycling.27dfadf8(#2005)27dfadf8(#2005)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.mdgives 10,448 / 9,884 andelekloader/README.mdgives 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.mdand the knob words inMACHINES.md.