Skip to content

Improvement: Analog Four MKII beta build preview - #2362

Open
dylthom wants to merge 21 commits into
repeat98:mainfrom
dylthom:codex/a4-core-preview
Open

dylthom wants to merge 21 commits into
repeat98:mainfrom
dylthom:codex/a4-core-preview

Conversation

@dylthom

@dylthom dylthom commented Nov 28, 2026 •

Copy link
Copy Markdown

Improvement: Analog Four MKII beta build preview

  • What was wrong or hard: Modwerk's A4 builder did not select a source-built base for OS 1.56.
  • What this changes: Builds the Modwerk base from pinned Elekloader core-a4 0.5 source using the Analog Rytm MKII base workflow. The upstream source keeps its GPL licence and provenance. Stock patch sites are checked by length and SHA-256 against the user's local firmware. The browser selects the verified Modwerk base. Downloads remain disabled pending review.
  • How I checked it: Merged current main, kept both machine-list assertions exact and added the A4 entry in each. Two source builds reproduced base b687298c927868a11f16eb6a627b46d0d03d45fa90f31c270a11abd3256f3d09 and preserved all 103 upstream patch sites. The site builder selected the new base and reproduced the command-line linker's decoded main OS. The new base uses 43,472 of 131,072 shared bytes by itself.
  • Tested on a unit: On November 28, dylthom tested the site-built, base-only A4B1.syx on their Analog Four MKII and confirmed the exact file. Its SHA-256 is f0eecdc6fcf413485d38b04d8f884627ff10bc0e1a58861a5a8b9e086b4cbe91. The author booted into a project, verified the panel keys and encoders, played and stopped a pattern with normal audio, saved and reloaded a project, and confirmed A4B1 booted again after a power cycle. The author then reinstalled stock OS 1.56 using Elektron Transfer.
  • What the guides lacked or got wrong, and where I fixed it: The Analog Four guide and machine recipe now document the source-built base, provenance, build identity and current memory budget.

Edge cases

Case Why this change makes it a risk How run Result
Modified or wrong stock image Site patches must apply to matching bytes Use the pinned profile and local stock file Pass
Compiler emits unsupported ColdFire addressing A base could start and then fail in its storage code Build with the Rytm base's late-combine safeguard and run the ColdFire object check Pass
Browser chooses the old upstream core The build could use a different program from the one being qualified Prepare through Modwerk's site builder and verify the selected package and decoded image Pass
Stock boot and front panel in the emulator A compiling build may still fail at boot or ignore panel input Boot site-built A4B1 and send T2, PLAY and STOP in analog-emu Pass
Scale Loom with the new base The new core must still support the first module and its saved layout Link A4B2 with the SL18 storage lock and run native generation, pitch reroll and Undo Pass in emulator
Site-built A4B1 on the physical unit The emulator cannot qualify physical controls or audio Author loaded the site-built A4B1 on their Analog Four MKII Pass, as reported by the author.

Scale Loom follows in its own first-release PR after this base merges.

The SDK profile stays at 0.2 because it describes the module-facing contract. The preview selects the source-built core-a4 0.5 implementation through the base binding.

@github-actions github-actions Bot added the enhancement New feature or request label Nov 28, 2026
@dylthom

dylthom commented Nov 28, 2026

Copy link
Copy Markdown
Author

@repeat98 Could you take a look at this A4 preview when you have a chance? I tested SL18 on my Analog Four MKII running OS 1.56 and confirmed it worked. SL18 includes the exact core-a4 0.5 package pinned here alongside Scale Loom. Is that hardware test enough to move this PR out of draft, or would you like me to test the standalone core build as well? Once the preview merges, I can submit Scale Loom’s first-release PR.

@repeat98

Copy link
Copy Markdown
Owner

Thanks for this, and for testing SL18 on your Analog Four. Before it comes out of draft, one thing on the approach: every machine here gets a Modwerk base built from the upstream core's source, the way the Analog Rytm's is built from core-ar2's (docs/MACHINE_RECIPE.md). For the Analog Four that means core-a4's source at a pinned release, vendored with its licence and provenance in sdk/imports/ and built by npm run machine:base, rather than a prebuilt core in the catalogue. The Analog Four MKII shares the Rytm's platform, so the Rytm MKII's base in sdk/machines/analog-rytm-mkii/ is the place to start.

Could you rework it that way, and merge main (merge, not rebase) for the two conflicts in scripts/elekloader-update.ts and src/engine/elekloader/protocol.ts? Your SL18 run is useful. Once the base builds, a run of that build on your unit is the record we need, and Scale Loom can follow as its first-release PR.

@dylthom
dylthom marked this pull request as ready for review November 28, 2026 18:21

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for reworking this. The base is now built from core-a4's source the way the Rytm's is, which is exactly what we needed. It builds reproducibly, and the emulator runs look good.

One thing is still missing before this can merge: a short record of what you saw on your Analog Four. Right now the description says A4B1 "worked", but a base needs the steps written out (test procedure). In the verification note and the description, please add:

  1. Which file ran: the SHA-256 of the exact A4B1 you loaded on the unit. Is it the site-built f0eecdc6… or the standalone link?
  2. What you checked by hand: it boots, panel keys and encoders respond, play and stop work, the sound is normal, and a power cycle (or reinstalling OS 1.56 over MIDI) brings stock back. Also note anything that looked off.
  3. The core profile: machine.json still points modules at core profile 0.2 while the base links core-a4 0.5. Either bump it in this PR or say why 0.2 is still right.

Then run npm run pr:ready and push. The checks will run once they are started on our side.

@repeat98

Copy link
Copy Markdown
Owner

Thanks for reworking this to build from core-a4's source. That's the approach we want, and two builds reproducing the same base is good to see. Two things before it can go in:

  1. One conflict with main, in docs/MACHINE_RECIPE.md. Please merge main again (merge, not rebase).
  2. The unit record. "Worked" doesn't tell a reviewer what ran. Please name the exact image you booted (the standalone b687298c… base or the site-built A4B1 f0eecdc6…) and list what you checked on it: booting into a project, play and stop, keys and encoders, loading and saving a project, and a power cycle back to the stock OS. npm run test:procedure -- --base analog-four-mkii --stock … --elemod … --label A4B1 writes the record and the edge-case table for you. Steps it can't run on the Analog Four yet can stay "not run".

Then run npm run pr:ready and push. Scale Loom can follow once this is in.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this is much clearer now. Two of the three points are settled:

  • What you checked by hand is written out in the description and the verification note: boot, keys and encoders, play and stop with normal sound, save and reload, a power cycle, and the return to stock OS 1.56.
  • Core profile 0.2: your reason works for me. The profile describes what modules see, and the base binding chooses the core-a4 0.5 build.

Two things are still open:

  1. Which file ran on your Analog Four? The note says the standalone A4B1 worked, but the only SHA-256 it gives is the site-built one (f0eecdc6…). Please confirm which file you loaded and give its SHA-256. If it was the standalone one, add that hash, and ideally run the site-built file too, since that's the file musicians will get.
  2. Conflict with main: the branch can't merge into main as it is, so the checks can't finish. Please merge current main, run npm run pr:ready and push.

The rest of my review from 28 November is now settled.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, that settles both open points:

  • Which file ran: the description and the verification note now say you loaded the site-built A4B1 (f0eecdc6…), the same file musicians will get.
  • Conflict with main: the branch merges cleanly again.

Nothing else is open from my side. Next, the checks run once they're started on our side. Because this adds a new base, it then gets a final review before it merges, so no action is needed from you unless the checks turn red.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants