Skip to content

Mute Modes 0.2.3: answers ev_trig_muted (#777) - #1652

Merged
repeat98 merged 29 commits into
repeat98:mainfrom
Zac-Kyoti:mute-modes-0.2.3
Nov 24, 2026
Merged

repeat98 merged 29 commits into
repeat98:mainfrom
Zac-Kyoti:mute-modes-0.2.3

Conversation

@Zac-Kyoti

@Zac-Kyoti Zac-Kyoti commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

@repeat98 Mute Modes 0.2.3, as you asked on #777: Mute Modes answers ev_trig_muted. The CPU price and the performance record are in (19 November, my MKI), and base 0.8 (#1910) already admits this package as a table owner, so nothing is left on my side; the branch is merged with today's main.

What changes for players

In OTFX-T and DT-T, a machine that starts its own note from a trig (FM Synth) can ask which tracks' new trigs are dropped, so a muted FM track stays silent too once FM Synth 0.1.4 asks. Audio tracks behave as before.

How

  • mm_trig_muted (runtime.json: ev_trig_muted, order 50) is fresh_bind's per-track test applied to the whole mute word at once: in OTFX-T and DT-T, the muted tracks, or with any track soloed the tracks that are not, less a SIDE-CHAIN key track (KEYMASK). OT and OTFX answer 0. At most 16 instructions per ask (34 through the base's raise).
  • A first draft asked mm_voice_bind for all eight tracks so the two could not disagree, but that cost 305 instructions per ask, and FM Synth asks once per trig in the frame interrupt. The test below keeps the guarantee instead.
  • Under MODWERK_EVENTS only: the native units don't change.
  • Source: Zac-Kyoti/octatrack-kyoti-fw 00897f0 (sdk/imports/mute-modes-00897f0.json).
  • Package: d460c7e2… (2,922 B), the same bytes from build.py --octabam-tables and octatrack:module-packages. The packages are rebuilt with build-modules-isolated.sh from this branch and imported; Tape Echo's and Euclid's recipes are re-pinned.

