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
[kits] Edits set aside in the edit pool are lost at the next project load or power cycle #2605
What is broken: Kits keeps unsaved edits of a Kit whose Part slot another Kit took in an "edit pool" that lives only in memory. The pool is cleared at every project load, new project, install or Keep, and power-up, and nothing can save it. Those edits disappear without a message.
What it means musically: tweak the Kits of four patterns in one bank without SAVE KIT, then play a fifth pattern with its own Kit in that bank. One slot's edits move to the pool. Power off, load a project or re-install the set before that Kit plays again, and the edits are gone. On the stock OS, unsaved Part edits survive a power cycle, so musicians expect the same here. This may explain part of #2439.
Seen on a unit: no. Found by reading the source on main (Kits 0.1.1-experimental); not yet reproduced on a unit or in the emulator.
Who must act: a Kits update, with the module author's OK. It touches the same file as draft #2485, so it should follow or fold into that one.
Next step: reproduce in the emulator (four edited slots in one bank, a fifth Kit, then LOAD PROJECT), then add a way to commit the pool.
Details
All in sdk/octatrack/modules/kits/kits.s on main:
1662, 1670-1673: with no free slot, st_spill moves a slot's unsaved working Part into the pool (ed_spill, 2190-2236), then load_into overwrites the slot. After that the edits exist only in the pool.
2080-2082: the source comment says the pool is RAM only and cleared at every project load.
3453: kinit starts with ed_clear; it runs at project load, masked loads, new project, and every install or power-up restore.
2794-2869: write_kits writes only the library image; the pool behind it is never written to the project files.
The README says pooled edits "come back when its Kit plays again", with no warning about a load or power cycle.
Suggested fix: a SAVE ALL KITS row at the top of the SAVE KIT list that saves the bank's four slots and commits every pool entry to its Kit, plus one README line. A fuller fix later: write used pool entries to the project and read them back at load, so unsaved edits survive a power cycle as stock's do.
Not checked: that a new top row leaves the list's copy, paste and clear row indexing and the MKI path intact.
Activity