Repository navigation
Digitakt II base: the effect slot (core_fx) and the FX page - #2445
Claptom-music wants to merge 5 commits into
Conversation
The page list puts it after COMP, outside core_mixer_pages' four entries (capacity 10). Emulator: a test build with the FX page and four stand-in module pages cycles all ten pages with FUNC + MOD and wraps to COMP. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…patcher core_fx (mk2/fx.h), core_fx_set and the FXS1 project block (fx.c); the mailbox in the transfer tail's words 0-15 before ev_audio_frame; the machine wire also while an effect is registered. The builder places a fixed dispatcher at the pre-send render site with eight listen and eight process slots, adds the mailbox routine to the frame receiver, orders effects as the linker orders core_fx and refuses a set over 60,000 busy instructions a block. build.sharc takes an effect's routines and cost. Emulator, private FX Probe test effect (track 1 at value 64): track 1 at x0.5000 (-6.02 dB) against stock, track 2 sample-identical to stock. Co-Authored-By: Claude Opus 5.5 <[email protected]>
UP and DOWN choose the effect, a TRIG key lights or clears a track, knobs A-H set the values (twelve counts a step); the page draws the effect's name, values and sixteen track boxes. Events reach the stock OS unchanged while the page is not on screen, and FUNC + MOD still moves on. Emulator, private FX Probe: track 1 lit on the FX page plays at x0.4998 (-6.02 dB) against stock; track 2 at x0.9996. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The base owns the transfer tail (machine wire and effect mailbox), so the preflight refuses a mod other than the base that names the queue pointer 0x400cd48c, as it refuses the raw +Drive write. Builder tests for effect parts, core_fx's order, the slot's refusals and the base code being the same for every set of effects (with the owner's OS). Co-Authored-By: Claude Opus 5.5 <[email protected]>
The interface declares the core_fx table and core_fx_slot/set/get, and narrows ev_audio_frame to reading the transfer. The machine guide says how an effect takes a slot and what its sound-chip routine may touch. The proposal records the builder, emulator and unit results (image 3a3a37c2, all passed on 30 November 2026) and what is still to do. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Thanks, the effect slot gives the Digitakt II what the Octatrack's effect list gives it, and all eight steps on Plan for the release: #2204, #2477, this one and #2446 go into
Pull requests into |
The base code for the Digitakt II effect slot, as the owner asked when merging the design (#2146). Up to eight effect modules run side by side on the sound chip as track inserts before the stock sends, and one FX page in the Mixer sets them up.
What a musician gets
What changes in the base
core_fxtable (mk2/fx.h): onestruct dt2_fxrecord per effect; an effect's slot is its place in the table (order bands 10-39 tone and drive, 40-69 time, 70-99 dynamics).core_fx_slot,core_fx_set,core_fx_get.core_mixer_pagesentries (DT2_MIXER_PAGE_CAPACITY9 -> 10).DT2_FX_OWN_PAGEkeeps an effect off it.FXM1, a sequence number and seven{slot<<8|index, value}pairs a transfer (changes first, then a round-robin refresh). The machine wire (16-66) is also sent while any effect is registered.0x1c18a6) in the base's L2 (0x200c3000-0x200c4000). It calls listen routines 0-7, then process routines 0-7, with I4 at the slot's settings block, and skips a slot with no track lit. The base code bytes are the same for every set; only the sixteen registry slots change.build.sharc.fx {listen?, process?, cost}in the package contract. It refuses a ninth effect, a record without routines or routines without a record, two effects in one module, and a set over the 60,000 shared budget.0x400cd48c.ev_audio_frameis narrowed to read-only in the interface and guide.Evidence
npm run checkpassed. 79 builder, preflight and assembler tests pass withMODWERK_DT2_STOCK(the owner's OS 1.17, never in the repository).Emulator (coupled ColdFire and sound chip), using a private test effect (FX Probe, GAIN scales lit tracks, never committed):
Unit, Digitakt II, OS 1.17, image
3a3a37c22cb65d13764d238f7dd3c73aff6cd1492b0f5f76d959fa619ca10164(base22a85adabuilt from 67f9c7b, FX Probe153b44f7). Claptom-music ran it on 30 November 2026, and all eight steps passed:The last commit only adds docs; the base bytes are unchanged.
Why this is a draft
build.dt2_sharcversion 1, tail words 0-10). With this base, the preflight refuses it, and a set with Sidechain and an effect is refused ("Two SHARC plans set the same site"). It moves onto the slot in its own change: a listen routine, a process routine in the dynamics band,core_fx_set, andDT2_FX_OWN_PAGEfor its SC and ENV pages.planDt2Renderand the version 1 path come out after that. Sidechain is not in the library, so nothing released is affected.What the guides lacked
The Digitakt II guide said the core has no audio-render hook and that effects wait for the slot. It now says how an effect takes a slot, what its sound-chip routine may touch and that
ev_audio_frameonly reads. The interface list declarescore_fxand its exports. Nothing else.🤖 Generated with Claude Code