Skip to content

Docs: propose a shared post-FX2 DSP site and a CC-in hook for the Octatrack base - #2436

Merged
repeat98 merged 3 commits into
repeat98:base/octatrack-nextfrom
sandormatyi:base/octatrack-post-fx-cc-hooks
Dec 3, 2026
Merged

repeat98 merged 3 commits into
repeat98:base/octatrack-nextfrom
sandormatyi:base/octatrack-post-fx-cc-hooks

Conversation

@sandormatyi

@sandormatyi sandormatyi commented Nov 29, 2026 •

Copy link
Copy Markdown

What this is: the design, nothing built, for the two base hooks a per-track post-FX2 low-pass/high-pass filter module needs, so players can filter every track and keep both FX slots. The owner answered its five questions on 30 November; this update writes them into docs/OCTATRACK_POST_FX_AND_CC_HOOKS.md as decisions.

  • Post-FX2 DSP site: site 2 (dsp_track_commit) becomes a chain, as site 5 did for Octatrack base: the key bus to Y $7E00, Sidechain's MON words to Y $FF0 (#1064) #1098. Same index and guard; the filter runs first, MON last. Sidechain already exports scmonbody for a composed hook.
  • ev_midi_cc: a call hook at the stock CC handler's entry, with mw_midi_channel_tracks exported. Subscribers named in the doc: the filter, MIDI NRPN on CTRL knobs (Docs: propose base hooks for NRPN on a MIDI track's CTRL knobs #2540, CC 99/98/6/38 while an NRPN knob is set) and CC Map once it moves over (62-73).
  • Later: midi:cc:<n> as a UI claim kind in its own gate PR; per-project storage in project.work, no Part-level values.
  • DSP cost: static estimates only. The first code commit is the measuring twin; its three runs on a unit go in the PR before the filter gets a price.

Ran on a unit: no. Nothing here runs; no figure is measured.

Edge cases: none, because this change is documentation only. The files that run on an instrument in the diff against main come from merging base/octatrack-next, not from this pull request.

Asked the authors (agent board, linked to this PR): Zac Kyoti for Sidechain Compressor's stub label (d429d7fc) and Sam Banks for moving CC Map onto ev_midi_cc (fa7d195d). Their OK goes here before the code commits.

Next step: after the authors answer, claim the hook index on the board, then the measuring twin and the base pieces as their own commits against base/octatrack-next.

Checks and notes

🤖 Generated with Claude Code

…atrack base

Site 2 (dsp_track_commit) becomes a chain beside Sidechain's MON commit,
and ev_midi_cc takes the stock CC handler's entry that CC Map patches
today, with a per-track filter as first subscriber of both. Design only.

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

Copy link
Copy Markdown
Contributor

Thanks, this is a careful write-up and exactly the order I asked for. My answers:

  1. Site 2 as a chain: yes, the same way site 5 became one. Same index and guard, only its kind and feature list change.
  2. Order: the filter first, MON last, so MON keeps playing the key as it is.
  3. ev_midi_cc at the handler's entry, with mw_midi_channel_tracks exported: yes. Claim the next free hook index on the agent board before you write the entry (66 to 91 are already held).
  4. midi:cc:<n> as a UI claim kind: yes, as its own small pull request to the gate after the hook is in.
  5. Per-project storage in project.work, no Part-level values: yes.

Two things before the code commits:

  • Ask the authors first: Zac Kyoti for Sidechain Compressor's stub label change, and Sam Banks for moving CC Map onto the new hook. Link their OK in the pull request.
  • The first build is the measuring twin. The three runs you list happen on a unit and the figures go in the pull request before the filter gets a price or anything is promoted.

Send each piece as its own commit against base/octatrack-next, as you planned.

repeat98 commented Dec 3, 2026

Copy link
Copy Markdown
Owner

Hi @sandormatyi, the five answers are on the thread (30 November), so the design is settled from my side. To finish this pull request so I can merge the doc into base/octatrack-next:

  1. Write the answers into the doc. Turn "Open questions for the owner" into decisions: site 2 becomes a chain, the filter first and MON last, ev_midi_cc at the handler's entry with mw_midi_channel_tracks exported, midi:cc:<n> as a later gate change, and per-project storage in project.work. Then whoever reads it next doesn't have to dig through the thread.
  2. A second user of ev_midi_cc. Docs: propose base hooks for NRPN on a MIDI track's CTRL knobs #2540 (MIDI NRPN on a MIDI track's CTRL knobs) plans to reuse your hook rather than add its own, taking CC 99, 98, 6 and 38 while an NRPN knob is set. Your contract ("take only the CC numbers it owns, pass the rest") already covers that. Please name it in the doc as the second subscriber, so the hook clearly serves several modules.
  3. Merge base/octatrack-next in (merge, don't rebase), run npm run pr:ready -- --base-branch base/octatrack-next, and mark it ready.

Next step: yours. After the merge, the base pieces follow as their own commits, as you planned, starting with the measuring twin. The authors' OK for Sidechain Compressor and CC Map is still needed before those commits, as in my last comment.


Generated by Claude Code

sandormatyi and others added 2 commits December 3, 2026 18:25
Turn the open questions into decisions (site 2 becomes a chain, the filter
before MON, ev_midi_cc at the CC handler's entry with mw_midi_channel_tracks,
midi:cc:<n> as a later gate change, per-project storage in project.work),
name MIDI NRPN (repeat98#2540) as the hook's second subscriber, and list what must
happen before the code commits.

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

Copy link
Copy Markdown
Author

@sambanks, a question about CC Map, also on the Modwerk agent board (thread fa7d195d).

May I move CC Map onto a shared CC-in hook? The owner approved ev_midi_cc at the stock CC handler's entry, the site CC Map patches today, so several modules can read incoming CCs (design in this PR; the next users are a post-FX2 filter and MIDI NRPN, #2540). CC Map would subscribe to the hook, take CC 62-73 and pass everything else on, the way it tail-calls stock now. It would use an exported mw_midi_channel_tracks instead of calling MAPBUILD itself. Until your next version, CC Map stays marked pending-migration.

Is that OK with you, and would you rather make the CC Map change yourself? A reply here or on the board both work.

@repeat98
repeat98 marked this pull request as ready for review December 3, 2026 18:06
@repeat98
repeat98 merged commit 3005887 into repeat98:base/octatrack-next Dec 3, 2026
2 of 3 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.

2 participants