Skip to content

Attack 0.1.0-experimental for Model:Cycles OS 1.13 - #2572

Merged
repeat98 merged 4 commits into
mainfrom
module/model-cycles-attack
Dec 3, 2026
Merged

repeat98 merged 4 commits into
mainfrom
module/model-cycles-attack

Conversation

@repeat98

@repeat98 repeat98 commented Dec 3, 2026 •

Copy link
Copy Markdown
Owner

Attack 0.1.0-experimental for Model:Cycles, on main. This is durchgemacht's #2568, unchanged. The owner approved it on 3 December 2026 and waived a second unit. It was merged into base/model-cycles-next and reverted there, because a module ships on main in its own pull request once its base has shipped. That base, 6ecdd4b9, shipped in #2319. The only additions are two tests: the All machines library counts the Model:Cycles' build link (6), and module release notes cover the Model:Cycles.

Who must act: nobody: the owner approved it and asked for it to merge once CI is green. The owner released durchgemacht's claim from #2568 on the board.


durchgemacht's description from #2568:

Attack 0.1.0-experimental, the first module for the Model:Cycles: adds Attack to every track, up to 3 seconds. Hold MACHINES and turn DECAY. It uses the voice hooks and the sound word of #2497, which is merged into base/model-cycles-next, the branch this goes to.

  • What works: hold MACHINES and turn DECAY to set ATK from 0 to 127, up to 3 s, on every track and every machine; 0 plays the machine's own start, as stock. P-locks, the LFO, velocity, Control All and MIDI CC 73 reach it, and the sound saves it (k 31, record slot 31). The display shows Amp Attack on two lines, as stock's Amp Decay, with an envelope for the value from the module's own 14 pictures (src/gen_pictures.py, no stock pixels): the rise slants further the higher you turn it. A retrig on a track that still sounds is held back 2 ms while the old note fades on an S curve, then plays as stock's from silence, so a slow rise does not start with a hard cut. With GATE on, a note that ends during the rise decays from the level it reached: stock's envelope (0x400a9252) notes the note's end in every stage but reads it only at the top, so a short note would play the whole rise and then the decay. GATE off plays out, as stock.
  • How it reaches the unit: both ways the base offers. Built into the image from its .elemod (sdk/imports/packages/attack/, pinned by sdk/imports/elekloader-attack-2026-12-01.json), so the site's builder can take it and it stays through a power cycle; or loaded over USB as a runtime package for a trial. Both need what Model:Cycles base: P1-P4, voice hooks and a sound word, and added machines read as CHORD on the stock OS #2497 brought: every table read from the build as well as from the loader's row (base 50a44d75), and a full p-lock file still saved as CHORD where stock reads (base 6ecdd4b9).
  • What is broken: nothing known. After a trip to stock 1.13 the project that is still open has no attack; load it from the list before you save and the values are back.
  • What it means musically: swells on pads and drones, softer starts on a busy pattern, a single hit that fades in with a lock, evolving swells with the LFO on ATK. With GATE on it behaves like an ADSR's attack: short notes stay short.
  • Ran on a unit: yes, my own Model:Cycles on OS 1.13, images 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.
  • Next: the Track FX on k 28 to 30.
Build, size, screenshots
  • Package attack.mwrm: 4,604 bytes, 2 records (mw_voice_hooks, mw_sound_word), no stock site, SHA-256 140442ee…; code 376 bytes, tables and pictures 3,961, state 96. The .elemod for the site: 1b099c7d…. Image AT12 (base 50a44d75 + this package) has the same main OS as AT10, which ran on the unit.
  • Screenshots of the display at 0, 64 and 127 are the unit's own answers to Elektron's screenshot request over USB, 6× in two greys (media/capture.json). On the Model:Cycles a set bit in that answer is a dark pixel.
  • npm run test:procedure ran on AT12 with --package: Modwerk's own image writer does not seal the Model:Cycles OS yet. Its unit steps are not run: Model:Cycles has no USB link the procedure drives yet.

Tested on a unit: image MX01 (base 6ecdd4b9 with this package linked in beside my MAXSAW, not submitted yet) with the same module also loaded over USB: plays as with one copy. Image AT13 (base 6ecdd4b9 with this package linked in): boots, shows Amp Attack on the display, an attack saved in a project plays again after a project change; three tracks with different attacks at the slowest and fastest tempo; a saved attack over stock 1.13 and back. Image AT10 (base 50a44d75 with this source linked in; the same main OS as AT12): with GATE on a short note plays part of the rise and decays from there, a long one rises, holds and decays on release; with GATE off the rise and decay play out. Image AT08 (the source before the GATE handling, linked in): Amp Attack on the display without USB, and after a saved project and a power cycle the attack is still there. Image AT09 (the base alone): MACHINES + DECAY turns DECAY; with the package loaded over USB and kept, the display shows Amp Attack. Earlier bases with the same rise and fade: sounds swell up to 3 s, 0 plays as stock, a held-back trig without a hard cut, p-lock, LFO, CC 73, save and load; without the module CC 73 does nothing.

Edge cases

Case Why this change makes it a risk How run Result
A retrig on a track that still sounds the module holds the trig back 2 ms and fades the old note by ear, attack about 0.55 s, then 0 pass
GATE on: a short and a long note the module ends the rise when the note ends AT10, attack about 100, medium decay pass
GATE off: a short note must stay stock's AT10 pass: rise and decay play out
GATE on, trigs on back-to-back steps the rise meets the next trig early AT10, AT08 and stock 1.13 as stock 1.13 plays them (artefacts on some sounds there too)
Saved project and a power cycle the word lives in slot 31; the module must come back AT08: attack about 90, saved, power off and on pass
Without the module MACHINES + DECAY and CC 73 must stay stock's AT09; an earlier base after a restart pass
Over USB on the base alone the loader's row as well as the build's AT09 + the package, kept pass
A sound with attack above 0 under stock 1.13 and back stock reads k 31 nowhere AT13, stock 1.13, AT13, nothing saved in between pass: stock loads the project and plays it without the rise; back on the base the open project has no attack until it is loaded from the list, then 0, 60 and 120 are back
Linked in and loaded over USB at once both copies' hooks run MX01 + attack.mwrm over USB, kept; attack 60, 120, 0 on a TONE track, GATE off pass: plays as with one copy. From the code: the linked copy runs first and holds the trig back; the other sees it once the track is silent
Several tracks with different values, slowest and fastest tempo per-track state AT13, three TONE tracks with 0, 60 and 120; one turned to 0 while playing pass: each keeps its own rise

Guides: nothing said how to take screenshots on the Model:Cycles; I used the stock screenshot request over USB, and #2529 added that to docs/MODULE_UI_CAPTURES.md.

🤖 Generated with Claude Code

repeat98 and others added 4 commits December 3, 2026 16:15
… base

durchgemacht's Attack (#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 (#2319).

Co-Authored-By: durchgemacht <15388868+durchgemacht@users.noreply.github.com>
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>
@repeat98
repeat98 marked this pull request as ready for review December 3, 2026 16:02
@repeat98
repeat98 enabled auto-merge December 3, 2026 16:02
@repeat98
repeat98 merged commit 147ebc9 into main Dec 3, 2026
12 of 22 checks passed
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.

1 participant