Skip to content

Digitone II base: module project data is lost at a power cycle and does not mark the project changed #2683

Backlog

Description

@prodbysmolec

What happens: On the Digitone II base (core-dt2 1.1 copy, OS 1.12), a module's project data (core_projdata) does not follow the project's working state. Found with Voice Spread (#2003) on a unit, 5 December 2026 (development base a158dc91… + Voice Spread 9ce8ff19…):

  • SAVE PROJECT AS, load another project, load it back: the module's values come back. A full save and a load work.
  • A module-only change (Voice Spread 25/HIGH) is lost at a power cycle; an unsaved stock change made at the same time (Attack Time) comes back. The module's values after the power cycle are those of the last full save.
  • A module-only change does not make stock ask "SAVE … BEFORE LOADING?", so loading another project drops it.

Why (read from OS 1.12): stock keeps the working state as its project image in RAM (0x405ce96c) and writes that whole block to the eMMC at power-off; boot reads it back and runs the project load, so the base's load hook reads the header gap from the working image. Stock refreshes parts of the image when they change: a sound edit updates the kit's slice only. The header, and with it the base's save hook (0x400e18be, flag bit 6), is rewritten only when Project::changed runs with bit 6 or with all bits (after a load, a full save). Nothing calls it after a module changes its data, and nothing sets the "project changed" flag either.

Proposed fix (base only, no module changes): the Digitone II copy of store.c keeps a copy of the modules' project data as last loaded or saved; on ev_tick (UI task) it compares, and on a difference calls stock's own Project::changed with a header-only ProjectDataChangeInfo (0x40), as stock's project rename does with 0x20. That refreshes the header in the working image through the existing save hook and sets the changed flag, so stock prompts before loading. I'll try it from RAM on my unit first and open a Fix: PR into base/digitone-ii-next with the results.

The Digitakt II base has the same store.c design; whether OS 1.17 behaves the same was not checked.

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