Repository navigation
Model:Cycles base 6ecdd4b9: preview for everyone - #2319
Merged
Merged
Conversation
…s own sites (held-sites.h from machine:base), and the paused guard sized to 2 x TASKS (from the Rytm's review on #1934) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ompiler, the host stand-in named Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 27, 2026
The base owns mw_machines (events.json index 6): eight machine slots, 6 to 13, after the six stock machines. A machine module contributes one struct mw_machine (include/mc/machine.h) from its runtime package and claims its slot as machine:<slot>. A slot whose module is gone reads "----" and stays silent, and plays again once the module is back; without a machine module every stock flow is as it was. mw_machine_switches (index 7) lets a machine take PUNCH and GATE as switches: MACHINES held + PUNCH or GATE on a track that plays it flips the switch instead of the stock parameter, the LEDs show the switches while MACHINES is held, and the list opens on the release if no switch was flipped. The switches live in k 32 and are saved with the sound. The record reserves four params for a machine's own parameters (k 23-26 in a later base), so there is one record format; the base does not read them yet. include/mc/sound.h names the words the base adds to a sound and k 32's fields, kept apart by _Static_assert; 0 is "as stock" everywhere. Release base 23a7a53a (94 .boot, 46512 .run, 125060 .bss, 126 sites), flashed on a unit: SINE on trial plays, its switch, saved and loaded, removal and return as recorded in docs/verification. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…achine-table-core
…ase/model-cycles-machine-table-core
With main and base/model-cycles-next merged (a runtime module never patches over the base's own sites), the release base is 7b0c96d9: 94 .boot, 47540 .run, 125060 .bss, 126 sites. Flashed on a unit: set CRC 0xad8b9c8d, SINE kept and played with its switch from a saved project. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…achine-table-core
…model-cycles-next Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#2394) into base/model-cycles-machine-table-core The Model:Cycles sources are unchanged by the merge: the base still builds as 7b0c96d9 (94 bytes .boot, 47,540 .run, 125,060 .bss, 126 sites), matching base-binding.json. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The four params the machine record reserved become real parameters of the OS on k 23-26 (params.c, params.s): MACHINES held + COLOR, SHAPE, SWEEP or CONTOUR turns P1-P4 (descriptors 10-13), with FUNC, Control All, p-locks (rows 24-27) and the LFO; MIDI CC 20-23 set them through the machine CC rows (places 4-7). The popup shows the name, label and range of the selected track's machine; a param without a name shows "---" as on a stock machine, MW_PARAM_HIDDEN keeps a word for the machine's own use. The sound record saves P1-P4 unchanged in slots 24-27 (no XOR: on a load the module may not be there yet to know its defaults); a change to an added machine sets its params to their defaults instead. An LFO's or velocity's destination on a param goes to the low byte of slot 4, where OS 1.13 writes 0 and reads nothing. examples/sine.c takes Tune, Fold and Sub. Release base af9b5c71 (PP02, 51008 .run) on a unit: knobs, p-locks, LFO, save and load, CC 20-23, CC 120/121/123, copy and paste, kit reload, presets, a project through Transfer and back, machine change. Incoming NRPN does nothing on stock 1.13 (0x4000ecb6 is empty), so P1-P4 have none. The held sites follow with the binding. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A project with one track on an added machine (6-13) froze stock 1.13 when MACHINES opened: the list's snapshot of all six tracks (0x400a2404 -> 0x400148dc -> 0x4004df5c) takes the record of a machine above 6 from before the record table. The knob lookup (0x4001e814) reads 104(a2)[machine] with no bound, from the sound or, with a trig held, from the step's lock of k 9. As the Octatrack's base keeps a module machine's track FLEX and marks it apart, fallback.c saves an added machine as CHORD where stock reads it and keeps the real number where stock does not: - a sound record: slot 9 CHORD, slot 0 (k 0, read by nothing) holds 0x4d00 | machine; a load puts the machine back where both match. - a pattern's p-locks (after 0x4005b95c, 0x4005ba90; 0x4005b766 on a load): the row of k 9 holds CHORD on each step locked to 6-13, a row of index 33, which stock's load drops, the real values. Stock plays CHORD and a stock save keeps CHORD for good. The stock OS also writes its working state back without a save, so a project used on stock comes back as CHORD. Release base 841c3411 (PP03, 52076 .run) on a unit: a track on SINE and a p-lock to SINE saved, then on stock 1.13 MACHINES, a held trig and a knob freeze nothing and both play CHORD; on PP03 both survive saving and loading. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The release base is 841c3411: 94 .boot, 52076 .run, 125172 .bss, 136 sites. Flashed on a unit as PP03 (set CRC 0x9982f855): a track on SINE and a p-lock to SINE survive saving and loading; on stock 1.13 the same project freezes nothing and plays CHORD. The params before it, af9b5c71, through the owner's list of checks (docs/verification). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A base site holds at least 6 bytes (test_machine_base.py), and the knob lookup's vtable entry (0x401005a8) has 4. ParameterPageView's knob lookup (0x4001e814), which only that vtable reaches, now starts with a jmp to mw_param_knob; mw_param_knob_stock runs the two replaced instructions (lea -52(sp),sp ; moveq #13,d0) and goes on into stock's body. The release base is 12c3fee4: 94 .boot, 52088 .run, 125172 .bss, 136 sites. Flashed on a unit as PP04: P1-P4 on the knobs with their names, "---" on CONTOUR, a p-lock of Fold, KICK's COLOR as stock. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two tables of the registry, so that a module can change how every track plays, whatever its machine, and nothing changes without one: - mw_voice_hooks (index 8, room 8, 12-byte records): every block, for each track, `before` ahead of the machine's update and `updated` after it, with the voice and the smoothed parameters (p-locks, LFO, velocity in them). No new stock site: mw_update, which the base owns, switches to mw_voice_update while a record is in the row and back without one. - mw_sound_word (index 9, room 1): one module owns k 31 of every sound and names it. While it does, MACHINES held + DECAY turns the word (FUNC, Control All, p-locks, LFO) and CC 73 sets it; without it MACHINES + DECAY turns DECAY and CC 73 writes nothing (descriptor 4's range is 0 .. 0). The base keeps the word in record slot 31 either way, its LFO and velocity destinations as 5 in slot 4's low byte. The Track FX keep k 28 .. 30 (slots 28 .. 30): k 31 is the word's. Release base 49e751ef (AT02, 53701 .run) on a unit with an Attack module built against it: without the module MACHINES + DECAY and CC 73 as stock; with it the word on MACHINES + DECAY, p-locks, the LFO, saving and loading, CC 73. Known: the LFO's destination list shows "----" for descriptor 4 (and for P1 .. P4, since the params) on a machine that has none; to be filtered. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…owner Descriptor 4 (k 31) and 10 .. 13 (P1 .. P4) were LFO and velocity destinations of every machine, so the DEST list showed "----" for each on a machine without them, without any module too. The OS builds that list when the page opens, from the descriptors' flags, so the base now sets the flags (+0x24, 0x600) only where there is an owner: P_i where the selected track's machine has it, k 31 while a module owns the word. On a unit as AT03: without a module the DEST list on TONE has no "----" and no ATK; with the Attack module ATK is in it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Model:Cycles guide and the machines guide name mw_voice_hooks and mw_sound_word (k 31 on MACHINES + DECAY and CC 73) and the new split of k 27-31; the LFO destinations follow their owners. Changelog, the base build 6723c268 and the unit record of checks 30-36. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e read from the build The sound word (mw_sound_word, ABI 2) can bring the knob's pictures: 50 x 22 Bitmaps (struct mw_bitmap), one picked by the value, drawn where Amp Decay draws its own (the interface object's std::function at +0x54, with the base's own stateless manager). The popup's long name breaks at its space, as stock's "Amp Decay". Each of the four tables (mw_machines, mw_machine_switches, mw_voice_hooks, mw_sound_word) is now also a collection of the base, so a module that contributes to one can be linked into the image as well as loaded over USB (base/tables.h reads the build's records first, then the loader's row). Until now such a module lived only until the next power cycle: the Cycles' loader saves nothing. The table check in test_machine_base.py, written with the table in #2479, now asks for both a collection and room. On a unit: the base alone (AT09) with the Attack module over USB, and Attack linked into the image (AT08) through a saved project and a power cycle (docs/verification/2026-11-23-model-cycles-base.md). Host tests: 43 pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e stock reads A pattern whose file had no record left for the row of index 33 kept the added machine in its row of k 9, which stock 1.13 reads, so the stock OS could open an added machine there (review on #2497). Now that row reads CHORD on every step that locks an added machine, whether or not row 33 finds room; without room the added machine is lost from the file, never a frozen stock OS. test_fallback.c checked the old behaviour for a full file; it now checks that the row of k 9 reads CHORD and that no row 33 was made, and the old code fails it. Host tests: 43 pass. On a unit (AT13, with the Attack module linked in): boots, the Amp Attack popup, a saved attack after a project change. The full file itself is not run on a unit. 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>
A rise time of up to 3 s for every track's sound, whatever its machine: hold MACHINES and turn DECAY (also p-locks, LFO, velocity, Control All, CC 73); 0 plays as stock. The popup reads Amp Attack and draws the envelope for the value, from the module's own pictures (gen_pictures.py). - The sound word (mw_sound_word) and a voice hook (mw_voice_hooks) of the Model:Cycles base 50a44d75; no stock site. - A retrig on a sounding track holds back 2 ms while the old note fades on an S curve, so a slow rise does not click. - With GATE on, a note that ends during the rise decays from the level it reached; stock's envelope reads the note's end only at the top. GATE off plays out, as stock. - Linked into the image on a unit, it stays through a power cycle; over USB too (TESTING.md). The package: sdk/imports/packages/attack. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
npm run test:procedure on image AT12 (the base 50a44d75 with this package linked in; its main OS is AT10's, which ran on the author's unit), with the edge cases that ran and those that did not. 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>
…params Model:Cycles base: P1-P4, voice hooks and a sound word, and added machines read as CHORD on the stock OS
…at once Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The only conflict, a docstring in scripts/machine-base.py, takes main's wording. The base still builds as 6ecdd4b9 from OS 1.13. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Attack 0.1.0-experimental for Model:Cycles OS 1.13
The owner released the Model:Cycles with base 6ecdd4b9 and its first module, and took one unit's run as enough: base, link, flash, loader and device tools are done; the Status page and the shared log stay started until they run on a Model:Cycles. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A module ships on main in its own pull request once its base has shipped (pr:ready's base gate, docs/DEVELOPER_WORKFLOW.md#change-a-base). Attack (#2568) comes back to main right after this base draft merges. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…sed Model:Cycles open Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
repeat98
marked this pull request as ready for review
December 3, 2026 15:09
repeat98
enabled auto-merge
December 3, 2026 15:14
ilia-murzinov
pushed a commit
to ilia-murzinov/modwerk
that referenced
this pull request
Dec 3, 2026
… base durchgemacht's Attack (repeat98#2568), unchanged: approved by the owner on 3 December 2026 and merged into base/model-cycles-next, then reverted there because a module ships on main in its own pull request once its base has shipped (repeat98#2319). Co-Authored-By: durchgemacht <15388868+durchgemacht@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Model:Cycles goes to preview: base
6ecdd4b9for everyone. The owner released it on 3 December 2026 with Attack as its first module, and took one unit's run as enough for this release. Attack (#2568) follows on main in its own pull request right after this merges: a module never ships in a base's pull request.6ecdd4b9with the chosen modules from the musician's own OS 1.13 file, and anyone can download it or send it over USB. Until now only beta testers could. P1-P4, voice hooks, the sound word, the machine table and switches (Model:Cycles base 7b0c96d9: the machine table and machine switches #2479, Model:Cycles base: P1-P4, voice hooks and a sound word, and added machines read as CHORD on the stock OS #2497) are in the base for the next modules.Tested on a unit: base 6ecdd4b9, durchgemacht's Model:Cycles on OS 1.13: image AT13 (this base with Attack linked in) boots, shows Amp Attack, keeps a saved attack through a project change and over stock 1.13 and back; MX01 (this base with Attack and MAXSAW) with Attack also loaded over USB plays as one copy. The link, the page's build and send, the loader and the MCP tools ran on release bases 4d4d91d2 and 646706ff (#2077, #2125, #2126).
Edge cases
test_machine_base.py)runtime.crefuses every held siteattack.mwrmkeptDigiBuildPanel.beta-downloads.test.ts,App.core-build-preview.test.tsStack, checks and what did not run
Stack (
machine.json, record): base, USB link, setup and updates over USB, loading without a reflash and device tools are done; the Status page and diagnostics stay started until they run on a Model:Cycles. A kept module lasts until the next power cycle; one that stays is built into the image.In it:
DIGI_DOWNLOADS_ENABLED['model-cycles']true, out ofDIGI_BETA_DOWNLOADSandCORE_BUILD_PREVIEWS; the Status page stays beta-only, as the Rytm's.Checks: the base rebuilds here as
6ecdd4b9byte for byte from the stock file (44fe5862…), before and aftermainwas merged in;sdk/tests/test_machine_base.pypasses; Attack'smodule:doctoris green;npm run checkpassed (the two Zoom tests that time out on this Mac on main too passed on the rerun).Not run on a unit for
6ecdd4b9: recovery through MIDI IN, a module kept over USB through a power cycle, two machine modules at once. The site's own build of6ecdd4b9with Attack was not compared byte for byte with AT13, which was linked with the kit-pinned Elekloader patcher.Left in: the branch vendors the seven intermediate base packages twice (about 4 MB); only
6ecdd4b9is bound.Guides: the rule that a stack piece is done only after a second unit had no word on an owner's waiver; the record names it for this release.
🤖 Generated with Claude Code