Skip to content

Base: ev_audio_step remapper at 0x400a2d6a (index 63). - #2271

Open
jonathanwardle1992-beep wants to merge 1 commit into
repeat98:mainfrom
jonathanwardle1992-beep:cursor/ev-audio-step-base-f021
Open

jonathanwardle1992-beep wants to merge 1 commit into
repeat98:mainfrom
jonathanwardle1992-beep:cursor/ev-audio-step-base-f021

Conversation

@jonathanwardle1992-beep

@jonathanwardle1992-beep jonathanwardle1992-beep commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Call hook room 8; Play Modes machine-port order 40 replaces pm_audio_step (native sources unchanged). Seq Pos listing tip order 50. Fork mop101/102.

A fix or improvement outside a module? Title it Fix: …, Improvement: …, Docs: … or Workflow: … (it is labelled from that), keep it to one change, delete everything below and answer these questions in plain words:

  • What was wrong or hard:
  • What this changes:
  • How I checked it: (npm run pr:ready and anything else you ran)
  • Tested on a unit: (a change to a built package or base: the exact build, the model and what ran; keep the pull request a draft until then, or write "Not tested on a unit:" and why)
  • Edge cases: (a change to a built package or base, draft or ready: below this line a table with one row a case, | Case | Why this change makes it a risk | How run | Result |, each result pass, fail or "not run: why" (a draft says what it has not run yet); or "none, because …". How to find them)
  • What the guides lacked or got wrong, and where I fixed it: ("nothing" is a fine answer)

A module or module update: describe the change in behaviour, module version(s), compatibility and source/media attribution. Run it through the test procedure and give its "Tested on a unit" line and its edge-case table under a line "Edge cases". Then say what the guides lacked or got wrong while you built it and link the Docs: pull request that fixes it, or write "nothing"; the module release itself stays free of guide edits.

Before you save this description, npm run pr:body -- FILE.md (add --draft for a draft) checks it as CI's describe check will.

The checks do the rest. npm run pr:ready (a registered author: npm run pr:ready -- --author <login>) runs what CI runs: the module contract, version and release notes, compatibility and UI claims, resource and qualification records, documentation and licences. A pull request with a red check is labelled needs-work and leaves the review queue until it is green; after 14 days without a new commit it is closed, and you can reopen it once it is green. Until your first module is published, one module pull request is reviewed at a time.

No check can prove these, so you vouch for them:

  • Changing a module someone else wrote: its author said yes before I started, and I link it here (a GitHub link, or Discord and the day). Ask the author first
  • I read the guide for its category in docs/module-guides/ (and sequencing.md if it acts in time), and TESTING.md lists what I did not test. An effect module holds one effect.
  • Source and media are mine or properly licensed, with authors and full licence texts kept. Nothing comes from Elektron firmware: no extracted code or tables, upgrade files or factory content, and nothing is modelled on another current Elektron product.
  • 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.

Registered module authors can opt into automatic publication after reviewing all the evidence; a first release leaves both boxes unticked. An update that reaches firmware or hardware addresses the published version did not use goes to owner review instead, and followers hear about an automatic release 48 hours after it goes live:

  • Automatically merge and publish my module update after checks pass.
  • I verified the source, licences, UI and qualification reports, including instance isolation and Part/project/reboot persistence where applicable; no required acceptance check is failed or untested.

Reviewer (an assigned device reviewer or a repository maintainer for a first release, the registered author for their own update):

  • I checked the cycle and memory reports against the worst case, the attributed hardware evidence against the submitted source and build, and the screenshots, tutorial and access steps against the current UI. I read the submitter's test record (the test procedure) against the diff and did not have to test it myself; a missing or unexplained step goes back to the submitter.

Validation commands and results:

Link issues with "Related to #…"; they are closed after the release is live and its download is verified.

Summary
Base owns the tick audio-step remapper as call hook ev_audio_step at 0x400a2d6a (length 6, guard 1cb5e6a4…, rejoin 0x400a2d74, room 8).
Hook index 63 (next free after ev_frame_deadline 62). Open ot_lfo_pmtr_dest #2261 must rebase to the next free index if this lands first (or this rebases if #2261 lands first).
ABI: int f(unsigned *step, unsigned track) — base loads stock step; subscribers may mutate step; nonzero takes (same pattern as ev_play_increment).
Play Modes coexistence via machine-ports (order 40, pm_ev_audio_step via pm_step_entry, replaces pm_audio_step). Native playmodes sources unchanged; published standalone .mwrm still Detours until a follow-up owner-approved runtime.json.
Seq Pos listing tip (#2269) subscribes order 50 via its runtime.json. PHAS stays off this list.
Regenerated runtime_events.
, modwerk_events.h, HOOKS.md, site-events.json via events.py --write. Fork mop101/102 pattern.
Test plan
python3 -B sdk/machines/octatrack/events.py --check
python3 -B sdk/machines/octatrack/hook_coverage.py (playmodes machine-port is the user)
npm run modules:compat — 0 problems (Play Modes no longer alone-owns 0x400a2d6a)
Owner base rebuild with OS / hardware as usual for a base hook
Do not merge until owner base review; do not auto-merge
If #2261 merges first: rebase this branch to index 64 before merge
No USB this PR. Owner first-land of the remapper site.

Related: Seq Pos listing #2269; LFO PMTR table #2261 (index collision — rebase whichever is second); fork mop101/102.

@github-actions github-actions Bot mentioned this pull request Nov 26, 2026
5 of 7 tasks
cursor Bot pushed a commit to jonathanwardle1992-beep/modwerk that referenced this pull request Nov 26, 2026
Tip-only after upstream repeat98#2271: tip/USB coexistence uses machine-ports for
ev_audio_step (order 40; native sources unchanged). Published 0.1.1 .mwrm
still Detours (lagsBehind 0.2.1) until owner-approved runtime.json +
reviewed recipe rebuild. Fork mop188/189 tip runtime Proven; published
rebuild Open. No USB/Accept/upstream merge.

Co-authored-by: jonathanwardle1992-beep <jonathanwardle1992-beep@users.noreply.github.com>
cursor Bot pushed a commit to jonathanwardle1992-beep/modwerk that referenced this pull request Nov 26, 2026
Tip-only after upstream repeat98#2271: tip/USB coexistence uses machine-ports for
ev_audio_step (order 40; native sources unchanged). Published 0.1.1 .mwrm
still Detours (lagsBehind 0.2.1) until owner-approved runtime.json +
reviewed recipe rebuild. Fork mop188/189 tip runtime Proven; published
rebuild Open. No USB/Accept/upstream merge.

Co-authored-by: jonathanwardle1992-beep <jonathanwardle1992-beep@users.noreply.github.com>
Call hook room 8; Play Modes machine-port order 40 replaces pm_audio_step
(native sources unchanged). Seq Pos listing tip order 50. Fork mop101/102.

Co-authored-by: jonathanwardle1992-beep <jonathanwardle1992-beep@users.noreply.github.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 working on this. A shared audio-step hook makes sense, because Play Modes and Seq Pos both need that spot. Before it can go in:

  1. Base hooks go on the Octatrack's cumulative base draft (#2246), not straight into main. The owner rebuilds the base, tests it on a unit and releases it from there. Please move this change there (Change a base).
  2. Hook index 63 is already claimed by the CLYPS base work (#1997), and your #2261 asks for the same number. The board check fails on this. Ask the CLYPS holder on the agent board, or take the next free index.
  3. This changes how Play Modes hooks in. Play Modes is devilfish707's module, so please get their OK on GitHub or Discord and link it here (Ask the author first).
  4. The description is still the template. Fill in the Fix/Improvement answers: a "Tested on a unit" line naming the exact base build (or "Not tested on a unit:" and why), an edge-case table (Play Modes alone, Play Modes and Seq Pos together, Undo, a Part change), and a "Guides:" line. npm run pr:body -- FILE.md checks it the way CI does.

Then run npm run pr:ready and push.

ilia-murzinov added a commit to ilia-murzinov/modwerk that referenced this pull request Nov 27, 2026
Reserve indices 63-68 for owner hooks (repeat98#2261, repeat98#2271, ot_dsp_effects, CLYPS),
then add 22 shared Tim Hastie engine take events, regenerate dispatch outputs,
and declare synth/cx-osc machine-port subscriptions. Drop the proposals helper.
@repeat98

Copy link
Copy Markdown
Owner

ev_audio_step refuses the published Play Modes 0.2.1, so it waits for a base after 0.8.4. Hook 64 stays reserved for it.

While folding the open base work into the cumulative draft #2333 (base 0.8.4), we found that this hook owns the stock site at 0x400a2d6a, which Play Modes 0.2.1 already patches. On a base with the hook, the loader refuses Play Modes. That is three failures in sdk/tests/test_runtime_loader.py, and players who have Play Modes would lose it. modules:compat misses it because it reads the machine port, not the published package.

The owner's decision (28 Nov 2026): 0.8.4 ships without ev_audio_step and keeps index 64 for it with a placeholder, so this PR can replace that in place later, and ot_dsp_effects stays at 65. To land it, Play Modes needs a release that subscribes to ev_audio_step instead of patching the site, in the same base change. Details from the fold:

  • Play Modes' detour needs pad_to 6.
  • The hook's dispatch head carries the stock bytes whole; movea.l #0x800064d0,%a0 would fix that.

@devilfish707, would you be OK with a Play Modes update that moves to ev_audio_step? We can prepare it for your review; nothing changes in Play Modes without your OK. @jonathanwardle1992-beep, your hook stays as it is apart from that dispatch-head detail; thanks for it.

🤖 Generated with Claude Code

repeat98 added a commit that referenced this pull request Nov 28, 2026
jonathanwardle1992-beep's ev_audio_step remapper moves from index 63 to
64, after ot_lfo_pmtr_dest at 63 (the owner's order, 27 November 2026).
events.json takes both entries; events.py regenerates its outputs.
octatrack-base-sources.json is the cumulative draft's until the rebuild.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
repeat98 added a commit that referenced this pull request Nov 28, 2026
npm run octatrack:base -- --beta --write, base-size.mjs --write and
octatrack:module-packages -- --base-only after #2261, #2271, the
Quadraverb base side, #2286 and #2359. octatrack-module-packages.json is
merged row by row from every side (the merges had taken one side whole,
which dropped Midiverb 0.2.0's row from main); the base-bound packages
and USB Audio keep their bytes, only requiredBase moves. Re-pinned with
their images unchanged: USB Audio's reconstruction records
(modwerk_events.h), the machine recipes (machine_ports.py; Analog BD
recaptured identical) and the candidate recipes (loader build.py).
0.8.4's record and Base page entry name each folded change and its author.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
repeat98 added a commit that referenced this pull request Nov 28, 2026
This reverts commit 3c8e4b3, reversing changes made to d892520.

Owner, 28 November 2026: #2271 comes in a later base together with a Play
Modes release its author agrees to. The published Play Modes 0.2.1
patches 0x400a2d6a, so a base that owns it as ev_audio_step refuses Play
Modes (and three test_runtime_loader cases fail). Index 64 stays taken by
a placeholder raised hook, ev_hook_reserved_64 (unused-hooks.json), so
ot_dsp_effects keeps 65 and #2271 later replaces the placeholder in
place. The machine recipes pin machine_ports.py as it was before #2271.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
repeat98 added a commit that referenced this pull request Nov 28, 2026
A raised placeholder would be a third event modules raise, which
test_runtime_loader keeps to ev_mute_keep and ev_trig_muted; a table with
no sites and no reader reserves the index without base code. #2271
replaces it in place, keeping 64.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
repeat98 added a commit that referenced this pull request Nov 28, 2026
…2002f1)

npm run octatrack:base -- --beta --write, base-size.mjs --write and
octatrack:module-packages -- --base-only after the revert of #2271, the
ot_reserved_64 placeholder and main's #2346. USB Audio's reconstruction
records re-pin modwerk_events.h (images unchanged). The record says why
64 is reserved; the Base page drops #2271's line.

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

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.

3 participants