Repository navigation
Songbook 0.2.0-experimental: setlists - #2431
Andrey-Sidorkin wants to merge 107 commits into
Conversation
…dds, CUE + LEFT/RIGHT moves an arrangement in its book Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ANGE Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… item and opens the setlist page Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # sdk/drafts/songbook/songbook_core.s
…dits saved to each song's file at the end Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # sdk/drafts/songbook/songbook_core.s
…er the corrected writer model Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t ends on a HALT, the chain row reads NEXT SONG Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…et, so the rows show NEXT SONG Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…, or the arrangement chosen Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… setlists are read by a card job before they are shown or added to Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… compiled to memcpy); the generated unit current again Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rawn again (stock's arranger event), the end is LIST END Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s chosen again Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…o, so a layout change always starts afresh Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…is read again and none of slots 7 and 8 written Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ement (no chain, no HALT arrangement) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… stock's shared "%d" (it emptied the tempo, MIDI channel and bank numbers) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ooses the next song; copy and paste songs and setlists on the page Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…N a cursor, YES moves the next-song mark to it Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ther YES moves the next-song mark (CUE + NO stays stock's DISARM ALL) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…change while it is open Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…(SymbolRefs on stock's two pea operands); writing into a declared poke had left every later install refused as busy Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… song next at once; releasing CUE only closes it Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…me editor; arrlists.work ASL2, ASSL still read); the main screen marks a playing setlist Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…box's free line, off the arrangement rows Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…pattern line under the Part box Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rst line; the pattern line stays stock's Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Hi Andrey, while we talk about this update on Discord, here's what I found in the code and the test record, so it can move as soon as we've spoken. What works: setlists play gapless on your MKI. They come back after LOAD, RELOAD and a power cycle. The test procedure passed on the exact package ( What stops it for now: someone's own songs could get overwritten. Setlists borrow the open book's arrangements 7 and 8, and this branch already fixed two ways that wrote setlist copies into a book. The third (copies seen in book 2's slots 7 and 8) is still open with no known cause. An update goes out to everyone who has Songbook, so I can't release it while that's unexplained. Could you do these in one go:
Thanks, and see you on Discord. Generated by Claude Code |
…lists # Conflicts: # src/engine/assets/module-build.json
…ws them (arrNN.sl) and given back from there; slots 7 and 8 never written to a book while lent; UI claims for the main screen's name bar and position; build references (owner's review) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… 7/8 backup) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s arrbook.work after a power cycle), host gate 257 checks 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>
…ok switch 13.85 M instructions, 20-cycle stress) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…c1d4549 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ngements while a setlist borrows their slots (developer's request) 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>
…3.81 M instructions) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…dure steps 1-10 on the MKI, the slot 7/8 cases) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nchanged) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…loper's MKI Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks, Jannik. All five are done. The package is now 1. Slots 7 and 8. Your backup idea is built in. Before a setlist borrows slots 7 and 8, the module copies the book's own arrangements 7 and 8 to 2. Coming from 0.1.0.
3. 4. Build references: the first limitation and 5. Refresh: Details
🤖 Generated with Claude Code |
There was a problem hiding this comment.
Thanks Andrey, that's a lot done in one go, and the backup is the right idea.
Settled now: the two cases for people coming from 0.1.0 are in the table, run on c8eb7186. The main screen's name bar and position counter are claimed. The branch is merged with main and the checks are green (the one red mark is a cancelled duplicate job, and its rerun passed). Slots 7 and 8 now get backed up before a setlist borrows them, and no writer puts them into a book's files while they're lent.
Two things left:
- The backup can win over newer work.
give_back()restores 7 and 8 fromarrNN.slwheneverarrlend.worksays they were lent, whatever happened in between. Picture this. A setlist plays in a trial and a power cycle ends it. The musician carries on with 0.1.0 kept (or with no Songbook) and spends a week editing and saving arrangement 7 of that book. Byte 7 of the battery record is still set, because 0.1.0 never clears it. When they install 0.2.0 again, the reread job insongbook.ccopies the old.slover their newerarr07.work, and that week's edits are gone. Please restore a slot only while its.workstill holds the setlist's copy. For example, keep each song's name and fingerprint in the note and compare them before writing. Otherwise keep the.workfile and just clear the note. A related case:lend()rewrites.sland the note without checking for an earlier note that was never given back, so a second setlist on another book drops the pointer to the first backup. Please add both cases to the host tests and the edge-case table. - Build references, again: the first limitation in
octamod.module.jsonandproof_noteinmanifest.pystill name package8f9c50a6from1e23308d. Please point them atc8eb7186, the build in the record.
Then run npm run pr:ready and push. The rest of my review from 30 November is done. And let's still talk on Discord before this goes out.
…till holds a setlist's copy (fingerprints and names in arrlend.work), an unreturned note for another book repaired first; build references name the record, not a hash (the owner's review) 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>
…dure steps 1-10 on the MKI, the give-back cases) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…dure entry shortened) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Both done. The package is now 1. The backup no longer wins over newer work.
2. Build references.
Details
🤖 Generated with Claude Code |
There was a problem hiding this comment.
Thanks Andrey, both are done, and the note with names and fingerprints is a neat way to tell a setlist's copy from the book's own work.
Settled now:
- The backup no longer wins over newer work. A slot comes back from the backup only while it still holds one of the setlist's copies. A note left over for another book is repaired before a new setlist starts, so its backup isn't lost. Both cases are in the host tests and the edge-case table, and the test procedure passed on
e06c9f98on your MKI. - Build references. Pointing at the record instead of a hash is the right fix, since the manifest is part of the package.
One note, not blocking: a slot whose name matches a setlist song still counts as a copy even when its contents changed. So if stock saved a copy into arrangement 7 and someone then edited it on 0.1.0 without renaming it, a reinstall still brings back the backup. That's narrow and I'm fine shipping it, but a line in the README's limitations would help anyone who hits it.
The checks are green (the one red mark is the cancelled duplicate job again). From the code's side this is ready. Release waits for our talk on Discord.
…py edited without the module, not renamed) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Thanks Andrey. The README's limitations now cover the case I mentioned: a copy edited without the module but not renamed still counts as a copy. That was the last thing I had, so nothing is open from my side.
The code is ready. The release still waits for our talk on Discord.
Waiting for your answer on Discord |
Songbook 0.2.0-experimental: setlists. An update of my own module (0.1.0 in #2116). The package is
e06c9f98…, byte for byte the build kept and checked on my MKI.What changes for players: in the arranger menu, SETLSTS holds 16 setlists of up to 16 songs taken from any book. A setlist plays its songs one after another without a gap and passes over empty ones. CUE + YES in BOOKS (was CHANGE) adds the song under the cursor. While a setlist plays, the main screen shows it and the song's whole name, and CUE + YES picks the next song (never the one playing). Trig keys pick the book in BOOKS and the setlist in SETLSTS, and the lit trig shows the one in use. After LOAD, RELOAD or a power cycle the project comes back into its setlist, on the song it was on, at its first row.
Who must act: the owner. The update names new stock addresses (the setlist hooks and the main screen's name bar), so the release bot leaves it for owner review.
Tested on a unit: package e06c9f98668142f1b1ff79b2501c124ebcb30b0dd8832c79de95ba0dce736bfa (source 3a0b10d), MKI (OS 1.40C).
test:procedure songbookon a development twin46c30886of base 0.8.2: steps 1-10 passed (emulator rehearsal, scripted pass, 90 s soak, cost at rest 0, put back). The developer's stage was done on the flashed base 0.8.2: the setlist features on 8f9c50a6 kept beside Arr Rows and Smart Reload, the slot 7/8 cases and the update from 0.1.0 on this package.Details
songbook.c/songbook_core.s/manifest.py: setlists (SL slots 7-8 hold the current and next song), the SETLSTS page, the chain, CUE + YES in BOOKS and on the main screen, trig choice with a time debounce and stock's trig lights saved and given back, and the setlist box hidden over stock's messages and in pattern mode.0x4003cf16/0x4003d002fill,0x4003cf48fit,0x4003cf6etext).songbook_host.c: 250 checks pass (new: a 0.8.1 power cycle with a matching fingerprint, the recorder's other buffer, the box over a message and in pattern mode, the trig choice and the two-press guard).tests.qualificationwas written bymodule:qualifyfrom the procedure's record, and the drafted texts were edited by hand. Memory is 25,816 bytes of code and data and 100,756 of bss (90,432 of it the setlist's 16 song blocks).evidence/performance.json: book 1 to 2 costs 13,941,677 executed ColdFire instructions under ot_emu on the 0.8.2 twin (budget 26.6 M), and a 20-cycle stress run had no hang.resources.cpuPriceis 0.src/community/module-changelogs/songbook.json. The new thumbnail shows books, trigs and a setlist. The catalog pin and the USB package moved to 0.2.0, and the 0.1.0 package was removed.arrNN.slbefore a setlist borrows their slots;arrlend.worknotes what the setlist's copies look like, and a slot comes back from the backup only while it still holds such a copy (newer work saved there is kept; a note left for another book is repaired first); while lent, slots 7 and 8 are never written to a book (the mid-load save included); ARR > BOOKS names rows 7 and 8 by the book's own arrangements (a new stand-in on0x40036e62). The once-seen copies in book 2's slots 7-8 stay unexplained, but every path found is closed or backed up.Edge cases
What the guides lacked or got wrong: OCTATRACK_DRIVING.md did not say that a kept
try --acceptfrom one session replaces the set another session kept. Here that hid a fix for an hour, because the unit ran no Songbook at all. The sentence goes in its ownDocs:pull request (a module release carries no guide edit).🤖 Generated with Claude Code