Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog/2026-11-24-model-cycles-machines.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The Model:Cycles base has room for eight more machines: a machine module loaded over USB shows up after CHORD in the MACHINES list, plays on its tracks and leaves them silent and named "----" when it is taken out.
1 change: 1 addition & 0 deletions changelog/2026-11-30-model-cycles-machine-switches.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bases: on the Model:Cycles, a machine module can take PUNCH and GATE as switches of its own: hold MACHINES and press PUNCH or GATE on a track that plays it. The switches are saved with the sound. A machine's record also keeps room for four parameters of its own, for a later base. Nothing changes for musicians until the next base release, which is tested on a unit first.
2 changes: 1 addition & 1 deletion docs/MACHINE_RECIPE.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Read this before you plan a core, a base or the first modules for any machine ot
| Digitakt II | preview | Modwerk base from core-dt2 1.1's source (elekloader#221 at `0df8409`), with sequencer and project hooks | started: the site builds the [pinned base](../sdk/machines/digitakt-ii/elekloader/README.md) `8650bb8a` (`e88273ed`, which passed on one unit on 17 November 2026, with kit data ended before the project archive); downloads off. The native USB responder is not started; an [offline USB binding preflight](../sdk/machines/digitakt-ii/LINK.md) checks OS 1.17 and base patch overlap | digikit (emulator only) | the exact build on a second unit, then the USB link ([goal](../sdk/machines/digitakt-ii/GOAL.md)) |
| Syntakt | research | Modwerk boot probe | not started | digiemu's port (open upstream pull request; emulator only) | the core stage, planned as the base |
| Digitone II | research | core-dn2 0.3, with the Digitakt II 1.1 additions, in toonst's elekloader fork: boots and its six UI events run on units (18 November 2026) | started: Modwerk's builder carries the device (`machine:base` and the site's kit, 19 November 2026) | digikit (the author's; emulator only) | the Modwerk base, reusing the Digitakt II's with its own recipe as the Rytm MKI does, then flashing from the site and the link ([goal](../sdk/machines/digitone-ii/GOAL.md)) |
| Model:Cycles | research | Modwerk's own base (it replaced core-mc 0.3 from Elekloader v0.11.0, same symbols and sites) plus a key-LED hook ([events.json](../sdk/machines/model-cycles/events.json)) | started: built by `npm run machine:base`; runs on a unit with a test module on the LED hook; the USB link started over USB MIDI SysEx: in every base the identity, the audio load, a diagnostics log in the Octatrack's layout and the Octatrack's runtime loader (modules on trial, kept, undone, refused while playing), on a unit flashed with the release base (24 November 2026); development bases add memory reads, keys, encoder turns and a RAM boot ([LINK.md](../sdk/machines/model-cycles/LINK.md)); the site builds the pinned base from the owner's OS file as a local preview, downloads and the USB send for beta testers only (26 November 2026); the MCP's `device_status` reads its identity, `device_load` the audio load, `device_log` the log, and its trial tools load modules (24 November 2026); its Status page (`#model-cycles/unit`, beta) reads the base, the live modules and the load over the link (24 November 2026) | digiemu (emulator only) | the first module, Control All Config ([guide](../sdk/machines/model-cycles/README.md)) |
| Model:Cycles | research | Modwerk's own base (it replaced core-mc 0.3 from Elekloader v0.11.0, same symbols and sites) plus a key-LED hook ([events.json](../sdk/machines/model-cycles/events.json)) | started: built by `npm run machine:base`; runs on a unit with a test module on the LED hook; the USB link started over USB MIDI SysEx: in every base the identity, the audio load, a diagnostics log in the Octatrack's layout and the Octatrack's runtime loader (modules on trial, kept, undone, refused while playing), on a unit flashed with the release base (24 November 2026); development bases add memory reads, keys, encoder turns and a RAM boot ([LINK.md](../sdk/machines/model-cycles/LINK.md)); the site builds the pinned base from the owner's OS file as a local preview, downloads and the USB send for beta testers only (26 November 2026); the MCP's `device_status` reads its identity, `device_load` the audio load, `device_log` the log, and its trial tools load modules (24 November 2026); its Status page (`#model-cycles/unit`, beta) reads the base, the live modules and the load over the link (24 November 2026); the base's machine table `mw_machines` gives machine modules eight slots over the loader, on a unit (24 November 2026, before the own core) | digiemu (emulator only) | the first modules: MAXSAW on `mw_machines`, then Control All Config ([guide](../sdk/machines/model-cycles/README.md)) |
| Analog Keys | research | none | not started | none known | the machine steps first ([add a machine](ADD_A_MACHINE.md)) |
| Zoom MultiStomp | preview (MS-70CDR); research (MS-50G, MS-60B, G1on) | MIDISTOMP on the MS-70CDR; the MS-50G and MS-60B need builds from their own OS | browser base build and flash over Web MIDI. Shared MCP status and load tools use the same link. Load needs the MIDISTOMP SysEx load reply. | Ziddle (emulator only) | Prove a RAM-only effect trial and rollback on the MS-70CDR before wiring review, trial, Keep and Undo. See the [plan](ZOOM_MULTISTOMP.md#plan). |
| Zoom G1 FOUR | research | none: effects load on the stock OS | not started: zoom-zt2's file commands work over USB, the pedal page does not speak ZD2 yet | none known | [next steps](ZOOM_ZD2.md#next-steps) |
Expand Down
4 changes: 4 additions & 0 deletions docs/module-guides/machines.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,7 @@ Test in layers, as Analog BD does: the DSP engine, the ColdFire glue, the port (
New SRC machines take a machine id from 4 to 127 through the Digitakt core's `core_machines` table (STRING uses 8, RAM Machines 120–121, Live Looper 122), and the OS treats them "like the stock machine they stand in for", so the machine list comes from the OS. Claim the id in `platform.claims` (`machine:<id>`) and keep it once released, since kits store it; `pr:ready` claims it on the [agent board](../AGENT_BOARD.md) too, so no other branch in progress takes it. Test your mod beside another that also adds a machine ([Digitakt guide](../../sdk/machines/digitakt/README.md)).

On the Digitakt II the base's `core_machines` adds types 7-10 (`machine:<type>`), each standing for a stock type, and sends their voices to the module's own sound-chip player (`build.sharc`). To show what the player does, the player posts 32 words about the view track's voice. The module's `ev_draw` handler sets `core_machine_view_track` and draws `core_machine_view` over the sample page's waveform, only in a frame where `core_machine_sample_views` changed. The layout is in `mk2/machines.h`, and Mikrotakt's grain view is the example ([MACHINES.md](../../sdk/machines/digitakt-ii/elekloader/modwerk/MACHINES.md)).

## Model:Cycles

A machine adds a slot to the MACHINES list through the base's table `mw_machines`: one `struct mw_machine` (name, picture, four knobs' names and defaults, Amp Decay's default, `update` and `render`) contributed from the module's runtime package, in a slot from 6 to 13 claimed as `machine:<slot>` and kept once released, since sounds store it. The voice loop calls `update` and `render` each block as for the stock machines, so end `render` with the stock amp chain and do nothing while the voice is idle. A second record in `mw_machine_switches` lets MACHINES + PUNCH or GATE flip switches of the machine, saved with the sound; leave the record's `params` zero, they are reserved. A slot whose module is gone reads "----" and stays silent, so test what a project saved with your machine does without it, and with it again ([guide](../../sdk/machines/model-cycles/README.md#machines)).
51 changes: 51 additions & 0 deletions docs/verification/2026-11-23-model-cycles-base.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,54 @@ The unit asked UPGRADE OS NOW?; after YES it wrote the flash and booted normally
also the first run of the base with no subscriber on `ev_key_leds`. Not run: the page's dialog in a browser (its
button waits for the downloads approval), NO at UPGRADE OS NOW?.

## The machine table and its switches on the own core (base 23a7a53a, 30 November 2026)

The release base `23a7a53a…` (Modwerk's own core from #2394 with `mw_machines` and `mw_machine_switches`: 94 bytes
`.boot`, 46512 `.run`, 125060 `.bss`, 126 sites), built from the stock `model-cycles_OS1.13.syx` (`44fe5862…`) with
`--version PT01` (`3c01d911…`), flashed with Elektron Transfer on the submitter's Model:Cycles, which ran the release
base `dda53ffd` before. `elekloader/examples/sine.c` with its PUNCH switch, built by `build_sites.py` (932 bytes, two
records).

| # | Check | Result |
| --- | --- | --- |
| 1 | flash, `ident` | pass: boots, set CRC `0x7946f5e6`, 46576 bytes, armed 0 |
| 2 | `try sine.mwrm --seconds 10 --keep`; empty pattern, track 1 on SINE after CHORD, PITCH 64, DECAY 60, one trig on step 1 | pass: kept, one live module; SINE after CHORD with TONE's picture; a short tone on C5 |
| 3 | hold MACHINES, press PUNCH, let go; then MACHINES alone | pass: PUNCH's LED lit while MACHINES is held, the tone an octave lower (C4); the list does not open at the first release and opens at the second |
| 4 | the switch on, the project saved, another project loaded, this one again | pass: still C4, PUNCH's LED lit while MACHINES is held |
| 5 | PUNCH alone, track 1 (SINE) and track 2 (KICK) | pass: PUNCH's LED toggles on both as stock; SINE keeps its own envelope, so PUNCH is not heard on it |
| 6 | MACHINES on track 2 (KICK) | pass: the list opens on the press, as stock |
| 7 | a trig held on the main page, track 1 on SINE and on TONE | pass: NOTE, VEL and LEN on both. With the MACHINES list open, a held trig and LEVEL/DATA lock a machine, as stock |
| 8 | `remove sine` while playing | refused: `unsafe (playing?)`, as the loader should |
| 9 | stopped, `remove sine --seconds 5 --keep`, PLAY | pass: track 1 silent, the MACHINES page reads "----" |
| 10 | stopped, `try sine.mwrm --seconds 10 --keep`, PLAY without choosing the machine again | pass: SINE plays again on C4: the sound kept its machine and its switch |

After merging `main` and `base/model-cycles-next` (the held sites: a module never patches over the base's own
sites), the release base is `7b0c96d9…` (47540 bytes `.run`, otherwise as above), built with `--version PT02`
(`b21e259f…`) and flashed with Transfer: `ident` reads set CRC `0xad8b9c8d`, 47604 bytes. `try sine.mwrm --keep` while
a pattern plays is refused at the end of the trial (`unsafe (playing?)`), as the loader should; stopped, it is kept
(generation 3), and the project saved in check 4 plays SINE on C4 with its switch for 30 s and more.

Not run on this build: a power cycle with a kept module; GATE as a switch; a switch on a preview note; two machine
modules; p-locks, LFOs and MIDI CC on an added machine's knobs; recovery with the stock `.syx` over MIDI IN.

## The machine table (base 375717e1)

The release base with the machine table `mw_machines` (`375717e1…`: 76 bytes `.boot`, 45008 `.run`, 124992 `.bss`,
120 sites), on the submitter's Model:Cycles, 24 November 2026, without a flash of it: the unit ran a development base
flashed as an OS update (dev base `0740bb23`, the image `520f99e7…` relabelled `MT0D`: `3babe481…`, the same main OS),
sent by the site's own OS-upgrade sender; it booted normally. `mc_link.py ramboot` then uploaded `f36dccc3…` (stock
1.13 and `375717e1`, labelled `MT01`, main OS CRC `0x569b5655`) in 4.0 s; the unit reset by itself, and `ident`
reported `booted from RAM`, CRC `0x569b5655`, set CRC `0x42b4af2`, 45072 bytes.