How I checked it

  • Emulator (sdk/tests/test_mute_modes_runtime.py): after every frame of every MUTE MODE, mute/solo state and KEY layout, with and without an ev_mute_keep provider, modwerk_raise_ev_trig_muted answers exactly the tracks whose reset mm_voice_bind dropped in that frame. 244 asks (94 non-zero), 0 failures; d2-d7/a2-a6 and the stack kept. A mask without KEYMASK, or without the solo term, fails. The fixture's new checks are base files, so they come in their own pull request after this one (with the events.json / HOOKS.md subscriber row).
  • Native probe (qualification/run.py in the toolchain container, Linux ot_emu at mc68k 4a6d0d17): probes.json and source-identity.json byte-identical to 0.2.2's.
  • Hardware, MKI, 16 November 2026 (Zac Kyoti): no beta access needed, as you said.
    • The Modwerk base came from a dev build of the site. A dev twin of base 0.7.5 with 0.2.3 as table owner (4b375949…) was RAM-booted over USB, and the release package installed through the session.
    • Passed: all four modes with a muted track, solo in DT-T, persistence across a power cycle (the twin restored the module from the card, still on DT-T), and removal.
    • The five screenshots are the unit's LCD read over USB (media/capture.json).
    • Not run: a machine that asks (no FM Synth 0.1.4 package yet), a muted SIDE-CHAIN key (Sidechain's package is bound to the flashed base), an MKII.
  • CPU price, MKI, 19 November 2026 (Zac Kyoti): resources.cpuPrice 1.7, the pending line gone.
    • Development twin fc4b7abd of base 0.7.9 with 0.2.3 as the PERSONALIZE table owner (the beta flags plus --dev, the empty-row pass, then --controller-policies / --controller-layout), RAM-booted; my project's A02 (12 steps) playing.
    • npm run device:price -- mute-modes, nothing muted, MUTE MODE at the installed default: frame interrupt +1.7 (48.9 → 50.6 %) and, again, +1.5 (49.2 → 50.7 %); CPU +1.8 and +1.4. No render skipped; each trial rolled back.
    • The muted case: T1-T4 muted, stock's mute 49.3 % (CPU 61.3); Mute Modes in OTFX-T 33.9 % (CPU 46.9), because muted tracks start no new notes. So the price is the unmuted case. During that trial unmuting T2/T3 while playing brought each back at its next trig, and repeated mutes and unmutes of T1-T4 brought every track back.
  • Load and stress (evidence/performance.json, stamped; perf:audit -- check passes; ot_emu, not hardware): the module-alone native image (006aca91…, the same bytes from this source and 0.2.2's) against the original OS under Direct Jump Kyoti's 15 s MIDI flood (1,000 messages/s, clock at 250 BPM), its CC 49-51 (track mute/solo/cue) moved to 46-48 so the scene's mutes hold, with T1-T4 muted in OTFX-T, T4 toggled every second, a Part change and back, STOP/PLAY and a switch to OT and back: longest frame interrupt +6.7 µs (1.8 % of a frame), idle -0.2 points, 0 dropped, no hang. 12 pairs across every MUTE MODE: -5.9 to +6.7 µs.
    • evidence/performance.json is part of the native source inventory, so writing it moved tests.qualification.sourceSha256; I set it to the new inventory hash. Only that file changed among the hashed ones (TESTING.md and the manifest are outside it; git diff 825067c28 shows no other file in the module folder).
  • Merged with main at 4c15a84f0 (23 November), after base 0.8 and the move to sdk/octatrack/modules/. Generated assets were taken from main and rebuilt with build-modules-isolated.sh; d460c7e2 is unchanged and octatrack:module-packages -- --check reports every package identical.
    • Main backfilled 0.2.2's price (1.2, your MKII, evidence/cpu-price.json) into this folder. 0.2.3 keeps its own MKI reading (1.7, source TESTING.md), so I dropped the duplicate cpuPrice from this version's manifest; the 0.2.2 record stays in the folder untouched (the catalogue ignores it for 0.2.3, as its version differs). If you'd rather have 0.2.3 measured with device:price -- --write, I can run it on the MKI.
    • The mute-modes source pins in candidate-recipes.json are re-taken for the 0.2.3 files; the native source hash is unchanged (3d629451).
    • npm run pr:ready: passes.

Owner steps

  1. Table owner: approved for d460c7e2 (declaration 334e3290…); table-owners.json points at your comment.
  2. Base rebuild: base 0.8 (Octatrack base 0.8: playback admission, saved effects, restore outcomes, stock OS fixes and screen capture, with FM Synth 0.1.5 and Tape Echo 0.1.9 #1910) admits 0.2.2 and 0.2.3.
  3. Release approval: no waiver; the price and the record's benchmark and stress rows are measured (above).

Edge cases

Case Why this change makes it a risk How run Result
ev_trig_muted disagrees with the trigs Mute Modes drops the answer is a second copy of fresh_bind's per-track test emulator: loader_mute_keep_fixture, an ask after every frame across every MUTE MODE, mute/solo state and KEY layout (244 asks, 94 non-zero) pass (emulator)
a SIDE-CHAIN key track muted in DT-T / OTFX-T KEYMASK must keep its trigs in the answer too emulator (as above) pass in the emulator; not run on a unit: Sidechain's package was bound to the flashed base
OT and OTFX the answer must be 0 so a machine plays as stock emulator (as above) pass (emulator)
FM Synth muted in DT-T / OTFX-T, next trig after unmuting the first machine that asks on a unit with FM Synth 0.1.4+ beside this package not run: no FM Synth package that asks was available to me, and in your #1910 run the combined set was refused on the MKII
upgrade from 0.2.2 in a saved set a changed table owner could strand a saved package your #1910 run: both packages installed and rolled back on the MKII pass (reported in #1910)
every MUTE MODE with a muted track, solo in DT-T the package replaces 0.2.2's on the unit MKI, dev twin 4b375949, 16 November pass
power cycle and RAM re-boot the table owner is restored from the card MKI, as above pass (MUTE MODE kept)
removal while PERSONALIZE is open the table owner's menu is live MKI, as above refused (refusal 7), as the guard intends; removal from the main page: pass
load: playing, nothing muted; T1-T4 muted in OTFX-T the answer runs once per asked trig in the frame interrupt MKI device:price, dev twin fc4b7abd, 19 November; ot_emu MIDI flood pass (+1.7 / +1.5 points; flood +6.7 µs, 0 dropped)
MKII Mute Modes' sites are the same OS 1.40C addresses on both your #1910 trial install and rollback: pass (reported in #1910); playback not run: the combined set was refused there

Tested on a unit: package d460c7e2, MKI, OS 1.40C: dev twin 4b375949 (16 November 2026: every MUTE MODE with a muted track, solo in DT-T, a power cycle, removal) and dev twin fc4b7abd (19 November 2026: CPU price, OTFX-T with T1-T4 muted and unmuted while playing).

What the guides lacked

Guides: three things from the hardware run, fixed in #1653 (merged):

  • On an MKI the session's PROJ / MIXER / arrow codes (MKII codes) do nothing, though track keys work.
  • The png step does show stock menus.
  • Removing a table owner with its menu open is refused with refusal 7, whose text speaks of tracks and effects.
  • New from this round: modules:check says "qualification source SHA-256 differs from current native source; remeasure and retest this source" after only evidence/performance.json changed, because evidence JSON is in the native inventory. The message reads as a code change; it could name the changed file (the performance stamp already leaves evidence/ out).

Related to #777.

  • I read the guide for its category in docs/module-guides/, and TESTING.md lists what I did not test.
  • Source and media are mine or properly licensed, with authors and full licence texts kept. Nothing comes from Elektron firmware.
  • Screenshots are real captures of the current module UI. Hardware results are what a named person saw on this exact build; emulator results are labelled as emulator results.

🤖 Generated with Claude Code

Zac-Kyoti and others added 7 commits November 13, 2026 15:15
…er-track test (repeat98#777)

- mm_trig_muted (MODWERK_EVENTS only) asks mm_voice_bind for tracks 7..0;
  OT and OTFX answer 0. runtime.json subscribes it at order 50.
- Source: Zac-Kyoti/octatrack-kyoti-fw 19f9dae (sdk/imports/mute-modes-19f9dae.json).
- loader_mute_keep_fixture: on the events base, every frame's ev_trig_muted
  answer equals the resets Mute Modes dropped (244 asks, 94 non-zero; d2-d7/a2-a6
  and the stack kept); 0 with nothing or only the ev_mute_keep provider installed.
- events.json / HOOKS.md: Mute Modes is ev_trig_muted's reviewed subscriber.
- Not yet: qualification for 0.2.3 (needs the USB run), table-owner declaration
  and base (after repeat98#1418), packages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	scripts/module-source.test.mjs
… 305); fixture counts them

- Source: Zac-Kyoti/octatrack-kyoti-fw d218778 (sdk/imports/mute-modes-d218778.json replaces the 19f9dae draft).
- loader_mute_keep_fixture reports the most instructions one ask takes, through the base's raise (34) and the
  handler alone (16); each ask still equals the resets mm_voice_bind dropped that frame (244 asks, 0 failures).
- events.json / HOOKS.md describe the mask.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ve probe identical to 0.2.2's); ev_trig_muted cost

- qualification/run.py in the toolchain container (Linux ot_emu at mc68k 4a6d0d17; emac, periph,
  mc68kColdFireTimingTest, mc68kColdFireDivideTest pass): probes.json and source-identity.json byte-identical to
  0.2.2's, since the native units do not change; sourceSha256 e230e4e7.
- The ColdFire row adds ev_trig_muted's asks: 34 instructions at most through the raise, 8 per block, 4,352 cycles.
- Still to do before release: UI captures and the hardware block from the USB run on the author's MKI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nit, qualification, package d460c7e2

- Source: Zac-Kyoti/octatrack-kyoti-fw 00897f0 (sdk/imports/mute-modes-00897f0.json).
- Hardware: the author's MKI, base flashed from a dev build of the site, a dev twin of base 0.7.5 with 0.2.3 as table
  owner booted from RAM, the release package installed over USB: every mode, solo, power cycle, removal passed.
- media/: the unit's LCD read over USB (png step), PROJECT > SYSTEM and MUTE MODE at OT/OTFX/OTFX-T/DT-T.
- Package d460c7e2 (2,922 B); 0.2.2's removed. Table-owner declaration and recipe for it (334e3290...), approval
  PENDING the owner; the base rebuild follows repeat98#1418.
- The hooks registry row and the fixture's ev_trig_muted checks move to their own pull request (base files).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s commit and imported; Tape Echo and Euclid recipes re-pinned

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
repeat98 pushed a commit that referenced this pull request Nov 17, 2026
… owner removal with its menu open) (#1653)

Seen on Zac Kyoti's MKI while testing Mute Modes 0.2.3 (#1652), 16 November 2026.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@repeat98

Copy link
Copy Markdown
Owner

Table owner approved for package d460c7e2e4b44bffd61d5a76eae1bfbfcef8f8b497c9c37cbdfb48612f537cdc (declaration SHA-256 334e32907136c79f53c0b732d739ba3f5368a53fc03dde675f3bf6475cc92f4d): replace the PENDING line with a pointer to this comment. No waiver this time: please run npm run device:price on your MKI and put the numbers in the performance record. The base rebuild follows #1418 as agreed.

Zac-Kyoti and others added 3 commits November 18, 2026 21:51
# Conflicts:
#	sdk/machines/octatrack/module-adapters/standalone-recipes.json
#	src/engine/assets/bootstrap-package.json
#	src/engine/assets/coldfire-packages.json
#	src/engine/assets/descriptor-recipes.json
#	src/engine/assets/dsp-packages.json
#	src/engine/assets/menu-recipes.json
#	src/engine/assets/module-build.json
#	src/engine/assets/platform-writes.json
#	src/engine/assets/requested-packages.json
#	src/engine/assets/resident-dsp.json
#	src/engine/assets/rom-packages.json
#	src/engine/assets/usb-audio-packages.json
#	src/engine/assets/utility-packages.json
 comment 6971850708)

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

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

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for recording the table-owner approval and rebuilding the packages.

One thing is still missing before this can leave draft: the CPU price. The module check fails on sdk/octatrack/modules/mute-modes/evidence/performance.json, which still needs the stock benchmark (stock and module longest frame, idle percent and the method) and the stress run. Please run npm run device:price on your MKI as in my comment from 18 November, put its numbers in the record, then run npm run module:doctor -- mute-modes until it is green and npm run pr:ready.

The other red test, the stale Octatrack base, comes from the new table-owner package. It clears when the base is rebuilt with this package, so leave that one for now.

Zac-Kyoti and others added 3 commits November 19, 2026 16:57
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…lood

device:price on the author's MKI, development twin fc4b7abd with 0.2.3 as
the PERSONALIZE table owner: +1.7 and +1.5 points of the frame interrupt
installed, nothing muted; with T1-T4 muted in OTFX-T 33.9 % against stock
mute's 49.3 % (muted tracks start no new notes). The pending-price line
goes. performance.json: load and stress from ot_emu under Direct Jump
Kyoti's flood (OTFX-T, mutes, Part change, STOP, bypass): +6.7 us (1.8 %
of a frame), idle -0.2, 0 dropped, no hang; stamped. The qualification's
source hash follows: performance.json is in the native inventory, no
code changed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-tools 2c78cdad); contents unchanged, source stamps only

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Zac-Kyoti
Zac-Kyoti marked this pull request as ready for review November 20, 2026 01:08
@Zac-Kyoti

Copy link
Copy Markdown
Contributor Author

@repeat98 The price and the performance record are in, so this is out of draft:

  • CPU price 1.7 (device:price on my MKI, dev twin fc4b7abd with 0.2.3 as table owner, nothing muted: +1.7 and +1.5 in two runs). With T1-T4 muted in OTFX-T, Mute Modes reads about 15 points below stock's mute, because muted tracks start no new notes.
  • Stock benchmark and stress: ot_emu under Direct Jump Kyoti's MIDI flood, in OTFX-T with mutes, a Part change, STOP and a bypass: +6.7 µs (1.8 % of a frame), idle -0.2, 0 dropped, no hang. Stamped.
  • performance.json is part of the native source inventory, so writing it moved the qualification's source hash. I re-pinned it; no code changed (details in the description).

Main is merged and the packages are rebuilt; d460c7e2 is unchanged. Left red: the stale base (your rebuild with this owner) and playmodes (#764).

@repeat98

Copy link
Copy Markdown
Owner

@timhastie, which commit or PR builds the FM Synth USB package that calls ev_trig_muted? I’m preparing the base for Zac’s tested d460c7e2 package. With your build I can replay #777 on an FM track in DT-T and OTFX-T and check that the next trig plays after unmuting. The published 0.1.4 package contains the CPU-price change from #1698.

Zac-Kyoti and others added 3 commits November 23, 2026 21:53
….2.3

Generated assets from main (rebuilt next); main's table owners (0.2.2 + 0.2.3);
the 0.2.2 cpuPrice backfill dropped from this version's manifest (0.2.3 keeps its
own MKI reading); mute-modes recipe pins re-taken for the 0.2.3 sources.

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@repeat98
repeat98 enabled auto-merge November 24, 2026 07:37
@timhastie

Copy link
Copy Markdown
Contributor

@repeat98, there is no published build of the full-engine update yet. The ev_trig_muted caller is in my local candidate's fm_port_render, but that candidate uses the older development base and still depends on ev_engine_job, the copying-post export and the queued/running-job Undo fix discussed in #1272. It is not ready for a combined-set replay on the current base.

The released FM Synth 0.1.5 is your CPU/idle update; the full-engine port remains separate. Scale Quantizer 0.1.5 is now refreshed in #1886. I will provide the FM commit and package for the DT-T/OTFX-T and unmute checks when the port is ready.

@Zac-Kyoti

Copy link
Copy Markdown
Contributor Author

@repeat98 Since the FM build is still a while off, could 0.2.3 merge now, with the FM replay of #777 following once Tim's package is ready?

  • Until a machine asks ev_trig_muted, 0.2.3 changes nothing on the unit. The answer is built only under MODWERK_EVENTS, and the native units are byte-identical to 0.2.2's.
  • The answer is checked in the emulator against the trigs Mute Modes actually drops: 244 asks across every MUTE MODE, mute/solo state and KEY layout, 0 mismatches.
  • The package passed on my MKI (every MUTE MODE, solo, power cycle, removal, CPU price), and your Octatrack base 0.8: playback admission, saved effects, restore outcomes, stock OS fixes and screen capture, with FM Synth 0.1.5 and Tape Echo 0.1.9 #1910 run installed and rolled it back on the MKII.
  • The branch is merged with main (4c15a84f0), every check is green, and the description now has the edge-case table, with the FM case marked "not run" until that build exists.

When Tim's package is out I'll run DT-T / OTFX-T with a muted FM track and the unmute check on the MKI, and report back on #777.

Zac Kyoti

@repeat98
repeat98 merged commit 2062308 into repeat98:main Nov 24, 2026
13 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.

3 participants