Repository navigation
Attack 0.1.0-experimental for Model:Cycles OS 1.13 - #2568
Merged
repeat98 merged 7 commits intoDec 3, 2026
Merged
Conversation
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>
…at once Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
durchgemacht
marked this pull request as ready for review
December 3, 2026 10:55
repeat98
approved these changes
Dec 3, 2026
repeat98
left a comment
Owner
There was a problem hiding this comment.
Approved for the first release (owner). Source reviewed, module:doctor green, and base 6ecdd4b9 rebuilds byte for byte from OS 1.13 here. I waive the second unit: your unit run is enough for this release.
repeat98
added a commit
that referenced
this pull request
Dec 3, 2026
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>
This was referenced Dec 3, 2026
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.
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.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..elemod(sdk/imports/packages/attack/, pinned bysdk/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).Build, size, screenshots
attack.mwrm: 4,604 bytes, 2 records (mw_voice_hooks,mw_sound_word), no stock site, SHA-256140442ee…; code 376 bytes, tables and pictures 3,961, state 96. The.elemodfor the site:1b099c7d…. Image AT12 (base 50a44d75 + this package) has the same main OS as AT10, which ran on the unit.media/capture.json). On the Model:Cycles a set bit in that answer is a dark pixel.npm run test:procedureran 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
attack.mwrmover USB, kept; attack 60, 120, 0 on a TONE track, GATE offGuides: 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