Skip to content

Proposal: Master Thru — live inputs into the master track (T8), base support needed #2602

Backlog

Description

@Takuhito-bit

What it is for players: with MASTER TRACK on, T8's PLAYBACK page is empty. Master Thru fills it with THRU's controls — INAB, VOL AB, INCD, VOL CD — and adds the selected inputs to the master's mix before T8's AMP, FX1 and FX2. Inputs then run through the master chain with locks, LFOs and scenes, without spending a track on a THRU machine. VOL defaults to 0, so installing it changes nothing until used.

What I found on OS 1.40C (DSP payload A):

  • Core A runs T5–T8 (X:$420 starts at 4, X:$209 steps $a8 a track).
  • The mixdown runs before the track loop, so the MASTER TRACK branch (P:$292) writes T1–T7 + DIR into X:(X:$209)+$1f8, which is T8's own record. T8's source then takes the raw-copy path (P:$41f, bit 18 of halfword 30, set by the ColdFire at 0x4000498c).
  • The inputs are on core A (the mixdown's r2, from X:$202).
  • T8's PLAYBACK halfwords (0x80000a50 + 64·7) are still converted and sent every frame with MASTER TRACK on (0x4000d23c, 0x4000391c).
  • The page selector at 0x40031a08 returns an empty page (0x400d2e8a) for T8 PLAYBACK when MASTER TRACK is on. Nothing in the base or any module patches it.

What it needs from the base: a second member of the dsp_track_source chain (site 5): a packaged feature for Master Thru's engine, beside Analog BD's feature 4, and its trust row on the cumulative draft (#2473), until Phase 2 admits controllers by declaration. The engine returns for every track but T8 with its signature, so it stays out of Analog BD's way. The page change at 0x40031a6a would be the module's own declared patch (uiClaims: T8's master PLAYBACK page).

Cost: DSP only, on core A, 16 samples × at most 4 MACs per block for T8. No ColdFire render; the page opens on a key press.

Questions: (1) Is a second chain member on site 5 OK, or would you rather wait for Phase 2? (2) Is machines the right category, since it adds a source to T8 and not an effect? (3) Any objection to taking T8's master PLAYBACK page?

Board claim: octatrack/master-thru (@Takuhito-bit). I'll test on my MKI.

Activity

  1. Takuhito-bit commented on Dec 4, 2026

    @Takuhito-bit
    Author

    Controls update. The page now has six controls, all on T8's master PLAYBACK page:

    A B C D E F
    INAB VOL AB PAN AB INCD VOL CD PAN CD
    • INAB / INCD are five-position switches: –, A, B, A+B, A B.
    • A, B and A+B are mono (A+B is their sum); PAN places them, with AMP BAL's law (centre is unity on both sides).
    • A B is a stereo pair (A left, B right); PAN works as its balance.
    • C/D work the same way.

    Cost on the DSP stays about the same: two gains per pair, worked out when a value changes, not per sample.

  2. Takuhito-bit commented on Dec 4, 2026

    @Takuhito-bit
    Author

    Correction: the ColdFire addresses above are 0x400 too low. I disassembled MAIN OS at 0x40000000; it loads at 0x40000400. The DSP addresses and the immediates (0x400d2e8a) are right. Corrected:

    Above Right
    page selector 0x40031a08 0x40031e08
    its PLAYBACK branch 0x40031a6a 0x40031e6a
    T8's raw-copy flag set at 0x4000498c 0x40004d8c
    live lanes converted at 0x4000d23c 0x4000d63c
    sent to the DSP at 0x4000391c 0x40003d1c

    0x40031e6a sits just before the base's mw_resolve_pb detour at 0x40031e74; they don't overlap.

    The page works on an MKI. A RAM trial (OS 1.40C, base ddb56b72, package a48f2bce): with MASTER TRACK on, T8 → PLAYBACK shows THRU's own page (copied from the unit's OS at run time) with PAN in its two empty slots: INAB > VOL > PAN, INCD > VOL > PAN, linked by stock's arrows, values editable and lockable. No crash, stall or skipped track in the trial's log; rolled back.

    Added to the plan: an envelope on the inputs only. The selector's other master branch (0x40031e7e, the AMP page, stock 0x400d3988 otherwise) would get a page with ATK, HOLD, REL for A/B on the top row and for C/D on the bottom. The envelope runs in Master Thru's own DSP engine on the inputs, never on T1–T7 + DIR. Without trigs the inputs always pass (HOLD at its maximum holds), so installing it changes nothing; T8's trigs restart the envelopes, and their values can be locked. Still to check: that stock's AMP stage leaves the master's mix alone with those slots set, and that T8 takes trigs while it is the master.

    Draft pull request with the page part follows.

  3. repeat98 commented on Dec 5, 2026

    @repeat98
    Owner

    Thanks, this is careful work, and the page part already running on your MKI is a good start.

    1. Second member on site 5: fine, no need to wait for Phase 2. Site 5 is a chain so that several packaged engines can share it (Octatrack base: DSP hook chains, so several packaged DSP machines share a hook site #1418). One thing has to land first: Zac found in Octatrack base: the controller write lease costs ~20 % of a frame per leased render (measured on an MKI, BlackPyramids port) #2495 that the base still only knows packaged features 1, 2 and 4 (controller_association.c, and fixed masks in the transport), so a new feature never binds. His Fix PR for that into base/octatrack-next comes before Master Thru's engine. He also measured the controller write lease at about 20 % of a frame per leased render, so please say how often Master Thru's controller writes (only when a value changes?).
    2. Category: machines fits. It adds a source to T8's own sound, as a THRU machine does.
    3. T8's master pages: no objection. Declare both PLAYBACK and AMP in uiClaims. Both detours sit in the selector beside the base's mw_resolve_pb (0x40031e74, 10 bytes, through 0x40031e7d), and the AMP one at 0x40031e7e starts on the very next byte. Please show in the module's tests that neither touches the base's bytes.

    Once Zac's fix is in, send the engine part and I'll add its trust row to #2473.


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions