Skip to content

Control All Config 0.1.0-experimental for Model:Cycles OS 1.13 - #2580

Open
durchgemacht wants to merge 9 commits into
repeat98:mainfrom
durchgemacht:module/control-all-config
Open

durchgemacht wants to merge 9 commits into
repeat98:mainfrom
durchgemacht:module/control-all-config

Conversation

@durchgemacht

Copy link
Copy Markdown
Contributor

Control All Config 0.1.0-experimental for the Model:Cycles: choose which tracks follow Control All. Hold TRACK and press TRIG 1-6. It uses base 6ecdd4b9 as it shipped with #2319; no base change.

  • What works: hold TRACK and press TRIG 1-6 to take a track out of Control All or put it back; while you hold TRACK, TRIG 1-6 light for the tracks that follow. Knob turns, LFO destination and depth, PUNCH, GATE and the machine choice then skip the tracks that are out. The active track always follows, so the knob never seems dead. Added parameters (Attack's) and added machines are covered too, because they go through the same loops.
  • How it hooks in: keys through ev_key, lights through ev_key_leds and ev_tick. The OS applies Control All in five fixed loops over tracks 0 to 5 (0x4001d6f8, 0x4001d5a2, 0x4001ebd2, 0x4001ac7a, 0x400a2798); only this module needs them, so it patches them itself, 6 bytes each, with the stock bytes' SHA-256 as guard. It claims key:TRACK+TRIG1 to key:TRACK+TRIG6; TRACK + TRIG 7-16 stay free.
  • What is broken: nothing known. Volume and pan (hold TRACK, turn LEVEL/DATA) still change on all six tracks. The choice is not saved: when you switch the unit on, all six tracks follow.
  • What it means musically: change the drums together and leave the bass and the chords as they are.
  • Ran on a unit: yes, my own Model:Cycles on OS 1.13, image CC01, linked with the kit-pinned Elekloader patcher and flashed with Transfer. The tables in TESTING.md.
  • Who must act: a device reviewer or the owner reviews the first release.
Build and size
  • The .elemod (sdk/imports/packages/control-all-config/, pinned by sdk/imports/elekloader-control-all-config-2026-12-03.json): f777df2b…, code 528 bytes, state 4, 5 sites. Nothing runs in the audio path.
  • Image CC01: eb0e579f…, base 6ecdd4b9 with this package, Attack and my MAXSAW (not submitted yet). Base and this package alone link as well.
  • The screenshot is the OS's own display while TRACK is held and SWEEP is turned (image MX03, 1856201b…, with this same package): the module draws nothing, it shows its state on TRIG 1-6.
  • It is the Modwerk module of my standalone Control All Config 1.0, with the same behaviour, here under the GPL-3.0-or-later.

Tested on a unit: image CC01 (base 6ecdd4b9 with this package, Attack and my MAXSAW linked in): with tracks 5 and 6 taken out, DECAY, PUNCH, LFO destination and depth, Attack and the machine choice reach tracks 1-4 only. An earlier image of the same source on an earlier base: after a power cycle all six tracks follow again. Not tested: GATE (the same loop as PUNCH), loaded over USB.

Edge cases

Case Why this change makes it a risk How run Result
The active track is taken out the knob would seem dead CC01: track 5 out and active, DECAY with Control All pass: tracks 1-5 change, 6 does not
TRIG pressed before TRACK, let go after the module takes TRIG keys while TRACK is held and could swallow the release CC01: TRIG 1 down, TRACK down, TRIG 1 up pass: no note hangs, track 1 still follows
PATTERN held as well PATTERN + TRIG chooses a pattern CC01: PATTERN and TRACK held, TRIG 2 pass: track 2 still follows
FUNC held as well FUNC + TRIG is the OS's digiemu, the earlier image: FUNC and TRACK held, TRIG 6 pass: the module takes nothing (not a unit)
A parameter another module adds it reaches Control All through the base's knob lookup CC01: Attack to about 90 with Control All pass: tracks 1-4 only
An added machine the machine choice has its own loop CC01: MAXSAW chosen with Control All pass: tracks 1-4 play it, 5 and 6 keep theirs
Power cycle the choice lives in RAM the earlier image: tracks 5 and 6 out, power off and on pass: all six follow

Guides: nothing to add.

🤖 Generated with Claude Code

durchgemacht and others added 9 commits December 3, 2026 12:07
The Modwerk module of the standalone Control All Config 1.0: hold TRACK and press TRIG 1-6 to take a
track out of Control All or put it back; TRIG 1-6 show which tracks follow while TRACK is held. The
active track always follows; the choice lives in RAM.

- Keys through ev_key and the LEDs through ev_key_leds, so TRACK + TRIG 7-16 stay free for later
  modules. Claims key:TRACK+TRIG1 to key:TRACK+TRIG6.
- The five Control All loops, which only this module uses, are its own guarded sites (jmp, 6 bytes).
- 528 bytes code, 4 bytes state. Tested on a Model:Cycles (image 86c5f5cf) and in digiemu (TESTING.md).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Runs on the Model:Cycles base 6ecdd4b9, source unchanged. Image CC01
  (the base with this package, Attack and the author's MAXSAW) passed on the
  author's unit: knob turns, LFO, PUNCH and the machine choice skip the
  tracks that are out (TESTING.md).
- Shorter texts and a new thumbnail.
- The package: sdk/imports/packages/control-all-config.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…kage

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
npm run test:procedure on image CC01, with the edge cases that ran.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The package differs from the one before in its licence field only; image
CC01 linked from it is byte for byte the one that ran on the unit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Model:Cycles base 6ecdd4b9 is released (repeat98#2319). The module overview no longer
says that the base is in development and downloads stay off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The module rules ask every new module for a tutorial and a capture from the
unit. The module draws nothing, so the picture is the OS's own display while
TRACK is held and SWEEP is turned, and its caption says so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Attack is on main (repeat98#2572). The module overview lists both modules and no longer
says that the base is in development and downloads stay off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@durchgemacht
durchgemacht marked this pull request as ready for review December 3, 2026 17:29
@repeat98

repeat98 commented Dec 3, 2026

Copy link
Copy Markdown
Owner

Thanks @durchgemacht, this is a lovely one. Choosing which tracks follow Control All is just what the Model:Cycles lacks, and the code is small and easy to follow.

What works: the five loops, TRACK + TRIG 1-6, the lights and the active-track rule all ran on your unit beside Attack and MAXSAW. A power cycle clears the choice, and the package and catalogue pins check out. CI is green. I see nothing against the guidelines: it builds on the Model:Cycles' own Control All and uses no maker code.

What I need before merging (you, on your unit):

  1. A track in the middle taken out. Every unit test took out tracks 5 and 6, the last two. A skipped track rebuilds the stock loop's tail itself, so only a first or middle track would show a missed step. With track 1 active, take out track 2, then change DECAY, the LFO destination, PUNCH and the machine: tracks 1 and 3-6 should change, and 2 should keep its own values.
  2. Over USB, as with Attack. On the base alone, mc_link.py try the module, take a track out, turn DECAY and let the trial end: all six tracks follow again. Then once on CC01 with it linked in. A clean refusal is fine; a freeze isn't.
  3. TRACK let go first. In GRID RECORDING, hold TRACK, press TRIG 3, let go of TRACK, then TRIG 3: no step changes and no note hangs. Please also add one line to the README on what TRACK + TRIG 1-6 does on stock 1.13.

Add the rows to TESTING.md and the edge-case table, and I'll review it again and merge.

Code notes
  • cac_key clears cac_held on any TRACK event, so a TRIG taken while TRACK was held sends its release to the OS if TRACK goes up first. If case 3 misbehaves, leaving cac_held alone on TRACK fixes it.
  • If you rebuild anyway: the core exports fw_project, fw_project_tracks and fw_selection_active, so lines 17-19 of control_all_config.s can name those symbols instead of addresses.
  • While the unit is out: the Status page run I asked for on the agent board is the last thing Improvement: the Model:Cycles' Status page and diagnostics are done #2576 waits for.

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants