Skip to content

Digitakt II beta panel for Try, Keep and Undo #2643

Backlog

Description

@karigardarsson

I’d like to take the Digitakt II beta panel. The first question it should answer is “what’s actually on my box right now?”

I can start now with mock device responses

  • Show the connected unit, its build and the active modules, using the Octatrack panel as a reference.
  • Build the Try and Undo flow so it’s clear when a trial is active and what Undo will restore.
  • Cover a disconnect during Undo. Show that the result is unknown and read the unit’s state again when it reconnects.
  • Include Keep in the UI, with the action disabled until persistent Keep is supported.

Once the DT2 link and runtime are ready

  • Wire up device identity, capabilities and live Try/Undo, then check the flow on a real Digi.
  • Enable Keep once the persistent install path is agreed and verified on the device.

@prodbysmolec @btzz5w8w5d-star, I’ll start with mock device responses and coordinate the identity and runtime integration with you.

Shared DT2/DN2 design #2356 · Shared link and diagnostics #2442 · Shared runtime #2443

Activity

  1. karigardarsson commented on Dec 4, 2026

    @karigardarsson
    ContributorAuthor

    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?

    dt2-trial-active-modwerk dt2-undo-result-unknown-modwerk
  2. karigardarsson commented on Dec 4, 2026

    @karigardarsson
    ContributorAuthor

    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?

    05-reconnected
  3. btzz5w8w5d-star commented on Dec 4, 2026

    @btzz5w8w5d-star
    Contributor

    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 :)

  4. btzz5w8w5d-star commented on Dec 4, 2026

    @btzz5w8w5d-star
    Contributor

    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.
    • Missing: module names. The loader has an INVENTORY list (id, layout, name per live module), but no link command carries it yet. @prodbysmolec, is that a read for the shared link (Elektron: extract the shared link and diagnostics from the Digitone II work #2442), beside HELLO?
    • Saved vs trial: the flashed set comes from the base digest's build record on the host, the RAM set from INVENTORY.
    • Unit id: nothing in the contract names a unit, and a serial would be personal; maybe a local nickname?
    • From my side: on my unit, IDENT already answers over USB in MIDI and Audio/MIDI modes (private builds), and the bindings (Digitakt II base: OS 1.17 runtime-loader bindings, fail closed and not linked (#2525) #2641) have their playing flag and uncached alias read on a unit. Next: 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.

  5. karigardarsson commented on Dec 4, 2026

    @karigardarsson
    ContributorAuthor

    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.

  6. prodbysmolec commented on Dec 5, 2026

    @prodbysmolec
    Collaborator

    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.

  7. karigardarsson commented on Dec 5, 2026

    @karigardarsson
    ContributorAuthor

    Thanks, Lukas! I’ve updated the mock to read IDENT → HELLO → INVENTORY on reconnect. Tried both USB-drop cases during Undo:

    • Before restore: Chord Arp is still in RAM after reconnect.
    • After restore: Only Track Names is active after reconnect.
      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.

    image image
  8. repeat98 commented on Dec 5, 2026

    @repeat98
    Owner

    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.


    Generated by Claude Code

  9. karigardarsson commented on Dec 5, 2026

    @karigardarsson
    ContributorAuthor

    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.

  10. karigardarsson commented on Dec 5, 2026

    @karigardarsson
    ContributorAuthor

    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.
    Reconnect - USB drops before restore Reconnect - USB drops after restore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions