You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Digitakt II beta panel for Try, Keep and Undo #2643
I put together a first pass with mock data. The first shot shows a trial running in RAM. The second is what I’d show if USB drops during Undo. You can still see the last confirmed set, and the panel checks what’s on the box again when you reconnect.
Keep is disabled in this mock until we have a verified way to save the set. Does this line up with what you expect the device link to report?
Quick update: the mock flow is running locally now. I tried dropping USB both before and after Undo restores the previous set. In both cases the panel shows “Undo result unknown” until you reconnect. Then it checks the mock device again and shows whether the old set was restored or the trial is still in RAM.
The screenshot shows the case where Undo went through. Can we read back the active module set on reconnect with the device link?
Yes, reading back the actual active module set on reconnect is exactly what I'd like the device link to support.
I've made quite a bit of progress today on the native RX/TX and runtime bindings (#2571 and #2641), including some successful hardware tests. The live module set readback isn't qualified yet, though.
Let's coordinate this with Lukas so we can connect your panel to the actual device as soon as possible.
Really happy to see this moving forward together :)
Yes: after reconnect the panel can read the active set back through the existing upload-controller contract, and one read still needs an agreed command. Nothing runs on a Digitakt II yet: the loader is not linked there.
What exists: the upload controller's HELLO (wire v1) needs no session to call. It returns the base digest, a session digest (new after a power cycle), the generation, the phase (trial or normal), whether the active set is known, and the active-set digest. That is enough to tell "Undo landed", "trial still live", "the unit rebooted" and "unknown" apart.
Reconnect rule: IDENT (is it a DT2 with the link?), then HELLO. New session: the RAM trial is gone. Same session: phase and the active digest say whether Undo landed. active-known = 0 stays "unknown". The unit also rolls a trial back about 10 s after the host disappears, once the sequencer is stopped.
Thanks, Andrea! That makes sense. I’ll use the HELLO fields for reconnect in the mock and stub out INVENTORY for the module names while we wait to hear from Lukas.
Yes, the module names are a read for the shared link (#2442), beside HELLO, as I answered on #2443.
The loader's modwerk_runtime_list() already writes the Octatrack's INVENTORY record: MWI\2, then for each live module its id, layout and name, 24 bytes an entry. The Octatrack's vendor link serves it, and octatrack-link.ts reads it.
On the SysEx link it becomes one command, carried in parts as screen and log are: the unit chooses the bytes, and the host asks for a part by its offset. Your panel can read the active set after HELLO.
Your reconnect rule (IDENT, then HELLO, then session, phase and the active digest) is the one the Digitone II follows. I'd keep it.
It lands with the first extraction PR on #2442, once the Digitone II stack is in base/digitone-ii-next. Until then, mocking INVENTORY in that shape lines your panel up with what comes.
Thanks, Kári, the mock reads well, and IDENT, then HELLO, then INVENTORY is the order Lukas and Andrea agreed.
One thing before it grows: please build it into the page the other SysEx-link machines already share, not as a separate panel. The Model:Cycles and the Rytm each add a UnitKind to ElektronUnit in src/components/ModelCyclesUnit.tsx (port, route, reader, log), beta-only. The Digitakt II becomes a third one there, with the Try, Keep and Undo flow taken from the Octatrack's page (OctatrackHub.tsx), so every machine shares one flow (the machine recipe's site page row). And please open an early draft pull request from your branch, so I can follow along.
Thanks, Jannik. I’ll move the Digitakt II mock into the shared beta device page and reuse the Octatrack Try/Keep/Undo flow. I’ll test both reconnect cases there and post an update once I’ve checked them.
The mock is now on the shared beta device page under Your Digitakt II → Status. I checked both reconnect cases there.
USB drops before restore: Chord Arp is still in RAM after reconnect.
USB drops after restore: Only Track Names is active after reconnect.
In both cases, the page shows Undo result unknown until IDENT → HELLO → INVENTORY reads back the active set.
Activity
karigardarsson commentedon Dec 4, 2026
I put together a first pass with mock data. The first shot shows a trial running in RAM. The second is what I’d show if USB drops during Undo. You can still see the last confirmed set, and the panel checks what’s on the box again when you reconnect.
Keep is disabled in this mock until we have a verified way to save the set. Does this line up with what you expect the device link to report?
karigardarsson commentedon Dec 4, 2026
Quick update: the mock flow is running locally now. I tried dropping USB both before and after Undo restores the previous set. In both cases the panel shows “Undo result unknown” until you reconnect. Then it checks the mock device again and shows whether the old set was restored or the trial is still in RAM.
The screenshot shows the case where Undo went through. Can we read back the active module set on reconnect with the device link?
btzz5w8w5d-star commentedon Dec 4, 2026
Hey Kári! This looks really nice!
Yes, reading back the actual active module set on reconnect is exactly what I'd like the device link to support.
I've made quite a bit of progress today on the native RX/TX and runtime bindings (#2571 and #2641), including some successful hardware tests. The live module set readback isn't qualified yet, though.
Let's coordinate this with Lukas so we can connect your panel to the actual device as soon as possible.
Really happy to see this moving forward together :)
btzz5w8w5d-star commentedon Dec 4, 2026
Yes: after reconnect the panel can read the active set back through the existing upload-controller contract, and one read still needs an agreed command. Nothing runs on a Digitakt II yet: the loader is not linked there.
phaseand theactivedigest say whether Undo landed.active-known = 0stays "unknown". The unit also rolls a trial back about 10 s after the host disappears, once the sequencer is stopped.lock()to level 4 and the first CPU-only trial once the shared glue lands.If your mock's device answers use the HELLO fields plus an INVENTORY list, wiring the real link later is a swap.
karigardarsson commentedon Dec 4, 2026
Thanks, Andrea! That makes sense. I’ll use the HELLO fields for reconnect in the mock and stub out INVENTORY for the module names while we wait to hear from Lukas.
prodbysmolec commentedon Dec 5, 2026
Yes, the module names are a read for the shared link (#2442), beside HELLO, as I answered on #2443.
modwerk_runtime_list()already writes the Octatrack's INVENTORY record:MWI\2, then for each live module its id, layout and name, 24 bytes an entry. The Octatrack's vendor link serves it, andoctatrack-link.tsreads it.screenandlogare: the unit chooses the bytes, and the host asks for a part by its offset. Your panel can read the active set after HELLO.It lands with the first extraction PR on #2442, once the Digitone II stack is in
base/digitone-ii-next. Until then, mocking INVENTORY in that shape lines your panel up with what comes.karigardarsson commentedon Dec 5, 2026
Thanks, Lukas! I’ve updated the mock to read IDENT → HELLO → INVENTORY on reconnect. Tried both USB-drop cases during Undo:
In both cases, the panel shows Undo result unknown until it reads back the active set.
The screenshots are from the earlier mock and show the same two reconnect outcomes.
repeat98 commentedon Dec 5, 2026
Thanks, Kári, the mock reads well, and IDENT, then HELLO, then INVENTORY is the order Lukas and Andrea agreed.
One thing before it grows: please build it into the page the other SysEx-link machines already share, not as a separate panel. The Model:Cycles and the Rytm each add a
UnitKindtoElektronUnitinsrc/components/ModelCyclesUnit.tsx(port, route, reader, log), beta-only. The Digitakt II becomes a third one there, with the Try, Keep and Undo flow taken from the Octatrack's page (OctatrackHub.tsx), so every machine shares one flow (the machine recipe's site page row). And please open an early draft pull request from your branch, so I can follow along.Generated by Claude Code
karigardarsson commentedon Dec 5, 2026
Thanks, Jannik. I’ll move the Digitakt II mock into the shared beta device page and reuse the Octatrack Try/Keep/Undo flow. I’ll test both reconnect cases there and post an update once I’ve checked them.
karigardarsson commentedon Dec 5, 2026
The mock is now on the shared beta device page under Your Digitakt II → Status. I checked both reconnect cases there.
In both cases, the page shows Undo result unknown until IDENT → HELLO → INVENTORY reads back the active set.