Repository navigation
Fix: Digitakt II linked voices: VOICES row label and icon, voices keep the lead's sound and machine - #2204
Open
Claptom-music wants to merge 3 commits into
Conversation
… 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
Owner
|
Thanks, that's a good root-cause fix. Naming the lead's sound in the note-on ( Before it goes into
|
This branch has not been deployed
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 release checks of base
948be0c4(image27dfadf8, in #1999) found two linked-voices bugs and asked for an icon on the VOICES row:T9 VOICESon every track. SETTINGS builds its rows once, so the label kept the track that was on then.A first fix (
f702c908, test imagee0244b16) cleared each leaving voice's loaded-sound pointer. On the unit that caused a new bug, the synth randomly playing unedited: after VOICES 3, 1, 3 a key note on a voice loaded the voice's own sound with the lead's machine. The emulator reproduced it, and this PR fixes it at the root.What this changes
sdk/machines/digitakt-ii/elekloader/modwerk/voices.c,voices-entry.s(base only, no module):core_addrow) with its own draw: a 9x9 icon in the stock icons' place, the count right-aligned at x + 19 as before, and a label rewritten each time the menu asks for it (core_voice_row_label, then core'score_value_label).+0x3c), so stock loads the lead's sound there whenever the voice last loaded another, never the voice's own.core_voice_lead), takes note-offs naming the lead for a note it still holds, and its own note-on clears its pointer at0x8000470c, so that note loads its own sound.lead_ofstarts as none (it read as "track 1's voice" before the first project load).Base
2ead25d6(.run16,732,.bss12,652, 47 sites).base-binding.jsonstill names948be0c4: the binding, package and pin are a release step for the owner, as for #2138.Records:
VOICES.md(design, the release checks, both fix rounds),docs/verification/2026-11-24-digitakt-ii-linked-voices-base.md(the release-check table for948be0c4),changelog/2026-11-25-digitakt-ii-voices-fixes.md.How I checked it
On a unit: Claptom-music tested image
b6ee842b(this base2ead25d6+ the Morpha package of27dfadf8) on a Digitakt II, OS 1.17, over USB. Covered: the icon and label on several tracks, the kick when lowering VOICES while playing, edits kept after VOICES 3, 1, 3, a held chord when VOICES drops, and a former voice played on its own. They reported it ready for review, with no case failing. The first round (e0244b16) is recorded inVOICES.md.Emulator (ColdFire panel probe and coupled ColdFire and sound-chip runs, same Morpha package):
27dfadf8andb6ee842b0x8000470ce0244b16: track 2 loaded its own sound. This base: the lead's values and pointer0x47db4310; coupled with Morpha27dfadf8: tracks 2 and 3 stay held, the voice stops abruptly. This base: all notes end; both fade with the lead's releaseVOICES.mdsdk/tests/test_machine_base.pypasses (25).npm run check -- --base upstream/base/digitakt-ii-next: everything passed here except one test,scripts/module-doctor.test.mjs> "a fresh module:new draft of each kind": on this computer the checkout sits on a Windows drive under WSL, wheremodule-doctor --drafttakes 41 s against the test's 30 s limit, so it is cut off with no output. No module is changed here; CI reruns it.What the guides lacked: the stock "load a sound only when it changed" rule (
0x8000470c) and thatfw_fillrectcounts a menu row's lines upward were undocumented. Both are now inVOICES.md.The release-check results for #1999's test table are in
docs/verification/2026-11-24-digitakt-ii-linked-voices-base.md.