- **Without a machine module:** on track 1's MACHINES page, LEVEL/DATA turned right ends at CHORD and left at KICK,
with six marks under the card, as stock. A pattern with trigs on several tracks played as before.
- **A machine on trial:** `elekloader/examples/sine.c` (816 bytes, slot 6), `try … --seconds 10 --keep`: SINE comes
after CHORD on the MACHINES page, with TONE's picture and seven marks. In an empty pattern, track 1 on SINE with PITCH
64 and DECAY 60, one trig on step 1 (C5): a short pure tone on C5 on each first step, gone after about a third of a
second. COLOR turned one step: the popup reads "Level" and 101.
- **Taken out and put back:** `remove sine --seconds 5 --keep`, then PLAY: no sound; the MACHINES page reads "----"
with no picture. `try … --keep` again, then PLAY without choosing the machine again: the tone on C5 is back, and the
page reads SINE.
- **Not run on this build:** the base flashed rather than RAM-booted, and a power cycle with it; p-locks, LFOs and MIDI
CC on the slot's knobs; SHAPE, SWEEP and CONTOUR's popups; two machine modules; a module's own pictures; the preset
dialogs' icons; a project saved with the machine and loaded again; recovery with the stock `.syx`.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"schema": 1,
"kind": "elekloader-catalog",
"revision": "modwerk-base-model-cycles-2026-11-30-machine-table-held-sites",
"about": "Modwerk's Model:Cycles base for OS 1.13 (7b0c96d9): the own core of dda53ffd with the machine table mw_machines, the machine switches mw_machine_switches and the held sites of base/model-cycles-next, built by npm run machine:base -- model-cycles.",
"cores": [
{
"file": "modwerk-base-model-cycles-7b0c96d9.elemod",
"sha256": "7b0c96d9d3918cae8e7465f5a0bcab1f8a192df04624bbb6b213b055c8c25d04",
"id": "core",
"version": "0.3",
"device": "model-cycles",
"os": "1.13",
"license": "GPL-2.0-or-later",
"source": {
"repo": "repeat98/modwerk",
"commit": "8587a7684056dd5c63d99a0b60eb0fff90199d4c",
"path": "sdk/imports/packages/modwerk-base-model-cycles/modwerk-base-model-cycles-7b0c96d9.elemod"
}
}
],
"mods": []
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"schema": 1,
"kind": "elekloader-catalog",
"revision": "modwerk-base-model-cycles-2026-11-30-machine-table",
"about": "Modwerk's Model:Cycles base for OS 1.13 (23a7a53a): the own core of dda53ffd with the machine table mw_machines and the machine switches mw_machine_switches, built by npm run machine:base -- model-cycles.",
"cores": [
{
"file": "modwerk-base-model-cycles-23a7a53a.elemod",
"sha256": "23a7a53adc9602a2c39ce166cff7690ec812a76bdef555892cabbce5be31ca5a",
"id": "core",
"version": "0.3",
"device": "model-cycles",
"os": "1.13",
"license": "GPL-2.0-or-later",
"source": {
"repo": "repeat98/modwerk",
"commit": "ae27557afc9ef6b22febefb2201c325366d6a726",
"path": "sdk/imports/packages/modwerk-base-model-cycles/modwerk-base-model-cycles-23a7a53a.elemod"
}
}
],
"mods": []
}
Loading