You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Proposal: Master Thru — live inputs into the master track (T8), base support needed #2602
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.
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.
Category:machines fits. It adds a source to T8's own sound, as a THRU machine does.
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.
Activity
Takuhito-bit commentedon Dec 4, 2026
Controls update. The page now has six controls, all on T8's master PLAYBACK page:
–,A,B,A+B,A B.A,BandA+Bare mono (A+Bis their sum); PAN places them, with AMP BAL's law (centre is unity on both sides).A Bis a stereo pair (A left, B right); PAN works as its balance.Cost on the DSP stays about the same: two gains per pair, worked out when a value changes, not per sample.
Takuhito-bit commentedon Dec 4, 2026
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:0x40031a080x40031e080x40031a6a0x40031e6a0x4000498c0x40004d8c0x4000d23c0x4000d63c0x4000391c0x40003d1c0x40031e6asits just before the base'smw_resolve_pbdetour at0x40031e74; they don't overlap.The page works on an MKI. A RAM trial (OS 1.40C, base
ddb56b72, packagea48f2bce): 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, stock0x400d3988otherwise) 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.
repeat98 commentedon Dec 5, 2026
Thanks, this is careful work, and the page part already running on your MKI is a good start.
controller_association.c, and fixed masks in the transport), so a new feature never binds. His Fix PR for that intobase/octatrack-nextcomes 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?).machinesfits. It adds a source to T8's own sound, as a THRU machine does.uiClaims. Both detours sit in the selector beside the base'smw_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