Skip to content

Digitakt II base 1c2c2016: chord recording back, voices' own sounds restored, with #2204 - #2477

Open
Claptom-music wants to merge 15 commits into
repeat98:base/digitakt-ii-nextfrom
Claptom-music:base/dt2-chord-recording-again
Open

Claptom-music wants to merge 15 commits into
repeat98:base/digitakt-ii-nextfrom
Claptom-music:base/dt2-chord-recording-again

Conversation

@Claptom-music

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

Copy link
Copy Markdown
Contributor

What was wrong or hard

Chord recording (#2138) was merged into base/digitakt-ii-next and then held back (e18ca55eb): it still needed its release step (binding, package, pin) and the unit cases on the pull request. Since then the tester found that voice tracks kept the lead's copied sound (and machine) after VOICES went back to 1, and #2204 fixed other linked-voices bugs in the same voices.c.

This pull request brings chord recording back with the restore fix and #2204. Its source builds 1c2c2016, byte for byte the base the tester ran on the unit. It carries no release step: the binding, the package and the pin come once, on the combined build of the next release (#2204, this, #2445 and #2446), as the owner asked on 30 November.

What this changes

  • git revert e18ca55eb: chord recording as merged in Improvement: Digitakt II base: chords recorded across linked voices #2138 (voices.c, voices-record-entry.s, the live-record site 0x40048fb2 in base.json, its changelog).
  • Own sound back (voices.c): a voice track's own kit sound and pattern-track settings (+0x480..+0x48f) are kept in memory, tagged with the kit (core_kit_on) and pattern, when it joins a group, and put back when it leaves, so VOICES back at 1 gives each track its own machine and sound again. A project load drops what was kept. A project saved while linked still saves the copies.
  • Fix: Digitakt II linked voices: VOICES row label and icon, voices keep the lead's sound and machine #2204 merged in (still open on its own): the VOICES row's icon and track label, voices that always load the lead's sound, former voices that keep the lead's machine until their own note, and the shared track level. The voices code is the combined resolution the tester ran. If Fix: Digitakt II linked voices: VOICES row label and icon, voices keep the lead's sound and machine #2204 merges first, this diff shrinks to the chord-recording part.
  • No release step. base-binding.json, the machine page's core image size and the vendored packages stay at 948be0c4. The first version of this branch recorded 1c2c2016 there; that commit's files are taken out again. Built with the reviewed toolchain, this source gives 18,852 bytes .run, 30,732 bytes .bss and 48 sites. Verification record: docs/verification/2026-11-30-digitakt-ii-voices-chord-recording-base.md.

How I checked it

Tested on a unit: base 1c2c2016 (package sha256 1c2c201650f7f5f457af2e3bc99d3a74e89a2899ca2ea7ffd88b72648ac86cac), Digitakt II (MKII), OS 1.17, over USB, by the tester (Claptom-music) in images b8cff950 and 2b4850e1, which carry this base byte for byte with the Morpha module on the lead: chord recording, voice tracks' own trigs, VOICES back to 1, VOICES lowered while playing, the shared level, POS and the built-in waves.

Edge cases

Case Why this change makes it a risk How run Result
Chord recorded with the pattern running Pattern and live notes compete for voice tracks; frame and recorder race Unit, 2b4850e1 (and 800a4a6f for #2138) pass
A voice track's own trigs (a programmed chord on T2/T3) Voice steps play with the copied sound Unit, 67687eee and later pass
VOICES back to 1 after linking The kept sound is written back into the kit Unit, b8cff950, 2b4850e1; emulator: type bytes 0, 9 (linked), 0 pass
VOICES lowered while playing Former voices, note-offs, machine switch Unit, b6ee842b (#2204) and 2b4850e1 pass
VOICES 3, 1, 3 then chords Which sound a voice loads Unit, b6ee842b; emulator pass
The lead's LEVEL and mixer volume Shared level Unit, 094b8a09, 2b4850e1; emulator: chord silent at LEVEL 0 pass
Every track at 1 Must change nothing Emulator, coupled, against 27dfadf8: first note identical sample for sample, level identical in every 50 ms window pass
MIDI chords Notes from MIDI take the voices' path Unit, 27dfadf8 only not run: on 27dfadf8 they sounded odd; a recording is to come (VOICES.md)
A muted lead played from the keys Mutes in the voices' routing Unit, 27dfadf8 only not run: it sounds on a unit; not yet compared with stock
Two machine modules at once Registry slots and the voices' machine Not on a unit not run: no second machine module tested on a unit yet

Repository: after the release step came out, npm run check -- --base upstream/base/digitakt-ii-next passed in 219 s (head 67c25f122). The digi-build.test.ts failure the first version had (binding 1c2c2016, pin 948be0c4) is gone, because the binding and pin agree again.

sdk/tests/test_machine_base.py passes (25 on #2204's branch). The base build reproduces: three separate builds of this code (the tester's images and this branch's --write) give 1c2c2016.

Guides

VOICES.md records the restore and its memory-only limit. Nothing else in the guides was wrong for this work. Not run: npm run pr:ready, which merges main into a branch that targets base/digitakt-ii-next (as noted on #2130).

… track that leaves a group

- SETTINGS > VOICES: the label is rewritten each time the menu asks for it (SETTINGS builds its rows once, so it kept
  the track that was on then), and the row draws an icon in the stock icons' place with the count beside it.
- Lowering VOICES while notes ring: a former voice's note-off, which still names the lead, goes to the track that
  holds the note (it ended the lead's note of the same pitch instead, and the voice's note rang on), with the lead's
  machine until the note ends; the track's loaded-sound pointer is cleared so its next note loads its own sound.
- VOICES.md and the 948be0c4 verification record: the release checks on 27dfadf8 and the emulator checks of this base.
…ices keep its machine until their own note; icon eyes
# Conflicts:
#	sdk/machines/digitakt-ii/elekloader/modwerk/VOICES.md
#	sdk/machines/digitakt-ii/elekloader/modwerk/voices.c
…ecording, restored sounds

The base of this branch (base/digitakt-ii-next with chord recording brought back, repeat98#2204 and the restore of a voice
track's own sound), recorded by machine:base --write with the reviewed toolchain (18,852 bytes .run, 30,732 bytes
.bss, 48 sites) and vendored for step 2's pin. It is byte for byte the base of the unit-tested images b8cff950 and
2b4850e1. The machine page's core image size follows; the verification record names the build and its checks.
@repeat98

Copy link
Copy Markdown
Owner

Thanks for bringing chord recording back this way. The git revert of e18ca55eb is the right route, and the restore answers the report about voice tracks keeping the lead's sound.

Plan for the release: #2204, this one, #2446 and #2445 go into base/digitakt-ii-next, then one combined image and one unit round on that exact build. So, before this merges:

  1. Please drop the release step (c78b3ce38: base-binding.json, the vendored 1c2c2016 package, machine.json, machines.generated.json). Binding, package and pin happen once, on the combined base. Keep the verification record, without its Pin section.

  2. Fix: Digitakt II linked voices: VOICES row label and icon, voices keep the lead's sound and machine #2204's four points from the review of 26 November are still open on this head too, since it carries Fix: Digitakt II linked voices: VOICES row label and icon, voices keep the lead's sound and machine #2204's code: the routing while regroup runs (this branch makes that window longer, as regroup now copies up to seven sounds inside it), the full SHA-256s, the unit cases, and one way to find the kit's track sounds. Fix them on Fix: Digitakt II linked voices: VOICES row label and icon, voices keep the lead's sound and machine #2204, then merge it here again.

  3. Saving while linked loses the voices' own sounds. regroup writes the lead's sound and pattern-track settings over the voice tracks' own, and the originals live only in memory (own_sound, own_settings). After SAVE PROJECT while linked, a power cycle and VOICES back to 1, tracks 2 to n keep the lead's copies, and their own sound is gone for good. The same happens on pattern changes: the frame copy (copy_track_settings in core_voice_frame) writes the lead's length, swing and speed into every pattern played while linked, and restore_own puts back only the pattern that was on when the group formed.

    This is the question from the review on 26 November, now with a concrete cost: since a voice already loads the lead's sound note by note, can chord recording do without writing the voice tracks' kit sounds and pattern settings at all? For example, the recorded steps on voice tracks could name the lead's sound, the way key notes do now. Then there is nothing to keep, restore or lose. If the kit write has to stay, please say why, and make what is lost visible to the musician.

  4. Unit cases for the restore, on the image you test: SAVE PROJECT while linked, power cycle, VOICES back to 1; a pattern change while linked, then VOICES back to 1 on each pattern; a kit reload while linked, then VOICES back to 1.

Pull requests into base/digitakt-ii-next only get the description check in CI, so please paste the npm run check -- --base upstream/base/digitakt-ii-next result for the new head, as you did here.

The owner asked for the binding, the vendored package and the pin to come once, on the combined build of the next release, so base-binding.json, the machine page's core image size and the packages go back to 948be0c4. The verification record keeps the unit results of 1c2c2016 and says where the release step happens.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick turnaround. Here's where it stands at 67c25f12:

  • Settled: the release step is out. The binding, package and pin are back at 948be0c4, the verification record stays, and the check result for this head is in the description. Thanks.
  • Still open from my review earlier today: points 2 to 4. That's #2204's four points (fix them there, then merge it here again); saving while linked, where the voices' own sounds are still kept only in memory, so a project saved while linked loses them for good, and a pattern played while linked keeps the lead's length, swing and speed; and the unit cases for the restore (save while linked then a power cycle, a pattern change while linked, a kit reload while linked, each followed by VOICES back to 1).

Point 3 is the one to settle first. It decides whether point 4 tests a restore at all, or just confirms that the voice tracks' own sounds are never touched.

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.

2 participants