Repository navigation
Songbook 0.1.0-experimental (draft): 128 arrangements as 16 books of 8 (Octatrack) - #1737
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rd instead of trusting its memory Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…arrangement stays cleared Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… saved on Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ain screen, a longer wait after loads Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… diagnostic word Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…r a power cycle Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…n the module's own job Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…after LOAD Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tock restores arranger mode Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…AD saves it Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…hat switches it off after LOAD Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…r mode once the load has settled Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…new-project step Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…the MKI Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rformance Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks for the fix. All 88 host checks pass here, including the failed-read cases through reinstall and Undo. Please connect your Octatrack MKI to your computer over USB and run the Modwerk test procedure on the latest Songbook build using a scratch project. Give books 1 and 2 distinct arrangements, then check that both survive a reinstall and a trial followed by Undo and another sync. Please add the package SHA and the MKI results to If you're happy to share a read-only Modwerk session after the test, let me know when you're signed in with the MKI still connected over USB and I'll send a session request. |
…written slot by slot, stock's writer modelled as it works Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks. I ran the test procedure on my MKI with package
Two things I saw on the way:
Re-reading stock's arrangement writer afterwards, I found one more loss path, fixed in I'm happy to share a read-only Modwerk session: the MKI is connected over USB now, so send the request whenever it suits you. 🤖 Generated with Claude Code |
…ded, not at ev_banks_load where stock's directory is still the last project's; none of the module's files written mid-load Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
One more fault, found with the setlists build on my MKI and present in this PR too: a project loaded with PROJECT > CHANGE after another one came up on the other project's book and last arrangement, and that state was later saved into the new project's Fixed in
The previous code fails two of these checks. Host-tested only; I'll run a LOAD across two projects on the MKI next and add the result to TESTING.md. 🤖 Generated with Claude Code |
… the whole load (stock's directory names the last project at ev_banks_loaded too); a LOAD of the project in use still reads at ev_banks_loaded Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…state left set (every choice refused) is reset as stock resets it for a new project, then the arrangement chosen Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…switch even while the list is closed Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…build 85d544a) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The LOAD fix from my last comment wasn't enough. Now fixed and tested on my MKI. What works: loading another project and back returns each project to its own book and arrangement. The CHANGE list opens with its cursor on that arrangement, PLAY plays it from its first row, and LEFT/RIGHT book switches work after it. Tested on build What was wrong, in three steps found one after another on the unit:
What the guides got wrong: HOOKS.md says to read a module's per-project file at Next: your review, @repeat98. 🤖 Generated with Claude Code |
…s its arrbook.work also takes the return to its book (one job, not two) and closes its NOW SAFE TO EJECT! Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…I (build fc56370) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
One more improvement to the LOAD return, tested on my MKI. What works: after loading another project and back, Songbook now runs one card job of its own instead of two. The job that reads the new project's On build
Next: your review, @repeat98. Nothing else is planned for this PR. 🤖 Generated with Claude Code |
…s set with its cursor, open or closed Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…KI (build c642ca2) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
A fix to my own change from yesterday, tested on my MKI. What was broken: my fix in What works now: both the cursor and the choice are set (
Next: your review, @repeat98. 🤖 Generated with Claude Code |
Songbook 0.1.0-experimental, a draft (
sdk/drafts/songbook), new Octatrack module by Andrey-Sidorkin. Called Songbook until 22 November 2026; renamed at the developer's request (idsongbook, board claim moved).What it does. 128 arrangements per project, as 16 books of 8. Book 1 is stock's
arr01–arr08; book 2 isarr09–arr16, and so on toarr128. Every one is an ordinary stock arrangement file, written and read by the Octatrack's own routines (same header and size; a file can be moved into book 1 on a computer by renaming it). In ARR > CHANGE, stopped, LEFT and RIGHT step between books;BOOK 2and so on shows at the top right, the list shows the new book's names at once, and each book comes back on the arrangement last chosen in it. SAVE/RELOAD PROJECT carry every book; LOAD and RELOAD return to the book, arrangement and arranger mode the project was left on (a small file of the module's own,arrbook.work/.strd). Setlists of up to 16 songs from any books follow in a later version.How it fits. A ColdFire module on
module_key,module_tick,module_drawand the base's project hooks (ev_banks_load,ev_banks_loaded,ev_project_new,ev_project_stored,ev_project_reloaded,ev_modules_ready). One stock site: the entry of stock's per-arrangement writer0x400915ac(8 bytes, guarded), which no other module or base hook uses (modules:compat); on book 1 stock's writer runs unchanged, on another book that book's 8 files are written instead. A switch borrows stock's SYNC TO CARD job, so all card work runs on stock's card task; the module closes that job's NOW SAFE TO EJECT! box. Battery RAM0x100f8f10–0x100f8f24(battery-ram.json) holds which book the slots hold, a fingerprint of them, a serial and an event log. Categorysystem. UI claims:key:LEFT@ARR CHANGE,key:RIGHT@ARR CHANGE,screen:ARR CHANGE. One listed change to a stock flow (README): a project left in arranger mode opens in arranger mode after LOAD; stock's LOAD switches it off and saves that before loading.Book 1 overwritten during a load: found and fixed after the first review round. After removing the module, the developer found book 1 holding book 2's arrangements. Stock's LOAD and RELOAD are two card jobs: the first only checks the files (
ev_banks_load,ev_banks_loaded), the second (job 27) runs the new-project step (ev_project_new) and loadsarr01–arr08into the slots last (0x4008fd28). The module tookev_banks_loadas "book 1 in the slots"; a return switch between the two jobs made stock's writer save book 2 asarr01–arr08, and the backup took the same. Now the book changes only atev_project_new, and the return is asked for only after it, so it queues behind job 27.verify.py(80 checks) simulates both jobs and a write between them; the previous code fails 8 of them. Two follow-ups surfaced on the unit and are fixed: after RELOAD in arranger mode the main screen kept book 1's arrangement until the module re-applied arranger mode as stock's end of a load does, and stock sometimes refuses the arrangement choice right after a load, so the module retries it. Tested on the MKI on base 0.7.13 (verify.py, 74 checks).Safety. Book 1 is never written with another book: leaving it keeps a backup (
arr01.bak–arr08.bak, stock format) and arriving at it rewritesarr01–arr08from that backup. A file that does not read leaves its arrangement empty and is never written back unless edited. A build returning from another build's trial rereads the battery record instead of trusting its memory (that bug made a copy of book 1 in book 2 during testing). The README asks to step back to book 1 before removing the module: without it, stock's next save would write the book in use intoarr01–arr08. Open question for the owner: is a base hook that lets a module hold off its own removal worth having for this? I did not propose one, as only this module needs it.Evidence (TESTING.md, RESEARCH.md):
verify.py, 97 host checks, several replaying the unit's event orders; stock's arrangement storage, file routines, list drawing and project hooks read from the 1.40C image (addresses only) and checked under ot_emu, where the module's files came out byte-format stock; many rounds on the developer's MKI (OS 1.40C, flashed base6c189889), each fault Andrey Sidorkin found fixed and re-tested: the stale ARR > CHANGE list, a book-2 copy of book 1, cleared arrangements coming back, RELOAD and LOAD not returning, arranger mode lost on LOAD. The last build on the unit is packageda945df5(sourcec5027552c, identical after mergingmain): switching books 1–16, per-book choice, the playing refusal, ARR SAVE/RELOAD, FUNC + PLAY clears and their undo, a power cycle (keeps the book), SAVE/RELOAD/LOAD PROJECT and arranger mode, all passed as they reported them. Not tested: an MKII;device:test/device:qualify(the development twin did not upload over USB that day); a measured performance record (counted: the slots' fingerprint, 542,640 instructions, once a switch and every 2 s off book 1; switching is refused while playing by design); removing the module on a book other than 1.Tested on a unit: package 37f7e94f7fff7b1828fc6a4eb3c8aab21ccf2f84a78739851929ab6b8b7233ba (source b976e98), MKI (OS 1.40C, base 0.7.13
6d23e888, beside USB AUDIO and Arr Rows 0.2.0), kept install, the developer's scratch project, the test procedure (TESTING.md): books 1 and 2 given distinct arrangements, both kept through a power cycle on book 2 and through a trial of another build with Undo, each followed by SYNC TO CARD, as the developer reported them. Steps 7-9 (scripted pass, soak, cost) not run: the development base's RAM boot broke off over USB twice, and the flashed base refuses development requests. Earlier: package 08d0833a73007287e44fd19a6f5bf3508275dae576b26722adfabf4e553dc391 (source f068cd6), MKI (OS 1.40C, base 0.7.136d23e888, beside USB AUDIO), kept install: LOAD and RELOAD back on book 2 in arranger mode, the main screen and PLAY on the returned book, book 1 intact, as the developer reported them; the earlier checks listed above ran on build c502755 (base 0.7.5). The book 1 fix after the unit run (91f84c31a) is host-tested only.Edge cases
37f7e94f: distinct books through a power cycle and a trial + Undo, each followed by a syncScreens and media: one emulator capture (
media/capture.jsonsays how) and a thumbnail, both original.npm run pr:ready: Ready (after mergingmainat02dfa20ca). One unrelated test,src/community/agent-board.test.ts(inbox order), failed twice under the full run's load and passes alone; it compares two items created in the same millisecond; fixed in #1738.What the guides lacked or got wrong:
sdk/machines/octatrack/HOOKS.mdsaysev_banks_loadedfollows every project load; on the developer's MKI a RELOAD raisedev_project_reloadedand stock's new-project step (ev_project_new) and sometimes noev_banks_loadat all, and a LOAD raisedev_project_newafter the banks. Fixed in #1739. The development twin's RAM boot failed over USB four times that day (uploads dropped at 10–20 %; status and small packages worked); not yet reported.docs/module-guides/(andsequencing.mdif it acts in time), and TESTING.md lists what I did not test. An effect module holds one effect.🤖 Generated with Claude Code